@dialecte/scl 0.3.8 → 0.3.9
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-DJJN-WU2.js → hooks-DO4gUiix.js} +1384 -1064
- package/dist/v2019C1/constants/reference-pairs.d.ts +11 -0
- package/dist/v2019C1/constants/reference-pairs.d.ts.map +1 -1
- package/dist/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.d.ts +12 -5
- package/dist/v2019C1/extensions/clean-up/transaction/orphan-lnode-bindings.d.ts.map +1 -1
- package/dist/v2019C1/extensions/clean-up/transaction/orphan-uuid-refs.d.ts.map +1 -1
- package/dist/v2019C1/extensions/data-model/query/index.d.ts +1 -0
- package/dist/v2019C1/extensions/data-model/query/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/data-model/query/is-lnode-locked.d.ts +18 -0
- package/dist/v2019C1/extensions/data-model/query/is-lnode-locked.d.ts.map +1 -0
- package/dist/v2019C1/extensions/data-model/transaction/import-types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.d.ts +4 -3
- package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.types.d.ts +10 -0
- package/dist/v2019C1/extensions/lifecycle/constraints/classify-attribute.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/cross-cutting/applied-satellites.constants.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/decide.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/diff.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/diff.types.d.ts +2 -2
- package/dist/v2019C1/extensions/lifecycle/engine/diff.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/group.d.ts +4 -0
- package/dist/v2019C1/extensions/lifecycle/engine/group.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/reconcile.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/layers/function/satellites.constants.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/query/cross-cutting-satellites.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/query/report-function-satellites.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/query/satellite-companions.d.ts +2 -0
- package/dist/v2019C1/extensions/lifecycle/report/query/satellite-companions.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/report.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/asd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/function-satellites.d.ts +1 -1
- package/dist/v2019C1/extensions/presentation/constants/title.d.ts +1 -12
- package/dist/v2019C1/extensions/presentation/constants/title.d.ts.map +1 -1
- package/dist/v2019C1/extensions/presentation/constants/title.types.d.ts +25 -0
- package/dist/v2019C1/extensions/presentation/constants/title.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/presentation/public.d.ts +3 -0
- package/dist/v2019C1/extensions/presentation/public.d.ts.map +1 -0
- package/dist/v2019C1/extensions/presentation/query/extract-element-title.d.ts +2 -24
- package/dist/v2019C1/extensions/presentation/query/extract-element-title.d.ts.map +1 -1
- package/dist/v2019C1/extensions/presentation/query/extract-element-title.types.d.ts +24 -0
- package/dist/v2019C1/extensions/presentation/query/extract-element-title.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/presentation/query/index.d.ts +1 -0
- package/dist/v2019C1/extensions/presentation/query/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/public.d.ts +1 -0
- package/dist/v2019C1/extensions/public.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/constants/derived.d.ts +18 -0
- package/dist/v2019C1/extensions/reference/constants/derived.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/constants/index.d.ts +2 -2
- package/dist/v2019C1/extensions/reference/constants/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/constants/orphan-rules.d.ts +0 -8
- package/dist/v2019C1/extensions/reference/constants/orphan-rules.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-name.d.ts +22 -0
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-name.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/build/build-reference-path.d.ts +1 -1
- package/dist/v2019C1/extensions/reference/query/build/build-reference-path.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/build/index.d.ts +1 -0
- package/dist/v2019C1/extensions/reference/query/build/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/resolve/parse-path.d.ts +1 -1
- package/dist/v2019C1/extensions/reference/transaction/write-provenance.d.ts +1 -1
- package/dist/v2019C1/hooks/after-created/ref-paths.d.ts.map +1 -1
- package/dist/v2019C1/hooks/after-updated/ref-paths.d.ts +7 -1
- package/dist/v2019C1/hooks/after-updated/ref-paths.d.ts.map +1 -1
- package/dist/v2019C1/hooks/before-clone/before-clone.d.ts.map +1 -1
- package/dist/v2019C1/hooks/before-delete/orphaned-refs.d.ts.map +1 -1
- package/dist/v2019C1/hooks/io/io-hooks.d.ts.map +1 -1
- package/dist/v2019C1/hooks/shared/index.d.ts +4 -0
- package/dist/v2019C1/hooks/shared/index.d.ts.map +1 -1
- package/dist/v2019C1/hooks/shared/lnode-binding.d.ts +23 -0
- package/dist/v2019C1/hooks/shared/lnode-binding.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/mapped-name.d.ts +15 -0
- package/dist/v2019C1/hooks/shared/mapped-name.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/record-ops.d.ts +19 -0
- package/dist/v2019C1/hooks/shared/record-ops.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/ref-path-rebuild.d.ts +17 -0
- package/dist/v2019C1/hooks/shared/ref-path-rebuild.d.ts.map +1 -0
- package/dist/v2019C1/index.js +12 -12
- package/dist/v2019C1/test.js +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { buildElementPath } from './build-element-path';
|
|
2
2
|
export { buildReferencePath } from './build-reference-path';
|
|
3
|
+
export { buildMappedName } from './build-mapped-name';
|
|
3
4
|
export { buildMappedLNodePath } from './build-mapped-lnode-path';
|
|
4
5
|
export type { MappedLNodeAttributes } from './build-mapped-lnode-path';
|
|
5
6
|
export type { ElementPath, PathSegmentWithRef } from './path-segment.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -62,7 +62,7 @@ export declare function parseLnodePath(pathValue: string): ParsedReference;
|
|
|
62
62
|
/**
|
|
63
63
|
* Strips disambiguation suffix and qualifier from an input/output name.
|
|
64
64
|
*
|
|
65
|
-
*
|
|
65
|
+
* Normalisation rules:
|
|
66
66
|
* - Instance suffix: "Trip(2)" → "Trip"
|
|
67
67
|
* - Qualifier suffix: "Trip.pDA" → "Trip"
|
|
68
68
|
* - Both: "Trip(2).pDA" → "Trip"
|
|
@@ -4,7 +4,7 @@ import type * as Core from '@dialecte/core';
|
|
|
4
4
|
/**
|
|
5
5
|
* Writes the instantiation provenance link on the cloned root: a fresh
|
|
6
6
|
* `FunctionSclRef` / `ApplicationSclRef` > `SclFileReference` pointing back at the
|
|
7
|
-
* template file the instance was created from
|
|
7
|
+
* template file the instance was created from.
|
|
8
8
|
*
|
|
9
9
|
* The kernel self-sources every field from the source document — `fileType` from
|
|
10
10
|
* the caller, `version` / `revision` / `fileUuid` from the template `Header`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-created/ref-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-created/ref-paths.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAI3C;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IAChF,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IAC1C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAU3B"}
|
|
@@ -7,10 +7,16 @@ import type * as Core from '@dialecte/core';
|
|
|
7
7
|
* Also handles ancestor renames: when a path-contributing attribute changes,
|
|
8
8
|
* rebuilds ref paths for all descendant targets (e.g. renaming a Bay updates
|
|
9
9
|
* FunctionRef paths that pass through it).
|
|
10
|
+
*
|
|
11
|
+
* When the updated record is itself a mapped-name referrer (`DOS`/`SDS`/`DAS`),
|
|
12
|
+
* re-normalizes its `mappedDoName`/`mappedDaName` to the short-name form. When it
|
|
13
|
+
* is any other referrer whose binding attributes (target uuid or companion DO/DA
|
|
14
|
+
* names) changed, rebuilds its own path so name and uuid references stay in
|
|
15
|
+
* agreement (the referrer-side counterpart of the after-created hook).
|
|
10
16
|
*/
|
|
11
17
|
export declare function updateRefPaths<GenericElement extends Scl.ElementsOf>(params: {
|
|
18
|
+
query: Core.Query<Config>;
|
|
12
19
|
oldRecord: Scl.RawRecord<GenericElement>;
|
|
13
20
|
newRecord: Scl.RawRecord<GenericElement>;
|
|
14
|
-
query: Core.Query<Config>;
|
|
15
21
|
}): Promise<Scl.Operation[]>;
|
|
16
22
|
//# sourceMappingURL=ref-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/ref-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/ref-paths.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,cAAc,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IACnF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACzB,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACxC,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAwC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"before-clone.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-clone/before-clone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"before-clone.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-clone/before-clone.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAmC3C,wBAAgB,WAAW,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IAC1E,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;CACtC,GAAG;IACH,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,GAAG,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;CACjD,CAwDA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orphaned-refs.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-delete/orphaned-refs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orphaned-refs.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-delete/orphaned-refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAI3C;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IACtF,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACrC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAiB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/io-hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/io-hooks.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAGX,OAAO,EAGP,MAAM,gBAAgB,CAAA;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAsH1C"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { updateRefsForEntry, getRefEntriesForTarget } from './ref-entry-ops';
|
|
2
|
+
export { reconcileMappedName } from './mapped-name';
|
|
3
|
+
export { reconcileReferrerRefPaths } from './ref-path-rebuild';
|
|
4
|
+
export { reconcileLNodeBinding } from './lnode-binding';
|
|
5
|
+
export { updatedOperation, upsertAttribute } from './record-ops';
|
|
2
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Keep an `LNode`'s implementation identity in agreement with its `lnUuid` as a
|
|
5
|
+
* side effect of update. When `lnUuid` is set, the identity
|
|
6
|
+
* (`iedName`/`ldInst`/`prefix`/`lnClass`/`lnInst`) is stamped from the target `LN`;
|
|
7
|
+
* when it is cleared, `iedName` is forced to the unbound `None` marker (with
|
|
8
|
+
* `ldInst` dropped) and the specification `prefix`/`lnClass`/`lnInst` are restored
|
|
9
|
+
* from `LNodeSpecNaming` when present. `lnType` is left untouched — it is the
|
|
10
|
+
* specification type reference, not part of the mapped identity. `templateUuid` is
|
|
11
|
+
* also left untouched — it records the template the LNode was instantiated from (the
|
|
12
|
+
* key used to locate the implementing ICD), which is owned by the instantiate
|
|
13
|
+
* lifecycle, not by binding.
|
|
14
|
+
*
|
|
15
|
+
* Runs only when `lnUuid` actually changed, so ordinary edits and coherent imports
|
|
16
|
+
* are untouched. Returns an update operation, or `null` when nothing changes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function reconcileLNodeBinding(params: {
|
|
19
|
+
oldRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
20
|
+
newRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
21
|
+
query: Core.Query<Config>;
|
|
22
|
+
}): Promise<Scl.Operation | null>;
|
|
23
|
+
//# sourceMappingURL=lnode-binding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lnode-binding.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/lnode-binding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAI3C;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IACnD,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAchC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Reconcile a `DOS`/`SDS`/`DAS` record's mapped-name attribute
|
|
5
|
+
* (`mappedDoName`/`mappedDaName`) to its documentation form as a side effect of
|
|
6
|
+
* create/update: the implementing short name, present only when it differs from
|
|
7
|
+
* the specified `name`, otherwise omitted.
|
|
8
|
+
*
|
|
9
|
+
* Applies only when the LN is mapped by UUID (`mappedLnUuid` present) — the
|
|
10
|
+
* unmapped-LN case authors a full ObjectReference that dialecte must leave intact.
|
|
11
|
+
* Returns an update operation, or `null` when the record is already conformant or
|
|
12
|
+
* the rule does not apply.
|
|
13
|
+
*/
|
|
14
|
+
export declare function reconcileMappedName(query: Core.Query<Config>, record: Scl.RawRecord<Scl.ElementsOf>): Promise<Scl.Operation | null>;
|
|
15
|
+
//# sourceMappingURL=mapped-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapped-name.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/mapped-name.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAiB/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Scl } from '../../config';
|
|
2
|
+
/** A plain attribute list as built by the reconcile helpers. */
|
|
3
|
+
export type AttributeList = readonly {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
/**
|
|
8
|
+
* Build an `updated` operation that replaces a record's attribute list. The plain
|
|
9
|
+
* `{ name, value }` list is widened to the typed attribute array here — the one
|
|
10
|
+
* place `Scl.Operation`'s strict record type is satisfied — so callers stay
|
|
11
|
+
* cast-free.
|
|
12
|
+
*/
|
|
13
|
+
export declare function updatedOperation(record: Scl.RawRecord<Scl.ElementsOf>, attributes: AttributeList): Scl.Operation;
|
|
14
|
+
/** Upsert (replace-or-append) an attribute value on a plain attribute list. */
|
|
15
|
+
export declare function upsertAttribute(attributes: AttributeList, name: string, value: string): {
|
|
16
|
+
name: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}[];
|
|
19
|
+
//# sourceMappingURL=record-ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-ops.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/record-ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAAA;AAEtE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,EACrC,UAAU,EAAE,aAAa,GACvB,GAAG,CAAC,SAAS,CAMf;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAC9B,UAAU,EAAE,aAAa,EACzB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAInC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* When a reference element's own binding attributes change (its companion DO/DA
|
|
5
|
+
* name or its target uuid), rebuild its path attribute from the resolved target
|
|
6
|
+
* so the name reference stays in agreement with the uuid reference.
|
|
7
|
+
*
|
|
8
|
+
* Skips `unsupported` paths (e.g. `VariableApplyTo` XPaths), which must not be
|
|
9
|
+
* regenerated as plain name-paths, and mapped-name refs (`DOS`/`SDS`/`DAS`), which
|
|
10
|
+
* are reconciled separately.
|
|
11
|
+
*/
|
|
12
|
+
export declare function reconcileReferrerRefPaths(params: {
|
|
13
|
+
oldRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
14
|
+
newRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
15
|
+
query: Core.Query<Config>;
|
|
16
|
+
}): Promise<Scl.Operation[]>;
|
|
17
|
+
//# sourceMappingURL=ref-path-rebuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-path-rebuild.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/ref-path-rebuild.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE;IACvD,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAe3B"}
|
package/dist/v2019C1/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Project as
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../hooks-DO4gUiix.js";
|
|
2
|
+
import { Project as A } from "@dialecte/core";
|
|
3
3
|
//#region src/v2019C1/dialecte.ts
|
|
4
|
-
function
|
|
5
|
-
let { storage:
|
|
6
|
-
return new
|
|
7
|
-
configs: { scl:
|
|
4
|
+
function j(e) {
|
|
5
|
+
let { storage: t = { type: "local" }, extensions: n } = e ?? {};
|
|
6
|
+
return new A({
|
|
7
|
+
configs: { scl: i },
|
|
8
8
|
defaultConfigKey: "scl",
|
|
9
|
-
storage:
|
|
9
|
+
storage: t,
|
|
10
10
|
extensions: {
|
|
11
|
-
base:
|
|
12
|
-
custom:
|
|
11
|
+
base: S,
|
|
12
|
+
custom: n
|
|
13
13
|
},
|
|
14
14
|
hooks: {
|
|
15
|
-
...
|
|
16
|
-
...
|
|
15
|
+
...y(),
|
|
16
|
+
...w
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { u as ALL_REF_UUID_ATTRIBUTES, _ as ALL_RESOLUTIONS, c as DEFAULT_IGNORED_ATTRIBUTES, l as KEEP_ON_ORPHAN_REFS, T as LOCKED_LNODE_ATTRIBUTES, d as MAPPED_NAME_REFS, f as PAIRS_BY_REF, o as PATH_CONTRIBUTING_ATTRIBUTES, r as PATH_EXTRACTION_CONFIG, O as REFERENCE_TAGS, a as REFERENCE_TAG_NAMES, C as REF_CONTAINERS, x as RESOLUTION_TARGET_REFS, k as RESOLUTION_TYPE, v as RESOLVABLE_RESOLUTIONS, n as SCL_DATABASE_CONFIG, i as SCL_DIALECTE_CONFIG, g as SCL_IO_CONFIG, e as SCL_NAMESPACES, t as TARGET_ELEMENT_TYPES, E as TYPE_ID_REFERENCE_PAIRS, m as TYPE_ID_REFERRERS_BY_TARGET, p as TYPE_ID_REF_ATTRIBUTES, s as TYPE_ID_TARGET_TAGS, D as UUID_REFERENCE_PAIRS, j as createSclProject, b as isTypeIdTarget, h as presentationScope };
|
package/dist/v2019C1/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as e, n as t, r as n, t as r } from "../hooks-DO4gUiix.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.9",
|
|
4
4
|
"description": "Dialecte - SCL (Substation Configuration Language) sdk",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"prepare": "husky"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@dialecte/core": "0.4.
|
|
57
|
+
"@dialecte/core": "0.4.9"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@dialecte/cli": "0.0.2",
|
|
61
61
|
"@tsconfig/node24": "^24.0.4",
|
|
62
62
|
"@types/node": "^24.12.4",
|
|
63
63
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
64
|
-
"@vitest/browser-playwright": "4.1.
|
|
64
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
65
65
|
"husky": "^9.1.7",
|
|
66
66
|
"jiti": "^2.4.2",
|
|
67
67
|
"npm-run-all2": "^8.0.4",
|
|
68
68
|
"oxfmt": "^0.53.0",
|
|
69
69
|
"oxlint": "^1.68.0",
|
|
70
70
|
"oxlint-tsgolint": "^0.23.0",
|
|
71
|
-
"playwright": "^1.
|
|
71
|
+
"playwright": "^1.61.1",
|
|
72
72
|
"tsx": "^4.22.4",
|
|
73
73
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
74
74
|
"vite": "8.0.16",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"vitepress": "^2.0.0-alpha.17",
|
|
77
77
|
"vitepress-mermaid-renderer": "^1.1.21",
|
|
78
78
|
"vitepress-plugin-llms": "^1.13.1",
|
|
79
|
-
"vitest": "4.1.
|
|
79
|
+
"vitest": "^4.1.10"
|
|
80
80
|
}
|
|
81
81
|
}
|