@likec4/core 1.44.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 +14 -13
- package/dist/builder/index.mjs +29 -14
- package/dist/compute-view/index.d.mts +6 -6
- package/dist/compute-view/index.mjs +6 -5
- package/dist/compute-view/relationships-view/index.d.mts +6 -6
- package/dist/compute-view/relationships-view/index.mjs +2 -2
- package/dist/index.d.mts +25 -5
- package/dist/index.mjs +2 -1
- package/dist/model/connection/deployment/index.d.mts +8 -8
- package/dist/model/connection/deployment/index.mjs +2 -2
- package/dist/model/connection/index.d.mts +9 -9
- package/dist/model/connection/index.mjs +3 -3
- package/dist/model/connection/model/index.d.mts +8 -8
- package/dist/model/connection/model/index.mjs +2 -2
- package/dist/model/index.d.mts +11 -25
- package/dist/model/index.mjs +4 -4
- package/dist/shared/{core.BnOetIAR.d.mts → core.0zAQeenX.d.mts} +2 -2
- package/dist/shared/{core.Bv3cd-jC.mjs → core.3ZhnKAlZ.mjs} +9 -5
- package/dist/shared/{core.CDOKQTW6.d.mts → core.B73yxfPi.d.mts} +2 -2
- package/dist/shared/{core.DTJYgLXI.d.mts → core.BGFjN3nv.d.mts} +3 -3
- package/dist/shared/core.BhNcrwzK.mjs +7 -0
- package/dist/shared/core.BkVA6gjl.mjs +5 -0
- package/dist/shared/{core.bKIs4oDO.mjs → core.CQPEY2wQ.mjs} +5 -4
- package/dist/shared/{core.h4TqqSC0.mjs → core.CRI1AjFj.mjs} +67 -1172
- package/dist/shared/{core.23WeDKcI.mjs → core.CWwSgOzF.mjs} +224 -224
- package/dist/shared/{core.6VsRBhGY.mjs → core.CdNCAwq7.mjs} +1 -1
- package/dist/shared/{core.BnDbAOR2.d.mts → core.Cog93roC.d.mts} +2 -2
- package/dist/shared/core.Coi_LOUZ.mjs +7 -0
- package/dist/shared/{core.DjAM-S6a.d.mts → core.CpURdWRM.d.mts} +14 -13
- package/dist/shared/{core.DFCHU59b.mjs → core.DViDmiAu.mjs} +2 -2
- package/dist/shared/{core.CHwVhuc9.mjs → core.D_f4F48-.mjs} +10 -13
- package/dist/shared/{core.CbsSAn1j.mjs → core.DbfO90vF.mjs} +1 -12
- package/dist/shared/{core.CKNmSm2W.d.mts → core.DnCLhN8C.d.mts} +7 -14
- package/dist/shared/{core.C0Ye2OCr.mjs → core.DqlrMlsf.mjs} +1 -1
- package/dist/shared/{core.8mmHFn9g.d.mts → core.Dvh1H0T2.d.mts} +2 -2
- package/dist/shared/{core.BMtVqKl7.d.mts → core.mUnpvHtA.d.mts} +11 -5
- package/dist/shared/core.oSV6SRfk.mjs +13 -0
- package/dist/shared/{core.WwMWeiFL.d.mts → core.t3qfsVvn.d.mts} +3 -3
- package/dist/shared/core.vzLtp8i3.mjs +1282 -0
- package/dist/styles/index.d.mts +5 -5
- package/dist/styles/index.mjs +3 -3
- package/dist/types/_aux.d.mts +1 -1
- package/dist/types/expression-model.d.mts +2 -2
- package/dist/types/expression.d.mts +2 -2
- package/dist/types/fqnRef.d.mts +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.mjs +23 -9
- package/dist/utils/index.mjs +5 -4
- package/package.json +8 -8
- package/dist/shared/core.B9BjmjuH.mjs +0 -9
- 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 {
|
|
3
|
-
import { D as DeploymentFqn, F as Fqn } from '../shared/core.DX-WYEPA.mjs';
|
|
4
|
-
import {
|
|
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,
|
|
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
8
|
import { N as NonEmptyArray, K as KeysOf } from '../shared/core.DB0Ue5Wx.mjs';
|
|
9
|
-
import { Y as setProject,
|
|
10
|
-
import '../shared/core.
|
|
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,14 +1,14 @@
|
|
|
1
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 { t as t$5 } from '../shared/core.
|
|
3
|
+
import { t as t$5 } from '../shared/core.Coi_LOUZ.mjs';
|
|
4
4
|
import { j as e } from '../shared/core.BuQZczj6.mjs';
|
|
5
5
|
import { e as e$3 } from '../shared/core.DRJma0Ol.mjs';
|
|
6
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$4, c as computeLikeC4Model } from '../shared/core.
|
|
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
10
|
import { assignTagColors } from '../styles/index.mjs';
|
|
11
|
-
import { n as nameFromFqn, d as isSameHierarchy, p as parentFqn } from '../shared/core.
|
|
11
|
+
import { n as nameFromFqn, d as isSameHierarchy, p as parentFqn } from '../shared/core.CdNCAwq7.mjs';
|
|
12
12
|
import { e as e$1 } from '../shared/core.CqAJJpK_.mjs';
|
|
13
13
|
import { ModelFqnExpr } from '../types/expression-model.mjs';
|
|
14
14
|
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
@@ -366,6 +366,15 @@ function validateSpec({ tags, elements, deployments, relationships, ...specifica
|
|
|
366
366
|
relationships: ensureObj(relationships ?? {})
|
|
367
367
|
};
|
|
368
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
|
+
}
|
|
369
378
|
function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [], _views = /* @__PURE__ */ new Map(), _globals = {
|
|
370
379
|
predicates: {},
|
|
371
380
|
dynamicPredicates: {},
|
|
@@ -406,7 +415,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
406
415
|
exact({
|
|
407
416
|
id,
|
|
408
417
|
title,
|
|
409
|
-
description: description
|
|
418
|
+
description: toMarkdownOrString(description),
|
|
410
419
|
tags,
|
|
411
420
|
links,
|
|
412
421
|
_stage: "parsed",
|
|
@@ -570,6 +579,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
570
579
|
title = "",
|
|
571
580
|
links: _links = [],
|
|
572
581
|
description = null,
|
|
582
|
+
notes = null,
|
|
573
583
|
...props
|
|
574
584
|
} = defu(
|
|
575
585
|
typeof _props === "string" ? { title: _props } : { ..._props },
|
|
@@ -584,7 +594,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
584
594
|
model: target
|
|
585
595
|
},
|
|
586
596
|
title,
|
|
587
|
-
...description && { description:
|
|
597
|
+
...description && { description: toMarkdownOrString(description) },
|
|
598
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
588
599
|
links,
|
|
589
600
|
...props
|
|
590
601
|
}));
|
|
@@ -597,6 +608,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
597
608
|
title = "",
|
|
598
609
|
links,
|
|
599
610
|
description = null,
|
|
611
|
+
notes = null,
|
|
600
612
|
...props
|
|
601
613
|
} = defu(
|
|
602
614
|
typeof _props === "string" ? { title: _props } : { ..._props },
|
|
@@ -607,7 +619,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
607
619
|
model: target
|
|
608
620
|
},
|
|
609
621
|
title,
|
|
610
|
-
...description && { description:
|
|
622
|
+
...description && { description: toMarkdownOrString(description) },
|
|
623
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
611
624
|
links: mapLinks(links),
|
|
612
625
|
...props
|
|
613
626
|
}));
|
|
@@ -635,8 +648,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
635
648
|
id: _id,
|
|
636
649
|
kind,
|
|
637
650
|
title: title ?? nameFromFqn(_id),
|
|
638
|
-
...description && { description:
|
|
639
|
-
...summary && { summary:
|
|
651
|
+
...description && { description: toMarkdownOrString(description) },
|
|
652
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
640
653
|
style: exact({
|
|
641
654
|
icon,
|
|
642
655
|
color: color ?? specStyle?.color,
|
|
@@ -799,8 +812,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
799
812
|
id: _id,
|
|
800
813
|
element: target,
|
|
801
814
|
...title && { title },
|
|
802
|
-
...summary && { summary:
|
|
803
|
-
...description && { description:
|
|
815
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
816
|
+
...description && { description: toMarkdownOrString(description) },
|
|
804
817
|
style: exact({
|
|
805
818
|
icon,
|
|
806
819
|
color,
|
|
@@ -820,6 +833,7 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
820
833
|
title = null,
|
|
821
834
|
links,
|
|
822
835
|
description = null,
|
|
836
|
+
notes = null,
|
|
823
837
|
...props
|
|
824
838
|
} = typeof _props === "string" ? { title: _props } : { ..._props };
|
|
825
839
|
b.__addDeploymentRelation(exact({
|
|
@@ -830,7 +844,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
830
844
|
deployment: target
|
|
831
845
|
},
|
|
832
846
|
title,
|
|
833
|
-
...description && { description:
|
|
847
|
+
...description && { description: toMarkdownOrString(description) },
|
|
848
|
+
...notes && { notes: toMarkdownOrString(notes) },
|
|
834
849
|
links: mapLinks(links),
|
|
835
850
|
...props
|
|
836
851
|
}));
|
|
@@ -859,8 +874,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
859
874
|
id: _id,
|
|
860
875
|
kind,
|
|
861
876
|
title: title ?? nameFromFqn(_id),
|
|
862
|
-
...description && { description:
|
|
863
|
-
...summary && { summary:
|
|
877
|
+
...description && { description: toMarkdownOrString(description) },
|
|
878
|
+
...summary && { summary: toMarkdownOrString(summary) },
|
|
864
879
|
style: exact({
|
|
865
880
|
icon,
|
|
866
881
|
color: color ?? specStyle?.color,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as Any, t as toComputed,
|
|
2
|
-
import {
|
|
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
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
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { w as willCreateCycle, t as topologicalSortExports, a as t$2, n as n$1 } from '../shared/core.
|
|
2
|
-
export { c as computeLikeC4Model, b as computeParsedModelData, d as computeView, u as unsafeComputeView } from '../shared/core.
|
|
3
|
-
import { n } from '../shared/core.
|
|
4
|
-
import { t
|
|
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
5
|
import { r as isExtendsElementView, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
6
6
|
import { G as Graph } from '../shared/core.DrUt0Lbi.mjs';
|
|
7
|
-
import { c as isNonEmptyArray } from '../shared/core.
|
|
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,
|
|
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
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
|
+
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';
|
|
1
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 { t as AnyView, n as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, r as ComputedView, d as DeployedInstance, e as DeploymentElement, f as DeploymentElementRef, D as DeploymentNode, j as DeploymentRelation, h as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, J as DiagramEdge, U as DiagramEdgeDriftReason, I as DiagramNode, T as DiagramNodeDriftReason, p as DiagramView, K as LayoutType, N as LayoutedDeploymentView, O as LayoutedDynamicView, M as LayoutedElementView, L as LayoutedLikeC4ModelData, p as LayoutedView, Q as LayoutedViewDriftReason, c as LikeC4ModelData, l as LikeC4ModelDump, o as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, o as ParsedView, s as ProcessedView, m as ProjectDump, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, k as SpecTypesFromDump, S as SpecificationDump, W as ViewManualLayoutSnapshot, V as ViewOnStage, v as ViewRule, w as ViewRulePredicate, u as ViewWithType, z as isComputedView, g as isDeployedInstance, i as isDeploymentNode, G as isDeploymentView, q as isDiagramView, H as isDynamicView, B as isElementView, F as isExtendsElementView, q as isLayoutedView, E as isScopedElementView, x as isViewRulePredicate, y as isViewRuleStyle } from './shared/core.CKNmSm2W.mjs';
|
|
9
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, q as AnyExcludePredicate, p as AnyIncludePredicate, r as AnyViewRuleStyle, v as AutoLayoutDirection, B as BBox,
|
|
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,10 +1,11 @@
|
|
|
1
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.
|
|
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
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 { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.vzLtp8i3.mjs';
|
|
8
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
11
|
export { R as RichText, e as exact } from './shared/core.M9ayqQZa.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.
|
|
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';
|
|
4
4
|
import 'type-fest';
|
|
5
|
-
import '../../../shared/core.
|
|
6
|
-
import '../../../shared/core.
|
|
7
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.Dvh1H0T2.mjs';
|
|
6
|
+
import '../../../shared/core.0zAQeenX.mjs';
|
|
7
|
+
import '../../../shared/core.B73yxfPi.mjs';
|
|
8
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.
|
|
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
4
|
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
|
-
import '../../shared/core.
|
|
5
|
+
import '../../shared/core.CpURdWRM.mjs';
|
|
6
6
|
import 'type-fest';
|
|
7
|
-
import '../../shared/core.
|
|
8
|
-
import '../../shared/core.
|
|
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.
|
|
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';
|
|
4
4
|
import 'type-fest';
|
|
5
|
-
import '../../../shared/core.
|
|
6
|
-
import '../../../shared/core.
|
|
7
|
-
import '../../../shared/core.
|
|
5
|
+
import '../../../shared/core.Dvh1H0T2.mjs';
|
|
6
|
+
import '../../../shared/core.0zAQeenX.mjs';
|
|
7
|
+
import '../../../shared/core.B73yxfPi.mjs';
|
|
8
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 {
|
|
2
|
-
export { g as AnyLikeC4Model, l as DeploymentOrFqn, i as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel,
|
|
3
|
-
import { A as Any } from '../shared/core.
|
|
4
|
-
|
|
5
|
-
export { C as
|
|
6
|
-
export {
|
|
7
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.WwMWeiFL.mjs';
|
|
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';
|
|
8
7
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
9
8
|
import 'type-fest';
|
|
10
|
-
import '../shared/core.
|
|
11
|
-
import '../shared/core.
|
|
9
|
+
import '../shared/core.Dvh1H0T2.mjs';
|
|
10
|
+
import '../shared/core.0zAQeenX.mjs';
|
|
12
11
|
import '../shared/core.DB0Ue5Wx.mjs';
|
|
13
12
|
import '../types/fqnRef.mjs';
|
|
14
13
|
import '../shared/core.DX-WYEPA.mjs';
|
|
15
|
-
import '../shared/core.
|
|
14
|
+
import '../shared/core.mUnpvHtA.mjs';
|
|
16
15
|
import '../types/expression-model.mjs';
|
|
17
16
|
import '../shared/core.CywrQs86.mjs';
|
|
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>;
|
|
@@ -53,18 +53,4 @@ declare const getViewFolderPath: (title: string) => string | null;
|
|
|
53
53
|
*/
|
|
54
54
|
declare const extractViewTitleFromPath: (title: string) => string;
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
* Proof-of-concept
|
|
58
|
-
* Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view
|
|
59
|
-
*
|
|
60
|
-
* @param autoLayouted Auto-layouted view
|
|
61
|
-
* @param snapshot The view snapshot with manual-layout
|
|
62
|
-
* @returns The snapshot with the next view applied
|
|
63
|
-
*/
|
|
64
|
-
declare function applyManualLayout<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
65
|
-
/**
|
|
66
|
-
* Applies drift reasons to autoLayouted view if there are any.
|
|
67
|
-
*/
|
|
68
|
-
declare function applyLayoutDriftReasons<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
69
|
-
|
|
70
|
-
export { AnyRelationshipModel, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, applyLayoutDriftReasons, applyManualLayout, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
|
|
56
|
+
export { AnyRelationshipModel, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
|
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,5 +1,5 @@
|
|
|
1
1
|
import { TupleToUnion, Tagged } from 'type-fest';
|
|
2
|
-
import { A as Any, T as Tag, q as AllKinds, r as Tags,
|
|
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
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';
|
|
@@ -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 };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
|
|
2
|
-
import { e } from './core.CqAJJpK_.mjs';
|
|
2
|
+
import { e as e$1 } from './core.CqAJJpK_.mjs';
|
|
3
|
+
|
|
4
|
+
const e={done:true,hasNext:false},t$1={done:false,hasNext:false},n$1=()=>e;
|
|
5
|
+
|
|
6
|
+
function t(e,...t){let a=e,o=t.map(e=>`lazy`in e?r(e):void 0),s=0;for(;s<t.length;){if(o[s]===void 0||!i(a)){let e=t[s];a=e(a),s+=1;continue}let e=[];for(let n=s;n<t.length;n++){let t=o[n];if(t===void 0||(e.push(t),t.isSingle))break}let r=[];for(let t of a)if(n(t,r,e))break;let{isSingle:c}=e.at(-1);a=c?r[0]:r,s+=e.length;}return a}function n(t,r,i){if(i.length===0)return r.push(t),false;let a=t,o=t$1,s=false;for(let[e,t]of i.entries()){let{index:c,items:l}=t;if(l.push(a),o=t(a,c,l),t.index+=1,o.hasNext){if(o.hasMany??false){for(let t of o.next)if(n(t,r,i.slice(e+1)))return true;return s}a=o.next;}if(!o.hasNext)break;o.done&&(s=true);}return o.hasNext&&r.push(a),s}function r(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??false,index:0,items:[]})}function i(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}
|
|
3
7
|
|
|
4
8
|
var naturalCompareLite = {exports: {}};
|
|
5
9
|
|
|
@@ -70,13 +74,13 @@ const compare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareLiteExports);
|
|
|
70
74
|
|
|
71
75
|
function compareNatural(a, b) {
|
|
72
76
|
if (a === b) return 0;
|
|
73
|
-
if (e(a)) {
|
|
74
|
-
if (e(b)) {
|
|
77
|
+
if (e$1(a)) {
|
|
78
|
+
if (e$1(b)) {
|
|
75
79
|
return compare(a, b);
|
|
76
80
|
}
|
|
77
81
|
return 1;
|
|
78
82
|
}
|
|
79
|
-
return e(b) ? -1 : 0;
|
|
83
|
+
return e$1(b) ? -1 : 0;
|
|
80
84
|
}
|
|
81
85
|
function compareNaturalHierarchically(separator = ".", deepestFirst = false) {
|
|
82
86
|
return (a, b) => {
|
|
@@ -99,4 +103,4 @@ function compareNaturalHierarchically(separator = ".", deepestFirst = false) {
|
|
|
99
103
|
};
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
export {
|
|
106
|
+
export { t$1 as a, compareNaturalHierarchically as b, compareNatural as c, n$1 as n, t };
|
|
@@ -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 {
|
|
3
|
+
import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, N as NodeId$1, j 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.DX-WYEPA.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Determines the stage of the model:
|
|
@@ -297,4 +297,4 @@ declare namespace _aux {
|
|
|
297
297
|
export { type _aux_AllKinds as AllKinds, type _aux_Any as Any, type Any as AnyAux, type _aux_AnyComputed as AnyComputed, type _aux_AnyLayouted as AnyLayouted, type _aux_AnyOnStage as AnyOnStage, type _aux_AnyParsed as AnyParsed, type _aux_AnySpec as AnySpec, type _aux_Aux as Aux, type _aux_DeploymentFqn as DeploymentFqn, type _aux_DeploymentId as DeploymentId, type _aux_DeploymentKind as DeploymentKind, type _aux_EdgeId as EdgeId, type _aux_ElementId as ElementId, type _aux_ElementKind as ElementKind, type _aux_Fqn as Fqn, type _aux_LooseDeploymentId as LooseDeploymentId, type _aux_LooseDeploymentKind as LooseDeploymentKind, type _aux_LooseElementId as LooseElementId, type _aux_LooseElementKind as LooseElementKind, type _aux_LooseLiteral as LooseLiteral, type _aux_LooseRelationKind as LooseRelationKind, type _aux_LooseTag as LooseTag, type _aux_LooseTags as LooseTags, type _aux_LooseViewId as LooseViewId, type _aux_Metadata as Metadata, type _aux_MetadataKey as MetadataKey, type _aux_Never as Never, type _aux_NodeId as NodeId, type _aux_OrString as OrString, type _aux_PickByStage as PickByStage, type _aux_ProjectId as ProjectId, type _aux_RelationId as RelationId, type _aux_RelationKind as RelationKind, type _aux_Spec as Spec, type _aux_SpecAux as SpecAux, type _aux_Stage as Stage, type DeploymentFqn as StrictDeploymentFqn, type _aux_StrictDeploymentKind as StrictDeploymentKind, type _aux_StrictElementKind as StrictElementKind, type Fqn as StrictFqn, type _aux_StrictProjectId as StrictProjectId, type _aux_StrictRelationKind as StrictRelationKind, type _aux_StrictTag as StrictTag, type _aux_StrictViewId as StrictViewId, type _aux_Tag as Tag, type _aux_Tags as Tags, type _aux_Unknown as Unknown, type _aux_UnknownComputed as UnknownComputed, type _aux_UnknownLayouted as UnknownLayouted, type _aux_UnknownParsed as UnknownParsed, type _aux_ViewId as ViewId, type _aux_WithDescriptionAndTech as WithDescriptionAndTech, type _aux_WithLinks as WithLinks, type _aux_WithMetadata as WithMetadata, type _aux_WithNotation as WithNotation, type _aux_WithOptionalLinks as WithOptionalLinks, type _aux_WithOptionalTags as WithOptionalTags, type _aux_WithTags as WithTags, _aux_preferDescription as preferDescription, _aux_preferSummary as preferSummary, type _aux_setProject as setProject, type _aux_setStage as setStage, type _aux_toComputed as toComputed, type _aux_toLayouted as toLayouted, type _aux_toParsed as toParsed };
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
export { type AnyOnStage as $, type Any as A, type Never as B, type MetadataKey as C, type DeploymentId as D, type
|
|
300
|
+
export { type AnyOnStage as $, type Any as A, type Never as B, type MetadataKey as C, type DeploymentId as D, type ElementKind as E, type Fqn as F, type WithTags as G, type Metadata as H, type LooseTag as I, type RelationId as J, type LooseElementId as K, type LooseLiteral as L, type ModelStage as M, type NodeId as N, type LooseDeploymentId as O, type ProjectId as P, type Stage as Q, type RelationKind as R, type StrictViewId as S, type Tag as T, type Unknown as U, type ViewId as V, type WithDescriptionAndTech as W, type LooseViewId as X, type setProject as Y, type AnySpec as Z, _aux as _, type ElementId as a, type PickByStage as a0, type setStage as a1, type toParsed as a2, type toLayouted as a3, type Spec as a4, type StrictProjectId as a5, type StrictTag as a6, type StrictElementKind as a7, type StrictDeploymentKind as a8, type StrictRelationKind as a9, type WithLinks as aa, type OrString as ab, type LooseTags as ac, type LooseElementKind as ad, type LooseDeploymentKind as ae, type LooseRelationKind as af, type AnyComputed as b, type AnyLayouted as c, type AnyParsed as d, type Aux as e, type SpecAux as f, type UnknownComputed as g, type UnknownLayouted as h, type UnknownParsed as i, preferSummary as j, type ExtractOnStage as k, isOnStage as l, _stage as m, _type as n, _layout as o, preferDescription as p, type AllKinds as q, type Tags as r, type WithOptionalTags as s, type toComputed as t, type WithOptionalLinks as u, type WithMetadata as v, type WithNotation as w, type DeploymentFqn as x, type DeploymentKind as y, type EdgeId as z };
|
|
@@ -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.Cog93roC.mjs';
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel } from './core.CpURdWRM.mjs';
|
|
3
|
+
import { A as Any, U as Unknown, z as EdgeId } from './core.B73yxfPi.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Connection refers to any relationships between two elements,
|