Skip to content

Commit 0082633

Browse files
authored
Merge pull request #223 from com-pas/updating-v0.29.0
Updating v0.29.0
2 parents 4ab72a8 + e7cf902 commit 0082633

File tree

76 files changed

+6215
-546
lines changed

Some content is hidden

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

76 files changed

+6215
-546
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
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.29.0](https://github.com/openscd/open-scd/compare/v0.28.0...v0.29.0) (2023-02-08)
6+
7+
8+
### Features
9+
10+
* **editors/later-binding:** Improve supervision visibility and remove clutter ([#1141](https://github.com/openscd/open-scd/issues/1141)) ([845d1a5](https://github.com/openscd/open-scd/commits/845d1a5200e54b1d7e2a470604b553c519d5f6dd)), closes [#1024](https://github.com/openscd/open-scd/issues/1024) [#1037](https://github.com/openscd/open-scd/issues/1037)
11+
* **editors/laterbinding:** Filter later binding GOOSE/SMV by serviceType (closes [#1150](https://github.com/openscd/open-scd/issues/1150)) ([#1151](https://github.com/openscd/open-scd/issues/1151)) ([ea59f70](https://github.com/openscd/open-scd/commits/ea59f702546f1b9186054d77ec61f4ca57de5b10))
12+
* **editors/substation/transformerwinding:** add remove button ([#1157](https://github.com/openscd/open-scd/issues/1157)) ([a01e0ed](https://github.com/openscd/open-scd/commits/a01e0ed5f1e34cc93a041c57400ae306db5228e4))
13+
* **general-equipment-editor:** add remove button ([#1107](https://github.com/openscd/open-scd/issues/1107)) ([b3def87](https://github.com/openscd/open-scd/commits/b3def87e33d9a47a9bfb8872b35161e59ded4a80))
14+
* **substation/transformerwinding:** add create wizard ([#1154](https://github.com/openscd/open-scd/issues/1154)) ([51e19a7](https://github.com/openscd/open-scd/commits/51e19a75d3cadaf9c61969a54e0a67d9e9fd1fda))
15+
* **wizards/generalequipment:** Add_create_wizard_GeneralEquipment_and_test ([#1102](https://github.com/openscd/open-scd/issues/1102)) ([2d1464f](https://github.com/openscd/open-scd/commits/2d1464fa3446d459aa411f82080241ebf0ff379a))
16+
* **wizards/transformerwinding:** add edit wizard ([#1137](https://github.com/openscd/open-scd/issues/1137)) ([cf65a50](https://github.com/openscd/open-scd/commits/cf65a50366cb0659c3a510e3664ea4226c4c26d4))
17+
18+
19+
### Bug Fixes
20+
21+
* add missing code editor to edit wizards ([#1136](https://github.com/openscd/open-scd/issues/1136)) ([2171569](https://github.com/openscd/open-scd/commits/2171569a9885cd105804cf342906799e678f8009))
22+
* close menu after open project ([#1111](https://github.com/openscd/open-scd/issues/1111)) ([0e047a3](https://github.com/openscd/open-scd/commits/0e047a377f0eedd81996da24c5da80c9b67cbee3))
23+
* **editors/cleanup:** quote input in selector of control blocks cleanup editor, closes [#1145](https://github.com/openscd/open-scd/issues/1145) ([ae26764](https://github.com/openscd/open-scd/commits/ae26764c5be29667114e35fb6ac1e16f5e3704a4))
24+
* **ieds-import:** multiple IEDs import ([#1103](https://github.com/openscd/open-scd/issues/1103)) ([af0f5a3](https://github.com/openscd/open-scd/commits/af0f5a3f4c2648a9538ce7c7e6eca5a73746b784))
25+
* opened menu cut off ([#1125](https://github.com/openscd/open-scd/issues/1125)) ([0c3bd0c](https://github.com/openscd/open-scd/commits/0c3bd0c838c75a6ef9ca575894bbc410a40ac36f))
26+
* styling issue with SubEquipment editor ([#1130](https://github.com/openscd/open-scd/issues/1130)) ([d0e9657](https://github.com/openscd/open-scd/commits/d0e96572f3d57c84674f12d2eeeca93afbe667ad))
27+
528
## [0.28.0](https://github.com/openscd/open-scd/compare/v0.27.0...v0.28.0) (2022-11-30)
629

730

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Feature Wishes
22

3-
Feeature idea's for the OpenSCD project. They are currently not prioritized.
3+
Feeature ideas for the OpenSCD project. They are currently not prioritized.
44

55
- Add the remaining [process elements to the substation editor](https://github.com/openscd/open-scd/projects/1)
66
- [Edit wizard for `Services` element](https://github.com/openscd/open-scd/projects/17)

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.28.0"
43+
"version": "0.29.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.28.0",
3+
"version": "0.29.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/Hosting.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ export function Hosting<
236236
).then();
237237
this.dispatchEvent(newPendingStateEvent(this.validated));
238238
});
239+
this.addEventListener('close-drawer', async () => {
240+
this.menuUI.open = false;
241+
});
239242

240243
this.addEventListener('userinfo', this.onUserInfo);
241244
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class CleanupControlBlocks extends LitElement {
290290
.forEach(cb => {
291291
const parent = cb.parentElement;
292292
const name = cb.getAttribute('datSet');
293-
const isReferenced = parent?.querySelector(`DataSet[name=${name}]`);
293+
const isReferenced = parent?.querySelector(`DataSet[name="${name}"]`);
294294
if (parent && (!name || !isReferenced)) unreferencedCBs.push(cb);
295295
});
296296
this.unreferencedControls = identitySort(unreferencedCBs);

src/editors/communication/gse-editor.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import {
1010
import '@material/mwc-icon';
1111

1212
import '../../action-icon.js';
13+
import { newWizardEvent, newActionEvent } from '../../foundation.js';
1314
import { sizableGooseIcon } from '../../icons/icons.js';
15+
import { editGseWizard } from '../../wizards/gse.js';
1416

1517
@customElement('gse-editor')
1618
export class GseEditor extends LitElement {
@@ -29,9 +31,37 @@ export class GseEditor extends LitElement {
2931
);
3032
}
3133

34+
private openEditWizard(): void {
35+
this.dispatchEvent(newWizardEvent(editGseWizard(this.element)));
36+
}
37+
38+
remove(): void {
39+
if (this.element)
40+
this.dispatchEvent(
41+
newActionEvent({
42+
old: {
43+
parent: this.element.parentElement!,
44+
element: this.element,
45+
reference: this.element.nextSibling,
46+
},
47+
})
48+
);
49+
}
50+
3251
render(): TemplateResult {
33-
return html`<action-icon label="${this.label}"
34-
><mwc-icon slot="icon">${sizableGooseIcon}</mwc-icon></action-icon
35-
>`;
52+
return html`<action-icon label="${this.label}" .icon="${sizableGooseIcon}"
53+
><mwc-fab
54+
slot="action"
55+
mini
56+
icon="edit"
57+
@click="${() => this.openEditWizard()}"
58+
></mwc-fab>
59+
<mwc-fab
60+
slot="action"
61+
mini
62+
icon="delete"
63+
@click="${() => this.remove()}}"
64+
></mwc-fab
65+
></action-icon>`;
3666
}
3767
}

src/editors/communication/smv-editor.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import '@material/mwc-icon';
1111

1212
import '../../action-icon.js';
1313
import { sizableSmvIcon } from '../../icons/icons.js';
14+
import { newWizardEvent, newActionEvent } from '../../foundation.js';
15+
import { editSMvWizard } from '../../wizards/smv.js';
1416

1517
@customElement('smv-editor')
1618
export class SmvEditor extends LitElement {
@@ -29,9 +31,37 @@ export class SmvEditor extends LitElement {
2931
);
3032
}
3133

34+
private openEditWizard(): void {
35+
this.dispatchEvent(newWizardEvent(editSMvWizard(this.element)));
36+
}
37+
38+
remove(): void {
39+
if (this.element)
40+
this.dispatchEvent(
41+
newActionEvent({
42+
old: {
43+
parent: this.element.parentElement!,
44+
element: this.element,
45+
reference: this.element.nextSibling,
46+
},
47+
})
48+
);
49+
}
50+
3251
render(): TemplateResult {
33-
return html`<action-icon label="${this.label}"
34-
><mwc-icon slot="icon">${sizableSmvIcon}</mwc-icon>
35-
</action-icon>`;
52+
return html`<action-icon label="${this.label}" .icon="${sizableSmvIcon}"
53+
><mwc-fab
54+
slot="action"
55+
mini
56+
icon="edit"
57+
@click="${() => this.openEditWizard()}"
58+
></mwc-fab>
59+
<mwc-fab
60+
slot="action"
61+
mini
62+
icon="delete"
63+
@click="${() => this.remove()}}"
64+
></mwc-fab
65+
></action-icon>`;
3666
}
3767
}

src/editors/subscription/later-binding/ext-ref-later-binding-list.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export class ExtRefLaterBindingList extends LitElement {
5656
@state()
5757
currentIedElement: Element | undefined;
5858

59+
serviceTypeLookup = {
60+
GSEControl: 'GOOSE',
61+
SampledValueControl: 'SMV',
62+
};
63+
5964
constructor() {
6065
super();
6166

@@ -232,7 +237,13 @@ export class ExtRefLaterBindingList extends LitElement {
232237
<Element>this.doc.getRootNode(),
233238
this.currentSelectedFcdaElement,
234239
true
235-
).filter(extRefElement => !isSubscribed(extRefElement));
240+
).filter(
241+
extRefElement =>
242+
!isSubscribed(extRefElement) &&
243+
(!extRefElement.hasAttribute('serviceType') ||
244+
extRefElement.getAttribute('serviceType') ===
245+
this.serviceTypeLookup[this.controlTag])
246+
);
236247
}
237248

238249
private renderTitle(): TemplateResult {
@@ -256,7 +267,11 @@ export class ExtRefLaterBindingList extends LitElement {
256267
? html` (${getDescriptionAttribute(extRefElement)})`
257268
: nothing}
258269
</span>
259-
<span slot="secondary">${identity(extRefElement)}</span>
270+
<span slot="secondary"
271+
>${identity(extRefElement.parentElement)}${supervisionNode !== null
272+
? ` (${identity(supervisionNode)})`
273+
: ''}</span
274+
>
260275
<mwc-icon slot="graphic">swap_horiz</mwc-icon>
261276
${supervisionNode !== null
262277
? html`<mwc-icon title="${identity(supervisionNode)}" slot="meta"
@@ -329,7 +344,9 @@ export class ExtRefLaterBindingList extends LitElement {
329344
? html` (${getDescriptionAttribute(extRefElement)})`
330345
: nothing}
331346
</span>
332-
<span slot="secondary">${identity(extRefElement)}</span>
347+
<span slot="secondary"
348+
>${identity(extRefElement.parentElement)}</span
349+
>
333350
<mwc-icon slot="graphic">arrow_back</mwc-icon>
334351
</mwc-list-item>`
335352
)}`

0 commit comments

Comments
 (0)