@septkit/ui 0.0.77 → 0.0.79
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/dialecte/create-document-store.js +4 -4
- package/dist/dropdown/multi-select.vue_vue_type_script_setup_true_lang.js +40 -31
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js → @dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-DpI8_nD9.js} +262 -234
- package/dist/external/.pnpm/@dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- package/dist/index.d.ts +50 -1
- package/dist/merge/check-files/identity-warning.js +2 -1
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/merge/session/merge.service.js +25 -19
- package/dist/merge/session/use-merge-session.js +11 -1
- package/dist/merge/wording.js +4 -4
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
- /package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/helpers.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/index.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.8.1}/node_modules/@dialecte/core/dist/utils.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as e, R as t, _ as n, b as r, f as i, g as a } from "../../../../../@dialecte_core@0.8.
|
|
2
|
-
import "../../../../../@dialecte_core@0.8.
|
|
3
|
-
import { n as o } from "../../../../../@dialecte_core@0.8.
|
|
4
|
-
import "../../../../../@dialecte_core@0.8.
|
|
5
|
-
import "../../../../../@dialecte_core@0.8.
|
|
6
|
-
//#region node_modules/.pnpm/@dialecte+scl@0.
|
|
1
|
+
import { H as e, R as t, _ as n, b as r, f as i, g as a } from "../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/utils-USNkj4sT.js";
|
|
2
|
+
import "../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { n as o } from "../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
|
|
4
|
+
import "../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/index.js";
|
|
5
|
+
import "../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/helpers.js";
|
|
6
|
+
//#region node_modules/.pnpm/@dialecte+scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-DpI8_nD9.js
|
|
7
7
|
var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.AllocationRoleRef.AnalogueWiringParameters.AnalogueWiringParametersRef.Application.ApplicationSclRef.Association.Authentication.BDA.Bay.BayType.BehaviorDescription.BehaviorDescriptionRef.BehaviorReference.BinaryWiringParameters.BinaryWiringParametersRef.BitRate.CheckoutID.ClientLN.ClientServices.CommProt.Communication.CommunicationServiceSpecifications.ConductingEquipment.ConfDataSet.ConfLNs.ConfLdName.ConfLogControl.ConfReportControl.ConfSG.ConfSigRef.ConnectedAP.ConnectivityNode.ControlRef.ControllingLNode.DA.DAI.DAS.DAType.DO.DOI.DOS.DOType.DataObjectDirectory.DataSet.DataSetDirectory.DataTypeTemplates.DynAssociation.DynDataSet.EnumType.EnumVal.EqFunction.EqSubFunction.ExtCtrl.ExtRef.FCDA.FileHandling.Function.FunctionCatRef.FunctionCategory.FunctionCategoryRef.FunctionRef.FunctionRole.FunctionRoleContent.FunctionSclRef.FunctionTemplate.FunctionalSubVariant.FunctionalVariant.FunctionalVariantGroup.FunctionalVariantRef.GOOSE.GOOSEMcSecurity.GOOSESecurity.GSE.GSEControl.GSEDir.GSESettings.GSSE.GeneralEquipment.GetCBValues.GetDataObjectDefinition.GetDataSetValue.GetDirectory.GooseParameters.GooseParametersRef.Header.History.Hitem.IED.IEDName.IEDSourceFiles.InputVar.InputVarRef.Inputs.IssuerName.KDC.L2CommParameters.L3IPv4CommParameters.L3IPv6CommParameters.LDevice.LN.LN0.LNode.LNodeDataRef.LNodeInputRef.LNodeInputs.LNodeOutputRef.LNodeOutputs.LNodeSpecNaming.LNodeType.Label.Labels.Line.Log.LogControl.LogParameters.LogParametersRef.LogSettings.MaxTime.McSecurity.MinRequestedSCDFile.MinRequestedSCDFiles.MinTime.MultiAPPerSubNet.NeutralPoint.OptFields.OutputVar.OutputVarRef.Outputs.P.PhysConn.PowerSystemRelation.PowerSystemRelationRef.PowerSystemRelations.PowerTransformer.Private.Process.ProcessEcho.ProcessResource.ProcessResourceRef.ProcessResources.Project.ProjectProcessReference.ProtNs.Protocol.ReadWrite.RedProt.ReportControl.ReportParameters.ReportParametersRef.ReportSettings.Resource.RptEnabled.SCL.SCSM.SDI.SDO.SDS.SGEdit.SMV.SMVParameters.SMVParametersRef.SMVSecurity.SMVSettings.SMVsc.SVMcSecurity.SampledValueControl.SamplesPerSec.SclFileReference.SecPerSamples.Security.Server.ServerAt.ServiceSpecifications.Services.SetDataSetValue.SettingControl.SettingGroups.SignalRole.SmpRate.SmvOpts.SourceFiles.SourceRef.SubCategory.SubCheckoutID.SubEquipment.SubFunction.SubFunctionTemplate.SubNetwork.Subject.SubscriberLNode.Substation.SupSubscription.TapChanger.Terminal.Text.TimeSyncProt.TimerActivatedControl.TransformerWinding.TrgOps.Val.ValueHandling.Variable.VariableApplyTo.VariableRef.Voltage.VoltageLevel".split("."), c = {
|
|
8
8
|
AccessControl: [],
|
|
9
9
|
AccessPoint: [
|
|
@@ -43430,7 +43430,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43430
43430
|
}]
|
|
43431
43431
|
}
|
|
43432
43432
|
}
|
|
43433
|
-
},
|
|
43433
|
+
}, m = { supportedFileExtensions: [
|
|
43434
43434
|
".fsd",
|
|
43435
43435
|
".asd",
|
|
43436
43436
|
".ssd",
|
|
@@ -43439,7 +43439,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43439
43439
|
".icd",
|
|
43440
43440
|
".iid",
|
|
43441
43441
|
".xml"
|
|
43442
|
-
] },
|
|
43442
|
+
] }, h = {
|
|
43443
43443
|
recordSchema: {
|
|
43444
43444
|
primaryKey: "id",
|
|
43445
43445
|
indexes: [
|
|
@@ -43457,7 +43457,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43457
43457
|
},
|
|
43458
43458
|
additionalTables: { attachedFiles: { schema: "id, filename, file" } }
|
|
43459
43459
|
}
|
|
43460
|
-
},
|
|
43460
|
+
}, g = {
|
|
43461
43461
|
default: {
|
|
43462
43462
|
uri: "http://www.iec.ch/61850/2003/SCL",
|
|
43463
43463
|
prefix: ""
|
|
@@ -43467,22 +43467,22 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43467
43467
|
prefix: "eIEC61850-6-100"
|
|
43468
43468
|
},
|
|
43469
43469
|
xsi: t
|
|
43470
|
-
},
|
|
43470
|
+
}, _ = {
|
|
43471
43471
|
rootElementName: "SCL",
|
|
43472
43472
|
singletonElements: te,
|
|
43473
43473
|
transparentElements: ["Private"],
|
|
43474
43474
|
elements: s,
|
|
43475
|
-
namespaces:
|
|
43475
|
+
namespaces: g,
|
|
43476
43476
|
attributes: f,
|
|
43477
43477
|
children: c,
|
|
43478
43478
|
parents: l,
|
|
43479
43479
|
descendants: u,
|
|
43480
43480
|
ancestors: ee,
|
|
43481
|
-
database:
|
|
43482
|
-
io:
|
|
43481
|
+
database: h,
|
|
43482
|
+
io: m,
|
|
43483
43483
|
definition: p,
|
|
43484
43484
|
types: re
|
|
43485
|
-
},
|
|
43485
|
+
}, v = {
|
|
43486
43486
|
AllocationRoleRef: [{
|
|
43487
43487
|
attribute: {
|
|
43488
43488
|
path: "allocationRole",
|
|
@@ -43867,7 +43867,7 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
43867
43867
|
target: ["Variable"],
|
|
43868
43868
|
companions: []
|
|
43869
43869
|
}]
|
|
43870
|
-
},
|
|
43870
|
+
}, y = {
|
|
43871
43871
|
Association: [{
|
|
43872
43872
|
attribute: { uuid: "lnUuid" },
|
|
43873
43873
|
target: ["LN", "LN0"],
|
|
@@ -44032,25 +44032,25 @@ var s = /* @__PURE__ */ "AccessControl.AccessPoint.Address.AllocationRole.Alloca
|
|
|
44032
44032
|
controlBlock: "cbName"
|
|
44033
44033
|
}
|
|
44034
44034
|
}]
|
|
44035
|
-
},
|
|
44036
|
-
new Set(Object.values(
|
|
44037
|
-
var
|
|
44035
|
+
}, ie = Object.keys(v), b = new Set(ie);
|
|
44036
|
+
new Set(Object.values(v).flatMap((e) => e.flatMap((e) => e.target)));
|
|
44037
|
+
var ae = "TEMPLATE", x = [
|
|
44038
44038
|
"Substation",
|
|
44039
44039
|
"VoltageLevel",
|
|
44040
44040
|
"Bay"
|
|
44041
|
-
],
|
|
44041
|
+
], S = [
|
|
44042
44042
|
"Application",
|
|
44043
44043
|
"Function",
|
|
44044
44044
|
"FunctionCategory",
|
|
44045
44045
|
"AllocationRole",
|
|
44046
44046
|
"Variable",
|
|
44047
44047
|
"BehaviorDescription"
|
|
44048
|
-
],
|
|
44048
|
+
], C = /* @__PURE__ */ new Set([
|
|
44049
44049
|
"Text",
|
|
44050
44050
|
"Private",
|
|
44051
44051
|
"Labels",
|
|
44052
44052
|
"Label"
|
|
44053
|
-
]),
|
|
44053
|
+
]), w = [
|
|
44054
44054
|
"ReportControl",
|
|
44055
44055
|
"LogControl",
|
|
44056
44056
|
"GSEControl",
|
|
@@ -44060,26 +44060,26 @@ var oe = "TEMPLATE", b = [
|
|
|
44060
44060
|
"ExtRef",
|
|
44061
44061
|
"DAI"
|
|
44062
44062
|
];
|
|
44063
|
-
|
|
44063
|
+
T({ roots: w }), T({
|
|
44064
44064
|
roots: ["ConnectedAP"],
|
|
44065
|
-
excluded: /* @__PURE__ */ new Set([...
|
|
44066
|
-
}),
|
|
44065
|
+
excluded: /* @__PURE__ */ new Set([...C, "PhysConn"])
|
|
44066
|
+
}), T({
|
|
44067
44067
|
roots: ["SubNetwork"],
|
|
44068
|
-
excluded:
|
|
44069
|
-
}),
|
|
44070
|
-
function
|
|
44068
|
+
excluded: T({ roots: ["ConnectedAP"] })
|
|
44069
|
+
}), oe();
|
|
44070
|
+
function T(e) {
|
|
44071
44071
|
let { roots: t, excluded: n } = e, r = u, i = t.flatMap((e) => [e, ...r[e] ?? []]);
|
|
44072
|
-
return new Set(i.filter((e) => !
|
|
44072
|
+
return new Set(i.filter((e) => !C.has(e) && !n?.has(e)));
|
|
44073
44073
|
}
|
|
44074
|
-
function
|
|
44074
|
+
function oe() {
|
|
44075
44075
|
let e = p.MinRequestedSCDFile.attributes.identityFields, t = ne.MinRequestedSCDFile;
|
|
44076
44076
|
return Object.keys(f.byTag.MinRequestedSCDFile).filter((n) => !e.includes(n) && !t.includes(n));
|
|
44077
44077
|
}
|
|
44078
|
-
var
|
|
44078
|
+
var E = p.LNode?.attributes?.identityFields ?? [], se = new Map(E.map((e) => [e, ce(e)]).filter(([, e]) => e in f.byTag.LNodeSpecNaming));
|
|
44079
44079
|
function ce(e) {
|
|
44080
44080
|
return `s${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
44081
44081
|
}
|
|
44082
|
-
var
|
|
44082
|
+
var le = [
|
|
44083
44083
|
{
|
|
44084
44084
|
name: "processName",
|
|
44085
44085
|
from: "Process"
|
|
@@ -44104,7 +44104,7 @@ var D = [
|
|
|
44104
44104
|
name: "cNodeName",
|
|
44105
44105
|
from: "ConnectivityNode"
|
|
44106
44106
|
}
|
|
44107
|
-
],
|
|
44107
|
+
], ue = {
|
|
44108
44108
|
ConnectivityNode: {
|
|
44109
44109
|
follows: "self",
|
|
44110
44110
|
attributes: [{
|
|
@@ -44114,13 +44114,13 @@ var D = [
|
|
|
44114
44114
|
},
|
|
44115
44115
|
NeutralPoint: {
|
|
44116
44116
|
follows: "connectivityNode",
|
|
44117
|
-
attributes:
|
|
44117
|
+
attributes: le
|
|
44118
44118
|
},
|
|
44119
44119
|
Terminal: {
|
|
44120
44120
|
follows: "connectivityNode",
|
|
44121
|
-
attributes:
|
|
44121
|
+
attributes: le
|
|
44122
44122
|
}
|
|
44123
|
-
},
|
|
44123
|
+
}, D = {
|
|
44124
44124
|
direct: "direct",
|
|
44125
44125
|
lnode: "lnode",
|
|
44126
44126
|
iedAddress: "ied-address",
|
|
@@ -44128,7 +44128,7 @@ var D = [
|
|
|
44128
44128
|
ancestorName: "ancestor-name",
|
|
44129
44129
|
scopedName: "scoped-name",
|
|
44130
44130
|
unsupported: "unsupported"
|
|
44131
|
-
},
|
|
44131
|
+
}, O = {
|
|
44132
44132
|
LN: [{
|
|
44133
44133
|
attribute: "lnType",
|
|
44134
44134
|
target: "LNodeType"
|
|
@@ -44180,7 +44180,7 @@ var D = [
|
|
|
44180
44180
|
}
|
|
44181
44181
|
}]
|
|
44182
44182
|
};
|
|
44183
|
-
function
|
|
44183
|
+
function de(e) {
|
|
44184
44184
|
let t = {};
|
|
44185
44185
|
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44186
44186
|
let r = t[e.resolution] ??= /* @__PURE__ */ new Map();
|
|
@@ -44195,7 +44195,7 @@ function le(e) {
|
|
|
44195
44195
|
}
|
|
44196
44196
|
return t;
|
|
44197
44197
|
}
|
|
44198
|
-
function
|
|
44198
|
+
function fe(e) {
|
|
44199
44199
|
let t = /* @__PURE__ */ new Map();
|
|
44200
44200
|
for (let [n, r] of Object.entries(e)) t.set(n, r.map((e) => ({
|
|
44201
44201
|
uuidAttr: e.attribute.uuid,
|
|
@@ -44205,7 +44205,7 @@ function ue(e) {
|
|
|
44205
44205
|
})));
|
|
44206
44206
|
return t;
|
|
44207
44207
|
}
|
|
44208
|
-
function
|
|
44208
|
+
function pe(e) {
|
|
44209
44209
|
let t = /* @__PURE__ */ new Map();
|
|
44210
44210
|
for (let [n, r] of Object.entries(e)) for (let e of r) {
|
|
44211
44211
|
let r = t.get(e.target) ?? [];
|
|
@@ -44217,11 +44217,11 @@ function de(e) {
|
|
|
44217
44217
|
}
|
|
44218
44218
|
return t;
|
|
44219
44219
|
}
|
|
44220
|
-
function
|
|
44220
|
+
function me(e) {
|
|
44221
44221
|
let { tagName: t, derived: n, rootConstraints: r } = e;
|
|
44222
44222
|
return {
|
|
44223
44223
|
...n,
|
|
44224
|
-
attributes: n.attributes.map((e) =>
|
|
44224
|
+
attributes: n.attributes.map((e) => he({
|
|
44225
44225
|
tagName: t,
|
|
44226
44226
|
attribute: e,
|
|
44227
44227
|
rootConstraints: r
|
|
@@ -44231,51 +44231,51 @@ function fe(e) {
|
|
|
44231
44231
|
} : e)
|
|
44232
44232
|
};
|
|
44233
44233
|
}
|
|
44234
|
-
function
|
|
44234
|
+
function he(e) {
|
|
44235
44235
|
let { rootConstraints: t } = e;
|
|
44236
|
-
return t.some((t) =>
|
|
44236
|
+
return t.some((t) => ge({
|
|
44237
44237
|
...e,
|
|
44238
44238
|
keyref: t
|
|
44239
44239
|
}));
|
|
44240
44240
|
}
|
|
44241
|
-
function
|
|
44241
|
+
function ge(e) {
|
|
44242
44242
|
let { keyref: t, tagName: n, attribute: r, rootConstraints: i } = e;
|
|
44243
44243
|
if (t.kind !== "keyref" || t.fields.length !== 1) return !1;
|
|
44244
44244
|
let a = t.selector.some((e) => e.steps.at(-1)?.name === n), o = t.fields[0].some((e) => e.steps.length === 0 && e.attribute?.name === r.name), s = i.find((e) => e.kind !== "keyref" && e.name === t.refer?.name), c = s?.selector.every((e) => !e.deep && e.steps.length === 1), l = s?.selector.some((e) => e.steps[0]?.name === r.from);
|
|
44245
44245
|
return a && o && c === !0 && l === !0;
|
|
44246
44246
|
}
|
|
44247
|
-
var
|
|
44248
|
-
|
|
44249
|
-
|
|
44250
|
-
|
|
44251
|
-
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
],
|
|
44255
|
-
|
|
44256
|
-
var
|
|
44247
|
+
var k = de(v), A = [
|
|
44248
|
+
D.direct,
|
|
44249
|
+
D.lnode,
|
|
44250
|
+
D.iedAddress,
|
|
44251
|
+
D.behaviorDescription,
|
|
44252
|
+
D.ancestorName,
|
|
44253
|
+
D.scopedName
|
|
44254
|
+
], j = [...A, D.unsupported];
|
|
44255
|
+
_e(), new Map(Object.values(v).flatMap((e) => e.flatMap((e) => "nameScope" in e ? e.target.map((t) => [t, e.nameScope]) : [])));
|
|
44256
|
+
var M = fe(v), N = new Map(Object.entries(v).flatMap(([e, t]) => t.filter((e) => e.attribute.path === "mappedDoName" || e.attribute.path === "mappedDaName").map((t) => [e, {
|
|
44257
44257
|
path: t.attribute.path,
|
|
44258
44258
|
uuid: t.attribute.uuid
|
|
44259
|
-
}]))),
|
|
44260
|
-
|
|
44259
|
+
}]))), P = [...E, "lnUuid"];
|
|
44260
|
+
ve(), new Map([...N].map(([e, t]) => {
|
|
44261
44261
|
let r = p[e]?.attributes.details[t.path]?.type;
|
|
44262
44262
|
return [e, n(r)];
|
|
44263
|
-
})), [...new Set(Object.values(
|
|
44263
|
+
})), [...new Set(Object.values(v).flatMap((e) => e.map((e) => e.attribute.uuid)))], new Map(Object.entries(ue).map(([e, t]) => [e, me({
|
|
44264
44264
|
tagName: e,
|
|
44265
44265
|
derived: t,
|
|
44266
44266
|
rootConstraints: p.SCL?.constraints ?? []
|
|
44267
44267
|
})]));
|
|
44268
|
-
var
|
|
44269
|
-
new Set(
|
|
44270
|
-
function
|
|
44268
|
+
var F = new Map(Object.entries(O).map(([e, t]) => [e, [...new Set(t.map((e) => e.attribute))]])), I = pe(O);
|
|
44269
|
+
new Set(I.keys());
|
|
44270
|
+
function _e() {
|
|
44271
44271
|
let e = /* @__PURE__ */ new Map();
|
|
44272
|
-
for (let t of
|
|
44272
|
+
for (let t of j) for (let [n, r] of k[t] ?? []) e.set(n, [...e.get(n) ?? [], ...r]);
|
|
44273
44273
|
return e;
|
|
44274
44274
|
}
|
|
44275
|
-
function
|
|
44276
|
-
let e = [["LNode",
|
|
44275
|
+
function ve() {
|
|
44276
|
+
let e = [["LNode", P]];
|
|
44277
44277
|
for (let t of ["DOS", "SDS"]) {
|
|
44278
|
-
let n =
|
|
44278
|
+
let n = N.get(t);
|
|
44279
44279
|
n && e.push([t, [
|
|
44280
44280
|
"name",
|
|
44281
44281
|
"ix",
|
|
@@ -44285,7 +44285,7 @@ function be() {
|
|
|
44285
44285
|
}
|
|
44286
44286
|
return new Map(e);
|
|
44287
44287
|
}
|
|
44288
|
-
var
|
|
44288
|
+
var L = {
|
|
44289
44289
|
AccessPoint: { type: "transparent" },
|
|
44290
44290
|
Server: { type: "transparent" },
|
|
44291
44291
|
Private: { type: "transparent" },
|
|
@@ -44381,17 +44381,17 @@ var F = {
|
|
|
44381
44381
|
Variable: { type: "name" },
|
|
44382
44382
|
Process: { type: "name" }
|
|
44383
44383
|
};
|
|
44384
|
-
new Set(Object.entries(
|
|
44385
|
-
var
|
|
44384
|
+
new Set(Object.entries(L).filter(([, e]) => e.type === "signal").map(([e]) => e));
|
|
44385
|
+
var ye = [
|
|
44386
44386
|
"lnClass",
|
|
44387
44387
|
"prefix",
|
|
44388
44388
|
"inst"
|
|
44389
44389
|
];
|
|
44390
|
-
new Set(Object.values(
|
|
44390
|
+
new Set(Object.values(L).flatMap((e) => {
|
|
44391
44391
|
switch (e.type) {
|
|
44392
44392
|
case "transparent": return [];
|
|
44393
44393
|
case "name": return ["name"];
|
|
44394
|
-
case "lnClass": return [...
|
|
44394
|
+
case "lnClass": return [...ye];
|
|
44395
44395
|
case "lnode": return [
|
|
44396
44396
|
e.prefix,
|
|
44397
44397
|
e.lnClass,
|
|
@@ -44406,69 +44406,69 @@ new Set(Object.values(F).flatMap((e) => {
|
|
|
44406
44406
|
];
|
|
44407
44407
|
}
|
|
44408
44408
|
}));
|
|
44409
|
-
var
|
|
44410
|
-
let n = t.filter(
|
|
44409
|
+
var R = /* @__PURE__ */ new Set(["LN", "LN0"]), z = new Map(Object.entries(v).flatMap(([e, t]) => {
|
|
44410
|
+
let n = t.filter(be);
|
|
44411
44411
|
return n.length > 0 ? [[e, n]] : [];
|
|
44412
44412
|
}));
|
|
44413
|
-
[...
|
|
44414
|
-
function
|
|
44415
|
-
return e.resolution ===
|
|
44413
|
+
[...R, ...[...z.values()].flatMap((e) => e.flatMap((e) => e.target))], new Map([["LNode", new Set(P)], ...[...z].map(([e, t]) => [e, new Set(t.map((e) => e.attribute.uuid))])]);
|
|
44414
|
+
function be(e) {
|
|
44415
|
+
return e.resolution === D.iedAddress || e.target.every((e) => R.has(e));
|
|
44416
44416
|
}
|
|
44417
|
-
function
|
|
44417
|
+
function B(e) {
|
|
44418
44418
|
let { fullObject: t, ...n } = e;
|
|
44419
44419
|
return o({
|
|
44420
44420
|
...n,
|
|
44421
|
-
dialecteConfig:
|
|
44421
|
+
dialecteConfig: _,
|
|
44422
44422
|
fullObject: t
|
|
44423
44423
|
});
|
|
44424
44424
|
}
|
|
44425
|
-
function
|
|
44426
|
-
return
|
|
44425
|
+
function xe(e) {
|
|
44426
|
+
return V(e) > 0;
|
|
44427
44427
|
}
|
|
44428
|
-
function
|
|
44428
|
+
function V(e) {
|
|
44429
44429
|
if (!e) return 0;
|
|
44430
44430
|
let t = e.minOccurs ?? 0;
|
|
44431
44431
|
if (e.kind === "element" || e.kind === "any") return t;
|
|
44432
|
-
let n = e.particles.map((e) =>
|
|
44432
|
+
let n = e.particles.map((e) => V(e));
|
|
44433
44433
|
return e.kind === "choice" ? n.length === 0 ? 0 : t * Math.min(...n) : t * n.reduce((e, t) => e + t, 0);
|
|
44434
44434
|
}
|
|
44435
|
-
function
|
|
44435
|
+
function Se(e) {
|
|
44436
44436
|
let t = /* @__PURE__ */ new Set();
|
|
44437
|
-
return
|
|
44437
|
+
return H({
|
|
44438
44438
|
particle: e,
|
|
44439
44439
|
tags: t
|
|
44440
44440
|
}), t;
|
|
44441
44441
|
}
|
|
44442
|
-
function
|
|
44442
|
+
function H(e) {
|
|
44443
44443
|
let { particle: t, tags: n } = e;
|
|
44444
44444
|
if (!(!t || (t.minOccurs ?? 0) === 0)) if (t.kind === "element") n.add(t.name);
|
|
44445
44445
|
else if (t.kind === "any") n.add("");
|
|
44446
|
-
else for (let e of t.particles)
|
|
44446
|
+
else for (let e of t.particles) H({
|
|
44447
44447
|
particle: e,
|
|
44448
44448
|
tags: n
|
|
44449
44449
|
});
|
|
44450
44450
|
}
|
|
44451
|
-
function
|
|
44452
|
-
return
|
|
44451
|
+
function U(e) {
|
|
44452
|
+
return x.includes(e);
|
|
44453
44453
|
}
|
|
44454
|
-
function
|
|
44454
|
+
function Ce(e) {
|
|
44455
44455
|
let { tagName: t, definition: n } = e;
|
|
44456
|
-
if (
|
|
44456
|
+
if (U(t) || !xe(n.contentModel)) return !1;
|
|
44457
44457
|
let { identityFields: r = [], sequence: i } = n.attributes;
|
|
44458
|
-
return r.length === 0 && !i.includes("uuid") ? !0 : [...
|
|
44458
|
+
return r.length === 0 && !i.includes("uuid") ? !0 : [...Se(n.contentModel)].every((e) => b.has(e));
|
|
44459
44459
|
}
|
|
44460
|
-
var
|
|
44460
|
+
var we = _.definition, Te = new Set(Object.entries(we).filter(([e, t]) => Ce({
|
|
44461
44461
|
tagName: e,
|
|
44462
44462
|
definition: t
|
|
44463
44463
|
})).map(([e]) => e));
|
|
44464
|
-
new Set(Object.values(
|
|
44465
|
-
function
|
|
44464
|
+
new Set(Object.values(_.namespaces).map((e) => e.prefix).filter((e) => e !== _.namespaces.default.prefix)), [..._.transparentElements, ...Te];
|
|
44465
|
+
function Ee(e) {
|
|
44466
44466
|
switch (e.type) {
|
|
44467
44467
|
case "transparent": return () => null;
|
|
44468
44468
|
case "name": {
|
|
44469
44469
|
let t = e.separator ?? "/";
|
|
44470
44470
|
return (e) => {
|
|
44471
|
-
let n =
|
|
44471
|
+
let n = B({
|
|
44472
44472
|
record: e,
|
|
44473
44473
|
name: "name"
|
|
44474
44474
|
});
|
|
@@ -44479,25 +44479,25 @@ function Oe(e) {
|
|
|
44479
44479
|
};
|
|
44480
44480
|
}
|
|
44481
44481
|
case "lnClass": return (e) => {
|
|
44482
|
-
let t =
|
|
44482
|
+
let t = B({
|
|
44483
44483
|
record: e,
|
|
44484
44484
|
name: "lnClass",
|
|
44485
44485
|
defaults: "none"
|
|
44486
44486
|
});
|
|
44487
44487
|
return t ? {
|
|
44488
|
-
segment:
|
|
44489
|
-
prefix:
|
|
44488
|
+
segment: G({
|
|
44489
|
+
prefix: B({
|
|
44490
44490
|
record: e,
|
|
44491
44491
|
name: "prefix",
|
|
44492
44492
|
defaults: "none"
|
|
44493
44493
|
}),
|
|
44494
44494
|
lnClass: t,
|
|
44495
|
-
inst:
|
|
44495
|
+
inst: B({
|
|
44496
44496
|
record: e,
|
|
44497
44497
|
name: "inst",
|
|
44498
44498
|
defaults: "none",
|
|
44499
44499
|
fullObject: !0
|
|
44500
|
-
})?.value ??
|
|
44500
|
+
})?.value ?? B({
|
|
44501
44501
|
record: e,
|
|
44502
44502
|
name: "lnInst",
|
|
44503
44503
|
defaults: "none",
|
|
@@ -44508,7 +44508,7 @@ function Oe(e) {
|
|
|
44508
44508
|
} : null;
|
|
44509
44509
|
};
|
|
44510
44510
|
case "lnode": return (t, n) => {
|
|
44511
|
-
let r =
|
|
44511
|
+
let r = ke({
|
|
44512
44512
|
strategy: e,
|
|
44513
44513
|
record: t,
|
|
44514
44514
|
specNaming: n?.specNaming
|
|
@@ -44519,7 +44519,7 @@ function Oe(e) {
|
|
|
44519
44519
|
} : null;
|
|
44520
44520
|
};
|
|
44521
44521
|
case "attribute": return (t) => {
|
|
44522
|
-
let n =
|
|
44522
|
+
let n = B({
|
|
44523
44523
|
record: t,
|
|
44524
44524
|
name: e.attr,
|
|
44525
44525
|
defaults: "none"
|
|
@@ -44530,7 +44530,7 @@ function Oe(e) {
|
|
|
44530
44530
|
} : null;
|
|
44531
44531
|
};
|
|
44532
44532
|
case "signal": return (t, n) => {
|
|
44533
|
-
let r =
|
|
44533
|
+
let r = De({
|
|
44534
44534
|
strategy: e,
|
|
44535
44535
|
record: t,
|
|
44536
44536
|
siblings: n?.siblings ?? [t]
|
|
@@ -44542,104 +44542,104 @@ function Oe(e) {
|
|
|
44542
44542
|
};
|
|
44543
44543
|
}
|
|
44544
44544
|
}
|
|
44545
|
-
function
|
|
44546
|
-
let { strategy: t, record: n, siblings: r } = e, i =
|
|
44545
|
+
function De(e) {
|
|
44546
|
+
let { strategy: t, record: n, siblings: r } = e, i = B({
|
|
44547
44547
|
record: n,
|
|
44548
44548
|
name: t.name,
|
|
44549
44549
|
defaults: "none"
|
|
44550
44550
|
});
|
|
44551
|
-
return i ? r.filter((e) => e.tagName === n.tagName &&
|
|
44551
|
+
return i ? r.filter((e) => e.tagName === n.tagName && B({
|
|
44552
44552
|
record: e,
|
|
44553
44553
|
name: t.name,
|
|
44554
44554
|
defaults: "none"
|
|
44555
|
-
}) === i).length <= 1 ? i :
|
|
44555
|
+
}) === i).length <= 1 ? i : Oe({
|
|
44556
44556
|
strategy: t,
|
|
44557
44557
|
record: n,
|
|
44558
44558
|
name: i
|
|
44559
44559
|
}) : null;
|
|
44560
44560
|
}
|
|
44561
|
-
function
|
|
44562
|
-
let { strategy: t, record: n, name: r } = e, i =
|
|
44561
|
+
function Oe(e) {
|
|
44562
|
+
let { strategy: t, record: n, name: r } = e, i = B({
|
|
44563
44563
|
record: n,
|
|
44564
44564
|
name: t.instance,
|
|
44565
44565
|
defaults: "none",
|
|
44566
44566
|
fullObject: !0
|
|
44567
|
-
})?.value ??
|
|
44567
|
+
})?.value ?? Ae(n, t.instance), a = t.data ? B({
|
|
44568
44568
|
record: n,
|
|
44569
44569
|
name: t.data,
|
|
44570
44570
|
defaults: "none"
|
|
44571
44571
|
}) : void 0;
|
|
44572
44572
|
return `${r}${i ? `(${i})` : ""}${a ? `.${a}` : ""}`;
|
|
44573
44573
|
}
|
|
44574
|
-
function
|
|
44575
|
-
let { strategy: t, record: n, specNaming: r } = e, i =
|
|
44574
|
+
function ke(e) {
|
|
44575
|
+
let { strategy: t, record: n, specNaming: r } = e, i = B({
|
|
44576
44576
|
record: n,
|
|
44577
44577
|
name: t.ied,
|
|
44578
44578
|
defaults: "none"
|
|
44579
44579
|
}), a = i && i !== "None" && r ? {
|
|
44580
|
-
prefix:
|
|
44580
|
+
prefix: B({
|
|
44581
44581
|
record: r,
|
|
44582
|
-
name:
|
|
44582
|
+
name: W(t.prefix),
|
|
44583
44583
|
defaults: "none"
|
|
44584
44584
|
}),
|
|
44585
|
-
lnClass:
|
|
44585
|
+
lnClass: B({
|
|
44586
44586
|
record: r,
|
|
44587
|
-
name:
|
|
44587
|
+
name: W(t.lnClass),
|
|
44588
44588
|
defaults: "none",
|
|
44589
44589
|
fullObject: !0
|
|
44590
|
-
})?.value ??
|
|
44590
|
+
})?.value ?? B({
|
|
44591
44591
|
record: n,
|
|
44592
44592
|
name: t.lnClass,
|
|
44593
44593
|
defaults: "none"
|
|
44594
44594
|
}),
|
|
44595
|
-
inst:
|
|
44595
|
+
inst: B({
|
|
44596
44596
|
record: r,
|
|
44597
|
-
name:
|
|
44597
|
+
name: W(t.inst),
|
|
44598
44598
|
defaults: "none"
|
|
44599
44599
|
})
|
|
44600
44600
|
} : {
|
|
44601
|
-
prefix:
|
|
44601
|
+
prefix: B({
|
|
44602
44602
|
record: n,
|
|
44603
44603
|
name: t.prefix,
|
|
44604
44604
|
defaults: "none"
|
|
44605
44605
|
}),
|
|
44606
|
-
lnClass:
|
|
44606
|
+
lnClass: B({
|
|
44607
44607
|
record: n,
|
|
44608
44608
|
name: t.lnClass,
|
|
44609
44609
|
defaults: "none"
|
|
44610
44610
|
}),
|
|
44611
|
-
inst:
|
|
44611
|
+
inst: B({
|
|
44612
44612
|
record: n,
|
|
44613
44613
|
name: t.inst,
|
|
44614
44614
|
defaults: "none"
|
|
44615
44615
|
})
|
|
44616
44616
|
};
|
|
44617
|
-
return a.lnClass ?
|
|
44617
|
+
return a.lnClass ? G({
|
|
44618
44618
|
prefix: a.prefix,
|
|
44619
44619
|
lnClass: a.lnClass,
|
|
44620
44620
|
inst: a.inst
|
|
44621
44621
|
}) : null;
|
|
44622
44622
|
}
|
|
44623
|
-
function
|
|
44624
|
-
return
|
|
44623
|
+
function W(e) {
|
|
44624
|
+
return se.get(e) ?? e;
|
|
44625
44625
|
}
|
|
44626
|
-
function
|
|
44626
|
+
function Ae(e, t) {
|
|
44627
44627
|
return r({
|
|
44628
|
-
dialecteConfig:
|
|
44628
|
+
dialecteConfig: _,
|
|
44629
44629
|
record: e,
|
|
44630
44630
|
attributeName: t
|
|
44631
44631
|
}).default;
|
|
44632
44632
|
}
|
|
44633
|
-
var
|
|
44634
|
-
function
|
|
44635
|
-
let n =
|
|
44633
|
+
var je = Object.fromEntries(Object.entries(L).map(([e, t]) => [e, Ee(t)]));
|
|
44634
|
+
function Me(e, t) {
|
|
44635
|
+
let n = je[e.tagName];
|
|
44636
44636
|
return n ? n(e, t) : null;
|
|
44637
44637
|
}
|
|
44638
|
-
function
|
|
44638
|
+
function G(e) {
|
|
44639
44639
|
let { prefix: t, lnClass: n, inst: r } = e;
|
|
44640
44640
|
return `${t ?? ""}${n}${r ?? ""}`;
|
|
44641
44641
|
}
|
|
44642
|
-
function
|
|
44642
|
+
function Ne(e) {
|
|
44643
44643
|
let [t, n] = e.companions;
|
|
44644
44644
|
return {
|
|
44645
44645
|
doAttribute: t?.name,
|
|
@@ -44647,12 +44647,12 @@ function Fe(e) {
|
|
|
44647
44647
|
doRequired: t?.required === !0
|
|
44648
44648
|
};
|
|
44649
44649
|
}
|
|
44650
|
-
function
|
|
44650
|
+
function Pe(e) {
|
|
44651
44651
|
return e.controlBlock ? "cb" : e.accessPoint ? "ap" : e.lnClass ? "ln" : "ld";
|
|
44652
44652
|
}
|
|
44653
|
-
var
|
|
44653
|
+
var Fe = new Map(Object.values(y).flatMap((e) => e.flatMap((e) => e.target.map((t) => [t, Pe(e.tuple)])))), K = new Map([...new Set(Fe.values())].map((e) => [e, [...Fe].flatMap(([t, n]) => n === e ? [t] : [])]));
|
|
44654
44654
|
r({
|
|
44655
|
-
dialecteConfig:
|
|
44655
|
+
dialecteConfig: _,
|
|
44656
44656
|
record: {
|
|
44657
44657
|
tagName: "LN0",
|
|
44658
44658
|
parent: null,
|
|
@@ -44660,7 +44660,7 @@ r({
|
|
|
44660
44660
|
},
|
|
44661
44661
|
attributeName: "lnClass"
|
|
44662
44662
|
}).fixed;
|
|
44663
|
-
var Ie = [...new Set(Object.values(
|
|
44663
|
+
var Ie = [...new Set(Object.values(y).flatMap((e) => e.flatMap((e) => Object.keys(e.tuple).filter((e) => e !== "ied"))))], Le = e({
|
|
44664
44664
|
MAPPING_CHOICE_UNKNOWN: {
|
|
44665
44665
|
code: "SCL1001",
|
|
44666
44666
|
message: "The choice concerns an element the template does not bring"
|
|
@@ -44732,48 +44732,54 @@ var Ie = [...new Set(Object.values(_).flatMap((e) => e.flatMap((e) => Object.key
|
|
|
44732
44732
|
DATAFLOW_LINK_TARGET_MISMATCH: {
|
|
44733
44733
|
code: "SCL3001",
|
|
44734
44734
|
message: "The signal cannot be implemented by an element of this kind"
|
|
44735
|
+
},
|
|
44736
|
+
CHILD_LEFT_BEHIND: {
|
|
44737
|
+
code: "SCL4001",
|
|
44738
|
+
message: "The commit deletes a record and leaves one of its children behind"
|
|
44735
44739
|
}
|
|
44736
44740
|
});
|
|
44737
|
-
new Set(a(p.LNode.attributes.details.lnClass.type)), new Map([...
|
|
44738
|
-
let n = t.filter((e) => e.resolution ===
|
|
44741
|
+
new Set(a(p.LNode.attributes.details.lnClass.type)), new Map([...M].flatMap(([e, t]) => {
|
|
44742
|
+
let n = t.filter((e) => e.resolution === D.iedAddress);
|
|
44739
44743
|
return n.length > 0 ? [[e, n]] : [];
|
|
44740
44744
|
})), new Set([...c.LN0, ...c.LN].filter((e) => "datSet" in f.byTag[e]));
|
|
44741
|
-
var
|
|
44742
|
-
function
|
|
44743
|
-
let t =
|
|
44745
|
+
var Re = /* @__PURE__ */ new Map();
|
|
44746
|
+
function ze(e) {
|
|
44747
|
+
let t = Re.get(e);
|
|
44744
44748
|
if (t) return t;
|
|
44745
44749
|
let n = p[e]?.attributes?.identityFields ?? [], r = new Set(n);
|
|
44746
|
-
return
|
|
44750
|
+
return Re.set(e, r), r;
|
|
44747
44751
|
}
|
|
44748
|
-
new Set(
|
|
44749
|
-
|
|
44752
|
+
new Set(_.transparentElements);
|
|
44753
|
+
var Be = "scl::beforeCommit::unusedTypes";
|
|
44754
|
+
`${Be}`, `${Be}`;
|
|
44755
|
+
function Ve(e) {
|
|
44750
44756
|
return e.targetByAttribute !== void 0 && e.tuple.controlBlock !== void 0;
|
|
44751
44757
|
}
|
|
44752
|
-
function
|
|
44758
|
+
function q(e) {
|
|
44753
44759
|
let { pairs: t, kind: n } = e;
|
|
44754
|
-
return t.find((e) =>
|
|
44760
|
+
return t.find((e) => Pe(e.tuple) === n);
|
|
44755
44761
|
}
|
|
44756
|
-
var
|
|
44757
|
-
function
|
|
44758
|
-
let e =
|
|
44759
|
-
pairs:
|
|
44762
|
+
var He = K.get("cb") ?? [], J = Ue();
|
|
44763
|
+
function Ue() {
|
|
44764
|
+
let e = q({
|
|
44765
|
+
pairs: y.ExtRef,
|
|
44760
44766
|
kind: "cb"
|
|
44761
44767
|
});
|
|
44762
|
-
return i(e &&
|
|
44768
|
+
return i(e && Ve(e), {
|
|
44763
44769
|
key: "ASSERTION_FAILED",
|
|
44764
44770
|
detail: "an ExtRef names the control block publishing its signal"
|
|
44765
44771
|
}), e;
|
|
44766
44772
|
}
|
|
44767
|
-
K.get("ln"), K.get("ap"), K.get("ld"), new Set(
|
|
44768
|
-
var
|
|
44773
|
+
K.get("ln"), K.get("ap"), K.get("ld"), new Set(He.flatMap((e) => u[e]).filter((e) => e in y));
|
|
44774
|
+
var We = [
|
|
44769
44775
|
"ln",
|
|
44770
44776
|
"ld",
|
|
44771
44777
|
"ap"
|
|
44772
44778
|
];
|
|
44773
|
-
|
|
44774
|
-
function
|
|
44775
|
-
let e =
|
|
44776
|
-
pairs:
|
|
44779
|
+
We[We.length - 1], Ge();
|
|
44780
|
+
function Ge() {
|
|
44781
|
+
let e = q({
|
|
44782
|
+
pairs: y.IEDName,
|
|
44777
44783
|
kind: "ap"
|
|
44778
44784
|
});
|
|
44779
44785
|
return i(e?.tuple.accessPoint, {
|
|
@@ -44781,17 +44787,17 @@ function Ue() {
|
|
|
44781
44787
|
detail: "an IEDName names the access point it registers"
|
|
44782
44788
|
}), e.tuple.accessPoint;
|
|
44783
44789
|
}
|
|
44784
|
-
var
|
|
44785
|
-
SourceRef:
|
|
44786
|
-
ControlRef:
|
|
44790
|
+
var Ke = {
|
|
44791
|
+
SourceRef: qe(v.SourceRef),
|
|
44792
|
+
ControlRef: qe(v.ControlRef)
|
|
44787
44793
|
};
|
|
44788
|
-
function
|
|
44789
|
-
let t = e.find((e) => e.resolution ===
|
|
44794
|
+
function qe(e) {
|
|
44795
|
+
let t = e.find((e) => e.resolution === D.lnode), n = e.find((e) => e.resolution === D.iedAddress);
|
|
44790
44796
|
i(t && n, {
|
|
44791
44797
|
key: "ASSERTION_FAILED",
|
|
44792
44798
|
detail: "a signal names a logical node and the element implementing it"
|
|
44793
44799
|
});
|
|
44794
|
-
let { doAttribute: r, daAttribute: a } =
|
|
44800
|
+
let { doAttribute: r, daAttribute: a } = Ne(t);
|
|
44795
44801
|
return {
|
|
44796
44802
|
specification: {
|
|
44797
44803
|
uuid: t.attribute.uuid,
|
|
@@ -44811,35 +44817,35 @@ function Ge(e) {
|
|
|
44811
44817
|
}))
|
|
44812
44818
|
};
|
|
44813
44819
|
}
|
|
44814
|
-
new Set(Object.values(
|
|
44815
|
-
function
|
|
44816
|
-
let e = new Map(Object.entries(
|
|
44820
|
+
new Set(Object.values(Ke).flatMap((e) => e.further.flatMap((e) => e.targets)));
|
|
44821
|
+
function Je() {
|
|
44822
|
+
let e = new Map(Object.entries(O)), t = c.DataTypeTemplates.filter((t) => Y({
|
|
44817
44823
|
typeTag: t,
|
|
44818
44824
|
pairsByReferrer: e
|
|
44819
|
-
}).length > 0), n =
|
|
44820
|
-
values:
|
|
44825
|
+
}).length > 0), n = O.LNode[0].target, r = X({
|
|
44826
|
+
values: Y({
|
|
44821
44827
|
typeTag: n,
|
|
44822
44828
|
pairsByReferrer: e
|
|
44823
|
-
}).map((n) =>
|
|
44829
|
+
}).map((n) => Ye({
|
|
44824
44830
|
memberTag: n,
|
|
44825
44831
|
typeTags: t,
|
|
44826
44832
|
pairsByReferrer: e
|
|
44827
44833
|
}).target),
|
|
44828
44834
|
detail: "the members of the logical node type point at one type"
|
|
44829
|
-
}), i =
|
|
44835
|
+
}), i = Qe({ tags: t }), a = Qe({ tags: t.flatMap((t) => Y({
|
|
44830
44836
|
typeTag: t,
|
|
44831
44837
|
pairsByReferrer: e
|
|
44832
|
-
})) }), o = new Map(t.map((n) => [n,
|
|
44838
|
+
})) }), o = new Map(t.map((n) => [n, Xe({
|
|
44833
44839
|
typeTag: n,
|
|
44834
44840
|
typeTags: t,
|
|
44835
44841
|
pairsByReferrer: e,
|
|
44836
44842
|
objectType: r,
|
|
44837
44843
|
idAttribute: i,
|
|
44838
44844
|
nameAttribute: a
|
|
44839
|
-
})])), s = [...o.values()].flatMap((e) => [...e.members.values()]).filter((e) => !e.continuesObject), l =
|
|
44845
|
+
})])), s = [...o.values()].flatMap((e) => [...e.members.values()]).filter((e) => !e.continuesObject), l = X({
|
|
44840
44846
|
values: s.map((e) => e.nextType),
|
|
44841
44847
|
detail: "the members of the data attribute point at one type"
|
|
44842
|
-
}), { equals: u } =
|
|
44848
|
+
}), { equals: u } = $e({ conditions: s.map((e) => e.when) });
|
|
44843
44849
|
return {
|
|
44844
44850
|
rootType: n,
|
|
44845
44851
|
objectType: r,
|
|
@@ -44848,11 +44854,11 @@ function Ke() {
|
|
|
44848
44854
|
types: o
|
|
44849
44855
|
};
|
|
44850
44856
|
}
|
|
44851
|
-
function
|
|
44857
|
+
function Y(e) {
|
|
44852
44858
|
let { typeTag: t, pairsByReferrer: n } = e;
|
|
44853
44859
|
return c[t].filter((e) => n.has(e));
|
|
44854
44860
|
}
|
|
44855
|
-
function
|
|
44861
|
+
function Ye(e) {
|
|
44856
44862
|
let { memberTag: t, typeTags: n, pairsByReferrer: r } = e, a = r.get(t)?.find((e) => n.includes(e.target));
|
|
44857
44863
|
return i(a, {
|
|
44858
44864
|
key: "ASSERTION_FAILED",
|
|
@@ -44860,14 +44866,14 @@ function qe(e) {
|
|
|
44860
44866
|
meta: { memberTag: t }
|
|
44861
44867
|
}), a;
|
|
44862
44868
|
}
|
|
44863
|
-
function
|
|
44869
|
+
function Xe(e) {
|
|
44864
44870
|
let { typeTag: t, typeTags: n, pairsByReferrer: r, objectType: i, idAttribute: a, nameAttribute: o } = e;
|
|
44865
44871
|
return {
|
|
44866
44872
|
idAttribute: a,
|
|
44867
|
-
members: new Map(
|
|
44873
|
+
members: new Map(Y({
|
|
44868
44874
|
typeTag: t,
|
|
44869
44875
|
pairsByReferrer: r
|
|
44870
|
-
}).map((e) => [e,
|
|
44876
|
+
}).map((e) => [e, Ze({
|
|
44871
44877
|
memberTag: e,
|
|
44872
44878
|
typeTags: n,
|
|
44873
44879
|
pairsByReferrer: r,
|
|
@@ -44876,8 +44882,8 @@ function Je(e) {
|
|
|
44876
44882
|
})]))
|
|
44877
44883
|
};
|
|
44878
44884
|
}
|
|
44879
|
-
function
|
|
44880
|
-
let { memberTag: t, typeTags: n, pairsByReferrer: r, objectType: i, nameAttribute: a } = e, o =
|
|
44885
|
+
function Ze(e) {
|
|
44886
|
+
let { memberTag: t, typeTags: n, pairsByReferrer: r, objectType: i, nameAttribute: a } = e, o = Ye({
|
|
44881
44887
|
memberTag: t,
|
|
44882
44888
|
typeTags: n,
|
|
44883
44889
|
pairsByReferrer: r
|
|
@@ -44890,51 +44896,51 @@ function Ye(e) {
|
|
|
44890
44896
|
continuesObject: o.target === i
|
|
44891
44897
|
};
|
|
44892
44898
|
}
|
|
44893
|
-
function
|
|
44894
|
-
let { tags: t } = e, [n, ...r] = t.map(
|
|
44895
|
-
return
|
|
44899
|
+
function Qe(e) {
|
|
44900
|
+
let { tags: t } = e, [n, ...r] = t.map(ze);
|
|
44901
|
+
return X({
|
|
44896
44902
|
values: [...n ?? []].filter((e) => r.every((t) => t.has(e))),
|
|
44897
44903
|
detail: "the tags of the data model share one identity field"
|
|
44898
44904
|
});
|
|
44899
44905
|
}
|
|
44900
|
-
function
|
|
44906
|
+
function $e(e) {
|
|
44901
44907
|
let { conditions: t } = e, [n] = t;
|
|
44902
44908
|
return i(n && t.every((e) => e?.attribute === n.attribute && e.equals === n.equals), {
|
|
44903
44909
|
key: "ASSERTION_FAILED",
|
|
44904
44910
|
detail: "the members of the data attribute point at their type on one condition"
|
|
44905
44911
|
}), n;
|
|
44906
44912
|
}
|
|
44907
|
-
function
|
|
44913
|
+
function X(e) {
|
|
44908
44914
|
let { values: t, detail: n } = e, [r, ...a] = new Set(t);
|
|
44909
44915
|
return i(r !== void 0 && a.length === 0, {
|
|
44910
44916
|
key: "ASSERTION_FAILED",
|
|
44911
44917
|
detail: n
|
|
44912
44918
|
}), r;
|
|
44913
44919
|
}
|
|
44914
|
-
|
|
44915
|
-
function
|
|
44920
|
+
O.LNode[0].attribute, Je();
|
|
44921
|
+
function et(e) {
|
|
44916
44922
|
let { ied: t, lDevice: n, lnClass: r } = e.tuple;
|
|
44917
44923
|
return "attribute" in t && n !== void 0 && r !== void 0;
|
|
44918
44924
|
}
|
|
44919
|
-
var
|
|
44920
|
-
function
|
|
44921
|
-
let t =
|
|
44925
|
+
var tt = rt(y.ExtRef), nt = rt(y.ExtCtrl);
|
|
44926
|
+
function rt(e) {
|
|
44927
|
+
let t = q({
|
|
44922
44928
|
pairs: e,
|
|
44923
44929
|
kind: "ln"
|
|
44924
44930
|
});
|
|
44925
|
-
return i(t &&
|
|
44931
|
+
return i(t && et(t), {
|
|
44926
44932
|
key: "ASSERTION_FAILED",
|
|
44927
44933
|
detail: "an ExtRef and an ExtCtrl name the logical node of their signal"
|
|
44928
44934
|
}), t;
|
|
44929
44935
|
}
|
|
44930
|
-
var
|
|
44931
|
-
pair:
|
|
44932
|
-
dataAttributes: [
|
|
44933
|
-
}),
|
|
44934
|
-
pair:
|
|
44935
|
-
dataAttributes: [
|
|
44936
|
+
var Z = "doName", it = Q({
|
|
44937
|
+
pair: tt,
|
|
44938
|
+
dataAttributes: [Z, "daName"]
|
|
44939
|
+
}), at = Q({
|
|
44940
|
+
pair: nt,
|
|
44941
|
+
dataAttributes: [Z]
|
|
44936
44942
|
});
|
|
44937
|
-
function
|
|
44943
|
+
function Q(e) {
|
|
44938
44944
|
let { pair: t, dataAttributes: n } = e, { tuple: r } = t;
|
|
44939
44945
|
return {
|
|
44940
44946
|
uuid: t.attribute.uuid,
|
|
@@ -44943,41 +44949,42 @@ function rt(e) {
|
|
|
44943
44949
|
r.lDevice,
|
|
44944
44950
|
r.lnClass
|
|
44945
44951
|
],
|
|
44946
|
-
data:
|
|
44952
|
+
data: Z,
|
|
44947
44953
|
written: [
|
|
44948
44954
|
t.attribute.uuid,
|
|
44949
|
-
...
|
|
44955
|
+
...st(t),
|
|
44950
44956
|
...n
|
|
44951
44957
|
]
|
|
44952
44958
|
};
|
|
44953
44959
|
}
|
|
44954
|
-
var
|
|
44955
|
-
names: [
|
|
44956
|
-
serviceAttribute:
|
|
44957
|
-
servicesWithControlBlock: new Set(Object.keys(
|
|
44960
|
+
var ot = {
|
|
44961
|
+
names: [J.attribute.uuid, J.tuple.controlBlock],
|
|
44962
|
+
serviceAttribute: J.targetByAttribute.attribute,
|
|
44963
|
+
servicesWithControlBlock: new Set(Object.keys(J.targetByAttribute.tags))
|
|
44958
44964
|
};
|
|
44959
44965
|
[
|
|
44960
|
-
...
|
|
44961
|
-
|
|
44962
|
-
|
|
44963
|
-
...
|
|
44964
|
-
],
|
|
44965
|
-
function
|
|
44966
|
+
...it.written,
|
|
44967
|
+
ot.serviceAttribute,
|
|
44968
|
+
J.attribute.uuid,
|
|
44969
|
+
...st(J)
|
|
44970
|
+
], at.written;
|
|
44971
|
+
function st(e) {
|
|
44966
44972
|
let { ied: t } = e.tuple;
|
|
44967
44973
|
return [..."attribute" in t ? [t.attribute] : [], ...Ie.flatMap((t) => e.tuple[t] ?? [])];
|
|
44968
44974
|
}
|
|
44969
|
-
|
|
44975
|
+
var ct = {
|
|
44970
44976
|
FunctionTemplate: "Function",
|
|
44971
44977
|
SubFunctionTemplate: "SubFunction"
|
|
44972
|
-
}
|
|
44973
|
-
|
|
44974
|
-
|
|
44978
|
+
};
|
|
44979
|
+
Object.fromEntries(Object.entries(ct).map(([e, t]) => [t, e])), new Set(P);
|
|
44980
|
+
var lt = new Map((F.get("LNode") ?? []).map((e) => [e, "bound-logical-node"]));
|
|
44981
|
+
[...P, ...lt.keys()], new Map([.../* @__PURE__ */ new Map([["BehaviorDescription", ["fileReference"]], ["Variable", ["value"]]])].map(([e, t]) => [e, {
|
|
44975
44982
|
attributes: new Set(t),
|
|
44976
44983
|
listedAsKept: new Map(t.map((e) => [e, "instance-configuration"]))
|
|
44977
|
-
}])),
|
|
44978
|
-
function
|
|
44984
|
+
}])), ut();
|
|
44985
|
+
function ut() {
|
|
44979
44986
|
let e = /* @__PURE__ */ new Map();
|
|
44980
|
-
for (let t of
|
|
44987
|
+
for (let t of I.get("LNodeType") ?? []) {
|
|
44981
44988
|
let n = e.get(t.refTagName) ?? [];
|
|
44982
44989
|
n.push({
|
|
44983
44990
|
attribute: t.attribute,
|
|
@@ -44986,42 +44993,63 @@ function st() {
|
|
|
44986
44993
|
}
|
|
44987
44994
|
return e;
|
|
44988
44995
|
}
|
|
44989
|
-
new Set(Object.values(
|
|
44990
|
-
var
|
|
44996
|
+
new Set(Object.values(v).flatMap((e) => e.flatMap((e) => [e.attribute.path, e.attribute.uuid])));
|
|
44997
|
+
var $ = v.FunctionRef.flatMap((e) => e.target);
|
|
44998
|
+
(() => {
|
|
44999
|
+
let e = $[0], t = Object.entries(ct).filter(([, e]) => $.includes(e)).map(([e]) => e);
|
|
45000
|
+
return new Map([...$, ...t].map((t) => [t, e]));
|
|
45001
|
+
})();
|
|
45002
|
+
var dt = {
|
|
45003
|
+
"cross-type-template-uuid": {
|
|
45004
|
+
title: "Placeholder templateUuid reused across element types",
|
|
45005
|
+
description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage. The function forms (function, subfunction, equipment function, equipment subfunction and their templates) count as one type.",
|
|
45006
|
+
fallback: "Template lineage is ignored for these elements: none is recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
45007
|
+
},
|
|
45008
|
+
"duplicate-instance-uuid": {
|
|
45009
|
+
title: "Duplicate instance uuid",
|
|
45010
|
+
description: "The same uuid is used by more than one element. Every instance uuid in an SCL must be unique, so uuid-based identity is ambiguous for the affected elements.",
|
|
45011
|
+
fallback: "Identity by uuid is ambiguous for the affected elements: which of them a reference or a template element resolves to is not defined."
|
|
45012
|
+
},
|
|
45013
|
+
"template-uuid-type-mismatch": {
|
|
45014
|
+
title: "templateUuid resolves to a different element type",
|
|
45015
|
+
description: "A templateUuid points in-file to an element of a different type than the one carrying it. An instance cannot derive from a template of another type, so the lineage is inconsistent.",
|
|
45016
|
+
fallback: "The mismatched lineage is ignored: the element is not recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
|
|
45017
|
+
}
|
|
45018
|
+
}, ft = [{
|
|
44991
45019
|
tagName: "AllocationRole",
|
|
44992
45020
|
key: "name"
|
|
44993
|
-
}],
|
|
45021
|
+
}], pt = [{
|
|
44994
45022
|
tagName: "FunctionCategory",
|
|
44995
45023
|
key: "name"
|
|
44996
45024
|
}];
|
|
44997
|
-
[...
|
|
44998
|
-
var
|
|
44999
|
-
new Set(
|
|
45000
|
-
return !
|
|
45001
|
-
})), new Map(Object.entries(
|
|
45025
|
+
[...ft, ...pt];
|
|
45026
|
+
var mt = ["Variable", "BehaviorDescription"], ht = new Set(mt);
|
|
45027
|
+
new Set(S.filter(function(e) {
|
|
45028
|
+
return !ht.has(e);
|
|
45029
|
+
})), new Map(Object.entries(v).flatMap(function([e, t]) {
|
|
45002
45030
|
return t.flatMap(function(t) {
|
|
45003
45031
|
return t.target.every(function(e) {
|
|
45004
|
-
return
|
|
45032
|
+
return ht.has(e);
|
|
45005
45033
|
}) ? [[e, {
|
|
45006
45034
|
uuid: t.attribute.uuid,
|
|
45007
45035
|
targets: t.target
|
|
45008
45036
|
}]] : [];
|
|
45009
45037
|
});
|
|
45010
|
-
})),
|
|
45038
|
+
})), mt.flatMap(function(e) {
|
|
45011
45039
|
return c[e].flatMap(function(t) {
|
|
45012
|
-
let n =
|
|
45040
|
+
let n = v[t];
|
|
45013
45041
|
return n ? [{
|
|
45014
45042
|
satelliteTag: e,
|
|
45015
45043
|
tagName: t,
|
|
45016
45044
|
pairs: n
|
|
45017
45045
|
}] : [];
|
|
45018
45046
|
});
|
|
45019
|
-
}), new Map([...Object.entries(
|
|
45020
|
-
var [
|
|
45021
|
-
|
|
45022
|
-
var
|
|
45023
|
-
new Set([...
|
|
45024
|
-
function
|
|
45047
|
+
}), new Map([...Object.entries(v), ...Object.entries(y)].map(([e, t]) => [e, t.map((e) => e.attribute.uuid)])), [...x, ...S];
|
|
45048
|
+
var [gt] = v.FunctionalVariantRef;
|
|
45049
|
+
gt.attribute;
|
|
45050
|
+
var _t = new Set(gt.target);
|
|
45051
|
+
new Set([..._t].flatMap((e) => _.parents[e])), v.FunctionRef[0].attribute.uuid;
|
|
45052
|
+
function vt(e) {
|
|
45025
45053
|
switch (e.verb) {
|
|
45026
45054
|
case "fsd":
|
|
45027
45055
|
case "asd":
|
|
@@ -45032,6 +45060,6 @@ function mt(e) {
|
|
|
45032
45060
|
};
|
|
45033
45061
|
}
|
|
45034
45062
|
}
|
|
45035
|
-
new Set(Object.values(
|
|
45063
|
+
new Set(Object.values(g).map((e) => e.uri)), new Set(Object.values(g).map((e) => e.prefix).filter(Boolean)), D.behaviorDescription, D.iedAddress, D.ancestorName, D.scopedName;
|
|
45036
45064
|
//#endregion
|
|
45037
|
-
export {
|
|
45065
|
+
export { D as B, j as E, A as F, E as H, I, C as K, F as L, M, P as O, k as P, S as Q, se as U, ue as V, w as Y, re as _t, U as b, b as ct, v as dt, x as et, h as ft, p as gt, Le as h, g as ht, vt as i, N as j, m as mt, dt as o, _ as pt, ae as rt, ie as st, y as ut, Me as v, L as w, B as x, O as z };
|