Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zeroline-pane): add combined Substation and IED overview #251

Merged
merged 16 commits into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions __snapshots__/Substation Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
#### `looks like the latest snapshot`

```html
<zeroline-pane>
</zeroline-pane>
<h1>
<span style="color: var(--base1)">
[substation.missing]
</span>
<mwc-fab
extended=""
icon="add"
Expand Down
12 changes: 6 additions & 6 deletions __snapshots__/bay-editor wizarding integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@
```html
<mwc-dialog
defaultaction="close"
heading="[bay.wizard.title.edit]"
heading="Edit bay"
open=""
>
<div id="wizard-content">
<wizard-textfield
dialoginitialfocus=""
helper="[bay.wizard.nameHelper]"
helper="Bay name"
label="name"
required=""
validationmessage="[textfield.required]"
validationmessage="Required"
>
</wizard-textfield>
<wizard-textfield
helper="[bay.wizard.descHelper]"
helper="Bay description"
label="desc"
nullable=""
>
</wizard-textfield>
</div>
<mwc-button
dialogaction="close"
label="[cancel]"
label="Cancel"
slot="secondaryAction"
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialoginitialfocus=""
icon="edit"
label="[save]"
label="Save"
slot="primaryAction"
trailingicon=""
>
Expand Down
51 changes: 40 additions & 11 deletions __snapshots__/bay-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,46 @@
</abbr>
</nav>
</h3>
<div id="ceContainer">
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<div>
<div id="ceContainer">
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
<conducting-equipment-editor>
</conducting-equipment-editor>
</div>
</div>
</section>

```

## `with readonly property`

#### `looks like the latest snapshot`

```html
<section tabindex="0">
<h3>
COUPLING_BAY — Bay
</h3>
<div>
<div id="ceContainer">
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
</div>
</div>
</section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
```html
<mwc-dialog
defaultaction="close"
heading="[conductingequipment.wizard.title.edit]"
heading="Edit conducting equipment"
open=""
>
<div id="wizard-content">
<mwc-select
disabled=""
helper="[conductingequipment.wizard.typeHelper]"
helper="Conducting equipment type"
label="type"
validationmessage="[textfield.required]"
validationmessage="Required"
>
<mwc-list-item
aria-disabled="false"
Expand All @@ -27,30 +27,30 @@
</mwc-select>
<wizard-textfield
dialoginitialfocus=""
helper="[conductingequipment.wizard.nameHelper]"
helper="Conducting equipment name"
label="name"
required=""
validationmessage="[textfield.required]"
validationmessage="Required"
>
</wizard-textfield>
<wizard-textfield
helper="[conductingequipment.wizard.descHelper]"
helper="Conducting equipment description"
label="desc"
nullable=""
>
</wizard-textfield>
</div>
<mwc-button
dialogaction="close"
label="[cancel]"
label="Cancel"
slot="secondaryAction"
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialoginitialfocus=""
icon="edit"
label="[save]"
label="Save"
slot="primaryAction"
trailingicon=""
>
Expand Down
16 changes: 16 additions & 0 deletions __snapshots__/conducting-equipment-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,19 @@

```

## `with readonly property`

#### `looks like the latest snapshot`

```html
<div
id="container"
tabindex="0"
>
</div>
<h4>
QA1
</h4>

```

4 changes: 4 additions & 0 deletions __snapshots__/open-scd.md
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,10 @@
<mwc-switch id="mode">
</mwc-switch>
</mwc-formfield>
<mwc-formfield label="Show IEDs in substation editor">
<mwc-switch id="showieds">
</mwc-switch>
</mwc-formfield>
</form>
<mwc-button
dialogaction="close"
Expand Down
12 changes: 6 additions & 6 deletions __snapshots__/substation-editor wizarding integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@
```html
<mwc-dialog
defaultaction="close"
heading="[substation.wizard.title.edit]"
heading="Edit substation"
open=""
>
<div id="wizard-content">
<wizard-textfield
dialoginitialfocus=""
helper="[substation.wizard.nameHelper]"
helper="Substation name"
label="name"
required=""
validationmessage="[textfield.required]"
validationmessage="Required"
>
</wizard-textfield>
<wizard-textfield
helper="[substation.wizard.descHelper]"
helper="Substation description"
label="desc"
nullable=""
>
</wizard-textfield>
</div>
<mwc-button
dialogaction="close"
label="[cancel]"
label="Cancel"
slot="secondaryAction"
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialoginitialfocus=""
icon="edit"
label="[save]"
label="Save"
slot="primaryAction"
trailingicon=""
>
Expand Down
17 changes: 17 additions & 0 deletions __snapshots__/substation-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,20 @@

```

## `with readonly property`

#### `looks like the latest snapshot`

```html
<section tabindex="0">
<h1>
AA1 — Substation
</h1>
<voltage-level-editor readonly="">
</voltage-level-editor>
<voltage-level-editor readonly="">
</voltage-level-editor>
</section>

```

24 changes: 12 additions & 12 deletions __snapshots__/voltage-level-editor wizarding integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,68 @@
```html
<mwc-dialog
defaultaction="close"
heading="[voltagelevel.wizard.title.edit]"
heading="Edit voltage level"
open=""
>
<div id="wizard-content">
<wizard-textfield
dialoginitialfocus=""
helper="[voltagelevel.wizard.nameHelper]"
helper="Voltage level name"
label="name"
required=""
validationmessage="[textfield.required]"
validationmessage="Required"
>
</wizard-textfield>
<wizard-textfield
helper="[voltagelevel.wizard.descHelper]"
helper="Voltage level description"
label="desc"
nullable=""
>
</wizard-textfield>
<wizard-textfield
helper="[voltagelevel.wizard.nomFreqHelper]"
helper="Nominal frequency"
label="nomFreq"
nullable=""
pattern="\+?([0-9]+(\.[0-9]*)?|\.[0-9]+)"
required=""
suffix="Hz"
validationmessage="[textfield.nonempty]"
validationmessage="Must not be empty"
>
</wizard-textfield>
<wizard-textfield
helper="[voltagelevel.wizard.numPhaseHelper]"
helper="Number of phases"
label="numPhases"
max="255"
min="1"
nullable=""
required=""
suffix="#"
type="number"
validationmessage="[textfield.nonempty]"
validationmessage="Must not be empty"
>
</wizard-textfield>
<wizard-textfield
helper="[voltagelevel.wizard.voltageHelper]"
helper="Nominal voltage"
label="Voltage"
nullable=""
pattern="((-|\+)?([0-9]+(\.[0-9]*)?|\.[0-9]+))"
required=""
unit="V"
validationmessage="[textfield.nonempty]"
validationmessage="Must not be empty"
>
</wizard-textfield>
</div>
<mwc-button
dialogaction="close"
label="[cancel]"
label="Cancel"
slot="secondaryAction"
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialoginitialfocus=""
icon="edit"
label="[save]"
label="Save"
slot="primaryAction"
trailingicon=""
>
Expand Down
20 changes: 20 additions & 0 deletions __snapshots__/voltage-level-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,23 @@

```

## `with readonly property`

#### `looks like the latest snapshot`

```html
<section tabindex="0">
<h2>
E1 — Voltage Level
(110.0 kV)
</h2>
<div id="bayContainer">
<bay-editor readonly="">
</bay-editor>
<bay-editor readonly="">
</bay-editor>
</div>
</section>

```

Loading