@likec4/core 1.46.3 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.d.mts +9 -7
- package/dist/builder/index.mjs +75 -31
- package/dist/compute-view/index.d.mts +45 -11
- package/dist/compute-view/index.mjs +149 -12
- package/dist/compute-view/relationships-view/index.d.mts +7 -7
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +4 -4
- package/dist/model/connection/deployment/index.d.mts +9 -9
- package/dist/model/connection/deployment/index.mjs +1 -1
- package/dist/model/connection/index.d.mts +10 -10
- package/dist/model/connection/index.mjs +1 -1
- package/dist/model/connection/model/index.d.mts +9 -9
- package/dist/model/index.d.mts +11 -11
- package/dist/model/index.mjs +2 -2
- package/dist/shared/{core.BYdtmqY5.mjs → core.BNN-3vPH.mjs} +1 -1
- package/dist/shared/{core.CRhT4Iio.mjs → core.BP_QHEXs.mjs} +1 -1
- package/dist/shared/{core.CBLX4mT8.mjs → core.Bdy3hhTc.mjs} +108 -137
- package/dist/shared/{core.DK3pdsTf.d.mts → core.BfCKSW-g.d.mts} +11 -8
- package/dist/shared/{core.or6-EHsb.d.mts → core.CAgYpDtM.d.mts} +2 -2
- package/dist/shared/{core.DEK-BO3_.mjs → core.CHf8VEa3.mjs} +1 -1
- package/dist/shared/{core.CDdf8izT.d.mts → core.C_3y3eqV.d.mts} +1 -1
- package/dist/shared/{core.BkSYCfRg.d.mts → core.D00YbOhQ.d.mts} +1 -1
- package/dist/shared/{core.9U0HL3oG.d.mts → core.DC5IAaDT.d.mts} +3 -3
- package/dist/shared/{core.I8sCl3WM.d.mts → core.DE9qzhn8.d.mts} +3 -3
- package/dist/shared/{core.BspBF3SJ.mjs → core.DGcIbsj4.mjs} +3 -1
- package/dist/shared/{core.DezoCAzf.d.mts → core.DKhRkHRN.d.mts} +3 -3
- package/dist/shared/{core.DVfPJPJj.mjs → core.DU5SRqNF.mjs} +13 -4
- package/dist/shared/{core.xgoPk2RG.mjs → core.Dh119QSP.mjs} +18 -12
- package/dist/shared/{core.DSalPD6v.mjs → core.DjcWextK.mjs} +26 -7
- package/dist/shared/{core.DE-g9oFF.d.mts → core.Dojz4bvg.d.mts} +6 -6
- package/dist/shared/{core.BqtAzeAh.d.mts → core.OtRNdMxy.d.mts} +1 -1
- package/dist/shared/{core.xeuDd__E.mjs → core.btEq3i3f.mjs} +1 -1
- package/dist/shared/{core.5gPDaaG5.d.mts → core.osFs8tU7.d.mts} +8 -8
- package/dist/shared/{core.e5GJ61_a.d.mts → core.tpvDGvdC.d.mts} +3 -3
- package/dist/styles/index.d.mts +6 -6
- package/dist/styles/index.mjs +1 -1
- package/dist/types/_aux.d.mts +2 -2
- package/dist/types/expression-model.d.mts +3 -3
- package/dist/types/expression.d.mts +3 -3
- package/dist/types/fqnRef.d.mts +2 -2
- package/dist/types/index.d.mts +9 -9
- package/dist/types/index.mjs +2 -2
- package/dist/types/scalar.d.mts +1 -1
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +3 -3
- package/package.json +5 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SetRequired, IsAny } from 'type-fest';
|
|
2
|
-
import { L as LikeC4Styles } from './core.
|
|
3
|
-
import { A as Any, R as RelationKind, r as Tags, H as Metadata, C as MetadataKey, I as LooseTag, F as Fqn, a as ElementId, E as ElementKind, y as DeploymentKind, c as AnyLayouted, J as RelationId$1, S as StrictViewId, n as _type, m as _stage, K as LooseElementId, O as LooseDeploymentId, x as DeploymentFqn, t as toComputed, b as AnyComputed, Q as Stage, D as DeploymentId, V as ViewId, T as Tag, d as AnyParsed,
|
|
4
|
-
import { d as RelationId, P as ProjectId, a as IconUrl, j as NodeId, G as GroupElementKind, k as EdgeId, l as StepEdgeId, V as ViewId$1 } from './core.
|
|
2
|
+
import { L as LikeC4Styles } from './core.CAgYpDtM.mjs';
|
|
3
|
+
import { A as Any, R as RelationKind, r as Tags, H as Metadata, C as MetadataKey, I as LooseTag, F as Fqn, a as ElementId, E as ElementKind, P as ProjectId$1, y as DeploymentKind, c as AnyLayouted, J as RelationId$1, S as StrictViewId, n as _type, m as _stage, K as LooseElementId, O as LooseDeploymentId, x as DeploymentFqn, t as toComputed, b as AnyComputed, Q as Stage, D as DeploymentId, V as ViewId, T as Tag, d as AnyParsed, X as LooseViewId, U as Unknown, e as Aux, i as UnknownParsed, g as UnknownComputed, h as UnknownLayouted } from './core.D00YbOhQ.mjs';
|
|
4
|
+
import { d as RelationId, P as ProjectId, a as IconUrl, j as NodeId, G as GroupElementKind, k as EdgeId, l as StepEdgeId, V as ViewId$1 } from './core.C_3y3eqV.mjs';
|
|
5
5
|
import { D as DefaultMap } from './core.CywrQs86.mjs';
|
|
6
|
-
import { b as RichTextOrEmpty, L as LayoutedView, V as ViewManualLayoutSnapshot, r as ComputedView, v as ViewWithType, P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, c as LayoutedLikeC4ModelData, e as DeployedInstance, j as DeploymentRelationship, f as DeploymentElement, D as DeploymentNode, m as LikeC4ModelDump, o as AuxFromDump } from './core.
|
|
6
|
+
import { b as RichTextOrEmpty, L as LayoutedView, V as ViewManualLayoutSnapshot, r as ComputedView, v as ViewWithType, P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, c as LayoutedLikeC4ModelData, e as DeployedInstance, j as DeploymentRelationship, f as DeploymentElement, D as DeploymentNode, m as LikeC4ModelDump, o as AuxFromDump } from './core.osFs8tU7.mjs';
|
|
7
7
|
import { c as IteratorLike, L as Link, N as NonEmptyArray } from './core.DB0Ue5Wx.mjs';
|
|
8
|
-
import { C as Color, f as RelationshipLineType, g as RelationshipArrowType, h as ElementShape, W as WhereOperator } from './core.
|
|
9
|
-
import { R as Relationship, f as Element, E as ElementStyle, C as ComputedNodeStyle, a6 as DynamicViewDisplayVariant, n as LikeC4Project, S as Specification, M as ModelGlobals } from './core.
|
|
8
|
+
import { C as Color, f as RelationshipLineType, g as RelationshipArrowType, h as ElementShape, W as WhereOperator } from './core.DC5IAaDT.mjs';
|
|
9
|
+
import { R as Relationship, f as Element, E as ElementStyle, C as ComputedNodeStyle, a6 as DynamicViewDisplayVariant, n as LikeC4Project, S as Specification, M as ModelGlobals } from './core.Dojz4bvg.mjs';
|
|
10
10
|
import { B as BBox } from './core.BPGOjone.mjs';
|
|
11
11
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
12
12
|
|
|
@@ -99,8 +99,8 @@ declare class ElementModel<A extends Any = Any> implements WithTags<A>, WithMeta
|
|
|
99
99
|
readonly _literalId: ElementId<A>;
|
|
100
100
|
readonly hierarchyLevel: number;
|
|
101
101
|
readonly imported: null | {
|
|
102
|
-
from: ProjectId;
|
|
103
|
-
fqn: Fqn<
|
|
102
|
+
readonly from: ProjectId;
|
|
103
|
+
readonly fqn: Fqn<Any>;
|
|
104
104
|
};
|
|
105
105
|
constructor($model: LikeC4Model<A>, $element: Element<A>);
|
|
106
106
|
get name(): string;
|
|
@@ -135,6 +135,7 @@ declare class ElementModel<A extends Any = Any> implements WithTags<A>, WithMeta
|
|
|
135
135
|
get defaultView(): LikeC4ViewModel.ScopedElementView<A> | null;
|
|
136
136
|
get isRoot(): boolean;
|
|
137
137
|
get style(): SetRequired<ElementStyle, 'shape' | 'color' | 'size'>;
|
|
138
|
+
get projectId(): ProjectId$1<A>;
|
|
138
139
|
isAncestorOf(another: ElementModel<A>): boolean;
|
|
139
140
|
isDescendantOf(another: ElementModel<A>): boolean;
|
|
140
141
|
/**
|
|
@@ -486,6 +487,7 @@ declare class LikeC4ViewModel<A extends Any = Any, V extends $View<A> = $View<A>
|
|
|
486
487
|
* If view has manual layout, returns it with manual layout applied
|
|
487
488
|
*/
|
|
488
489
|
get $manual(): V | null;
|
|
490
|
+
get projectId(): ProjectId$1<A>;
|
|
489
491
|
roots(): NodesIterator<A, V>;
|
|
490
492
|
/**
|
|
491
493
|
* Iterate over all nodes that have children.
|
|
@@ -629,6 +631,7 @@ declare class LikeC4DeploymentModel<A extends Any = Any> {
|
|
|
629
631
|
readonly $deployments: $ModelData<A>['deployments'];
|
|
630
632
|
constructor($model: LikeC4Model<A>);
|
|
631
633
|
get $styles(): LikeC4Styles;
|
|
634
|
+
get projectId(): ProjectId$1<A>;
|
|
632
635
|
element(el: DeploymentOrFqn<A>): DeploymentElementModel<A>;
|
|
633
636
|
findElement(el: LooseDeploymentId<A>): DeploymentElementModel<A> | null;
|
|
634
637
|
node(el: DeploymentOrFqn<A>): DeploymentNodeModel<A>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LikeC4StylesConfig, a as LikeC4Theme, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues, T as ThemeColor, c as ThemeColorValues, d as TextSize, S as SpacingSize, e as ShapeSize } from './core.
|
|
1
|
+
import { L as LikeC4StylesConfig, a as LikeC4Theme, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues, T as ThemeColor, c as ThemeColorValues, d as TextSize, S as SpacingSize, e as ShapeSize } from './core.DC5IAaDT.mjs';
|
|
2
2
|
import { LiteralUnion } from 'type-fest';
|
|
3
|
-
import { L as LikeC4ProjectStylesConfig, C as ComputedNodeStyle } from './core.
|
|
3
|
+
import { L as LikeC4ProjectStylesConfig, C as ComputedNodeStyle } from './core.Dojz4bvg.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Styles of a LikeC4 project
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as t$1 } from './core.BsSXS-_R.mjs';
|
|
2
2
|
import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
|
|
3
|
-
import { r as requireForeach, b as requireIterator, a as markdownToText, m as markdownToHtml } from './core.
|
|
3
|
+
import { r as requireForeach, b as requireIterator, a as markdownToText, m as markdownToHtml } from './core.Bdy3hhTc.mjs';
|
|
4
4
|
import { m as memoizeProp } from './core.CLSZtnFh.mjs';
|
|
5
5
|
import { n as nonexhaustive } from './core.D4npX2q8.mjs';
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ type MarkdownOrString = {
|
|
|
44
44
|
*/
|
|
45
45
|
declare function flattenMarkdownOrString(value: MarkdownOrString | string): string;
|
|
46
46
|
declare function flattenMarkdownOrString(value: MarkdownOrString | string | undefined | null): string | null;
|
|
47
|
-
type BuiltInIcon = 'none' | `${'aws' | 'azure' | 'gcp' | 'tech'}:${string}`;
|
|
47
|
+
type BuiltInIcon = 'none' | `${'aws' | 'azure' | 'gcp' | 'tech' | 'bootstrap'}:${string}`;
|
|
48
48
|
type Icon = Tagged<string, 'Icon'> | BuiltInIcon;
|
|
49
49
|
declare const NoneIcon: Icon;
|
|
50
50
|
type IconUrl = Icon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IfNever, IsNever, IsLiteral } from 'type-fest';
|
|
2
2
|
import { C as Coalesce, L as Link } from './core.DB0Ue5Wx.mjs';
|
|
3
|
-
import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, j as NodeId$1, k as EdgeId$1, d as RelationId$1, P as ProjectId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.
|
|
3
|
+
import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, j as NodeId$1, k as EdgeId$1, d as RelationId$1, P as ProjectId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.C_3y3eqV.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Determines the stage of the model:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TupleToUnion, Tagged } from 'type-fest';
|
|
2
|
-
import { A as Any, T as Tag, q as AllKinds, r as Tags, S as StrictViewId, E as ElementKind } from './core.
|
|
2
|
+
import { A as Any, T as Tag, q as AllKinds, r as Tags, S as StrictViewId, E as ElementKind } from './core.D00YbOhQ.mjs';
|
|
3
3
|
import { N as NonEmptyArray, E as ExclusiveUnion } from './core.DB0Ue5Wx.mjs';
|
|
4
4
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
5
|
-
import { M as MarkdownOrString, I as Icon } from './core.
|
|
5
|
+
import { M as MarkdownOrString, I as Icon } from './core.C_3y3eqV.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* For padding, margin, etc.
|
|
@@ -14,7 +14,7 @@ type ShapeSize = Size;
|
|
|
14
14
|
type SpacingSize = Size;
|
|
15
15
|
declare const BorderStyles: readonly ["solid", "dashed", "dotted", "none"];
|
|
16
16
|
type BorderStyle = TupleToUnion<typeof BorderStyles>;
|
|
17
|
-
declare const ElementShapes: readonly ["rectangle", "person", "browser", "mobile", "cylinder", "storage", "queue"];
|
|
17
|
+
declare const ElementShapes: readonly ["rectangle", "person", "browser", "mobile", "cylinder", "storage", "queue", "bucket", "document"];
|
|
18
18
|
type ElementShape = TupleToUnion<typeof ElementShapes>;
|
|
19
19
|
type HexColor = `#${string}`;
|
|
20
20
|
type ColorLiteral = HexColor | `rgb(${number},${number},${number})` | `rgba(${number},${number},${number},${number})`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Connection, c as customInspectSymbol } from './core.
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel } from './core.
|
|
3
|
-
import { A as Any, U as Unknown, z as EdgeId } from './core.
|
|
1
|
+
import { C as Connection, c as customInspectSymbol } from './core.DKhRkHRN.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel } from './core.BfCKSW-g.mjs';
|
|
3
|
+
import { A as Any, U as Unknown, z as EdgeId } from './core.D00YbOhQ.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Connection refers to any relationships between two elements,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as ElementModel, e as DeploymentElementModel } from './core.
|
|
2
|
-
import { A as Any } from './core.
|
|
3
|
-
import { F as Fqn } from './core.
|
|
1
|
+
import { E as ElementModel, e as DeploymentElementModel } from './core.BfCKSW-g.mjs';
|
|
2
|
+
import { A as Any } from './core.D00YbOhQ.mjs';
|
|
3
|
+
import { F as Fqn } from './core.C_3y3eqV.mjs';
|
|
4
4
|
|
|
5
5
|
interface Connection<Elem = ElementModel<Any> | DeploymentElementModel<Any>, Id = string> {
|
|
6
6
|
readonly id: Id;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as t$3, e as e$3, a as DeploymentNodeModel, b as DeployedInstanceModel, c as DeploymentRelationModel, N as NestedElementOfDeployedInstanceModel } from './core.
|
|
1
|
+
import { t as t$3, e as e$3, a as DeploymentNodeModel, b as DeployedInstanceModel, c as DeploymentRelationModel, N as NestedElementOfDeployedInstanceModel } from './core.BP_QHEXs.mjs';
|
|
2
2
|
import { e as e$2 } from './core.BKlholso.mjs';
|
|
3
3
|
import { n as n$1 } from './core.BhNcrwzK.mjs';
|
|
4
4
|
import { c as splitGlobalFqn, h as extractStep, g as isStepEdgeId, i as isGroupElementKind, b as isGlobalFqn, a as GlobalFqn } from './core.D0WZutNd.mjs';
|
|
5
5
|
import { m as hierarchyLevel, n as nameFromFqn, i as isAncestor, g as commonAncestor, s as sortNaturalByFqn, f as sortParentsFirst, p as parentFqn, a as ancestorsFqn } from './core.CdNCAwq7.mjs';
|
|
6
6
|
import { m as memoizeProp } from './core.CLSZtnFh.mjs';
|
|
7
|
-
import { R as RichText, e as exact } from './core.
|
|
7
|
+
import { R as RichText, e as exact } from './core.CHf8VEa3.mjs';
|
|
8
8
|
import { preferSummary, preferDescription } from '../types/_aux.mjs';
|
|
9
9
|
import { i as ihead } from './core.uFk_o9X6.mjs';
|
|
10
10
|
import { t as t$6, b as compareNaturalHierarchically, c as compareNatural } from './core.3ZhnKAlZ.mjs';
|
|
@@ -12,8 +12,8 @@ import { t as t$2, a as t$4 } from './core.BsSXS-_R.mjs';
|
|
|
12
12
|
import { t as t$5, e as e$4 } from './core.Coi_LOUZ.mjs';
|
|
13
13
|
import { t as t$8 } from './core.CbT8JVYL.mjs';
|
|
14
14
|
import { t as t$7 } from './core.BkVA6gjl.mjs';
|
|
15
|
-
import { c as calcDriftsFromSnapshot, a as applyManualLayout, h as t$9 } from './core.
|
|
16
|
-
import { L as LikeC4Styles } from './core.
|
|
15
|
+
import { c as calcDriftsFromSnapshot, a as applyManualLayout, h as t$9 } from './core.DjcWextK.mjs';
|
|
16
|
+
import { L as LikeC4Styles } from './core.DGcIbsj4.mjs';
|
|
17
17
|
import { g as getOrCreate } from './core.DcS-0zys.mjs';
|
|
18
18
|
import { D as DefaultMap } from './core.BbE4y-yl.mjs';
|
|
19
19
|
import { i as invariant, a as nonNullable } from './core.D4npX2q8.mjs';
|
|
@@ -136,6 +136,9 @@ class ElementModel {
|
|
|
136
136
|
...this.$element.style
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
|
+
get projectId() {
|
|
140
|
+
return this.imported?.from ?? this.$model.projectId;
|
|
141
|
+
}
|
|
139
142
|
isAncestorOf(another) {
|
|
140
143
|
return isAncestor(this, another);
|
|
141
144
|
}
|
|
@@ -364,6 +367,9 @@ class LikeC4DeploymentModel {
|
|
|
364
367
|
get $styles() {
|
|
365
368
|
return this.$model.$styles;
|
|
366
369
|
}
|
|
370
|
+
get projectId() {
|
|
371
|
+
return this.$model.projectId;
|
|
372
|
+
}
|
|
367
373
|
element(el) {
|
|
368
374
|
if (el instanceof DeploymentNodeModel || el instanceof DeployedInstanceModel) {
|
|
369
375
|
return el;
|
|
@@ -1209,6 +1215,9 @@ class LikeC4ViewModel {
|
|
|
1209
1215
|
}
|
|
1210
1216
|
return null;
|
|
1211
1217
|
}
|
|
1218
|
+
get projectId() {
|
|
1219
|
+
return this.$model.projectId;
|
|
1220
|
+
}
|
|
1212
1221
|
roots() {
|
|
1213
1222
|
return this.#rootnodes.values();
|
|
1214
1223
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as n$d,
|
|
1
|
+
import { n as n$d, d as t$i, e as t$j, f as t$l, b as t$m, g as buildElementNotations, t as t$q } from './core.DjcWextK.mjs';
|
|
2
2
|
import { t as t$a, a as t$b } from './core.BsSXS-_R.mjs';
|
|
3
3
|
import { t as t$e } from './core.CbT8JVYL.mjs';
|
|
4
|
-
import { a as t$c, t as t$k, i as isElementModel, b as isNestedElementOfDeployedInstanceModel, c as isDeployedInstanceModel, d as isDeploymentNodeModel, e as isDeploymentElementModel, L as LikeC4Model } from './core.
|
|
5
|
-
import { c as commonHead, t as t$f, o as objectHash, b as t$n, a as compareRelations, S as Stack } from './core.
|
|
4
|
+
import { a as t$c, t as t$k, i as isElementModel, b as isNestedElementOfDeployedInstanceModel, c as isDeployedInstanceModel, d as isDeploymentNodeModel, e as isDeploymentElementModel, L as LikeC4Model } from './core.DU5SRqNF.mjs';
|
|
5
|
+
import { c as commonHead, t as t$f, o as objectHash, b as t$n, a as compareRelations, S as Stack } from './core.btEq3i3f.mjs';
|
|
6
6
|
import { a as nonNullable, i as invariant, n as nonexhaustive } from './core.D4npX2q8.mjs';
|
|
7
7
|
import { G as Graph } from './core.CmGY9blO.mjs';
|
|
8
|
-
import { r as requireIterables, e as exact, t as t$o } from './core.
|
|
9
|
-
import { b as requireIterator } from './core.
|
|
8
|
+
import { r as requireIterables, e as exact, t as t$o } from './core.CHf8VEa3.mjs';
|
|
9
|
+
import { b as requireIterator } from './core.Bdy3hhTc.mjs';
|
|
10
10
|
import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
|
|
11
11
|
import { n as n$c, t as t$d } from './core.3ZhnKAlZ.mjs';
|
|
12
12
|
import { e as e$4 } from './core.BKlholso.mjs';
|
|
@@ -15,21 +15,21 @@ import { b as isDescendantOf, f as sortParentsFirst, i as isAncestor, p as paren
|
|
|
15
15
|
import { d as difference, i as intersection, u as union, h as hasIntersection } from './core.DbfO90vF.mjs';
|
|
16
16
|
import { e as e$9 } from './core.Coi_LOUZ.mjs';
|
|
17
17
|
import { w as whereOperatorAsPredicate, m as isViewRuleStyle, v as t$g, u as e$8, l as isViewRulePredicate, a as _type, _ as _stage, t as isDynamicView, s as isDeploymentView, p as isElementView } from './core.DH7TXqXf.mjs';
|
|
18
|
-
import { e as e$5, d as deploymentConnection, R as RelationshipsAccum, D as DeploymentConnectionModel } from './core.
|
|
18
|
+
import { e as e$5, d as deploymentConnection, R as RelationshipsAccum, D as DeploymentConnectionModel } from './core.BP_QHEXs.mjs';
|
|
19
19
|
import { e as e$6, a as iunique, i as iflat } from './core.C4x8aaWa.mjs';
|
|
20
20
|
import { e as e$7 } from './core.BoYfZOBm.mjs';
|
|
21
21
|
import { ModelFqnExpr, ModelRelationExpr, ModelExpression } from '../types/expression-model.mjs';
|
|
22
22
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
23
23
|
import { preferSummary } from '../types/_aux.mjs';
|
|
24
|
-
import { a as t$h } from './core.
|
|
24
|
+
import { a as t$h } from './core.DGcIbsj4.mjs';
|
|
25
25
|
import { n as n$e } from './core.BhNcrwzK.mjs';
|
|
26
26
|
import { FqnExpr, RelationExpr } from '../types/expression.mjs';
|
|
27
27
|
import { f as findAscendingConnections, m as mergeConnections, d as differenceConnections, j as isNestedConnection, s as sortConnectionsByBoundaryHierarchy, o as findConnectionsBetween$3, p as findConnection$3, n as modelConnection, b as findDescendantConnections, a as findDeepestNestedConnection, i as isAnyInOut, k as isOutgoing, g as isIncoming, C as ConnectionModel } from './core.78IWAHAE.mjs';
|
|
28
28
|
import { t as toSet, a as toArray, i as imap } from './core.C3JowhaZ.mjs';
|
|
29
29
|
import { D as DefaultMap } from './core.BbE4y-yl.mjs';
|
|
30
|
+
import { i as isome } from './core.FZ305VYd.mjs';
|
|
30
31
|
import { i as ifilter } from './core.DRJma0Ol.mjs';
|
|
31
32
|
import { C as Connection, c as customInspectSymbol } from './core.BFd1lU9R.mjs';
|
|
32
|
-
import { i as isome } from './core.FZ305VYd.mjs';
|
|
33
33
|
import { i as isIterable, e as e$a } from './core.RfnaEmgA.mjs';
|
|
34
34
|
import { k as e$b, c as isViewRuleAutoLayout, h as isViewRuleGroup, a as isViewRuleGlobalPredicateRef, i as isViewRuleGlobalStyle, e as isDynamicStepsParallel, f as isDynamicStepsSeries, j as isViewRuleRank } from './core.om36dXXW.mjs';
|
|
35
35
|
import { t as t$p } from './core.q10OP9oJ.mjs';
|
|
@@ -4614,7 +4614,9 @@ const WildcardPredicate = {
|
|
|
4614
4614
|
if (rootElements.length === 0) {
|
|
4615
4615
|
return;
|
|
4616
4616
|
}
|
|
4617
|
-
|
|
4617
|
+
const [projectElements, importedElements] = t$4(rootElements, (e) => !e.imported);
|
|
4618
|
+
stage.addExplicit(projectElements);
|
|
4619
|
+
stage.addImplicit(importedElements);
|
|
4618
4620
|
stage.addConnections(findConnectionsWithin(rootElements));
|
|
4619
4621
|
stage.connectWithExisting(rootElements);
|
|
4620
4622
|
return stage;
|
|
@@ -4747,7 +4749,7 @@ function processRelationtPredicate(expr, op, ctx) {
|
|
|
4747
4749
|
nonexhaustive(expr);
|
|
4748
4750
|
}
|
|
4749
4751
|
}
|
|
4750
|
-
function
|
|
4752
|
+
function process_predicates(model, memory, rules) {
|
|
4751
4753
|
const ctx = {
|
|
4752
4754
|
model,
|
|
4753
4755
|
scope: memory.scope,
|
|
@@ -4757,7 +4759,7 @@ function processPredicates(model, memory, rules) {
|
|
|
4757
4759
|
for (const rule of rules) {
|
|
4758
4760
|
if (isViewRuleGroup(rule)) {
|
|
4759
4761
|
const groupMemory = ActiveGroupMemory.enter(memory, rule);
|
|
4760
|
-
memory =
|
|
4762
|
+
memory = process_predicates(model, groupMemory, rule.groupRules);
|
|
4761
4763
|
invariant(memory instanceof ActiveGroupMemory, "processPredicates must return ActiveGroupMemory");
|
|
4762
4764
|
memory = memory.leave();
|
|
4763
4765
|
continue;
|
|
@@ -4789,6 +4791,10 @@ function processPredicates(model, memory, rules) {
|
|
|
4789
4791
|
}
|
|
4790
4792
|
}
|
|
4791
4793
|
}
|
|
4794
|
+
return memory;
|
|
4795
|
+
}
|
|
4796
|
+
function processPredicates(model, memory, rules) {
|
|
4797
|
+
memory = process_predicates(model, memory, rules);
|
|
4792
4798
|
return StageFinal.for(memory).commit();
|
|
4793
4799
|
}
|
|
4794
4800
|
function computeElementView(likec4model, {
|
|
@@ -4986,4 +4992,4 @@ function computeLikeC4Model(parsed) {
|
|
|
4986
4992
|
return LikeC4Model.create(computeParsedModelData(parsed));
|
|
4987
4993
|
}
|
|
4988
4994
|
|
|
4989
|
-
export { t$6 as a,
|
|
4995
|
+
export { t$6 as a, t$5 as b, topologicalSort as c, computeLikeC4Model as d, computeParsedModelData as e, computeView as f, linkNodesWithEdges as l, n$6 as n, topologicalSortExports as t, unsafeComputeView as u, willCreateCycle as w };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as t$8, t as t$9 } from './core.3ZhnKAlZ.mjs';
|
|
2
2
|
import { t as t$7, a as t$c } from './core.BsSXS-_R.mjs';
|
|
3
|
-
import { a as t$d } from './core.
|
|
3
|
+
import { a as t$d } from './core.DGcIbsj4.mjs';
|
|
4
4
|
import { b as _layout, t as isDynamicView, u as e$3 } from './core.DH7TXqXf.mjs';
|
|
5
5
|
import { e as e$4 } from './core.BKlholso.mjs';
|
|
6
6
|
import { e as e$2, t as t$a } from './core.Coi_LOUZ.mjs';
|
|
@@ -152,6 +152,10 @@ var isSet = (target) => target instanceof Set;
|
|
|
152
152
|
var isObjectish = (target) => typeof target === "object";
|
|
153
153
|
var isFunction = (target) => typeof target === "function";
|
|
154
154
|
var isBoolean = (target) => typeof target === "boolean";
|
|
155
|
+
function isArrayIndex(value) {
|
|
156
|
+
const n = +value;
|
|
157
|
+
return Number.isInteger(n) && String(n) === value;
|
|
158
|
+
}
|
|
155
159
|
var latest = (state) => state.copy_ || state.base_;
|
|
156
160
|
var getFinalValue = (state) => state.modified_ ? state.copy_ : state.base_;
|
|
157
161
|
function shallowCopy(base, strict) {
|
|
@@ -231,6 +235,7 @@ function isFrozen(obj) {
|
|
|
231
235
|
// src/utils/plugins.ts
|
|
232
236
|
var PluginMapSet = "MapSet";
|
|
233
237
|
var PluginPatches = "Patches";
|
|
238
|
+
var PluginArrayMethods = "ArrayMethods";
|
|
234
239
|
var plugins = {};
|
|
235
240
|
function getPlugin(pluginKey) {
|
|
236
241
|
const plugin = plugins[pluginKey];
|
|
@@ -254,7 +259,8 @@ var createScope = (parent_, immer_) => ({
|
|
|
254
259
|
unfinalizedDrafts_: 0,
|
|
255
260
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
256
261
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
257
|
-
mapSetPlugin_: isPluginLoaded(PluginMapSet) ? getPlugin(PluginMapSet) : void 0
|
|
262
|
+
mapSetPlugin_: isPluginLoaded(PluginMapSet) ? getPlugin(PluginMapSet) : void 0,
|
|
263
|
+
arrayMethodsPlugin_: isPluginLoaded(PluginArrayMethods) ? getPlugin(PluginArrayMethods) : void 0
|
|
258
264
|
});
|
|
259
265
|
function usePatchesInScope(scope, patchListener) {
|
|
260
266
|
if (patchListener) {
|
|
@@ -389,7 +395,7 @@ function registerChildFinalizationCallback(parent, child, key) {
|
|
|
389
395
|
});
|
|
390
396
|
}
|
|
391
397
|
function generatePatchesAndFinalize(state, rootScope) {
|
|
392
|
-
const shouldFinalize = state.modified_ && !state.finalized_ && (state.type_ === 3 /* Set */ || (state.assigned_?.size ?? 0) > 0);
|
|
398
|
+
const shouldFinalize = state.modified_ && !state.finalized_ && (state.type_ === 3 /* Set */ || state.type_ === 1 /* Array */ && state.allIndicesReassigned_ || (state.assigned_?.size ?? 0) > 0);
|
|
393
399
|
if (shouldFinalize) {
|
|
394
400
|
const { patchPlugin_ } = rootScope;
|
|
395
401
|
if (patchPlugin_) {
|
|
@@ -494,6 +500,13 @@ var objectTraps = {
|
|
|
494
500
|
get(state, prop) {
|
|
495
501
|
if (prop === DRAFT_STATE)
|
|
496
502
|
return state;
|
|
503
|
+
let arrayPlugin = state.scope_.arrayMethodsPlugin_;
|
|
504
|
+
const isArrayWithStringProp = state.type_ === 1 /* Array */ && typeof prop === "string";
|
|
505
|
+
if (isArrayWithStringProp) {
|
|
506
|
+
if (arrayPlugin?.isArrayOperationMethod(prop)) {
|
|
507
|
+
return arrayPlugin.createMethodInterceptor(state, prop);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
497
510
|
const source = latest(state);
|
|
498
511
|
if (!has(source, prop, state.type_)) {
|
|
499
512
|
return readPropFromProto(state, source, prop);
|
|
@@ -502,6 +515,11 @@ var objectTraps = {
|
|
|
502
515
|
if (state.finalized_ || !isDraftable(value)) {
|
|
503
516
|
return value;
|
|
504
517
|
}
|
|
518
|
+
if (isArrayWithStringProp && state.operationMethod && arrayPlugin?.isMutatingArrayMethod(
|
|
519
|
+
state.operationMethod
|
|
520
|
+
) && isArrayIndex(prop)) {
|
|
521
|
+
return value;
|
|
522
|
+
}
|
|
505
523
|
if (value === peek(state.base_, prop)) {
|
|
506
524
|
prepareCopy(state);
|
|
507
525
|
const childKey = state.type_ === 1 /* Array */ ? +prop : prop;
|
|
@@ -1068,12 +1086,13 @@ function applyManualLayout(autoLayouted, snapshot) {
|
|
|
1068
1086
|
if (isDynamicView(autoLayouted) && result._type === "dynamic") {
|
|
1069
1087
|
result.variant = autoLayouted.variant;
|
|
1070
1088
|
}
|
|
1089
|
+
const writableV = result;
|
|
1071
1090
|
const drifts = [...viewDrifts];
|
|
1072
1091
|
if (t$c(drifts, 1)) {
|
|
1073
|
-
|
|
1092
|
+
writableV.drifts = drifts;
|
|
1074
1093
|
} else {
|
|
1075
|
-
if ("drifts" in
|
|
1076
|
-
delete
|
|
1094
|
+
if ("drifts" in writableV) {
|
|
1095
|
+
delete writableV.drifts;
|
|
1077
1096
|
}
|
|
1078
1097
|
}
|
|
1079
1098
|
return result;
|
|
@@ -1349,4 +1368,4 @@ function calcDriftsFromSnapshot(autoLayouted, snapshot) {
|
|
|
1349
1368
|
});
|
|
1350
1369
|
}
|
|
1351
1370
|
|
|
1352
|
-
export { applyManualLayout as a, t$
|
|
1371
|
+
export { applyManualLayout as a, t$5 as b, calcDriftsFromSnapshot as c, t$2 as d, t$1 as e, t$4 as f, buildElementNotations as g, t as h, n$5 as n, t$3 as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Tagged, NonEmptyTuple, IsNever, PartialDeep, WritableDeep, Except } from 'type-fest';
|
|
2
|
-
import { h as ElementShape, C as Color, B as BorderStyle, e as ShapeSize, S as SpacingSize, d as TextSize, f as RelationshipLineType, g as RelationshipArrowType, T as ThemeColor, G as ColorLiteral, Q as CustomColorDefinitions, a as LikeC4Theme, b as LikeC4StyleDefaults } from './core.
|
|
3
|
-
import { A as Any, s as WithOptionalTags, u as WithOptionalLinks, S as StrictViewId, m as _stage, n as _type, F as Fqn, R as RelationKind, W as WithDescriptionAndTech, v as WithMetadata, w as WithNotation, E as ElementKind, T as Tag, y as DeploymentKind, C as MetadataKey, G as WithTags, x as DeploymentFqn } from './core.
|
|
2
|
+
import { h as ElementShape, C as Color, B as BorderStyle, e as ShapeSize, S as SpacingSize, d as TextSize, f as RelationshipLineType, g as RelationshipArrowType, T as ThemeColor, G as ColorLiteral, Q as CustomColorDefinitions, a as LikeC4Theme, b as LikeC4StyleDefaults } from './core.DC5IAaDT.mjs';
|
|
3
|
+
import { A as Any, s as WithOptionalTags, u as WithOptionalLinks, S as StrictViewId, m as _stage, n as _type, F as Fqn, R as RelationKind, W as WithDescriptionAndTech, v as WithMetadata, w as WithNotation, E as ElementKind, T as Tag, y as DeploymentKind, C as MetadataKey, G as WithTags, x as DeploymentFqn } from './core.D00YbOhQ.mjs';
|
|
4
4
|
import { N as NonEmptyArray, E as ExclusiveUnion, a as NonEmptyReadonlyArray, L as Link } from './core.DB0Ue5Wx.mjs';
|
|
5
|
-
import { M as MarkdownOrString, I as Icon, d as RelationId, T as Tag$1, P as ProjectId, j as NodeId, k as EdgeId, n as StepEdgeKind } from './core.
|
|
5
|
+
import { M as MarkdownOrString, I as Icon, d as RelationId, T as Tag$1, P as ProjectId, j as NodeId, k as EdgeId, n as StepEdgeKind } from './core.C_3y3eqV.mjs';
|
|
6
6
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
7
7
|
import { ModelExpression, ModelFqnExpr } from '../types/expression-model.mjs';
|
|
8
8
|
import { P as Point, X as XYPoint, B as BBox } from './core.BPGOjone.mjs';
|
|
@@ -419,7 +419,7 @@ interface ComputedNode<A extends Any = Any> extends WithTags<A>, WithOptionalLin
|
|
|
419
419
|
outEdges: EdgeId[];
|
|
420
420
|
shape: ElementShape;
|
|
421
421
|
color: Color;
|
|
422
|
-
icon?: Icon;
|
|
422
|
+
icon?: Icon | null;
|
|
423
423
|
style: ComputedNodeStyle;
|
|
424
424
|
navigateTo?: StrictViewId<A> | null;
|
|
425
425
|
level: number;
|
|
@@ -470,8 +470,8 @@ interface ComputedRankConstraint {
|
|
|
470
470
|
interface BaseComputedViewProperties<A extends Any> extends BaseViewProperties<A>, ViewWithHash, ViewWithNotation {
|
|
471
471
|
readonly [_stage]: 'computed';
|
|
472
472
|
readonly autoLayout: ViewAutoLayout;
|
|
473
|
-
readonly nodes: ComputedNode<A
|
|
474
|
-
readonly edges: ComputedEdge<A
|
|
473
|
+
readonly nodes: ReadonlyArray<ComputedNode<A>>;
|
|
474
|
+
readonly edges: ReadonlyArray<ComputedEdge<A>>;
|
|
475
475
|
/**
|
|
476
476
|
* If the view has manual layout (v2)
|
|
477
477
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
|
|
2
|
-
import { b as requireIterator, r as requireForeach } from './core.
|
|
2
|
+
import { b as requireIterator, r as requireForeach } from './core.Bdy3hhTc.mjs';
|
|
3
3
|
import { t as t$3 } from './core.3ZhnKAlZ.mjs';
|
|
4
4
|
import { t as t$4 } from './core.CbT8JVYL.mjs';
|
|
5
5
|
import { t as t$2 } from './core.BsSXS-_R.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Simplify, IsAny } from 'type-fest';
|
|
2
|
-
import { A as Any, U as Unknown, W as WithDescriptionAndTech, s as WithOptionalTags, u as WithOptionalLinks, v as WithMetadata, w as WithNotation, x as DeploymentFqn, y as DeploymentKind, F as Fqn, n as _type, m as _stage, o as _layout, S as StrictViewId, N as NodeId, z as EdgeId, k as ExtractOnStage, M as ModelStage, P as ProjectId, a as ElementId, D as DeploymentId, d as AnyParsed, i as UnknownParsed, V as ViewId$1, b as AnyComputed, g as UnknownComputed, c as AnyLayouted, h as UnknownLayouted, f as SpecAux, e as Aux, B as Never } from './core.
|
|
2
|
+
import { A as Any, U as Unknown, W as WithDescriptionAndTech, s as WithOptionalTags, u as WithOptionalLinks, v as WithMetadata, w as WithNotation, x as DeploymentFqn, y as DeploymentKind, F as Fqn, n as _type, m as _stage, o as _layout, S as StrictViewId, N as NodeId, z as EdgeId, k as ExtractOnStage, M as ModelStage, P as ProjectId, a as ElementId, D as DeploymentId, d as AnyParsed, i as UnknownParsed, V as ViewId$1, b as AnyComputed, g as UnknownComputed, c as AnyLayouted, h as UnknownLayouted, f as SpecAux, e as Aux, B as Never } from './core.D00YbOhQ.mjs';
|
|
3
3
|
import { a as NonEmptyReadonlyArray, N as NonEmptyArray, E as ExclusiveUnion, K as KeysOf } from './core.DB0Ue5Wx.mjs';
|
|
4
|
-
import { E as ElementStyle, A as AbstractRelationship, F as ViewType, B as ViewAutoLayout, J as ViewWithNotation, H as BaseViewProperties, K as ViewWithHash, O as ComputedNode, P as ComputedEdge, a6 as DynamicViewDisplayVariant, I as BaseParsedViewProperties, o as AnyIncludePredicate, p as AnyExcludePredicate, q as AnyViewRuleStyle, y as ViewRuleAutoLayout, ah as ParsedElementView, a7 as ParsedDynamicView, U as ComputedElementView, W as ComputedDeploymentView, X as ComputedDynamicView, n as LikeC4Project, S as Specification, f as Element, R as Relationship, M as ModelGlobals } from './core.
|
|
4
|
+
import { E as ElementStyle, A as AbstractRelationship, F as ViewType, B as ViewAutoLayout, J as ViewWithNotation, H as BaseViewProperties, K as ViewWithHash, O as ComputedNode, P as ComputedEdge, a6 as DynamicViewDisplayVariant, I as BaseParsedViewProperties, o as AnyIncludePredicate, p as AnyExcludePredicate, q as AnyViewRuleStyle, y as ViewRuleAutoLayout, ah as ParsedElementView, a7 as ParsedDynamicView, U as ComputedElementView, W as ComputedDeploymentView, X as ComputedDynamicView, n as LikeC4Project, S as Specification, f as Element, R as Relationship, M as ModelGlobals } from './core.Dojz4bvg.mjs';
|
|
5
5
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
6
|
-
import { F as Fqn$1, V as ViewId, M as MarkdownOrString, d as RelationId } from './core.
|
|
6
|
+
import { F as Fqn$1, V as ViewId, M as MarkdownOrString, d as RelationId } from './core.C_3y3eqV.mjs';
|
|
7
7
|
import { B as BBox, P as Point, X as XYPoint } from './core.BPGOjone.mjs';
|
|
8
|
-
import { j as Expression, F as FqnExpr } from './core.
|
|
8
|
+
import { j as Expression, F as FqnExpr } from './core.DC5IAaDT.mjs';
|
|
9
9
|
|
|
10
10
|
interface DeploymentNode<A extends Any = Unknown> extends WithDescriptionAndTech, WithOptionalTags<A>, WithOptionalLinks, WithMetadata<A>, WithNotation {
|
|
11
11
|
element?: never;
|
|
@@ -65,8 +65,8 @@ type ViewManualLayoutSnapshot<Type extends ViewType = ViewType> = Simplify<ViewM
|
|
|
65
65
|
readonly [_type]: Type;
|
|
66
66
|
readonly [_stage]: 'layouted';
|
|
67
67
|
readonly hash: string;
|
|
68
|
-
readonly nodes: DiagramNode
|
|
69
|
-
readonly edges: DiagramEdge
|
|
68
|
+
readonly nodes: ReadonlyArray<DiagramNode>;
|
|
69
|
+
readonly edges: ReadonlyArray<DiagramEdge>;
|
|
70
70
|
readonly bounds: BBox;
|
|
71
71
|
readonly autoLayout: ViewAutoLayout;
|
|
72
72
|
} & ViewWithNotation>;
|
|
@@ -126,8 +126,8 @@ interface BaseLayoutedViewProperties<A extends Any> extends BaseViewProperties<A
|
|
|
126
126
|
*/
|
|
127
127
|
readonly [_layout]?: LayoutType;
|
|
128
128
|
readonly autoLayout: ViewAutoLayout;
|
|
129
|
-
readonly nodes: DiagramNode<A
|
|
130
|
-
readonly edges: DiagramEdge<A
|
|
129
|
+
readonly nodes: ReadonlyArray<DiagramNode<A>>;
|
|
130
|
+
readonly edges: ReadonlyArray<DiagramEdge<A>>;
|
|
131
131
|
readonly bounds: BBox;
|
|
132
132
|
/**
|
|
133
133
|
* If diagram has manual layout
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Connection, c as customInspectSymbol } from './core.
|
|
2
|
-
import { e as DeploymentElementModel, h as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.
|
|
3
|
-
import { A as Any, z as EdgeId } from './core.
|
|
1
|
+
import { C as Connection, c as customInspectSymbol } from './core.DKhRkHRN.mjs';
|
|
2
|
+
import { e as DeploymentElementModel, h as RelationshipsAccum, D as DeploymentNodeModel, R as RelationshipModel, b as DeploymentRelationModel } from './core.BfCKSW-g.mjs';
|
|
3
|
+
import { A as Any, z as EdgeId } from './core.D00YbOhQ.mjs';
|
|
4
4
|
import { c as IteratorLike } from './core.DB0Ue5Wx.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/styles/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Tag } from '../shared/core.
|
|
2
|
-
import { T as TagSpecification } from '../shared/core.
|
|
3
|
-
import { G as ColorLiteral, c as ThemeColorValues, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues } from '../shared/core.
|
|
4
|
-
export { B as BorderStyle, z as BorderStyles, C as Color, U as CustomColor, Q as CustomColorDefinitions, h as ElementShape, D as ElementShapes, H as HexColor, L as LikeC4StylesConfig, a as LikeC4Theme, g as RelationshipArrowType, I as RelationshipArrowTypes, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, d as TextSize, T as ThemeColor, J as ThemeColors, V as isCustomColor, M as isThemeColor } from '../shared/core.
|
|
5
|
-
export { L as LikeC4Styles } from '../shared/core.
|
|
1
|
+
import { T as Tag } from '../shared/core.C_3y3eqV.mjs';
|
|
2
|
+
import { T as TagSpecification } from '../shared/core.Dojz4bvg.mjs';
|
|
3
|
+
import { G as ColorLiteral, c as ThemeColorValues, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues } from '../shared/core.DC5IAaDT.mjs';
|
|
4
|
+
export { B as BorderStyle, z as BorderStyles, C as Color, U as CustomColor, Q as CustomColorDefinitions, h as ElementShape, D as ElementShapes, H as HexColor, L as LikeC4StylesConfig, a as LikeC4Theme, g as RelationshipArrowType, I as RelationshipArrowTypes, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, d as TextSize, T as ThemeColor, J as ThemeColors, V as isCustomColor, M as isThemeColor } from '../shared/core.DC5IAaDT.mjs';
|
|
5
|
+
export { L as LikeC4Styles } from '../shared/core.CAgYpDtM.mjs';
|
|
6
6
|
import 'type-fest';
|
|
7
|
-
import '../shared/core.
|
|
7
|
+
import '../shared/core.D00YbOhQ.mjs';
|
|
8
8
|
import '../shared/core.DB0Ue5Wx.mjs';
|
|
9
9
|
import '../types/fqnRef.mjs';
|
|
10
10
|
import '../types/expression-model.mjs';
|
package/dist/styles/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { t as t$6 } from '../shared/core.CbT8JVYL.mjs';
|
|
|
6
6
|
import { t as t$1 } from '../shared/core.BsSXS-_R.mjs';
|
|
7
7
|
import { t as t$4 } from '../shared/core.BkVA6gjl.mjs';
|
|
8
8
|
import { a as nonNullable } from '../shared/core.D4npX2q8.mjs';
|
|
9
|
-
export { B as BorderStyles, E as ElementShapes, L as LikeC4Styles, R as RelationshipArrowTypes, S as Sizes, T as ThemeColors, c as computeColorValues, d as defaultTheme, b as isCustomColor, i as isThemeColor, s as styleDefaults } from '../shared/core.
|
|
9
|
+
export { B as BorderStyles, E as ElementShapes, L as LikeC4Styles, R as RelationshipArrowTypes, S as Sizes, T as ThemeColors, c as computeColorValues, d as defaultTheme, b as isCustomColor, i as isThemeColor, s as styleDefaults } from '../shared/core.DGcIbsj4.mjs';
|
|
10
10
|
|
|
11
11
|
function t(...t){return t$1(n,t)}function n(e,t,n){let r={};for(let[i,a]of e.entries()){let o=t(a,i,e);r[o]=n(a,i,e);}return r}
|
|
12
12
|
|
package/dist/types/_aux.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'type-fest';
|
|
2
2
|
import '../shared/core.DB0Ue5Wx.mjs';
|
|
3
|
-
export { q as AllKinds, A as Any, A as AnyAux, b as AnyComputed, c as AnyLayouted, $ as AnyOnStage, d as AnyParsed, Z as AnySpec, e as Aux, x as DeploymentFqn, D as DeploymentId, y as DeploymentKind, z as EdgeId, a as ElementId, E as ElementKind, F as Fqn, O as LooseDeploymentId, ae as LooseDeploymentKind, K as LooseElementId, ad as LooseElementKind, L as LooseLiteral, af as LooseRelationKind, I as LooseTag, ac as LooseTags, X as LooseViewId, H as Metadata, C as MetadataKey, B as Never, N as NodeId, ab as OrString, a0 as PickByStage, P as ProjectId, J as RelationId, R as RelationKind, a4 as Spec, f as SpecAux, Q as Stage, x as StrictDeploymentFqn, a8 as StrictDeploymentKind, a7 as StrictElementKind, F as StrictFqn, a5 as StrictProjectId, a9 as StrictRelationKind, a6 as StrictTag, S as StrictViewId, T as Tag, r as Tags, U as Unknown, g as UnknownComputed, h as UnknownLayouted, i as UnknownParsed, V as ViewId, W as WithDescriptionAndTech, aa as WithLinks, v as WithMetadata, w as WithNotation, u as WithOptionalLinks, s as WithOptionalTags, G as WithTags, p as preferDescription, j as preferSummary, Y as setProject, a1 as setStage, t as toComputed, a3 as toLayouted, a2 as toParsed } from '../shared/core.
|
|
4
|
-
import '../shared/core.
|
|
3
|
+
export { q as AllKinds, A as Any, A as AnyAux, b as AnyComputed, c as AnyLayouted, $ as AnyOnStage, d as AnyParsed, Z as AnySpec, e as Aux, x as DeploymentFqn, D as DeploymentId, y as DeploymentKind, z as EdgeId, a as ElementId, E as ElementKind, F as Fqn, O as LooseDeploymentId, ae as LooseDeploymentKind, K as LooseElementId, ad as LooseElementKind, L as LooseLiteral, af as LooseRelationKind, I as LooseTag, ac as LooseTags, X as LooseViewId, H as Metadata, C as MetadataKey, B as Never, N as NodeId, ab as OrString, a0 as PickByStage, P as ProjectId, J as RelationId, R as RelationKind, a4 as Spec, f as SpecAux, Q as Stage, x as StrictDeploymentFqn, a8 as StrictDeploymentKind, a7 as StrictElementKind, F as StrictFqn, a5 as StrictProjectId, a9 as StrictRelationKind, a6 as StrictTag, S as StrictViewId, T as Tag, r as Tags, U as Unknown, g as UnknownComputed, h as UnknownLayouted, i as UnknownParsed, V as ViewId, W as WithDescriptionAndTech, aa as WithLinks, v as WithMetadata, w as WithNotation, u as WithOptionalLinks, s as WithOptionalTags, G as WithTags, p as preferDescription, j as preferSummary, Y as setProject, a1 as setStage, t as toComputed, a3 as toLayouted, a2 as toParsed } from '../shared/core.D00YbOhQ.mjs';
|
|
4
|
+
import '../shared/core.C_3y3eqV.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WhereOperator, C as Color, f as RelationshipLineType, g as RelationshipArrowType, P as PredicateSelector, h as ElementShape, B as BorderStyle, e as ShapeSize } from '../shared/core.
|
|
2
|
-
import { A as Any, S as StrictViewId, E as ElementKind, T as Tag } from '../shared/core.
|
|
1
|
+
import { W as WhereOperator, C as Color, f as RelationshipLineType, g as RelationshipArrowType, P as PredicateSelector, h as ElementShape, B as BorderStyle, e as ShapeSize } from '../shared/core.DC5IAaDT.mjs';
|
|
2
|
+
import { A as Any, S as StrictViewId, E as ElementKind, T as Tag } from '../shared/core.D00YbOhQ.mjs';
|
|
3
3
|
import { E as ExclusiveUnion } from '../shared/core.DB0Ue5Wx.mjs';
|
|
4
4
|
import { FqnRef } from './fqnRef.mjs';
|
|
5
|
-
import { M as MarkdownOrString, I as Icon } from '../shared/core.
|
|
5
|
+
import { M as MarkdownOrString, I as Icon } from '../shared/core.C_3y3eqV.mjs';
|
|
6
6
|
import 'type-fest';
|
|
7
7
|
|
|
8
8
|
type AnyAux = Any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { j as Expression, F as FqnExpr, P as PredicateSelector, i as RelationExpr } from '../shared/core.
|
|
2
|
-
import '../shared/core.
|
|
1
|
+
export { j as Expression, F as FqnExpr, P as PredicateSelector, i as RelationExpr } from '../shared/core.DC5IAaDT.mjs';
|
|
2
|
+
import '../shared/core.D00YbOhQ.mjs';
|
|
3
3
|
import '../shared/core.DB0Ue5Wx.mjs';
|
|
4
4
|
import './fqnRef.mjs';
|
|
5
|
-
import '../shared/core.
|
|
5
|
+
import '../shared/core.C_3y3eqV.mjs';
|
|
6
6
|
import 'type-fest';
|
package/dist/types/fqnRef.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Any, a as ElementId, P as ProjectId, F as Fqn, D as DeploymentId } from '../shared/core.
|
|
1
|
+
import { A as Any, a as ElementId, P as ProjectId, F as Fqn, D as DeploymentId } from '../shared/core.D00YbOhQ.mjs';
|
|
2
2
|
import { E as ExclusiveUnion } from '../shared/core.DB0Ue5Wx.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
|
-
import '../shared/core.
|
|
4
|
+
import '../shared/core.C_3y3eqV.mjs';
|
|
5
5
|
|
|
6
6
|
type AnyAux = Any;
|
|
7
7
|
declare namespace FqnRef {
|