@likec4/core 1.25.1 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/builder/index.d.mts +4 -4
  2. package/dist/builder/index.d.ts +4 -4
  3. package/dist/builder/index.mjs +4 -4
  4. package/dist/compute-view/index.d.mts +5 -5
  5. package/dist/compute-view/index.d.ts +5 -5
  6. package/dist/compute-view/index.mjs +6 -6
  7. package/dist/index.d.mts +9 -8
  8. package/dist/index.d.ts +9 -8
  9. package/dist/index.mjs +6 -6
  10. package/dist/model/index.d.mts +7 -148
  11. package/dist/model/index.d.ts +7 -148
  12. package/dist/model/index.mjs +1 -1
  13. package/dist/shared/core.-qjOvsEL.d.ts +146 -0
  14. package/dist/shared/{core.Bhx0OGK8.d.mts → core.30yYKXcZ.d.mts} +2 -1
  15. package/dist/shared/{core.Bhx0OGK8.d.ts → core.30yYKXcZ.d.ts} +2 -1
  16. package/dist/shared/{core.DmBjVt1u.mjs → core.BBJd-FqJ.mjs} +1 -1
  17. package/dist/shared/{core.B4wY1NqR.d.mts → core.BH59D8Ji.d.ts} +8 -8
  18. package/dist/shared/{core.DQMSDiu8.mjs → core.BqezHsjR.mjs} +96 -96
  19. package/dist/shared/{core.D1_bU4dO.d.mts → core.Brmu7VBL.d.mts} +12 -12
  20. package/dist/shared/{core.BsAIrb_r.d.ts → core.CIbWBWW3.d.ts} +1 -1
  21. package/dist/shared/{core.CVZbbLy6.mjs → core.CcjDE4j7.mjs} +4 -4
  22. package/dist/shared/{core.B4fHpdUJ.d.ts → core.Cpd5mZgF.d.ts} +12 -12
  23. package/dist/shared/{core.Btj1m6H6.mjs → core.DRxv3HIl.mjs} +2 -1
  24. package/dist/shared/{core.C4dHhcrI.d.mts → core.Dd1nCiNx.d.mts} +2 -2
  25. package/dist/shared/{core.RiWsY3jz.d.mts → core.HKn0jlo_.d.mts} +1 -1
  26. package/dist/shared/{core.Dw2eQBtz.d.ts → core.mD0TIdz_.d.ts} +2 -2
  27. package/dist/shared/core.oI7caxVx.d.mts +146 -0
  28. package/dist/shared/{core.DCetokL7.mjs → core.yND74qFI.mjs} +1 -1
  29. package/dist/shared/{core.CWZqfEHX.d.ts → core.z6g06scf.d.mts} +8 -8
  30. package/dist/types/index.d.mts +4 -4
  31. package/dist/types/index.d.ts +4 -4
  32. package/dist/types/index.mjs +1 -1
  33. package/dist/utils/index.d.mts +56 -3
  34. package/dist/utils/index.d.ts +56 -3
  35. package/dist/utils/index.mjs +212 -4
  36. package/package.json +4 -4
  37. package/src/builder/_types.ts +2 -2
  38. package/src/compute-view/compute-view.ts +10 -10
  39. package/src/compute-view/utils/with-readable-edges.ts +2 -2
  40. package/src/errors/index.ts +4 -3
  41. package/src/index.ts +11 -1
  42. package/src/model/DeploymentModel.ts +2 -2
  43. package/src/model/LikeC4Model.ts +4 -4
  44. package/src/model/types.ts +7 -8
  45. package/src/types/_common.ts +2 -0
  46. package/src/types/index.ts +7 -6
  47. package/src/types/{model.ts → model-data.ts} +14 -14
  48. package/src/utils/index.ts +1 -0
  49. package/src/utils/mnemonist.ts +1 -0
@@ -1,6 +1,6 @@
1
1
  import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
2
- import { a as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, C as ComputedLikeC4Model, bo as ViewId, ay as RelationId, bj as NodeId, bg as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b9 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, b0 as ComputedDynamicView, bl as StepEdgeId, b2 as ComputedElementView, a$ as ComputedDeploymentView, ax as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aA as RelationshipKind } from './core.CWZqfEHX.js';
3
- import { F as Fqn, K as KeysOf, a as IteratorLike, i as ElementKind, o as ElementShape, w as Color, I as IconUrl, r as Tag, q as Link, O as ThemeColor, l as Element, p as ElementStyle } from './core.Bhx0OGK8.js';
2
+ import { a as ComputedView, L as LikeC4View, a9 as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, bo as ViewId, ay as RelationId, bj as NodeId, bg as EdgeId, a6 as GenericLikeC4ModelData, a7 as LayoutedLikeC4ModelData, b9 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, b0 as ComputedDynamicView, bl as StepEdgeId, b2 as ComputedElementView, a$ as ComputedDeploymentView, ax as ModelRelation, a5 as AnyParsedLikeC4ModelData, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aA as RelationshipKind } from './core.BH59D8Ji.js';
3
+ import { F as Fqn, K as KeysOf, a as IteratorLike, j as ElementKind, p as ElementShape, x as Color, I as IconUrl, s as Tag, r as Link, Q as ThemeColor, m as Element, q as ElementStyle } from './core.30yYKXcZ.js';
4
4
 
5
5
  type ComputeViewResult<V extends ComputedView = ComputedView> = {
6
6
  isSuccess: true;
@@ -13,7 +13,7 @@ type ComputeViewResult<V extends ComputedView = ComputedView> = {
13
13
  };
14
14
  declare function unsafeComputeView(viewsource: LikeC4View, likec4model: LikeC4Model): ComputedView;
15
15
  declare function computeView<V extends LikeC4View>(viewsource: V, likec4model: LikeC4Model): ComputeViewResult;
16
- declare function computeViews<P extends ParsedLikeC4Model>(parsed: P): ComputedLikeC4Model;
16
+ declare function computeViews<P extends ParsedLikeC4ModelData>(parsed: P): ComputedLikeC4ModelData;
17
17
 
18
18
  type IncomingFilter = 'all' | 'direct' | 'to-descendants';
19
19
  type OutgoingFilter = 'all' | 'direct' | 'from-descendants';
@@ -44,11 +44,11 @@ interface Aux<Element extends string, Deployment extends string, View extends st
44
44
  EdgeIdLiteral: string;
45
45
  NodeOrId: LiteralUnion<this['NodeIdLiteral'], string> | WithId<this['NodeId']>;
46
46
  EdgeOrId: LiteralUnion<this['EdgeIdLiteral'], string> | WithId<this['EdgeId']>;
47
- Model: Simplify<Omit<GenericLikeC4Model, 'views'> & WithViews<this['ViewId'], ViewType>>;
47
+ Model: Simplify<Omit<GenericLikeC4ModelData, 'views'> & WithViews<this['ViewId'], ViewType>>;
48
48
  }
49
49
  declare namespace Aux {
50
- type FromParsed<M> = M extends ParsedLikeC4Model ? Aux<KeysOf<M['elements']>, KeysOf<M['deployments']['elements']>, KeysOf<M['views']>, ComputedView<ViewId<KeysOf<M['views']>>, string>> : never;
51
- type FromModel<M> = M extends GenericLikeC4Model ? Aux<KeysOf<M['elements']>, KeysOf<M['deployments']['elements']>, KeysOf<M['views']>, M extends LayoutedLikeC4Model ? DiagramView<ViewId<KeysOf<M['views']>>, string> : ComputedView<ViewId<KeysOf<M['views']>>, string>> : never;
50
+ type FromParsed<M> = M extends ParsedLikeC4ModelData ? Aux<KeysOf<M['elements']>, KeysOf<M['deployments']['elements']>, KeysOf<M['views']>, ComputedView<ViewId<KeysOf<M['views']>>, string>> : never;
51
+ type FromModel<M> = M extends GenericLikeC4ModelData ? Aux<KeysOf<M['elements']>, KeysOf<M['deployments']['elements']>, KeysOf<M['views']>, M extends LayoutedLikeC4ModelData ? DiagramView<ViewId<KeysOf<M['views']>>, string> : ComputedView<ViewId<KeysOf<M['views']>>, string>> : never;
52
52
  type FromDump<M> = M extends LikeC4ModelDump ? Aux<KeysOf<M['elements']>, KeysOf<M['deployments']['elements']>, KeysOf<M['views']>, DiagramView<ViewId<KeysOf<M['views']>>, string>> : never;
53
53
  }
54
54
 
@@ -269,7 +269,7 @@ declare class LikeC4Model<M extends AnyAux = LikeC4Model.Any> {
269
269
  * @param parsed - The parsed LikeC4 model to compute from
270
270
  * @returns A new LikeC4Model instance with computed relationships and structure
271
271
  */
272
- static compute<const M extends AnyParsedLikeC4Model>(parsed: M): LikeC4Model<Aux.FromParsed<M>>;
272
+ static compute<const M extends AnyParsedLikeC4ModelData>(parsed: M): LikeC4Model<Aux.FromParsed<M>>;
273
273
  /**
274
274
  * Creates a function that computes a view using the data from the model.
275
275
  *
@@ -277,7 +277,7 @@ declare class LikeC4Model<M extends AnyAux = LikeC4Model.Any> {
277
277
  * const compute = LikeC4Model.makeCompute(parsedModel);
278
278
  * const result = compute(viewSource);
279
279
  */
280
- static makeCompute<M extends AnyParsedLikeC4Model>(parsed: M): (viewsource: LikeC4View) => ComputeViewResult;
280
+ static makeCompute<M extends AnyParsedLikeC4ModelData>(parsed: M): (viewsource: LikeC4View) => ComputeViewResult;
281
281
  /**
282
282
  * Creates a new LikeC4Model instance from the provided model data.
283
283
  *
@@ -285,7 +285,7 @@ declare class LikeC4Model<M extends AnyAux = LikeC4Model.Any> {
285
285
  * @param model - The model data to create a LikeC4Model from
286
286
  * @returns A new LikeC4Model instance with the type derived from the input model
287
287
  */
288
- static create<const M extends GenericLikeC4Model>(model: M): LikeC4Model<Aux.FromModel<M>>;
288
+ static create<const M extends GenericLikeC4ModelData>(model: M): LikeC4Model<Aux.FromModel<M>>;
289
289
  /**
290
290
  * Creates a new LikeC4Model instance from a model dump.
291
291
  *
@@ -389,8 +389,8 @@ declare namespace LikeC4Model {
389
389
  declare class LikeC4DeploymentModel<M extends AnyAux = AnyAux> {
390
390
  #private;
391
391
  readonly $model: LikeC4Model<M>;
392
- readonly $deployments: GenericLikeC4Model['deployments'];
393
- constructor($model: LikeC4Model<M>, $deployments: GenericLikeC4Model['deployments']);
392
+ readonly $deployments: GenericLikeC4ModelData['deployments'];
393
+ constructor($model: LikeC4Model<M>, $deployments: GenericLikeC4ModelData['deployments']);
394
394
  element(el: M['DeploymentOrFqn']): DeploymentElementModel<M>;
395
395
  findElement(el: M['Deployment']): DeploymentElementModel<M> | null;
396
396
  node(el: M['DeploymentOrFqn']): DeploymentNodeModel<M>;
@@ -729,4 +729,4 @@ declare class ElementModel<M extends AnyAux = AnyAux> {
729
729
  deployments(): DeployedInstancesIterator<M>;
730
730
  }
731
731
 
732
- export { type AnyAux as A, type ComputeViewResult as C, type DeploymentElementModel as D, ElementModel as E, LikeC4Model as L, NodeModel as N, RelationshipModel as R, computeViews as a, Aux as b, computeView as c, LikeC4DeploymentModel as d, LikeC4ViewModel as e, DeploymentNodeModel as f, DeployedInstanceModel as g, RelationshipsAccum as h, DeploymentRelationModel as i, EdgeModel as j, unsafeComputeView as u };
732
+ export { type AnyAux as A, type ComputeViewResult as C, DeployedInstanceModel as D, ElementModel as E, LikeC4Model as L, NodeModel as N, RelationshipModel as R, computeViews as a, Aux as b, computeView as c, type DeploymentElementModel as d, DeploymentNodeModel as e, DeploymentRelationModel as f, EdgeModel as g, LikeC4DeploymentModel as h, LikeC4ViewModel as i, RelationshipsAccum as j, unsafeComputeView as u };
@@ -1,6 +1,7 @@
1
1
  function nonNullable(value, message) {
2
2
  if (typeof value === "undefined" || value == null) {
3
- throw new Error(message ?? `Expected defined value, but received ${value}`);
3
+ const msg = typeof message === "function" ? message() : message;
4
+ throw new Error(msg ?? `Expected defined value, but received ${value}`);
4
5
  }
5
6
  return value;
6
7
  }
@@ -1,5 +1,5 @@
1
- import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.D1_bU4dO.mjs';
2
- import { F as Fqn } from './core.Bhx0OGK8.mjs';
1
+ import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.Brmu7VBL.mjs';
2
+ import { F as Fqn } from './core.30yYKXcZ.mjs';
3
3
 
4
4
  declare function computeRelationshipsView(subjectId: Fqn, likec4model: LikeC4Model): {
5
5
  incomers: Set<ElementModel<LikeC4Model.Any>>;
@@ -1,4 +1,4 @@
1
- import { F as Fqn } from './core.Bhx0OGK8.mjs';
1
+ import { F as Fqn } from './core.30yYKXcZ.mjs';
2
2
 
3
3
  declare function parentFqn<E extends string>(fqn: E): E | null;
4
4
  declare function nameFromFqn<E extends string>(fqn: E): string;
@@ -1,5 +1,5 @@
1
- import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.B4fHpdUJ.js';
2
- import { F as Fqn } from './core.Bhx0OGK8.js';
1
+ import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.Cpd5mZgF.js';
2
+ import { F as Fqn } from './core.30yYKXcZ.js';
3
3
 
4
4
  declare function computeRelationshipsView(subjectId: Fqn, likec4model: LikeC4Model): {
5
5
  incomers: Set<ElementModel<LikeC4Model.Any>>;
@@ -0,0 +1,146 @@
1
+ import { E as ElementModel, d as DeploymentElementModel, A as AnyAux, e as DeploymentNodeModel, D as DeployedInstanceModel, j as RelationshipsAccum, R as RelationshipModel, f as DeploymentRelationModel } from './core.Brmu7VBL.mjs';
2
+ import { F as Fqn, a as IteratorLike } from './core.30yYKXcZ.mjs';
3
+
4
+ interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
5
+ readonly id: Id;
6
+ readonly source: Elem;
7
+ readonly target: Elem;
8
+ /**
9
+ * Common ancestor of the source and target elements.
10
+ * Represents the boundary of the connection.
11
+ */
12
+ readonly boundary: Elem | null;
13
+ /**
14
+ * Human readable expression of the connection
15
+ * Mostly used for testing and debugging
16
+ */
17
+ readonly expression: string;
18
+ mergeWith(this: Connection<Elem, Id>, other: typeof this): typeof this;
19
+ nonEmpty(): boolean;
20
+ difference(this: Connection<Elem, Id>, other: typeof this): typeof this;
21
+ intersect(this: Connection<Elem, Id>, other: typeof this): typeof this;
22
+ equals(other: Connection): boolean;
23
+ }
24
+ declare namespace Connection {
25
+ type ConnectionPredicate = <C extends Connection<{
26
+ id: string;
27
+ }, any>>(connection: C) => boolean;
28
+ type ElementId = Fqn | string;
29
+ export const isInside: (fqn: ElementId) => ConnectionPredicate;
30
+ export const isDirectedBetween: (source: ElementId, target: ElementId) => ConnectionPredicate;
31
+ export const isAnyBetween: (source: ElementId, target: ElementId) => ConnectionPredicate;
32
+ export const isIncoming: (target: ElementId) => ConnectionPredicate;
33
+ export const isOutgoing: (source: ElementId) => ConnectionPredicate;
34
+ export const isAnyInOut: (source: ElementId) => ConnectionPredicate;
35
+ export { };
36
+ }
37
+
38
+ declare const customInspectSymbol: unique symbol;
39
+
40
+ /**
41
+ * Connection is ephemeral entity, result of a resolving relationships between source and target.
42
+ * Includes direct relationships and/or between their nested elements.
43
+ */
44
+ declare class DeploymentConnectionModel<M extends AnyAux = AnyAux> implements Connection<DeploymentElementModel<M>, M['EdgeId']> {
45
+ readonly source: DeploymentNodeModel<M> | DeployedInstanceModel<M>;
46
+ readonly target: DeploymentNodeModel<M> | DeployedInstanceModel<M>;
47
+ readonly relations: RelationshipsAccum<M>;
48
+ constructor(source: DeploymentNodeModel<M> | DeployedInstanceModel<M>, target: DeploymentNodeModel<M> | DeployedInstanceModel<M>, relations: RelationshipsAccum<M>);
49
+ readonly id: M['EdgeId'];
50
+ /**
51
+ * Human readable expression of the connection
52
+ * Mostly used for testing and debugging
53
+ */
54
+ get expression(): string;
55
+ private _boundary;
56
+ /**
57
+ * Common ancestor of the source and target elements.
58
+ * Represents the boundary of the connection.
59
+ */
60
+ get boundary(): DeploymentNodeModel<M> | null;
61
+ nonEmpty(): boolean;
62
+ [customInspectSymbol](depth: any, inspectOptions: any, inspect: any): string;
63
+ toString(): string;
64
+ /**
65
+ * Check if connection contains deployment relation,
66
+ * that is directly connected to source or target.
67
+ */
68
+ hasDirectDeploymentRelation(): boolean;
69
+ values(): IteratorLike<RelationshipModel<M> | DeploymentRelationModel<M>>;
70
+ /**
71
+ * Merge with another connections, if it has the same source and target.
72
+ * Returns new connection with union of relationships.
73
+ */
74
+ mergeWith(others: DeploymentConnectionModel<M>[]): DeploymentConnectionModel<M>;
75
+ /**
76
+ * Merge with another connection, if it has the same source and target.
77
+ * Returns new connection with union of relationships.
78
+ */
79
+ mergeWith(other: DeploymentConnectionModel<M>): DeploymentConnectionModel<M>;
80
+ difference(other: DeploymentConnectionModel<M>): DeploymentConnectionModel<M>;
81
+ intersect(other: DeploymentConnectionModel<M>): DeploymentConnectionModel<M>;
82
+ equals(other: Connection): boolean;
83
+ /**
84
+ * Creates a clone of the current `DeploymentConnectionModel` instance with optional overrides.
85
+ * if `null` is provided in overrides, the corresponding relation set will be empty.
86
+ */
87
+ update(overrides?: {
88
+ model?: ReadonlySet<RelationshipModel<M>> | null;
89
+ deployment?: ReadonlySet<DeploymentRelationModel<M>> | null;
90
+ }): DeploymentConnectionModel<M>;
91
+ }
92
+
93
+ /**
94
+ * Connection refers to any relationships between two elements,
95
+ * both direct and implicit ones (between their nested elements).
96
+ *
97
+ * Merges relationships together to an single edge on the diagram.
98
+ */
99
+ declare class ConnectionModel<M extends AnyAux = AnyAux> implements Connection<ElementModel<M>, M['EdgeId']> {
100
+ readonly source: ElementModel<M>;
101
+ readonly target: ElementModel<M>;
102
+ readonly relations: ReadonlySet<RelationshipModel<M>>;
103
+ readonly id: M['EdgeId'];
104
+ constructor(source: ElementModel<M>, target: ElementModel<M>, relations?: ReadonlySet<RelationshipModel<M>>);
105
+ private _boundary;
106
+ /**
107
+ * Common ancestor of the source and target elements.
108
+ * Represents the boundary of the connection.
109
+ */
110
+ get boundary(): ElementModel<M> | null;
111
+ /**
112
+ * Human readable expression of the connection
113
+ * Mostly used for testing and debugging
114
+ */
115
+ get expression(): string;
116
+ /**
117
+ * Returns true if only includes relations between the source and target elements.
118
+ */
119
+ get isDirect(): boolean;
120
+ /**
121
+ * Returns true if includes relations between nested elements of the source and target elements.
122
+ */
123
+ get isImplicit(): boolean;
124
+ get directRelations(): ReadonlySet<RelationshipModel<M>>;
125
+ nonEmpty(): boolean;
126
+ mergeWith(other: ConnectionModel<M>): ConnectionModel<M>;
127
+ difference(other: ConnectionModel<M>): ConnectionModel<M>;
128
+ intersect(other: ConnectionModel<M>): ConnectionModel<M>;
129
+ equals(other: Connection): boolean;
130
+ /**
131
+ * Returns a new instance with the updated relations.
132
+ *
133
+ * @param relations - A readonly set of `RelationshipModel` instances representing the new relations.
134
+ * @returns A new `ConnectionModel` instance with the updated relations.
135
+ */
136
+ update(relations: ReadonlySet<RelationshipModel<M>>): ConnectionModel<M>;
137
+ [customInspectSymbol](depth: any, inspectOptions: any, inspect: any): string;
138
+ toString(): string;
139
+ /**
140
+ * Creates a new connection with reversed direction (target becomes source and vice versa)
141
+ * @param search - When true, attempts to find an existing connection between the reversed nodes
142
+ */
143
+ reversed(search?: boolean): ConnectionModel<M>;
144
+ }
145
+
146
+ export { Connection as C, DeploymentConnectionModel as D, ConnectionModel as a };
@@ -1,4 +1,4 @@
1
- import { u, i as invariant, n as nonexhaustive } from './core.Btj1m6H6.mjs';
1
+ import { u, i as invariant, n as nonexhaustive } from './core.DRxv3HIl.mjs';
2
2
 
3
3
  function o$1(a){return t=>!a(t)}
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { Tagged, NonEmptyTuple, Simplify, MergeExclusive } from 'type-fest';
2
- import { N as NonEmptyArray, F as Fqn, i as ElementKind, r as Tag, o as ElementShape, w as Color, I as IconUrl, k as BorderStyle, S as ShapeSize, E as ExclusiveUnion, p as ElementStyle, q as Link, P as Point, X as XYPoint, T as ThemeColorValues, J as SpacingSize, M as TextSize, O as ThemeColor, m as ElementKindSpecification, t as TypedElement } from './core.Bhx0OGK8.js';
2
+ import { N as NonEmptyArray, F as Fqn, j as ElementKind, s as Tag, p as ElementShape, x as Color, I as IconUrl, l as BorderStyle, S as ShapeSize, E as ExclusiveUnion, q as ElementStyle, r as Link, P as Point, X as XYPoint, T as ThemeColorValues, M as SpacingSize, O as TextSize, Q as ThemeColor, n as ElementKindSpecification, u as TypedElement } from './core.30yYKXcZ.mjs';
3
3
 
4
4
  type EqualOperator<V> = {
5
5
  eq: V;
@@ -803,7 +803,7 @@ interface DeploymentRelation extends AbstractRelation {
803
803
  * @typeParam Views - Types of views in the model (defaults to string)
804
804
  * @typeParam DeploymentFqns - Fully Qualified Names for deployment nodes (defaults to string)
805
805
  */
806
- interface ParsedLikeC4Model<ElementKinds extends string = string, RelationKinds extends string = string, Tags extends string = string, Fqns extends string = string, Views extends string = string, DeploymentFqns extends string = string> {
806
+ interface ParsedLikeC4ModelData<ElementKinds extends string = string, RelationKinds extends string = string, Tags extends string = string, Fqns extends string = string, Views extends string = string, DeploymentFqns extends string = string> {
807
807
  __?: never;
808
808
  specification: {
809
809
  tags: Tag<Tags>[];
@@ -823,7 +823,7 @@ interface ParsedLikeC4Model<ElementKinds extends string = string, RelationKinds
823
823
  relations: Record<RelationId, DeploymentRelation>;
824
824
  };
825
825
  }
826
- type AnyParsedLikeC4Model = ParsedLikeC4Model<any, any, any, any, any, any>;
826
+ type AnyParsedLikeC4ModelData = ParsedLikeC4ModelData<any, any, any, any, any, any>;
827
827
  /**
828
828
  * Hook to get types from dump
829
829
  */
@@ -841,18 +841,18 @@ type LikeC4ModelDump = {
841
841
  };
842
842
  };
843
843
  /**
844
- * Same as {@link ParsedLikeC4Model}, but with computed views or layouted views.
844
+ * Same as {@link ParsedLikeC4ModelData}, but with computed views or layouted views.
845
845
  */
846
- interface GenericLikeC4Model<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string, T = 'computed' | 'layouted'> extends Omit<ParsedLikeC4Model<string, string, Tags, Fqns, Views, DeploymentFqns>, 'views' | '__'> {
846
+ interface GenericLikeC4ModelData<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string, T = 'computed' | 'layouted'> extends Omit<ParsedLikeC4ModelData<string, string, Tags, Fqns, Views, DeploymentFqns>, 'views' | '__'> {
847
847
  __?: T;
848
848
  views: Record<Views, ComputedView<Views> | DiagramView<Views>>;
849
849
  }
850
- interface ComputedLikeC4Model<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string> extends Omit<GenericLikeC4Model<Fqns, DeploymentFqns, Views, Tags, 'computed'>, 'views'> {
850
+ interface ComputedLikeC4ModelData<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string> extends Omit<GenericLikeC4ModelData<Fqns, DeploymentFqns, Views, Tags, 'computed'>, 'views'> {
851
851
  views: Record<Views, ComputedView<Views>>;
852
852
  }
853
- interface LayoutedLikeC4Model<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string> extends Omit<GenericLikeC4Model<Fqns, DeploymentFqns, Views, Tags, 'layouted'>, 'views'> {
853
+ interface LayoutedLikeC4ModelData<Fqns extends string = string, DeploymentFqns extends string = string, Views extends string = string, Tags extends string = string> extends Omit<GenericLikeC4ModelData<Fqns, DeploymentFqns, Views, Tags, 'layouted'>, 'views'> {
854
854
  __: 'layouted';
855
855
  views: Record<Views, DiagramView<Views, Tags>>;
856
856
  }
857
857
 
858
- export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, type ComputedLikeC4Model 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 _, ComputedView as a, type ComputedDeploymentView 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, type RelationshipKind as aA, type RelationshipKindSpecification as aB, type RelationshipLineType as aC, ComputedNode as aD, DiagramNode as aE, extractStep as aF, getBBoxCenter as aG, getParallelStepsPrefix as aH, isAutoLayoutDirection as aI, isDeploymentView as aJ, isDynamicView as aK, isDynamicViewParallelSteps as aL, isElementView as aM, isExtendsElementView as aN, isScopedElementView as aO, isStepEdgeId as aP, isViewRuleAutoLayout as aQ, isViewRuleGlobalPredicateRef as aR, isViewRuleGlobalStyle as aS, isViewRuleGroup as aT, isViewRulePredicate as aU, isViewRuleStyle as aV, stepEdgeId as aW, type AutoLayoutDirection as aX, type BasicElementView as aY, type BasicView as aZ, type BBox as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isParticipantOperator as ae, isTagEqual as af, whereOperatorAsPredicate as ag, type AllNever as ah, type AndOperator as ai, type EqualOperator as aj, type Filterable as ak, type KindEqual as al, type NotOperator as am, type OperatorPredicate as an, type OrOperator as ao, type Participant as ap, type ParticipantOperator as aq, type TagEqual as ar, type WhereOperator as as, DefaultArrowType as at, DefaultLineStyle as au, DefaultRelationshipColor as av, type AbstractRelation as aw, type ModelRelation as ax, type RelationId as ay, type RelationshipArrowType as az, type DeployedInstance as b, type ComputedDynamicView as b0, type ComputedEdge as b1, type ComputedElementView as b2, type CustomColorDefinitions as b3, type DeploymentView as b4, type DeploymentViewRule as b5, type DeploymentViewRulePredicate as b6, type DeploymentViewRuleStyle as b7, type DiagramEdge as b8, type DiagramView as b9, type ElementNotation as bA, type DynamicView as ba, type DynamicViewIncludeRule as bb, type DynamicViewParallelSteps as bc, type DynamicViewRule as bd, type DynamicViewStep as be, type DynamicViewStepOrParallel as bf, type EdgeId as bg, type ElementView as bh, type ExtendsElementView as bi, type NodeId as bj, type ScopedElementView as bk, type StepEdgeId as bl, type StepEdgeIdLiteral as bm, type ViewAutoLayout as bn, type ViewId as bo, type ViewManualLayout as bp, type ViewRule as bq, type ViewRuleAutoLayout as br, type ViewRuleGlobalPredicateRef as bs, type ViewRuleGlobalStyle as bt, type ViewRuleGroup as bu, type ViewRulePredicate as bv, type ViewRuleStyle as bw, type ViewRuleStyleOrGlobalRef as bx, type ViewWithHash as by, type ViewWithNotation as bz, 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 };
858
+ export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, type ComputedLikeC4ModelData 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 _, ComputedView as a, type ComputedDeploymentView as a$, type GlobalPredicateId as a0, type GlobalPredicates as a1, type GlobalStyleID as a2, type GlobalStyles as a3, type ModelGlobals as a4, type AnyParsedLikeC4ModelData as a5, type GenericLikeC4ModelData as a6, type LayoutedLikeC4ModelData as a7, type LikeC4ModelDump as a8, type ParsedLikeC4ModelData as a9, type RelationshipKind as aA, type RelationshipKindSpecification as aB, type RelationshipLineType as aC, ComputedNode as aD, DiagramNode as aE, extractStep as aF, getBBoxCenter as aG, getParallelStepsPrefix as aH, isAutoLayoutDirection as aI, isDeploymentView as aJ, isDynamicView as aK, isDynamicViewParallelSteps as aL, isElementView as aM, isExtendsElementView as aN, isScopedElementView as aO, isStepEdgeId as aP, isViewRuleAutoLayout as aQ, isViewRuleGlobalPredicateRef as aR, isViewRuleGlobalStyle as aS, isViewRuleGroup as aT, isViewRulePredicate as aU, isViewRuleStyle as aV, stepEdgeId as aW, type AutoLayoutDirection as aX, type BasicElementView as aY, type BasicView as aZ, type BBox as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isParticipantOperator as ae, isTagEqual as af, whereOperatorAsPredicate as ag, type AllNever as ah, type AndOperator as ai, type EqualOperator as aj, type Filterable as ak, type KindEqual as al, type NotOperator as am, type OperatorPredicate as an, type OrOperator as ao, type Participant as ap, type ParticipantOperator as aq, type TagEqual as ar, type WhereOperator as as, DefaultArrowType as at, DefaultLineStyle as au, DefaultRelationshipColor as av, type AbstractRelation as aw, type ModelRelation as ax, type RelationId as ay, type RelationshipArrowType as az, type DeployedInstance as b, type ComputedDynamicView as b0, type ComputedEdge as b1, type ComputedElementView as b2, type CustomColorDefinitions as b3, type DeploymentView as b4, type DeploymentViewRule as b5, type DeploymentViewRulePredicate as b6, type DeploymentViewRuleStyle as b7, type DiagramEdge as b8, type DiagramView as b9, type ElementNotation as bA, type DynamicView as ba, type DynamicViewIncludeRule as bb, type DynamicViewParallelSteps as bc, type DynamicViewRule as bd, type DynamicViewStep as be, type DynamicViewStepOrParallel as bf, type EdgeId as bg, type ElementView as bh, type ExtendsElementView as bi, type NodeId as bj, type ScopedElementView as bk, type StepEdgeId as bl, type StepEdgeIdLiteral as bm, type ViewAutoLayout as bn, type ViewId as bo, type ViewManualLayout as bp, type ViewRule as bq, type ViewRuleAutoLayout as br, type ViewRuleGlobalPredicateRef as bs, type ViewRuleGlobalStyle as bt, type ViewRuleGroup as bu, type ViewRulePredicate as bv, type ViewRuleStyle as bw, type ViewRuleStyleOrGlobalRef as bx, type ViewWithHash as by, type ViewWithNotation as bz, 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,7 +1,7 @@
1
- import { X as XYPoint, N as NonEmptyArray, P as Point, k as BorderStyle, o as ElementShape, O as ThemeColor, F as Fqn } from '../shared/core.Bhx0OGK8.mjs';
2
- export { A as AsFqn, B as BorderStyles, w as Color, x as ColorLiteral, C as CustomColor, D as DefaultElementShape, e as DefaultPaddingSize, f as DefaultShapeSize, g as DefaultTextSize, h as DefaultThemeColor, l as Element, i as ElementKind, m as ElementKindSpecification, n as ElementKindSpecificationStyle, j as ElementShapes, p as ElementStyle, z as ElementThemeColorValues, y as ElementThemeColors, E as ExclusiveUnion, H as HexColorLiteral, I as IconUrl, a as IteratorLike, K as KeysOf, L as LikeC4Theme, q as Link, c as NTuple, b as NonEmptyReadonlyArray, d as Predicate, G as RelationshipThemeColorValues, R as RelationshipThemeColors, S as ShapeSize, J as SpacingSize, r as Tag, s as TagSpec, M as TextSize, T as ThemeColorValues, v as ThemeColors, t as TypedElement, u as isThemeColor } from '../shared/core.Bhx0OGK8.mjs';
3
- import { bo as ViewId, a_ as BBox, bp as ViewManualLayout, aX as AutoLayoutDirection } from '../shared/core.B4wY1NqR.mjs';
4
- export { aw as AbstractRelation, ah as AllNever, ai as AndOperator, a5 as AnyParsedLikeC4Model, aY as BasicElementView, aZ as BasicView, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, b1 as ComputedEdge, b2 as ComputedElementView, C as ComputedLikeC4Model, aD as ComputedNode, a as ComputedView, b3 as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, at as DefaultArrowType, au as DefaultLineStyle, av 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, b4 as DeploymentView, b5 as DeploymentViewRule, b6 as DeploymentViewRulePredicate, b7 as DeploymentViewRuleStyle, b8 as DiagramEdge, aE as DiagramNode, b9 as DiagramView, E as DirectRelationExpr, ba as DynamicView, bb as DynamicViewIncludeRule, bc as DynamicViewParallelSteps, bd as DynamicViewRule, be as DynamicViewStep, bf as DynamicViewStepOrParallel, bg as EdgeId, F as ElementExpression, G as ElementKindExpr, bA as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bh as ElementView, K as ElementWhereExpr, aj as EqualOperator, M as ExpandedElementExpr, N as Expression, X as ExpressionV2, bi as ExtendsElementView, ak 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, al as KindEqual, a7 as LayoutedLikeC4Model, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, ax as ModelRelation, bj as NodeId, R as NonWilcard, am as NotOperator, an as OperatorPredicate, ao as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, ap as Participant, aq as ParticipantOperator, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, ay as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, az as RelationshipArrowType, aA as RelationshipKind, aB as RelationshipKindSpecification, aC as RelationshipLineType, bk as ScopedElementView, bl as StepEdgeId, bm as StepEdgeIdLiteral, ar as TagEqual, bn as ViewAutoLayout, bq as ViewRule, br as ViewRuleAutoLayout, bs as ViewRuleGlobalPredicateRef, bt as ViewRuleGlobalStyle, bu as ViewRuleGroup, bv as ViewRulePredicate, bw as ViewRuleStyle, bx as ViewRuleStyleOrGlobalRef, by as ViewWithHash, bz as ViewWithNotation, as as WhereOperator, W as WildcardExpr, aF as extractStep, aG as getBBoxCenter, aH as getParallelStepsPrefix, aa as isAndOperator, aI as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aJ as isDeploymentView, aK as isDynamicView, aL as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aM as isElementView, q as isElementWhere, r as isExpandedElementExpr, aN as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, ae as isParticipantOperator, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aO as isScopedElementView, aP as isStepEdgeId, af as isTagEqual, aQ as isViewRuleAutoLayout, aR as isViewRuleGlobalPredicateRef, aS as isViewRuleGlobalStyle, aT as isViewRuleGroup, aU as isViewRulePredicate, aV as isViewRuleStyle, z as isWildcard, aW as stepEdgeId, ag as whereOperatorAsPredicate } from '../shared/core.B4wY1NqR.mjs';
1
+ import { X as XYPoint, N as NonEmptyArray, P as Point, l as BorderStyle, p as ElementShape, Q as ThemeColor, F as Fqn } from '../shared/core.30yYKXcZ.mjs';
2
+ export { A as AsFqn, B as BorderStyles, x as Color, y as ColorLiteral, C as CustomColor, D as DefaultElementShape, f as DefaultPaddingSize, g as DefaultShapeSize, h as DefaultTextSize, i as DefaultThemeColor, m as Element, j as ElementKind, n as ElementKindSpecification, o as ElementKindSpecificationStyle, k as ElementShapes, q as ElementStyle, G as ElementThemeColorValues, z as ElementThemeColors, E as ExclusiveUnion, H as HexColorLiteral, I as IconUrl, a as IteratorLike, K as KeysOf, L as LikeC4Theme, r as Link, c as NTuple, b as NonEmptyReadonlyArray, d as Predicate, e as ProjectId, J as RelationshipThemeColorValues, R as RelationshipThemeColors, S as ShapeSize, M as SpacingSize, s as Tag, t as TagSpec, O as TextSize, T as ThemeColorValues, w as ThemeColors, u as TypedElement, v as isThemeColor } from '../shared/core.30yYKXcZ.mjs';
3
+ import { bo as ViewId, a_ as BBox, bp as ViewManualLayout, aX as AutoLayoutDirection } from '../shared/core.z6g06scf.mjs';
4
+ export { aw as AbstractRelation, ah as AllNever, ai as AndOperator, a5 as AnyParsedLikeC4ModelData, aY as BasicElementView, aZ as BasicView, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, b1 as ComputedEdge, b2 as ComputedElementView, C as ComputedLikeC4ModelData, aD as ComputedNode, a as ComputedView, b3 as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, at as DefaultArrowType, au as DefaultLineStyle, av 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, b4 as DeploymentView, b5 as DeploymentViewRule, b6 as DeploymentViewRulePredicate, b7 as DeploymentViewRuleStyle, b8 as DiagramEdge, aE as DiagramNode, b9 as DiagramView, E as DirectRelationExpr, ba as DynamicView, bb as DynamicViewIncludeRule, bc as DynamicViewParallelSteps, bd as DynamicViewRule, be as DynamicViewStep, bf as DynamicViewStepOrParallel, bg as EdgeId, F as ElementExpression, G as ElementKindExpr, bA as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bh as ElementView, K as ElementWhereExpr, aj as EqualOperator, M as ExpandedElementExpr, N as Expression, X as ExpressionV2, bi as ExtendsElementView, ak as Filterable, Y as FqnExpr, Z as FqnRef, a6 as GenericLikeC4ModelData, $ as GlobalDynamicPredicates, a0 as GlobalPredicateId, a1 as GlobalPredicates, a2 as GlobalStyleID, a3 as GlobalStyles, Q as InOutExpr, O as IncomingExpr, al as KindEqual, a7 as LayoutedLikeC4ModelData, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, ax as ModelRelation, bj as NodeId, R as NonWilcard, am as NotOperator, an as OperatorPredicate, ao as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4ModelData, ap as Participant, aq as ParticipantOperator, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, ay as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, az as RelationshipArrowType, aA as RelationshipKind, aB as RelationshipKindSpecification, aC as RelationshipLineType, bk as ScopedElementView, bl as StepEdgeId, bm as StepEdgeIdLiteral, ar as TagEqual, bn as ViewAutoLayout, bq as ViewRule, br as ViewRuleAutoLayout, bs as ViewRuleGlobalPredicateRef, bt as ViewRuleGlobalStyle, bu as ViewRuleGroup, bv as ViewRulePredicate, bw as ViewRuleStyle, bx as ViewRuleStyleOrGlobalRef, by as ViewWithHash, bz as ViewWithNotation, as as WhereOperator, W as WildcardExpr, aF as extractStep, aG as getBBoxCenter, aH as getParallelStepsPrefix, aa as isAndOperator, aI as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aJ as isDeploymentView, aK as isDynamicView, aL as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aM as isElementView, q as isElementWhere, r as isExpandedElementExpr, aN as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, ae as isParticipantOperator, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aO as isScopedElementView, aP as isStepEdgeId, af as isTagEqual, aQ as isViewRuleAutoLayout, aR as isViewRuleGlobalPredicateRef, aS as isViewRuleGlobalStyle, aT as isViewRuleGroup, aU as isViewRulePredicate, aV as isViewRuleStyle, z as isWildcard, aW as stepEdgeId, ag as whereOperatorAsPredicate } from '../shared/core.z6g06scf.mjs';
5
5
  import 'type-fest';
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
- import { X as XYPoint, N as NonEmptyArray, P as Point, k as BorderStyle, o as ElementShape, O as ThemeColor, F as Fqn } from '../shared/core.Bhx0OGK8.js';
2
- export { A as AsFqn, B as BorderStyles, w as Color, x as ColorLiteral, C as CustomColor, D as DefaultElementShape, e as DefaultPaddingSize, f as DefaultShapeSize, g as DefaultTextSize, h as DefaultThemeColor, l as Element, i as ElementKind, m as ElementKindSpecification, n as ElementKindSpecificationStyle, j as ElementShapes, p as ElementStyle, z as ElementThemeColorValues, y as ElementThemeColors, E as ExclusiveUnion, H as HexColorLiteral, I as IconUrl, a as IteratorLike, K as KeysOf, L as LikeC4Theme, q as Link, c as NTuple, b as NonEmptyReadonlyArray, d as Predicate, G as RelationshipThemeColorValues, R as RelationshipThemeColors, S as ShapeSize, J as SpacingSize, r as Tag, s as TagSpec, M as TextSize, T as ThemeColorValues, v as ThemeColors, t as TypedElement, u as isThemeColor } from '../shared/core.Bhx0OGK8.js';
3
- import { bo as ViewId, a_ as BBox, bp as ViewManualLayout, aX as AutoLayoutDirection } from '../shared/core.CWZqfEHX.js';
4
- export { aw as AbstractRelation, ah as AllNever, ai as AndOperator, a5 as AnyParsedLikeC4Model, aY as BasicElementView, aZ as BasicView, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, b1 as ComputedEdge, b2 as ComputedElementView, C as ComputedLikeC4Model, aD as ComputedNode, a as ComputedView, b3 as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, at as DefaultArrowType, au as DefaultLineStyle, av 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, b4 as DeploymentView, b5 as DeploymentViewRule, b6 as DeploymentViewRulePredicate, b7 as DeploymentViewRuleStyle, b8 as DiagramEdge, aE as DiagramNode, b9 as DiagramView, E as DirectRelationExpr, ba as DynamicView, bb as DynamicViewIncludeRule, bc as DynamicViewParallelSteps, bd as DynamicViewRule, be as DynamicViewStep, bf as DynamicViewStepOrParallel, bg as EdgeId, F as ElementExpression, G as ElementKindExpr, bA as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bh as ElementView, K as ElementWhereExpr, aj as EqualOperator, M as ExpandedElementExpr, N as Expression, X as ExpressionV2, bi as ExtendsElementView, ak 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, al as KindEqual, a7 as LayoutedLikeC4Model, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, ax as ModelRelation, bj as NodeId, R as NonWilcard, am as NotOperator, an as OperatorPredicate, ao as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, ap as Participant, aq as ParticipantOperator, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, ay as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, az as RelationshipArrowType, aA as RelationshipKind, aB as RelationshipKindSpecification, aC as RelationshipLineType, bk as ScopedElementView, bl as StepEdgeId, bm as StepEdgeIdLiteral, ar as TagEqual, bn as ViewAutoLayout, bq as ViewRule, br as ViewRuleAutoLayout, bs as ViewRuleGlobalPredicateRef, bt as ViewRuleGlobalStyle, bu as ViewRuleGroup, bv as ViewRulePredicate, bw as ViewRuleStyle, bx as ViewRuleStyleOrGlobalRef, by as ViewWithHash, bz as ViewWithNotation, as as WhereOperator, W as WildcardExpr, aF as extractStep, aG as getBBoxCenter, aH as getParallelStepsPrefix, aa as isAndOperator, aI as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aJ as isDeploymentView, aK as isDynamicView, aL as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aM as isElementView, q as isElementWhere, r as isExpandedElementExpr, aN as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, ae as isParticipantOperator, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aO as isScopedElementView, aP as isStepEdgeId, af as isTagEqual, aQ as isViewRuleAutoLayout, aR as isViewRuleGlobalPredicateRef, aS as isViewRuleGlobalStyle, aT as isViewRuleGroup, aU as isViewRulePredicate, aV as isViewRuleStyle, z as isWildcard, aW as stepEdgeId, ag as whereOperatorAsPredicate } from '../shared/core.CWZqfEHX.js';
1
+ import { X as XYPoint, N as NonEmptyArray, P as Point, l as BorderStyle, p as ElementShape, Q as ThemeColor, F as Fqn } from '../shared/core.30yYKXcZ.js';
2
+ export { A as AsFqn, B as BorderStyles, x as Color, y as ColorLiteral, C as CustomColor, D as DefaultElementShape, f as DefaultPaddingSize, g as DefaultShapeSize, h as DefaultTextSize, i as DefaultThemeColor, m as Element, j as ElementKind, n as ElementKindSpecification, o as ElementKindSpecificationStyle, k as ElementShapes, q as ElementStyle, G as ElementThemeColorValues, z as ElementThemeColors, E as ExclusiveUnion, H as HexColorLiteral, I as IconUrl, a as IteratorLike, K as KeysOf, L as LikeC4Theme, r as Link, c as NTuple, b as NonEmptyReadonlyArray, d as Predicate, e as ProjectId, J as RelationshipThemeColorValues, R as RelationshipThemeColors, S as ShapeSize, M as SpacingSize, s as Tag, t as TagSpec, O as TextSize, T as ThemeColorValues, w as ThemeColors, u as TypedElement, v as isThemeColor } from '../shared/core.30yYKXcZ.js';
3
+ import { bo as ViewId, a_ as BBox, bp as ViewManualLayout, aX as AutoLayoutDirection } from '../shared/core.BH59D8Ji.js';
4
+ export { aw as AbstractRelation, ah as AllNever, ai as AndOperator, a5 as AnyParsedLikeC4ModelData, aY as BasicElementView, aZ as BasicView, a$ as ComputedDeploymentView, b0 as ComputedDynamicView, b1 as ComputedEdge, b2 as ComputedElementView, C as ComputedLikeC4ModelData, aD as ComputedNode, a as ComputedView, b3 as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, at as DefaultArrowType, au as DefaultLineStyle, av 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, b4 as DeploymentView, b5 as DeploymentViewRule, b6 as DeploymentViewRulePredicate, b7 as DeploymentViewRuleStyle, b8 as DiagramEdge, aE as DiagramNode, b9 as DiagramView, E as DirectRelationExpr, ba as DynamicView, bb as DynamicViewIncludeRule, bc as DynamicViewParallelSteps, bd as DynamicViewRule, be as DynamicViewStep, bf as DynamicViewStepOrParallel, bg as EdgeId, F as ElementExpression, G as ElementKindExpr, bA as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bh as ElementView, K as ElementWhereExpr, aj as EqualOperator, M as ExpandedElementExpr, N as Expression, X as ExpressionV2, bi as ExtendsElementView, ak as Filterable, Y as FqnExpr, Z as FqnRef, a6 as GenericLikeC4ModelData, $ as GlobalDynamicPredicates, a0 as GlobalPredicateId, a1 as GlobalPredicates, a2 as GlobalStyleID, a3 as GlobalStyles, Q as InOutExpr, O as IncomingExpr, al as KindEqual, a7 as LayoutedLikeC4ModelData, a8 as LikeC4ModelDump, L as LikeC4View, a4 as ModelGlobals, ax as ModelRelation, bj as NodeId, R as NonWilcard, am as NotOperator, an as OperatorPredicate, ao as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4ModelData, ap as Participant, aq as ParticipantOperator, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, ay as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, az as RelationshipArrowType, aA as RelationshipKind, aB as RelationshipKindSpecification, aC as RelationshipLineType, bk as ScopedElementView, bl as StepEdgeId, bm as StepEdgeIdLiteral, ar as TagEqual, bn as ViewAutoLayout, bq as ViewRule, br as ViewRuleAutoLayout, bs as ViewRuleGlobalPredicateRef, bt as ViewRuleGlobalStyle, bu as ViewRuleGroup, bv as ViewRulePredicate, bw as ViewRuleStyle, bx as ViewRuleStyleOrGlobalRef, by as ViewWithHash, bz as ViewWithNotation, as as WhereOperator, W as WildcardExpr, aF as extractStep, aG as getBBoxCenter, aH as getParallelStepsPrefix, aa as isAndOperator, aI as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aJ as isDeploymentView, aK as isDynamicView, aL as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aM as isElementView, q as isElementWhere, r as isExpandedElementExpr, aN as isExtendsElementView, t as isInOut, s as isIncoming, ab as isKindEqual, ac as isNotOperator, ad as isOrOperator, u as isOutgoing, ae as isParticipantOperator, v as isRelation, w as isRelationExpression, x as isRelationPredicateExpr, y as isRelationWhere, aO as isScopedElementView, aP as isStepEdgeId, af as isTagEqual, aQ as isViewRuleAutoLayout, aR as isViewRuleGlobalPredicateRef, aS as isViewRuleGlobalStyle, aT as isViewRuleGroup, aU as isViewRulePredicate, aV as isViewRuleStyle, z as isWildcard, aW as stepEdgeId, ag as whereOperatorAsPredicate } from '../shared/core.BH59D8Ji.js';
5
5
  import 'type-fest';
6
6
 
7
7
  /**
@@ -1,4 +1,4 @@
1
- export { A as AsFqn, B as BorderStyles, V as ComputedNode, W as ComputedView, S as DefaultArrowType, D as DefaultElementShape, T as DefaultLineStyle, g as DefaultPaddingSize, U as DefaultRelationshipColor, h as DefaultShapeSize, j as DefaultTextSize, c as DefaultThemeColor, d as DeploymentElement, X as DiagramNode, E as ElementKind, k as ElementShapes, H as ExpressionV2, I as FqnExpr, J as FqnRef, R as RelationExpr, Y as extractStep, Z as getBBoxCenter, _ as getParallelStepsPrefix, K as isAndOperator, $ as isAutoLayoutDirection, l as isCustomElement, m as isCustomRelationExpr, a0 as isDeploymentView, a1 as isDynamicView, a2 as isDynamicViewParallelSteps, p as isElement, q as isElementKindExpr, b as isElementPredicateExpr, r as isElementRef, s as isElementTagExpr, a as isElementView, t as isElementWhere, u as isExpandedElementExpr, i as isExtendsElementView, w as isInOut, v as isIncoming, L as isKindEqual, M as isNotOperator, N as isOrOperator, x as isOutgoing, O as isParticipantOperator, y as isRelation, z as isRelationExpression, C as isRelationPredicateExpr, F as isRelationWhere, e as isScopedElementView, a3 as isStepEdgeId, P as isTagEqual, a4 as isViewRuleAutoLayout, a5 as isViewRuleGlobalPredicateRef, a6 as isViewRuleGlobalStyle, a7 as isViewRuleGroup, a8 as isViewRulePredicate, a9 as isViewRuleStyle, G as isWildcard, aa as stepEdgeId, Q as whereOperatorAsPredicate } from '../shared/core.DCetokL7.mjs';
1
+ export { A as AsFqn, B as BorderStyles, V as ComputedNode, W as ComputedView, S as DefaultArrowType, D as DefaultElementShape, T as DefaultLineStyle, g as DefaultPaddingSize, U as DefaultRelationshipColor, h as DefaultShapeSize, j as DefaultTextSize, c as DefaultThemeColor, d as DeploymentElement, X as DiagramNode, E as ElementKind, k as ElementShapes, H as ExpressionV2, I as FqnExpr, J as FqnRef, R as RelationExpr, Y as extractStep, Z as getBBoxCenter, _ as getParallelStepsPrefix, K as isAndOperator, $ as isAutoLayoutDirection, l as isCustomElement, m as isCustomRelationExpr, a0 as isDeploymentView, a1 as isDynamicView, a2 as isDynamicViewParallelSteps, p as isElement, q as isElementKindExpr, b as isElementPredicateExpr, r as isElementRef, s as isElementTagExpr, a as isElementView, t as isElementWhere, u as isExpandedElementExpr, i as isExtendsElementView, w as isInOut, v as isIncoming, L as isKindEqual, M as isNotOperator, N as isOrOperator, x as isOutgoing, O as isParticipantOperator, y as isRelation, z as isRelationExpression, C as isRelationPredicateExpr, F as isRelationWhere, e as isScopedElementView, a3 as isStepEdgeId, P as isTagEqual, a4 as isViewRuleAutoLayout, a5 as isViewRuleGlobalPredicateRef, a6 as isViewRuleGlobalStyle, a7 as isViewRuleGroup, a8 as isViewRulePredicate, a9 as isViewRuleStyle, G as isWildcard, aa as stepEdgeId, Q as whereOperatorAsPredicate } from '../shared/core.yND74qFI.mjs';
2
2
 
3
3
  const ThemeColors = [
4
4
  "amber",
@@ -1,5 +1,5 @@
1
- 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.RiWsY3jz.mjs';
2
- import { N as NonEmptyArray, a as IteratorLike } from '../shared/core.Bhx0OGK8.mjs';
1
+ 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.HKn0jlo_.mjs';
2
+ import { N as NonEmptyArray, a as IteratorLike } from '../shared/core.30yYKXcZ.mjs';
3
3
  export { default as objectHash } from '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+object-hash@3.0.6/node_modules/@types/object-hash/index.d.ts';
4
4
  import { IsNumericLiteral } from 'type-fest';
5
5
 
@@ -193,6 +193,59 @@ declare class Stack<T> implements Iterable<T> {
193
193
  static of<I>(...items: Array<I>): Stack<I>;
194
194
  }
195
195
 
196
+ /**
197
+ * Mnemonist BiMap Typings
198
+ * ========================
199
+ */
200
+ declare class InverseMap<K, V> implements Iterable<[K, V]> {
201
+
202
+ // Members
203
+ size: number;
204
+ inverse: BiMap<V, K>;
205
+
206
+ // Constructor
207
+ constructor(original: BiMap<K, V>);
208
+
209
+ // Methods
210
+ clear(): void;
211
+ set(key: K, value: V): this;
212
+ delete(key: K): boolean;
213
+ has(key: K): boolean;
214
+ get(key: K): V | undefined;
215
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
216
+ keys(): IterableIterator<K>;
217
+ values(): IterableIterator<V>;
218
+ entries(): IterableIterator<[K, V]>;
219
+ [Symbol.iterator](): IterableIterator<[K, V]>;
220
+ inspect(): any;
221
+ }
222
+
223
+ declare class BiMap<K, V> implements Iterable<[K, V]> {
224
+
225
+ // Members
226
+ size: number;
227
+ inverse: InverseMap<V, K>;
228
+
229
+ // Constructor
230
+ constructor();
231
+
232
+ // Methods
233
+ clear(): void;
234
+ set(key: K, value: V): this;
235
+ delete(key: K): boolean;
236
+ has(key: K): boolean;
237
+ get(key: K): V | undefined;
238
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
239
+ keys(): IterableIterator<K>;
240
+ values(): IterableIterator<V>;
241
+ entries(): IterableIterator<[K, V]>;
242
+ [Symbol.iterator](): IterableIterator<[K, V]>;
243
+ inspect(): any;
244
+
245
+ // Statics
246
+ static from<I, J>(iterable: Iterable<[I, J]> | {[key: string]: J}): BiMap<I, J>;
247
+ }
248
+
196
249
  /**
197
250
  * Common head of two arrays
198
251
  *
@@ -402,4 +455,4 @@ declare function symmetricDifference<T>(a: ReadonlySet<T>, b: ReadonlySet<T>): S
402
455
  */
403
456
  declare function stringHash(str: string): string;
404
457
 
405
- export { DefaultMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equals as equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, stringHash, symmetricDifference, toArray, toSet, union };
458
+ export { BiMap, DefaultMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equals as equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, stringHash, symmetricDifference, toArray, toSet, union };
@@ -1,5 +1,5 @@
1
- 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.BsAIrb_r.js';
2
- import { N as NonEmptyArray, a as IteratorLike } from '../shared/core.Bhx0OGK8.js';
1
+ 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.CIbWBWW3.js';
2
+ import { N as NonEmptyArray, a as IteratorLike } from '../shared/core.30yYKXcZ.js';
3
3
  export { default as objectHash } from '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+object-hash@3.0.6/node_modules/@types/object-hash/index.d.ts';
4
4
  import { IsNumericLiteral } from 'type-fest';
5
5
 
@@ -193,6 +193,59 @@ declare class Stack<T> implements Iterable<T> {
193
193
  static of<I>(...items: Array<I>): Stack<I>;
194
194
  }
195
195
 
196
+ /**
197
+ * Mnemonist BiMap Typings
198
+ * ========================
199
+ */
200
+ declare class InverseMap<K, V> implements Iterable<[K, V]> {
201
+
202
+ // Members
203
+ size: number;
204
+ inverse: BiMap<V, K>;
205
+
206
+ // Constructor
207
+ constructor(original: BiMap<K, V>);
208
+
209
+ // Methods
210
+ clear(): void;
211
+ set(key: K, value: V): this;
212
+ delete(key: K): boolean;
213
+ has(key: K): boolean;
214
+ get(key: K): V | undefined;
215
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
216
+ keys(): IterableIterator<K>;
217
+ values(): IterableIterator<V>;
218
+ entries(): IterableIterator<[K, V]>;
219
+ [Symbol.iterator](): IterableIterator<[K, V]>;
220
+ inspect(): any;
221
+ }
222
+
223
+ declare class BiMap<K, V> implements Iterable<[K, V]> {
224
+
225
+ // Members
226
+ size: number;
227
+ inverse: InverseMap<V, K>;
228
+
229
+ // Constructor
230
+ constructor();
231
+
232
+ // Methods
233
+ clear(): void;
234
+ set(key: K, value: V): this;
235
+ delete(key: K): boolean;
236
+ has(key: K): boolean;
237
+ get(key: K): V | undefined;
238
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
239
+ keys(): IterableIterator<K>;
240
+ values(): IterableIterator<V>;
241
+ entries(): IterableIterator<[K, V]>;
242
+ [Symbol.iterator](): IterableIterator<[K, V]>;
243
+ inspect(): any;
244
+
245
+ // Statics
246
+ static from<I, J>(iterable: Iterable<[I, J]> | {[key: string]: J}): BiMap<I, J>;
247
+ }
248
+
196
249
  /**
197
250
  * Common head of two arrays
198
251
  *
@@ -402,4 +455,4 @@ declare function symmetricDifference<T>(a: ReadonlySet<T>, b: ReadonlySet<T>): S
402
455
  */
403
456
  declare function stringHash(str: string): string;
404
457
 
405
- export { DefaultMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equals as equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, stringHash, symmetricDifference, toArray, toSet, union };
458
+ export { BiMap, DefaultMap, DefaultWeakMap, LinkedList, MultiMap, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equals as equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, stringHash, symmetricDifference, toArray, toSet, union };