@likec4/core 1.36.1 → 1.38.0
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 +2 -2
- package/dist/builder/index.d.mts +4 -4
- package/dist/builder/index.mjs +11 -8
- package/dist/compute-view/index.d.mts +4 -4
- package/dist/compute-view/index.mjs +8 -8
- package/dist/compute-view/relationships-view/index.d.mts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +6 -5
- package/dist/model/connection/deployment/index.d.mts +6 -6
- package/dist/model/connection/deployment/index.mjs +2 -2
- package/dist/model/connection/index.d.mts +8 -8
- package/dist/model/connection/index.mjs +2 -2
- package/dist/model/connection/model/index.d.mts +6 -6
- package/dist/model/index.d.mts +11 -11
- package/dist/model/index.mjs +5 -5
- package/dist/shared/core.BL_xjl90.mjs +92 -0
- package/dist/shared/{core.CaJp8Amg.mjs → core.BW8K1y6R.mjs} +2 -2
- package/dist/shared/{core.D8bTI5KC.d.mts → core.Bf5zKDK1.d.mts} +3 -3
- package/dist/shared/{core.DoNP3Yl-.d.mts → core.BvlHvikl.d.mts} +13 -4
- package/dist/shared/{core.DxDn5nB5.d.mts → core.CE_hG7EJ.d.mts} +10 -6
- package/dist/shared/{core._jnYNUQ-.mjs → core.DK6I-Nr7.mjs} +1 -1
- package/dist/shared/{core.668kXpZq.d.mts → core.DX-WYEPA.d.mts} +4 -3
- package/dist/shared/{core.DHYd2-VU.d.mts → core.DhDo8LAz.d.mts} +3 -3
- package/dist/shared/{core.BvIGRozf.mjs → core.DsznOb9G.mjs} +15 -7
- package/dist/shared/{core.Bt3kuGUN.d.mts → core.Dtw1SBlz.d.mts} +3 -3
- package/dist/shared/{core.Bus32P0S.mjs → core.DyzAZvbX.mjs} +5 -2
- package/dist/shared/{core.CaaYNQDM.mjs → core.H8NbNp2X.mjs} +5 -2
- package/dist/shared/{core.BFb3p5d-.d.mts → core.O6FG0HF9.d.mts} +1 -1
- package/dist/shared/{core.BlwZ4tBa.mjs → core.YyjkRVss.mjs} +7 -7
- package/dist/shared/{core.CF82MWyh.d.mts → core.wwaSalox.d.mts} +1 -1
- package/dist/types/_aux.d.mts +2 -2
- package/dist/types/_aux.mjs +4 -0
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +5 -4
- package/dist/types/scalar.d.mts +1 -1
- package/dist/types/scalar.mjs +4 -68
- package/dist/utils/index.d.mts +2 -2
- package/package.json +3 -3
- package/src/builder/Builder.ts +4 -1
- package/src/compute-view/utils/applyCustomElementProperties.ts +1 -1
- package/src/model/DeploymentElementModel.ts +5 -1
- package/src/model/LikeC4Model.ts +10 -2
- package/src/model/view/LikeC4ViewModel.ts +2 -2
- package/src/types/RichText.ts +5 -2
- package/src/types/expression-model.ts +3 -3
- package/src/types/expression.ts +3 -3
- package/src/types/index.ts +2 -2
- package/src/types/project.ts +7 -2
- package/src/types/scalar.ts +3 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `@likec4/core`
|
|
2
2
|
|
|
3
3
|
<a href="https://www.npmjs.com/package/%40likec4%2Fcore" target="_blank"></a>
|
|
4
|
-
<a href="https://www.npmjs.com/package/%40likec4%2Fcore" target="_blank"></a>
|
|
5
5
|
|
|
6
6
|
A core package for LikeC4, containing types, api, utilities and guards.
|
|
7
7
|
|
|
@@ -157,8 +157,8 @@ Generic guards are also available in `@likec4/core/model`:
|
|
|
157
157
|
|
|
158
158
|
```ts
|
|
159
159
|
import {
|
|
160
|
-
isElementModel,
|
|
161
160
|
isDeployedInstanceModel,
|
|
161
|
+
isElementModel,
|
|
162
162
|
isLikeC4ViewModel,
|
|
163
163
|
// ... other guards
|
|
164
164
|
} from '@likec4/core/model'
|
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged } from 'type-fest';
|
|
2
|
-
import { g as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { D as DeploymentFqn, F as Fqn } from '../shared/core.
|
|
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.
|
|
2
|
+
import { g as LikeC4Model } from '../shared/core.BvlHvikl.mjs';
|
|
3
|
+
import { D as DeploymentFqn, F as Fqn } from '../shared/core.DX-WYEPA.mjs';
|
|
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.CE_hG7EJ.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.
|
|
6
|
+
import { x as setProject, a as Aux, S as SpecAux, A as Any } from '../shared/core.O6FG0HF9.mjs';
|
|
7
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';
|
|
8
8
|
import '../shared/core.CywrQs86.mjs';
|
|
9
9
|
|
package/dist/builder/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { i, l, d, c as computeLikeC4Model } from '../shared/core.
|
|
1
|
+
import { i, l, d, c as computeLikeC4Model } from '../shared/core.YyjkRVss.mjs';
|
|
2
2
|
import { m } from '../shared/core.ByrmCl9I.mjs';
|
|
3
|
-
import { a as _type, n as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core.
|
|
3
|
+
import { a as _type, n as n$1, _ as _stage, c as isDeployedInstance, F as FqnRef } from '../shared/core.DK6I-Nr7.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.DsznOb9G.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.BW8K1y6R.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.H8NbNp2X.mjs';
|
|
14
|
+
import '../shared/core.DyzAZvbX.mjs';
|
|
15
15
|
import '../shared/core.C1GV0WWV.mjs';
|
|
16
16
|
import '../shared/core.CnIyafWn.mjs';
|
|
17
17
|
import '../shared/core.B0oEIXqd.mjs';
|
|
@@ -28,7 +28,7 @@ import '../shared/core.Y3j3s-oq.mjs';
|
|
|
28
28
|
import '../shared/core.BgvIuGGU.mjs';
|
|
29
29
|
import '../shared/core.BoyJPEen.mjs';
|
|
30
30
|
import '../shared/core.HUONfQfd.mjs';
|
|
31
|
-
import '../
|
|
31
|
+
import '../shared/core.BL_xjl90.mjs';
|
|
32
32
|
import '../shared/core.BpJu1RrF.mjs';
|
|
33
33
|
import '../shared/core.Btl47GOn.mjs';
|
|
34
34
|
import '../shared/core.yaRvRnMW.mjs';
|
|
@@ -591,7 +591,10 @@ function builder(spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _
|
|
|
591
591
|
build: (project) => ({
|
|
592
592
|
[_stage]: "parsed",
|
|
593
593
|
projectId: project?.id ?? "from-builder",
|
|
594
|
-
project:
|
|
594
|
+
project: {
|
|
595
|
+
id: "from-builder",
|
|
596
|
+
...project
|
|
597
|
+
},
|
|
595
598
|
specification: toLikeC4Specification(),
|
|
596
599
|
elements: n(
|
|
597
600
|
structuredClone(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as Any } from '../shared/core.
|
|
2
|
-
import { g as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, an as ParsedView, aq as ComputedView } from '../shared/core.
|
|
1
|
+
import { A as Any } from '../shared/core.O6FG0HF9.mjs';
|
|
2
|
+
import { g as LikeC4Model } from '../shared/core.BvlHvikl.mjs';
|
|
3
|
+
import { n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, an as ParsedView, aq as ComputedView } from '../shared/core.CE_hG7EJ.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
5
|
import '../shared/core.DuSLYTG6.mjs';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.DX-WYEPA.mjs';
|
|
7
7
|
import '../shared/core.CywrQs86.mjs';
|
|
8
8
|
import '../shared/core.CzdwsPmY.mjs';
|
|
9
9
|
|
|
@@ -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.YyjkRVss.mjs';
|
|
2
|
+
export { c as computeLikeC4Model, a as computeParsedModelData, b as computeView, u as unsafeComputeView } from '../shared/core.YyjkRVss.mjs';
|
|
3
|
+
import { i as i$1 } from '../shared/core.DyzAZvbX.mjs';
|
|
4
|
+
import { r } from '../shared/core.DsznOb9G.mjs';
|
|
5
|
+
import { h as isExtendsElementView, f as isElementView } from '../shared/core.BW8K1y6R.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';
|
|
@@ -16,10 +16,10 @@ import '../shared/core.D4npX2q8.mjs';
|
|
|
16
16
|
import '../shared/core.HUONfQfd.mjs';
|
|
17
17
|
import '../shared/core.8KM0D6va.mjs';
|
|
18
18
|
import '../shared/core.CnIyafWn.mjs';
|
|
19
|
-
import '../shared/core.
|
|
19
|
+
import '../shared/core.DK6I-Nr7.mjs';
|
|
20
20
|
import '../shared/core.zLlww-07.mjs';
|
|
21
|
-
import '../
|
|
22
|
-
import '../shared/core.
|
|
21
|
+
import '../shared/core.BL_xjl90.mjs';
|
|
22
|
+
import '../shared/core.H8NbNp2X.mjs';
|
|
23
23
|
import '../shared/core.B0oEIXqd.mjs';
|
|
24
24
|
import 'rehype-raw';
|
|
25
25
|
import 'rehype-sanitize';
|
|
@@ -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.O6FG0HF9.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel, g as LikeC4Model } from '../../shared/core.BvlHvikl.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import '../../shared/core.DuSLYTG6.mjs';
|
|
5
|
-
import '../../shared/core.
|
|
5
|
+
import '../../shared/core.DX-WYEPA.mjs';
|
|
6
6
|
import '../../shared/core.CywrQs86.mjs';
|
|
7
|
-
import '../../shared/core.
|
|
7
|
+
import '../../shared/core.CE_hG7EJ.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,12 +1,12 @@
|
|
|
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.
|
|
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.
|
|
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.
|
|
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.O6FG0HF9.mjs';
|
|
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.DX-WYEPA.mjs';
|
|
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.CE_hG7EJ.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';
|
|
10
|
-
export { I as IterableContainer, R as ReorderedArray, a as ancestorsFqn, c as commonAncestor, b as compareByFqnHierarchically, d as compareFqnHierarchically, h as hierarchyDistance, e as hierarchyLevel, i as isAncestor, f as isDescendantOf, g as isSameHierarchy, n as nameFromFqn, p as parentFqn, s as sortByFqnHierarchically, j as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.
|
|
10
|
+
export { I as IterableContainer, R as ReorderedArray, a as ancestorsFqn, c as commonAncestor, b as compareByFqnHierarchically, d as compareFqnHierarchically, h as hierarchyDistance, e as hierarchyLevel, i as isAncestor, f as isDescendantOf, g as isSameHierarchy, n as nameFromFqn, p as parentFqn, s as sortByFqnHierarchically, j as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.wwaSalox.mjs';
|
|
11
11
|
export { ifilter, ifind, ifirst, iflat, ihead, imap, ireduce, isIterable, isome, iunique, toArray, toSet } from './utils/iterable/index.mjs';
|
|
12
12
|
import 'type-fest';
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
2
|
+
export { _ as aux } from './types/_aux.mjs';
|
|
3
|
+
export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, N as NodeId, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, g as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, e as isStepEdgeId, s as scalar, c as splitGlobalFqn, d as stepEdgeId } from './shared/core.BL_xjl90.mjs';
|
|
4
|
+
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.H8NbNp2X.mjs';
|
|
5
|
+
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.DK6I-Nr7.mjs';
|
|
6
|
+
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.BW8K1y6R.mjs';
|
|
5
7
|
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';
|
|
7
8
|
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';
|
|
8
9
|
export { D as DefaultMap } from './shared/core.yaRvRnMW.mjs';
|
|
9
10
|
export { S as Stack, c as commonHead, o as objectHash } from './shared/core.HUONfQfd.mjs';
|
|
@@ -22,8 +23,8 @@ import '@mantine/colors-generator';
|
|
|
22
23
|
import 'chroma-js';
|
|
23
24
|
import './shared/core.BpJu1RrF.mjs';
|
|
24
25
|
import './shared/core.DbRvwARP.mjs';
|
|
25
|
-
import './shared/core.zLlww-07.mjs';
|
|
26
26
|
import './shared/core.CnIyafWn.mjs';
|
|
27
|
+
import './shared/core.zLlww-07.mjs';
|
|
27
28
|
import './shared/core.BgvIuGGU.mjs';
|
|
28
29
|
import './shared/core.ByrmCl9I.mjs';
|
|
29
30
|
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.Bf5zKDK1.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DhDo8LAz.mjs';
|
|
3
|
+
import '../../../shared/core.BvlHvikl.mjs';
|
|
4
|
+
import '../../../shared/core.O6FG0HF9.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import '../../../shared/core.DuSLYTG6.mjs';
|
|
7
|
-
import '../../../shared/core.
|
|
7
|
+
import '../../../shared/core.DX-WYEPA.mjs';
|
|
8
8
|
import '../../../shared/core.CywrQs86.mjs';
|
|
9
|
-
import '../../../shared/core.
|
|
9
|
+
import '../../../shared/core.CE_hG7EJ.mjs';
|
|
10
10
|
import '../../../shared/core.CzdwsPmY.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.DyzAZvbX.mjs';
|
|
3
3
|
import '../../../shared/core.DQj9iv_y.mjs';
|
|
4
4
|
import '../../../shared/core.zLlww-07.mjs';
|
|
5
5
|
import '../../../shared/core.CpwrZi3D.mjs';
|
|
@@ -16,4 +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.
|
|
19
|
+
import '../../../shared/core.H8NbNp2X.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.
|
|
4
|
-
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.
|
|
5
|
-
import '../../shared/core.
|
|
6
|
-
import '../../shared/core.
|
|
1
|
+
import { C as Connection } from '../../shared/core.Bf5zKDK1.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.DhDo8LAz.mjs';
|
|
3
|
+
export { C as ConnectionModel, f as model } from '../../shared/core.Dtw1SBlz.mjs';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.wwaSalox.mjs';
|
|
5
|
+
import '../../shared/core.BvlHvikl.mjs';
|
|
6
|
+
import '../../shared/core.O6FG0HF9.mjs';
|
|
7
7
|
import 'type-fest';
|
|
8
8
|
import '../../shared/core.DuSLYTG6.mjs';
|
|
9
|
-
import '../../shared/core.
|
|
9
|
+
import '../../shared/core.DX-WYEPA.mjs';
|
|
10
10
|
import '../../shared/core.CywrQs86.mjs';
|
|
11
|
-
import '../../shared/core.
|
|
11
|
+
import '../../shared/core.CE_hG7EJ.mjs';
|
|
12
12
|
import '../../shared/core.CzdwsPmY.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
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.DyzAZvbX.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';
|
|
@@ -17,7 +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.
|
|
20
|
+
import '../../shared/core.H8NbNp2X.mjs';
|
|
21
21
|
import '../../shared/core.BgvIuGGU.mjs';
|
|
22
22
|
import '../../shared/core.ByrmCl9I.mjs';
|
|
23
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.Bf5zKDK1.mjs';
|
|
2
|
+
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.Dtw1SBlz.mjs';
|
|
3
|
+
import '../../../shared/core.BvlHvikl.mjs';
|
|
4
|
+
import '../../../shared/core.O6FG0HF9.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import '../../../shared/core.DuSLYTG6.mjs';
|
|
7
|
-
import '../../../shared/core.
|
|
7
|
+
import '../../../shared/core.DX-WYEPA.mjs';
|
|
8
8
|
import '../../../shared/core.CywrQs86.mjs';
|
|
9
|
-
import '../../../shared/core.
|
|
9
|
+
import '../../../shared/core.CE_hG7EJ.mjs';
|
|
10
10
|
import '../../../shared/core.CzdwsPmY.mjs';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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.BvlHvikl.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.BvlHvikl.mjs';
|
|
3
|
+
import { A as Any } from '../shared/core.O6FG0HF9.mjs';
|
|
4
|
+
export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.O6FG0HF9.mjs';
|
|
5
|
+
export { C as Connection } from '../shared/core.Bf5zKDK1.mjs';
|
|
6
|
+
export { C as ConnectionModel, f as modelConnection } from '../shared/core.Dtw1SBlz.mjs';
|
|
7
|
+
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.DhDo8LAz.mjs';
|
|
8
8
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
9
|
-
export { H as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.
|
|
10
|
-
import '../shared/core.
|
|
9
|
+
export { H as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.CE_hG7EJ.mjs';
|
|
10
|
+
import '../shared/core.DX-WYEPA.mjs';
|
|
11
11
|
import 'type-fest';
|
|
12
|
-
import '../shared/core.
|
|
12
|
+
import '../shared/core.CywrQs86.mjs';
|
|
13
13
|
import '../shared/core.DuSLYTG6.mjs';
|
|
14
14
|
import '../shared/core.CzdwsPmY.mjs';
|
|
15
|
-
import '../shared/core.
|
|
15
|
+
import '../shared/core.wwaSalox.mjs';
|
|
16
16
|
|
|
17
17
|
type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
|
|
18
18
|
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
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.DsznOb9G.mjs';
|
|
2
|
+
export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.DyzAZvbX.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.H8NbNp2X.mjs';
|
|
6
6
|
import '../shared/core.DbRvwARP.mjs';
|
|
7
7
|
import '../shared/core.ByrmCl9I.mjs';
|
|
8
8
|
import '../shared/core.CpwrZi3D.mjs';
|
|
@@ -11,8 +11,8 @@ 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.
|
|
15
|
-
import '../
|
|
14
|
+
import '../shared/core.DK6I-Nr7.mjs';
|
|
15
|
+
import '../shared/core.BL_xjl90.mjs';
|
|
16
16
|
import '../shared/core.CnIyafWn.mjs';
|
|
17
17
|
import '../shared/core.BgvIuGGU.mjs';
|
|
18
18
|
import '../shared/core.B0oEIXqd.mjs';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { n } from './core.CnIyafWn.mjs';
|
|
2
|
+
import { t } from './core.zLlww-07.mjs';
|
|
3
|
+
import { i as invariant } from './core.D4npX2q8.mjs';
|
|
4
|
+
|
|
5
|
+
function ProjectId(name) {
|
|
6
|
+
return name;
|
|
7
|
+
}
|
|
8
|
+
function flattenMarkdownOrString(value) {
|
|
9
|
+
if (value === null || value === void 0) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const content = t(value) ? value : value.txt ?? value.md;
|
|
13
|
+
return n(content?.trim()) ? content : null;
|
|
14
|
+
}
|
|
15
|
+
function Fqn(name, parent) {
|
|
16
|
+
return parent ? parent + "." + name : name;
|
|
17
|
+
}
|
|
18
|
+
const GroupElementKind = "@group";
|
|
19
|
+
function isGroupElementKind(v) {
|
|
20
|
+
return v.kind === GroupElementKind;
|
|
21
|
+
}
|
|
22
|
+
function DeploymentFqn(name, parent) {
|
|
23
|
+
return parent ? parent + "." + name : name;
|
|
24
|
+
}
|
|
25
|
+
function ViewId(id) {
|
|
26
|
+
return id;
|
|
27
|
+
}
|
|
28
|
+
function RelationId(id) {
|
|
29
|
+
return id;
|
|
30
|
+
}
|
|
31
|
+
function GlobalFqn(projectId, name) {
|
|
32
|
+
invariant(n(projectId), "Project ID must start with @");
|
|
33
|
+
return "@" + projectId + "." + name;
|
|
34
|
+
}
|
|
35
|
+
function isGlobalFqn(fqn) {
|
|
36
|
+
return fqn.startsWith("@");
|
|
37
|
+
}
|
|
38
|
+
function splitGlobalFqn(fqn) {
|
|
39
|
+
if (!fqn.startsWith("@")) {
|
|
40
|
+
return [null, fqn];
|
|
41
|
+
}
|
|
42
|
+
const firstDot = fqn.indexOf(".");
|
|
43
|
+
if (firstDot < 2) {
|
|
44
|
+
throw new Error("Invalid global FQN");
|
|
45
|
+
}
|
|
46
|
+
const projectId = fqn.slice(1, firstDot);
|
|
47
|
+
const name = fqn.slice(firstDot + 1);
|
|
48
|
+
return [projectId, name];
|
|
49
|
+
}
|
|
50
|
+
function NodeId(id) {
|
|
51
|
+
return id;
|
|
52
|
+
}
|
|
53
|
+
function EdgeId(id) {
|
|
54
|
+
return id;
|
|
55
|
+
}
|
|
56
|
+
function stepEdgeId(step, parallelStep) {
|
|
57
|
+
const id = `step-${String(step).padStart(2, "0")}`;
|
|
58
|
+
return parallelStep ? `${id}.${parallelStep}` : id;
|
|
59
|
+
}
|
|
60
|
+
const StepEdgeKind = "@step";
|
|
61
|
+
function isStepEdgeId(id) {
|
|
62
|
+
return id.startsWith("step-");
|
|
63
|
+
}
|
|
64
|
+
function extractStep(id) {
|
|
65
|
+
if (!isStepEdgeId(id)) {
|
|
66
|
+
throw new Error(`Invalid step edge id: ${id}`);
|
|
67
|
+
}
|
|
68
|
+
return parseFloat(id.slice("step-".length));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const scalar = {
|
|
72
|
+
__proto__: null,
|
|
73
|
+
DeploymentFqn: DeploymentFqn,
|
|
74
|
+
EdgeId: EdgeId,
|
|
75
|
+
Fqn: Fqn,
|
|
76
|
+
GlobalFqn: GlobalFqn,
|
|
77
|
+
GroupElementKind: GroupElementKind,
|
|
78
|
+
NodeId: NodeId,
|
|
79
|
+
ProjectId: ProjectId,
|
|
80
|
+
RelationId: RelationId,
|
|
81
|
+
StepEdgeKind: StepEdgeKind,
|
|
82
|
+
ViewId: ViewId,
|
|
83
|
+
extractStep: extractStep,
|
|
84
|
+
flattenMarkdownOrString: flattenMarkdownOrString,
|
|
85
|
+
isGlobalFqn: isGlobalFqn,
|
|
86
|
+
isGroupElementKind: isGroupElementKind,
|
|
87
|
+
isStepEdgeId: isStepEdgeId,
|
|
88
|
+
splitGlobalFqn: splitGlobalFqn,
|
|
89
|
+
stepEdgeId: stepEdgeId
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export { DeploymentFqn as D, EdgeId as E, Fqn as F, GroupElementKind as G, NodeId as N, ProjectId as P, RelationId as R, StepEdgeKind as S, ViewId as V, GlobalFqn as a, isGlobalFqn as b, splitGlobalFqn as c, stepEdgeId as d, isStepEdgeId as e, flattenMarkdownOrString as f, extractStep as g, isGroupElementKind as i, scalar as s };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FqnRef } from './core.
|
|
1
|
+
import { F as FqnRef } from './core.DK6I-Nr7.mjs';
|
|
2
2
|
import { n } from './core.CnIyafWn.mjs';
|
|
3
|
-
import { isStepEdgeId } from '
|
|
3
|
+
import { e as isStepEdgeId } from './core.BL_xjl90.mjs';
|
|
4
4
|
|
|
5
5
|
function o(r){return Array.isArray(r)}
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as ElementModel, e as DeploymentElementModel } from './core.
|
|
2
|
-
import { A as Any } from './core.
|
|
3
|
-
import { F as Fqn } from './core.
|
|
1
|
+
import { E as ElementModel, e as DeploymentElementModel } from './core.BvlHvikl.mjs';
|
|
2
|
+
import { A as Any } from './core.O6FG0HF9.mjs';
|
|
3
|
+
import { F as Fqn } from './core.DX-WYEPA.mjs';
|
|
4
4
|
|
|
5
5
|
interface Connection<Elem = ElementModel<Any> | DeploymentElementModel<Any>, Id = string> {
|
|
6
6
|
readonly id: Id;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Any, R as RelationKind, T as Tags, h as Metadata, j as MetadataKey, L as LooseTag, F as Fqn, g as ElementId, k as ElementKind, D as DeploymentKind, E as ExtractOnStage, l as RelationId$1, m as StrictViewId, f as _type, n as LooseElementId, o as LooseDeploymentId, p as DeploymentFqn, t as toComputed, q as toLayouted, r as Stage, s as DeploymentId, U as Unknown, V as ViewId, u as Tag, v as toParsed, P as ProjectId$1, w as LooseViewId, a as Aux, S as SpecAux, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted } from './core.
|
|
1
|
+
import { A as Any, R as RelationKind, T as Tags, h as Metadata, j as MetadataKey, L as LooseTag, F as Fqn, g as ElementId, k as ElementKind, D as DeploymentKind, E as ExtractOnStage, l as RelationId$1, m as StrictViewId, f as _type, n as LooseElementId, o as LooseDeploymentId, p as DeploymentFqn, t as toComputed, q as toLayouted, r as Stage, s as DeploymentId, U as Unknown, V as ViewId, u as Tag, v as toParsed, P as ProjectId$1, w as LooseViewId, a as Aux, S as SpecAux, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted } from './core.O6FG0HF9.mjs';
|
|
2
|
+
import { d as RelationId, P as ProjectId, a as IconUrl, N as NodeId, G as GroupElementKind, j as EdgeId, k as StepEdgeId, V as ViewId$1 } from './core.DX-WYEPA.mjs';
|
|
2
3
|
import { D as DefaultMap } from './core.CywrQs86.mjs';
|
|
3
4
|
import { SetRequired } from 'type-fest';
|
|
4
|
-
import {
|
|
5
|
-
import { b as RichTextOrEmpty, Z as Relationship, T as Element, Q as ElementStyle, au as ViewWithType, aq as ComputedView, ao as LayoutedView, n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, L as LayoutedLikeC4ModelData, f as FqnRef, q as DeployedInstance, D as DeploymentElementStyle, v as DeploymentRelationship, r as DeploymentElement, p as DeploymentNode, y as LikeC4ModelDump, H as AuxFromDump, am as LikeC4Project, a3 as Specification, m as ModelGlobals, ai as WhereOperator } from './core.DxDn5nB5.mjs';
|
|
5
|
+
import { b as RichTextOrEmpty, Z as Relationship, T as Element, Q as ElementStyle, au as ViewWithType, aq as ComputedView, ao as LayoutedView, n as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, L as LayoutedLikeC4ModelData, f as FqnRef, q as DeployedInstance, D as DeploymentElementStyle, v as DeploymentRelationship, r as DeploymentElement, p as DeploymentNode, y as LikeC4ModelDump, H as AuxFromDump, am as LikeC4Project, a3 as Specification, m as ModelGlobals, ai as WhereOperator } from './core.CE_hG7EJ.mjs';
|
|
6
6
|
import { I as IteratorLike, L as Link, N as NonEmptyArray } from './core.DuSLYTG6.mjs';
|
|
7
7
|
import { i as Color, R as RelationshipLineType, c as ElementShape } from './core.CzdwsPmY.mjs';
|
|
8
8
|
|
|
@@ -368,7 +368,7 @@ declare class LikeC4ViewModel<A extends Any = Any, V extends $View<A> = $View<A>
|
|
|
368
368
|
get _type(): V[_type];
|
|
369
369
|
get id(): StrictViewId<A>;
|
|
370
370
|
/**
|
|
371
|
-
* Returns title if defined, otherwise returns its {@link id}
|
|
371
|
+
* Returns title if defined, otherwise returns title of the element it is based on, otherwise returns its {@link id}
|
|
372
372
|
*/
|
|
373
373
|
get titleOrId(): string;
|
|
374
374
|
/**
|
|
@@ -610,6 +610,7 @@ declare abstract class AbstractDeploymentElementModel<A extends Any> implements
|
|
|
610
610
|
abstract readonly $node: DeploymentElement<A>;
|
|
611
611
|
abstract readonly tags: Tags<A>;
|
|
612
612
|
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
613
|
+
get name(): string;
|
|
613
614
|
get shape(): ElementShape;
|
|
614
615
|
get color(): Color;
|
|
615
616
|
get description(): RichTextOrEmpty;
|
|
@@ -885,7 +886,15 @@ declare class LikeC4Model<A extends Any = Unknown> {
|
|
|
885
886
|
*/
|
|
886
887
|
get $model(): $ModelData<A>;
|
|
887
888
|
get stage(): Stage<A>;
|
|
889
|
+
/**
|
|
890
|
+
* Returns the Project ID associated with the model.
|
|
891
|
+
* If the project ID is not defined in the model, it returns "default".
|
|
892
|
+
*/
|
|
888
893
|
get projectId(): ProjectId$1<A>;
|
|
894
|
+
/**
|
|
895
|
+
* Returns the project associated with the model.
|
|
896
|
+
* If the project is not defined in the model, it returns a default project with the ID "default".
|
|
897
|
+
*/
|
|
889
898
|
get project(): LikeC4Project;
|
|
890
899
|
get specification(): Specification<A>;
|
|
891
900
|
get globals(): ModelGlobals;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Simplify, MergeExclusive, Tagged, NonEmptyTuple, IsNever, IsAny } from 'type-fest';
|
|
2
|
-
import { A as Any, U as Unknown, g as ElementId, P as ProjectId, F as Fqn, s as DeploymentId, u as Tag, y as AllKinds, T as Tags, m as StrictViewId, k as ElementKind, W as WithOptionalTags, z as WithOptionalLinks, e as _stage, f as _type, B as WithMetadata, h as Metadata, R as RelationKind, V as ViewId, p as DeploymentFqn, D as DeploymentKind, j as MetadataKey, E as ExtractOnStage, M as ModelStage, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted, S as SpecAux, a as Aux, N as Never } from './core.
|
|
2
|
+
import { A as Any, U as Unknown, g as ElementId, P as ProjectId, F as Fqn, s as DeploymentId, u as Tag, y as AllKinds, T as Tags, m as StrictViewId, k as ElementKind, W as WithOptionalTags, z as WithOptionalLinks, e as _stage, f as _type, B as WithMetadata, h as Metadata, R as RelationKind, V as ViewId, p as DeploymentFqn, D as DeploymentKind, j as MetadataKey, E as ExtractOnStage, M as ModelStage, d as UnknownParsed, b as UnknownComputed, c as UnknownLayouted, S as SpecAux, a as Aux, N as Never } from './core.O6FG0HF9.mjs';
|
|
3
3
|
import { E as ExclusiveUnion, N as NonEmptyArray, L as Link, K as KeysOf } from './core.DuSLYTG6.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { M as MarkdownOrString, I as Icon, d as RelationId, T as Tag$1, P as ProjectId$1, N as NodeId, j as EdgeId, m as StepEdgeKind } from './core.DX-WYEPA.mjs';
|
|
5
5
|
import { i as Color, R as RelationshipLineType, f as RelationshipArrowType, c as ElementShape, b as BorderStyle, a as ShapeSize, S as SpacingSize, T as TextSize, h as ThemeColor, C as ColorLiteral, e as CustomColorDefinitions } from './core.CzdwsPmY.mjs';
|
|
6
6
|
|
|
7
7
|
declare namespace FqnRef {
|
|
@@ -158,7 +158,7 @@ declare namespace FqnExpr {
|
|
|
158
158
|
custom: {
|
|
159
159
|
expr: OrWhere<A>;
|
|
160
160
|
title?: string;
|
|
161
|
-
description?:
|
|
161
|
+
description?: MarkdownOrString;
|
|
162
162
|
technology?: string;
|
|
163
163
|
notation?: string;
|
|
164
164
|
shape?: ElementShape;
|
|
@@ -343,7 +343,7 @@ declare namespace ModelFqnExpr {
|
|
|
343
343
|
custom: {
|
|
344
344
|
expr: OrWhere<A>;
|
|
345
345
|
title?: string;
|
|
346
|
-
description?:
|
|
346
|
+
description?: MarkdownOrString;
|
|
347
347
|
technology?: string;
|
|
348
348
|
notation?: string;
|
|
349
349
|
shape?: ElementShape;
|
|
@@ -900,10 +900,14 @@ type Specification<A> = A extends Any ? {
|
|
|
900
900
|
} : never;
|
|
901
901
|
|
|
902
902
|
/**
|
|
903
|
-
*
|
|
903
|
+
* Configuration of the project, as read from the config file.
|
|
904
|
+
* LikeC4 projects encapsulate models, and can import from each other
|
|
904
905
|
*/
|
|
905
906
|
interface LikeC4Project {
|
|
906
|
-
|
|
907
|
+
/**
|
|
908
|
+
* ID of the project, casted to {@link scalar.ProjectId}
|
|
909
|
+
*/
|
|
910
|
+
readonly id: ProjectId$1;
|
|
907
911
|
title?: string;
|
|
908
912
|
}
|
|
909
913
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as t$1 } from './core.zLlww-07.mjs';
|
|
2
|
-
import { GlobalFqn } from '
|
|
2
|
+
import { a as GlobalFqn } from './core.BL_xjl90.mjs';
|
|
3
3
|
import { n as n$1 } from './core.CnIyafWn.mjs';
|
|
4
4
|
import { o } from './core.BgvIuGGU.mjs';
|
|
5
5
|
import { u } from './core.DbRvwARP.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Tagged } from 'type-fest';
|
|
2
2
|
|
|
3
3
|
type ProjectId<T = string> = Tagged<T, 'ProjectID'>;
|
|
4
|
+
declare function ProjectId(name: string): ProjectId;
|
|
4
5
|
type MarkdownOrString = {
|
|
5
6
|
txt: string;
|
|
6
7
|
md?: never;
|
|
@@ -113,7 +114,7 @@ type scalar_Icon = Icon;
|
|
|
113
114
|
type scalar_IconUrl = IconUrl;
|
|
114
115
|
type scalar_MarkdownOrString = MarkdownOrString;
|
|
115
116
|
declare const scalar_NodeId: typeof NodeId;
|
|
116
|
-
|
|
117
|
+
declare const scalar_ProjectId: typeof ProjectId;
|
|
117
118
|
declare const scalar_RelationId: typeof RelationId;
|
|
118
119
|
type scalar_RelationKind<Kinds = string> = RelationKind<Kinds>;
|
|
119
120
|
type scalar_RelationshipKind<Kinds = string> = RelationshipKind<Kinds>;
|
|
@@ -130,7 +131,7 @@ declare const scalar_isStepEdgeId: typeof isStepEdgeId;
|
|
|
130
131
|
declare const scalar_splitGlobalFqn: typeof splitGlobalFqn;
|
|
131
132
|
declare const scalar_stepEdgeId: typeof stepEdgeId;
|
|
132
133
|
declare namespace scalar {
|
|
133
|
-
export { type scalar_AnyFqn as AnyFqn, type scalar_BuiltInIcon as BuiltInIcon, scalar_DeploymentFqn as DeploymentFqn, type scalar_DeploymentKind as DeploymentKind, scalar_EdgeId as EdgeId, type scalar_ElementKind as ElementKind, scalar_Fqn as Fqn, scalar_GlobalFqn as GlobalFqn, type scalar_GroupElementKind as GroupElementKind, type scalar_Icon as Icon, type scalar_IconUrl as IconUrl, type scalar_MarkdownOrString as MarkdownOrString, scalar_NodeId as NodeId,
|
|
134
|
+
export { type scalar_AnyFqn as AnyFqn, type scalar_BuiltInIcon as BuiltInIcon, scalar_DeploymentFqn as DeploymentFqn, type scalar_DeploymentKind as DeploymentKind, scalar_EdgeId as EdgeId, type scalar_ElementKind as ElementKind, scalar_Fqn as Fqn, scalar_GlobalFqn as GlobalFqn, type scalar_GroupElementKind as GroupElementKind, type scalar_Icon as Icon, type scalar_IconUrl as IconUrl, type scalar_MarkdownOrString as MarkdownOrString, scalar_NodeId as NodeId, scalar_ProjectId as ProjectId, scalar_RelationId as RelationId, type scalar_RelationKind as RelationKind, type scalar_RelationshipKind as RelationshipKind, type scalar_StepEdgeId as StepEdgeId, type scalar_StepEdgeIdLiteral as StepEdgeIdLiteral, scalar_StepEdgeKind as StepEdgeKind, type scalar_Tag as Tag, scalar_ViewId as ViewId, scalar_extractStep as extractStep, scalar_flattenMarkdownOrString as flattenMarkdownOrString, scalar_isGlobalFqn as isGlobalFqn, scalar_isGroupElementKind as isGroupElementKind, scalar_isStepEdgeId as isStepEdgeId, scalar_splitGlobalFqn as splitGlobalFqn, scalar_stepEdgeId as stepEdgeId };
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
export { type AnyFqn as A, type BuiltInIcon as B, DeploymentFqn as D, type ElementKind as E, Fqn as F, GroupElementKind as G, type Icon as I, type MarkdownOrString as M, NodeId as N,
|
|
137
|
+
export { type AnyFqn as A, type BuiltInIcon as B, DeploymentFqn as D, type ElementKind as E, Fqn as F, GroupElementKind as G, type Icon as I, type MarkdownOrString as M, NodeId as N, ProjectId as P, type RelationKind as R, type StepEdgeIdLiteral as S, type Tag as T, ViewId as V, type IconUrl as a, type DeploymentKind as b, type RelationshipKind as c, RelationId as d, GlobalFqn as e, flattenMarkdownOrString as f, isGlobalFqn as g, splitGlobalFqn as h, isGroupElementKind as i, EdgeId as j, type StepEdgeId as k, stepEdgeId as l, StepEdgeKind as m, isStepEdgeId as n, extractStep as o, scalar as s };
|