Skip to content

Commit cf45fe9

Browse files
authored
feat: add virtual ied (openscd#1712)
* feat: add create virtual IED dialog * fix: replace 'get' with 'translate' in IED editor * fix: remove button attributes * feat: refactor and add tests * fix: update node to 20.x in PR preview workflow * fix: update node to 20.x in build & deploy workflow * fix: remove properties from createLLN0LNodeType function
1 parent d47a3da commit cf45fe9

File tree

15 files changed

+793
-273
lines changed

15 files changed

+793
-273
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
submodules: "true"
1717

18-
- name: Use Node.js 18.x
19-
uses: actions/setup-node@v1
18+
- name: Use Node.js 20.x
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: "18.x"
21+
node-version: "20.x"
2222

2323
- name: Install and Build OpenSCD
2424
run: |

.github/workflows/pr-preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
with:
2525
submodules: "true"
2626

27-
- name: Use Node.js 18.x
28-
uses: actions/setup-node@v1
27+
- name: Use Node.js 20.x
28+
uses: actions/setup-node@v4
2929
with:
30-
node-version: "18.x"
30+
node-version: "20.x"
3131

3232
- name: Install and Build OpenSCD
3333
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed

package-lock.json

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

packages/openscd/src/translations/de.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ export const de: Translations = {
229229
missing: 'Kein IED vorhanden',
230230
toggleChildElements: 'Kindelemente umschalten',
231231
settings: 'Services für IED or AccessPoint',
232+
createIed: 'Virtuelles IED erstellen',
232233
wizard: {
233234
daTitle: 'DA Informationen anzeigen',
234235
doTitle: 'DO Informationen anzeigen',
@@ -248,6 +249,11 @@ export const de: Translations = {
248249
daBType: 'DA Typ',
249250
daValue: 'DA Wert',
250251
},
252+
createDialog: {
253+
iedName: 'IED Name',
254+
nameFormatError: 'IED Name darf keine Leerzeichen enthalten',
255+
nameUniqueError: 'IED Name ist bereits vergeben',
256+
},
251257
},
252258
ied: {
253259
wizard: {

packages/openscd/src/translations/en.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export const en = {
226226
missing: 'No IED',
227227
toggleChildElements: 'Toggle child elements',
228228
settings: 'Show Services the IED/AccessPoint provides',
229+
createIed: 'Create Virtual IED',
229230
wizard: {
230231
daTitle: 'Show DA Info',
231232
doTitle: 'Show DO Info',
@@ -245,6 +246,11 @@ export const en = {
245246
daBType: 'Data attribute type',
246247
daValue: 'Data attribute value',
247248
},
249+
createDialog: {
250+
iedName: 'IED Name',
251+
nameFormatError: 'IED name cannot contain spaces',
252+
nameUniqueError: 'IED name already exists',
253+
},
248254
},
249255
ied: {
250256
wizard: {

packages/plugins/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@material/mwc-switch": "0.22.1",
3030
"@material/mwc-textarea": "0.22.1",
3131
"@material/mwc-textfield": "0.22.1",
32+
"@openenergytools/scl-lib": "^1.8.0",
3233
"@openscd/core": "*",
3334
"@openscd/open-scd": "*",
3435
"@openscd/wizards": "*",

0 commit comments

Comments
 (0)