@likec4/core 1.43.0 → 1.44.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/dist/builder/index.d.mts +7 -7
- package/dist/builder/index.mjs +10 -8
- package/dist/compute-view/index.d.mts +9 -9
- package/dist/compute-view/index.mjs +7 -7
- package/dist/compute-view/relationships-view/index.d.mts +7 -7
- package/dist/compute-view/relationships-view/index.mjs +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +7 -7
- package/dist/model/connection/deployment/index.d.mts +9 -9
- package/dist/model/connection/deployment/index.mjs +2 -2
- package/dist/model/connection/index.d.mts +10 -10
- package/dist/model/connection/index.mjs +3 -3
- package/dist/model/connection/model/index.d.mts +9 -9
- package/dist/model/connection/model/index.mjs +2 -2
- package/dist/model/index.d.mts +26 -12
- package/dist/model/index.mjs +4 -4
- package/dist/shared/{core.CXWsKEDr.mjs → core.23WeDKcI.mjs} +269 -632
- package/dist/shared/{core.CwsG7hOw.d.mts → core.5ZQ-r3Oa.d.mts} +1 -1
- package/dist/shared/{core.727Qoh_W.mjs → core.6VsRBhGY.mjs} +2 -101
- package/dist/shared/{core.CT1xBp4R.d.mts → core.8mmHFn9g.d.mts} +2 -2
- package/dist/shared/core.B9BjmjuH.mjs +9 -0
- package/dist/shared/{core.CvLjw3bH.d.mts → core.BMtVqKl7.d.mts} +89 -11
- package/dist/shared/{core.rCeaAqgW.mjs → core.BdPcbSkN.mjs} +1 -1
- package/dist/shared/{core.DTdfiejA.d.mts → core.BnDbAOR2.d.mts} +2 -2
- package/dist/shared/{core.CDvVInBp.d.mts → core.BnOetIAR.d.mts} +2 -2
- package/dist/shared/core.BuQZczj6.mjs +38 -0
- package/dist/shared/core.Bv3cd-jC.mjs +102 -0
- package/dist/shared/{core.BouyJs63.mjs → core.C0Ye2OCr.mjs} +1 -1
- package/dist/shared/{core.hNWo20Ym.d.mts → core.CDOKQTW6.d.mts} +54 -35
- package/dist/shared/{core.Be05qJwN.mjs → core.CHwVhuc9.mjs} +36 -10
- package/dist/shared/{core.BT-9gaqQ.d.mts → core.CKNmSm2W.d.mts} +85 -89
- package/dist/shared/{core.DFi2dOTl.mjs → core.CR3PmPzr.mjs} +85 -1
- package/dist/shared/{core.C2TiyjI6.mjs → core.CbsSAn1j.mjs} +19 -19
- package/dist/shared/{core.QJD_fcrc.mjs → core.CmPXpJ8l.mjs} +1 -14
- package/dist/shared/{core.D5fzJWbF.d.mts → core.DB0Ue5Wx.d.mts} +1 -1
- package/dist/shared/{core.DNbUPnve.mjs → core.DEieYfbG.mjs} +27 -25
- package/dist/shared/{core.D0NziuvN.mjs → core.DFCHU59b.mjs} +4 -4
- package/dist/shared/{core.BYNkXQ8A.mjs → core.DH7TXqXf.mjs} +30 -1
- package/dist/shared/{core.DMMOWQqc.mjs → core.DIE3F6sw.mjs} +2 -2
- package/dist/shared/{core.Cq2kxOI-.d.mts → core.DTJYgLXI.d.mts} +3 -3
- package/dist/shared/{core.CcJ1FZ7h.d.mts → core.DjAM-S6a.d.mts} +174 -77
- package/dist/shared/{core.CNgZvKb8.mjs → core.DrUt0Lbi.mjs} +1 -1
- package/dist/shared/core.M9ayqQZa.mjs +1207 -0
- package/dist/shared/{core.BXs4wY7R.d.mts → core.WwMWeiFL.d.mts} +4 -4
- package/dist/shared/{core.2N_9BzyD.mjs → core.bKIs4oDO.mjs} +3 -3
- package/dist/shared/{core.DyToofsP.mjs → core.h4TqqSC0.mjs} +1360 -124
- package/dist/shared/core.q10OP9oJ.mjs +5 -0
- package/dist/shared/core.uFk_o9X6.mjs +13 -0
- package/dist/styles/index.d.mts +18 -8
- package/dist/styles/index.mjs +63 -1
- package/dist/types/_aux.d.mts +2 -2
- package/dist/types/_aux.mjs +8 -1
- package/dist/types/expression-model.d.mts +3 -3
- package/dist/types/expression.d.mts +3 -3
- package/dist/types/fqnRef.d.mts +7 -8
- package/dist/types/index.d.mts +17 -13
- package/dist/types/index.mjs +28 -5
- package/dist/utils/graphology/index.mjs +1 -1
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.mjs +8 -6
- package/dist/utils/iterable/index.d.mts +1 -1
- package/dist/utils/iterable/index.mjs +2 -1
- package/package.json +18 -17
- package/dist/shared/core.01VTr9qu.mjs +0 -170
- package/dist/shared/core.1vX5a9AY.mjs +0 -86
- package/dist/shared/core.BazD6cot.mjs +0 -14
- package/dist/shared/core.BzTakU3I.mjs +0 -67
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged, PartialDeep } from 'type-fest';
|
|
2
|
-
import {
|
|
2
|
+
import { L as LikeC4Model } from '../shared/core.DjAM-S6a.mjs';
|
|
3
3
|
import { D as DeploymentFqn, F as Fqn } from '../shared/core.DX-WYEPA.mjs';
|
|
4
|
-
import { e as DeploymentElement, h as DeploymentRelationship,
|
|
5
|
-
import { f as Element, h as ModelRelation,
|
|
6
|
-
import { f as Participant, E as Expression, u as ElementShape, D as ThemeColor, s as BorderStyle, q as ShapeSize, r as SpacingSize, p as TextSize, y as RelationshipArrowType, v as RelationshipLineType } from '../shared/core.
|
|
4
|
+
import { e as DeploymentElement, h as DeploymentRelationship, o as ParsedView, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData } from '../shared/core.CKNmSm2W.mjs';
|
|
5
|
+
import { f as Element, h as ModelRelation, r as AnyViewRuleStyle, v as AutoLayoutDirection, ag as ParsedElementView, i as ElementSpecification$1, k as RelationshipSpecification, T as TagSpecification, m as LikeC4ProjectStylesConfig } from '../shared/core.BMtVqKl7.mjs';
|
|
6
|
+
import { f as Participant, E as Expression, u as ElementShape, D as ThemeColor, s as BorderStyle, q as ShapeSize, r as SpacingSize, p as TextSize, y as RelationshipArrowType, v as RelationshipLineType } from '../shared/core.BnOetIAR.mjs';
|
|
7
7
|
import { ModelFqnExpr, ModelRelationExpr } from '../types/expression-model.mjs';
|
|
8
|
-
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.
|
|
9
|
-
import {
|
|
10
|
-
import '../shared/core.
|
|
8
|
+
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DB0Ue5Wx.mjs';
|
|
9
|
+
import { Y as setProject, d as Aux, S as SpecAux, A as Any } from '../shared/core.CDOKQTW6.mjs';
|
|
10
|
+
import '../shared/core.8mmHFn9g.mjs';
|
|
11
11
|
import '../shared/core.CywrQs86.mjs';
|
|
12
12
|
import '../types/fqnRef.mjs';
|
|
13
13
|
|
package/dist/builder/index.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { d as defu, t as t$6 } from '../shared/core.
|
|
1
|
+
import { d as defu, t as t$6 } from '../shared/core.DEieYfbG.mjs';
|
|
2
2
|
import { t as t$1, a as t$7 } from '../shared/core.BsSXS-_R.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as t$5 } from '../shared/core.B9BjmjuH.mjs';
|
|
4
|
+
import { j as e } from '../shared/core.BuQZczj6.mjs';
|
|
5
5
|
import { e as e$3 } from '../shared/core.DRJma0Ol.mjs';
|
|
6
|
-
import { a as _type,
|
|
6
|
+
import { a as _type, u as e$2, _ as _stage, d as isDeployedInstance, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
7
7
|
import { t as t$2 } from '../shared/core.CbT8JVYL.mjs';
|
|
8
|
-
import { a as t$
|
|
9
|
-
import {
|
|
8
|
+
import { a as t$4, c as computeLikeC4Model } from '../shared/core.23WeDKcI.mjs';
|
|
9
|
+
import { a as t$3 } from '../shared/core.h4TqqSC0.mjs';
|
|
10
|
+
import { assignTagColors } from '../styles/index.mjs';
|
|
11
|
+
import { n as nameFromFqn, d as isSameHierarchy, p as parentFqn } from '../shared/core.6VsRBhGY.mjs';
|
|
10
12
|
import { e as e$1 } from '../shared/core.CqAJJpK_.mjs';
|
|
11
13
|
import { ModelFqnExpr } from '../types/expression-model.mjs';
|
|
12
14
|
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
13
|
-
import { e as exact } from '../shared/core.
|
|
15
|
+
import { e as exact } from '../shared/core.M9ayqQZa.mjs';
|
|
14
16
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
15
17
|
|
|
16
18
|
function t(...t){return t$1(Object.fromEntries,t)}
|
|
@@ -375,7 +377,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
375
377
|
elements: structuredClone(spec.elements),
|
|
376
378
|
deployments: structuredClone(spec.deployments),
|
|
377
379
|
relationships: structuredClone(spec.relationships),
|
|
378
|
-
tags: structuredClone(spec.tags),
|
|
380
|
+
tags: assignTagColors(structuredClone(spec.tags)),
|
|
379
381
|
...spec.metadataKeys ? { metadataKeys: spec.metadataKeys } : {},
|
|
380
382
|
customColors: {}
|
|
381
383
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as Any } from '../shared/core.
|
|
2
|
-
import {
|
|
3
|
-
import { P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData,
|
|
1
|
+
import { A as Any, t as toComputed, c as AnyParsed } from '../shared/core.CDOKQTW6.mjs';
|
|
2
|
+
import { L as LikeC4Model } from '../shared/core.DjAM-S6a.mjs';
|
|
3
|
+
import { P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, o as ParsedView, r as ComputedView } from '../shared/core.CKNmSm2W.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
|
-
import '../shared/core.
|
|
5
|
+
import '../shared/core.DB0Ue5Wx.mjs';
|
|
6
6
|
import '../shared/core.DX-WYEPA.mjs';
|
|
7
|
-
import '../shared/core.
|
|
8
|
-
import '../shared/core.
|
|
7
|
+
import '../shared/core.8mmHFn9g.mjs';
|
|
8
|
+
import '../shared/core.BnOetIAR.mjs';
|
|
9
9
|
import '../types/fqnRef.mjs';
|
|
10
|
-
import '../shared/core.
|
|
10
|
+
import '../shared/core.BMtVqKl7.mjs';
|
|
11
11
|
import '../types/expression-model.mjs';
|
|
12
12
|
import '../shared/core.CywrQs86.mjs';
|
|
13
13
|
|
|
@@ -22,8 +22,8 @@ type ComputeViewResult<V> = {
|
|
|
22
22
|
};
|
|
23
23
|
declare function unsafeComputeView<A extends Any>(viewsource: ParsedView<A>, likec4model: LikeC4Model<any>): ComputedView<A>;
|
|
24
24
|
declare function computeView<A extends Any>(viewsource: ParsedView<A>, likec4model: LikeC4Model<A>): ComputeViewResult<ComputedView<A>>;
|
|
25
|
-
declare function computeParsedModelData<A extends
|
|
26
|
-
declare function computeLikeC4Model<A extends Any>(parsed: ParsedLikeC4ModelData<A>): LikeC4Model
|
|
25
|
+
declare function computeParsedModelData<A extends AnyParsed, B extends toComputed<A> = toComputed<A>>(parsed: ParsedLikeC4ModelData<A>): ComputedLikeC4ModelData<B>;
|
|
26
|
+
declare function computeLikeC4Model<A extends Any, B extends toComputed<A> = toComputed<A>>(parsed: ParsedLikeC4ModelData<A>): LikeC4Model<B>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Resolve rules of extended views
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as willCreateCycle, t as topologicalSortExports, a as t$
|
|
2
|
-
export { c as computeLikeC4Model,
|
|
3
|
-
import { n } from '../shared/core.
|
|
4
|
-
import { t } from '../shared/core.
|
|
5
|
-
import {
|
|
6
|
-
import { G as Graph } from '../shared/core.
|
|
7
|
-
import { c as isNonEmptyArray } from '../shared/core.
|
|
1
|
+
import { w as willCreateCycle, t as topologicalSortExports, a as t$2, n as n$1 } from '../shared/core.23WeDKcI.mjs';
|
|
2
|
+
export { c as computeLikeC4Model, b as computeParsedModelData, d as computeView, u as unsafeComputeView } from '../shared/core.23WeDKcI.mjs';
|
|
3
|
+
import { n } from '../shared/core.CHwVhuc9.mjs';
|
|
4
|
+
import { t, a as t$1 } from '../shared/core.h4TqqSC0.mjs';
|
|
5
|
+
import { r as isExtendsElementView, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
6
|
+
import { G as Graph } from '../shared/core.DrUt0Lbi.mjs';
|
|
7
|
+
import { c as isNonEmptyArray } from '../shared/core.6VsRBhGY.mjs';
|
|
8
8
|
import { t as t$3 } from '../shared/core.CbT8JVYL.mjs';
|
|
9
9
|
|
|
10
10
|
function resolveRulesExtendedViews(unresolvedViews) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as Any, U as Unknown,
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel,
|
|
1
|
+
import { A as Any, U as Unknown, o as ElementId, V as ViewId } from '../../shared/core.CDOKQTW6.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel, L as LikeC4Model } from '../../shared/core.DjAM-S6a.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
|
-
import '../../shared/core.
|
|
4
|
+
import '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
5
|
import '../../shared/core.DX-WYEPA.mjs';
|
|
6
|
-
import '../../shared/core.
|
|
7
|
-
import '../../shared/core.
|
|
6
|
+
import '../../shared/core.8mmHFn9g.mjs';
|
|
7
|
+
import '../../shared/core.BnOetIAR.mjs';
|
|
8
8
|
import '../../types/fqnRef.mjs';
|
|
9
|
-
import '../../shared/core.
|
|
9
|
+
import '../../shared/core.BMtVqKl7.mjs';
|
|
10
10
|
import '../../types/expression-model.mjs';
|
|
11
11
|
import '../../shared/core.CywrQs86.mjs';
|
|
12
|
-
import '../../shared/core.
|
|
12
|
+
import '../../shared/core.CKNmSm2W.mjs';
|
|
13
13
|
|
|
14
14
|
type RelationshipsViewData<M extends Any = Unknown> = {
|
|
15
15
|
incomers: ReadonlySet<ElementModel<M>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from '../../shared/core.OHD4KXm9.mjs';
|
|
2
|
-
import { f as sortParentsFirst, b as isDescendantOf, i as isAncestor } from '../../shared/core.
|
|
2
|
+
import { f as sortParentsFirst, b as isDescendantOf, i as isAncestor } from '../../shared/core.6VsRBhGY.mjs';
|
|
3
3
|
import { D as DefaultMap } from '../../shared/core.BbE4y-yl.mjs';
|
|
4
4
|
import { a as nonNullable, i as invariant } from '../../shared/core.D4npX2q8.mjs';
|
|
5
5
|
import { t as toSet, a as toArray, i as imap } from '../../shared/core.C3JowhaZ.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as BiMap, D as DefaultWeakMap, L as LinkedList, M as MultiMap, Q as Queue, a as ancestorsFqn, h as hasProp, i as invariant, b as isAncestor, c as isDescendantOf, d as isNonEmptyArray, e as isSameHierarchy, f as isString, m as memoizeProp, n as nameFromFqn, j as nonNullable, g as nonexhaustive, p as parentFqn, s as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.
|
|
1
|
+
export { B as BiMap, D as DefaultWeakMap, L as LinkedList, M as MultiMap, Q as Queue, a as ancestorsFqn, h as hasProp, i as invariant, b as isAncestor, c as isDescendantOf, d as isNonEmptyArray, e as isSameHierarchy, f as isString, m as memoizeProp, n as nameFromFqn, j as nonNullable, g as nonexhaustive, p as parentFqn, s as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.5ZQ-r3Oa.mjs';
|
|
2
2
|
export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
|
|
3
|
-
export { L as LikeC4Styles } from './shared/core.
|
|
4
|
-
export { A as AndOperator, s as BorderStyle, B as BorderStyles, Q as Color, C as ColorLiteral, J as CustomColor, I as CustomColorDefinitions, U as ElementColorValues, u as ElementShape, t as ElementShapes, c as EqualOperator, E as Expression, m as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, L as LikeC4StyleDefaults, a as LikeC4StylesConfig, b as LikeC4Theme, N as NotOperator, n as OperatorPredicate, O as OrOperator, f as Participant, g as ParticipantOperator, P as PredicateSelector, R as RelationExpr, y as RelationshipArrowType, x as RelationshipArrowTypes, V as RelationshipColorValues, v as RelationshipLineType, q as ShapeSize, o as Size, S as Sizes, r as SpacingSize, d as TagEqual, p as TextSize, D as ThemeColor, T as ThemeColorValues, z as ThemeColors, W as WhereOperator, k as isAndOperator, M as isCustomColor, e as isKindEqual, j as isNotOperator, l as isOrOperator, h as isParticipantOperator, i as isTagEqual, G as isThemeColor, w as whereOperatorAsPredicate } from './shared/core.
|
|
3
|
+
export { L as LikeC4Styles } from './shared/core.8mmHFn9g.mjs';
|
|
4
|
+
export { A as AndOperator, s as BorderStyle, B as BorderStyles, Q as Color, C as ColorLiteral, J as CustomColor, I as CustomColorDefinitions, U as ElementColorValues, u as ElementShape, t as ElementShapes, c as EqualOperator, E as Expression, m as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, L as LikeC4StyleDefaults, a as LikeC4StylesConfig, b as LikeC4Theme, N as NotOperator, n as OperatorPredicate, O as OrOperator, f as Participant, g as ParticipantOperator, P as PredicateSelector, R as RelationExpr, y as RelationshipArrowType, x as RelationshipArrowTypes, V as RelationshipColorValues, v as RelationshipLineType, q as ShapeSize, o as Size, S as Sizes, r as SpacingSize, d as TagEqual, p as TextSize, D as ThemeColor, T as ThemeColorValues, z as ThemeColors, W as WhereOperator, k as isAndOperator, M as isCustomColor, e as isKindEqual, j as isNotOperator, l as isOrOperator, h as isParticipantOperator, i as isTagEqual, G as isThemeColor, w as whereOperatorAsPredicate } from './shared/core.BnOetIAR.mjs';
|
|
5
5
|
export { i as isIterable } from './shared/core.DXhDWKFZ.mjs';
|
|
6
|
-
export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown,
|
|
6
|
+
export { A as Any, A as AnyAux, a as AnyComputed, b as AnyLayouted, c as AnyParsed, d as Aux, E as ExtractOnStage, L as LooseLiteral, M as ModelStage, S as SpecAux, U as Unknown, e as UnknownComputed, f as UnknownLayouted, g as UnknownParsed, l as _layout, j as _stage, k as _type, _ as aux, i as isOnStage, p as preferDescription, h as preferSummary } from './shared/core.CDOKQTW6.mjs';
|
|
7
7
|
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';
|
|
8
|
-
export {
|
|
9
|
-
export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.
|
|
8
|
+
export { t as AnyView, n as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, r as ComputedView, d as DeployedInstance, e as DeploymentElement, f as DeploymentElementRef, D as DeploymentNode, j as DeploymentRelation, h as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, J as DiagramEdge, U as DiagramEdgeDriftReason, I as DiagramNode, T as DiagramNodeDriftReason, p as DiagramView, K as LayoutType, N as LayoutedDeploymentView, O as LayoutedDynamicView, M as LayoutedElementView, L as LayoutedLikeC4ModelData, p as LayoutedView, Q as LayoutedViewDriftReason, c as LikeC4ModelData, l as LikeC4ModelDump, o as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, o as ParsedView, s as ProcessedView, m as ProjectDump, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, k as SpecTypesFromDump, S as SpecificationDump, W as ViewManualLayoutSnapshot, V as ViewOnStage, v as ViewRule, w as ViewRulePredicate, u as ViewWithType, z as isComputedView, g as isDeployedInstance, i as isDeploymentNode, G as isDeploymentView, q as isDiagramView, H as isDynamicView, B as isElementView, F as isExtendsElementView, q as isLayoutedView, E as isScopedElementView, x as isViewRulePredicate, y as isViewRuleStyle } from './shared/core.CKNmSm2W.mjs';
|
|
9
|
+
export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.DB0Ue5Wx.mjs';
|
|
10
10
|
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
11
11
|
export { FqnRef } from './types/fqnRef.mjs';
|
|
12
|
-
export { A as AbstractRelationship,
|
|
12
|
+
export { A as AbstractRelationship, q as AnyExcludePredicate, p as AnyIncludePredicate, r as AnyViewRuleStyle, v as AutoLayoutDirection, B as BBox, H as BaseParsedViewProperties, F as BaseViewProperties, W as ComputedDeploymentView, Y as ComputedDynamicView, Q as ComputedEdge, U as ComputedElementView, O as ComputedNode, K as ComputedNodeStyle, Z as DynamicStep, $ as DynamicStepsParallel, _ as DynamicStepsSeries, a7 as DynamicViewDisplayVariant, a5 as DynamicViewIncludeRule, a6 as DynamicViewRule, a1 as DynamicViewStep, f as Element, i as ElementSpecification, E as ElementStyle, aa as ElementViewExcludePredicate, a9 as ElementViewIncludePredicate, ab as ElementViewPredicate, af as ElementViewRule, ac as ElementViewRuleGroup, ae as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, o as LikeC4Project, n as LikeC4ProjectManualLayoutsConfig, l as LikeC4ProjectStyleDefaults, m as LikeC4ProjectStylesConfig, L as LikeC4ProjectTheme, M as ModelGlobals, h as ModelRelation, N as NodeNotation, a8 as ParsedDynamicView, ag as ParsedElementView, P as Point, R as RectBox, g as Relationship, k as RelationshipSpecification, S as Specification, T as TagSpecification, z as ViewAutoLayout, C as ViewManualLayout, x as ViewRuleAutoLayout, t as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, D as ViewType, J as ViewWithHash, I as ViewWithNotation, X as XYPoint, e as ensureSizes, a0 as getParallelStepsPrefix, w as isAutoLayoutDirection, a2 as isDynamicStep, a3 as isDynamicStepsParallel, a4 as isDynamicStepsSeries, j as isTagColorSpecified, y as isViewRuleAutoLayout, u as isViewRuleGlobalPredicateRef, s as isViewRuleGlobalStyle, ad as isViewRuleGroup } from './shared/core.BMtVqKl7.mjs';
|
|
13
13
|
export { ViewChange } from './types/index.mjs';
|
|
14
14
|
import 'type-fest';
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { L as LikeC4Styles, e as ensureSizes } from './shared/core.
|
|
2
|
-
export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.
|
|
3
|
-
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.
|
|
1
|
+
export { L as LikeC4Styles, e as ensureSizes } from './shared/core.DEieYfbG.mjs';
|
|
2
|
+
export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.6VsRBhGY.mjs';
|
|
3
|
+
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.DIE3F6sw.mjs';
|
|
4
4
|
export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
|
|
5
5
|
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
|
|
6
6
|
export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
|
|
7
7
|
export { m as memoizeProp } from './shared/core.BR4zXDH-.mjs';
|
|
8
|
-
export {
|
|
8
|
+
export { preferDescription, preferSummary } from './types/_aux.mjs';
|
|
9
9
|
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.C_Ni6yHl.mjs';
|
|
10
|
-
export { R as RichText, e as exact } from './shared/core.
|
|
11
|
-
export { _ as _stage, a as _type,
|
|
10
|
+
export { R as RichText, e as exact } from './shared/core.M9ayqQZa.mjs';
|
|
11
|
+
export { b as _layout, _ as _stage, a as _type, j as isAndOperator, n as isComputedView, d as isDeployedInstance, c as isDeploymentNode, s as isDeploymentView, o as isDiagramView, t as isDynamicView, p as isElementView, r as isExtendsElementView, f as isKindEqual, o as isLayoutedView, h as isNotOperator, i as isOnStage, k as isOrOperator, g as isParticipantOperator, q as isScopedElementView, e as isTagEqual, l as isViewRulePredicate, m as isViewRuleStyle, w as whereOperatorAsPredicate } from './shared/core.DH7TXqXf.mjs';
|
|
12
12
|
export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
|
|
13
13
|
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
14
14
|
export { FqnRef } from './types/fqnRef.mjs';
|
|
15
15
|
export { BBox, RectBox, isTagColorSpecified } from './types/index.mjs';
|
|
16
|
-
export {
|
|
16
|
+
export { g as getParallelStepsPrefix, b as isAutoLayoutDirection, d as isDynamicStep, e as isDynamicStepsParallel, f as isDynamicStepsSeries, c as isViewRuleAutoLayout, a as isViewRuleGlobalPredicateRef, i as isViewRuleGlobalStyle, h as isViewRuleGroup } from './shared/core.BuQZczj6.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
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.CT1xBp4R.mjs';
|
|
5
|
-
import '../../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
export { C as Connection } from '../../../shared/core.BnDbAOR2.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.WwMWeiFL.mjs';
|
|
3
|
+
import '../../../shared/core.DjAM-S6a.mjs';
|
|
6
4
|
import 'type-fest';
|
|
7
|
-
import '../../../shared/core.
|
|
8
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.8mmHFn9g.mjs';
|
|
6
|
+
import '../../../shared/core.BnOetIAR.mjs';
|
|
7
|
+
import '../../../shared/core.CDOKQTW6.mjs';
|
|
8
|
+
import '../../../shared/core.DB0Ue5Wx.mjs';
|
|
9
9
|
import '../../../shared/core.DX-WYEPA.mjs';
|
|
10
10
|
import '../../../types/fqnRef.mjs';
|
|
11
|
-
import '../../../shared/core.
|
|
11
|
+
import '../../../shared/core.BMtVqKl7.mjs';
|
|
12
12
|
import '../../../types/expression-model.mjs';
|
|
13
13
|
import '../../../shared/core.CywrQs86.mjs';
|
|
14
|
-
import '../../../shared/core.
|
|
14
|
+
import '../../../shared/core.CKNmSm2W.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.C0Ye2OCr.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.CHwVhuc9.mjs';
|
|
@@ -1,18 +1,18 @@
|
|
|
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.CT1xBp4R.mjs';
|
|
7
|
-
import '../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
import { C as Connection } from '../../shared/core.BnDbAOR2.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.WwMWeiFL.mjs';
|
|
3
|
+
export { C as ConnectionModel, f as model } from '../../shared/core.DTJYgLXI.mjs';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
|
+
import '../../shared/core.DjAM-S6a.mjs';
|
|
8
6
|
import 'type-fest';
|
|
9
|
-
import '../../shared/core.
|
|
7
|
+
import '../../shared/core.8mmHFn9g.mjs';
|
|
8
|
+
import '../../shared/core.BnOetIAR.mjs';
|
|
9
|
+
import '../../shared/core.CDOKQTW6.mjs';
|
|
10
10
|
import '../../shared/core.DX-WYEPA.mjs';
|
|
11
11
|
import '../../types/fqnRef.mjs';
|
|
12
|
-
import '../../shared/core.
|
|
12
|
+
import '../../shared/core.BMtVqKl7.mjs';
|
|
13
13
|
import '../../types/expression-model.mjs';
|
|
14
14
|
import '../../shared/core.CywrQs86.mjs';
|
|
15
|
-
import '../../shared/core.
|
|
15
|
+
import '../../shared/core.CKNmSm2W.mjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Check if connection is nested inside another connection
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.
|
|
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.
|
|
1
|
+
export { C as Connection } from '../../shared/core.C0Ye2OCr.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.CHwVhuc9.mjs';
|
|
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.bKIs4oDO.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
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.CT1xBp4R.mjs';
|
|
5
|
-
import '../../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
export { C as Connection } from '../../../shared/core.BnDbAOR2.mjs';
|
|
2
|
+
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DTJYgLXI.mjs';
|
|
3
|
+
import '../../../shared/core.DjAM-S6a.mjs';
|
|
6
4
|
import 'type-fest';
|
|
7
|
-
import '../../../shared/core.
|
|
8
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.8mmHFn9g.mjs';
|
|
6
|
+
import '../../../shared/core.BnOetIAR.mjs';
|
|
7
|
+
import '../../../shared/core.CDOKQTW6.mjs';
|
|
8
|
+
import '../../../shared/core.DB0Ue5Wx.mjs';
|
|
9
9
|
import '../../../shared/core.DX-WYEPA.mjs';
|
|
10
10
|
import '../../../types/fqnRef.mjs';
|
|
11
|
-
import '../../../shared/core.
|
|
11
|
+
import '../../../shared/core.BMtVqKl7.mjs';
|
|
12
12
|
import '../../../types/expression-model.mjs';
|
|
13
13
|
import '../../../shared/core.CywrQs86.mjs';
|
|
14
|
-
import '../../../shared/core.
|
|
14
|
+
import '../../../shared/core.CKNmSm2W.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.C0Ye2OCr.mjs';
|
|
2
|
+
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.bKIs4oDO.mjs';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel,
|
|
3
|
-
import { A as Any } from '../shared/core.
|
|
4
|
-
|
|
5
|
-
export { C as
|
|
6
|
-
export {
|
|
1
|
+
import { a as DeploymentNodeModel, b as DeployedInstanceModel, c as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, d as LikeC4ViewModel, e as NodeModel, f as EdgeModel, D as DeploymentElementModel } from '../shared/core.DjAM-S6a.mjs';
|
|
2
|
+
export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, L as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.DjAM-S6a.mjs';
|
|
3
|
+
import { A as Any } from '../shared/core.CDOKQTW6.mjs';
|
|
4
|
+
import { p as LayoutedView, W as ViewManualLayoutSnapshot } from '../shared/core.CKNmSm2W.mjs';
|
|
5
|
+
export { C as Connection } from '../shared/core.BnDbAOR2.mjs';
|
|
6
|
+
export { C as ConnectionModel, f as modelConnection } from '../shared/core.DTJYgLXI.mjs';
|
|
7
|
+
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.WwMWeiFL.mjs';
|
|
7
8
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
8
|
-
import '../shared/core.CT1xBp4R.mjs';
|
|
9
|
-
import '../shared/core.CDvVInBp.mjs';
|
|
10
9
|
import 'type-fest';
|
|
11
|
-
import '../shared/core.
|
|
10
|
+
import '../shared/core.8mmHFn9g.mjs';
|
|
11
|
+
import '../shared/core.BnOetIAR.mjs';
|
|
12
|
+
import '../shared/core.DB0Ue5Wx.mjs';
|
|
12
13
|
import '../types/fqnRef.mjs';
|
|
13
14
|
import '../shared/core.DX-WYEPA.mjs';
|
|
14
|
-
import '../shared/core.
|
|
15
|
+
import '../shared/core.BMtVqKl7.mjs';
|
|
15
16
|
import '../types/expression-model.mjs';
|
|
16
17
|
import '../shared/core.CywrQs86.mjs';
|
|
17
|
-
import '../shared/core.BT-9gaqQ.mjs';
|
|
18
18
|
|
|
19
19
|
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>;
|
|
20
20
|
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
|
@@ -53,4 +53,18 @@ declare const getViewFolderPath: (title: string) => string | null;
|
|
|
53
53
|
*/
|
|
54
54
|
declare const extractViewTitleFromPath: (title: string) => string;
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Proof-of-concept
|
|
58
|
+
* Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view
|
|
59
|
+
*
|
|
60
|
+
* @param autoLayouted Auto-layouted view
|
|
61
|
+
* @param snapshot The view snapshot with manual-layout
|
|
62
|
+
* @returns The snapshot with the next view applied
|
|
63
|
+
*/
|
|
64
|
+
declare function applyManualLayout<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
65
|
+
/**
|
|
66
|
+
* Applies drift reasons to autoLayouted view if there are any.
|
|
67
|
+
*/
|
|
68
|
+
declare function applyLayoutDriftReasons<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
69
|
+
|
|
70
|
+
export { AnyRelationshipModel, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, applyLayoutDriftReasons, applyManualLayout, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.
|
|
3
|
-
export { C as Connection } from '../shared/core.
|
|
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.
|
|
1
|
+
export { m as EdgeModel, E as ElementModel, l as LikeC4DeploymentModel, L as LikeC4Model, o as LikeC4ViewModel, p as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, u as applyLayoutDriftReasons, v as applyManualLayout, q as extractViewTitleFromPath, r as getViewFolderPath, g as isDeployedInstanceModel, j as isDeploymentElementModel, h as isDeploymentNodeModel, w as isDeploymentRelationModel, A as isEdgeModel, i as isElementModel, y as isLikeC4ViewModel, x as isModelRelation, f as isNestedElementOfDeployedInstanceModel, z as isNodeModel, x as isRelationModel, x as isRelationshipModel, s as normalizeViewPath } from '../shared/core.h4TqqSC0.mjs';
|
|
2
|
+
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.CHwVhuc9.mjs';
|
|
3
|
+
export { C as Connection } from '../shared/core.C0Ye2OCr.mjs';
|
|
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.bKIs4oDO.mjs';
|