@likec4/core 1.43.0 → 1.45.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 +15 -14
- package/dist/builder/index.mjs +35 -18
- package/dist/compute-view/index.d.mts +9 -9
- package/dist/compute-view/index.mjs +8 -7
- package/dist/compute-view/relationships-view/index.d.mts +7 -7
- package/dist/compute-view/relationships-view/index.mjs +2 -2
- package/dist/index.d.mts +27 -7
- package/dist/index.mjs +8 -7
- package/dist/model/connection/deployment/index.d.mts +9 -9
- package/dist/model/connection/deployment/index.mjs +2 -2
- package/dist/model/connection/index.d.mts +10 -10
- package/dist/model/connection/index.mjs +3 -3
- package/dist/model/connection/model/index.d.mts +9 -9
- package/dist/model/connection/model/index.mjs +2 -2
- package/dist/model/index.d.mts +11 -11
- package/dist/model/index.mjs +4 -4
- package/dist/shared/{core.CDvVInBp.d.mts → core.0zAQeenX.d.mts} +3 -3
- package/dist/shared/core.3ZhnKAlZ.mjs +106 -0
- package/dist/shared/{core.CwsG7hOw.d.mts → core.5ZQ-r3Oa.d.mts} +1 -1
- package/dist/shared/{core.hNWo20Ym.d.mts → core.B73yxfPi.d.mts} +55 -36
- package/dist/shared/{core.Cq2kxOI-.d.mts → core.BGFjN3nv.d.mts} +3 -3
- package/dist/shared/{core.rCeaAqgW.mjs → core.BdPcbSkN.mjs} +1 -1
- package/dist/shared/core.BhNcrwzK.mjs +7 -0
- package/dist/shared/core.BkVA6gjl.mjs +5 -0
- package/dist/shared/core.BuQZczj6.mjs +38 -0
- package/dist/shared/{core.2N_9BzyD.mjs → core.CQPEY2wQ.mjs} +5 -4
- package/dist/shared/{core.DFi2dOTl.mjs → core.CR3PmPzr.mjs} +85 -1
- package/dist/shared/{core.DyToofsP.mjs → core.CRI1AjFj.mjs} +276 -145
- package/dist/shared/{core.CXWsKEDr.mjs → core.CWwSgOzF.mjs} +268 -631
- package/dist/shared/{core.727Qoh_W.mjs → core.CdNCAwq7.mjs} +2 -101
- package/dist/shared/{core.QJD_fcrc.mjs → core.CmPXpJ8l.mjs} +1 -14
- package/dist/shared/{core.DTdfiejA.d.mts → core.Cog93roC.d.mts} +2 -2
- package/dist/shared/core.Coi_LOUZ.mjs +7 -0
- package/dist/shared/{core.CcJ1FZ7h.d.mts → core.CpURdWRM.d.mts} +174 -76
- package/dist/shared/{core.D5fzJWbF.d.mts → core.DB0Ue5Wx.d.mts} +1 -1
- package/dist/shared/{core.DNbUPnve.mjs → core.DEieYfbG.mjs} +27 -25
- package/dist/shared/{core.BYNkXQ8A.mjs → core.DH7TXqXf.mjs} +30 -1
- package/dist/shared/{core.DMMOWQqc.mjs → core.DIE3F6sw.mjs} +2 -2
- package/dist/shared/{core.D0NziuvN.mjs → core.DViDmiAu.mjs} +5 -5
- package/dist/shared/{core.Be05qJwN.mjs → core.D_f4F48-.mjs} +41 -18
- package/dist/shared/{core.C2TiyjI6.mjs → core.DbfO90vF.mjs} +20 -31
- package/dist/shared/{core.BT-9gaqQ.d.mts → core.DnCLhN8C.d.mts} +83 -94
- package/dist/shared/{core.BouyJs63.mjs → core.DqlrMlsf.mjs} +1 -1
- package/dist/shared/{core.CNgZvKb8.mjs → core.DrUt0Lbi.mjs} +1 -1
- package/dist/shared/{core.CT1xBp4R.d.mts → core.Dvh1H0T2.d.mts} +2 -2
- package/dist/shared/core.M9ayqQZa.mjs +1207 -0
- package/dist/shared/{core.CvLjw3bH.d.mts → core.mUnpvHtA.d.mts} +96 -12
- package/dist/shared/core.oSV6SRfk.mjs +13 -0
- package/dist/shared/core.q10OP9oJ.mjs +5 -0
- package/dist/shared/{core.BXs4wY7R.d.mts → core.t3qfsVvn.d.mts} +4 -4
- package/dist/shared/core.uFk_o9X6.mjs +13 -0
- package/dist/shared/core.vzLtp8i3.mjs +1282 -0
- package/dist/styles/index.d.mts +18 -8
- package/dist/styles/index.mjs +63 -1
- package/dist/types/_aux.d.mts +2 -2
- package/dist/types/_aux.mjs +8 -1
- package/dist/types/expression-model.d.mts +3 -3
- package/dist/types/expression.d.mts +3 -3
- package/dist/types/fqnRef.d.mts +7 -8
- package/dist/types/index.d.mts +17 -13
- package/dist/types/index.mjs +51 -14
- package/dist/utils/graphology/index.mjs +1 -1
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.mjs +9 -6
- package/dist/utils/iterable/index.d.mts +1 -1
- package/dist/utils/iterable/index.mjs +2 -1
- package/package.json +18 -17
- package/dist/shared/core.01VTr9qu.mjs +0 -170
- package/dist/shared/core.1vX5a9AY.mjs +0 -86
- package/dist/shared/core.BazD6cot.mjs +0 -14
- package/dist/shared/core.BzTakU3I.mjs +0 -67
- package/dist/shared/core.OHD4KXm9.mjs +0 -5
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged, PartialDeep } from 'type-fest';
|
|
2
|
-
import { f as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { D as DeploymentFqn, F as Fqn } from '../shared/core.DX-WYEPA.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import { f as Element, h as ModelRelation,
|
|
6
|
-
import {
|
|
2
|
+
import { f as LikeC4Model } from '../shared/core.CpURdWRM.mjs';
|
|
3
|
+
import { D as DeploymentFqn, F as Fqn, M as MarkdownOrString } from '../shared/core.DX-WYEPA.mjs';
|
|
4
|
+
import { f as DeploymentElement, j as DeploymentRelationship, p as ParsedView, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData } from '../shared/core.DnCLhN8C.mjs';
|
|
5
|
+
import { f as Element, h as ModelRelation, r as AnyViewRuleStyle, v as AutoLayoutDirection, ag as ParsedElementView, i as ElementSpecification$1, k as RelationshipSpecification, T as TagSpecification, L as LikeC4ProjectStylesConfig } from '../shared/core.mUnpvHtA.mjs';
|
|
6
|
+
import { o as Participant, j as Expression, h as ElementShape, T as ThemeColor, B as BorderStyle, e as ShapeSize, S as SpacingSize, d as TextSize, g as RelationshipArrowType, f as RelationshipLineType } from '../shared/core.0zAQeenX.mjs';
|
|
7
7
|
import { ModelFqnExpr, ModelRelationExpr } from '../types/expression-model.mjs';
|
|
8
|
-
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.
|
|
9
|
-
import {
|
|
10
|
-
import '../shared/core.
|
|
8
|
+
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DB0Ue5Wx.mjs';
|
|
9
|
+
import { Y as setProject, e as Aux, f as SpecAux, A as Any } from '../shared/core.B73yxfPi.mjs';
|
|
10
|
+
import '../shared/core.Dvh1H0T2.mjs';
|
|
11
11
|
import '../shared/core.CywrQs86.mjs';
|
|
12
12
|
import '../types/fqnRef.mjs';
|
|
13
13
|
|
|
@@ -660,8 +660,8 @@ type Metadata<MetadataKey extends string> = IsNever<MetadataKey> extends true ?
|
|
|
660
660
|
} : Record<string, string | NonEmptyArray<string>>;
|
|
661
661
|
type NewElementProps<Tag, Metadata> = {
|
|
662
662
|
title?: string;
|
|
663
|
-
summary?: string;
|
|
664
|
-
description?: string;
|
|
663
|
+
summary?: MarkdownOrString | string;
|
|
664
|
+
description?: MarkdownOrString | string;
|
|
665
665
|
technology?: string;
|
|
666
666
|
tags?: IfNever<Tag, never, [Tag, ...Tag[]]>;
|
|
667
667
|
metadata?: Metadata;
|
|
@@ -682,8 +682,8 @@ type NewElementProps<Tag, Metadata> = {
|
|
|
682
682
|
};
|
|
683
683
|
type NewDeploymentNodeProps<Tag, Metadata> = {
|
|
684
684
|
title?: string;
|
|
685
|
-
summary?: string;
|
|
686
|
-
description?: string;
|
|
685
|
+
summary?: MarkdownOrString | string;
|
|
686
|
+
description?: MarkdownOrString | string;
|
|
687
687
|
technology?: string;
|
|
688
688
|
tags?: IfNever<Tag, never, [Tag, ...Tag[]]>;
|
|
689
689
|
metadata?: Metadata;
|
|
@@ -704,7 +704,7 @@ type NewDeploymentNodeProps<Tag, Metadata> = {
|
|
|
704
704
|
};
|
|
705
705
|
type NewViewProps<Tag> = {
|
|
706
706
|
title?: string;
|
|
707
|
-
description?: string;
|
|
707
|
+
description?: MarkdownOrString | string;
|
|
708
708
|
tags?: IfNever<Tag, never, [Tag, ...Tag[]]>;
|
|
709
709
|
links?: Array<string | {
|
|
710
710
|
title?: string;
|
|
@@ -714,8 +714,9 @@ type NewViewProps<Tag> = {
|
|
|
714
714
|
type NewRelationProps<Kind, Tag, Metadata> = {
|
|
715
715
|
kind?: Kind;
|
|
716
716
|
title?: string;
|
|
717
|
-
description?: string;
|
|
717
|
+
description?: MarkdownOrString | string;
|
|
718
718
|
technology?: string;
|
|
719
|
+
notes?: MarkdownOrString | string;
|
|
719
720
|
tags?: IfNever<Tag, never, [Tag, ...Tag[]]>;
|
|
720
721
|
metadata?: Metadata;
|
|
721
722
|
head?: RelationshipArrowType;
|
package/dist/builder/index.mjs
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { d as defu, t as t$6 } from '../shared/core.
|
|
1
|
+
import { d as defu, t as t$6 } from '../shared/core.DEieYfbG.mjs';
|
|
2
2
|
import { t as t$1, a as t$7 } from '../shared/core.BsSXS-_R.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as t$5 } from '../shared/core.Coi_LOUZ.mjs';
|
|
4
|
+
import { j as e } from '../shared/core.BuQZczj6.mjs';
|
|
5
5
|
import { e as e$3 } from '../shared/core.DRJma0Ol.mjs';
|
|
6
|
-
import { a as _type,
|
|
6
|
+
import { a as _type, u as e$2, _ as _stage, d as isDeployedInstance, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
7
7
|
import { t as t$2 } from '../shared/core.CbT8JVYL.mjs';
|
|
8
|
-
import { a as t$
|
|
9
|
-
import {
|
|
8
|
+
import { a as t$4, c as computeLikeC4Model } from '../shared/core.CWwSgOzF.mjs';
|
|
9
|
+
import { t as t$3 } from '../shared/core.vzLtp8i3.mjs';
|
|
10
|
+
import { assignTagColors } from '../styles/index.mjs';
|
|
11
|
+
import { n as nameFromFqn, d as isSameHierarchy, p as parentFqn } from '../shared/core.CdNCAwq7.mjs';
|
|
10
12
|
import { e as e$1 } from '../shared/core.CqAJJpK_.mjs';
|
|
11
13
|
import { ModelFqnExpr } from '../types/expression-model.mjs';
|
|
12
14
|
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
13
|
-
import { e as exact } from '../shared/core.
|
|
15
|
+
import { e as exact } from '../shared/core.M9ayqQZa.mjs';
|
|
14
16
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
15
17
|
|
|
16
18
|
function t(...t){return t$1(Object.fromEntries,t)}
|
|
@@ -364,6 +366,15 @@ function validateSpec({ tags, elements, deployments, relationships, ...specifica
|
|
|
364
366
|
relationships: ensureObj(relationships ?? {})
|
|
365
367
|
};
|
|
366
368
|
}
|
|
369
|
+
function toMarkdownOrString(input) {
|
|
370
|
+
if (e$2(input)) {
|
|
371
|
+
return null;
|
|
372
|
+
}
|
|
373
|
+
if (typeof input === "string") {
|
|
374
|
+
return { txt: input };
|
|
375
|
+
}
|
|
376
|
+
return input;
|
|
377
|
+
}
|
|
367
378
|
function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _views = /* @__PURE__ */ new Map(), _globals = {
|
|
368
379
|
predicates: {},
|
|
369
380
|
dynamicPredicates: {},
|
|
@@ -375,7 +386,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
375
386
|
elements: structuredClone(spec.elements),
|
|
376
387
|
deployments: structuredClone(spec.deployments),
|
|
377
388
|
relationships: structuredClone(spec.relationships),
|
|
378
|
-
tags: structuredClone(spec.tags),
|
|
389
|
+
tags: assignTagColors(structuredClone(spec.tags)),
|
|
379
390
|
...spec.metadataKeys ? { metadataKeys: spec.metadataKeys } : {},
|
|
380
391
|
customColors: {}
|
|
381
392
|
};
|
|
@@ -404,7 +415,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
404
415
|
exact({
|
|
405
416
|
id,
|
|
406
417
|
title,
|
|
407
|
-
description: description
|
|
418
|
+
description: toMarkdownOrString(description),
|
|
408
419
|
tags,
|
|
409
420
|
links,
|
|
410
421
|
_stage: "parsed",
|
|
@@ -568,6 +579,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
568
579
|
title = "",
|
|
569
580
|
links: _links = [],
|
|
570
581
|
description = null,
|
|
582
|
+
notes = null,
|
|
571
583
|
...props
|
|
572
584
|
} = defu(
|
|
573
585
|
typeof _props === "string" ? { title: _props } : { ..._props },
|
|
@@ -582,7 +594,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
582
594
|
model: target
|
|
583
595
|
},
|
|
584
596
|
title,
|
|
585
|
-
...description && { description:
|
|
597
|
+
...description && { description: toMarkdownOrString(description) },
|
|
598
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
586
599
|
links,
|
|
587
600
|
...props
|
|
588
601
|
}));
|
|
@@ -595,6 +608,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
595
608
|
title = "",
|
|
596
609
|
links,
|
|
597
610
|
description = null,
|
|
611
|
+
notes = null,
|
|
598
612
|
...props
|
|
599
613
|
} = defu(
|
|
600
614
|
typeof _props === "string" ? { title: _props } : { ..._props },
|
|
@@ -605,7 +619,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
605
619
|
model: target
|
|
606
620
|
},
|
|
607
621
|
title,
|
|
608
|
-
...description && { description:
|
|
622
|
+
...description && { description: toMarkdownOrString(description) },
|
|
623
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
609
624
|
links: mapLinks(links),
|
|
610
625
|
...props
|
|
611
626
|
}));
|
|
@@ -633,8 +648,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
633
648
|
id: _id,
|
|
634
649
|
kind,
|
|
635
650
|
title: title ?? nameFromFqn(_id),
|
|
636
|
-
...description && { description:
|
|
637
|
-
...summary && { summary:
|
|
651
|
+
...description && { description: toMarkdownOrString(description) },
|
|
652
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
638
653
|
style: exact({
|
|
639
654
|
icon,
|
|
640
655
|
color: color ?? specStyle?.color,
|
|
@@ -797,8 +812,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
797
812
|
id: _id,
|
|
798
813
|
element: target,
|
|
799
814
|
...title && { title },
|
|
800
|
-
...summary && { summary:
|
|
801
|
-
...description && { description:
|
|
815
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
816
|
+
...description && { description: toMarkdownOrString(description) },
|
|
802
817
|
style: exact({
|
|
803
818
|
icon,
|
|
804
819
|
color,
|
|
@@ -818,6 +833,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
818
833
|
title = null,
|
|
819
834
|
links,
|
|
820
835
|
description = null,
|
|
836
|
+
notes = null,
|
|
821
837
|
...props
|
|
822
838
|
} = typeof _props === "string" ? { title: _props } : { ..._props };
|
|
823
839
|
b.__addDeploymentRelation(exact({
|
|
@@ -828,7 +844,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
828
844
|
deployment: target
|
|
829
845
|
},
|
|
830
846
|
title,
|
|
831
|
-
...description && { description:
|
|
847
|
+
...description && { description: toMarkdownOrString(description) },
|
|
848
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
832
849
|
links: mapLinks(links),
|
|
833
850
|
...props
|
|
834
851
|
}));
|
|
@@ -857,8 +874,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
857
874
|
id: _id,
|
|
858
875
|
kind,
|
|
859
876
|
title: title ?? nameFromFqn(_id),
|
|
860
|
-
...description && { description:
|
|
861
|
-
...summary && { summary:
|
|
877
|
+
...description && { description: toMarkdownOrString(description) },
|
|
878
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
862
879
|
style: exact({
|
|
863
880
|
icon,
|
|
864
881
|
color: color ?? specStyle?.color,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as Any } from '../shared/core.
|
|
2
|
-
import { f as LikeC4Model } from '../shared/core.
|
|
3
|
-
import { P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData,
|
|
1
|
+
import { A as Any, t as toComputed, d as AnyParsed } from '../shared/core.B73yxfPi.mjs';
|
|
2
|
+
import { f as LikeC4Model } from '../shared/core.CpURdWRM.mjs';
|
|
3
|
+
import { P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, p as ParsedView, r as ComputedView } from '../shared/core.DnCLhN8C.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
|
-
import '../shared/core.
|
|
5
|
+
import '../shared/core.DB0Ue5Wx.mjs';
|
|
6
6
|
import '../shared/core.DX-WYEPA.mjs';
|
|
7
|
-
import '../shared/core.
|
|
8
|
-
import '../shared/core.
|
|
7
|
+
import '../shared/core.Dvh1H0T2.mjs';
|
|
8
|
+
import '../shared/core.0zAQeenX.mjs';
|
|
9
9
|
import '../types/fqnRef.mjs';
|
|
10
|
-
import '../shared/core.
|
|
10
|
+
import '../shared/core.mUnpvHtA.mjs';
|
|
11
11
|
import '../types/expression-model.mjs';
|
|
12
12
|
import '../shared/core.CywrQs86.mjs';
|
|
13
13
|
|
|
@@ -22,8 +22,8 @@ type ComputeViewResult<V> = {
|
|
|
22
22
|
};
|
|
23
23
|
declare function unsafeComputeView<A extends Any>(viewsource: ParsedView<A>, likec4model: LikeC4Model<any>): ComputedView<A>;
|
|
24
24
|
declare function computeView<A extends Any>(viewsource: ParsedView<A>, likec4model: LikeC4Model<A>): ComputeViewResult<ComputedView<A>>;
|
|
25
|
-
declare function computeParsedModelData<A extends
|
|
26
|
-
declare function computeLikeC4Model<A extends Any>(parsed: ParsedLikeC4ModelData<A>): LikeC4Model
|
|
25
|
+
declare function computeParsedModelData<A extends AnyParsed, B extends toComputed<A> = toComputed<A>>(parsed: ParsedLikeC4ModelData<A>): ComputedLikeC4ModelData<B>;
|
|
26
|
+
declare function computeLikeC4Model<A extends Any, B extends toComputed<A> = toComputed<A>>(parsed: ParsedLikeC4ModelData<A>): LikeC4Model<B>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Resolve rules of extended views
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { w as willCreateCycle, t as topologicalSortExports, a as t$
|
|
2
|
-
export { c as computeLikeC4Model,
|
|
3
|
-
import { n } from '../shared/core.
|
|
4
|
-
import { t } from '../shared/core.
|
|
5
|
-
import {
|
|
6
|
-
import { G as Graph } from '../shared/core.
|
|
7
|
-
import { c as isNonEmptyArray } from '../shared/core.
|
|
1
|
+
import { w as willCreateCycle, t as topologicalSortExports, a as t$2, n as n$1 } from '../shared/core.CWwSgOzF.mjs';
|
|
2
|
+
export { c as computeLikeC4Model, b as computeParsedModelData, d as computeView, u as unsafeComputeView } from '../shared/core.CWwSgOzF.mjs';
|
|
3
|
+
import { n } from '../shared/core.BhNcrwzK.mjs';
|
|
4
|
+
import { t } from '../shared/core.CRI1AjFj.mjs';
|
|
5
|
+
import { r as isExtendsElementView, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
6
|
+
import { G as Graph } from '../shared/core.DrUt0Lbi.mjs';
|
|
7
|
+
import { c as isNonEmptyArray } from '../shared/core.CdNCAwq7.mjs';
|
|
8
8
|
import { t as t$3 } from '../shared/core.CbT8JVYL.mjs';
|
|
9
|
+
import { t as t$1 } from '../shared/core.vzLtp8i3.mjs';
|
|
9
10
|
|
|
10
11
|
function resolveRulesExtendedViews(unresolvedViews) {
|
|
11
12
|
const g = new Graph({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as Any, U as Unknown,
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel, f as LikeC4Model } from '../../shared/core.
|
|
1
|
+
import { A as Any, U as Unknown, a as ElementId, V as ViewId } from '../../shared/core.B73yxfPi.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel, f as LikeC4Model } from '../../shared/core.CpURdWRM.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
|
-
import '../../shared/core.
|
|
4
|
+
import '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
5
|
import '../../shared/core.DX-WYEPA.mjs';
|
|
6
|
-
import '../../shared/core.
|
|
7
|
-
import '../../shared/core.
|
|
6
|
+
import '../../shared/core.Dvh1H0T2.mjs';
|
|
7
|
+
import '../../shared/core.0zAQeenX.mjs';
|
|
8
8
|
import '../../types/fqnRef.mjs';
|
|
9
|
-
import '../../shared/core.
|
|
9
|
+
import '../../shared/core.mUnpvHtA.mjs';
|
|
10
10
|
import '../../types/expression-model.mjs';
|
|
11
11
|
import '../../shared/core.CywrQs86.mjs';
|
|
12
|
-
import '../../shared/core.
|
|
12
|
+
import '../../shared/core.DnCLhN8C.mjs';
|
|
13
13
|
|
|
14
14
|
type RelationshipsViewData<M extends Any = Unknown> = {
|
|
15
15
|
incomers: ReadonlySet<ElementModel<M>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from '../../shared/core.
|
|
2
|
-
import { f as sortParentsFirst, b as isDescendantOf, i as isAncestor } from '../../shared/core.
|
|
1
|
+
import { t } from '../../shared/core.3ZhnKAlZ.mjs';
|
|
2
|
+
import { f as sortParentsFirst, b as isDescendantOf, i as isAncestor } from '../../shared/core.CdNCAwq7.mjs';
|
|
3
3
|
import { D as DefaultMap } from '../../shared/core.BbE4y-yl.mjs';
|
|
4
4
|
import { a as nonNullable, i as invariant } from '../../shared/core.D4npX2q8.mjs';
|
|
5
5
|
import { t as toSet, a as toArray, i as imap } from '../../shared/core.C3JowhaZ.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { L as LayoutedView, V as ViewManualLayoutSnapshot } from './shared/core.DnCLhN8C.mjs';
|
|
2
|
+
export { t as AnyView, o as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, r as ComputedView, e as DeployedInstance, f as DeploymentElement, g as DeploymentElementRef, D as DeploymentNode, k as DeploymentRelation, j as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, K as DiagramEdge, W as DiagramEdgeDriftReason, J as DiagramNode, U as DiagramNodeDriftReason, M as LayoutType, O as LayoutedDeploymentView, Q as LayoutedDynamicView, N as LayoutedElementView, c as LayoutedLikeC4ModelData, T as LayoutedViewDriftReason, d as LikeC4ModelData, m as LikeC4ModelDump, p as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, p as ParsedView, s as ProcessedView, n as ProjectDump, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, l as SpecTypesFromDump, S as SpecificationDump, u as ViewOnStage, w as ViewRule, x as ViewRulePredicate, v as ViewWithType, B as isComputedView, h as isDeployedInstance, i as isDeploymentNode, H as isDeploymentView, q as isDiagramView, I as isDynamicView, E as isElementView, G as isExtendsElementView, q as isLayoutedView, F as isScopedElementView, y as isViewRulePredicate, z as isViewRuleStyle } from './shared/core.DnCLhN8C.mjs';
|
|
3
|
+
export { B as BiMap, D as DefaultWeakMap, L as LinkedList, M as MultiMap, Q as Queue, a as ancestorsFqn, h as hasProp, i as invariant, b as isAncestor, c as isDescendantOf, d as isNonEmptyArray, e as isSameHierarchy, f as isString, m as memoizeProp, n as nameFromFqn, j as nonNullable, g as nonexhaustive, p as parentFqn, s as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.5ZQ-r3Oa.mjs';
|
|
2
4
|
export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
|
|
3
|
-
export { L as LikeC4Styles } from './shared/core.
|
|
4
|
-
export { A as AndOperator,
|
|
5
|
+
export { L as LikeC4Styles } from './shared/core.Dvh1H0T2.mjs';
|
|
6
|
+
export { A as AndOperator, B as BorderStyle, z as BorderStyles, C as Color, G as ColorLiteral, U as CustomColor, Q as CustomColorDefinitions, E as ElementColorValues, h as ElementShape, D as ElementShapes, k as EqualOperator, j as Expression, u as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, b as LikeC4StyleDefaults, L as LikeC4StylesConfig, a as LikeC4Theme, N as NotOperator, v as OperatorPredicate, O as OrOperator, o as Participant, p as ParticipantOperator, P as PredicateSelector, i as RelationExpr, g as RelationshipArrowType, I as RelationshipArrowTypes, R as RelationshipColorValues, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, l as TagEqual, d as TextSize, T as ThemeColor, c as ThemeColorValues, J as ThemeColors, W as WhereOperator, s as isAndOperator, V as isCustomColor, n as isKindEqual, r as isNotOperator, t as isOrOperator, q as isParticipantOperator, m as isTagEqual, M as isThemeColor, w as whereOperatorAsPredicate } from './shared/core.0zAQeenX.mjs';
|
|
5
7
|
export { i as isIterable } from './shared/core.DXhDWKFZ.mjs';
|
|
6
|
-
export { A as Any, A as AnyAux,
|
|
8
|
+
export { A as Any, A as AnyAux, b as AnyComputed, c as AnyLayouted, d as AnyParsed, e as Aux, k as ExtractOnStage, L as LooseLiteral, M as ModelStage, f as SpecAux, U as Unknown, g as UnknownComputed, h as UnknownLayouted, i as UnknownParsed, o as _layout, m as _stage, n as _type, _ as aux, l as isOnStage, p as preferDescription, j as preferSummary } from './shared/core.B73yxfPi.mjs';
|
|
7
9
|
export { A as AnyFqn, B as BuiltInIcon, D as DeploymentFqn, b as DeploymentKind, j as EdgeId, E as ElementKind, F as Fqn, e as GlobalFqn, G as GroupElementKind, I as Icon, a as IconUrl, M as MarkdownOrString, N as NodeId, P as ProjectId, d as RelationId, R as RelationKind, c as RelationshipKind, k as StepEdgeId, S as StepEdgeIdLiteral, m as StepEdgeKind, T as Tag, V as ViewId, o as extractStep, f as flattenMarkdownOrString, g as isGlobalFqn, i as isGroupElementKind, n as isStepEdgeId, s as scalar, h as splitGlobalFqn, l as stepEdgeId } from './shared/core.DX-WYEPA.mjs';
|
|
8
|
-
export {
|
|
9
|
-
export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.D5fzJWbF.mjs';
|
|
10
|
+
export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.DB0Ue5Wx.mjs';
|
|
10
11
|
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
11
12
|
export { FqnRef } from './types/fqnRef.mjs';
|
|
12
|
-
export { A as AbstractRelationship,
|
|
13
|
+
export { A as AbstractRelationship, q as AnyExcludePredicate, p as AnyIncludePredicate, r as AnyViewRuleStyle, v as AutoLayoutDirection, B as BBox, I as BaseParsedViewProperties, H as BaseViewProperties, W as ComputedDeploymentView, Y as ComputedDynamicView, Q as ComputedEdge, U as ComputedElementView, O as ComputedNode, C as ComputedNodeStyle, Z as DynamicStep, $ as DynamicStepsParallel, _ as DynamicStepsSeries, a7 as DynamicViewDisplayVariant, a5 as DynamicViewIncludeRule, a6 as DynamicViewRule, a1 as DynamicViewStep, f as Element, i as ElementSpecification, E as ElementStyle, aa as ElementViewExcludePredicate, a9 as ElementViewIncludePredicate, ab as ElementViewPredicate, af as ElementViewRule, ac as ElementViewRuleGroup, ae as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, o as LikeC4Project, n as LikeC4ProjectManualLayoutsConfig, m as LikeC4ProjectStyleDefaults, L as LikeC4ProjectStylesConfig, l as LikeC4ProjectTheme, M as ModelGlobals, h as ModelRelation, N as NodeNotation, a8 as ParsedDynamicView, ag as ParsedElementView, P as Point, R as RectBox, g as Relationship, k as RelationshipSpecification, S as Specification, T as TagSpecification, z as ViewAutoLayout, D as ViewManualLayout, x as ViewRuleAutoLayout, t as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, F as ViewType, K as ViewWithHash, J as ViewWithNotation, X as XYPoint, e as ensureSizes, a0 as getParallelStepsPrefix, w as isAutoLayoutDirection, a2 as isDynamicStep, a3 as isDynamicStepsParallel, a4 as isDynamicStepsSeries, j as isTagColorSpecified, y as isViewRuleAutoLayout, u as isViewRuleGlobalPredicateRef, s as isViewRuleGlobalStyle, ad as isViewRuleGroup } from './shared/core.mUnpvHtA.mjs';
|
|
13
14
|
export { ViewChange } from './types/index.mjs';
|
|
14
15
|
import 'type-fest';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Proof-of-concept
|
|
19
|
+
* Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view
|
|
20
|
+
*
|
|
21
|
+
* @param autoLayouted Auto-layouted view
|
|
22
|
+
* @param snapshot The view snapshot with manual-layout
|
|
23
|
+
* @returns The snapshot with the next view applied
|
|
24
|
+
*/
|
|
25
|
+
declare function applyManualLayout<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Calculates drifts comparing latest autoLayouted with manual snapshot.
|
|
29
|
+
*
|
|
30
|
+
* @returns The autoLayouted view with calculated drifts if any.
|
|
31
|
+
*/
|
|
32
|
+
declare function calcDriftsFromSnapshot<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
33
|
+
|
|
34
|
+
export { LayoutedView as DiagramView, LayoutedView, ViewManualLayoutSnapshot, applyManualLayout, calcDriftsFromSnapshot };
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { L as LikeC4Styles, e as ensureSizes } from './shared/core.
|
|
2
|
-
export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.
|
|
3
|
-
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.
|
|
1
|
+
export { L as LikeC4Styles, e as ensureSizes } from './shared/core.DEieYfbG.mjs';
|
|
2
|
+
export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.CdNCAwq7.mjs';
|
|
3
|
+
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.DIE3F6sw.mjs';
|
|
4
4
|
export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
|
|
5
5
|
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
|
|
6
6
|
export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
|
|
7
7
|
export { m as memoizeProp } from './shared/core.BR4zXDH-.mjs';
|
|
8
|
-
export {
|
|
8
|
+
export { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.vzLtp8i3.mjs';
|
|
9
|
+
export { preferDescription, preferSummary } from './types/_aux.mjs';
|
|
9
10
|
export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, N as NodeId, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, g as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, e as isStepEdgeId, s as scalar, c as splitGlobalFqn, d as stepEdgeId } from './shared/core.C_Ni6yHl.mjs';
|
|
10
|
-
export { R as RichText, e as exact } from './shared/core.
|
|
11
|
-
export { _ as _stage, a as _type,
|
|
11
|
+
export { R as RichText, e as exact } from './shared/core.M9ayqQZa.mjs';
|
|
12
|
+
export { b as _layout, _ as _stage, a as _type, j as isAndOperator, n as isComputedView, d as isDeployedInstance, c as isDeploymentNode, s as isDeploymentView, o as isDiagramView, t as isDynamicView, p as isElementView, r as isExtendsElementView, f as isKindEqual, o as isLayoutedView, h as isNotOperator, i as isOnStage, k as isOrOperator, g as isParticipantOperator, q as isScopedElementView, e as isTagEqual, l as isViewRulePredicate, m as isViewRuleStyle, w as whereOperatorAsPredicate } from './shared/core.DH7TXqXf.mjs';
|
|
12
13
|
export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
|
|
13
14
|
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
14
15
|
export { FqnRef } from './types/fqnRef.mjs';
|
|
15
16
|
export { BBox, RectBox, isTagColorSpecified } from './types/index.mjs';
|
|
16
|
-
export {
|
|
17
|
+
export { g as getParallelStepsPrefix, b as isAutoLayoutDirection, d as isDynamicStep, e as isDynamicStepsParallel, f as isDynamicStepsSeries, c as isViewRuleAutoLayout, a as isViewRuleGlobalPredicateRef, i as isViewRuleGlobalStyle, h as isViewRuleGroup } from './shared/core.BuQZczj6.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
4
|
-
import '../../../shared/core.CT1xBp4R.mjs';
|
|
5
|
-
import '../../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
export { C as Connection } from '../../../shared/core.Cog93roC.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.t3qfsVvn.mjs';
|
|
3
|
+
import '../../../shared/core.CpURdWRM.mjs';
|
|
6
4
|
import 'type-fest';
|
|
7
|
-
import '../../../shared/core.
|
|
8
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.Dvh1H0T2.mjs';
|
|
6
|
+
import '../../../shared/core.0zAQeenX.mjs';
|
|
7
|
+
import '../../../shared/core.B73yxfPi.mjs';
|
|
8
|
+
import '../../../shared/core.DB0Ue5Wx.mjs';
|
|
9
9
|
import '../../../shared/core.DX-WYEPA.mjs';
|
|
10
10
|
import '../../../types/fqnRef.mjs';
|
|
11
|
-
import '../../../shared/core.
|
|
11
|
+
import '../../../shared/core.mUnpvHtA.mjs';
|
|
12
12
|
import '../../../types/expression-model.mjs';
|
|
13
13
|
import '../../../shared/core.CywrQs86.mjs';
|
|
14
|
-
import '../../../shared/core.
|
|
14
|
+
import '../../../shared/core.DnCLhN8C.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.DqlrMlsf.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.D_f4F48-.mjs';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, f as model } from '../../shared/core.
|
|
4
|
-
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.
|
|
5
|
-
import '../../shared/core.
|
|
6
|
-
import '../../shared/core.CT1xBp4R.mjs';
|
|
7
|
-
import '../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
import { C as Connection } from '../../shared/core.Cog93roC.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.t3qfsVvn.mjs';
|
|
3
|
+
export { C as ConnectionModel, f as model } from '../../shared/core.BGFjN3nv.mjs';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
|
+
import '../../shared/core.CpURdWRM.mjs';
|
|
8
6
|
import 'type-fest';
|
|
9
|
-
import '../../shared/core.
|
|
7
|
+
import '../../shared/core.Dvh1H0T2.mjs';
|
|
8
|
+
import '../../shared/core.0zAQeenX.mjs';
|
|
9
|
+
import '../../shared/core.B73yxfPi.mjs';
|
|
10
10
|
import '../../shared/core.DX-WYEPA.mjs';
|
|
11
11
|
import '../../types/fqnRef.mjs';
|
|
12
|
-
import '../../shared/core.
|
|
12
|
+
import '../../shared/core.mUnpvHtA.mjs';
|
|
13
13
|
import '../../types/expression-model.mjs';
|
|
14
14
|
import '../../shared/core.CywrQs86.mjs';
|
|
15
|
-
import '../../shared/core.
|
|
15
|
+
import '../../shared/core.DnCLhN8C.mjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Check if connection is nested inside another connection
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../shared/core.DqlrMlsf.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.D_f4F48-.mjs';
|
|
3
|
+
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.CQPEY2wQ.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
4
|
-
import '../../../shared/core.CT1xBp4R.mjs';
|
|
5
|
-
import '../../../shared/core.CDvVInBp.mjs';
|
|
1
|
+
export { C as Connection } from '../../../shared/core.Cog93roC.mjs';
|
|
2
|
+
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.BGFjN3nv.mjs';
|
|
3
|
+
import '../../../shared/core.CpURdWRM.mjs';
|
|
6
4
|
import 'type-fest';
|
|
7
|
-
import '../../../shared/core.
|
|
8
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.Dvh1H0T2.mjs';
|
|
6
|
+
import '../../../shared/core.0zAQeenX.mjs';
|
|
7
|
+
import '../../../shared/core.B73yxfPi.mjs';
|
|
8
|
+
import '../../../shared/core.DB0Ue5Wx.mjs';
|
|
9
9
|
import '../../../shared/core.DX-WYEPA.mjs';
|
|
10
10
|
import '../../../types/fqnRef.mjs';
|
|
11
|
-
import '../../../shared/core.
|
|
11
|
+
import '../../../shared/core.mUnpvHtA.mjs';
|
|
12
12
|
import '../../../types/expression-model.mjs';
|
|
13
13
|
import '../../../shared/core.CywrQs86.mjs';
|
|
14
|
-
import '../../../shared/core.
|
|
14
|
+
import '../../../shared/core.DnCLhN8C.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.DqlrMlsf.mjs';
|
|
2
|
+
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.CQPEY2wQ.mjs';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.
|
|
2
|
-
export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.
|
|
3
|
-
import { A as Any } from '../shared/core.
|
|
4
|
-
export { C as Connection } from '../shared/core.
|
|
5
|
-
export { C as ConnectionModel, f as modelConnection } from '../shared/core.
|
|
6
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.
|
|
1
|
+
import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.CpURdWRM.mjs';
|
|
2
|
+
export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, f as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, h as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.CpURdWRM.mjs';
|
|
3
|
+
import { A as Any } from '../shared/core.B73yxfPi.mjs';
|
|
4
|
+
export { C as Connection } from '../shared/core.Cog93roC.mjs';
|
|
5
|
+
export { C as ConnectionModel, f as modelConnection } from '../shared/core.BGFjN3nv.mjs';
|
|
6
|
+
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.t3qfsVvn.mjs';
|
|
7
7
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
8
|
-
import '../shared/core.CT1xBp4R.mjs';
|
|
9
|
-
import '../shared/core.CDvVInBp.mjs';
|
|
10
8
|
import 'type-fest';
|
|
11
|
-
import '../shared/core.
|
|
9
|
+
import '../shared/core.Dvh1H0T2.mjs';
|
|
10
|
+
import '../shared/core.0zAQeenX.mjs';
|
|
11
|
+
import '../shared/core.DB0Ue5Wx.mjs';
|
|
12
12
|
import '../types/fqnRef.mjs';
|
|
13
13
|
import '../shared/core.DX-WYEPA.mjs';
|
|
14
|
-
import '../shared/core.
|
|
14
|
+
import '../shared/core.mUnpvHtA.mjs';
|
|
15
15
|
import '../types/expression-model.mjs';
|
|
16
16
|
import '../shared/core.CywrQs86.mjs';
|
|
17
|
-
import '../shared/core.
|
|
17
|
+
import '../shared/core.DnCLhN8C.mjs';
|
|
18
18
|
|
|
19
19
|
type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
|
|
20
20
|
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.
|
|
3
|
-
export { C as Connection } from '../shared/core.
|
|
4
|
-
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.
|
|
1
|
+
export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.CRI1AjFj.mjs';
|
|
2
|
+
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.D_f4F48-.mjs';
|
|
3
|
+
export { C as Connection } from '../shared/core.DqlrMlsf.mjs';
|
|
4
|
+
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.CQPEY2wQ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TupleToUnion, Tagged } from 'type-fest';
|
|
2
|
-
import { A as Any, T as Tag,
|
|
3
|
-
import { N as NonEmptyArray, E as ExclusiveUnion } from './core.
|
|
2
|
+
import { A as Any, T as Tag, q as AllKinds, r as Tags, S as StrictViewId, E as ElementKind } from './core.B73yxfPi.mjs';
|
|
3
|
+
import { N as NonEmptyArray, E as ExclusiveUnion } from './core.DB0Ue5Wx.mjs';
|
|
4
4
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
5
5
|
import { M as MarkdownOrString, I as Icon } from './core.DX-WYEPA.mjs';
|
|
6
6
|
|
|
@@ -331,4 +331,4 @@ declare namespace Expression {
|
|
|
331
331
|
function isRelation<A extends AnyAux>(expr: Expression<A>): expr is RelationExpr.Any<A>;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
export { type AndOperator as A,
|
|
334
|
+
export { type AndOperator as A, type BorderStyle as B, type Color as C, ElementShapes as D, type ElementColorValues as E, FqnExpr as F, type ColorLiteral as G, type HexColor as H, RelationshipArrowTypes as I, ThemeColors as J, type KindEqual as K, type LikeC4StylesConfig as L, isThemeColor as M, type NotOperator as N, type OrOperator as O, type PredicateSelector as P, type CustomColorDefinitions as Q, type RelationshipColorValues as R, type SpacingSize as S, type ThemeColor as T, type CustomColor as U, isCustomColor as V, type WhereOperator as W, type LikeC4Theme as a, type LikeC4StyleDefaults as b, type ThemeColorValues as c, type TextSize as d, type ShapeSize as e, type RelationshipLineType as f, type RelationshipArrowType as g, type ElementShape as h, RelationExpr as i, Expression as j, type EqualOperator as k, type TagEqual as l, isTagEqual as m, isKindEqual as n, type Participant as o, type ParticipantOperator as p, isParticipantOperator as q, isNotOperator as r, isAndOperator as s, isOrOperator as t, type Filterable as u, type OperatorPredicate as v, whereOperatorAsPredicate as w, Sizes as x, type Size as y, BorderStyles as z };
|