Skip to content

Commit 83d1d61

Browse files
authored
feat: Provide ability to see Services section XML (openscd#1346)
* feat: ability to see `Services` section's XML Signed-off-by: Juan Muñoz <[email protected]> * chore: update outdated services snapshot test file Signed-off-by: Juan Muñoz <[email protected]> * test: added integration test Signed-off-by: Juan Muñoz <[email protected]> * chore: fix type error in services.ts Signed-off-by: Juan Muñoz <[email protected]> --------- Signed-off-by: Juan Muñoz <[email protected]>
1 parent 370f47a commit 83d1d61

File tree

9 files changed

+287
-1672
lines changed

9 files changed

+287
-1672
lines changed

packages/open-scd/src/wizards/service-GSEControl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export function createGSEControlWizardPage(
5858
? {
5959
title: get('wizard.title.edit', { tagName: 'GSE Control' }),
6060
content: [...content],
61+
element: services,
6162
}
6263
: null;
6364
}

packages/open-scd/src/wizards/service-clientServer-configurations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function createClientServerConfigurationsWizardPage(
6161
? {
6262
title: get('wizard.title.edit', { tagName: 'Client Server Services' }),
6363
content: [...content],
64+
element: services,
6465
}
6566
: null;
6667
}

packages/open-scd/src/wizards/service-log-settingsgroup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export function createLogSettingsGroupServicesWizardPage(
4949
? {
5050
title: get('wizard.title.edit', { tagName: 'Services' }),
5151
content: [...content],
52+
element: services,
5253
}
5354
: null;
5455
}

packages/open-scd/src/wizards/service-networking.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function createNetworkingWizardPage(
6161
? {
6262
title: get('wizard.title.edit', { tagName: 'Networking' }),
6363
content: [...content],
64+
element: services,
6465
}
6566
: null;
6667
}

packages/open-scd/src/wizards/service-report-configurations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export function createReportConfigurationsWizardPage(
5555
? {
5656
title: get('wizard.title.edit', { tagName: 'Report Settings' }),
5757
content: [...content],
58+
element: services,
5859
}
5960
: null;
6061
}

packages/open-scd/src/wizards/service-sampled-values.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export function createSampledValuesWizardPage(
6060
? {
6161
title: get('wizard.title.edit', { tagName: 'Sampled Values' }),
6262
content: [...content],
63+
element: services,
6364
}
6465
: null;
6566
}

packages/open-scd/src/wizards/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function isEmptyObject<T = any>(
1717
return (
1818
target === null
1919
? [false]
20-
: Object.keys(target).flatMap(key => {
20+
: Object.keys(target as Object).flatMap(key => {
2121
const value: any = (target as any)[key];
2222
if (typeof value === 'object') {
2323
return isEmptyObject(value);

0 commit comments

Comments
 (0)