Skip to content

Commit 21ab8ce

Browse files
JakobVogelsangca-d
andauthored
feat(zeroline-pane): add combined Substation and IED overview (#251)
* feat(zeroline-pane): add web-component that displays the substation sections * test(substation/guesswizard): restore tests * refactor(substation/foundation): remove unwanted dependencies * test(zeroline-pane): add unit tests * fix(zeroline-pane/foundation): improve ied allocation * style(zeroline-pane): improve styling * refactor(zeroline/foundation): improve ied allocation * test(zeroline-pane): update snapshots * feat(Substation): show ieds in substation structure * style(iedcontainer): fix styling on zero-pane-level * fix(zeroline-pane): fix rebase break * refactor(zeroline-pane): faster loading of iedcontainers * feat(Substation): allow adding more than one substation * refactor(zeroline-pane): move substation showieds toggle button * style(zeroline-pane): remove superfluous div * refactor(Zeroline-pane): move nav bar from Substation to zeroline-pane Co-authored-by: Christian Dinkel <[email protected]>
1 parent 180e858 commit 21ab8ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1327
-462
lines changed

__snapshots__/Substation Plugin.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
#### `looks like the latest snapshot`
66

77
```html
8+
<zeroline-pane>
9+
</zeroline-pane>
810
<h1>
9-
<span style="color: var(--base1)">
10-
[substation.missing]
11-
</span>
1211
<mwc-fab
1312
extended=""
1413
icon="add"

__snapshots__/bay-editor wizarding integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55
```html
66
<mwc-dialog
77
defaultaction="close"
8-
heading="[bay.wizard.title.edit]"
8+
heading="Edit bay"
99
open=""
1010
>
1111
<div id="wizard-content">
1212
<wizard-textfield
1313
dialoginitialfocus=""
14-
helper="[bay.wizard.nameHelper]"
14+
helper="Bay name"
1515
label="name"
1616
required=""
17-
validationmessage="[textfield.required]"
17+
validationmessage="Required"
1818
>
1919
</wizard-textfield>
2020
<wizard-textfield
21-
helper="[bay.wizard.descHelper]"
21+
helper="Bay description"
2222
label="desc"
2323
nullable=""
2424
>
2525
</wizard-textfield>
2626
</div>
2727
<mwc-button
2828
dialogaction="close"
29-
label="[cancel]"
29+
label="Cancel"
3030
slot="secondaryAction"
3131
style="--mdc-theme-primary: var(--mdc-theme-error)"
3232
>
3333
</mwc-button>
3434
<mwc-button
3535
dialoginitialfocus=""
3636
icon="edit"
37-
label="[save]"
37+
label="Save"
3838
slot="primaryAction"
3939
trailingicon=""
4040
>

__snapshots__/bay-editor.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,46 @@
3333
</abbr>
3434
</nav>
3535
</h3>
36-
<div id="ceContainer">
37-
<conducting-equipment-editor>
38-
</conducting-equipment-editor>
39-
<conducting-equipment-editor>
40-
</conducting-equipment-editor>
41-
<conducting-equipment-editor>
42-
</conducting-equipment-editor>
43-
<conducting-equipment-editor>
44-
</conducting-equipment-editor>
45-
<conducting-equipment-editor>
46-
</conducting-equipment-editor>
36+
<div>
37+
<div id="ceContainer">
38+
<conducting-equipment-editor>
39+
</conducting-equipment-editor>
40+
<conducting-equipment-editor>
41+
</conducting-equipment-editor>
42+
<conducting-equipment-editor>
43+
</conducting-equipment-editor>
44+
<conducting-equipment-editor>
45+
</conducting-equipment-editor>
46+
<conducting-equipment-editor>
47+
</conducting-equipment-editor>
48+
</div>
49+
</div>
50+
</section>
51+
52+
```
53+
54+
## `with readonly property`
55+
56+
#### `looks like the latest snapshot`
57+
58+
```html
59+
<section tabindex="0">
60+
<h3>
61+
COUPLING_BAY — Bay
62+
</h3>
63+
<div>
64+
<div id="ceContainer">
65+
<conducting-equipment-editor readonly="">
66+
</conducting-equipment-editor>
67+
<conducting-equipment-editor readonly="">
68+
</conducting-equipment-editor>
69+
<conducting-equipment-editor readonly="">
70+
</conducting-equipment-editor>
71+
<conducting-equipment-editor readonly="">
72+
</conducting-equipment-editor>
73+
<conducting-equipment-editor readonly="">
74+
</conducting-equipment-editor>
75+
</div>
4776
</div>
4877
</section>
4978

__snapshots__/conducting-equipment-editor wizarding integration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
```html
66
<mwc-dialog
77
defaultaction="close"
8-
heading="[conductingequipment.wizard.title.edit]"
8+
heading="Edit conducting equipment"
99
open=""
1010
>
1111
<div id="wizard-content">
1212
<mwc-select
1313
disabled=""
14-
helper="[conductingequipment.wizard.typeHelper]"
14+
helper="Conducting equipment type"
1515
label="type"
16-
validationmessage="[textfield.required]"
16+
validationmessage="Required"
1717
>
1818
<mwc-list-item
1919
aria-disabled="false"
@@ -27,30 +27,30 @@
2727
</mwc-select>
2828
<wizard-textfield
2929
dialoginitialfocus=""
30-
helper="[conductingequipment.wizard.nameHelper]"
30+
helper="Conducting equipment name"
3131
label="name"
3232
required=""
33-
validationmessage="[textfield.required]"
33+
validationmessage="Required"
3434
>
3535
</wizard-textfield>
3636
<wizard-textfield
37-
helper="[conductingequipment.wizard.descHelper]"
37+
helper="Conducting equipment description"
3838
label="desc"
3939
nullable=""
4040
>
4141
</wizard-textfield>
4242
</div>
4343
<mwc-button
4444
dialogaction="close"
45-
label="[cancel]"
45+
label="Cancel"
4646
slot="secondaryAction"
4747
style="--mdc-theme-primary: var(--mdc-theme-error)"
4848
>
4949
</mwc-button>
5050
<mwc-button
5151
dialoginitialfocus=""
5252
icon="edit"
53-
label="[save]"
53+
label="Save"
5454
slot="primaryAction"
5555
trailingicon=""
5656
>

__snapshots__/conducting-equipment-editor.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,19 @@
3838

3939
```
4040

41+
## `with readonly property`
42+
43+
#### `looks like the latest snapshot`
44+
45+
```html
46+
<div
47+
id="container"
48+
tabindex="0"
49+
>
50+
</div>
51+
<h4>
52+
QA1
53+
</h4>
54+
55+
```
56+

__snapshots__/open-scd.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,10 @@
977977
<mwc-switch id="mode">
978978
</mwc-switch>
979979
</mwc-formfield>
980+
<mwc-formfield label="Show IEDs in substation editor">
981+
<mwc-switch id="showieds">
982+
</mwc-switch>
983+
</mwc-formfield>
980984
</form>
981985
<mwc-button
982986
dialogaction="close"

__snapshots__/substation-editor wizarding integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55
```html
66
<mwc-dialog
77
defaultaction="close"
8-
heading="[substation.wizard.title.edit]"
8+
heading="Edit substation"
99
open=""
1010
>
1111
<div id="wizard-content">
1212
<wizard-textfield
1313
dialoginitialfocus=""
14-
helper="[substation.wizard.nameHelper]"
14+
helper="Substation name"
1515
label="name"
1616
required=""
17-
validationmessage="[textfield.required]"
17+
validationmessage="Required"
1818
>
1919
</wizard-textfield>
2020
<wizard-textfield
21-
helper="[substation.wizard.descHelper]"
21+
helper="Substation description"
2222
label="desc"
2323
nullable=""
2424
>
2525
</wizard-textfield>
2626
</div>
2727
<mwc-button
2828
dialogaction="close"
29-
label="[cancel]"
29+
label="Cancel"
3030
slot="secondaryAction"
3131
style="--mdc-theme-primary: var(--mdc-theme-error)"
3232
>
3333
</mwc-button>
3434
<mwc-button
3535
dialoginitialfocus=""
3636
icon="edit"
37-
label="[save]"
37+
label="Save"
3838
slot="primaryAction"
3939
trailingicon=""
4040
>

__snapshots__/substation-editor.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,20 @@
3333

3434
```
3535

36+
## `with readonly property`
37+
38+
#### `looks like the latest snapshot`
39+
40+
```html
41+
<section tabindex="0">
42+
<h1>
43+
AA1 — Substation
44+
</h1>
45+
<voltage-level-editor readonly="">
46+
</voltage-level-editor>
47+
<voltage-level-editor readonly="">
48+
</voltage-level-editor>
49+
</section>
50+
51+
```
52+

__snapshots__/voltage-level-editor wizarding integration.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,68 +5,68 @@
55
```html
66
<mwc-dialog
77
defaultaction="close"
8-
heading="[voltagelevel.wizard.title.edit]"
8+
heading="Edit voltage level"
99
open=""
1010
>
1111
<div id="wizard-content">
1212
<wizard-textfield
1313
dialoginitialfocus=""
14-
helper="[voltagelevel.wizard.nameHelper]"
14+
helper="Voltage level name"
1515
label="name"
1616
required=""
17-
validationmessage="[textfield.required]"
17+
validationmessage="Required"
1818
>
1919
</wizard-textfield>
2020
<wizard-textfield
21-
helper="[voltagelevel.wizard.descHelper]"
21+
helper="Voltage level description"
2222
label="desc"
2323
nullable=""
2424
>
2525
</wizard-textfield>
2626
<wizard-textfield
27-
helper="[voltagelevel.wizard.nomFreqHelper]"
27+
helper="Nominal frequency"
2828
label="nomFreq"
2929
nullable=""
3030
pattern="\+?([0-9]+(\.[0-9]*)?|\.[0-9]+)"
3131
required=""
3232
suffix="Hz"
33-
validationmessage="[textfield.nonempty]"
33+
validationmessage="Must not be empty"
3434
>
3535
</wizard-textfield>
3636
<wizard-textfield
37-
helper="[voltagelevel.wizard.numPhaseHelper]"
37+
helper="Number of phases"
3838
label="numPhases"
3939
max="255"
4040
min="1"
4141
nullable=""
4242
required=""
4343
suffix="#"
4444
type="number"
45-
validationmessage="[textfield.nonempty]"
45+
validationmessage="Must not be empty"
4646
>
4747
</wizard-textfield>
4848
<wizard-textfield
49-
helper="[voltagelevel.wizard.voltageHelper]"
49+
helper="Nominal voltage"
5050
label="Voltage"
5151
nullable=""
5252
pattern="((-|\+)?([0-9]+(\.[0-9]*)?|\.[0-9]+))"
5353
required=""
5454
unit="V"
55-
validationmessage="[textfield.nonempty]"
55+
validationmessage="Must not be empty"
5656
>
5757
</wizard-textfield>
5858
</div>
5959
<mwc-button
6060
dialogaction="close"
61-
label="[cancel]"
61+
label="Cancel"
6262
slot="secondaryAction"
6363
style="--mdc-theme-primary: var(--mdc-theme-error)"
6464
>
6565
</mwc-button>
6666
<mwc-button
6767
dialoginitialfocus=""
6868
icon="edit"
69-
label="[save]"
69+
label="Save"
7070
slot="primaryAction"
7171
trailingicon=""
7272
>

__snapshots__/voltage-level-editor.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,23 @@
4444

4545
```
4646

47+
## `with readonly property`
48+
49+
#### `looks like the latest snapshot`
50+
51+
```html
52+
<section tabindex="0">
53+
<h2>
54+
E1 — Voltage Level
55+
(110.0 kV)
56+
</h2>
57+
<div id="bayContainer">
58+
<bay-editor readonly="">
59+
</bay-editor>
60+
<bay-editor readonly="">
61+
</bay-editor>
62+
</div>
63+
</section>
64+
65+
```
66+

0 commit comments

Comments
 (0)