@likec4/core 1.20.1 → 1.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.cjs +6 -6
- package/dist/builder/index.d.cts +3 -3
- package/dist/builder/index.d.mts +3 -3
- package/dist/builder/index.d.ts +3 -3
- package/dist/builder/index.mjs +6 -6
- package/dist/compute-view/index.cjs +5 -5
- package/dist/compute-view/index.d.cts +4 -4
- package/dist/compute-view/index.d.mts +4 -4
- package/dist/compute-view/index.d.ts +4 -4
- package/dist/compute-view/index.mjs +6 -6
- package/dist/index.cjs +71 -573
- package/dist/index.d.cts +9 -133
- package/dist/index.d.mts +9 -133
- package/dist/index.d.ts +9 -133
- package/dist/index.mjs +8 -512
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +5 -5
- package/dist/model/index.d.mts +5 -5
- package/dist/model/index.d.ts +5 -5
- package/dist/model/index.mjs +1 -1
- package/dist/shared/{core.DunIMHRf.mjs → core.0PxLtLpP.mjs} +1 -1
- package/dist/shared/{core.BvdNMbcA.d.cts → core.88YY6vtF.d.mts} +2 -2
- package/dist/shared/{core.CqCTxzMY.mjs → core.BG1hfxpq.mjs} +29 -620
- package/dist/shared/{core.ByNgh-mC.d.cts → core.BIZD3l1g.d.cts} +1 -1
- package/dist/shared/{core.D74xkKkG.d.ts → core.BJfn72tj.d.cts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.cts → core.BJfn72tj.d.mts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.mts → core.BJfn72tj.d.ts} +5 -0
- package/dist/shared/{core.M-JWF7SS.mjs → core.Bezy7K65.mjs} +1 -1
- package/dist/shared/{core.D_Gc58Gt.d.ts → core.Bs71hdR4.d.ts} +2 -1
- package/dist/shared/{core.D6-fWbM3.d.ts → core.BtISRjMA.d.ts} +1 -1
- package/dist/shared/{core.B72vUaNB.d.cts → core.C0ygs98j.d.cts} +2 -1
- package/dist/shared/core.CCyhaU-4.mjs +14819 -0
- package/dist/shared/{core.DsoCu540.cjs → core.CKYxnFEl.cjs} +1 -1
- package/dist/shared/{core.Damrzla-.d.ts → core.CNUzoKM7.d.ts} +2 -2
- package/dist/shared/{core.sLaWHBjR.d.mts → core.CajOK_t3.d.mts} +1 -1
- package/dist/shared/{core.BdbFkE_p.d.cts → core.Cmfo_N4F.d.mts} +3 -3
- package/dist/shared/{core.jy6z2iRn.d.mts → core.CwZmAghJ.d.cts} +3 -3
- package/dist/shared/{core.ZWiGANIJ.d.ts → core.D4wZW7zR.d.ts} +3 -3
- package/dist/shared/{core.BGus30EM.cjs → core.DRfrKNT6.cjs} +48 -643
- package/dist/shared/{core.gv1bMwCC.cjs → core.Db_OTRdC.cjs} +1 -1
- package/dist/shared/{core.Dfzrh1VA.d.mts → core.DjMYkPMQ.d.mts} +2 -1
- package/dist/shared/{core.m3rCQAv6.mjs → core.El-gigOM.mjs} +1 -1
- package/dist/shared/core.FACQZmma.cjs +14874 -0
- package/dist/shared/{core.BRuJ3Wzf.d.mts → core.Lh2RFJf1.d.cts} +2 -2
- package/dist/shared/{core.B2QYWlYe.cjs → core.uxHtIZaH.cjs} +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +6 -2
- package/dist/utils/index.d.cts +129 -145
- package/dist/utils/index.d.mts +129 -145
- package/dist/utils/index.d.ts +129 -145
- package/dist/utils/index.mjs +3 -3
- package/package.json +7 -6
- package/src/compute-view/deployment-view/clean-connections.ts +1 -1
- package/src/compute-view/deployment-view/stages/stage-final.ts +1 -1
- package/src/compute-view/element-view/__test__/fixture.ts +2 -0
- package/src/compute-view/element-view/compute.ts +1 -1
- package/src/compute-view/element-view/memory/memory.ts +3 -3
- package/src/compute-view/memory/ops.ts +1 -1
- package/src/compute-view/relationships-view/layout.ts +1 -1
- package/src/compute-view/relationships-view/utils.ts +1 -1
- package/src/compute-view/utils/applyCustomElementProperties.ts +9 -6
- package/src/compute-view/utils/applyViewRuleStyles.ts +7 -4
- package/src/index.ts +0 -8
- package/src/model/DeploymentModel.ts +1 -1
- package/src/model/LikeC4Model.ts +3 -3
- package/src/types/element.ts +7 -2
- package/src/types/expression.ts +1 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/set.ts +5 -2
- package/dist/shared/core.BxvDITEI.mjs +0 -859
- package/dist/shared/core.C9DCnJh8.cjs +0 -908
- package/src/builder/Builder-style1.test-d.ts +0 -190
- package/src/builder/Builder-style2.test-d.ts +0 -175
- package/src/compute-view/utils/uniqueTags.test.ts +0 -42
- package/src/model/LikeC4Model.test-d.ts +0 -152
package/dist/index.d.cts
CHANGED
|
@@ -1,138 +1,14 @@
|
|
|
1
|
-
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.
|
|
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.
|
|
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.
|
|
4
|
-
export { commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique,
|
|
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.
|
|
6
|
-
export { c as computeRelationshipsView } from './shared/core.
|
|
1
|
+
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.BJfn72tj.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.BJfn72tj.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.C0ygs98j.cjs';
|
|
4
|
+
export { DefaultMap, LinkedList, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, 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.CwZmAghJ.cjs';
|
|
6
|
+
export { c as computeRelationshipsView } from './shared/core.Lh2RFJf1.cjs';
|
|
7
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.
|
|
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.BIZD3l1g.cjs';
|
|
9
|
+
export { default as objectHash } from '/home/runner/work/likec4/likec4/node_modules/@types/object-hash/index.d.ts';
|
|
9
10
|
import 'type-fest';
|
|
10
11
|
|
|
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
12
|
declare const ElementColors: {
|
|
137
13
|
readonly primary: {
|
|
138
14
|
fill: "#3b82f6";
|
|
@@ -267,4 +143,4 @@ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
|
|
|
267
143
|
declare function invariant(condition: any, message?: string): asserts condition;
|
|
268
144
|
declare function nonexhaustive(value: never): never;
|
|
269
145
|
|
|
270
|
-
export {
|
|
146
|
+
export { ElementColors, HexColorLiteral, LikeC4Theme, RelationshipColors, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,138 +1,14 @@
|
|
|
1
|
-
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.
|
|
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.
|
|
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.
|
|
4
|
-
export { commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique,
|
|
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.
|
|
6
|
-
export { c as computeRelationshipsView } from './shared/core.
|
|
1
|
+
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.BJfn72tj.mjs';
|
|
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.BJfn72tj.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.DjMYkPMQ.mjs';
|
|
4
|
+
export { DefaultMap, LinkedList, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, 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.Cmfo_N4F.mjs';
|
|
6
|
+
export { c as computeRelationshipsView } from './shared/core.88YY6vtF.mjs';
|
|
7
7
|
export { OverviewGraph, ViewChange } from './types/index.mjs';
|
|
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.
|
|
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.CajOK_t3.mjs';
|
|
9
|
+
export { default as objectHash } from '/home/runner/work/likec4/likec4/node_modules/@types/object-hash/index.d.ts';
|
|
9
10
|
import 'type-fest';
|
|
10
11
|
|
|
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
12
|
declare const ElementColors: {
|
|
137
13
|
readonly primary: {
|
|
138
14
|
fill: "#3b82f6";
|
|
@@ -267,4 +143,4 @@ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
|
|
|
267
143
|
declare function invariant(condition: any, message?: string): asserts condition;
|
|
268
144
|
declare function nonexhaustive(value: never): never;
|
|
269
145
|
|
|
270
|
-
export {
|
|
146
|
+
export { ElementColors, HexColorLiteral, LikeC4Theme, RelationshipColors, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,138 +1,14 @@
|
|
|
1
|
-
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.
|
|
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.
|
|
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.
|
|
4
|
-
export { commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique,
|
|
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.
|
|
6
|
-
export { c as computeRelationshipsView } from './shared/core.
|
|
1
|
+
import { L as LikeC4Theme, H as HexColorLiteral, T as ThemeColorValues } from './shared/core.BJfn72tj.js';
|
|
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.BJfn72tj.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.Bs71hdR4.js';
|
|
4
|
+
export { DefaultMap, LinkedList, Queue, Stack, commonHead, compareNatural, compareRelations, delay, difference, equalsSet, getOrCreate, hasAtLeast, ifilter, ifind, iflat, imap, intersection, ireduce, isIterable, isNonEmptyArray, isString, isome, iunique, 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.D4wZW7zR.js';
|
|
6
|
+
export { c as computeRelationshipsView } from './shared/core.CNUzoKM7.js';
|
|
7
7
|
export { OverviewGraph, ViewChange } from './types/index.js';
|
|
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.
|
|
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.BtISRjMA.js';
|
|
9
|
+
export { default as objectHash } from '/home/runner/work/likec4/likec4/node_modules/@types/object-hash/index.d.ts';
|
|
9
10
|
import 'type-fest';
|
|
10
11
|
|
|
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
12
|
declare const ElementColors: {
|
|
137
13
|
readonly primary: {
|
|
138
14
|
fill: "#3b82f6";
|
|
@@ -267,4 +143,4 @@ declare function nonNullable<T>(value: T, message?: string): NonNullable<T>;
|
|
|
267
143
|
declare function invariant(condition: any, message?: string): asserts condition;
|
|
268
144
|
declare function nonexhaustive(value: never): never;
|
|
269
145
|
|
|
270
|
-
export {
|
|
146
|
+
export { ElementColors, HexColorLiteral, LikeC4Theme, RelationshipColors, ThemeColorValues, computeColorValues, defaultTheme, invariant, nonNullable, nonexhaustive };
|