@likec4/core 1.19.0 → 1.19.2
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 +3 -3
- package/dist/builder/index.d.ts +3 -3
- package/dist/builder/index.js +2 -2
- package/dist/compute-view/index.d.mts +2 -2
- package/dist/compute-view/index.d.ts +2 -2
- package/dist/compute-view/index.js +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/model/index.d.mts +8 -3
- package/dist/model/index.d.ts +8 -3
- package/dist/model/index.js +1 -1
- package/dist/shared/{core.BZ9Msq7w.d.mts → core.2I-l5UtM.d.mts} +5 -1
- package/dist/shared/{core.CmYMqgha.d.mts → core.BL1oTk7-.d.mts} +13 -3
- package/dist/shared/{core.BIfgabEw.d.ts → core.CqXs9Frh.d.ts} +5 -1
- package/dist/shared/{core.C05RDLhi.d.ts → core.DyJ41fBO.d.ts} +13 -3
- package/dist/shared/{index.-BdzdI2C.js → index.KOeaSlL8.js} +333 -209
- package/dist/shared/{view.CyZrG8BJ.js → view.DrmaOfjr.js} +3 -0
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -1
- package/dist/utils/index.d.mts +16 -1
- package/dist/utils/index.d.ts +16 -1
- package/dist/utils/index.js +18 -1
- package/package.json +9 -9
- package/src/builder/Builder.view-common.ts +1 -0
- package/src/compute-view/deployment-view/__test__/fixture.ts +31 -3
- package/src/compute-view/deployment-view/_types.ts +2 -1
- package/src/compute-view/deployment-view/compute.ts +4 -36
- package/src/compute-view/deployment-view/predicates/index.ts +8 -0
- package/src/compute-view/deployment-view/predicates/relation-direct.ts +117 -88
- package/src/compute-view/deployment-view/predicates/relation-in-out.ts +16 -8
- package/src/compute-view/deployment-view/predicates/relation-incoming.ts +18 -12
- package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +16 -9
- package/src/compute-view/deployment-view/predicates/relation-where.ts +18 -0
- package/src/compute-view/deployment-view/predicates/utils.ts +183 -0
- package/src/compute-view/memory/ops.ts +1 -1
- package/src/model/DeploymentElementModel.ts +14 -1
- package/src/model/RelationModel.ts +4 -0
- package/src/model/connection/deployment/DeploymentConnectionModel.ts +11 -1
- package/src/types/deployments.ts +1 -0
- package/src/types/expression-v2.ts +12 -0
- package/src/types/index.ts +1 -0
- package/src/types/operators.ts +5 -5
- package/src/utils/index.ts +1 -0
- package/src/utils/iterable/find.ts +36 -0
- package/src/utils/iterable/index.ts +1 -0
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, Writable, IfNever, Tagged, IsLiteral, IsStringLiteral as IsStringLiteral$1, TupleToUnion } from 'type-fest';
|
|
2
|
-
import { d as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { D as DeploymentElement, i as DeploymentRelation,
|
|
2
|
+
import { d as LikeC4Model } from '../shared/core.2I-l5UtM.mjs';
|
|
3
|
+
import { D as DeploymentElement, i as DeploymentRelation, at as ModelRelation, bs as ViewRuleStyle, aT as AutoLayoutDirection, A as CustomElementExpr, B as CustomRelationExpr, X as ExpressionV2, N as Expression, L as LikeC4View, b0 as DeploymentView, bd as ElementView, ax as RelationshipKindSpecification, g as DeploymentNodeKindSpecification, av as RelationshipArrowType, ay as RelationshipLineType, a9 as ParsedLikeC4Model } from '../shared/core.BL1oTk7-.mjs';
|
|
4
4
|
import { F as Fqn, i as Element, N as NonEmptyArray, j as ElementKindSpecification, l as ElementShape, s as Color, h as BorderStyle, K as KeysOf } from '../shared/core.D74xkKkG.mjs';
|
|
5
5
|
import { IsStringLiteral } from 'type-fest/source/is-literal';
|
|
6
6
|
|
|
@@ -169,7 +169,7 @@ declare namespace ViewPredicate {
|
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
declare function $include<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
172
|
-
declare function $exclude<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
172
|
+
declare function $exclude<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>] | [B['TypedExpr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
173
173
|
declare function $style<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(element: B['ElementExpr'] | B['TypedExpr'] | NonEmptyArray<B['ElementExpr']>, { notation, ...style }: ViewRuleStyle['style'] & {
|
|
174
174
|
notation?: string;
|
|
175
175
|
}): (b: B) => B;
|
package/dist/builder/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, Writable, IfNever, Tagged, IsLiteral, IsStringLiteral as IsStringLiteral$1, TupleToUnion } from 'type-fest';
|
|
2
|
-
import { d as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { D as DeploymentElement, i as DeploymentRelation,
|
|
2
|
+
import { d as LikeC4Model } from '../shared/core.CqXs9Frh.js';
|
|
3
|
+
import { D as DeploymentElement, i as DeploymentRelation, at as ModelRelation, bs as ViewRuleStyle, aT as AutoLayoutDirection, A as CustomElementExpr, B as CustomRelationExpr, X as ExpressionV2, N as Expression, L as LikeC4View, b0 as DeploymentView, bd as ElementView, ax as RelationshipKindSpecification, g as DeploymentNodeKindSpecification, av as RelationshipArrowType, ay as RelationshipLineType, a9 as ParsedLikeC4Model } from '../shared/core.DyJ41fBO.js';
|
|
4
4
|
import { F as Fqn, i as Element, N as NonEmptyArray, j as ElementKindSpecification, l as ElementShape, s as Color, h as BorderStyle, K as KeysOf } from '../shared/core.D74xkKkG.js';
|
|
5
5
|
import { IsStringLiteral } from 'type-fest/source/is-literal';
|
|
6
6
|
|
|
@@ -169,7 +169,7 @@ declare namespace ViewPredicate {
|
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
declare function $include<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
172
|
-
declare function $exclude<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
172
|
+
declare function $exclude<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(...args: [B['Expr']] | [B['TypedExpr']] | [B['Expr'], ViewPredicate.Custom<B['Types']>] | [B['TypedExpr'], ViewPredicate.Custom<B['Types']>]): (b: B) => B;
|
|
173
173
|
declare function $style<B extends LikeC4ViewBuilder<AnyTypes, any, any>>(element: B['ElementExpr'] | B['TypedExpr'] | NonEmptyArray<B['ElementExpr']>, { notation, ...style }: ViewRuleStyle['style'] & {
|
|
174
174
|
notation?: string;
|
|
175
175
|
}): (b: B) => B;
|
package/dist/builder/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l, L as LikeC4Model, i, d } from '../shared/index
|
|
1
|
+
import { l, L as LikeC4Model, i, d } from '../shared/index.KOeaSlL8.js';
|
|
2
2
|
import { t, m, p as parentFqn, a as isSameHierarchy, n as nameFromFqn, i as i$1, l as l$1, b as t$1 } from '../shared/object_hash.CE_oF3I3.js';
|
|
3
|
-
import { b as isElementPredicateExpr, o, c as isScopedElementView, D as DeploymentElement, n as n$1, d as DefaultThemeColor, e as DefaultElementShape } from '../shared/view.
|
|
3
|
+
import { b as isElementPredicateExpr, o, c as isScopedElementView, D as DeploymentElement, n as n$1, d as DefaultThemeColor, e as DefaultElementShape } from '../shared/view.DrmaOfjr.js';
|
|
4
4
|
import { u, i as invariant } from '../shared/chunk-RAAYCPUM.M-JWF7SS.js';
|
|
5
5
|
|
|
6
6
|
function n(...r){return u(Object.fromEntries,r)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ComputeViewResult, c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.
|
|
2
|
-
import { L as LikeC4View, C as ComputedView, a as ComputedLikeC4Model } from '../shared/core.
|
|
1
|
+
export { C as ComputeViewResult, c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.2I-l5UtM.mjs';
|
|
2
|
+
import { L as LikeC4View, C as ComputedView, a as ComputedLikeC4Model } from '../shared/core.BL1oTk7-.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import '../shared/core.D74xkKkG.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ComputeViewResult, c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.
|
|
2
|
-
import { L as LikeC4View, C as ComputedView, a as ComputedLikeC4Model } from '../shared/core.
|
|
1
|
+
export { C as ComputeViewResult, c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/core.CqXs9Frh.js';
|
|
2
|
+
import { L as LikeC4View, C as ComputedView, a as ComputedLikeC4Model } from '../shared/core.DyJ41fBO.js';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import '../shared/core.D74xkKkG.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, l, i as i$1 } from '../shared/index
|
|
2
|
-
export { c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/index
|
|
3
|
-
import { i as isExtendsElementView, a as isElementView } from '../shared/view.
|
|
1
|
+
import { G as Graph, r, w as willCreateCycle, t as topologicalSortExports, l, i as i$1 } from '../shared/index.KOeaSlL8.js';
|
|
2
|
+
export { c as computeView, a as computeViews, u as unsafeComputeView } from '../shared/index.KOeaSlL8.js';
|
|
3
|
+
import { i as isExtendsElementView, a as isElementView } from '../shared/view.DrmaOfjr.js';
|
|
4
4
|
import { i, m } from '../shared/object_hash.CE_oF3I3.js';
|
|
5
5
|
import { u } from '../shared/chunk-RAAYCPUM.M-JWF7SS.js';
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.D74xkKkG.mjs';
|
|
2
2
|
export { A as AsFqn, h as BorderStyle, B as BorderStyles, s as Color, t as ColorLiteral, C as CustomColor, D as DefaultElementShape, e as DefaultThemeColor, i as Element, f as ElementKind, j as ElementKindSpecification, k as ElementKindSpecificationStyle, l as ElementShape, g as ElementShapes, m as ElementStyle, v as ElementThemeColorValues, u as ElementThemeColors, E as ExclusiveUnion, F as Fqn, I as IconUrl, a as IteratorLike, K as KeysOf, n as Link, c as NTuple, N as NonEmptyArray, b as NonEmptyReadonlyArray, P as Point, d as Predicate, w as RelationshipThemeColorValues, R as RelationshipThemeColors, o as Tag, p as TagSpec, x as ThemeColor, q as TypedElement, X as XYPoint, r as isThemeColor } from './shared/core.D74xkKkG.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export { DefaultMap, LinkedList, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, objectHash, stringHash, symmetricDifference, toArray, toSet, union } from './utils/index.mjs';
|
|
5
|
-
export { A as AnyAux, b as Aux, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel } from './shared/core.
|
|
3
|
+
export { as as AbstractRelation, ag as AndOperator, a5 as AnyParsedLikeC4Model, aT as AutoLayoutDirection, aW as BBox, aU as BasicElementView, aV as BasicView, aX as ComputedDeploymentView, aY as ComputedDynamicView, aZ as ComputedEdge, a_ as ComputedElementView, a as ComputedLikeC4Model, az as ComputedNode, C as ComputedView, a$ as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, ap as DefaultArrowType, aq as DefaultLineStyle, ar as DefaultRelationshipColor, b as DeployedInstance, D as DeploymentElement, c as DeploymentElementStyle, d as DeploymentNode, f as DeploymentNodeKind, g as DeploymentNodeKindSpecification, h as DeploymentRef, i as DeploymentRelation, b0 as DeploymentView, b1 as DeploymentViewRule, b2 as DeploymentViewRulePredicate, b3 as DeploymentViewRuleStyle, b4 as DiagramEdge, aA as DiagramNode, b5 as DiagramView, E as DirectRelationExpr, b6 as DynamicView, b7 as DynamicViewIncludeRule, b8 as DynamicViewParallelSteps, b9 as DynamicViewRule, ba as DynamicViewStep, bb as DynamicViewStepOrParallel, bc as EdgeId, F as ElementExpression, G as ElementKindExpr, bw as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bd as ElementView, K as ElementWhereExpr, ah as EqualOperator, M as ExpandedElementExpr, e as Expr, N as Expression, X as ExpressionV2, be as ExtendsElementView, ai as Filterable, Y as FqnExpr, Z as FqnRef, a6 as GenericLikeC4Model, $ as GlobalDynamicPredicates, a0 as GlobalPredicateId, a1 as GlobalPredicates, a2 as GlobalStyleID, a3 as GlobalStyles, Q as InOutExpr, O as IncomingExpr, aj as KindEqual, a7 as LayoutedLikeC4Model, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, at as ModelRelation, bf as NodeId, R as NonWilcard, ak as NotOperator, al as OperatorPredicate, am as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, au as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, av as RelationshipArrowType, aw as RelationshipKind, ax as RelationshipKindSpecification, ay as RelationshipLineType, bg as ScopedElementView, bh as StepEdgeId, bi as StepEdgeIdLiteral, an as TagEqual, bj as ViewAutoLayout, bk as ViewId, bl as ViewManualLayout, bm as ViewRule, bn as ViewRuleAutoLayout, bo as ViewRuleGlobalPredicateRef, bp as ViewRuleGlobalStyle, bq as ViewRuleGroup, br as ViewRulePredicate, bs as ViewRuleStyle, bt as ViewRuleStyleOrGlobalRef, bu as ViewWithHash, bv as ViewWithNotation, ao as WhereOperator, W as WildcardExpr, aB as extractStep, aC as getBBoxCenter, aD as getParallelStepsPrefix, aa as isAndOperator, aE as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aF as isDeploymentView, aG as isDynamicView, aH as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aI as isElementView, q as isElementWhere, r as isExpandedElementExpr, aJ as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aK as isScopedElementView, aL as isStepEdgeId, ae as isTagEqual, aM as isViewRuleAutoLayout, aN as isViewRuleGlobalPredicateRef, aO as isViewRuleGlobalStyle, aP as isViewRuleGroup, aQ as isViewRulePredicate, aR as isViewRuleStyle, z as isWildcard, aS as stepEdgeId, af as whereOperatorAsPredicate } from './shared/core.BL1oTk7-.mjs';
|
|
4
|
+
export { DefaultMap, LinkedList, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, objectHash, stringHash, symmetricDifference, toArray, toSet, union } from './utils/index.mjs';
|
|
5
|
+
export { A as AnyAux, b as Aux, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel } from './shared/core.2I-l5UtM.mjs';
|
|
6
6
|
export { OverviewGraph, ViewChange } from './types/index.mjs';
|
|
7
7
|
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.sLaWHBjR.mjs';
|
|
8
8
|
import 'type-fest';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.D74xkKkG.js';
|
|
2
2
|
export { A as AsFqn, h as BorderStyle, B as BorderStyles, s as Color, t as ColorLiteral, C as CustomColor, D as DefaultElementShape, e as DefaultThemeColor, i as Element, f as ElementKind, j as ElementKindSpecification, k as ElementKindSpecificationStyle, l as ElementShape, g as ElementShapes, m as ElementStyle, v as ElementThemeColorValues, u as ElementThemeColors, E as ExclusiveUnion, F as Fqn, I as IconUrl, a as IteratorLike, K as KeysOf, n as Link, c as NTuple, N as NonEmptyArray, b as NonEmptyReadonlyArray, P as Point, d as Predicate, w as RelationshipThemeColorValues, R as RelationshipThemeColors, o as Tag, p as TagSpec, x as ThemeColor, q as TypedElement, X as XYPoint, r as isThemeColor } from './shared/core.D74xkKkG.js';
|
|
3
|
-
export {
|
|
4
|
-
export { DefaultMap, LinkedList, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, objectHash, stringHash, symmetricDifference, toArray, toSet, union } from './utils/index.js';
|
|
5
|
-
export { A as AnyAux, b as Aux, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel } from './shared/core.
|
|
3
|
+
export { as as AbstractRelation, ag as AndOperator, a5 as AnyParsedLikeC4Model, aT as AutoLayoutDirection, aW as BBox, aU as BasicElementView, aV as BasicView, aX as ComputedDeploymentView, aY as ComputedDynamicView, aZ as ComputedEdge, a_ as ComputedElementView, a as ComputedLikeC4Model, az as ComputedNode, C as ComputedView, a$ as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, ap as DefaultArrowType, aq as DefaultLineStyle, ar as DefaultRelationshipColor, b as DeployedInstance, D as DeploymentElement, c as DeploymentElementStyle, d as DeploymentNode, f as DeploymentNodeKind, g as DeploymentNodeKindSpecification, h as DeploymentRef, i as DeploymentRelation, b0 as DeploymentView, b1 as DeploymentViewRule, b2 as DeploymentViewRulePredicate, b3 as DeploymentViewRuleStyle, b4 as DiagramEdge, aA as DiagramNode, b5 as DiagramView, E as DirectRelationExpr, b6 as DynamicView, b7 as DynamicViewIncludeRule, b8 as DynamicViewParallelSteps, b9 as DynamicViewRule, ba as DynamicViewStep, bb as DynamicViewStepOrParallel, bc as EdgeId, F as ElementExpression, G as ElementKindExpr, bw as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bd as ElementView, K as ElementWhereExpr, ah as EqualOperator, M as ExpandedElementExpr, e as Expr, N as Expression, X as ExpressionV2, be as ExtendsElementView, ai as Filterable, Y as FqnExpr, Z as FqnRef, a6 as GenericLikeC4Model, $ as GlobalDynamicPredicates, a0 as GlobalPredicateId, a1 as GlobalPredicates, a2 as GlobalStyleID, a3 as GlobalStyles, Q as InOutExpr, O as IncomingExpr, aj as KindEqual, a7 as LayoutedLikeC4Model, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, at as ModelRelation, bf as NodeId, R as NonWilcard, ak as NotOperator, al as OperatorPredicate, am as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, au as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, av as RelationshipArrowType, aw as RelationshipKind, ax as RelationshipKindSpecification, ay as RelationshipLineType, bg as ScopedElementView, bh as StepEdgeId, bi as StepEdgeIdLiteral, an as TagEqual, bj as ViewAutoLayout, bk as ViewId, bl as ViewManualLayout, bm as ViewRule, bn as ViewRuleAutoLayout, bo as ViewRuleGlobalPredicateRef, bp as ViewRuleGlobalStyle, bq as ViewRuleGroup, br as ViewRulePredicate, bs as ViewRuleStyle, bt as ViewRuleStyleOrGlobalRef, bu as ViewWithHash, bv as ViewWithNotation, ao as WhereOperator, W as WildcardExpr, aB as extractStep, aC as getBBoxCenter, aD as getParallelStepsPrefix, aa as isAndOperator, aE as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aF as isDeploymentView, aG as isDynamicView, aH as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aI as isElementView, q as isElementWhere, r as isExpandedElementExpr, aJ as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aK as isScopedElementView, aL as isStepEdgeId, ae as isTagEqual, aM as isViewRuleAutoLayout, aN as isViewRuleGlobalPredicateRef, aO as isViewRuleGlobalStyle, aP as isViewRuleGroup, aQ as isViewRulePredicate, aR as isViewRuleStyle, z as isWildcard, aS as stepEdgeId, af as whereOperatorAsPredicate } from './shared/core.DyJ41fBO.js';
|
|
4
|
+
export { DefaultMap, LinkedList, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, objectHash, stringHash, symmetricDifference, toArray, toSet, union } from './utils/index.js';
|
|
5
|
+
export { A as AnyAux, b as Aux, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel } from './shared/core.CqXs9Frh.js';
|
|
6
6
|
export { OverviewGraph, ViewChange } from './types/index.js';
|
|
7
7
|
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.D6-fWbM3.js';
|
|
8
8
|
import 'type-fest';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/chunk-RAAYCPUM.M-JWF7SS.js';
|
|
2
|
-
export { A as AsFqn, B as BorderStyles, Q as ComputedNode, S as ComputedView, N as DefaultArrowType, e as DefaultElementShape, O as DefaultLineStyle, P as DefaultRelationshipColor, d as DefaultThemeColor, D as DeploymentElement, T as DiagramNode, E as ElementKind, g as ElementShapes, f as Expr, C as ExpressionV2, F as FqnExpr, G as FqnRef, R as RelationExpr, U as extractStep, V as getBBoxCenter, W as getParallelStepsPrefix, H as isAndOperator, X as isAutoLayoutDirection, h as isCustomElement, j as isCustomRelationExpr, Y as isDeploymentView, Z as isDynamicView, _ as isDynamicViewParallelSteps, k as isElement, l as isElementKindExpr, b as isElementPredicateExpr, m as isElementRef, p as isElementTagExpr, a as isElementView, q as isElementWhere, r as isExpandedElementExpr, i as isExtendsElementView, t as isInOut, s as isIncoming, I as isKindEqual, J as isNotOperator, K as isOrOperator, u as isOutgoing, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, c as isScopedElementView, $ as isStepEdgeId, L as isTagEqual, a0 as isViewRuleAutoLayout, a1 as isViewRuleGlobalPredicateRef, a2 as isViewRuleGlobalStyle, a3 as isViewRuleGroup, a4 as isViewRulePredicate, a5 as isViewRuleStyle, z as isWildcard, a6 as stepEdgeId, M as whereOperatorAsPredicate } from './shared/view.
|
|
3
|
-
export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel } from './shared/index
|
|
2
|
+
export { A as AsFqn, B as BorderStyles, Q as ComputedNode, S as ComputedView, N as DefaultArrowType, e as DefaultElementShape, O as DefaultLineStyle, P as DefaultRelationshipColor, d as DefaultThemeColor, D as DeploymentElement, T as DiagramNode, E as ElementKind, g as ElementShapes, f as Expr, C as ExpressionV2, F as FqnExpr, G as FqnRef, R as RelationExpr, U as extractStep, V as getBBoxCenter, W as getParallelStepsPrefix, H as isAndOperator, X as isAutoLayoutDirection, h as isCustomElement, j as isCustomRelationExpr, Y as isDeploymentView, Z as isDynamicView, _ as isDynamicViewParallelSteps, k as isElement, l as isElementKindExpr, b as isElementPredicateExpr, m as isElementRef, p as isElementTagExpr, a as isElementView, q as isElementWhere, r as isExpandedElementExpr, i as isExtendsElementView, t as isInOut, s as isIncoming, I as isKindEqual, J as isNotOperator, K as isOrOperator, u as isOutgoing, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, c as isScopedElementView, $ as isStepEdgeId, L as isTagEqual, a0 as isViewRuleAutoLayout, a1 as isViewRuleGlobalPredicateRef, a2 as isViewRuleGlobalStyle, a3 as isViewRuleGroup, a4 as isViewRulePredicate, a5 as isViewRuleStyle, z as isWildcard, a6 as stepEdgeId, M as whereOperatorAsPredicate } from './shared/view.DrmaOfjr.js';
|
|
3
|
+
export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel } from './shared/index.KOeaSlL8.js';
|
|
4
4
|
export { isThemeColor } from './types/index.js';
|
|
5
5
|
export { D as DefaultMap, e as ancestorsFqn, f as commonAncestor, c as commonHead, g as compareByFqnHierarchically, h as compareFqnHierarchically, d as compareNatural, H as difference, I as equalsSet, v as getOrCreate, i as hasAtLeast, j as hierarchyDistance, k as hierarchyLevel, y as ifilter, z as iflat, A as imap, J as intersection, o as isAncestor, q as isDescendantOf, B as isIterable, w as isNonEmptyArray, a as isSameHierarchy, x as isString, C as isome, E as iunique, n as nameFromFqn, N as objectHash, p as parentFqn, s as sortByFqnHierarchically, r as sortNaturalByFqn, u as sortParentsFirst, M as stringHash, K as symmetricDifference, F as toArray, G as toSet, L as union } from './shared/object_hash.CE_oF3I3.js';
|
|
6
|
-
export { LinkedList, compareRelations, delay, ireduce } from './utils/index.js';
|
|
6
|
+
export { LinkedList, compareRelations, delay, ifind, ireduce } from './utils/index.js';
|
|
7
7
|
|
|
8
8
|
const { min: min$4, max: max$4 } = Math;
|
|
9
9
|
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, R as RelationshipsAccum, h as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.
|
|
2
|
-
export { b as Aux, j as EdgeModel, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, R as RelationshipsAccum, h as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.2I-l5UtM.mjs';
|
|
2
|
+
export { b as Aux, j as EdgeModel, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.2I-l5UtM.mjs';
|
|
3
3
|
import { F as Fqn, a as IteratorLike } from '../shared/core.D74xkKkG.mjs';
|
|
4
4
|
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.sLaWHBjR.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.BL1oTk7-.mjs';
|
|
7
7
|
|
|
8
8
|
interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
|
|
9
9
|
readonly id: Id;
|
|
@@ -71,6 +71,11 @@ declare class DeploymentConnectionModel<M extends AnyAux = AnyAux> implements Co
|
|
|
71
71
|
*/
|
|
72
72
|
hasDirectDeploymentRelation(): boolean;
|
|
73
73
|
values(): IteratorLike<RelationshipModel<M> | DeploymentRelationModel<M>>;
|
|
74
|
+
/**
|
|
75
|
+
* Merge with another connections, if it has the same source and target.
|
|
76
|
+
* Returns new connection with union of relationships.
|
|
77
|
+
*/
|
|
78
|
+
mergeWith(others: DeploymentConnectionModel<M>[]): DeploymentConnectionModel<M>;
|
|
74
79
|
/**
|
|
75
80
|
* Merge with another connection, if it has the same source and target.
|
|
76
81
|
* Returns new connection with union of relationships.
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, R as RelationshipsAccum, h as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.
|
|
2
|
-
export { b as Aux, j as EdgeModel, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, R as RelationshipsAccum, h as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.CqXs9Frh.js';
|
|
2
|
+
export { b as Aux, j as EdgeModel, L as LikeC4DeploymentModel, d as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.CqXs9Frh.js';
|
|
3
3
|
import { F as Fqn, a as IteratorLike } from '../shared/core.D74xkKkG.js';
|
|
4
4
|
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.D6-fWbM3.js';
|
|
5
5
|
import 'type-fest';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.DyJ41fBO.js';
|
|
7
7
|
|
|
8
8
|
interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
|
|
9
9
|
readonly id: Id;
|
|
@@ -71,6 +71,11 @@ declare class DeploymentConnectionModel<M extends AnyAux = AnyAux> implements Co
|
|
|
71
71
|
*/
|
|
72
72
|
hasDirectDeploymentRelation(): boolean;
|
|
73
73
|
values(): IteratorLike<RelationshipModel<M> | DeploymentRelationModel<M>>;
|
|
74
|
+
/**
|
|
75
|
+
* Merge with another connections, if it has the same source and target.
|
|
76
|
+
* Returns new connection with union of relationships.
|
|
77
|
+
*/
|
|
78
|
+
mergeWith(others: DeploymentConnectionModel<M>[]): DeploymentConnectionModel<M>;
|
|
74
79
|
/**
|
|
75
80
|
* Merge with another connection, if it has the same source and target.
|
|
76
81
|
* Returns new connection with union of relationships.
|
package/dist/model/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/index
|
|
1
|
+
export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/index.KOeaSlL8.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
|
|
2
|
-
import { C as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, a as ComputedLikeC4Model,
|
|
2
|
+
import { C as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, a as ComputedLikeC4Model, bk as ViewId, au as RelationId, bf as NodeId, bc as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b5 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, aY as ComputedDynamicView, bh as StepEdgeId, a_ as ComputedElementView, aX as ComputedDeploymentView, at as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aw as RelationshipKind } from './core.BL1oTk7-.mjs';
|
|
3
3
|
import { F as Fqn, K as KeysOf, f as ElementKind, l as ElementShape, s as Color, o as Tag, n as Link, a as IteratorLike, x as ThemeColor, i as Element } from './core.D74xkKkG.mjs';
|
|
4
4
|
|
|
5
5
|
type ComputeViewResult<V extends ComputedView = ComputedView> = {
|
|
@@ -240,6 +240,7 @@ declare class RelationshipModel<M extends AnyAux = AnyAux> {
|
|
|
240
240
|
get description(): string | null;
|
|
241
241
|
get navigateTo(): LikeC4ViewModel<M> | null;
|
|
242
242
|
get tags(): ReadonlyArray<Tag>;
|
|
243
|
+
get kind(): string | null;
|
|
243
244
|
get links(): ReadonlyArray<Link>;
|
|
244
245
|
/**
|
|
245
246
|
* Iterate over all views that include this relationship.
|
|
@@ -474,6 +475,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
|
|
|
474
475
|
get shape(): ElementShape;
|
|
475
476
|
get color(): ThemeColor;
|
|
476
477
|
get tags(): ReadonlyArray<Tag>;
|
|
478
|
+
get kind(): DeploymentNodeKind | string | null;
|
|
477
479
|
get description(): string | null;
|
|
478
480
|
get technology(): string | null;
|
|
479
481
|
get links(): ReadonlyArray<Link>;
|
|
@@ -574,6 +576,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
|
|
|
574
576
|
get shape(): ElementShape;
|
|
575
577
|
get color(): ThemeColor;
|
|
576
578
|
get tags(): ReadonlyArray<Tag>;
|
|
579
|
+
get kind(): string | null;
|
|
577
580
|
get description(): string | null;
|
|
578
581
|
get technology(): string | null;
|
|
579
582
|
get links(): ReadonlyArray<Link>;
|
|
@@ -614,6 +617,7 @@ declare class DeploymentRelationModel<M extends AnyAux = AnyAux> {
|
|
|
614
617
|
get technology(): string | null;
|
|
615
618
|
get description(): string | null;
|
|
616
619
|
get tags(): ReadonlyArray<Tag>;
|
|
620
|
+
get kind(): RelationshipKind | null;
|
|
617
621
|
get navigateTo(): LikeC4ViewModel<M> | null;
|
|
618
622
|
get links(): ReadonlyArray<Link>;
|
|
619
623
|
views(): IteratorLike<LikeC4ViewModel<M, ComputedDeploymentView>>;
|
|
@@ -36,12 +36,12 @@ type OrOperator<Tag, Kind> = Omit<AllNever, 'or'> & {
|
|
|
36
36
|
};
|
|
37
37
|
declare const isOrOperator: <Tag, Kind>(operator: WhereOperator<Tag, Kind>) => operator is OrOperator<Tag, Kind>;
|
|
38
38
|
type WhereOperator<Tag, Kind> = TagEqual<Tag> | KindEqual<Kind> | NotOperator<Tag, Kind> | AndOperator<Tag, Kind> | OrOperator<Tag, Kind>;
|
|
39
|
-
type Filterable<FTag extends string = string, FKind extends string = string> = {
|
|
39
|
+
type Filterable<FTag extends string | null = string | null, FKind extends string | null = string | null> = {
|
|
40
40
|
tags?: readonly FTag[] | null;
|
|
41
41
|
kind?: FKind;
|
|
42
42
|
};
|
|
43
43
|
type OperatorPredicate<V extends Filterable> = (value: V) => boolean;
|
|
44
|
-
declare function whereOperatorAsPredicate<FTag extends string = string, FKind extends string = string>(operator: WhereOperator<FTag, FKind>): OperatorPredicate<Filterable
|
|
44
|
+
declare function whereOperatorAsPredicate<FTag extends string = string, FKind extends string = string>(operator: WhereOperator<FTag, FKind>): OperatorPredicate<Filterable>;
|
|
45
45
|
|
|
46
46
|
interface BaseExpr {
|
|
47
47
|
where?: never;
|
|
@@ -285,12 +285,20 @@ declare namespace RelationExpr {
|
|
|
285
285
|
inout: FqnExpr<D, M>;
|
|
286
286
|
};
|
|
287
287
|
const isInOut: (expr: ExpressionV2) => expr is InOut;
|
|
288
|
+
type Where<D = Fqn, M = Fqn> = {
|
|
289
|
+
where: {
|
|
290
|
+
expr: ExpressionV2<D, M>;
|
|
291
|
+
condition: WhereOperator<string, string>;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const isWhere: (expr: ExpressionV2) => expr is Where;
|
|
288
295
|
}
|
|
289
296
|
type RelationExpr<D = Fqn, M = Fqn> = ExclusiveUnion<{
|
|
290
297
|
Direct: RelationExpr.Direct<D, M>;
|
|
291
298
|
Incoming: RelationExpr.Incoming<D, M>;
|
|
292
299
|
Outgoing: RelationExpr.Outgoing<D, M>;
|
|
293
300
|
InOut: RelationExpr.InOut<D, M>;
|
|
301
|
+
Where: RelationExpr.Where<D, M>;
|
|
294
302
|
}>;
|
|
295
303
|
/**
|
|
296
304
|
* Represents a version 2 expression which can be one of several types.
|
|
@@ -306,6 +314,7 @@ type ExpressionV2<D = Fqn, M = Fqn> = ExclusiveUnion<{
|
|
|
306
314
|
Incoming: RelationExpr.Incoming<D, M>;
|
|
307
315
|
Outgoing: RelationExpr.Outgoing<D, M>;
|
|
308
316
|
InOut: RelationExpr.InOut<D, M>;
|
|
317
|
+
RelationPredicateOrWhere: RelationExpr.Where<D, M>;
|
|
309
318
|
}>;
|
|
310
319
|
declare namespace ExpressionV2 {
|
|
311
320
|
const isFqnExpr: (expr: ExpressionV2) => expr is FqnExpr;
|
|
@@ -738,6 +747,7 @@ interface DeployedInstance {
|
|
|
738
747
|
readonly title?: string;
|
|
739
748
|
readonly description?: string | null;
|
|
740
749
|
readonly technology?: string | null;
|
|
750
|
+
readonly kind?: string | null;
|
|
741
751
|
readonly tags?: NonEmptyArray<Tag> | null;
|
|
742
752
|
readonly links?: NonEmptyArray<Link> | null;
|
|
743
753
|
readonly style?: DeploymentElementStyle;
|
|
@@ -829,4 +839,4 @@ interface LayoutedLikeC4Model<Fqns extends string = string, DeploymentFqns exten
|
|
|
829
839
|
views: Record<Views, DiagramView<Views, Tags>>;
|
|
830
840
|
}
|
|
831
841
|
|
|
832
|
-
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, ComputedView as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, type ComputedLikeC4Model as a, type
|
|
842
|
+
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, ComputedView as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, type ComputedLikeC4Model as a, type CustomColorDefinitions as a$, type GlobalPredicateId as a0, type GlobalPredicates as a1, type GlobalStyleID as a2, type GlobalStyles as a3, type ModelGlobals as a4, type AnyParsedLikeC4Model as a5, type GenericLikeC4Model as a6, type LayoutedLikeC4Model as a7, type LikeC4ModelDump as a8, type ParsedLikeC4Model as a9, DiagramNode as aA, extractStep as aB, getBBoxCenter as aC, getParallelStepsPrefix as aD, isAutoLayoutDirection as aE, isDeploymentView as aF, isDynamicView as aG, isDynamicViewParallelSteps as aH, isElementView as aI, isExtendsElementView as aJ, isScopedElementView as aK, isStepEdgeId as aL, isViewRuleAutoLayout as aM, isViewRuleGlobalPredicateRef as aN, isViewRuleGlobalStyle as aO, isViewRuleGroup as aP, isViewRulePredicate as aQ, isViewRuleStyle as aR, stepEdgeId as aS, type AutoLayoutDirection as aT, type BasicElementView as aU, type BasicView as aV, type BBox as aW, type ComputedDeploymentView as aX, type ComputedDynamicView as aY, type ComputedEdge as aZ, type ComputedElementView as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isTagEqual as ae, whereOperatorAsPredicate as af, type AndOperator as ag, type EqualOperator as ah, type Filterable as ai, type KindEqual as aj, type NotOperator as ak, type OperatorPredicate as al, type OrOperator as am, type TagEqual as an, type WhereOperator as ao, DefaultArrowType as ap, DefaultLineStyle as aq, DefaultRelationshipColor as ar, type AbstractRelation as as, type ModelRelation as at, type RelationId as au, type RelationshipArrowType as av, type RelationshipKind as aw, type RelationshipKindSpecification as ax, type RelationshipLineType as ay, ComputedNode as az, type DeployedInstance as b, type DeploymentView as b0, type DeploymentViewRule as b1, type DeploymentViewRulePredicate as b2, type DeploymentViewRuleStyle as b3, type DiagramEdge as b4, type DiagramView as b5, type DynamicView as b6, type DynamicViewIncludeRule as b7, type DynamicViewParallelSteps as b8, type DynamicViewRule as b9, type DynamicViewStep as ba, type DynamicViewStepOrParallel as bb, type EdgeId as bc, type ElementView as bd, type ExtendsElementView as be, type NodeId as bf, type ScopedElementView as bg, type StepEdgeId as bh, type StepEdgeIdLiteral as bi, type ViewAutoLayout as bj, type ViewId as bk, type ViewManualLayout as bl, type ViewRule as bm, type ViewRuleAutoLayout as bn, type ViewRuleGlobalPredicateRef as bo, type ViewRuleGlobalStyle as bp, type ViewRuleGroup as bq, type ViewRulePredicate as br, type ViewRuleStyle as bs, type ViewRuleStyleOrGlobalRef as bt, type ViewWithHash as bu, type ViewWithNotation as bv, type ElementNotation as bw, type DeploymentElementStyle as c, type DeploymentNode as d, expression as e, type DeploymentNodeKind as f, type DeploymentNodeKindSpecification as g, type DeploymentRef as h, type DeploymentRelation as i, isCustomElement as j, isCustomRelationExpr as k, isElement as l, isElementKindExpr as m, isElementPredicateExpr as n, isElementRef as o, isElementTagExpr as p, isElementWhere as q, isExpandedElementExpr as r, isIncoming as s, isInOut as t, isOutgoing as u, isRelation as v, isRelationExpression as w, isRelationPredicateExpr as x, isRelationWhere as y, isWildcard as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
|
|
2
|
-
import { C as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, a as ComputedLikeC4Model,
|
|
2
|
+
import { C as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, a as ComputedLikeC4Model, bk as ViewId, au as RelationId, bf as NodeId, bc as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b5 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, aY as ComputedDynamicView, bh as StepEdgeId, a_ as ComputedElementView, aX as ComputedDeploymentView, at as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aw as RelationshipKind } from './core.DyJ41fBO.js';
|
|
3
3
|
import { F as Fqn, K as KeysOf, f as ElementKind, l as ElementShape, s as Color, o as Tag, n as Link, a as IteratorLike, x as ThemeColor, i as Element } from './core.D74xkKkG.js';
|
|
4
4
|
|
|
5
5
|
type ComputeViewResult<V extends ComputedView = ComputedView> = {
|
|
@@ -240,6 +240,7 @@ declare class RelationshipModel<M extends AnyAux = AnyAux> {
|
|
|
240
240
|
get description(): string | null;
|
|
241
241
|
get navigateTo(): LikeC4ViewModel<M> | null;
|
|
242
242
|
get tags(): ReadonlyArray<Tag>;
|
|
243
|
+
get kind(): string | null;
|
|
243
244
|
get links(): ReadonlyArray<Link>;
|
|
244
245
|
/**
|
|
245
246
|
* Iterate over all views that include this relationship.
|
|
@@ -474,6 +475,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
|
|
|
474
475
|
get shape(): ElementShape;
|
|
475
476
|
get color(): ThemeColor;
|
|
476
477
|
get tags(): ReadonlyArray<Tag>;
|
|
478
|
+
get kind(): DeploymentNodeKind | string | null;
|
|
477
479
|
get description(): string | null;
|
|
478
480
|
get technology(): string | null;
|
|
479
481
|
get links(): ReadonlyArray<Link>;
|
|
@@ -574,6 +576,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
|
|
|
574
576
|
get shape(): ElementShape;
|
|
575
577
|
get color(): ThemeColor;
|
|
576
578
|
get tags(): ReadonlyArray<Tag>;
|
|
579
|
+
get kind(): string | null;
|
|
577
580
|
get description(): string | null;
|
|
578
581
|
get technology(): string | null;
|
|
579
582
|
get links(): ReadonlyArray<Link>;
|
|
@@ -614,6 +617,7 @@ declare class DeploymentRelationModel<M extends AnyAux = AnyAux> {
|
|
|
614
617
|
get technology(): string | null;
|
|
615
618
|
get description(): string | null;
|
|
616
619
|
get tags(): ReadonlyArray<Tag>;
|
|
620
|
+
get kind(): RelationshipKind | null;
|
|
617
621
|
get navigateTo(): LikeC4ViewModel<M> | null;
|
|
618
622
|
get links(): ReadonlyArray<Link>;
|
|
619
623
|
views(): IteratorLike<LikeC4ViewModel<M, ComputedDeploymentView>>;
|
|
@@ -36,12 +36,12 @@ type OrOperator<Tag, Kind> = Omit<AllNever, 'or'> & {
|
|
|
36
36
|
};
|
|
37
37
|
declare const isOrOperator: <Tag, Kind>(operator: WhereOperator<Tag, Kind>) => operator is OrOperator<Tag, Kind>;
|
|
38
38
|
type WhereOperator<Tag, Kind> = TagEqual<Tag> | KindEqual<Kind> | NotOperator<Tag, Kind> | AndOperator<Tag, Kind> | OrOperator<Tag, Kind>;
|
|
39
|
-
type Filterable<FTag extends string = string, FKind extends string = string> = {
|
|
39
|
+
type Filterable<FTag extends string | null = string | null, FKind extends string | null = string | null> = {
|
|
40
40
|
tags?: readonly FTag[] | null;
|
|
41
41
|
kind?: FKind;
|
|
42
42
|
};
|
|
43
43
|
type OperatorPredicate<V extends Filterable> = (value: V) => boolean;
|
|
44
|
-
declare function whereOperatorAsPredicate<FTag extends string = string, FKind extends string = string>(operator: WhereOperator<FTag, FKind>): OperatorPredicate<Filterable
|
|
44
|
+
declare function whereOperatorAsPredicate<FTag extends string = string, FKind extends string = string>(operator: WhereOperator<FTag, FKind>): OperatorPredicate<Filterable>;
|
|
45
45
|
|
|
46
46
|
interface BaseExpr {
|
|
47
47
|
where?: never;
|
|
@@ -285,12 +285,20 @@ declare namespace RelationExpr {
|
|
|
285
285
|
inout: FqnExpr<D, M>;
|
|
286
286
|
};
|
|
287
287
|
const isInOut: (expr: ExpressionV2) => expr is InOut;
|
|
288
|
+
type Where<D = Fqn, M = Fqn> = {
|
|
289
|
+
where: {
|
|
290
|
+
expr: ExpressionV2<D, M>;
|
|
291
|
+
condition: WhereOperator<string, string>;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const isWhere: (expr: ExpressionV2) => expr is Where;
|
|
288
295
|
}
|
|
289
296
|
type RelationExpr<D = Fqn, M = Fqn> = ExclusiveUnion<{
|
|
290
297
|
Direct: RelationExpr.Direct<D, M>;
|
|
291
298
|
Incoming: RelationExpr.Incoming<D, M>;
|
|
292
299
|
Outgoing: RelationExpr.Outgoing<D, M>;
|
|
293
300
|
InOut: RelationExpr.InOut<D, M>;
|
|
301
|
+
Where: RelationExpr.Where<D, M>;
|
|
294
302
|
}>;
|
|
295
303
|
/**
|
|
296
304
|
* Represents a version 2 expression which can be one of several types.
|
|
@@ -306,6 +314,7 @@ type ExpressionV2<D = Fqn, M = Fqn> = ExclusiveUnion<{
|
|
|
306
314
|
Incoming: RelationExpr.Incoming<D, M>;
|
|
307
315
|
Outgoing: RelationExpr.Outgoing<D, M>;
|
|
308
316
|
InOut: RelationExpr.InOut<D, M>;
|
|
317
|
+
RelationPredicateOrWhere: RelationExpr.Where<D, M>;
|
|
309
318
|
}>;
|
|
310
319
|
declare namespace ExpressionV2 {
|
|
311
320
|
const isFqnExpr: (expr: ExpressionV2) => expr is FqnExpr;
|
|
@@ -738,6 +747,7 @@ interface DeployedInstance {
|
|
|
738
747
|
readonly title?: string;
|
|
739
748
|
readonly description?: string | null;
|
|
740
749
|
readonly technology?: string | null;
|
|
750
|
+
readonly kind?: string | null;
|
|
741
751
|
readonly tags?: NonEmptyArray<Tag> | null;
|
|
742
752
|
readonly links?: NonEmptyArray<Link> | null;
|
|
743
753
|
readonly style?: DeploymentElementStyle;
|
|
@@ -829,4 +839,4 @@ interface LayoutedLikeC4Model<Fqns extends string = string, DeploymentFqns exten
|
|
|
829
839
|
views: Record<Views, DiagramView<Views, Tags>>;
|
|
830
840
|
}
|
|
831
841
|
|
|
832
|
-
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, ComputedView as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, type ComputedLikeC4Model as a, type
|
|
842
|
+
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, ComputedView as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, type ComputedLikeC4Model as a, type CustomColorDefinitions as a$, type GlobalPredicateId as a0, type GlobalPredicates as a1, type GlobalStyleID as a2, type GlobalStyles as a3, type ModelGlobals as a4, type AnyParsedLikeC4Model as a5, type GenericLikeC4Model as a6, type LayoutedLikeC4Model as a7, type LikeC4ModelDump as a8, type ParsedLikeC4Model as a9, DiagramNode as aA, extractStep as aB, getBBoxCenter as aC, getParallelStepsPrefix as aD, isAutoLayoutDirection as aE, isDeploymentView as aF, isDynamicView as aG, isDynamicViewParallelSteps as aH, isElementView as aI, isExtendsElementView as aJ, isScopedElementView as aK, isStepEdgeId as aL, isViewRuleAutoLayout as aM, isViewRuleGlobalPredicateRef as aN, isViewRuleGlobalStyle as aO, isViewRuleGroup as aP, isViewRulePredicate as aQ, isViewRuleStyle as aR, stepEdgeId as aS, type AutoLayoutDirection as aT, type BasicElementView as aU, type BasicView as aV, type BBox as aW, type ComputedDeploymentView as aX, type ComputedDynamicView as aY, type ComputedEdge as aZ, type ComputedElementView as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isTagEqual as ae, whereOperatorAsPredicate as af, type AndOperator as ag, type EqualOperator as ah, type Filterable as ai, type KindEqual as aj, type NotOperator as ak, type OperatorPredicate as al, type OrOperator as am, type TagEqual as an, type WhereOperator as ao, DefaultArrowType as ap, DefaultLineStyle as aq, DefaultRelationshipColor as ar, type AbstractRelation as as, type ModelRelation as at, type RelationId as au, type RelationshipArrowType as av, type RelationshipKind as aw, type RelationshipKindSpecification as ax, type RelationshipLineType as ay, ComputedNode as az, type DeployedInstance as b, type DeploymentView as b0, type DeploymentViewRule as b1, type DeploymentViewRulePredicate as b2, type DeploymentViewRuleStyle as b3, type DiagramEdge as b4, type DiagramView as b5, type DynamicView as b6, type DynamicViewIncludeRule as b7, type DynamicViewParallelSteps as b8, type DynamicViewRule as b9, type DynamicViewStep as ba, type DynamicViewStepOrParallel as bb, type EdgeId as bc, type ElementView as bd, type ExtendsElementView as be, type NodeId as bf, type ScopedElementView as bg, type StepEdgeId as bh, type StepEdgeIdLiteral as bi, type ViewAutoLayout as bj, type ViewId as bk, type ViewManualLayout as bl, type ViewRule as bm, type ViewRuleAutoLayout as bn, type ViewRuleGlobalPredicateRef as bo, type ViewRuleGlobalStyle as bp, type ViewRuleGroup as bq, type ViewRulePredicate as br, type ViewRuleStyle as bs, type ViewRuleStyleOrGlobalRef as bt, type ViewWithHash as bu, type ViewWithNotation as bv, type ElementNotation as bw, type DeploymentElementStyle as c, type DeploymentNode as d, expression as e, type DeploymentNodeKind as f, type DeploymentNodeKindSpecification as g, type DeploymentRef as h, type DeploymentRelation as i, isCustomElement as j, isCustomRelationExpr as k, isElement as l, isElementKindExpr as m, isElementPredicateExpr as n, isElementRef as o, isElementTagExpr as p, isElementWhere as q, isExpandedElementExpr as r, isIncoming as s, isInOut as t, isOutgoing as u, isRelation as v, isRelationExpression as w, isRelationPredicateExpr as x, isRelationWhere as y, isWildcard as z };
|