Skip to content

Commit fb4ea0a

Browse files
author
Dennis Labordus
authored
Merge pull request #173 from com-pas/upstream-v0.20.0
Merged v0.20.0 of OpenSCD to CoMPAS
2 parents 5a6835c + b287e9d commit fb4ea0a

File tree

78 files changed

+5765
-906
lines changed

Some content is hidden

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

78 files changed

+5765
-906
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
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.20.0](https://github.com/openscd/open-scd/compare/v0.19.0...v0.20.0) (2022-07-31)
6+
7+
8+
### Features
9+
10+
* **editors/publisher:** add read only data set element editor ([#911](https://github.com/openscd/open-scd/issues/911)) ([45b5440](https://github.com/openscd/open-scd/commits/45b5440970b515e6d344f53f851c974267eaf961))
11+
* **filtered-list:** filter on list item value ([#876](https://github.com/openscd/open-scd/issues/876)) ([9d7916b](https://github.com/openscd/open-scd/commits/9d7916bc684b338a076a84060ae317e4bf00cb83))
12+
* **menu/compareied:** compares two IED elements with one another ([#903](https://github.com/openscd/open-scd/issues/903)) ([cb07c07](https://github.com/openscd/open-scd/commits/cb07c071a554ee46780472566f2cfe5fa4b7dd10))
13+
14+
15+
### Bug Fixes
16+
17+
* Adding Subnetwork to a configuration without a Communication Element failed for the first time ([c1d2086](https://github.com/openscd/open-scd/commits/c1d2086ec5b12edef0b3c16e3e1855cf40fbf7b3))
18+
* Adding Subnetwork to a configuration without a Communication Element failed for the first time ([4af30c2](https://github.com/openscd/open-scd/commits/4af30c29765a3658b25d639bac6133ca1fd8595a))
19+
* Adding Subnetwork to a configuration without a Communication Element failed for the first time ([617e72d](https://github.com/openscd/open-scd/commits/617e72d210869450611f5c8c75a41dbc2b6be9d1))
20+
* Adding Subnetwork to a configuration without a Communication Element failed for the first time ([5a8e659](https://github.com/openscd/open-scd/commits/5a8e6592dd5e2e8410c4e5e949f66b8e3890bf99))
21+
* **editing:** don't validate after no-op action ([#889](https://github.com/openscd/open-scd/issues/889)) ([b93dab2](https://github.com/openscd/open-scd/commits/b93dab2a3367807959fd4fe7fe33f5ce99bfea41))
22+
* **editing:** wait for new doc before validating ([#879](https://github.com/openscd/open-scd/issues/879)) ([1548282](https://github.com/openscd/open-scd/commits/1548282e124285b1cfd4bdaf1e58d8b815ff93bd))
23+
* **editor/104:** Small improvements and fix. ([#874](https://github.com/openscd/open-scd/issues/874)) ([eb22280](https://github.com/openscd/open-scd/commits/eb222802b70162c7748938b593b15dd35312b96c))
24+
* **editor/ied:** fixed styling how DA(I) values are displayed. ([#872](https://github.com/openscd/open-scd/issues/872)) ([7a12d77](https://github.com/openscd/open-scd/commits/7a12d77447fcf2f24a8b7f3e2549ce1626f41774))
25+
* **editor/SingleLineDiagram:** Fixed redrawing when new document loaded ([ccd8ff0](https://github.com/openscd/open-scd/commits/ccd8ff031ac73d9882a98a8a3d80b940e31cf84b))
26+
* **editor/substation:** Updated IED name is shown in IED container ([cff0bb7](https://github.com/openscd/open-scd/commits/cff0bb71a9a0cc404115ec52fd4302921bc45f35))
27+
* **editors/substation:** make sure add new child menu always open its create wizard ([#912](https://github.com/openscd/open-scd/issues/912)) ([ed0e71d](https://github.com/openscd/open-scd/commits/ed0e71d5579cfc539036adc6120ae62a4d763ab6))
28+
* **menu/importieds:** Accept multiple IEDs from same file in import IEDs. Closes [#897](https://github.com/openscd/open-scd/issues/897) ([#900](https://github.com/openscd/open-scd/issues/900)) ([44b4f87](https://github.com/openscd/open-scd/commits/44b4f87c64ef1311fcfa8cbd6f9771301dd5be19))
29+
* **mergeWizard:** insert element at valid position ([#888](https://github.com/openscd/open-scd/issues/888)) ([027462c](https://github.com/openscd/open-scd/commits/027462cedaa419c2832741563721d5b8d9c49652))
30+
531
## [0.19.0](https://github.com/openscd/open-scd/compare/v0.18.0...v0.19.0) (2022-07-11)
632

733

DEVELOPMENT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.pretti
3232
automatically lint and format your code as you edit it. There are similar plugins available for
3333
using [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) from within other IDEs and text editors.
3434

35+
## TypeDoc
36+
This project uses [TypeDoc](https://typedoc.org/) to transform documentation comments in the source code into a rendered HTML document that can be queried and navigated through. If you want to consult the generated documentation for the TypeScript components, mixins, modules and other relevant artifacts of this project, you can [do it here](https://openscd.github.io/doc/).
37+
3538
## Scripts
3639

3740
We provide the following `npm` scripts for your convenience:

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ distributed under their [end user license agreement](CC-EULA.pdf).
2020

2121
This project is licensed under the [Apache License 2.0](LICENSE.md).
2222

23-
© 2020-2022 OMICRON electronics GmbH
24-
23+
© 2020-2022 OMICRON electronics GmbH, Jakob Vogelsang, TransnetBW GmbH, Alliander N.V., and others

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.19.0"
43+
"version": "0.20.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.19.0",
3+
"version": "0.20.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": [

public/js/plugins.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ export const officialPlugins = [
6969
default: false,
7070
kind: 'editor',
7171
},
72+
{
73+
name: 'Cleanup',
74+
src: '/src/editors/Cleanup.js',
75+
icon: 'cleaning_services',
76+
default: false,
77+
kind: 'editor',
78+
},
7279
{
7380
name: 'Open project',
7481
src: '/src/menu/CompasOpen.js',
@@ -160,7 +167,7 @@ export const officialPlugins = [
160167
default: false,
161168
kind: 'menu',
162169
requireDoc: true,
163-
position: 'middle'
170+
position: 'middle',
164171
},
165172
{
166173
name: 'Subscriber Update',
@@ -205,11 +212,13 @@ export const officialPlugins = [
205212
position: 'middle',
206213
},
207214
{
208-
name: 'Cleanup',
209-
src: '/src/editors/Cleanup.js',
210-
icon: 'cleaning_services',
215+
name: 'Compare IED',
216+
src: '/src/menu/CompareIED.js',
217+
icon: 'compare_arrows',
211218
default: false,
212-
kind: 'editor',
219+
kind: 'menu',
220+
requireDoc: true,
221+
position: 'middle',
213222
},
214223
{
215224
name: 'Auto Align SLD',

src/Editing.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, property } from 'lit-element';
1+
import { property } from 'lit-element';
22
import { get } from 'lit-translate';
33

44
import {
@@ -404,7 +404,7 @@ export function Editing<TBase extends LitElementConstructor>(Base: TBase) {
404404
else if (isUpdate(action)) this.logUpdate(action as Update);
405405
}
406406

407-
private onAction(event: EditorActionEvent<EditorAction>) {
407+
private async onAction(event: EditorActionEvent<EditorAction>) {
408408
if (isSimple(event.detail.action)) {
409409
if (this.onSimpleAction(event.detail.action))
410410
this.logSimpleAction(event.detail.action);
@@ -419,9 +419,7 @@ export function Editing<TBase extends LitElementConstructor>(Base: TBase) {
419419
action: event.detail.action,
420420
})
421421
);
422-
}
423-
424-
this.dispatchEvent(newValidateEvent());
422+
} else return;
425423

426424
if (!this.doc) return;
427425

@@ -434,6 +432,9 @@ export function Editing<TBase extends LitElementConstructor>(Base: TBase) {
434432
// change the document object reference to enable reactive updates
435433
newDoc.documentElement.replaceWith(this.doc.documentElement);
436434
this.doc = newDoc;
435+
436+
await this.updateComplete;
437+
this.dispatchEvent(newValidateEvent());
437438
}
438439

439440
private async onOpenDoc(event: OpenDocEvent) {

src/editors/Communication.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,27 @@ export default class CommunicationPlugin extends LitElement {
1818
@property()
1919
doc!: XMLDocument;
2020

21-
private createCommunication(): void {
21+
/**
22+
* Creates the Communication Element and returns the created Element
23+
* @returns {Element} Communication `Element`
24+
*/
25+
private createCommunication(): Element {
26+
const element: Element = createElement(this.doc, 'Communication', {});
2227
this.dispatchEvent(
2328
newActionEvent({
2429
new: {
2530
parent: this.doc.documentElement,
26-
element: createElement(this.doc, 'Communication', {}),
31+
element: element,
2732
},
2833
})
2934
);
35+
return element;
3036
}
3137

3238
/** Opens a [[`WizardDialog`]] for creating a new `SubNetwork` element. */
3339
private openCreateSubNetworkWizard(): void {
34-
const parent = this.doc.querySelector(':root > Communication');
35-
if (!parent) this.createCommunication();
40+
const parent =this.doc.querySelector(':root > Communication') ||
41+
this.createCommunication();
3642

3743
this.dispatchEvent(newWizardEvent(createSubNetworkWizard(parent!)));
3844
}

src/editors/Publisher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class PublisherPlugin extends LitElement {
8585
}
8686
8787
.publishertypeselector {
88-
margin: 4px 8px 16px;
88+
margin: 4px 8px 8px;
8989
background-color: var(--mdc-theme-surface);
9090
width: calc(100% - 16px);
9191
justify-content: space-around;

0 commit comments

Comments
 (0)