@likec4/core 1.19.1 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/builder/index.cjs +881 -0
  2. package/dist/builder/index.d.cts +503 -0
  3. package/dist/builder/index.d.mts +5 -4
  4. package/dist/builder/index.d.ts +5 -4
  5. package/dist/builder/{index.js → index.mjs} +14 -4
  6. package/dist/compute-view/index.cjs +86 -0
  7. package/dist/compute-view/index.d.cts +23 -0
  8. package/dist/compute-view/index.d.mts +3 -2
  9. package/dist/compute-view/index.d.ts +3 -2
  10. package/dist/compute-view/{index.js → index.mjs} +6 -5
  11. package/dist/index.cjs +4320 -0
  12. package/dist/index.d.cts +270 -0
  13. package/dist/index.d.mts +130 -4
  14. package/dist/index.d.ts +130 -4
  15. package/dist/{index.js → index.mjs} +512 -7
  16. package/dist/model/index.cjs +40 -0
  17. package/dist/model/index.d.cts +259 -0
  18. package/dist/model/index.d.mts +8 -3
  19. package/dist/model/index.d.ts +8 -3
  20. package/dist/model/index.mjs +1 -0
  21. package/dist/shared/core.B2QYWlYe.cjs +435 -0
  22. package/dist/shared/core.B72vUaNB.d.cts +850 -0
  23. package/dist/shared/core.BGus30EM.cjs +8027 -0
  24. package/dist/shared/core.BRuJ3Wzf.d.mts +12 -0
  25. package/dist/shared/{core.BZ9Msq7w.d.mts → core.BdbFkE_p.d.cts} +14 -4
  26. package/dist/shared/core.BvdNMbcA.d.cts +12 -0
  27. package/dist/shared/{object_hash.CE_oF3I3.js → core.BxvDITEI.mjs} +26 -389
  28. package/dist/shared/core.ByNgh-mC.d.cts +127 -0
  29. package/dist/shared/core.C9DCnJh8.cjs +908 -0
  30. package/dist/shared/{index.DafVOuVd.js → core.CqCTxzMY.mjs} +1111 -572
  31. package/dist/shared/core.D74xkKkG.d.cts +148 -0
  32. package/dist/shared/{core.C05RDLhi.d.ts → core.D_Gc58Gt.d.ts} +23 -5
  33. package/dist/shared/core.Damrzla-.d.ts +12 -0
  34. package/dist/shared/{core.CmYMqgha.d.mts → core.Dfzrh1VA.d.mts} +23 -5
  35. package/dist/shared/core.DsoCu540.cjs +26 -0
  36. package/dist/shared/{view.CyZrG8BJ.js → core.DunIMHRf.mjs} +27 -1
  37. package/dist/shared/{core.BIfgabEw.d.ts → core.ZWiGANIJ.d.ts} +14 -4
  38. package/dist/shared/core.gv1bMwCC.cjs +39 -0
  39. package/dist/shared/core.jy6z2iRn.d.mts +729 -0
  40. package/dist/shared/core.m3rCQAv6.mjs +37 -0
  41. package/dist/types/index.cjs +107 -0
  42. package/dist/types/index.d.cts +72 -0
  43. package/dist/types/index.d.mts +2 -2
  44. package/dist/types/index.d.ts +2 -2
  45. package/dist/types/{index.js → index.mjs} +1 -1
  46. package/dist/utils/index.cjs +95 -0
  47. package/dist/utils/index.d.cts +356 -0
  48. package/dist/utils/index.d.mts +1 -64
  49. package/dist/utils/index.d.ts +1 -64
  50. package/dist/utils/index.mjs +56 -0
  51. package/package.json +52 -26
  52. package/src/builder/Builder.view-common.ts +21 -1
  53. package/src/compute-view/deployment-view/__test__/fixture.ts +31 -3
  54. package/src/compute-view/deployment-view/_types.ts +2 -1
  55. package/src/compute-view/deployment-view/compute.ts +4 -36
  56. package/src/compute-view/deployment-view/predicates/index.ts +8 -0
  57. package/src/compute-view/deployment-view/predicates/relation-direct.ts +125 -99
  58. package/src/compute-view/deployment-view/predicates/relation-in-out.ts +16 -8
  59. package/src/compute-view/deployment-view/predicates/relation-incoming.ts +18 -12
  60. package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +16 -9
  61. package/src/compute-view/deployment-view/predicates/relation-where.ts +18 -0
  62. package/src/compute-view/deployment-view/predicates/utils.ts +214 -0
  63. package/src/compute-view/element-view/__test__/fixture.ts +17 -4
  64. package/src/compute-view/element-view/compute.ts +3 -2
  65. package/src/compute-view/element-view/predicates.ts +520 -0
  66. package/src/compute-view/element-view/utils.ts +11 -7
  67. package/src/compute-view/index.ts +1 -0
  68. package/src/compute-view/relationships-view/_types.ts +16 -0
  69. package/src/compute-view/relationships-view/compute.ts +74 -0
  70. package/src/compute-view/relationships-view/layout.ts +357 -0
  71. package/src/compute-view/relationships-view/utils.ts +40 -0
  72. package/src/compute-view/utils/relationExpressionToPredicates.ts +11 -4
  73. package/src/index.ts +16 -0
  74. package/src/model/DeploymentElementModel.ts +18 -1
  75. package/src/model/ElementModel.ts +13 -0
  76. package/src/model/LikeC4Model.ts +2 -2
  77. package/src/model/RelationModel.ts +9 -0
  78. package/src/model/connection/deployment/DeploymentConnectionModel.ts +11 -1
  79. package/src/model/guards.ts +17 -1
  80. package/src/model/view/LikeC4ViewModel.ts +7 -1
  81. package/src/model/view/NodeModel.ts +5 -0
  82. package/src/types/deployments.ts +1 -0
  83. package/src/types/expression-v2.ts +12 -0
  84. package/src/types/index.ts +1 -0
  85. package/src/types/operators.ts +46 -6
  86. package/src/types/view.ts +2 -2
  87. package/src/utils/index.ts +0 -5
  88. package/src/utils/iterable/unique.ts +1 -7
  89. package/dist/model/index.js +0 -1
  90. package/dist/utils/index.js +0 -347
  91. /package/dist/shared/{chunk-RAAYCPUM.M-JWF7SS.js → core.M-JWF7SS.mjs} +0 -0
@@ -0,0 +1,270 @@
1
+ import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.D74xkKkG.cjs';
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.cjs';
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.B72vUaNB.cjs';
4
+ export { 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.cjs';
5
+ export { A as AnyAux, b as Aux, C as ComputeViewResult, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.BdbFkE_p.cjs';
6
+ export { c as computeRelationshipsView } from './shared/core.BvdNMbcA.cjs';
7
+ export { OverviewGraph, ViewChange } from './types/index.cjs';
8
+ 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.ByNgh-mC.cjs';
9
+ import 'type-fest';
10
+
11
+ /**
12
+ * Mnemonist DefaultMap Typings
13
+ * =============================
14
+ */
15
+ declare class DefaultMap<K, V> implements Iterable<[K, V]> {
16
+
17
+ // Members
18
+ size: number;
19
+
20
+ // Constructor
21
+ constructor(factory: (key: K, index: number) => V);
22
+
23
+ // Methods
24
+ clear(): void;
25
+ set(key: K, value: V): this;
26
+ delete(key: K): boolean;
27
+ has(key: K): boolean;
28
+ get(key: K): V;
29
+ peek(key: K): V | undefined;
30
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
31
+ keys(): IterableIterator<K>;
32
+ values(): IterableIterator<V>;
33
+ entries(): IterableIterator<[K, V]>;
34
+ [Symbol.iterator](): IterableIterator<[K, V]>;
35
+ inspect(): any;
36
+
37
+ // Statics
38
+ static autoIncrement(): number;
39
+ }
40
+
41
+ /**
42
+ * Mnemonist LinkedList Typings
43
+ * =============================
44
+ */
45
+ declare class LinkedList<T> implements Iterable<T> {
46
+
47
+ // Members
48
+ size: number;
49
+
50
+ // Constructor
51
+ constructor();
52
+
53
+ // Methods
54
+ clear(): void;
55
+ first(): T | undefined;
56
+ last(): T | undefined;
57
+ peek(): T | undefined;
58
+ push(value: T): number;
59
+ shift(): T | undefined;
60
+ unshift(value: T): number;
61
+ forEach(callback: (value: T, index: number, list: this) => void, scope?: any): void;
62
+ toArray(): Array<T>;
63
+ values(): IterableIterator<T>;
64
+ entries(): IterableIterator<[number, T]>;
65
+ [Symbol.iterator](): IterableIterator<T>;
66
+ toString(): string;
67
+ toJSON(): Array<T>;
68
+ inspect(): any;
69
+
70
+ // Statics
71
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): LinkedList<I>;
72
+ }
73
+
74
+ /**
75
+ * Mnemonist Queue Typings
76
+ * ========================
77
+ */
78
+ declare class Queue<T> implements Iterable<T> {
79
+
80
+ // Members
81
+ size: number;
82
+
83
+ // Constructor
84
+ constructor();
85
+
86
+ // Methods
87
+ clear(): void;
88
+ enqueue(item: T): number;
89
+ dequeue(): T | undefined;
90
+ peek(): T | undefined;
91
+ forEach(callback: (item: T, index: number, queue: this) => void, scope?: any): void;
92
+ toArray(): Array<T>;
93
+ values(): IterableIterator<T>;
94
+ entries(): IterableIterator<[number, T]>;
95
+ [Symbol.iterator](): IterableIterator<T>;
96
+ toString(): string;
97
+ toJSON(): Array<T>;
98
+ inspect(): any;
99
+
100
+ // Statics
101
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Queue<I>;
102
+ static of<I>(...items: Array<I>): Queue<I>;
103
+ }
104
+
105
+ /**
106
+ * Mnemonist Stack Typings
107
+ * ========================
108
+ */
109
+ declare class Stack<T> implements Iterable<T> {
110
+
111
+ // Members
112
+ size: number;
113
+
114
+ // Constructor
115
+ constructor();
116
+
117
+ // Methods
118
+ clear(): void;
119
+ push(item: T): number;
120
+ pop(): T | undefined;
121
+ peek(): T | undefined;
122
+ forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void;
123
+ toArray(): Array<T>;
124
+ values(): IterableIterator<T>;
125
+ entries(): IterableIterator<[number, T]>;
126
+ [Symbol.iterator](): IterableIterator<T>;
127
+ toString(): string;
128
+ toJSON(): Array<T>;
129
+ inspect(): any;
130
+
131
+ // Statics
132
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Stack<I>;
133
+ static of<I>(...items: Array<I>): Stack<I>;
134
+ }
135
+
136
+ declare const ElementColors: {
137
+ readonly primary: {
138
+ fill: "#3b82f6";
139
+ stroke: "#2563eb";
140
+ hiContrast: "#eff6ff";
141
+ loContrast: "#bfdbfe";
142
+ };
143
+ readonly blue: {
144
+ fill: "#3b82f6";
145
+ stroke: "#2563eb";
146
+ hiContrast: "#eff6ff";
147
+ loContrast: "#bfdbfe";
148
+ };
149
+ readonly secondary: {
150
+ fill: "#0284c7";
151
+ stroke: "#0369a1";
152
+ hiContrast: "#f0f9ff";
153
+ loContrast: "#B6ECF7";
154
+ };
155
+ readonly sky: {
156
+ fill: "#0284c7";
157
+ stroke: "#0369a1";
158
+ hiContrast: "#f0f9ff";
159
+ loContrast: "#B6ECF7";
160
+ };
161
+ readonly muted: {
162
+ fill: "#64748b";
163
+ stroke: "#475569";
164
+ hiContrast: "#f8fafc";
165
+ loContrast: "#cbd5e1";
166
+ };
167
+ readonly slate: {
168
+ fill: "#64748b";
169
+ stroke: "#475569";
170
+ hiContrast: "#f8fafc";
171
+ loContrast: "#cbd5e1";
172
+ };
173
+ readonly gray: {
174
+ readonly fill: "#737373";
175
+ readonly stroke: "#525252";
176
+ readonly hiContrast: "#fafafa";
177
+ readonly loContrast: "#d4d4d4";
178
+ };
179
+ readonly red: {
180
+ readonly fill: "#AC4D39";
181
+ readonly stroke: "#853A2D";
182
+ readonly hiContrast: "#FBD3CB";
183
+ readonly loContrast: "#f5b2a3";
184
+ };
185
+ readonly green: {
186
+ readonly fill: "#428a4f";
187
+ readonly stroke: "#2d5d39";
188
+ readonly hiContrast: "#f8fafc";
189
+ readonly loContrast: "#c2f0c2";
190
+ };
191
+ readonly amber: {
192
+ readonly fill: "#A35829";
193
+ readonly stroke: "#7E451D";
194
+ readonly hiContrast: "#FFE0C2";
195
+ readonly loContrast: "#f9b27c";
196
+ };
197
+ readonly indigo: {
198
+ readonly fill: "#6366f1";
199
+ readonly stroke: "#4f46e5";
200
+ readonly hiContrast: "#eef2ff";
201
+ readonly loContrast: "#c7d2fe";
202
+ };
203
+ };
204
+
205
+ declare const RelationshipColors: {
206
+ amber: {
207
+ lineColor: "#b45309";
208
+ labelBgColor: "#78350f";
209
+ labelColor: "#FFE0C2";
210
+ };
211
+ blue: {
212
+ lineColor: "#3b82f6";
213
+ labelBgColor: "#172554";
214
+ labelColor: "#60a5fa";
215
+ };
216
+ gray: {
217
+ lineColor: "#6E6E6E";
218
+ labelBgColor: "#18191b";
219
+ labelColor: "#C6C6C6";
220
+ };
221
+ green: {
222
+ lineColor: "#15803d";
223
+ labelBgColor: "#052e16";
224
+ labelColor: "#22c55e";
225
+ };
226
+ indigo: {
227
+ lineColor: "#6366f1";
228
+ labelBgColor: "#1e1b4b";
229
+ labelColor: "#818cf8";
230
+ };
231
+ muted: {
232
+ lineColor: "#64748b";
233
+ labelBgColor: "#0f172a";
234
+ labelColor: "#cbd5e1";
235
+ };
236
+ primary: {
237
+ lineColor: "#3b82f6";
238
+ labelBgColor: "#172554";
239
+ labelColor: "#60a5fa";
240
+ };
241
+ red: {
242
+ lineColor: "#AC4D39";
243
+ labelBgColor: "#b91c1c";
244
+ labelColor: "#f5b2a3";
245
+ };
246
+ secondary: {
247
+ lineColor: "#0ea5e9";
248
+ labelBgColor: "#082f49";
249
+ labelColor: "#38bdf8";
250
+ };
251
+ sky: {
252
+ lineColor: "#0ea5e9";
253
+ labelBgColor: "#082f49";
254
+ labelColor: "#38bdf8";
255
+ };
256
+ slate: {
257
+ lineColor: "#64748b";
258
+ labelBgColor: "#0f172a";
259
+ labelColor: "#cbd5e1";
260
+ };
261
+ };
262
+
263
+ declare const defaultTheme: LikeC4Theme;
264
+ declare function computeColorValues(color: HexColorLiteral): ThemeColorValues;
265
+
266
+ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
267
+ declare function invariant(condition: any, message?: string): asserts condition;
268
+ declare function nonexhaustive(value: never): never;
269
+
270
+ export { DefaultMap, ElementColors, HexColorLiteral, LikeC4Theme, LinkedList, Queue, RelationshipColors, Stack, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,138 @@
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 { ar as AbstractRelation, ag as AndOperator, a5 as AnyParsedLikeC4Model, aS as AutoLayoutDirection, aV as BBox, aT as BasicElementView, aU as BasicView, aW as ComputedDeploymentView, aX as ComputedDynamicView, aY as ComputedEdge, aZ as ComputedElementView, a as ComputedLikeC4Model, ay as ComputedNode, C as ComputedView, a_ as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, ao as DefaultArrowType, ap as DefaultLineStyle, aq 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, a$ as DeploymentView, b0 as DeploymentViewRule, b1 as DeploymentViewRulePredicate, b2 as DeploymentViewRuleStyle, b3 as DiagramEdge, az as DiagramNode, b4 as DiagramView, E as DirectRelationExpr, b5 as DynamicView, b6 as DynamicViewIncludeRule, b7 as DynamicViewParallelSteps, b8 as DynamicViewRule, b9 as DynamicViewStep, ba as DynamicViewStepOrParallel, bb as EdgeId, F as ElementExpression, G as ElementKindExpr, bv as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bc as ElementView, K as ElementWhereExpr, ah as EqualOperator, M as ExpandedElementExpr, e as Expr, N as Expression, X as ExpressionV2, bd 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, as as ModelRelation, be as NodeId, R as NonWilcard, ak as NotOperator, al as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, at as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, au as RelationshipArrowType, av as RelationshipKind, aw as RelationshipKindSpecification, ax as RelationshipLineType, bf as ScopedElementView, bg as StepEdgeId, bh as StepEdgeIdLiteral, am as TagEqual, bi as ViewAutoLayout, bj as ViewId, bk as ViewManualLayout, bl as ViewRule, bm as ViewRuleAutoLayout, bn as ViewRuleGlobalPredicateRef, bo as ViewRuleGlobalStyle, bp as ViewRuleGroup, bq as ViewRulePredicate, br as ViewRuleStyle, bs as ViewRuleStyleOrGlobalRef, bt as ViewWithHash, bu as ViewWithNotation, an as WhereOperator, W as WildcardExpr, aA as extractStep, aB as getBBoxCenter, aC as getParallelStepsPrefix, aa as isAndOperator, aD as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aE as isDeploymentView, aF as isDynamicView, aG as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aH as isElementView, q as isElementWhere, r as isExpandedElementExpr, aI 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, aJ as isScopedElementView, aK as isStepEdgeId, ae as isTagEqual, aL as isViewRuleAutoLayout, aM as isViewRuleGlobalPredicateRef, aN as isViewRuleGlobalStyle, aO as isViewRuleGroup, aP as isViewRulePredicate, aQ as isViewRuleStyle, z as isWildcard, aR as stepEdgeId, af as whereOperatorAsPredicate } from './shared/core.CmYMqgha.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.BZ9Msq7w.mjs';
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.Dfzrh1VA.mjs';
4
+ export { 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, C as ComputeViewResult, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.jy6z2iRn.mjs';
6
+ export { c as computeRelationshipsView } from './shared/core.BRuJ3Wzf.mjs';
6
7
  export { OverviewGraph, ViewChange } from './types/index.mjs';
7
8
  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
9
  import 'type-fest';
9
10
 
11
+ /**
12
+ * Mnemonist DefaultMap Typings
13
+ * =============================
14
+ */
15
+ declare class DefaultMap<K, V> implements Iterable<[K, V]> {
16
+
17
+ // Members
18
+ size: number;
19
+
20
+ // Constructor
21
+ constructor(factory: (key: K, index: number) => V);
22
+
23
+ // Methods
24
+ clear(): void;
25
+ set(key: K, value: V): this;
26
+ delete(key: K): boolean;
27
+ has(key: K): boolean;
28
+ get(key: K): V;
29
+ peek(key: K): V | undefined;
30
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
31
+ keys(): IterableIterator<K>;
32
+ values(): IterableIterator<V>;
33
+ entries(): IterableIterator<[K, V]>;
34
+ [Symbol.iterator](): IterableIterator<[K, V]>;
35
+ inspect(): any;
36
+
37
+ // Statics
38
+ static autoIncrement(): number;
39
+ }
40
+
41
+ /**
42
+ * Mnemonist LinkedList Typings
43
+ * =============================
44
+ */
45
+ declare class LinkedList<T> implements Iterable<T> {
46
+
47
+ // Members
48
+ size: number;
49
+
50
+ // Constructor
51
+ constructor();
52
+
53
+ // Methods
54
+ clear(): void;
55
+ first(): T | undefined;
56
+ last(): T | undefined;
57
+ peek(): T | undefined;
58
+ push(value: T): number;
59
+ shift(): T | undefined;
60
+ unshift(value: T): number;
61
+ forEach(callback: (value: T, index: number, list: this) => void, scope?: any): void;
62
+ toArray(): Array<T>;
63
+ values(): IterableIterator<T>;
64
+ entries(): IterableIterator<[number, T]>;
65
+ [Symbol.iterator](): IterableIterator<T>;
66
+ toString(): string;
67
+ toJSON(): Array<T>;
68
+ inspect(): any;
69
+
70
+ // Statics
71
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): LinkedList<I>;
72
+ }
73
+
74
+ /**
75
+ * Mnemonist Queue Typings
76
+ * ========================
77
+ */
78
+ declare class Queue<T> implements Iterable<T> {
79
+
80
+ // Members
81
+ size: number;
82
+
83
+ // Constructor
84
+ constructor();
85
+
86
+ // Methods
87
+ clear(): void;
88
+ enqueue(item: T): number;
89
+ dequeue(): T | undefined;
90
+ peek(): T | undefined;
91
+ forEach(callback: (item: T, index: number, queue: this) => void, scope?: any): void;
92
+ toArray(): Array<T>;
93
+ values(): IterableIterator<T>;
94
+ entries(): IterableIterator<[number, T]>;
95
+ [Symbol.iterator](): IterableIterator<T>;
96
+ toString(): string;
97
+ toJSON(): Array<T>;
98
+ inspect(): any;
99
+
100
+ // Statics
101
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Queue<I>;
102
+ static of<I>(...items: Array<I>): Queue<I>;
103
+ }
104
+
105
+ /**
106
+ * Mnemonist Stack Typings
107
+ * ========================
108
+ */
109
+ declare class Stack<T> implements Iterable<T> {
110
+
111
+ // Members
112
+ size: number;
113
+
114
+ // Constructor
115
+ constructor();
116
+
117
+ // Methods
118
+ clear(): void;
119
+ push(item: T): number;
120
+ pop(): T | undefined;
121
+ peek(): T | undefined;
122
+ forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void;
123
+ toArray(): Array<T>;
124
+ values(): IterableIterator<T>;
125
+ entries(): IterableIterator<[number, T]>;
126
+ [Symbol.iterator](): IterableIterator<T>;
127
+ toString(): string;
128
+ toJSON(): Array<T>;
129
+ inspect(): any;
130
+
131
+ // Statics
132
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Stack<I>;
133
+ static of<I>(...items: Array<I>): Stack<I>;
134
+ }
135
+
10
136
  declare const ElementColors: {
11
137
  readonly primary: {
12
138
  fill: "#3b82f6";
@@ -141,4 +267,4 @@ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
141
267
  declare function invariant(condition: any, message?: string): asserts condition;
142
268
  declare function nonexhaustive(value: never): never;
143
269
 
144
- export { ElementColors, HexColorLiteral, LikeC4Theme, RelationshipColors, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
270
+ export { DefaultMap, ElementColors, HexColorLiteral, LikeC4Theme, LinkedList, Queue, RelationshipColors, Stack, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,138 @@
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 { ar as AbstractRelation, ag as AndOperator, a5 as AnyParsedLikeC4Model, aS as AutoLayoutDirection, aV as BBox, aT as BasicElementView, aU as BasicView, aW as ComputedDeploymentView, aX as ComputedDynamicView, aY as ComputedEdge, aZ as ComputedElementView, a as ComputedLikeC4Model, ay as ComputedNode, C as ComputedView, a_ as CustomColorDefinitions, A as CustomElementExpr, B as CustomRelationExpr, ao as DefaultArrowType, ap as DefaultLineStyle, aq 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, a$ as DeploymentView, b0 as DeploymentViewRule, b1 as DeploymentViewRulePredicate, b2 as DeploymentViewRuleStyle, b3 as DiagramEdge, az as DiagramNode, b4 as DiagramView, E as DirectRelationExpr, b5 as DynamicView, b6 as DynamicViewIncludeRule, b7 as DynamicViewParallelSteps, b8 as DynamicViewRule, b9 as DynamicViewStep, ba as DynamicViewStepOrParallel, bb as EdgeId, F as ElementExpression, G as ElementKindExpr, bv as ElementNotation, H as ElementPredicateExpression, I as ElementRefExpr, J as ElementTagExpr, bc as ElementView, K as ElementWhereExpr, ah as EqualOperator, M as ExpandedElementExpr, e as Expr, N as Expression, X as ExpressionV2, bd 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, as as ModelRelation, be as NodeId, R as NonWilcard, ak as NotOperator, al as OrOperator, S as OutgoingExpr, a9 as ParsedLikeC4Model, P as PredicateSelector, _ as RelationExpr, T as RelationExpression, at as RelationId, U as RelationPredicateExpression, V as RelationWhereExpr, au as RelationshipArrowType, av as RelationshipKind, aw as RelationshipKindSpecification, ax as RelationshipLineType, bf as ScopedElementView, bg as StepEdgeId, bh as StepEdgeIdLiteral, am as TagEqual, bi as ViewAutoLayout, bj as ViewId, bk as ViewManualLayout, bl as ViewRule, bm as ViewRuleAutoLayout, bn as ViewRuleGlobalPredicateRef, bo as ViewRuleGlobalStyle, bp as ViewRuleGroup, bq as ViewRulePredicate, br as ViewRuleStyle, bs as ViewRuleStyleOrGlobalRef, bt as ViewWithHash, bu as ViewWithNotation, an as WhereOperator, W as WildcardExpr, aA as extractStep, aB as getBBoxCenter, aC as getParallelStepsPrefix, aa as isAndOperator, aD as isAutoLayoutDirection, j as isCustomElement, k as isCustomRelationExpr, aE as isDeploymentView, aF as isDynamicView, aG as isDynamicViewParallelSteps, l as isElement, m as isElementKindExpr, n as isElementPredicateExpr, o as isElementRef, p as isElementTagExpr, aH as isElementView, q as isElementWhere, r as isExpandedElementExpr, aI 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, aJ as isScopedElementView, aK as isStepEdgeId, ae as isTagEqual, aL as isViewRuleAutoLayout, aM as isViewRuleGlobalPredicateRef, aN as isViewRuleGlobalStyle, aO as isViewRuleGroup, aP as isViewRulePredicate, aQ as isViewRuleStyle, z as isWildcard, aR as stepEdgeId, af as whereOperatorAsPredicate } from './shared/core.C05RDLhi.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.BIfgabEw.js';
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.D_Gc58Gt.js';
4
+ export { 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, C as ComputeViewResult, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.ZWiGANIJ.js';
6
+ export { c as computeRelationshipsView } from './shared/core.Damrzla-.js';
6
7
  export { OverviewGraph, ViewChange } from './types/index.js';
7
8
  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
9
  import 'type-fest';
9
10
 
11
+ /**
12
+ * Mnemonist DefaultMap Typings
13
+ * =============================
14
+ */
15
+ declare class DefaultMap<K, V> implements Iterable<[K, V]> {
16
+
17
+ // Members
18
+ size: number;
19
+
20
+ // Constructor
21
+ constructor(factory: (key: K, index: number) => V);
22
+
23
+ // Methods
24
+ clear(): void;
25
+ set(key: K, value: V): this;
26
+ delete(key: K): boolean;
27
+ has(key: K): boolean;
28
+ get(key: K): V;
29
+ peek(key: K): V | undefined;
30
+ forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
31
+ keys(): IterableIterator<K>;
32
+ values(): IterableIterator<V>;
33
+ entries(): IterableIterator<[K, V]>;
34
+ [Symbol.iterator](): IterableIterator<[K, V]>;
35
+ inspect(): any;
36
+
37
+ // Statics
38
+ static autoIncrement(): number;
39
+ }
40
+
41
+ /**
42
+ * Mnemonist LinkedList Typings
43
+ * =============================
44
+ */
45
+ declare class LinkedList<T> implements Iterable<T> {
46
+
47
+ // Members
48
+ size: number;
49
+
50
+ // Constructor
51
+ constructor();
52
+
53
+ // Methods
54
+ clear(): void;
55
+ first(): T | undefined;
56
+ last(): T | undefined;
57
+ peek(): T | undefined;
58
+ push(value: T): number;
59
+ shift(): T | undefined;
60
+ unshift(value: T): number;
61
+ forEach(callback: (value: T, index: number, list: this) => void, scope?: any): void;
62
+ toArray(): Array<T>;
63
+ values(): IterableIterator<T>;
64
+ entries(): IterableIterator<[number, T]>;
65
+ [Symbol.iterator](): IterableIterator<T>;
66
+ toString(): string;
67
+ toJSON(): Array<T>;
68
+ inspect(): any;
69
+
70
+ // Statics
71
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): LinkedList<I>;
72
+ }
73
+
74
+ /**
75
+ * Mnemonist Queue Typings
76
+ * ========================
77
+ */
78
+ declare class Queue<T> implements Iterable<T> {
79
+
80
+ // Members
81
+ size: number;
82
+
83
+ // Constructor
84
+ constructor();
85
+
86
+ // Methods
87
+ clear(): void;
88
+ enqueue(item: T): number;
89
+ dequeue(): T | undefined;
90
+ peek(): T | undefined;
91
+ forEach(callback: (item: T, index: number, queue: this) => void, scope?: any): void;
92
+ toArray(): Array<T>;
93
+ values(): IterableIterator<T>;
94
+ entries(): IterableIterator<[number, T]>;
95
+ [Symbol.iterator](): IterableIterator<T>;
96
+ toString(): string;
97
+ toJSON(): Array<T>;
98
+ inspect(): any;
99
+
100
+ // Statics
101
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Queue<I>;
102
+ static of<I>(...items: Array<I>): Queue<I>;
103
+ }
104
+
105
+ /**
106
+ * Mnemonist Stack Typings
107
+ * ========================
108
+ */
109
+ declare class Stack<T> implements Iterable<T> {
110
+
111
+ // Members
112
+ size: number;
113
+
114
+ // Constructor
115
+ constructor();
116
+
117
+ // Methods
118
+ clear(): void;
119
+ push(item: T): number;
120
+ pop(): T | undefined;
121
+ peek(): T | undefined;
122
+ forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void;
123
+ toArray(): Array<T>;
124
+ values(): IterableIterator<T>;
125
+ entries(): IterableIterator<[number, T]>;
126
+ [Symbol.iterator](): IterableIterator<T>;
127
+ toString(): string;
128
+ toJSON(): Array<T>;
129
+ inspect(): any;
130
+
131
+ // Statics
132
+ static from<I>(iterable: Iterable<I> | {[key: string]: I}): Stack<I>;
133
+ static of<I>(...items: Array<I>): Stack<I>;
134
+ }
135
+
10
136
  declare const ElementColors: {
11
137
  readonly primary: {
12
138
  fill: "#3b82f6";
@@ -141,4 +267,4 @@ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
141
267
  declare function invariant(condition: any, message?: string): asserts condition;
142
268
  declare function nonexhaustive(value: never): never;
143
269
 
144
- export { ElementColors, HexColorLiteral, LikeC4Theme, RelationshipColors, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
270
+ export { DefaultMap, ElementColors, HexColorLiteral, LikeC4Theme, LinkedList, Queue, RelationshipColors, Stack, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };