@likec4/core 1.35.0 → 1.36.1
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/README.md +1 -1
- package/dist/builder/index.d.mts +15 -4
- package/dist/builder/index.mjs +13 -10
- package/dist/compute-view/index.d.mts +3 -3
- package/dist/compute-view/index.mjs +10 -8
- package/dist/compute-view/relationships-view/index.d.mts +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +7 -3
- package/dist/model/connection/deployment/index.d.mts +5 -5
- package/dist/model/connection/deployment/index.mjs +3 -2
- package/dist/model/connection/index.d.mts +6 -6
- package/dist/model/connection/index.mjs +3 -2
- package/dist/model/connection/model/index.d.mts +5 -5
- package/dist/model/index.d.mts +8 -8
- package/dist/model/index.mjs +6 -4
- package/dist/shared/{core.DAj3LuFH.d.mts → core.BFb3p5d-.d.mts} +4 -2
- package/dist/shared/{core.RnUJywKk.mjs → core.BlwZ4tBa.mjs} +9 -5
- package/dist/shared/{core.DhTO8rgm.d.mts → core.Bt3kuGUN.d.mts} +3 -3
- package/dist/shared/{core.CQS11dNK.mjs → core.Bus32P0S.mjs} +2 -1
- package/dist/shared/{core.rpF8esVq.mjs → core.BvIGRozf.mjs} +13 -3
- package/dist/shared/{core.B1ZN723l.mjs → core.CaJp8Amg.mjs} +3 -2
- package/dist/shared/{core.D56nCp7e.mjs → core.CaaYNQDM.mjs} +1 -3
- package/dist/shared/core.CnIyafWn.mjs +3 -0
- package/dist/shared/{core.72IoI17N.d.mts → core.D8bTI5KC.d.mts} +2 -2
- package/dist/shared/{core.NBNeVyag.d.mts → core.DHYd2-VU.d.mts} +3 -3
- package/dist/shared/{core.SciGxb--.d.mts → core.DoNP3Yl-.d.mts} +6 -5
- package/dist/shared/{core.Ddua-wiI.d.mts → core.DxDn5nB5.d.mts} +21 -6
- package/dist/shared/{core.BajmN8zR.mjs → core._jnYNUQ-.mjs} +4 -66
- package/dist/theme/index.mjs +2 -3508
- package/dist/types/_aux.d.mts +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.mjs +6 -4
- package/dist/types/scalar.d.mts +2 -0
- package/dist/types/scalar.mjs +68 -0
- package/package.json +8 -14
- package/src/builder/Builder.ts +17 -6
- package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +9 -0
- package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +3 -0
- package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +3 -0
- package/src/builder/_types.ts +10 -0
- package/src/compute-view/dynamic-view/compute.ts +2 -0
- package/src/compute-view/element-view/__test__/fixture.ts +1 -0
- package/src/compute-view/utils/applyCustomRelationProperties.ts +2 -0
- package/src/model/LikeC4Model.ts +16 -6
- package/src/theme/element.ts +0 -19
- package/src/types/_aux.ts +6 -0
- package/src/types/index.ts +1 -0
- package/src/types/model-data.ts +2 -0
- package/src/types/model-dump.ts +8 -1
- package/src/types/project.ts +9 -0
- package/src/types/view-computed.ts +1 -1
- package/src/types/view-parsed.dynamic.ts +2 -2
package/README.md
CHANGED
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged } from 'type-fest';
|
|
2
|
-
import { g as LikeC4Model } from '../shared/core.
|
|
2
|
+
import { g as LikeC4Model } from '../shared/core.DoNP3Yl-.mjs';
|
|
3
3
|
import { D as DeploymentFqn, F as Fqn } from '../shared/core.668kXpZq.mjs';
|
|
4
|
-
import { r as DeploymentElement, v as DeploymentRelationship,
|
|
4
|
+
import { r as DeploymentElement, v as DeploymentRelationship, T as Element, _ as ModelRelation, a9 as Participant, M as ModelFqnExpr, d as ModelRelationExpr, aH as AnyViewRuleStyle, aM as AutoLayoutDirection, E as Expression, an as ParsedView, bb as ParsedDeploymentView, br as ParsedElementView, n as ParsedLikeC4ModelData, $ as ElementSpecification$1, a2 as RelationshipSpecification, a0 as TagSpecification } from '../shared/core.DxDn5nB5.mjs';
|
|
5
5
|
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DuSLYTG6.mjs';
|
|
6
|
+
import { x as setProject, a as Aux, S as SpecAux, A as Any } from '../shared/core.BFb3p5d-.mjs';
|
|
6
7
|
import { c as ElementShape, h as ThemeColor, b as BorderStyle, a as ShapeSize, S as SpacingSize, T as TextSize, f as RelationshipArrowType, R as RelationshipLineType } from '../shared/core.CzdwsPmY.mjs';
|
|
7
|
-
import { a as Aux, S as SpecAux, A as Any } from '../shared/core.DAj3LuFH.mjs';
|
|
8
8
|
import '../shared/core.CywrQs86.mjs';
|
|
9
9
|
|
|
10
10
|
type ToNested$1<T, Id extends string> = T extends TypesNested<infer P, any, any, any, any, any, any, any, infer F> ? TypesNested<`${P}.${Id}`, T['ElementKind'], T['Fqn'], T['ViewId'], T['RelationshipKind'], T['Tag'], T['MetadataKey'], T['DeploymentKind'], `${P}.${Id}` | F> : T extends AnyTypes ? TypesNested<Id, T['ElementKind'], T['Fqn'], T['ViewId'], T['RelationshipKind'], T['Tag'], T['MetadataKey'], T['DeploymentKind'], Id | T['DeploymentFqn']> : never;
|
|
@@ -546,10 +546,12 @@ interface Builder<T extends AnyTypes> extends BuilderMethods<T> {
|
|
|
546
546
|
* Views are not computed or layouted
|
|
547
547
|
* {@link toLikeC4Model} should be used to get model with computed views
|
|
548
548
|
*/
|
|
549
|
+
build<const Project extends BuilderProjectSpecification>(project: Project): ParsedLikeC4ModelData<setProject<Types.ToAux<T>, Project['id']>>;
|
|
549
550
|
build(): ParsedLikeC4ModelData<Types.ToAux<T>>;
|
|
550
551
|
/**
|
|
551
552
|
* Returns Computed LikeC4Model
|
|
552
553
|
*/
|
|
554
|
+
toLikeC4Model<const Project extends BuilderProjectSpecification>(project: Project): LikeC4Model.Computed<setProject<Types.ToAux<T>, Project['id']>>;
|
|
553
555
|
toLikeC4Model(): LikeC4Model.Computed<Types.ToAux<T>>;
|
|
554
556
|
}
|
|
555
557
|
declare namespace Builder {
|
|
@@ -581,6 +583,15 @@ type BuilderSpecification = {
|
|
|
581
583
|
};
|
|
582
584
|
metadataKeys?: string[];
|
|
583
585
|
};
|
|
586
|
+
/**
|
|
587
|
+
* We need with `id: string` to be able to derive the project id
|
|
588
|
+
*
|
|
589
|
+
* @see {@link LikeC4Project}
|
|
590
|
+
*/
|
|
591
|
+
type BuilderProjectSpecification = {
|
|
592
|
+
id: string;
|
|
593
|
+
title?: string;
|
|
594
|
+
};
|
|
584
595
|
type Metadata<MetadataKey extends string> = IsNever<MetadataKey> extends true ? never : IsLiteral<MetadataKey> extends true ? {
|
|
585
596
|
[key in MetadataKey]?: string;
|
|
586
597
|
} : Record<string, string>;
|
|
@@ -691,4 +702,4 @@ declare namespace Types {
|
|
|
691
702
|
type DeploymentRules<B> = DeploymentRulesBuilderOp<From<B>>;
|
|
692
703
|
}
|
|
693
704
|
|
|
694
|
-
export { $autoLayout, $deploymentExpr, $exclude, $expr, $include, $rules, $style, type AddDeployedInstance, type AddDeploymentNode, type AddDeploymentNodeHelpers, type AddDeploymentRelation, type AddDeploymentViewHelper, type AddDeploymentViewRules, type AddElement, type AddElementHelpers, type AddViewHelper, type AddViewOfHelper, type AddViewRules, type AnyTypes, type AnyTypesNested, Builder, type BuilderMethods, type BuilderSpecification, type DeloymentModelBuildFunction, type DeloymentModelHelpers, type DeploymentModelBuilder, type DeploymentRulesBuilderOp, type DeploymentViewBuilder, type ElementViewBuilder, type ElementViewRulesBuilder, type Invalid, type LikeC4ViewBuilder, type Metadata, type ModelBuilder, type ModelBuilderFunction, type ModelHelpers, type NestedRelationshipHelper, type NewDeploymentNodeProps, type NewElementProps, type NewRelationProps, type NewViewProps, type RelationshipHelper, type TypedAddViewOfHelper, Types, type TypesNested, type ValidId, ViewPredicate, type ViewsBuilder, type ViewsBuilderFunction, type ViewsHelpers, type Warn, deployment, mkViewBuilder, model, views };
|
|
705
|
+
export { $autoLayout, $deploymentExpr, $exclude, $expr, $include, $rules, $style, type AddDeployedInstance, type AddDeploymentNode, type AddDeploymentNodeHelpers, type AddDeploymentRelation, type AddDeploymentViewHelper, type AddDeploymentViewRules, type AddElement, type AddElementHelpers, type AddViewHelper, type AddViewOfHelper, type AddViewRules, type AnyTypes, type AnyTypesNested, Builder, type BuilderMethods, type BuilderProjectSpecification, type BuilderSpecification, type DeloymentModelBuildFunction, type DeloymentModelHelpers, type DeploymentModelBuilder, type DeploymentRulesBuilderOp, type DeploymentViewBuilder, type ElementViewBuilder, type ElementViewRulesBuilder, type Invalid, type LikeC4ViewBuilder, type Metadata, type ModelBuilder, type ModelBuilderFunction, type ModelHelpers, type NestedRelationshipHelper, type NewDeploymentNodeProps, type NewElementProps, type NewRelationProps, type NewViewProps, type RelationshipHelper, type TypedAddViewOfHelper, Types, type TypesNested, type ValidId, ViewPredicate, type ViewsBuilder, type ViewsBuilderFunction, type ViewsHelpers, type Warn, deployment, mkViewBuilder, model, views };
|
package/dist/builder/index.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { i, l, d, c as computeLikeC4Model } from '../shared/core.
|
|
1
|
+
import { i, l, d, c as computeLikeC4Model } from '../shared/core.BlwZ4tBa.mjs';
|
|
2
2
|
import { m } from '../shared/core.ByrmCl9I.mjs';
|
|
3
|
-
import { a as _type,
|
|
3
|
+
import { a as _type, n as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core._jnYNUQ-.mjs';
|
|
4
4
|
import { t as t$2 } from '../shared/core.BH9nN-_I.mjs';
|
|
5
5
|
import { l as l$1 } from '../shared/core.8KM0D6va.mjs';
|
|
6
6
|
import { u } from '../shared/core.DbRvwARP.mjs';
|
|
7
|
-
import { t as t$1 } from '../shared/core.
|
|
7
|
+
import { t as t$1 } from '../shared/core.BvIGRozf.mjs';
|
|
8
8
|
import { i as i$1 } from '../shared/core.CpwrZi3D.mjs';
|
|
9
9
|
import { n as nameFromFqn, k as isSameHierarchy, p as parentFqn } from '../shared/core.DQj9iv_y.mjs';
|
|
10
10
|
import { t } from '../shared/core.zLlww-07.mjs';
|
|
11
|
-
import { s as o, M as ModelFqnExpr, f as isElementView } from '../shared/core.
|
|
11
|
+
import { s as o, M as ModelFqnExpr, f as isElementView } from '../shared/core.CaJp8Amg.mjs';
|
|
12
12
|
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
13
|
-
import { a as DefaultElementShape, D as DefaultThemeColor } from '../shared/core.
|
|
14
|
-
import '../shared/core.
|
|
13
|
+
import { a as DefaultElementShape, D as DefaultThemeColor } from '../shared/core.CaaYNQDM.mjs';
|
|
14
|
+
import '../shared/core.Bus32P0S.mjs';
|
|
15
15
|
import '../shared/core.C1GV0WWV.mjs';
|
|
16
|
+
import '../shared/core.CnIyafWn.mjs';
|
|
16
17
|
import '../shared/core.B0oEIXqd.mjs';
|
|
17
18
|
import 'rehype-raw';
|
|
18
19
|
import 'rehype-sanitize';
|
|
@@ -27,6 +28,7 @@ import '../shared/core.Y3j3s-oq.mjs';
|
|
|
27
28
|
import '../shared/core.BgvIuGGU.mjs';
|
|
28
29
|
import '../shared/core.BoyJPEen.mjs';
|
|
29
30
|
import '../shared/core.HUONfQfd.mjs';
|
|
31
|
+
import '../types/scalar.mjs';
|
|
30
32
|
import '../shared/core.BpJu1RrF.mjs';
|
|
31
33
|
import '../shared/core.Btl47GOn.mjs';
|
|
32
34
|
import '../shared/core.yaRvRnMW.mjs';
|
|
@@ -586,9 +588,10 @@ function builder(spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _
|
|
|
586
588
|
});
|
|
587
589
|
return self;
|
|
588
590
|
},
|
|
589
|
-
build: () => ({
|
|
591
|
+
build: (project) => ({
|
|
590
592
|
[_stage]: "parsed",
|
|
591
|
-
projectId: "from-builder",
|
|
593
|
+
projectId: project?.id ?? "from-builder",
|
|
594
|
+
project: project ?? { id: "from-builder" },
|
|
592
595
|
specification: toLikeC4Specification(),
|
|
593
596
|
elements: n(
|
|
594
597
|
structuredClone(
|
|
@@ -612,8 +615,8 @@ function builder(spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _
|
|
|
612
615
|
),
|
|
613
616
|
imports: {}
|
|
614
617
|
}),
|
|
615
|
-
toLikeC4Model: () => {
|
|
616
|
-
const parsed = self.build();
|
|
618
|
+
toLikeC4Model: (project) => {
|
|
619
|
+
const parsed = self.build(project);
|
|
617
620
|
return computeLikeC4Model(parsed);
|
|
618
621
|
},
|
|
619
622
|
helpers: () => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Any } from '../shared/core.
|
|
2
|
-
import { g as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData,
|
|
1
|
+
import { A as Any } from '../shared/core.BFb3p5d-.mjs';
|
|
2
|
+
import { g as LikeC4Model } from '../shared/core.DoNP3Yl-.mjs';
|
|
3
|
+
import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, an as ParsedView, aq as ComputedView } from '../shared/core.DxDn5nB5.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
5
|
import '../shared/core.DuSLYTG6.mjs';
|
|
6
6
|
import '../shared/core.668kXpZq.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as Graph, w as willCreateCycle, t as topologicalSortExports, i as i$2, l } from '../shared/core.
|
|
2
|
-
export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.
|
|
3
|
-
import { i as i$1 } from '../shared/core.
|
|
4
|
-
import { r } from '../shared/core.
|
|
5
|
-
import { h as isExtendsElementView, f as isElementView } from '../shared/core.
|
|
1
|
+
import { G as Graph, w as willCreateCycle, t as topologicalSortExports, i as i$2, l } from '../shared/core.BlwZ4tBa.mjs';
|
|
2
|
+
export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.BlwZ4tBa.mjs';
|
|
3
|
+
import { i as i$1 } from '../shared/core.Bus32P0S.mjs';
|
|
4
|
+
import { r } from '../shared/core.BvIGRozf.mjs';
|
|
5
|
+
import { h as isExtendsElementView, f as isElementView } from '../shared/core.CaJp8Amg.mjs';
|
|
6
6
|
import { o as isNonEmptyArray } from '../shared/core.DQj9iv_y.mjs';
|
|
7
7
|
import { i } from '../shared/core.CpwrZi3D.mjs';
|
|
8
8
|
import { u } from '../shared/core.DbRvwARP.mjs';
|
|
@@ -15,7 +15,11 @@ import '../shared/core.BH9nN-_I.mjs';
|
|
|
15
15
|
import '../shared/core.D4npX2q8.mjs';
|
|
16
16
|
import '../shared/core.HUONfQfd.mjs';
|
|
17
17
|
import '../shared/core.8KM0D6va.mjs';
|
|
18
|
-
import '../shared/core.
|
|
18
|
+
import '../shared/core.CnIyafWn.mjs';
|
|
19
|
+
import '../shared/core._jnYNUQ-.mjs';
|
|
20
|
+
import '../shared/core.zLlww-07.mjs';
|
|
21
|
+
import '../types/scalar.mjs';
|
|
22
|
+
import '../shared/core.CaaYNQDM.mjs';
|
|
19
23
|
import '../shared/core.B0oEIXqd.mjs';
|
|
20
24
|
import 'rehype-raw';
|
|
21
25
|
import 'rehype-sanitize';
|
|
@@ -26,8 +30,6 @@ import 'remark-rehype';
|
|
|
26
30
|
import 'unified';
|
|
27
31
|
import 'mdast-util-from-markdown';
|
|
28
32
|
import 'mdast-util-to-string';
|
|
29
|
-
import '../shared/core.BajmN8zR.mjs';
|
|
30
|
-
import '../shared/core.zLlww-07.mjs';
|
|
31
33
|
import '../shared/core.BpJu1RrF.mjs';
|
|
32
34
|
import '../shared/core.Btl47GOn.mjs';
|
|
33
35
|
import '../shared/core.yaRvRnMW.mjs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Any, U as Unknown, g as ElementId, V as ViewId } from '../../shared/core.
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.
|
|
1
|
+
import { A as Any, U as Unknown, g as ElementId, V as ViewId } from '../../shared/core.BFb3p5d-.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.DoNP3Yl-.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import '../../shared/core.DuSLYTG6.mjs';
|
|
5
5
|
import '../../shared/core.668kXpZq.mjs';
|
|
6
6
|
import '../../shared/core.CywrQs86.mjs';
|
|
7
|
-
import '../../shared/core.
|
|
7
|
+
import '../../shared/core.DxDn5nB5.mjs';
|
|
8
8
|
import '../../shared/core.CzdwsPmY.mjs';
|
|
9
9
|
|
|
10
10
|
type RelationshipsViewData<M extends Any = Unknown> = {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
|
|
2
2
|
export { BiMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareNaturalHierarchically, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, intersection, invariant, isNonEmptyArray, isString, markdownToHtml, markdownToText, memoizeProp, nonNullable, nonexhaustive, objectHash, promiseNextTick, stringHash, symmetricDifference, union } from './utils/index.mjs';
|
|
3
3
|
export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
|
|
4
|
-
export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, e as _stage, f as _type, _ as aux, i as isOnStage } from './shared/core.
|
|
4
|
+
export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, e as _stage, f as _type, _ as aux, i as isOnStage } from './shared/core.BFb3p5d-.mjs';
|
|
5
5
|
export { A as AnyFqn, B as BuiltInIcon, D as DeploymentFqn, b as DeploymentKind, j as EdgeId, E as ElementKind, F as Fqn, e as GlobalFqn, G as GroupElementKind, I as Icon, a as IconUrl, M as MarkdownOrString, N as NodeId, P as ProjectId, d as RelationId, R as RelationKind, c as RelationshipKind, k as StepEdgeId, S as StepEdgeIdLiteral, m as StepEdgeKind, T as Tag, V as ViewId, o as extractStep, f as flattenMarkdownOrString, g as isGlobalFqn, i as isGroupElementKind, n as isStepEdgeId, s as scalar, h as splitGlobalFqn, l as stepEdgeId } from './shared/core.668kXpZq.mjs';
|
|
6
|
-
export {
|
|
6
|
+
export { Y as AbstractRelationship, ae as AndOperator, aG as AnyExcludePredicate, aF as AnyIncludePredicate, as as AnyView, aH as AnyViewRuleStyle, aM as AutoLayoutDirection, H as AuxFromDump, A as AuxFromLikeC4ModelData, B as BBox, aU as BaseParsedViewProperties, aT as BaseViewProperties, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, aZ as ComputedEdge, a_ as ComputedElementView, C as ComputedLikeC4ModelData, aY as ComputedNode, aq as ComputedView, V as DefaultArrowType, J as DefaultElementShape, U as DefaultLineStyle, N as DefaultPaddingSize, W as DefaultRelationshipColor, K as DefaultShapeSize, O as DefaultTextSize, I as DefaultThemeColor, q as DeployedInstance, r as DeploymentElement, s as DeploymentElementRef, D as DeploymentElementStyle, p as DeploymentNode, w as DeploymentRelation, v as DeploymentRelationship, b7 as DeploymentViewExcludePredicate, b6 as DeploymentViewIncludePredicate, b8 as DeploymentViewPredicate, ba as DeploymentViewRule, b9 as DeploymentViewRuleStyle, b2 as DiagramEdge, b1 as DiagramNode, ao as DiagramView, bg as DynamicViewIncludeRule, bd as DynamicViewParallelSteps, bh as DynamicViewRule, bc as DynamicViewStep, bf as DynamicViewStepOrParallel, T as Element, $ as ElementSpecification, Q as ElementStyle, bl as ElementViewExcludePredicate, bk as ElementViewIncludePredicate, bm as ElementViewPredicate, bq as ElementViewRule, bn as ElementViewRuleGroup, bp as ElementViewRuleStyle, a4 as EqualOperator, E as Expression, aj as Filterable, F as FqnExpr, f as FqnRef, j as GlobalDynamicPredicates, G as GlobalPredicateId, i as GlobalPredicates, k as GlobalStyleID, l as GlobalStyles, a7 as KindEqual, b4 as LayoutedDeploymentView, b5 as LayoutedDynamicView, b3 as LayoutedElementView, L as LayoutedLikeC4ModelData, ao as LayoutedView, o as LikeC4ModelData, y as LikeC4ModelDump, am as LikeC4Project, an as LikeC4View, e as ModelExpression, M as ModelFqnExpr, m as ModelGlobals, _ as ModelRelation, d as ModelRelationExpr, aV as NodeNotation, ac as NotOperator, ak as OperatorPredicate, ag as OrOperator, bb as ParsedDeploymentView, bi as ParsedDynamicView, br as ParsedElementView, n as ParsedLikeC4ModelData, an as ParsedView, a9 as Participant, aa as ParticipantOperator, g as Point, P as PredicateSelector, ar as ProcessedView, z as ProjectDump, h as RectBox, c as RelationExpr, Z as Relationship, a2 as RelationshipSpecification, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, x as SpecTypesFromDump, a3 as Specification, S as SpecificationDump, a5 as TagEqual, a0 as TagSpecification, aQ as ViewAutoLayout, aR as ViewManualLayout, at as ViewOnStage, av as ViewRule, aO as ViewRuleAutoLayout, aK as ViewRuleGlobalPredicateRef, aI as ViewRuleGlobalStyle, aw as ViewRulePredicate, aS as ViewType, aX as ViewWithHash, aW as ViewWithNotation, au as ViewWithType, ai as WhereOperator, X as XYPoint, be as getParallelStepsPrefix, af as isAndOperator, aN as isAutoLayoutDirection, az as isComputedView, u as isDeployedInstance, t as isDeploymentNode, aD as isDeploymentView, ap as isDiagramView, aE as isDynamicView, bj as isDynamicViewParallelSteps, aA as isElementView, aC as isExtendsElementView, a8 as isKindEqual, ap as isLayoutedView, ad as isNotOperator, ah as isOrOperator, ab as isParticipantOperator, aB as isScopedElementView, a1 as isTagColorSpecified, a6 as isTagEqual, aP as isViewRuleAutoLayout, aL as isViewRuleGlobalPredicateRef, aJ as isViewRuleGlobalStyle, bo as isViewRuleGroup, ax as isViewRulePredicate, ay as isViewRuleStyle, al as whereOperatorAsPredicate } from './shared/core.DxDn5nB5.mjs';
|
|
7
7
|
export { C as Coalesce, E as ExclusiveUnion, I as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate } from './shared/core.DuSLYTG6.mjs';
|
|
8
8
|
export { b as BorderStyle, B as BorderStyles, i as Color, C as ColorLiteral, d as CustomColor, e as CustomColorDefinitions, c as ElementShape, E as ElementShapes, k as ElementThemeColorValues, l as ElementThemeColors, H as HexColor, L as LikeC4Theme, f as RelationshipArrowType, R as RelationshipLineType, m as RelationshipThemeColorValues, o as RelationshipThemeColors, a as ShapeSize, S as SpacingSize, T as TextSize, h as ThemeColor, n as ThemeColorValues, g as ThemeColors, j as isThemeColor } from './shared/core.CzdwsPmY.mjs';
|
|
9
9
|
export { ViewChange } from './types/index.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
|
|
2
|
-
export { f as DefaultArrowType, a as DefaultElementShape, e as DefaultLineStyle, c as DefaultPaddingSize, g as DefaultRelationshipColor, b as DefaultShapeSize, d as DefaultTextSize, D as DefaultThemeColor, R as RichText } from './shared/core.
|
|
3
|
-
export {
|
|
4
|
-
export { E as Expression, F as FqnExpr, b as ModelExpression, M as ModelFqnExpr, a as ModelRelationExpr, R as RelationExpr, p as getParallelStepsPrefix, n as isAutoLayoutDirection, d as isComputedView, j as isDeploymentView, e as isDiagramView, k as isDynamicView, q as isDynamicViewParallelSteps, f as isElementView, h as isExtendsElementView, e as isLayoutedView, g as isScopedElementView, o as isViewRuleAutoLayout, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, r as isViewRuleGroup, i as isViewRulePredicate, c as isViewRuleStyle } from './shared/core.
|
|
2
|
+
export { f as DefaultArrowType, a as DefaultElementShape, e as DefaultLineStyle, c as DefaultPaddingSize, g as DefaultRelationshipColor, b as DefaultShapeSize, d as DefaultTextSize, D as DefaultThemeColor, R as RichText } from './shared/core.CaaYNQDM.mjs';
|
|
3
|
+
export { F as FqnRef, _ as _stage, a as _type, h as isAndOperator, c as isDeployedInstance, b as isDeploymentNode, e as isKindEqual, g as isNotOperator, i as isOnStage, j as isOrOperator, f as isParticipantOperator, d as isTagEqual, w as whereOperatorAsPredicate } from './shared/core._jnYNUQ-.mjs';
|
|
4
|
+
export { E as Expression, F as FqnExpr, b as ModelExpression, M as ModelFqnExpr, a as ModelRelationExpr, R as RelationExpr, p as getParallelStepsPrefix, n as isAutoLayoutDirection, d as isComputedView, j as isDeploymentView, e as isDiagramView, k as isDynamicView, q as isDynamicViewParallelSteps, f as isElementView, h as isExtendsElementView, e as isLayoutedView, g as isScopedElementView, o as isViewRuleAutoLayout, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, r as isViewRuleGroup, i as isViewRulePredicate, c as isViewRuleStyle } from './shared/core.CaJp8Amg.mjs';
|
|
5
5
|
export { B as BBox, a as BorderStyles, E as ElementShapes, R as RectBox, T as ThemeColors, i as isTagColorSpecified, b as isThemeColor } from './shared/core.CxGKeL-L.mjs';
|
|
6
|
+
export { DeploymentFqn, EdgeId, Fqn, GlobalFqn, GroupElementKind, NodeId, RelationId, StepEdgeKind, ViewId, extractStep, flattenMarkdownOrString, isGlobalFqn, isGroupElementKind, isStepEdgeId, splitGlobalFqn, stepEdgeId } from './types/scalar.mjs';
|
|
6
7
|
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue, c as compareRelations, a as delay, p as promiseNextTick } from './shared/core.b2BzqGz0.mjs';
|
|
7
8
|
export { D as DefaultMap } from './shared/core.yaRvRnMW.mjs';
|
|
8
9
|
export { S as Stack, c as commonHead, o as objectHash } from './shared/core.HUONfQfd.mjs';
|
|
@@ -17,9 +18,12 @@ export { i as iflat, a as isIterable, b as iunique } from './shared/core.8KM0D6v
|
|
|
17
18
|
export { i as imap, t as toArray, a as toSet } from './shared/core.Btl47GOn.mjs';
|
|
18
19
|
export { i as isome } from './shared/core.BoyJPEen.mjs';
|
|
19
20
|
export { a as markdownToHtml, b as markdownToText, m as memoizeProp } from './shared/core.B0oEIXqd.mjs';
|
|
21
|
+
import '@mantine/colors-generator';
|
|
22
|
+
import 'chroma-js';
|
|
20
23
|
import './shared/core.BpJu1RrF.mjs';
|
|
21
24
|
import './shared/core.DbRvwARP.mjs';
|
|
22
25
|
import './shared/core.zLlww-07.mjs';
|
|
26
|
+
import './shared/core.CnIyafWn.mjs';
|
|
23
27
|
import './shared/core.BgvIuGGU.mjs';
|
|
24
28
|
import './shared/core.ByrmCl9I.mjs';
|
|
25
29
|
import 'rehype-raw';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
4
|
-
import '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.D8bTI5KC.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DHYd2-VU.mjs';
|
|
3
|
+
import '../../../shared/core.DoNP3Yl-.mjs';
|
|
4
|
+
import '../../../shared/core.BFb3p5d-.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import '../../../shared/core.DuSLYTG6.mjs';
|
|
7
7
|
import '../../../shared/core.668kXpZq.mjs';
|
|
8
8
|
import '../../../shared/core.CywrQs86.mjs';
|
|
9
|
-
import '../../../shared/core.
|
|
9
|
+
import '../../../shared/core.DxDn5nB5.mjs';
|
|
10
10
|
import '../../../shared/core.CzdwsPmY.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { C as Connection } from '../../../shared/core.C1GV0WWV.mjs';
|
|
2
|
-
export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.
|
|
2
|
+
export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.Bus32P0S.mjs';
|
|
3
3
|
import '../../../shared/core.DQj9iv_y.mjs';
|
|
4
4
|
import '../../../shared/core.zLlww-07.mjs';
|
|
5
5
|
import '../../../shared/core.CpwrZi3D.mjs';
|
|
6
6
|
import '../../../shared/core.DbRvwARP.mjs';
|
|
7
7
|
import '../../../shared/core.D4npX2q8.mjs';
|
|
8
|
-
import '../../../shared/core.
|
|
8
|
+
import '../../../shared/core.CnIyafWn.mjs';
|
|
9
9
|
import '../../../shared/core.B0oEIXqd.mjs';
|
|
10
10
|
import 'rehype-raw';
|
|
11
11
|
import 'rehype-sanitize';
|
|
@@ -16,3 +16,4 @@ import 'remark-rehype';
|
|
|
16
16
|
import 'unified';
|
|
17
17
|
import 'mdast-util-from-markdown';
|
|
18
18
|
import 'mdast-util-to-string';
|
|
19
|
+
import '../../../shared/core.CaaYNQDM.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, f as model } from '../../shared/core.
|
|
1
|
+
import { C as Connection } from '../../shared/core.D8bTI5KC.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.DHYd2-VU.mjs';
|
|
3
|
+
export { C as ConnectionModel, f as model } from '../../shared/core.Bt3kuGUN.mjs';
|
|
4
4
|
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.CF82MWyh.mjs';
|
|
5
|
-
import '../../shared/core.
|
|
6
|
-
import '../../shared/core.
|
|
5
|
+
import '../../shared/core.DoNP3Yl-.mjs';
|
|
6
|
+
import '../../shared/core.BFb3p5d-.mjs';
|
|
7
7
|
import 'type-fest';
|
|
8
8
|
import '../../shared/core.DuSLYTG6.mjs';
|
|
9
9
|
import '../../shared/core.668kXpZq.mjs';
|
|
10
10
|
import '../../shared/core.CywrQs86.mjs';
|
|
11
|
-
import '../../shared/core.
|
|
11
|
+
import '../../shared/core.DxDn5nB5.mjs';
|
|
12
12
|
import '../../shared/core.CzdwsPmY.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { C as Connection } from '../../shared/core.C1GV0WWV.mjs';
|
|
2
|
-
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.
|
|
2
|
+
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.Bus32P0S.mjs';
|
|
3
3
|
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.Y3j3s-oq.mjs';
|
|
4
4
|
import '../../shared/core.DQj9iv_y.mjs';
|
|
5
5
|
import '../../shared/core.zLlww-07.mjs';
|
|
6
6
|
import '../../shared/core.CpwrZi3D.mjs';
|
|
7
7
|
import '../../shared/core.DbRvwARP.mjs';
|
|
8
8
|
import '../../shared/core.D4npX2q8.mjs';
|
|
9
|
-
import '../../shared/core.
|
|
9
|
+
import '../../shared/core.CnIyafWn.mjs';
|
|
10
10
|
import '../../shared/core.B0oEIXqd.mjs';
|
|
11
11
|
import 'rehype-raw';
|
|
12
12
|
import 'rehype-sanitize';
|
|
@@ -17,6 +17,7 @@ import 'remark-rehype';
|
|
|
17
17
|
import 'unified';
|
|
18
18
|
import 'mdast-util-from-markdown';
|
|
19
19
|
import 'mdast-util-to-string';
|
|
20
|
+
import '../../shared/core.CaaYNQDM.mjs';
|
|
20
21
|
import '../../shared/core.BgvIuGGU.mjs';
|
|
21
22
|
import '../../shared/core.ByrmCl9I.mjs';
|
|
22
23
|
import '../../shared/core.BoyJPEen.mjs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
4
|
-
import '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.D8bTI5KC.mjs';
|
|
2
|
+
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.Bt3kuGUN.mjs';
|
|
3
|
+
import '../../../shared/core.DoNP3Yl-.mjs';
|
|
4
|
+
import '../../../shared/core.BFb3p5d-.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import '../../../shared/core.DuSLYTG6.mjs';
|
|
7
7
|
import '../../../shared/core.668kXpZq.mjs';
|
|
8
8
|
import '../../../shared/core.CywrQs86.mjs';
|
|
9
|
-
import '../../../shared/core.
|
|
9
|
+
import '../../../shared/core.DxDn5nB5.mjs';
|
|
10
10
|
import '../../../shared/core.CzdwsPmY.mjs';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.
|
|
2
|
-
export { f as AnyLikeC4Model, l as DeploymentOrFqn, h as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, g as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, i as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.
|
|
3
|
-
import { A as Any } from '../shared/core.
|
|
4
|
-
export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.
|
|
5
|
-
export { C as Connection } from '../shared/core.
|
|
6
|
-
export { C as ConnectionModel, f as modelConnection } from '../shared/core.
|
|
7
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.
|
|
1
|
+
import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.DoNP3Yl-.mjs';
|
|
2
|
+
export { f as AnyLikeC4Model, l as DeploymentOrFqn, h as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, g as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, i as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.DoNP3Yl-.mjs';
|
|
3
|
+
import { A as Any } from '../shared/core.BFb3p5d-.mjs';
|
|
4
|
+
export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.BFb3p5d-.mjs';
|
|
5
|
+
export { C as Connection } from '../shared/core.D8bTI5KC.mjs';
|
|
6
|
+
export { C as ConnectionModel, f as modelConnection } from '../shared/core.Bt3kuGUN.mjs';
|
|
7
|
+
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.DHYd2-VU.mjs';
|
|
8
8
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
9
|
-
export {
|
|
9
|
+
export { H as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.DxDn5nB5.mjs';
|
|
10
10
|
import '../shared/core.CywrQs86.mjs';
|
|
11
11
|
import 'type-fest';
|
|
12
12
|
import '../shared/core.668kXpZq.mjs';
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { b as EdgeModel, E as ElementModel, a as LikeC4DeploymentModel, L as LikeC4Model, c as LikeC4ViewModel, d as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, e as extractViewTitleFromPath, g as getViewFolderPath, f as isDeployedInstanceModel, h as isDeploymentElementModel, i as isDeploymentNodeModel, k as isDeploymentRelationModel, q as isEdgeModel, m as isElementModel, o as isLikeC4ViewModel, l as isModelRelation, j as isNestedElementOfDeployedInstanceModel, p as isNodeModel, l as isRelationModel, l as isRelationshipModel, n as normalizeViewPath } from '../shared/core.
|
|
2
|
-
export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.
|
|
1
|
+
export { b as EdgeModel, E as ElementModel, a as LikeC4DeploymentModel, L as LikeC4Model, c as LikeC4ViewModel, d as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, e as extractViewTitleFromPath, g as getViewFolderPath, f as isDeployedInstanceModel, h as isDeploymentElementModel, i as isDeploymentNodeModel, k as isDeploymentRelationModel, q as isEdgeModel, m as isElementModel, o as isLikeC4ViewModel, l as isModelRelation, j as isNestedElementOfDeployedInstanceModel, p as isNodeModel, l as isRelationModel, l as isRelationshipModel, n as normalizeViewPath } from '../shared/core.BvIGRozf.mjs';
|
|
2
|
+
export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.Bus32P0S.mjs';
|
|
3
3
|
export { C as Connection } from '../shared/core.C1GV0WWV.mjs';
|
|
4
4
|
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.Y3j3s-oq.mjs';
|
|
5
|
-
export { R as RichText } from '../shared/core.
|
|
5
|
+
export { R as RichText } from '../shared/core.CaaYNQDM.mjs';
|
|
6
6
|
import '../shared/core.DbRvwARP.mjs';
|
|
7
7
|
import '../shared/core.ByrmCl9I.mjs';
|
|
8
8
|
import '../shared/core.CpwrZi3D.mjs';
|
|
@@ -11,7 +11,9 @@ import '../shared/core.DQj9iv_y.mjs';
|
|
|
11
11
|
import '../shared/core.zLlww-07.mjs';
|
|
12
12
|
import '../shared/core.DcS-0zys.mjs';
|
|
13
13
|
import '../shared/core.yaRvRnMW.mjs';
|
|
14
|
-
import '../shared/core.
|
|
14
|
+
import '../shared/core._jnYNUQ-.mjs';
|
|
15
|
+
import '../types/scalar.mjs';
|
|
16
|
+
import '../shared/core.CnIyafWn.mjs';
|
|
15
17
|
import '../shared/core.BgvIuGGU.mjs';
|
|
16
18
|
import '../shared/core.B0oEIXqd.mjs';
|
|
17
19
|
import 'rehype-raw';
|
|
@@ -102,6 +102,7 @@ type toLayouted<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infe
|
|
|
102
102
|
* Project identifier from Aux
|
|
103
103
|
*/
|
|
104
104
|
type ProjectId<A> = A extends infer T extends Any ? Coalesce<T['ProjectId']> : never;
|
|
105
|
+
type setProject<A, P extends string> = A extends Aux<infer S, infer E, infer D, infer V, any, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
|
|
105
106
|
/**
|
|
106
107
|
* Element FQN from Aux as branded type
|
|
107
108
|
*/
|
|
@@ -248,12 +249,13 @@ type _aux_WithMetadata<A extends Any> = WithMetadata<A>;
|
|
|
248
249
|
type _aux_WithOptionalLinks = WithOptionalLinks;
|
|
249
250
|
type _aux_WithOptionalTags<A extends Any> = WithOptionalTags<A>;
|
|
250
251
|
type _aux_WithTags<A extends Any> = WithTags<A>;
|
|
252
|
+
type _aux_setProject<A, P extends string> = setProject<A, P>;
|
|
251
253
|
type _aux_setStage<A, S extends ModelStage> = setStage<A, S>;
|
|
252
254
|
type _aux_toComputed<A> = toComputed<A>;
|
|
253
255
|
type _aux_toLayouted<A> = toLayouted<A>;
|
|
254
256
|
type _aux_toParsed<A> = toParsed<A>;
|
|
255
257
|
declare namespace _aux {
|
|
256
|
-
export type { _aux_AllKinds as AllKinds, _aux_Any as Any, Any as AnyAux, _aux_AnySpec as AnySpec, _aux_Aux as Aux, _aux_DeploymentFqn as DeploymentFqn, _aux_DeploymentId as DeploymentId, _aux_DeploymentKind as DeploymentKind, _aux_EdgeId as EdgeId, _aux_ElementId as ElementId, _aux_ElementKind as ElementKind, _aux_Fqn as Fqn, _aux_LooseDeploymentId as LooseDeploymentId, _aux_LooseDeploymentKind as LooseDeploymentKind, _aux_LooseElementId as LooseElementId, _aux_LooseElementKind as LooseElementKind, _aux_LooseRelationKind as LooseRelationKind, _aux_LooseTag as LooseTag, _aux_LooseTags as LooseTags, _aux_LooseViewId as LooseViewId, _aux_Metadata as Metadata, _aux_MetadataKey as MetadataKey, _aux_Never as Never, _aux_NodeId as NodeId, _aux_OrString as OrString, _aux_PickByStage as PickByStage, _aux_ProjectId as ProjectId, _aux_RelationId as RelationId, _aux_RelationKind as RelationKind, _aux_Spec as Spec, _aux_SpecAux as SpecAux, _aux_Stage as Stage, DeploymentFqn as StrictDeploymentFqn, _aux_StrictDeploymentKind as StrictDeploymentKind, _aux_StrictElementKind as StrictElementKind, Fqn as StrictFqn, _aux_StrictProjectId as StrictProjectId, _aux_StrictRelationKind as StrictRelationKind, _aux_StrictTag as StrictTag, _aux_StrictViewId as StrictViewId, _aux_Tag as Tag, _aux_Tags as Tags, _aux_Unknown as Unknown, _aux_UnknownComputed as UnknownComputed, _aux_UnknownLayouted as UnknownLayouted, _aux_UnknownParsed as UnknownParsed, _aux_ViewId as ViewId, _aux_WithLinks as WithLinks, _aux_WithMetadata as WithMetadata, _aux_WithOptionalLinks as WithOptionalLinks, _aux_WithOptionalTags as WithOptionalTags, _aux_WithTags as WithTags, _aux_setStage as setStage, _aux_toComputed as toComputed, _aux_toLayouted as toLayouted, _aux_toParsed as toParsed };
|
|
258
|
+
export type { _aux_AllKinds as AllKinds, _aux_Any as Any, Any as AnyAux, _aux_AnySpec as AnySpec, _aux_Aux as Aux, _aux_DeploymentFqn as DeploymentFqn, _aux_DeploymentId as DeploymentId, _aux_DeploymentKind as DeploymentKind, _aux_EdgeId as EdgeId, _aux_ElementId as ElementId, _aux_ElementKind as ElementKind, _aux_Fqn as Fqn, _aux_LooseDeploymentId as LooseDeploymentId, _aux_LooseDeploymentKind as LooseDeploymentKind, _aux_LooseElementId as LooseElementId, _aux_LooseElementKind as LooseElementKind, _aux_LooseRelationKind as LooseRelationKind, _aux_LooseTag as LooseTag, _aux_LooseTags as LooseTags, _aux_LooseViewId as LooseViewId, _aux_Metadata as Metadata, _aux_MetadataKey as MetadataKey, _aux_Never as Never, _aux_NodeId as NodeId, _aux_OrString as OrString, _aux_PickByStage as PickByStage, _aux_ProjectId as ProjectId, _aux_RelationId as RelationId, _aux_RelationKind as RelationKind, _aux_Spec as Spec, _aux_SpecAux as SpecAux, _aux_Stage as Stage, DeploymentFqn as StrictDeploymentFqn, _aux_StrictDeploymentKind as StrictDeploymentKind, _aux_StrictElementKind as StrictElementKind, Fqn as StrictFqn, _aux_StrictProjectId as StrictProjectId, _aux_StrictRelationKind as StrictRelationKind, _aux_StrictTag as StrictTag, _aux_StrictViewId as StrictViewId, _aux_Tag as Tag, _aux_Tags as Tags, _aux_Unknown as Unknown, _aux_UnknownComputed as UnknownComputed, _aux_UnknownLayouted as UnknownLayouted, _aux_UnknownParsed as UnknownParsed, _aux_ViewId as ViewId, _aux_WithLinks as WithLinks, _aux_WithMetadata as WithMetadata, _aux_WithOptionalLinks as WithOptionalLinks, _aux_WithOptionalTags as WithOptionalTags, _aux_WithTags as WithTags, _aux_setProject as setProject, _aux_setStage as setStage, _aux_toComputed as toComputed, _aux_toLayouted as toLayouted, _aux_toParsed as toParsed };
|
|
257
259
|
}
|
|
258
260
|
|
|
259
|
-
export { type
|
|
261
|
+
export { type WithTags as $, type Any as A, type WithMetadata as B, type EdgeId as C, type DeploymentKind as D, type ExtractOnStage as E, type Fqn as F, type AnySpec as G, type PickByStage as H, type setStage as I, type NodeId as J, type Spec as K, type LooseTag as L, type ModelStage as M, type Never as N, type StrictProjectId as O, type ProjectId as P, type StrictTag as Q, type RelationKind as R, type SpecAux as S, type Tags as T, type Unknown as U, type ViewId as V, type WithOptionalTags as W, type StrictElementKind as X, type StrictDeploymentKind as Y, type StrictRelationKind as Z, _aux as _, type Aux as a, type WithLinks as a0, type OrString as a1, type LooseTags as a2, type LooseElementKind as a3, type LooseDeploymentKind as a4, type LooseRelationKind as a5, type UnknownComputed as b, type UnknownLayouted as c, type UnknownParsed as d, _stage as e, _type as f, type ElementId as g, type Metadata as h, isOnStage as i, type MetadataKey as j, type ElementKind as k, type RelationId as l, type StrictViewId as m, type LooseElementId as n, type LooseDeploymentId as o, type DeploymentFqn as p, type toLayouted as q, type Stage as r, type DeploymentId as s, type toComputed as t, type Tag as u, type toParsed as v, type LooseViewId as w, type setProject as x, type AllKinds as y, type WithOptionalLinks as z };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { s as a$2, t as t$3, u as a$3, r as r$3, m as isElementModel, j as isNestedElementOfDeployedInstanceModel, f as isDeployedInstanceModel, i as isDeploymentNodeModel, h as isDeploymentElementModel, L as LikeC4Model } from './core.
|
|
1
|
+
import { s as a$2, t as t$3, u as a$3, r as r$3, m as isElementModel, j as isNestedElementOfDeployedInstanceModel, f as isDeployedInstanceModel, i as isDeploymentNodeModel, h as isDeploymentElementModel, L as LikeC4Model } from './core.BvIGRozf.mjs';
|
|
2
2
|
import { u as u$5 } from './core.DbRvwARP.mjs';
|
|
3
3
|
import { m as m$2 } from './core.ByrmCl9I.mjs';
|
|
4
|
-
import { i as i$a, t as t$4, n as n$2, d as deploymentConnection, R as RelationshipsAccum, D as DeploymentConnectionModel } from './core.
|
|
4
|
+
import { i as i$a, t as t$4, n as n$2, d as deploymentConnection, R as RelationshipsAccum, D as DeploymentConnectionModel } from './core.Bus32P0S.mjs';
|
|
5
5
|
import { p as p$1, f as findAscendingConnections, m as mergeConnections, d as differenceConnections, j as isNestedConnection, s as sortConnectionsByBoundaryHierarchy, o as findConnectionsBetween$3, n as modelConnection, b as findDescendantConnections, a as findDeepestNestedConnection, i as isAnyInOut, k as isOutgoing, g as isIncoming, C as ConnectionModel } from './core.Y3j3s-oq.mjs';
|
|
6
6
|
import { u as a$1, C, t as s, r as getDefaultExportFromCjs, j as isDescendantOf, m as sortParentsFirst, i as isAncestor, p as parentFqn, e as compareByFqnHierarchically, o as isNonEmptyArray, n as nameFromFqn, s as sortByFqnHierarchically, d as commonAncestor, b as ancestorsFqn, k as isSameHierarchy } from './core.DQj9iv_y.mjs';
|
|
7
7
|
import { c as commonHead, r as requireForeach, a as requireIterator, u as u$6, o as objectHash, d as d$5, S as Stack } from './core.HUONfQfd.mjs';
|
|
8
8
|
import { a as nonNullable, i as invariant, n as nonexhaustive } from './core.D4npX2q8.mjs';
|
|
9
|
-
import { n
|
|
9
|
+
import { n } from './core.CnIyafWn.mjs';
|
|
10
10
|
import { d as difference, a as intersection, u as union, i as i$b, h as hasIntersection } from './core.CpwrZi3D.mjs';
|
|
11
11
|
import { a as isIterable, n as n$1, l as l$5, b as iunique, i as iflat } from './core.8KM0D6va.mjs';
|
|
12
12
|
import { o as o$7 } from './core.BgvIuGGU.mjs';
|
|
13
|
-
import { w as whereOperatorAsPredicate, F as FqnRef, y,
|
|
14
|
-
import { M as ModelFqnExpr, c as isViewRuleStyle, F as FqnExpr, R as RelationExpr, s as o$8, i as isViewRulePredicate, o as isViewRuleAutoLayout, r as isViewRuleGroup, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, q as isDynamicViewParallelSteps, a as ModelRelationExpr, b as ModelExpression, k as isDynamicView, j as isDeploymentView, f as isElementView } from './core.
|
|
13
|
+
import { w as whereOperatorAsPredicate, F as FqnRef, y, a as _type, _ as _stage, n as n$3 } from './core._jnYNUQ-.mjs';
|
|
14
|
+
import { M as ModelFqnExpr, c as isViewRuleStyle, F as FqnExpr, R as RelationExpr, s as o$8, i as isViewRulePredicate, o as isViewRuleAutoLayout, r as isViewRuleGroup, m as isViewRuleGlobalPredicateRef, l as isViewRuleGlobalStyle, q as isDynamicViewParallelSteps, a as ModelRelationExpr, b as ModelExpression, k as isDynamicView, j as isDeploymentView, f as isElementView } from './core.CaJp8Amg.mjs';
|
|
15
|
+
import { isGroupElementKind, GroupElementKind, stepEdgeId } from '../types/scalar.mjs';
|
|
16
|
+
import { a as DefaultElementShape, D as DefaultThemeColor, f as DefaultArrowType, e as DefaultLineStyle, g as DefaultRelationshipColor } from './core.CaaYNQDM.mjs';
|
|
15
17
|
import { k } from './core.BpJu1RrF.mjs';
|
|
16
18
|
import { a as toSet, t as toArray, i as imap } from './core.Btl47GOn.mjs';
|
|
17
19
|
import { D as DefaultMap } from './core.yaRvRnMW.mjs';
|
|
@@ -3737,6 +3739,7 @@ function applyCustomRelationProperties(_rules, nodes, _edges) {
|
|
|
3737
3739
|
expr,
|
|
3738
3740
|
title,
|
|
3739
3741
|
description,
|
|
3742
|
+
notes,
|
|
3740
3743
|
...customprops
|
|
3741
3744
|
}
|
|
3742
3745
|
} of rules) {
|
|
@@ -3763,6 +3766,7 @@ function applyCustomRelationProperties(_rules, nodes, _edges) {
|
|
|
3763
3766
|
...edge,
|
|
3764
3767
|
...props,
|
|
3765
3768
|
...description && { description: { txt: description } },
|
|
3769
|
+
...notes && { notes: { txt: notes } },
|
|
3766
3770
|
label: title ?? edge.label,
|
|
3767
3771
|
isCustomized: true
|
|
3768
3772
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Connection, c as customInspectSymbol } from './core.
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel } from './core.
|
|
3
|
-
import { A as Any, U as Unknown,
|
|
1
|
+
import { C as Connection, c as customInspectSymbol } from './core.D8bTI5KC.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel } from './core.DoNP3Yl-.mjs';
|
|
3
|
+
import { A as Any, U as Unknown, C as EdgeId } from './core.BFb3p5d-.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Connection refers to any relationships between two elements,
|
|
@@ -2,9 +2,10 @@ import { c as customInspectSymbol } from './core.C1GV0WWV.mjs';
|
|
|
2
2
|
import { a as intersection, d as difference, u as union, b as stringHash, e as equals } from './core.CpwrZi3D.mjs';
|
|
3
3
|
import { C, t as s, g as hierarchyLevel, d as commonAncestor, k as isSameHierarchy } from './core.DQj9iv_y.mjs';
|
|
4
4
|
import { u } from './core.DbRvwARP.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { n as n$1 } from './core.CnIyafWn.mjs';
|
|
6
6
|
import { a as nonNullable, i as invariant } from './core.D4npX2q8.mjs';
|
|
7
7
|
import { m as memoizeProp } from './core.B0oEIXqd.mjs';
|
|
8
|
+
import { b as DefaultShapeSize, R as RichText, D as DefaultThemeColor, e as DefaultLineStyle, a as DefaultElementShape } from './core.CaaYNQDM.mjs';
|
|
8
9
|
|
|
9
10
|
function y(t,i){let a=i.length-t.length;if(a===1){let[n,...r]=i;return C(n,{lazy:t,lazyArgs:r})}if(a===0){let n={lazy:t,lazyArgs:i};return Object.assign(e=>C(e,n),n)}throw new Error("Wrong number of arguments")}
|
|
10
11
|
|
|
@@ -4,13 +4,15 @@ import { m as m$2 } from './core.ByrmCl9I.mjs';
|
|
|
4
4
|
import { i as i$2 } from './core.CpwrZi3D.mjs';
|
|
5
5
|
import { g as hierarchyLevel, n as nameFromFqn, i as isAncestor, d as commonAncestor, l as sortNaturalByFqn, m as sortParentsFirst, p as parentFqn, b as ancestorsFqn, C, a as compareNaturalHierarchically, c as compareNatural } from './core.DQj9iv_y.mjs';
|
|
6
6
|
import { g as getOrCreate } from './core.DcS-0zys.mjs';
|
|
7
|
-
import { i as i$1, n as n$3, e as DeploymentNodeModel, c as DeployedInstanceModel, N as NestedElementOfDeployedInstanceModel, g as DeploymentRelationModel } from './core.
|
|
7
|
+
import { i as i$1, n as n$3, e as DeploymentNodeModel, c as DeployedInstanceModel, N as NestedElementOfDeployedInstanceModel, g as DeploymentRelationModel } from './core.Bus32P0S.mjs';
|
|
8
8
|
import { D as DefaultMap } from './core.yaRvRnMW.mjs';
|
|
9
9
|
import { i as invariant, a as nonNullable } from './core.D4npX2q8.mjs';
|
|
10
|
-
import {
|
|
10
|
+
import { F as FqnRef, b as isDeploymentNode, a as _type, _ as _stage, i as isOnStage, w as whereOperatorAsPredicate } from './core._jnYNUQ-.mjs';
|
|
11
11
|
import { m as memoizeProp } from './core.B0oEIXqd.mjs';
|
|
12
12
|
import { i as ifilter } from './core.BH9nN-_I.mjs';
|
|
13
|
-
import {
|
|
13
|
+
import { splitGlobalFqn, extractStep, isStepEdgeId, isGroupElementKind, isGlobalFqn, GlobalFqn } from '../types/scalar.mjs';
|
|
14
|
+
import { n as n$2 } from './core.CnIyafWn.mjs';
|
|
15
|
+
import { a as DefaultElementShape, D as DefaultThemeColor, R as RichText, b as DefaultShapeSize, g as DefaultRelationshipColor, e as DefaultLineStyle } from './core.CaaYNQDM.mjs';
|
|
14
16
|
import { a as ihead, i as ifind } from './core.DsMrjY2q.mjs';
|
|
15
17
|
|
|
16
18
|
function r(...t){return u$1(Object.values,t)}
|
|
@@ -1330,6 +1332,7 @@ class LikeC4Model {
|
|
|
1330
1332
|
const {
|
|
1331
1333
|
_stage: stage = "layouted",
|
|
1332
1334
|
projectId = "unknown",
|
|
1335
|
+
project,
|
|
1333
1336
|
globals,
|
|
1334
1337
|
imports,
|
|
1335
1338
|
deployments,
|
|
@@ -1341,6 +1344,7 @@ class LikeC4Model {
|
|
|
1341
1344
|
return new LikeC4Model({
|
|
1342
1345
|
[_stage]: stage,
|
|
1343
1346
|
projectId,
|
|
1347
|
+
project,
|
|
1344
1348
|
globals: {
|
|
1345
1349
|
predicates: globals?.predicates ?? {},
|
|
1346
1350
|
dynamicPredicates: globals?.dynamicPredicates ?? {},
|
|
@@ -1487,6 +1491,11 @@ class LikeC4Model {
|
|
|
1487
1491
|
get projectId() {
|
|
1488
1492
|
return this.$data.projectId ?? "unknown";
|
|
1489
1493
|
}
|
|
1494
|
+
get project() {
|
|
1495
|
+
return this.$data.project ?? memoizeProp(this, Symbol.for("project"), () => ({
|
|
1496
|
+
id: this.projectId
|
|
1497
|
+
}));
|
|
1498
|
+
}
|
|
1490
1499
|
get specification() {
|
|
1491
1500
|
return this.$data.specification;
|
|
1492
1501
|
}
|
|
@@ -1909,6 +1918,7 @@ class LikeC4Model {
|
|
|
1909
1918
|
LikeC4Model2.EMPTY = LikeC4Model2.create({
|
|
1910
1919
|
_stage: "computed",
|
|
1911
1920
|
projectId: "default",
|
|
1921
|
+
project: { id: "default" },
|
|
1912
1922
|
specification: {
|
|
1913
1923
|
elements: {},
|
|
1914
1924
|
relationships: {},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { F as FqnRef
|
|
2
|
-
import { n } from './core.
|
|
1
|
+
import { F as FqnRef } from './core._jnYNUQ-.mjs';
|
|
2
|
+
import { n } from './core.CnIyafWn.mjs';
|
|
3
|
+
import { isStepEdgeId } from '../types/scalar.mjs';
|
|
3
4
|
|
|
4
5
|
function o(r){return Array.isArray(r)}
|
|
5
6
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { m as memoizeProp, b as markdownToText, a as markdownToHtml } from './core.B0oEIXqd.mjs';
|
|
2
2
|
import { n as nonexhaustive } from './core.D4npX2q8.mjs';
|
|
3
3
|
|
|
4
|
-
function n(e){return !!e}
|
|
5
|
-
|
|
6
4
|
const DefaultThemeColor = "primary";
|
|
7
5
|
const DefaultElementShape = "rectangle";
|
|
8
6
|
const DefaultShapeSize = "md";
|
|
@@ -165,4 +163,4 @@ class RichText {
|
|
|
165
163
|
}
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
export { DefaultThemeColor as D, RichText as R, DefaultElementShape as a, DefaultShapeSize as b, DefaultPaddingSize as c, DefaultTextSize as d, DefaultLineStyle as e, DefaultArrowType as f, DefaultRelationshipColor as g
|
|
166
|
+
export { DefaultThemeColor as D, RichText as R, DefaultElementShape as a, DefaultShapeSize as b, DefaultPaddingSize as c, DefaultTextSize as d, DefaultLineStyle as e, DefaultArrowType as f, DefaultRelationshipColor as g };
|