@compas-oscd/open-scd 0.34.16 → 0.34.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WizardDivider.d.ts +8 -8
- package/dist/WizardDivider.js +26 -26
- package/dist/Wizarding.js +36 -36
- package/dist/Wizarding.js.map +1 -1
- package/dist/action-icon.d.ts +25 -25
- package/dist/action-icon.js +51 -51
- package/dist/action-pane.d.ts +25 -25
- package/dist/action-pane.js +86 -86
- package/dist/addons/Editor.d.ts +25 -25
- package/dist/addons/Editor.js +105 -105
- package/dist/addons/Editor.js.map +1 -1
- package/dist/addons/History.d.ts +86 -93
- package/dist/addons/History.js +301 -302
- package/dist/addons/History.js.map +1 -1
- package/dist/addons/Layout.d.ts +96 -96
- package/dist/addons/Layout.js +448 -448
- package/dist/addons/Layout.js.map +1 -1
- package/dist/addons/Settings.d.ts +68 -68
- package/dist/addons/Settings.js +272 -272
- package/dist/addons/Settings.js.map +1 -1
- package/dist/addons/Waiter.d.ts +14 -14
- package/dist/addons/Waiter.js +40 -40
- package/dist/addons/Waiter.js.map +1 -1
- package/dist/addons/Wizards.d.ts +15 -15
- package/dist/addons/Wizards.js +46 -46
- package/dist/addons/editor/edit-action-to-v1-converter.d.ts +3 -3
- package/dist/addons/editor/edit-action-to-v1-converter.js +95 -95
- package/dist/addons/editor/edit-action-to-v1-converter.js.map +1 -1
- package/dist/addons/editor/edit-v1-to-v2-converter.d.ts +2 -2
- package/dist/addons/editor/edit-v1-to-v2-converter.js +36 -36
- package/dist/addons/editor/edit-v1-to-v2-converter.js.map +1 -1
- package/dist/addons/history/get-log-text.d.ts +5 -5
- package/dist/addons/history/get-log-text.js +25 -25
- package/dist/addons/history/get-log-text.js.map +1 -1
- package/dist/addons/menu-tabs/menu-tabs.d.ts +22 -22
- package/dist/addons/menu-tabs/menu-tabs.js +59 -59
- package/dist/addons/plugin-manager/custom-plugin-dialog.d.ts +28 -28
- package/dist/addons/plugin-manager/custom-plugin-dialog.js +71 -71
- package/dist/addons/plugin-manager/plugin-manager.d.ts +20 -20
- package/dist/addons/plugin-manager/plugin-manager.js +77 -77
- package/dist/core/api/api.js +7 -0
- package/dist/core/api/api.js.map +1 -0
- package/dist/core/api/editor/subject.js +22 -0
- package/dist/core/api/editor/subject.js.map +1 -0
- package/dist/core/api/editor/xml-editor.js +82 -0
- package/dist/core/api/editor/xml-editor.js.map +1 -0
- package/dist/core/api/plugin-state-api.js +27 -0
- package/dist/core/api/plugin-state-api.js.map +1 -0
- package/dist/core/foundation/cyrb64.js +26 -0
- package/dist/core/foundation/cyrb64.js.map +1 -0
- package/dist/core/foundation/deprecated/edit-event.js +44 -0
- package/dist/core/foundation/deprecated/edit-event.js.map +1 -0
- package/dist/core/foundation/deprecated/editor.js +94 -0
- package/dist/core/foundation/deprecated/editor.js.map +1 -0
- package/dist/core/foundation/deprecated/history.js +17 -0
- package/dist/core/foundation/deprecated/history.js.map +1 -0
- package/dist/core/foundation/deprecated/open-event.js +9 -0
- package/dist/core/foundation/deprecated/open-event.js.map +1 -0
- package/dist/core/foundation/deprecated/settings.js +19 -0
- package/dist/core/foundation/deprecated/settings.js.map +1 -0
- package/dist/core/foundation/deprecated/validation.js +8 -0
- package/dist/core/foundation/deprecated/validation.js.map +1 -0
- package/dist/core/foundation/deprecated/waiter.js +12 -0
- package/dist/core/foundation/deprecated/waiter.js.map +1 -0
- package/dist/core/foundation/edit-completed-event.js +11 -0
- package/dist/core/foundation/edit-completed-event.js.map +1 -0
- package/dist/core/foundation/edit-event.js +8 -0
- package/dist/core/foundation/edit-event.js.map +1 -0
- package/dist/core/foundation/edit.js +31 -0
- package/dist/core/foundation/edit.js.map +1 -0
- package/dist/core/foundation/handle-edit.js +151 -0
- package/dist/core/foundation/handle-edit.js.map +1 -0
- package/dist/core/foundation/open-event.js +8 -0
- package/dist/core/foundation/open-event.js.map +1 -0
- package/dist/core/foundation/plugin.js +2 -0
- package/dist/core/foundation/plugin.js.map +1 -0
- package/dist/core/foundation.js +14 -0
- package/dist/core/foundation.js.map +1 -0
- package/dist/core/locales.js +21 -0
- package/dist/core/locales.js.map +1 -0
- package/dist/filtered-list.d.ts +27 -27
- package/dist/filtered-list.js +118 -118
- package/dist/finder-list.d.ts +37 -37
- package/dist/finder-list.js +153 -153
- package/dist/foundation/compare.d.ts +79 -79
- package/dist/foundation/compare.js +216 -216
- package/dist/foundation/dai.d.ts +30 -30
- package/dist/foundation/dai.js +126 -126
- package/dist/foundation/generators.d.ts +13 -13
- package/dist/foundation/generators.js +66 -66
- package/dist/foundation/ied.d.ts +22 -22
- package/dist/foundation/ied.js +83 -83
- package/dist/foundation/ied.js.map +1 -1
- package/dist/foundation/nsd.d.ts +4 -4
- package/dist/foundation/nsd.js +12 -12
- package/dist/foundation/nsdoc.d.ts +14 -14
- package/dist/foundation/nsdoc.js +178 -178
- package/dist/foundation/scl.d.ts +1 -1
- package/dist/foundation/scl.js +63 -63
- package/dist/foundation.d.ts +230 -230
- package/dist/foundation.js +1921 -1921
- package/dist/foundation.js.map +1 -1
- package/dist/icons/compare.d.ts +3 -3
- package/dist/icons/compare.js +4 -4
- package/dist/icons/icons.d.ts +41 -41
- package/dist/icons/icons.js +92 -92
- package/dist/icons/ied-icons.d.ts +3 -3
- package/dist/icons/ied-icons.js +4 -4
- package/dist/icons/lnode.d.ts +16 -16
- package/dist/icons/lnode.js +17 -17
- package/dist/open-scd.d.ts +131 -131
- package/dist/open-scd.js +438 -438
- package/dist/open-scd.js.map +1 -1
- package/dist/openscd/src/WizardDivider.js +37 -0
- package/dist/openscd/src/WizardDivider.js.map +1 -0
- package/dist/openscd/src/Wizarding.js +38 -0
- package/dist/openscd/src/Wizarding.js.map +1 -0
- package/dist/openscd/src/action-icon.js +220 -0
- package/dist/openscd/src/action-icon.js.map +1 -0
- package/dist/openscd/src/action-pane.js +176 -0
- package/dist/openscd/src/action-pane.js.map +1 -0
- package/dist/openscd/src/addons/Editor.js +106 -0
- package/dist/openscd/src/addons/Editor.js.map +1 -0
- package/dist/openscd/src/addons/History.js +490 -0
- package/dist/openscd/src/addons/History.js.map +1 -0
- package/dist/openscd/src/addons/Layout.js +619 -0
- package/dist/openscd/src/addons/Layout.js.map +1 -0
- package/dist/openscd/src/addons/Settings.js +465 -0
- package/dist/openscd/src/addons/Settings.js.map +1 -0
- package/dist/openscd/src/addons/Waiter.js +45 -0
- package/dist/openscd/src/addons/Waiter.js.map +1 -0
- package/dist/openscd/src/addons/Wizards.js +48 -0
- package/dist/openscd/src/addons/Wizards.js.map +1 -0
- package/dist/openscd/src/addons/editor/edit-action-to-v1-converter.js +96 -0
- package/dist/openscd/src/addons/editor/edit-action-to-v1-converter.js.map +1 -0
- package/dist/openscd/src/addons/editor/edit-v1-to-v2-converter.js +37 -0
- package/dist/openscd/src/addons/editor/edit-v1-to-v2-converter.js.map +1 -0
- package/dist/openscd/src/addons/history/get-log-text.js +26 -0
- package/dist/openscd/src/addons/history/get-log-text.js.map +1 -0
- package/dist/openscd/src/addons/menu-tabs/menu-tabs.js +74 -0
- package/dist/openscd/src/addons/menu-tabs/menu-tabs.js.map +1 -0
- package/dist/openscd/src/addons/plugin-manager/custom-plugin-dialog.js +177 -0
- package/dist/openscd/src/addons/plugin-manager/custom-plugin-dialog.js.map +1 -0
- package/dist/openscd/src/addons/plugin-manager/plugin-manager.js +165 -0
- package/dist/openscd/src/addons/plugin-manager/plugin-manager.js.map +1 -0
- package/dist/openscd/src/filtered-list.js +168 -0
- package/dist/openscd/src/filtered-list.js.map +1 -0
- package/dist/openscd/src/finder-list.js +207 -0
- package/dist/openscd/src/finder-list.js.map +1 -0
- package/dist/openscd/src/foundation/compare.js +273 -0
- package/dist/openscd/src/foundation/compare.js.map +1 -0
- package/dist/openscd/src/foundation/dai.js +127 -0
- package/dist/openscd/src/foundation/dai.js.map +1 -0
- package/dist/openscd/src/foundation/generators.js +67 -0
- package/dist/openscd/src/foundation/generators.js.map +1 -0
- package/dist/openscd/src/foundation/ied.js +84 -0
- package/dist/openscd/src/foundation/ied.js.map +1 -0
- package/dist/openscd/src/foundation/nsd.js +13 -0
- package/dist/openscd/src/foundation/nsd.js.map +1 -0
- package/dist/openscd/src/foundation/nsdoc.js +180 -0
- package/dist/openscd/src/foundation/nsdoc.js.map +1 -0
- package/dist/openscd/src/foundation/scl.js +64 -0
- package/dist/openscd/src/foundation/scl.js.map +1 -0
- package/dist/openscd/src/foundation.js +1922 -0
- package/dist/openscd/src/foundation.js.map +1 -0
- package/dist/openscd/src/icons/compare.js +11 -0
- package/dist/openscd/src/icons/compare.js.map +1 -0
- package/dist/openscd/src/icons/icons.js +611 -0
- package/dist/openscd/src/icons/icons.js.map +1 -0
- package/dist/openscd/src/icons/ied-icons.js +11 -0
- package/dist/openscd/src/icons/ied-icons.js.map +1 -0
- package/dist/openscd/src/icons/lnode.js +50 -0
- package/dist/openscd/src/icons/lnode.js.map +1 -0
- package/dist/openscd/src/open-scd.js +483 -0
- package/dist/openscd/src/open-scd.js.map +1 -0
- package/dist/openscd/src/oscd-filter-button.js +89 -0
- package/dist/openscd/src/oscd-filter-button.js.map +1 -0
- package/dist/openscd/src/plain-compare-list.js +132 -0
- package/dist/openscd/src/plain-compare-list.js.map +1 -0
- package/dist/openscd/src/plugin-tag.js +23 -0
- package/dist/openscd/src/plugin-tag.js.map +1 -0
- package/dist/openscd/src/plugin.events.js +12 -0
- package/dist/openscd/src/plugin.events.js.map +1 -0
- package/dist/openscd/src/plugin.js +2 -0
- package/dist/openscd/src/plugin.js.map +1 -0
- package/dist/openscd/src/plugins.js +256 -0
- package/dist/openscd/src/plugins.js.map +1 -0
- package/dist/openscd/src/schemas.js +9325 -0
- package/dist/openscd/src/schemas.js.map +1 -0
- package/dist/openscd/src/themes.js +122 -0
- package/dist/openscd/src/themes.js.map +1 -0
- package/dist/openscd/src/translations/de.js +954 -0
- package/dist/openscd/src/translations/de.js.map +1 -0
- package/dist/openscd/src/translations/en.js +950 -0
- package/dist/openscd/src/translations/en.js.map +1 -0
- package/dist/openscd/src/translations/loader.js +10 -0
- package/dist/openscd/src/translations/loader.js.map +1 -0
- package/dist/openscd/src/wizard-checkbox.js +152 -0
- package/dist/openscd/src/wizard-checkbox.js.map +1 -0
- package/dist/openscd/src/wizard-dialog.js +374 -0
- package/dist/openscd/src/wizard-dialog.js.map +1 -0
- package/dist/openscd/src/wizard-select.js +115 -0
- package/dist/openscd/src/wizard-select.js.map +1 -0
- package/dist/openscd/src/wizard-textfield.js +191 -0
- package/dist/openscd/src/wizard-textfield.js.map +1 -0
- package/dist/openscd/src/wizards.js +196 -0
- package/dist/openscd/src/wizards.js.map +1 -0
- package/dist/oscd-filter-button.d.ts +27 -27
- package/dist/oscd-filter-button.js +59 -59
- package/dist/plain-compare-list.d.ts +36 -36
- package/dist/plain-compare-list.js +70 -70
- package/dist/plugin-tag.d.ts +6 -6
- package/dist/plugin-tag.js +22 -22
- package/dist/plugin.d.ts +23 -23
- package/dist/plugin.events.d.ts +15 -15
- package/dist/plugin.events.js +11 -11
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +255 -255
- package/dist/schemas.d.ts +58 -58
- package/dist/schemas.js +59 -59
- package/dist/themes.d.ts +3 -3
- package/dist/themes.js +13 -13
- package/dist/themes.js.map +1 -1
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +952 -952
- package/dist/translations/en.d.ts +963 -963
- package/dist/translations/en.js +948 -948
- package/dist/translations/loader.d.ts +12 -12
- package/dist/translations/loader.js +9 -9
- package/dist/translations/loader.js.map +1 -1
- package/dist/wizard-checkbox.d.ts +37 -37
- package/dist/wizard-checkbox.js +130 -130
- package/dist/wizard-dialog.d.ts +45 -45
- package/dist/wizard-dialog.js +235 -235
- package/dist/wizard-dialog.js.map +1 -1
- package/dist/wizard-select.d.ts +31 -31
- package/dist/wizard-select.js +102 -102
- package/dist/wizard-textfield.d.ts +50 -50
- package/dist/wizard-textfield.js +162 -162
- package/dist/wizards.d.ts +23 -23
- package/dist/wizards.js +148 -148
- package/dist/wizards.js.map +1 -1
- package/dist/xml/src/foundation.js +67 -0
- package/dist/xml/src/foundation.js.map +1 -0
- package/dist/xml/src/index.js +2 -0
- package/dist/xml/src/index.js.map +1 -0
- package/package.json +29 -127
- package/dist/Wizarding.d.ts +0 -10
package/dist/foundation/dai.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determine which part of the Template Structure still needs to be initialized.
|
|
3
|
-
* With the first call the parent will normally be the LN(0) Element to start from.
|
|
4
|
-
* It will use the list to pop the first element and look if there is a DOI/SDI/DAI
|
|
5
|
-
* Element available with the same name.
|
|
6
|
-
*
|
|
7
|
-
* @param parentElement - The element to search from for a DOI/SDI/DAI
|
|
8
|
-
* @param templateStructure - The templates structure with DO/DA/BDA Elements.
|
|
9
|
-
* @returns The last element initialized element or LN(0) if nothing is initialized. This Element can be used to
|
|
10
|
-
* add the new element to. And the list of Template Elements that still need to be initialized.
|
|
11
|
-
*/
|
|
12
|
-
export declare function determineUninitializedStructure(parentElement: Element, templateStructure: Element[]): [Element, Element[]];
|
|
13
|
-
/**
|
|
14
|
-
* Create a new instance structure defined by the array of template elements passed.
|
|
15
|
-
*
|
|
16
|
-
* @param uninitializedTemplateStructure - The Array of Template Elements for which new instance elements need to be
|
|
17
|
-
* created.
|
|
18
|
-
* @returns The Element created from the last Template Element in the Array.
|
|
19
|
-
*/
|
|
20
|
-
export declare function initializeElements(uninitializedTemplateStructure: Element[]): Element;
|
|
21
|
-
/**
|
|
22
|
-
* Use the path configuration of a Common Data Class to search for all DO/SDO/DA/BDA Elements to create
|
|
23
|
-
* a structure for which DOI/SDI/DAI Elements should be created later. Null will be returned when an invalid
|
|
24
|
-
* Template Structure is described by the path.
|
|
25
|
-
*
|
|
26
|
-
* @param lnElement - The LN Element to use for searching the starting DO Element.
|
|
27
|
-
* @param path - The (S)DO/(B)DA Elements to find in the template structure.
|
|
28
|
-
* @returns List of Elements starting with the DO Element followed by one or more SDO or (B)DA Elements describing the structure.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createTemplateStructure(lnElement: Element, path: string[]): Element[] | null;
|
|
1
|
+
/**
|
|
2
|
+
* Determine which part of the Template Structure still needs to be initialized.
|
|
3
|
+
* With the first call the parent will normally be the LN(0) Element to start from.
|
|
4
|
+
* It will use the list to pop the first element and look if there is a DOI/SDI/DAI
|
|
5
|
+
* Element available with the same name.
|
|
6
|
+
*
|
|
7
|
+
* @param parentElement - The element to search from for a DOI/SDI/DAI
|
|
8
|
+
* @param templateStructure - The templates structure with DO/DA/BDA Elements.
|
|
9
|
+
* @returns The last element initialized element or LN(0) if nothing is initialized. This Element can be used to
|
|
10
|
+
* add the new element to. And the list of Template Elements that still need to be initialized.
|
|
11
|
+
*/
|
|
12
|
+
export declare function determineUninitializedStructure(parentElement: Element, templateStructure: Element[]): [Element, Element[]];
|
|
13
|
+
/**
|
|
14
|
+
* Create a new instance structure defined by the array of template elements passed.
|
|
15
|
+
*
|
|
16
|
+
* @param uninitializedTemplateStructure - The Array of Template Elements for which new instance elements need to be
|
|
17
|
+
* created.
|
|
18
|
+
* @returns The Element created from the last Template Element in the Array.
|
|
19
|
+
*/
|
|
20
|
+
export declare function initializeElements(uninitializedTemplateStructure: Element[]): Element;
|
|
21
|
+
/**
|
|
22
|
+
* Use the path configuration of a Common Data Class to search for all DO/SDO/DA/BDA Elements to create
|
|
23
|
+
* a structure for which DOI/SDI/DAI Elements should be created later. Null will be returned when an invalid
|
|
24
|
+
* Template Structure is described by the path.
|
|
25
|
+
*
|
|
26
|
+
* @param lnElement - The LN Element to use for searching the starting DO Element.
|
|
27
|
+
* @param path - The (S)DO/(B)DA Elements to find in the template structure.
|
|
28
|
+
* @returns List of Elements starting with the DO Element followed by one or more SDO or (B)DA Elements describing the structure.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createTemplateStructure(lnElement: Element, path: string[]): Element[] | null;
|
package/dist/foundation/dai.js
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import { SCL_NAMESPACE } from '../schemas.js';
|
|
2
|
-
/**
|
|
3
|
-
* Determine which part of the Template Structure still needs to be initialized.
|
|
4
|
-
* With the first call the parent will normally be the LN(0) Element to start from.
|
|
5
|
-
* It will use the list to pop the first element and look if there is a DOI/SDI/DAI
|
|
6
|
-
* Element available with the same name.
|
|
7
|
-
*
|
|
8
|
-
* @param parentElement - The element to search from for a DOI/SDI/DAI
|
|
9
|
-
* @param templateStructure - The templates structure with DO/DA/BDA Elements.
|
|
10
|
-
* @returns The last element initialized element or LN(0) if nothing is initialized. This Element can be used to
|
|
11
|
-
* add the new element to. And the list of Template Elements that still need to be initialized.
|
|
12
|
-
*/
|
|
13
|
-
export function determineUninitializedStructure(parentElement, templateStructure) {
|
|
14
|
-
const templateElement = templateStructure.shift();
|
|
15
|
-
if (templateStructure.length > 0) {
|
|
16
|
-
// If there are still Template Elements we didn't reach the DAI Element, so continue checking if any DOI/SDI
|
|
17
|
-
// Element is found with the same name.
|
|
18
|
-
let instanceElement;
|
|
19
|
-
// DO Elements are initialized as DOI, others as SDI.
|
|
20
|
-
if (templateElement.tagName === 'DO') {
|
|
21
|
-
instanceElement = parentElement.querySelector(`DOI[name="${templateElement.getAttribute('name')}"]`);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
instanceElement = parentElement.querySelector(`SDI[name="${templateElement.getAttribute('name')}"]`);
|
|
25
|
-
}
|
|
26
|
-
if (instanceElement) {
|
|
27
|
-
// If instance element found we will search one level lower again.
|
|
28
|
-
// So the parent will become the instance element and the list is 1 smaller.
|
|
29
|
-
return determineUninitializedStructure(instanceElement, templateStructure);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
// No instance element found, so the element and all other elements still need to be
|
|
33
|
-
// initialized and returned.
|
|
34
|
-
templateStructure.unshift(templateElement);
|
|
35
|
-
return [parentElement, templateStructure];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
// The last template element in the list, so this should be the DA Element that only needs
|
|
40
|
-
// to be initialized.
|
|
41
|
-
return [parentElement, [templateElement]];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Create a new instance structure defined by the array of template elements passed.
|
|
46
|
-
*
|
|
47
|
-
* @param uninitializedTemplateStructure - The Array of Template Elements for which new instance elements need to be
|
|
48
|
-
* created.
|
|
49
|
-
* @returns The Element created from the last Template Element in the Array.
|
|
50
|
-
*/
|
|
51
|
-
export function initializeElements(uninitializedTemplateStructure) {
|
|
52
|
-
const element = uninitializedTemplateStructure.shift();
|
|
53
|
-
if (uninitializedTemplateStructure.length > 0) {
|
|
54
|
-
// If there are more template elements left this will become a DOI or SDI Element.
|
|
55
|
-
let newElement;
|
|
56
|
-
// Depending on the level create a DOI or SDI Element.
|
|
57
|
-
if (element.tagName === 'DO') {
|
|
58
|
-
newElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'DOI');
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
newElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'SDI');
|
|
62
|
-
}
|
|
63
|
-
newElement.setAttribute('name', element?.getAttribute('name') ?? '');
|
|
64
|
-
// Create an element from the next one (last) from the shortened array.
|
|
65
|
-
const childElement = initializeElements(uninitializedTemplateStructure);
|
|
66
|
-
newElement.append(childElement);
|
|
67
|
-
return newElement;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
// Create Val Element
|
|
71
|
-
const newValElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'Val');
|
|
72
|
-
const valElement = element.querySelector('Val');
|
|
73
|
-
if (valElement) {
|
|
74
|
-
newValElement.textContent = valElement.textContent;
|
|
75
|
-
}
|
|
76
|
-
// Create DAI Element
|
|
77
|
-
const daiElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'DAI');
|
|
78
|
-
daiElement.setAttribute('name', element?.getAttribute('name') ?? '');
|
|
79
|
-
daiElement.append(newValElement);
|
|
80
|
-
return daiElement;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Use the path configuration of a Common Data Class to search for all DO/SDO/DA/BDA Elements to create
|
|
85
|
-
* a structure for which DOI/SDI/DAI Elements should be created later. Null will be returned when an invalid
|
|
86
|
-
* Template Structure is described by the path.
|
|
87
|
-
*
|
|
88
|
-
* @param lnElement - The LN Element to use for searching the starting DO Element.
|
|
89
|
-
* @param path - The (S)DO/(B)DA Elements to find in the template structure.
|
|
90
|
-
* @returns List of Elements starting with the DO Element followed by one or more SDO or (B)DA Elements describing the structure.
|
|
91
|
-
*/
|
|
92
|
-
export function createTemplateStructure(lnElement, path) {
|
|
93
|
-
let templateStructure = [];
|
|
94
|
-
const doc = lnElement.ownerDocument;
|
|
95
|
-
const lnType = lnElement.getAttribute('lnType') ?? '';
|
|
96
|
-
let typeElement = doc.querySelector(`LNodeType[id="${lnType}"]`);
|
|
97
|
-
path.forEach(name => {
|
|
98
|
-
// There should be a DOType or DAType set for the current element in the list.
|
|
99
|
-
if (!typeElement) {
|
|
100
|
-
templateStructure = null;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const dataElement = typeElement.querySelector(`:scope > DO[name="${name}"], :scope > SDO[name="${name}"], :scope > DA[name="${name}"], :scope > BDA[name="${name}"]`);
|
|
104
|
-
// If there is no (S)DO/(B)DA Element found the structure is incorrect, so just stop.
|
|
105
|
-
if (dataElement === null) {
|
|
106
|
-
templateStructure = null;
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
templateStructure.push(dataElement);
|
|
110
|
-
if (dataElement.tagName === 'DO' || dataElement.tagName === 'SDO') {
|
|
111
|
-
const type = dataElement.getAttribute('type') ?? '';
|
|
112
|
-
typeElement = doc.querySelector(`DataTypeTemplates > DOType[id="${type}"]`);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
const bType = dataElement.getAttribute('bType') ?? '';
|
|
116
|
-
if (bType === 'Struct') {
|
|
117
|
-
const type = dataElement.getAttribute('type') ?? '';
|
|
118
|
-
typeElement = doc.querySelector(`DataTypeTemplates > DAType[id="${type}"]`);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
typeElement = null;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
return templateStructure;
|
|
126
|
-
}
|
|
1
|
+
import { SCL_NAMESPACE } from '../schemas.js';
|
|
2
|
+
/**
|
|
3
|
+
* Determine which part of the Template Structure still needs to be initialized.
|
|
4
|
+
* With the first call the parent will normally be the LN(0) Element to start from.
|
|
5
|
+
* It will use the list to pop the first element and look if there is a DOI/SDI/DAI
|
|
6
|
+
* Element available with the same name.
|
|
7
|
+
*
|
|
8
|
+
* @param parentElement - The element to search from for a DOI/SDI/DAI
|
|
9
|
+
* @param templateStructure - The templates structure with DO/DA/BDA Elements.
|
|
10
|
+
* @returns The last element initialized element or LN(0) if nothing is initialized. This Element can be used to
|
|
11
|
+
* add the new element to. And the list of Template Elements that still need to be initialized.
|
|
12
|
+
*/
|
|
13
|
+
export function determineUninitializedStructure(parentElement, templateStructure) {
|
|
14
|
+
const templateElement = templateStructure.shift();
|
|
15
|
+
if (templateStructure.length > 0) {
|
|
16
|
+
// If there are still Template Elements we didn't reach the DAI Element, so continue checking if any DOI/SDI
|
|
17
|
+
// Element is found with the same name.
|
|
18
|
+
let instanceElement;
|
|
19
|
+
// DO Elements are initialized as DOI, others as SDI.
|
|
20
|
+
if (templateElement.tagName === 'DO') {
|
|
21
|
+
instanceElement = parentElement.querySelector(`DOI[name="${templateElement.getAttribute('name')}"]`);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
instanceElement = parentElement.querySelector(`SDI[name="${templateElement.getAttribute('name')}"]`);
|
|
25
|
+
}
|
|
26
|
+
if (instanceElement) {
|
|
27
|
+
// If instance element found we will search one level lower again.
|
|
28
|
+
// So the parent will become the instance element and the list is 1 smaller.
|
|
29
|
+
return determineUninitializedStructure(instanceElement, templateStructure);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
// No instance element found, so the element and all other elements still need to be
|
|
33
|
+
// initialized and returned.
|
|
34
|
+
templateStructure.unshift(templateElement);
|
|
35
|
+
return [parentElement, templateStructure];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
// The last template element in the list, so this should be the DA Element that only needs
|
|
40
|
+
// to be initialized.
|
|
41
|
+
return [parentElement, [templateElement]];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a new instance structure defined by the array of template elements passed.
|
|
46
|
+
*
|
|
47
|
+
* @param uninitializedTemplateStructure - The Array of Template Elements for which new instance elements need to be
|
|
48
|
+
* created.
|
|
49
|
+
* @returns The Element created from the last Template Element in the Array.
|
|
50
|
+
*/
|
|
51
|
+
export function initializeElements(uninitializedTemplateStructure) {
|
|
52
|
+
const element = uninitializedTemplateStructure.shift();
|
|
53
|
+
if (uninitializedTemplateStructure.length > 0) {
|
|
54
|
+
// If there are more template elements left this will become a DOI or SDI Element.
|
|
55
|
+
let newElement;
|
|
56
|
+
// Depending on the level create a DOI or SDI Element.
|
|
57
|
+
if (element.tagName === 'DO') {
|
|
58
|
+
newElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'DOI');
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
newElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'SDI');
|
|
62
|
+
}
|
|
63
|
+
newElement.setAttribute('name', element?.getAttribute('name') ?? '');
|
|
64
|
+
// Create an element from the next one (last) from the shortened array.
|
|
65
|
+
const childElement = initializeElements(uninitializedTemplateStructure);
|
|
66
|
+
newElement.append(childElement);
|
|
67
|
+
return newElement;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
// Create Val Element
|
|
71
|
+
const newValElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'Val');
|
|
72
|
+
const valElement = element.querySelector('Val');
|
|
73
|
+
if (valElement) {
|
|
74
|
+
newValElement.textContent = valElement.textContent;
|
|
75
|
+
}
|
|
76
|
+
// Create DAI Element
|
|
77
|
+
const daiElement = element.ownerDocument.createElementNS(SCL_NAMESPACE, 'DAI');
|
|
78
|
+
daiElement.setAttribute('name', element?.getAttribute('name') ?? '');
|
|
79
|
+
daiElement.append(newValElement);
|
|
80
|
+
return daiElement;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Use the path configuration of a Common Data Class to search for all DO/SDO/DA/BDA Elements to create
|
|
85
|
+
* a structure for which DOI/SDI/DAI Elements should be created later. Null will be returned when an invalid
|
|
86
|
+
* Template Structure is described by the path.
|
|
87
|
+
*
|
|
88
|
+
* @param lnElement - The LN Element to use for searching the starting DO Element.
|
|
89
|
+
* @param path - The (S)DO/(B)DA Elements to find in the template structure.
|
|
90
|
+
* @returns List of Elements starting with the DO Element followed by one or more SDO or (B)DA Elements describing the structure.
|
|
91
|
+
*/
|
|
92
|
+
export function createTemplateStructure(lnElement, path) {
|
|
93
|
+
let templateStructure = [];
|
|
94
|
+
const doc = lnElement.ownerDocument;
|
|
95
|
+
const lnType = lnElement.getAttribute('lnType') ?? '';
|
|
96
|
+
let typeElement = doc.querySelector(`LNodeType[id="${lnType}"]`);
|
|
97
|
+
path.forEach(name => {
|
|
98
|
+
// There should be a DOType or DAType set for the current element in the list.
|
|
99
|
+
if (!typeElement) {
|
|
100
|
+
templateStructure = null;
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const dataElement = typeElement.querySelector(`:scope > DO[name="${name}"], :scope > SDO[name="${name}"], :scope > DA[name="${name}"], :scope > BDA[name="${name}"]`);
|
|
104
|
+
// If there is no (S)DO/(B)DA Element found the structure is incorrect, so just stop.
|
|
105
|
+
if (dataElement === null) {
|
|
106
|
+
templateStructure = null;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
templateStructure.push(dataElement);
|
|
110
|
+
if (dataElement.tagName === 'DO' || dataElement.tagName === 'SDO') {
|
|
111
|
+
const type = dataElement.getAttribute('type') ?? '';
|
|
112
|
+
typeElement = doc.querySelector(`DataTypeTemplates > DOType[id="${type}"]`);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const bType = dataElement.getAttribute('bType') ?? '';
|
|
116
|
+
if (bType === 'Struct') {
|
|
117
|
+
const type = dataElement.getAttribute('type') ?? '';
|
|
118
|
+
typeElement = doc.querySelector(`DataTypeTemplates > DAType[id="${type}"]`);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
typeElement = null;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
return templateStructure;
|
|
126
|
+
}
|
|
127
127
|
//# sourceMappingURL=dai.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param doc - project xml document
|
|
3
|
-
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
4
|
-
* @returns a function generating increasing unused `MAC-Address` within `doc` on subsequent invocations
|
|
5
|
-
*/
|
|
6
|
-
export declare function mACAddressGenerator(doc: XMLDocument, serviceType: 'SMV' | 'GSE'): () => string;
|
|
7
|
-
/**
|
|
8
|
-
* @param doc - project xml document
|
|
9
|
-
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
10
|
-
* @param type1A - whether the GOOSE is a Trip GOOSE resulting in different APPID range - default false
|
|
11
|
-
* @returns a function generating increasing unused `APPID` within `doc` on subsequent invocations
|
|
12
|
-
*/
|
|
13
|
-
export declare function appIdGenerator(doc: XMLDocument, serviceType: 'SMV' | 'GSE', type1A?: boolean): () => string;
|
|
1
|
+
/**
|
|
2
|
+
* @param doc - project xml document
|
|
3
|
+
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
4
|
+
* @returns a function generating increasing unused `MAC-Address` within `doc` on subsequent invocations
|
|
5
|
+
*/
|
|
6
|
+
export declare function mACAddressGenerator(doc: XMLDocument, serviceType: 'SMV' | 'GSE'): () => string;
|
|
7
|
+
/**
|
|
8
|
+
* @param doc - project xml document
|
|
9
|
+
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
10
|
+
* @param type1A - whether the GOOSE is a Trip GOOSE resulting in different APPID range - default false
|
|
11
|
+
* @returns a function generating increasing unused `APPID` within `doc` on subsequent invocations
|
|
12
|
+
*/
|
|
13
|
+
export declare function appIdGenerator(doc: XMLDocument, serviceType: 'SMV' | 'GSE', type1A?: boolean): () => string;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
const maxGseMacAddress = 0x010ccd0101ff;
|
|
2
|
-
const minGseMacAddress = 0x010ccd010000;
|
|
3
|
-
const maxSmvMacAddress = 0x010ccd0401ff;
|
|
4
|
-
const minSmvMacAddress = 0x010ccd040000;
|
|
5
|
-
function convertToMac(mac) {
|
|
6
|
-
const str = 0 + mac.toString(16).toUpperCase();
|
|
7
|
-
const arr = str.match(/.{1,2}/g);
|
|
8
|
-
return arr?.join('-');
|
|
9
|
-
}
|
|
10
|
-
const gseMacRange = Array(maxGseMacAddress - minGseMacAddress)
|
|
11
|
-
.fill(1)
|
|
12
|
-
.map((_, i) => convertToMac(minGseMacAddress + i));
|
|
13
|
-
const smvMacRange = Array(maxSmvMacAddress - minSmvMacAddress)
|
|
14
|
-
.fill(1)
|
|
15
|
-
.map((_, i) => convertToMac(minSmvMacAddress + i));
|
|
16
|
-
/**
|
|
17
|
-
* @param doc - project xml document
|
|
18
|
-
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
19
|
-
* @returns a function generating increasing unused `MAC-Address` within `doc` on subsequent invocations
|
|
20
|
-
*/
|
|
21
|
-
export function mACAddressGenerator(doc, serviceType) {
|
|
22
|
-
const macs = new Set(Array.from(doc.querySelectorAll(`${serviceType} > Address > P[type="MAC-Address"]`)).map(macs => macs.textContent));
|
|
23
|
-
const range = serviceType === 'SMV' ? smvMacRange : gseMacRange;
|
|
24
|
-
return () => {
|
|
25
|
-
const uniqueMAC = range.find(mac => !macs.has(mac));
|
|
26
|
-
if (uniqueMAC)
|
|
27
|
-
macs.add(uniqueMAC);
|
|
28
|
-
return uniqueMAC ?? '';
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const maxGseAppId = 0x3fff;
|
|
32
|
-
const minGseAppId = 0x0000;
|
|
33
|
-
// APPID range for Type1A(Trip) GOOSE acc. IEC 61850-8-1
|
|
34
|
-
const maxGseTripAppId = 0xbfff;
|
|
35
|
-
const minGseTripAppId = 0x8000;
|
|
36
|
-
const maxSmvAppId = 0x7fff;
|
|
37
|
-
const minSmvAppId = 0x4000;
|
|
38
|
-
const gseAppIdRange = Array(maxGseAppId - minGseAppId)
|
|
39
|
-
.fill(1)
|
|
40
|
-
.map((_, i) => (minGseAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
41
|
-
const gseTripAppIdRange = Array(maxGseTripAppId - minGseTripAppId)
|
|
42
|
-
.fill(1)
|
|
43
|
-
.map((_, i) => (minGseTripAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
44
|
-
const smvAppIdRange = Array(maxSmvAppId - minSmvAppId)
|
|
45
|
-
.fill(1)
|
|
46
|
-
.map((_, i) => (minSmvAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
47
|
-
/**
|
|
48
|
-
* @param doc - project xml document
|
|
49
|
-
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
50
|
-
* @param type1A - whether the GOOSE is a Trip GOOSE resulting in different APPID range - default false
|
|
51
|
-
* @returns a function generating increasing unused `APPID` within `doc` on subsequent invocations
|
|
52
|
-
*/
|
|
53
|
-
export function appIdGenerator(doc, serviceType, type1A = false) {
|
|
54
|
-
const appIds = new Set(Array.from(doc.querySelectorAll(`${serviceType} > Address > P[type="APPID"]`)).map(appId => appId.textContent));
|
|
55
|
-
const range = serviceType === 'SMV'
|
|
56
|
-
? smvAppIdRange
|
|
57
|
-
: type1A
|
|
58
|
-
? gseTripAppIdRange
|
|
59
|
-
: gseAppIdRange;
|
|
60
|
-
return () => {
|
|
61
|
-
const uniqueAppId = range.find(appId => !appIds.has(appId));
|
|
62
|
-
if (uniqueAppId)
|
|
63
|
-
appIds.add(uniqueAppId);
|
|
64
|
-
return uniqueAppId ?? '';
|
|
65
|
-
};
|
|
66
|
-
}
|
|
1
|
+
const maxGseMacAddress = 0x010ccd0101ff;
|
|
2
|
+
const minGseMacAddress = 0x010ccd010000;
|
|
3
|
+
const maxSmvMacAddress = 0x010ccd0401ff;
|
|
4
|
+
const minSmvMacAddress = 0x010ccd040000;
|
|
5
|
+
function convertToMac(mac) {
|
|
6
|
+
const str = 0 + mac.toString(16).toUpperCase();
|
|
7
|
+
const arr = str.match(/.{1,2}/g);
|
|
8
|
+
return arr?.join('-');
|
|
9
|
+
}
|
|
10
|
+
const gseMacRange = Array(maxGseMacAddress - minGseMacAddress)
|
|
11
|
+
.fill(1)
|
|
12
|
+
.map((_, i) => convertToMac(minGseMacAddress + i));
|
|
13
|
+
const smvMacRange = Array(maxSmvMacAddress - minSmvMacAddress)
|
|
14
|
+
.fill(1)
|
|
15
|
+
.map((_, i) => convertToMac(minSmvMacAddress + i));
|
|
16
|
+
/**
|
|
17
|
+
* @param doc - project xml document
|
|
18
|
+
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
19
|
+
* @returns a function generating increasing unused `MAC-Address` within `doc` on subsequent invocations
|
|
20
|
+
*/
|
|
21
|
+
export function mACAddressGenerator(doc, serviceType) {
|
|
22
|
+
const macs = new Set(Array.from(doc.querySelectorAll(`${serviceType} > Address > P[type="MAC-Address"]`)).map(macs => macs.textContent));
|
|
23
|
+
const range = serviceType === 'SMV' ? smvMacRange : gseMacRange;
|
|
24
|
+
return () => {
|
|
25
|
+
const uniqueMAC = range.find(mac => !macs.has(mac));
|
|
26
|
+
if (uniqueMAC)
|
|
27
|
+
macs.add(uniqueMAC);
|
|
28
|
+
return uniqueMAC ?? '';
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const maxGseAppId = 0x3fff;
|
|
32
|
+
const minGseAppId = 0x0000;
|
|
33
|
+
// APPID range for Type1A(Trip) GOOSE acc. IEC 61850-8-1
|
|
34
|
+
const maxGseTripAppId = 0xbfff;
|
|
35
|
+
const minGseTripAppId = 0x8000;
|
|
36
|
+
const maxSmvAppId = 0x7fff;
|
|
37
|
+
const minSmvAppId = 0x4000;
|
|
38
|
+
const gseAppIdRange = Array(maxGseAppId - minGseAppId)
|
|
39
|
+
.fill(1)
|
|
40
|
+
.map((_, i) => (minGseAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
41
|
+
const gseTripAppIdRange = Array(maxGseTripAppId - minGseTripAppId)
|
|
42
|
+
.fill(1)
|
|
43
|
+
.map((_, i) => (minGseTripAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
44
|
+
const smvAppIdRange = Array(maxSmvAppId - minSmvAppId)
|
|
45
|
+
.fill(1)
|
|
46
|
+
.map((_, i) => (minSmvAppId + i).toString(16).toUpperCase().padStart(4, '0'));
|
|
47
|
+
/**
|
|
48
|
+
* @param doc - project xml document
|
|
49
|
+
* @param serviceType - SampledValueControl (SMV) or GSEControl (GSE)
|
|
50
|
+
* @param type1A - whether the GOOSE is a Trip GOOSE resulting in different APPID range - default false
|
|
51
|
+
* @returns a function generating increasing unused `APPID` within `doc` on subsequent invocations
|
|
52
|
+
*/
|
|
53
|
+
export function appIdGenerator(doc, serviceType, type1A = false) {
|
|
54
|
+
const appIds = new Set(Array.from(doc.querySelectorAll(`${serviceType} > Address > P[type="APPID"]`)).map(appId => appId.textContent));
|
|
55
|
+
const range = serviceType === 'SMV'
|
|
56
|
+
? smvAppIdRange
|
|
57
|
+
: type1A
|
|
58
|
+
? gseTripAppIdRange
|
|
59
|
+
: gseAppIdRange;
|
|
60
|
+
return () => {
|
|
61
|
+
const uniqueAppId = range.find(appId => !appIds.has(appId));
|
|
62
|
+
if (uniqueAppId)
|
|
63
|
+
appIds.add(uniqueAppId);
|
|
64
|
+
return uniqueAppId ?? '';
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
67
|
//# sourceMappingURL=generators.js.map
|
package/dist/foundation/ied.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Delete } from '@
|
|
2
|
-
/**
|
|
3
|
-
* Get all the FCDA attributes containing values from a specific element.
|
|
4
|
-
*
|
|
5
|
-
* @param elementContainingFcdaReferences - The element to use
|
|
6
|
-
* @returns FCDA references
|
|
7
|
-
*/
|
|
8
|
-
export declare function getFcdaReferences(elementContainingFcdaReferences: Element): string;
|
|
9
|
-
/**
|
|
10
|
-
* Get all the Control attributes containing values from a specific element.
|
|
11
|
-
*
|
|
12
|
-
* @param extRef - The element to use
|
|
13
|
-
* @returns Control references
|
|
14
|
-
*/
|
|
15
|
-
export declare function getControlReferences(extRef: Element): string;
|
|
16
|
-
/**
|
|
17
|
-
* Creating Delete actions in case Inputs elements are empty.
|
|
18
|
-
*
|
|
19
|
-
* @param extRefDeleteActions - All Delete actions for ExtRefs.
|
|
20
|
-
* @returns Possible delete actions for empty Inputs elements.
|
|
21
|
-
*/
|
|
22
|
-
export declare function emptyInputsDeleteActions(extRefDeleteActions: Delete[]): Delete[];
|
|
1
|
+
import { Delete } from '@openscd/core/foundation/deprecated/editor.js';
|
|
2
|
+
/**
|
|
3
|
+
* Get all the FCDA attributes containing values from a specific element.
|
|
4
|
+
*
|
|
5
|
+
* @param elementContainingFcdaReferences - The element to use
|
|
6
|
+
* @returns FCDA references
|
|
7
|
+
*/
|
|
8
|
+
export declare function getFcdaReferences(elementContainingFcdaReferences: Element): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get all the Control attributes containing values from a specific element.
|
|
11
|
+
*
|
|
12
|
+
* @param extRef - The element to use
|
|
13
|
+
* @returns Control references
|
|
14
|
+
*/
|
|
15
|
+
export declare function getControlReferences(extRef: Element): string;
|
|
16
|
+
/**
|
|
17
|
+
* Creating Delete actions in case Inputs elements are empty.
|
|
18
|
+
*
|
|
19
|
+
* @param extRefDeleteActions - All Delete actions for ExtRefs.
|
|
20
|
+
* @returns Possible delete actions for empty Inputs elements.
|
|
21
|
+
*/
|
|
22
|
+
export declare function emptyInputsDeleteActions(extRefDeleteActions: Delete[]): Delete[];
|