You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(openscd):Add multiple Val element into DAI distinguished by sGroup (openscd#1221)
* feat:add multiple Val elements in createDAIWizard
* test: fixing dai-field-type snapshot
* test:update DAI unit tests with settingGroups file
* test: integration test for multiple Val wizard
* fix: remove unnecessary type
* fix: update typing in checkForMultipleSettings fn
* refactor: helper fn emptyIfNull reduces complexity
// If the DA has the functional constraint SG or SE and the IED has a SettingControl element with a numOfSGs attribute, then the DAI is a multiple setting group
140
+
return(fc==='SG'||fc==='SE')&&
141
+
numOfSGsAttribute!==''&&
142
+
!isNaN(numberOfmultipleSettings)
143
+
? numberOfmultipleSettings
144
+
: undefined;
145
+
}
146
+
91
147
exportfunctioncreateDAIWizard(
92
148
parent: Element,
93
149
newElement: Element,
94
150
element: Element
95
151
): Wizard{
96
152
// Retrieve the created DAI, can be the new element or one of the child elements below.
0 commit comments