Skip to content

Commit 9ecacf6

Browse files
author
Rob Tjalma
authored
Merge pull request #160 from com-pas/upstream-v0.17
Merge Upstream v0.17.0
2 parents c6d63ef + b41dbc1 commit 9ecacf6

File tree

147 files changed

+8950
-471
lines changed

Some content is hidden

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

147 files changed

+8950
-471
lines changed

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [0.17.0](https://github.com/openscd/open-scd/compare/v0.16.0...v0.17.0) (2022-05-30)
6+
7+
8+
### Features
9+
10+
* **editor/substation/l-node-editor:** add remove button ([#771](https://github.com/openscd/open-scd/issues/771)) ([7966f0f](https://github.com/openscd/open-scd/commits/7966f0f383bee611b1f840f3222075b56dbe9498))
11+
* **editors/substation:** add read-only l-node-editor ([#730](https://github.com/openscd/open-scd/issues/730)) ([ecfeb5d](https://github.com/openscd/open-scd/commits/ecfeb5d03a7b36493a10193541afbd3a2edd0e9a)), closes [#752](https://github.com/openscd/open-scd/issues/752)
12+
* **editors/substation:** remove button to function type editors ([#761](https://github.com/openscd/open-scd/issues/761)) ([ce9dea1](https://github.com/openscd/open-scd/commits/ce9dea1ce9365ff115b14e1174166c466e884539))
13+
* **editors/subtation:** allow instantiation of LNode from LNodeType's ([#766](https://github.com/openscd/open-scd/issues/766)) ([8ee23fc](https://github.com/openscd/open-scd/commits/8ee23fc8a5c3b3f9dfd57f4d445e9da744edd850))
14+
* **wizards/function:** add create wizards for Function, SubFunction, EqFunction and EqSubFunction element ([#731](https://github.com/openscd/open-scd/issues/731)) ([774add7](https://github.com/openscd/open-scd/commits/774add7510c4b909fab4e0d09f173cf7d3726027)), closes [#733](https://github.com/openscd/open-scd/issues/733) [#737](https://github.com/openscd/open-scd/issues/737) [#757](https://github.com/openscd/open-scd/issues/757)
15+
* **wizards/lnode:** add edit wizard ([#778](https://github.com/openscd/open-scd/issues/778)) ([965f10a](https://github.com/openscd/open-scd/commits/965f10a1d7a9c66fdc4e74265e265fdc950c3a09))
16+
* **wizards/substation/l-node-editor:** add duplicate button ([#782](https://github.com/openscd/open-scd/issues/782)) ([7470e2d](https://github.com/openscd/open-scd/commits/7470e2d0f657002222d771243d4cb609649f5f80))
17+
* **wizards:** add function type create wizards ([#768](https://github.com/openscd/open-scd/issues/768)) ([6e9c928](https://github.com/openscd/open-scd/commits/6e9c928bc09f7e05282d88c7967840e0b441d811)), closes [#762](https://github.com/openscd/open-scd/issues/762) [#763](https://github.com/openscd/open-scd/issues/763) [#764](https://github.com/openscd/open-scd/issues/764) [#765](https://github.com/openscd/open-scd/issues/765)
18+
19+
20+
### Bug Fixes
21+
22+
* **menu/subscriberinfo:** fix lnInst attribute for lnClass LLN0 ([#749](https://github.com/openscd/open-scd/issues/749)) ([2f0bad9](https://github.com/openscd/open-scd/commits/2f0bad905cdc6450c1eec95d3c3a4755afb3098a))
23+
* **wizard-diagram, wizard-select, wizard-checkbox:** disabled attribute ([#781](https://github.com/openscd/open-scd/issues/781)) ([528db27](https://github.com/openscd/open-scd/commits/528db27992173630a22056e50bd7c56903a6a283))
24+
* **wizards/conductingequipment:** on create earth switch add missing ground cNode ([#753](https://github.com/openscd/open-scd/issues/753)) ([8f89f27](https://github.com/openscd/open-scd/commits/8f89f27c6a66316c1b7941fa313ba85d08b1256d))
25+
526
## [0.16.0](https://github.com/openscd/open-scd/compare/v0.15.0...v0.16.0) (2022-05-16)
627

728

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
"purpose": "maskable"
4141
}
4242
],
43-
"version": "0.16.0"
43+
"version": "0.17.0"
4444
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-scd",
3-
"version": "0.16.0",
3+
"version": "0.17.0",
44
"repository": "https://github.com/openscd/open-scd.git",
55
"description": "A bottom-up substation configuration designer for projects described using SCL `IEC 61850-6` Edition 2 or greater.",
66
"keywords": [

src/action-icon.ts

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export class ActionIcon extends LitElement {
3131
/** highlight pane with dotted outline */
3232
@property({ type: Boolean })
3333
highlighted = false;
34+
/** disables CSS adoption to action buttons */
35+
@property({ type: Boolean })
36+
hideActions = false;
3437

3538
async firstUpdated(): Promise<void> {
3639
this.tabIndex = 0;
@@ -75,16 +78,6 @@ export class ActionIcon extends LitElement {
7578
--mdc-icon-size: 64px;
7679
}
7780
78-
:host(:focus-within) ::slotted([slot='icon']),
79-
:host(:focus-within) mwc-icon {
80-
outline-style: solid;
81-
outline-width: 4px;
82-
transform: scale(0.8);
83-
transition: all 250ms linear;
84-
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),
85-
0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
86-
}
87-
8881
:host([secondary]) ::slotted([slot='icon']),
8982
:host([secondary]) mwc-icon {
9083
outline-color: var(--mdc-theme-secondary);
@@ -96,6 +89,20 @@ export class ActionIcon extends LitElement {
9689
outline-width: 2px;
9790
}
9891
92+
:host(:focus-within) ::slotted([slot='icon']),
93+
:host(:focus-within) mwc-icon {
94+
outline-style: solid;
95+
outline-width: 4px;
96+
}
97+
98+
:host(:focus-within:not([hideActions])) ::slotted([slot='icon']),
99+
:host(:focus-within:not([hideActions])) mwc-icon {
100+
transform: scale(0.8);
101+
transition: all 250ms linear;
102+
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),
103+
0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
104+
}
105+
99106
::slotted([slot='icon']:hover),
100107
mwc-icon:hover {
101108
outline-style: dashed;
@@ -178,6 +185,10 @@ export class ActionIcon extends LitElement {
178185
opacity 200ms linear;
179186
}
180187
188+
:host([secondary]) header {
189+
background-color: var(--mdc-theme-secondary);
190+
}
191+
181192
:host(:hover) header {
182193
position: absolute;
183194
opacity: 1;
@@ -191,11 +202,18 @@ export class ActionIcon extends LitElement {
191202
:host(:focus-within) header {
192203
position: absolute;
193204
opacity: 1;
194-
transform: translate(0, -80px);
195205
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),
196206
0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
197207
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
198208
opacity 250ms linear;
199209
}
210+
211+
:host(:focus-within:not([hideActions])) header {
212+
transform: translate(0, -80px);
213+
}
214+
215+
:host(:focus-within[hideActions]) header {
216+
transform: translate(0, -40px);
217+
}
200218
`;
201219
}

src/action-pane.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,8 @@ export class ActionPane extends LitElement {
7979
return html`<h2>${content}</h2>`;
8080
case 3:
8181
return html`<h3>${content}</h3>`;
82-
case 4:
83-
return html`<h4>${content}</h4>`;
84-
case 5:
85-
return html`<h5>${content}</h5>`;
8682
default:
87-
return html`<h6>${content}</h6>`;
83+
return html`<h4>${content}</h4>`;
8884
}
8985
}
9086

@@ -150,9 +146,7 @@ export class ActionPane extends LitElement {
150146
h1,
151147
h2,
152148
h3,
153-
h4,
154-
h5,
155-
h6 {
149+
h4 {
156150
color: var(--mdc-theme-on-surface);
157151
font-family: 'Roboto', sans-serif;
158152
font-weight: 300;

src/editors/cleanup/control-blocks-container.ts

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@ export class CleanupControlBlocks extends LitElement {
170170
><span class="unreferencedControl"
171171
>${controlBlock.getAttribute('name')!}
172172
</span>
173+
<span>
174+
<mwc-icon-button
175+
label="warning"
176+
icon="warning_amber"
177+
class="cautionItem"
178+
title="${translate(
179+
'cleanup.unreferencedControls.addressDefinitionTooltip'
180+
)}"
181+
?disabled="${!(getCommAddress(controlBlock) !== null)}"
182+
>
183+
</mwc-icon-button>
184+
</span>
173185
<span>
174186
<mwc-icon-button
175187
label="Edit"
@@ -196,18 +208,6 @@ export class CleanupControlBlocks extends LitElement {
196208
}}
197209
></mwc-icon-button>
198210
</span>
199-
<span>
200-
<mwc-icon-button
201-
label="warning"
202-
icon="warning_amber"
203-
class="cautionItem"
204-
title="${translate(
205-
'cleanup.unreferencedControls.addressDefinitionTooltip'
206-
)}"
207-
?disabled="${!(getCommAddress(controlBlock) !== null)}"
208-
>
209-
</mwc-icon-button>
210-
</span>
211211
<span slot="secondary"
212212
>${controlBlock.tagName} -
213213
${controlBlock.closest('IED')?.getAttribute('name')}
@@ -352,6 +352,17 @@ export class CleanupControlBlocks extends LitElement {
352352
--mdc-icon-size: 16px;
353353
}
354354
355+
.editItem {
356+
visibility: hidden;
357+
opacity: 0;
358+
}
359+
360+
.cleanupListItem:hover .editItem {
361+
visibility: visible;
362+
opacity: 1;
363+
transition: visibility 0s, opacity 0.5s linear;
364+
}
365+
355366
.cautionItem {
356367
color: var(--yellow);
357368
}

src/editors/cleanup/datasets-container.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ export class CleanupDatasets extends LitElement {
206206
--mdc-icon-size: 16px;
207207
}
208208
209+
.editItem {
210+
visibility: hidden;
211+
opacity: 0;
212+
}
213+
214+
.checkListItem:hover .editItem {
215+
visibility: visible;
216+
opacity: 1;
217+
transition: visibility 0s, opacity 0.5s linear;
218+
}
219+
209220
.cleanupDeleteButton {
210221
float: right;
211222
}

src/editors/substation/bay-editor.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class BayEditor extends LitElement {
7272

7373
/** Opens a [[`WizardDialog`]] for editing `LNode` connections. */
7474
openLNodeWizard(): void {
75-
const wizard = wizards['LNode'].edit(this.element);
75+
const wizard = wizards['LNode'].create(this.element);
7676
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
7777
}
7878

@@ -99,6 +99,20 @@ export class BayEditor extends LitElement {
9999
this.addMenu.anchor = <HTMLElement>this.addButton;
100100
}
101101

102+
private renderLNodes(): TemplateResult {
103+
if (!this.showfunctions) return html``;
104+
105+
const lNodes = getChildElementsByTagName(this.element, 'LNode');
106+
107+
return lNodes.length
108+
? html`<div class="container lnode">
109+
${lNodes.map(
110+
lNode => html`<l-node-editor .element=${lNode}></l-node-editor>`
111+
)}
112+
</div>`
113+
: html``;
114+
}
115+
102116
renderFunctions(): TemplateResult {
103117
if (!this.showfunctions) return html``;
104118

@@ -177,7 +191,7 @@ export class BayEditor extends LitElement {
177191
>${this.renderAddButtons()}</mwc-menu
178192
>
179193
</abbr>
180-
${this.renderIedContainer()} ${this.renderFunctions()}
194+
${this.renderIedContainer()}${this.renderLNodes()}${this.renderFunctions()}
181195
<div
182196
class="${classMap({
183197
content: true,

0 commit comments

Comments
 (0)