Skip to content

Commit b5b39c4

Browse files
JakobVogelsangca-d
andauthored
feat(gsecontrol): edit GSEControl and its referenced elements (#278)
* feat(abstractda): create valAction and renderWizard to be used by both BDA and DA wizards * fix(abstractda): name pattern and maxLength * fix(abstractda): name attributes limits * test(abstractda): update snapshot * refactor(bda): move bDAWizard to wizard-library * feat(bda): createBDaAction create Val * refactor(datype-wizards): remove unused bda eizards and actions * feat(da) add Val,dchg,achg,dupd to da wizards * feat(da): add Val,dchg,qchg,dupd to createDaWizard * fix(da and bda): minor fixes * feat(wizard/gsecontrol): initial commit * feat(wizards/gse): add edit wizard * feat(wizards/dataset): allow XML editor on edit wizard * test(wizards/gsecontrol): add unit tests * test(wizards/dataset): add unit tests * fix(wizard/gsecontrol): type option GSSE * test(wizards/gse): add unit tests * test(wizard/address): add unit tests * test(wizards/address): improve unit tests * fix(templates): fix wrong translation term * feat(wizards/gsecontrol): add translations * feat(wizards/gsecontrol): update translations * feat(ied-editor/zeroline-pane): open selectGsecontrolWizard * fix(wizards/bda,da): fix translation term * fix: several translation issues * test(zeroline-pane): add integration tests * test(wizards/gsecontrol): add integration tests * refactor(wizards/substation): better naming * test(open-scd): remove unused code * test: update snapshots * test(wizards/gsecontrol): add missing unit and integration tests * test(zeroline-pane): increase readability * test(dataset): add integration test * test(wizard/gse): add integration test * test(wizards/dataset): fix integration test * fix(wizard/foundation): remove unused foundation.ts * test(wiazrd/address): remove leftover console.log Co-authored-by: cad <[email protected]> Co-authored-by: Christian Dinkel <[email protected]>
1 parent 259ce39 commit b5b39c4

Some content is hidden

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

43 files changed

+3372
-202
lines changed

__snapshots__/BDA wizarding editing integration.md

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22

33
## `defines a editBDaWizard to edit an existing BDA`
44

5-
#### `looks like the latest snapshot`
5+
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-dialog
9-
defaultaction="close"
10-
heading="Edit BDA"
11-
open=""
12-
>
8+
<mwc-dialog defaultaction="close" heading="Edit BDA" open="">
139
<div id="wizard-content">
14-
<mwc-button
15-
fullwidth=""
16-
icon="delete"
17-
label="delete"
18-
trailingicon=""
19-
>
10+
<mwc-button fullwidth="" icon="delete" label="Remove" trailingicon="">
2011
</mwc-button>
2112
<wizard-textfield
2213
dialoginitialfocus=""
@@ -361,11 +352,7 @@
361352
EntryID
362353
</mwc-list-item>
363354
</wizard-select>
364-
<wizard-select
365-
fixedmenuposition=""
366-
helper="Type"
367-
label="type"
368-
>
355+
<wizard-select fixedmenuposition="" helper="Type" label="type">
369356
<mwc-list-item
370357
aria-disabled="true"
371358
class="Struct"
@@ -550,12 +537,7 @@
550537
false
551538
</mwc-list-item>
552539
</wizard-select>
553-
<wizard-select
554-
disabled=""
555-
helper="Default value"
556-
label="Val"
557-
nullable=""
558-
>
540+
<wizard-select disabled="" helper="Default value" label="Val" nullable="">
559541
<mwc-list-item
560542
aria-disabled="false"
561543
aria-selected="false"
@@ -632,19 +614,14 @@
632614
>
633615
</mwc-button>
634616
</mwc-dialog>
635-
636617
```
637618

638619
## `defines a createBDaWizard to create a new BDA element`
639620

640-
#### `looks like the latest snapshot`
621+
#### `looks like the latest snapshot`
641622

642623
```html
643-
<mwc-dialog
644-
defaultaction="close"
645-
heading="Edit BDA"
646-
open=""
647-
>
624+
<mwc-dialog defaultaction="close" heading="Edit BDA" open="">
648625
<div id="wizard-content">
649626
<wizard-textfield
650627
dialoginitialfocus=""
@@ -986,11 +963,7 @@
986963
EntryID
987964
</mwc-list-item>
988965
</wizard-select>
989-
<wizard-select
990-
fixedmenuposition=""
991-
helper="Type"
992-
label="type"
993-
>
966+
<wizard-select fixedmenuposition="" helper="Type" label="type">
994967
<mwc-list-item
995968
aria-disabled="false"
996969
class="Struct"
@@ -1162,12 +1135,7 @@
11621135
false
11631136
</mwc-list-item>
11641137
</wizard-select>
1165-
<wizard-select
1166-
disabled=""
1167-
helper="Default value"
1168-
label="Val"
1169-
nullable=""
1170-
>
1138+
<wizard-select disabled="" helper="Default value" label="Val" nullable="">
11711139
</wizard-select>
11721140
<wizard-textfield
11731141
disabled=""
@@ -1193,6 +1161,4 @@
11931161
>
11941162
</mwc-button>
11951163
</mwc-dialog>
1196-
11971164
```
1198-

__snapshots__/DA wizarding editing integration.md

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22

33
## `defines a editDaWizard to edit an existing DA`
44

5-
#### `looks like the latest snapshot`
5+
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-dialog
9-
defaultaction="close"
10-
heading="Edit DA"
11-
open=""
12-
>
8+
<mwc-dialog defaultaction="close" heading="Edit DA" open="">
139
<div id="wizard-content">
14-
<mwc-button
15-
fullwidth=""
16-
icon="delete"
17-
label="delete"
18-
trailingicon=""
19-
>
10+
<mwc-button fullwidth="" icon="delete" label="Remove" trailingicon="">
2011
</mwc-button>
2112
<wizard-textfield
2213
dialoginitialfocus=""
@@ -361,11 +352,7 @@
361352
EntryID
362353
</mwc-list-item>
363354
</wizard-select>
364-
<wizard-select
365-
fixedmenuposition=""
366-
helper="Type"
367-
label="type"
368-
>
355+
<wizard-select fixedmenuposition="" helper="Type" label="type">
369356
<mwc-list-item
370357
aria-disabled="true"
371358
class="Struct"
@@ -594,12 +581,7 @@
594581
false
595582
</mwc-list-item>
596583
</wizard-select>
597-
<wizard-select
598-
disabled=""
599-
helper="Default value"
600-
label="Val"
601-
nullable=""
602-
>
584+
<wizard-select disabled="" helper="Default value" label="Val" nullable="">
603585
<mwc-list-item
604586
aria-disabled="false"
605587
aria-selected="false"
@@ -884,19 +866,14 @@
884866
>
885867
</mwc-button>
886868
</mwc-dialog>
887-
888869
```
889870

890871
## `defines a createDaWizard to create a new DA element`
891872

892-
#### `looks like the latest snapshot`
873+
#### `looks like the latest snapshot`
893874

894875
```html
895-
<mwc-dialog
896-
defaultaction="close"
897-
heading="Edit DA"
898-
open=""
899-
>
876+
<mwc-dialog defaultaction="close" heading="Edit DA" open="">
900877
<div id="wizard-content">
901878
<wizard-textfield
902879
dialoginitialfocus=""
@@ -1238,11 +1215,7 @@
12381215
EntryID
12391216
</mwc-list-item>
12401217
</wizard-select>
1241-
<wizard-select
1242-
fixedmenuposition=""
1243-
helper="Type"
1244-
label="type"
1245-
>
1218+
<wizard-select fixedmenuposition="" helper="Type" label="type">
12461219
<mwc-list-item
12471220
aria-disabled="false"
12481221
class="Struct"
@@ -1454,12 +1427,7 @@
14541427
false
14551428
</mwc-list-item>
14561429
</wizard-select>
1457-
<wizard-select
1458-
disabled=""
1459-
helper="Default value"
1460-
label="Val"
1461-
nullable=""
1462-
>
1430+
<wizard-select disabled="" helper="Default value" label="Val" nullable="">
14631431
</wizard-select>
14641432
<wizard-textfield
14651433
disabled=""
@@ -1690,6 +1658,4 @@
16901658
>
16911659
</mwc-button>
16921660
</mwc-dialog>
1693-
16941661
```
1695-

__snapshots__/DAType wizards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
<mwc-button
424424
fullwidth=""
425425
icon="delete"
426-
label="[delete]"
426+
label="[remove]"
427427
trailingicon=""
428428
>
429429
</mwc-button>

__snapshots__/DOType wizards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
<mwc-button
408408
fullwidth=""
409409
icon="delete"
410-
label="[delete]"
410+
label="[remove]"
411411
trailingicon=""
412412
>
413413
</mwc-button>
@@ -697,7 +697,7 @@
697697
<mwc-button
698698
fullwidth=""
699699
icon="delete"
700-
label="[delete]"
700+
label="[remove]"
701701
trailingicon=""
702702
>
703703
</mwc-button>

__snapshots__/EnumType wizards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@
13831383
<mwc-button
13841384
fullwidth=""
13851385
icon="delete"
1386-
label="[delete]"
1386+
label="[remove]"
13871387
trailingicon=""
13881388
>
13891389
</mwc-button>

__snapshots__/LNodeType wizards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<mwc-button
1515
fullwidth=""
1616
icon="delete"
17-
label="[delete]"
17+
label="[remove]"
1818
trailingicon=""
1919
>
2020
</mwc-button>
@@ -3327,7 +3327,7 @@
33273327
<mwc-button
33283328
fullwidth=""
33293329
icon="delete"
3330-
label="[delete]"
3330+
label="[remove]"
33313331
trailingicon=""
33323332
>
33333333
</mwc-button>

__snapshots__/address.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# `address`
2+
3+
## `renderGseSmvAddress`
4+
5+
#### `looks like the latest snapshot`
6+
7+
```html
8+
<mwc-dialog
9+
defaultaction="close"
10+
heading="title"
11+
open=""
12+
>
13+
<div id="wizard-content">
14+
<mwc-formfield label="[connectedap.wizard.addschemainsttype]">
15+
<mwc-checkbox id="instType">
16+
</mwc-checkbox>
17+
</mwc-formfield>
18+
<wizard-textfield
19+
label="MAC-Address"
20+
pattern="([0-9A-F]{2}-){5}[0-9A-F]{2}"
21+
>
22+
</wizard-textfield>
23+
<wizard-textfield
24+
label="APPID"
25+
pattern="[0-9A-F]{4}"
26+
>
27+
</wizard-textfield>
28+
<wizard-textfield
29+
label="VLAN-ID"
30+
nullable=""
31+
pattern="[0-9A-F]{3}"
32+
>
33+
</wizard-textfield>
34+
<wizard-textfield
35+
label="VLAN-PRIORITY"
36+
nullable=""
37+
pattern="[0-7]"
38+
>
39+
</wizard-textfield>
40+
</div>
41+
<mwc-button
42+
dialogaction="close"
43+
label="[cancel]"
44+
slot="secondaryAction"
45+
style="--mdc-theme-primary: var(--mdc-theme-error)"
46+
>
47+
</mwc-button>
48+
</mwc-dialog>
49+
50+
```
51+

__snapshots__/clientln wizards.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,5 +405,6 @@
405405
>
406406
</mwc-button>
407407
</mwc-dialog>
408+
408409
```
409410

__snapshots__/dataset wizards.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# `dataset wizards`
2+
3+
## `editDataSetWizard`
4+
5+
#### `looks like the latest snapshot`
6+
7+
```html
8+
<mwc-dialog
9+
defaultaction="close"
10+
heading="[wizard.title.edit]"
11+
open=""
12+
>
13+
<div id="wizard-content">
14+
<wizard-textfield
15+
helper="[scl.name]"
16+
label="name"
17+
required=""
18+
>
19+
</wizard-textfield>
20+
<wizard-textfield
21+
disabled=""
22+
helper="[scl.desc]"
23+
label="desc"
24+
nullable=""
25+
required=""
26+
>
27+
</wizard-textfield>
28+
<filtered-list multi="">
29+
<mwc-check-list-item
30+
aria-disabled="false"
31+
graphic="control"
32+
mwc-list-item=""
33+
tabindex="0"
34+
value="IED2>>CBSW>GooseDataSet1>CBSW/ XSWI 2.Pos stVal (ST)"
35+
>
36+
CBSW/ XSWI 2.Pos stVal (ST)
37+
</mwc-check-list-item>
38+
<mwc-check-list-item
39+
aria-disabled="false"
40+
graphic="control"
41+
mwc-list-item=""
42+
tabindex="-1"
43+
value="IED2>>CBSW>GooseDataSet1>CBSW/ XSWI 2.Pos q (ST)"
44+
>
45+
CBSW/ XSWI 2.Pos q (ST)
46+
</mwc-check-list-item>
47+
</filtered-list>
48+
</div>
49+
<mwc-button
50+
dialogaction="close"
51+
label="[cancel]"
52+
slot="secondaryAction"
53+
style="--mdc-theme-primary: var(--mdc-theme-error)"
54+
>
55+
</mwc-button>
56+
<mwc-button
57+
dialoginitialfocus=""
58+
icon="save"
59+
label="[edit]"
60+
slot="primaryAction"
61+
trailingicon=""
62+
>
63+
</mwc-button>
64+
</mwc-dialog>
65+
66+
```
67+

0 commit comments

Comments
 (0)