@dialecte/scl 0.3.4 → 0.3.6
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/{hooks-abaf9148.js → hooks-BLN_sx9P.js} +2 -5
- package/dist/v2019C1/config/hydrated.types.d.ts +1 -0
- package/dist/v2019C1/config/hydrated.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.d.ts +6 -4
- package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.types.d.ts +9 -2
- package/dist/v2019C1/extensions/lifecycle/report/presentation-scope.types.d.ts.map +1 -1
- package/dist/v2019C1/index.js +1 -1
- package/dist/v2019C1/test.js +1 -1
- package/package.json +2 -2
|
@@ -28388,11 +28388,8 @@ function Qr(e) {
|
|
|
28388
28388
|
case "fsd":
|
|
28389
28389
|
case "asd": return {
|
|
28390
28390
|
rootTag: "Substation",
|
|
28391
|
-
omit: [
|
|
28392
|
-
|
|
28393
|
-
"Communication",
|
|
28394
|
-
"IED"
|
|
28395
|
-
]
|
|
28391
|
+
omit: ["Communication", "IED"],
|
|
28392
|
+
include: ["DataTypeTemplates"]
|
|
28396
28393
|
};
|
|
28397
28394
|
}
|
|
28398
28395
|
}
|
|
@@ -6,6 +6,7 @@ type SclExtensions = Core.MergedExtensions<SclModules>;
|
|
|
6
6
|
export declare namespace Scl {
|
|
7
7
|
type Project<GenericCustomModules extends Core.ExtensionModules = Record<never, never>> = Core.Project<Config, SclModules & GenericCustomModules>;
|
|
8
8
|
type Document = Core.Document<Config, SclExtensions>;
|
|
9
|
+
type ExtendedDocument<GenericCustomModules extends Core.ExtensionModules = Record<never, never>> = Core.ExtendedDocument<Config, SclModules & GenericCustomModules>;
|
|
9
10
|
type Context = Core.Context<Config>;
|
|
10
11
|
type Query = Core.Query<Config> & Core.QueryExtensions<SclExtensions>;
|
|
11
12
|
type Transaction = Core.Transaction<Config> & Core.AllExtensions<SclExtensions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydrated.types.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/config/hydrated.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,KAAK,UAAU,GAAG,OAAO,qBAAqB,CAAA;AAC9C,KAAK,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAA;AAEtD,yBAAiB,GAAG,CAAC;IACpB,KAAY,OAAO,CAAC,oBAAoB,SAAS,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC5F,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,oBAAoB,CAAC,CAAA;IACxD,KAAY,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"hydrated.types.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/config/hydrated.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,KAAK,UAAU,GAAG,OAAO,qBAAqB,CAAA;AAC9C,KAAK,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAA;AAEtD,yBAAiB,GAAG,CAAC;IACpB,KAAY,OAAO,CAAC,oBAAoB,SAAS,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC5F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F,MAAM,EACN,cAAc,CACd,CAAA;IAGD,KAAY,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;CACpD"}
|
|
@@ -4,10 +4,12 @@ import { LifecycleTarget } from '../contract.types';
|
|
|
4
4
|
* Layer-scoped presentation descriptor, derived from the verb.
|
|
5
5
|
*
|
|
6
6
|
* The Function (FSD) and Application (ASD) layers live inside the `Substation`
|
|
7
|
-
* structure. `DataTypeTemplates` is
|
|
8
|
-
*
|
|
9
|
-
* `
|
|
10
|
-
*
|
|
7
|
+
* structure, so the tree roots there. `DataTypeTemplates` is a sibling of `Substation`
|
|
8
|
+
* that every layer references (the types its LNodes/DOs instantiate), so it is
|
|
9
|
+
* `include`d alongside the rooted subtree — the consumer snapshots it from the `SCL`
|
|
10
|
+
* root and appends it. `Communication` and `IED` remain out of scope until the IED
|
|
11
|
+
* layer lands; rooting at `Substation` already excludes them (`omit` is belt-and-braces
|
|
12
|
+
* for a consumer that roots at `SCL`).
|
|
11
13
|
*/
|
|
12
14
|
export declare function presentationScope(target: Pick<LifecycleTarget, 'verb'>): PresentationScope;
|
|
13
15
|
//# sourceMappingURL=presentation-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-scope.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/report/presentation-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAEpF
|
|
1
|
+
{"version":3,"file":"presentation-scope.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/report/presentation-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAEpF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG,iBAAiB,CAU1F"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Scl } from '../../../config';
|
|
2
2
|
/**
|
|
3
|
-
* How to present a lifecycle merge as a structural tree: where to root it
|
|
4
|
-
*
|
|
3
|
+
* How to present a lifecycle merge as a structural tree: where to root it, which
|
|
4
|
+
* top-level SCL sections are irrelevant to the layer, and which top-level sections
|
|
5
|
+
* to include alongside the rooted subtree.
|
|
5
6
|
*/
|
|
6
7
|
export type PresentationScope = {
|
|
7
8
|
/** Element tag to root the structural tree at (the anchor's nearest ancestor of this tag). */
|
|
8
9
|
rootTag: Scl.ElementsOf;
|
|
9
10
|
/** Sections never shown for this layer — used when a consumer roots higher (at `SCL`). */
|
|
10
11
|
omit: Scl.ElementsOf[];
|
|
12
|
+
/**
|
|
13
|
+
* Top-level SCL sections to show alongside the rooted subtree, even though they live
|
|
14
|
+
* outside the `rootTag` (e.g. `DataTypeTemplates`, a sibling of `Substation`). The
|
|
15
|
+
* consumer snapshots each from the `SCL` root and appends it to the tree.
|
|
16
|
+
*/
|
|
17
|
+
include: Scl.ElementsOf[];
|
|
11
18
|
};
|
|
12
19
|
//# sourceMappingURL=presentation-scope.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-scope.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/report/presentation-scope.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C
|
|
1
|
+
{"version":3,"file":"presentation-scope.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/report/presentation-scope.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,8FAA8F;IAC9F,OAAO,EAAE,GAAG,CAAC,UAAU,CAAA;IACvB,0FAA0F;IAC1F,IAAI,EAAE,GAAG,CAAC,UAAU,EAAE,CAAA;IACtB;;;;OAIG;IACH,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE,CAAA;CACzB,CAAA"}
|
package/dist/v2019C1/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "../hooks-
|
|
1
|
+
import { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "../hooks-BLN_sx9P.js";
|
|
2
2
|
import { Project as T } from "@dialecte/core";
|
|
3
3
|
//#region src/v2019C1/dialecte.ts
|
|
4
4
|
function E(t) {
|
package/dist/v2019C1/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, n as t, r as n, t as r } from "../hooks-
|
|
1
|
+
import { C as e, n as t, r as n, t as r } from "../hooks-BLN_sx9P.js";
|
|
2
2
|
import { CUSTOM_RECORD_ID_ATTRIBUTE as i, CUSTOM_RECORD_ID_ATTRIBUTE_NAME as a, XMLNS_XSI_NAMESPACE as o } from "@dialecte/core/helpers";
|
|
3
3
|
import { XMLNS_DEV_NAMESPACE as s, createTestProject as c, createTestRecordFactory as l, createTestRunner as u, createXmlAssertions as d } from "@dialecte/core/test";
|
|
4
4
|
//#region src/v2019C1/test/hydrated-test.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialecte/scl",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Dialecte - SCL (Substation Configuration Language) sdk",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"prepare": "husky"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@dialecte/core": "0.4.
|
|
57
|
+
"@dialecte/core": "0.4.6"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@dialecte/cli": "0.0.2",
|