@likec4/core 1.46.4 → 1.48.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/LICENSE +1 -1
- package/dist/_chunks/Builder.view-element.mjs +3284 -0
- package/dist/_chunks/LikeC4Model.d.mts +1287 -0
- package/dist/_chunks/LikeC4Styles.mjs +691 -0
- package/dist/_chunks/RichText.d.mts +84 -0
- package/dist/_chunks/RichText.mjs +148 -0
- package/dist/_chunks/_aux.d.mts +289 -0
- package/dist/_chunks/_aux.mjs +18 -0
- package/dist/_chunks/_types.d.mts +781 -0
- package/dist/_chunks/_types2.d.mts +38 -0
- package/dist/_chunks/assignTagColors.mjs +24 -0
- package/dist/_chunks/calcDriftsFromSnapshot.mjs +379 -0
- package/dist/_chunks/connection.mjs +0 -0
- package/dist/_chunks/const.d.mts +43 -0
- package/dist/_chunks/const.mjs +33 -0
- package/dist/_chunks/expression-model.d.mts +192 -0
- package/dist/_chunks/expression-model.mjs +103 -0
- package/dist/_chunks/expression.d.mts +347 -0
- package/dist/_chunks/expression.mjs +107 -0
- package/dist/_chunks/find.d.mts +82 -0
- package/dist/_chunks/find.mjs +646 -0
- package/dist/_chunks/find2.d.mts +78 -0
- package/dist/_chunks/find2.mjs +287 -0
- package/dist/_chunks/fqnRef.d.mts +58 -0
- package/dist/_chunks/fqnRef.mjs +41 -0
- package/dist/_chunks/geometry.mjs +335 -0
- package/dist/_chunks/index.d.mts +169 -0
- package/dist/_chunks/index2.d.mts +937 -0
- package/dist/_chunks/index3.d.mts +146 -0
- package/dist/_chunks/index4.d.mts +62 -0
- package/dist/_chunks/index5.d.mts +42 -0
- package/dist/_chunks/index6.d.mts +43 -0
- package/dist/{shared/core.OtRNdMxy.d.mts → _chunks/index7.d.mts} +113 -197
- package/dist/_chunks/index8.d.mts +144 -0
- package/dist/_chunks/invariant.mjs +18 -0
- package/dist/_chunks/iterable.mjs +146 -0
- package/dist/_chunks/libs/@mantine/colors-generator.mjs +3416 -0
- package/dist/_chunks/libs/@ungap/structured-clone.mjs +213 -0
- package/dist/_chunks/libs/bail.mjs +14 -0
- package/dist/_chunks/libs/ccount.mjs +25 -0
- package/dist/_chunks/libs/character-entities-html4.mjs +263 -0
- package/dist/_chunks/libs/character-entities-legacy.mjs +117 -0
- package/dist/_chunks/libs/character-entities.mjs +2136 -0
- package/dist/_chunks/libs/comma-separated-tokens.mjs +18 -0
- package/dist/_chunks/libs/decode-named-character-reference.mjs +21 -0
- package/dist/_chunks/libs/defu.mjs +42 -0
- package/dist/_chunks/libs/devlop.mjs +5 -0
- package/dist/_chunks/libs/escape-string-regexp.mjs +8 -0
- package/dist/_chunks/libs/extend.mjs +77 -0
- package/dist/_chunks/libs/graphology-dag.mjs +703 -0
- package/dist/_chunks/libs/graphology-types.d.mts +601 -0
- package/dist/_chunks/libs/graphology.d.mts +6 -0
- package/dist/_chunks/libs/graphology.mjs +4565 -0
- package/dist/_chunks/libs/hast-util-sanitize.mjs +863 -0
- package/dist/_chunks/libs/hast-util-to-html.mjs +2696 -0
- package/dist/_chunks/libs/is-plain-obj.mjs +9 -0
- package/dist/_chunks/libs/longest-streak.mjs +30 -0
- package/dist/_chunks/libs/markdown-table.mjs +290 -0
- package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +653 -0
- package/dist/_chunks/libs/mdast-util-from-markdown.mjs +8522 -0
- package/dist/_chunks/libs/mdast-util-gfm.mjs +2393 -0
- package/dist/_chunks/libs/mdast-util-to-hast.mjs +1803 -0
- package/dist/_chunks/libs/micromark-extension-gfm.mjs +2243 -0
- package/dist/_chunks/libs/mnemonist.d.mts +254 -0
- package/dist/_chunks/libs/mnemonist.mjs +1978 -0
- package/dist/_chunks/libs/natural-compare-lite.mjs +42 -0
- package/dist/_chunks/libs/rehype-sanitize.mjs +29 -0
- package/dist/_chunks/libs/rehype-stringify.mjs +34 -0
- package/dist/_chunks/libs/remark-gfm.mjs +36 -0
- package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +100 -0
- package/dist/_chunks/libs/remark-parse.mjs +39 -0
- package/dist/_chunks/libs/remark-rehype.mjs +171 -0
- package/dist/_chunks/libs/remeda.mjs +702 -0
- package/dist/_chunks/libs/trough.mjs +158 -0
- package/dist/_chunks/libs/unified.mjs +2212 -0
- package/dist/_chunks/mnemonist.d.mts +1 -0
- package/dist/_chunks/mnemonist.mjs +0 -0
- package/dist/_chunks/model.mjs +1898 -0
- package/dist/_chunks/model2.mjs +0 -0
- package/dist/_chunks/relationships-view.mjs +132 -0
- package/dist/_chunks/rolldown-runtime.mjs +42 -0
- package/dist/{shared/core.C_3y3eqV.d.mts → _chunks/scalar.d.mts} +13 -43
- package/dist/_chunks/scalar.mjs +84 -0
- package/dist/_chunks/utils.mjs +483 -0
- package/dist/builder/index.d.mts +11 -773
- package/dist/builder/index.mjs +631 -978
- package/dist/compute-view/index.d.mts +90 -27
- package/dist/compute-view/index.mjs +253 -83
- package/dist/compute-view/relationships-view/index.d.mts +16 -51
- package/dist/compute-view/relationships-view/index.mjs +6 -184
- package/dist/geometry/index.d.mts +2 -109
- package/dist/geometry/index.mjs +2 -327
- package/dist/index.d.mts +18 -20
- package/dist/index.mjs +27 -18
- package/dist/model/connection/deployment/index.d.mts +12 -15
- package/dist/model/connection/deployment/index.mjs +9 -2
- package/dist/model/connection/index.d.mts +14 -75
- package/dist/model/connection/index.mjs +10 -3
- package/dist/model/connection/model/index.d.mts +12 -15
- package/dist/model/connection/model/index.mjs +8 -2
- package/dist/model/index.d.mts +15 -57
- package/dist/model/index.mjs +11 -4
- package/dist/styles/index.d.mts +9 -117
- package/dist/styles/index.mjs +26 -59
- package/dist/types/RichText.d.mts +3 -0
- package/dist/types/RichText.mjs +7 -0
- package/dist/types/_aux.d.mts +3 -4
- package/dist/types/_aux.mjs +2 -7
- package/dist/types/expression-model.d.mts +6 -190
- package/dist/types/expression-model.mjs +6 -108
- package/dist/types/expression.d.mts +5 -6
- package/dist/types/expression.mjs +6 -112
- package/dist/types/fqnRef.d.mts +4 -60
- package/dist/types/fqnRef.mjs +6 -44
- package/dist/types/index.d.mts +9 -47
- package/dist/types/index.mjs +14 -16
- package/dist/types/scalar.d.mts +2 -2
- package/dist/types/scalar.mjs +7 -4
- package/dist/utils/graphology/index.d.mts +2 -1864
- package/dist/utils/graphology/index.mjs +3 -1
- package/dist/utils/index.d.mts +11 -124
- package/dist/utils/index.mjs +16 -43
- package/dist/utils/iterable/index.d.mts +9 -132
- package/dist/utils/iterable/index.mjs +2 -61
- package/dist/utils/mnemonist.d.mts +2 -0
- package/dist/utils/mnemonist.mjs +12 -0
- package/package.json +18 -22
- package/compute-view/relationships/package.json +0 -4
- package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
- package/dist/shared/core.78IWAHAE.mjs +0 -332
- package/dist/shared/core.B85MJLTf.mjs +0 -5
- package/dist/shared/core.BFd1lU9R.mjs +0 -29
- package/dist/shared/core.BKlholso.mjs +0 -3
- package/dist/shared/core.BPGOjone.d.mts +0 -46
- package/dist/shared/core.BYdtmqY5.mjs +0 -1255
- package/dist/shared/core.BZCgljZd.d.mts +0 -83
- package/dist/shared/core.BbE4y-yl.mjs +0 -177
- package/dist/shared/core.BhNcrwzK.mjs +0 -7
- package/dist/shared/core.BkVA6gjl.mjs +0 -5
- package/dist/shared/core.BoYfZOBm.mjs +0 -3
- package/dist/shared/core.BsSXS-_R.mjs +0 -7
- package/dist/shared/core.BspBF3SJ.mjs +0 -3944
- package/dist/shared/core.BvPm_-u3.d.mts +0 -334
- package/dist/shared/core.C-Jdx7xo.d.mts +0 -1263
- package/dist/shared/core.C3JowhaZ.mjs +0 -32
- package/dist/shared/core.C4x8aaWa.mjs +0 -27
- package/dist/shared/core.CBLX4mT8.mjs +0 -28411
- package/dist/shared/core.CLSZtnFh.mjs +0 -69
- package/dist/shared/core.CRhT4Iio.mjs +0 -785
- package/dist/shared/core.CbT8JVYL.mjs +0 -5
- package/dist/shared/core.CdNCAwq7.mjs +0 -176
- package/dist/shared/core.ClTP6-TN.d.mts +0 -87
- package/dist/shared/core.CmGY9blO.mjs +0 -6717
- package/dist/shared/core.CmPXpJ8l.mjs +0 -21
- package/dist/shared/core.Coi_LOUZ.mjs +0 -7
- package/dist/shared/core.CqAJJpK_.mjs +0 -3
- package/dist/shared/core.Ctj2S3bD.d.mts +0 -466
- package/dist/shared/core.CywrQs86.d.mts +0 -31
- package/dist/shared/core.D00YbOhQ.d.mts +0 -300
- package/dist/shared/core.D0WZutNd.mjs +0 -94
- package/dist/shared/core.D4npX2q8.mjs +0 -18
- package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
- package/dist/shared/core.DEK-BO3_.mjs +0 -1206
- package/dist/shared/core.DH7TXqXf.mjs +0 -136
- package/dist/shared/core.DRJma0Ol.mjs +0 -22
- package/dist/shared/core.DSalPD6v.mjs +0 -1352
- package/dist/shared/core.DVfPJPJj.mjs +0 -2200
- package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
- package/dist/shared/core.DbfO90vF.mjs +0 -434
- package/dist/shared/core.DcS-0zys.mjs +0 -10
- package/dist/shared/core.DeDCYTDR.d.mts +0 -98
- package/dist/shared/core.DpKY_3NF.d.mts +0 -504
- package/dist/shared/core.Dt0v3djy.d.mts +0 -41
- package/dist/shared/core.FZ305VYd.mjs +0 -21
- package/dist/shared/core.RfnaEmgA.mjs +0 -7
- package/dist/shared/core.oSV6SRfk.mjs +0 -13
- package/dist/shared/core.om36dXXW.mjs +0 -41
- package/dist/shared/core.q10OP9oJ.mjs +0 -5
- package/dist/shared/core.uFk_o9X6.mjs +0 -13
- package/dist/shared/core.xeuDd__E.mjs +0 -300
- package/dist/shared/core.xgoPk2RG.mjs +0 -4989
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export { Vector, VectorValue, vector } from './geometry/index.mjs';
|
|
15
|
-
export { A as AbstractRelationship, p as AnyExcludePredicate, o as AnyIncludePredicate, q as AnyViewRuleStyle, w as AutoLayoutDirection, I as BaseParsedViewProperties, H as BaseViewProperties, W as ComputedDeploymentView, X as ComputedDynamicView, P as ComputedEdge, U as ComputedElementView, O as ComputedNode, C as ComputedNodeStyle, Q as ComputedRankConstraint, Y as DynamicStep, _ as DynamicStepsParallel, Z as DynamicStepsSeries, a6 as DynamicViewDisplayVariant, a4 as DynamicViewIncludeRule, a5 as DynamicViewRule, a0 as DynamicViewStep, f as Element, h as ElementSpecification, E as ElementStyle, a9 as ElementViewExcludePredicate, a8 as ElementViewIncludePredicate, aa as ElementViewPredicate, ag as ElementViewRule, ab as ElementViewRuleGroup, ae as ElementViewRuleRank, ad as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, n as LikeC4Project, m as LikeC4ProjectManualLayoutsConfig, l as LikeC4ProjectStyleDefaults, L as LikeC4ProjectStylesConfig, k as LikeC4ProjectTheme, M as ModelGlobals, g as ModelRelation, N as NodeNotation, a7 as ParsedDynamicView, ah as ParsedElementView, u as RankValue, R as Relationship, j as RelationshipSpecification, S as Specification, T as TagSpecification, B as ViewAutoLayout, D as ViewManualLayout, y as ViewRuleAutoLayout, s as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, v as ViewRuleRank, F as ViewType, K as ViewWithHash, J as ViewWithNotation, e as ensureSizes, $ as getParallelStepsPrefix, x as isAutoLayoutDirection, a1 as isDynamicStep, a2 as isDynamicStepsParallel, a3 as isDynamicStepsSeries, i as isTagColorSpecified, z as isViewRuleAutoLayout, t as isViewRuleGlobalPredicateRef, r as isViewRuleGlobalStyle, ac as isViewRuleGroup, af as isViewRuleRank } from './shared/core.DpKY_3NF.mjs';
|
|
16
|
-
export { ViewChange } from './types/index.mjs';
|
|
17
|
-
import 'type-fest';
|
|
1
|
+
import { Ct as NTuple, Dt as ReorderedArray, Et as Predicate, F as SpecAux, G as Unknown, J as UnknownParsed, K as UnknownComputed, Ot as exact, St as Link, Tt as NonEmptyReadonlyArray, _t as Coalesce, at as preferSummary, b as LooseLiteral, bt as IteratorLike, c as Aux, dt as ExtractOnStage, ft as ModelStage, gt as isOnStage, ht as _type, i as AnyLayouted, it as preferDescription, mt as _stage, n as Any, o as AnyParsed, pt as _layout, q as UnknownLayouted, r as AnyComputed, rt as _aux_d_exports, vt as ExclusiveUnion, wt as NonEmptyArray, xt as KeysOf, yt as IterableContainer } from "./_chunks/_aux.mjs";
|
|
2
|
+
import { A as splitGlobalFqn, C as ViewId, D as isGroupElementKind, E as isGlobalFqn, O as isStepEdgeId, S as Tag, T as flattenMarkdownOrString, _ as RelationKind, a as EdgeId, b as StepEdgeIdLiteral, c as GlobalFqn, d as IconUrl, f as MarkdownOrString, g as RelationId, h as ProjectId, i as DeploymentKind, j as stepEdgeId, k as scalar_d_exports, l as GroupElementKind, m as NoneIcon, n as BuiltInIcon, o as ElementKind, p as NodeId, r as DeploymentFqn, s as Fqn, t as AnyFqn, u as Icon, v as RelationshipKind, w as extractStep, x as StepEdgeKind, y as StepEdgeId } from "./_chunks/scalar.mjs";
|
|
3
|
+
import { a as Point, i as BBox, n as VectorValue, o as RectBox, r as vector, s as XYPoint, t as Vector } from "./_chunks/index.mjs";
|
|
4
|
+
import { $ as ThemeColors, A as HexColor, B as ShapeSize, C as BorderStyle, D as CustomColorDefinitions, E as CustomColor, F as LikeC4Theme, G as ThemeColorValues, H as SpacingSize, I as RelationshipArrowType, J as BorderStyles, K as isCustomColor, L as RelationshipArrowTypes, M as IconSize, N as LikeC4StyleDefaults, O as ElementColorValues, P as LikeC4StylesConfig, Q as Sizes, R as RelationshipColorValues, S as whereOperatorAsPredicate, T as ColorLiteral, U as TextSize, V as Size, W as ThemeColor, X as ElementShapes, Z as IconPositions, _ as isKindEqual, a as AndOperator, b as isParticipantOperator, c as KindEqual, d as OrOperator, f as Participant, g as isAndOperator, h as WhereOperator, i as RelationExpr, j as IconPosition, k as ElementShape, l as NotOperator, m as TagEqual, n as FqnExpr, o as EqualOperator, p as ParticipantOperator, q as isThemeColor, r as PredicateSelector, s as Filterable, t as Expression, u as OperatorPredicate, v as isNotOperator, w as Color, x as isTagEqual, y as isOrOperator, z as RelationshipLineType } from "./_chunks/expression.mjs";
|
|
5
|
+
import { t as FqnRef } from "./_chunks/fqnRef.mjs";
|
|
6
|
+
import { n as ModelFqnExpr, r as ModelRelationExpr, t as ModelExpression } from "./_chunks/expression-model.mjs";
|
|
7
|
+
import { $ as LikeC4Project, $t as AnyIncludePredicate, A as DeploymentViewExcludePredicate, At as DynamicStep, B as LayoutedDynamicView, Bt as isDynamicStepsParallel, C as isDiagramView, Ct as ensureSizes, D as isScopedElementView, Dt as GlobalStyleID, E as isExtendsElementView, Et as GlobalPredicates, F as ParsedDeploymentView, Ft as DynamicViewRule, G as ViewManualLayoutSnapshot, Gt as ElementViewRule, H as DiagramEdgeDriftReason, Ht as ElementViewExcludePredicate, I as DiagramEdge, It as DynamicViewStep, J as ComputedEdge, Jt as ElementViewRuleStyle, K as ComputedDeploymentView, Kt as ElementViewRuleGroup, L as DiagramNode, Lt as ParsedDynamicView, M as DeploymentViewPredicate, Mt as DynamicStepsSeries, N as DeploymentViewRule, Nt as DynamicViewDisplayVariant, O as isViewRulePredicate, Ot as GlobalStyles, P as DeploymentViewRuleStyle, Pt as DynamicViewIncludeRule, Q as ComputedRankConstraint, Qt as AnyExcludePredicate, R as LayoutType, Rt as getParallelStepsPrefix, S as isDeploymentView, St as Relationship, T as isElementView, Tt as GlobalPredicateId, U as DiagramNodeDriftReason, Ut as ElementViewIncludePredicate, V as LayoutedElementView, Vt as isDynamicStepsSeries, W as LayoutedViewDriftReason, Wt as ElementViewPredicate, X as ComputedNode, Xt as isViewRuleGroup, Y as ComputedElementView, Yt as ParsedElementView, Z as ComputedNodeStyle, Zt as isViewRuleRank, _ as ViewOnStage, _n as isViewRuleGlobalPredicateRef, _t as isDeploymentNode, a as SpecTypesFromDump, an as RankValue, at as ElementSpecification, b as ViewWithType, bt as ElementStyle, c as ComputedLikeC4ModelData, cn as ViewRuleAutoLayout, ct as TagSpecification, d as ParsedLikeC4ModelData, dn as ViewRuleRank, dt as DeploymentElement, en as AnyViewRuleStyle, et as LikeC4ProjectManualLayoutsConfig, f as AnyView, fn as ViewType, ft as DeploymentElementRef, g as ProcessedView, gn as isViewRuleAutoLayout, gt as isDeployedInstance, h as ParsedView, hn as isAutoLayoutDirection, ht as DeploymentRelationship, i as ProjectDump, in as NodeNotation, it as LikeC4ProjectTheme, j as DeploymentViewIncludePredicate, jt as DynamicStepsParallel, k as isViewRuleStyle, kt as ModelGlobals, l as LayoutedLikeC4ModelData, ln as ViewRuleGlobalPredicateRef, lt as isTagColorSpecified, m as LayoutedView, mn as ViewWithNotation, mt as DeploymentRelation, n as AuxFromDump, nn as BaseParsedViewProperties, nt as LikeC4ProjectStylesConfig, o as SpecificationDump, on as ViewAutoLayout, ot as RelationshipSpecification, p as ComputedView, pn as ViewWithHash, pt as DeploymentNode, q as ComputedDynamicView, qt as ElementViewRuleRank, r as LikeC4ModelDump, rn as BaseViewProperties, rt as LikeC4ProjectStylesCustomStylesheets, s as AuxFromLikeC4ModelData, sn as ViewManualLayout, st as Specification, t as ViewChange, tn as AutoLayoutDirection, tt as LikeC4ProjectStyleDefaults, u as LikeC4ModelData, un as ViewRuleGlobalStyle, ut as DeployedInstance, v as ViewRule, vn as isViewRuleGlobalStyle, vt as AbstractRelationship, w as isDynamicView, wt as GlobalDynamicPredicates, x as isComputedView, xt as ModelRelation, y as ViewRulePredicate, yt as Element, z as LayoutedDeploymentView, zt as isDynamicStep } from "./_chunks/index2.mjs";
|
|
8
|
+
import { i as RichTextOrEmpty, n as RichTextEmpty, t as RichText } from "./_chunks/RichText.mjs";
|
|
9
|
+
import { a as LikeC4Styles } from "./_chunks/index3.mjs";
|
|
10
|
+
import { a as Queue, c as DefaultMap, i as MultiMap, n as BiMap, o as LinkedList, s as DefaultWeakMap } from "./_chunks/libs/mnemonist.mjs";
|
|
11
|
+
import { o as LayoutedProjectsView, r as ComputedProjectsView } from "./_chunks/_types2.mjs";
|
|
12
|
+
import { A as parentFqn, D as isDescendantOf, E as isAncestor, L as invariant, M as sortNaturalByFqn, N as sortParentsFirst, O as isSameHierarchy, R as nonNullable, _ as isNonEmptyArray, b as ancestorsFqn, h as hasProp, k as nameFromFqn, m as memoizeProp, v as isString, z as nonexhaustive } from "./_chunks/index7.mjs";
|
|
13
|
+
import { p as isIterable } from "./_chunks/index8.mjs";
|
|
18
14
|
|
|
15
|
+
//#region src/manual-layout/applyManualLayout.d.ts
|
|
19
16
|
/**
|
|
20
17
|
* Proof-of-concept
|
|
21
18
|
* Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view
|
|
@@ -25,12 +22,13 @@ import 'type-fest';
|
|
|
25
22
|
* @returns The snapshot with the next view applied
|
|
26
23
|
*/
|
|
27
24
|
declare function applyManualLayout<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
28
|
-
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/manual-layout/calcDriftsFromSnapshot.d.ts
|
|
29
27
|
/**
|
|
30
28
|
* Calculates drifts comparing latest autoLayouted with manual snapshot.
|
|
31
29
|
*
|
|
32
30
|
* @returns The autoLayouted view with calculated drifts if any.
|
|
33
31
|
*/
|
|
34
32
|
declare function calcDriftsFromSnapshot<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
35
|
-
|
|
36
|
-
export { LayoutedView as DiagramView, LayoutedView, ViewManualLayoutSnapshot, applyManualLayout, calcDriftsFromSnapshot };
|
|
33
|
+
//#endregion
|
|
34
|
+
export { AbstractRelationship, AndOperator, Any, Any as AnyAux, AnyComputed, AnyExcludePredicate, AnyFqn, AnyIncludePredicate, AnyLayouted, AnyParsed, AnyView, AnyViewRuleStyle, AutoLayoutDirection, Aux, AuxFromDump, AuxFromLikeC4ModelData, BBox, BaseParsedViewProperties, BaseViewProperties, BiMap, BorderStyle, BorderStyles, BuiltInIcon, Coalesce, Color, ColorLiteral, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4ModelData, ComputedNode, ComputedNodeStyle, type ComputedProjectsView, ComputedRankConstraint, ComputedView, CustomColor, CustomColorDefinitions, DefaultMap, DefaultWeakMap, DeployedInstance, DeploymentElement, DeploymentElementRef, DeploymentFqn, DeploymentKind, DeploymentNode, DeploymentRelation, DeploymentRelationship, DeploymentViewExcludePredicate, DeploymentViewIncludePredicate, DeploymentViewPredicate, DeploymentViewRule, DeploymentViewRuleStyle, DiagramEdge, DiagramEdgeDriftReason, DiagramNode, DiagramNodeDriftReason, LayoutedView as DiagramView, LayoutedView, DynamicStep, DynamicStepsParallel, DynamicStepsSeries, DynamicViewDisplayVariant, DynamicViewIncludeRule, DynamicViewRule, DynamicViewStep, EdgeId, Element, ElementColorValues, ElementKind, ElementShape, ElementShapes, ElementSpecification, ElementStyle, ElementViewExcludePredicate, ElementViewIncludePredicate, ElementViewPredicate, ElementViewRule, ElementViewRuleGroup, ElementViewRuleRank, ElementViewRuleStyle, EqualOperator, ExclusiveUnion, Expression, ExtractOnStage, Filterable, Fqn, FqnExpr, FqnRef, GlobalDynamicPredicates, GlobalFqn, GlobalPredicateId, GlobalPredicates, GlobalStyleID, GlobalStyles, GroupElementKind, HexColor, Icon, IconPosition, IconPositions, IconSize, IconUrl, IterableContainer, IteratorLike, KeysOf, KindEqual, LayoutType, LayoutedDeploymentView, LayoutedDynamicView, LayoutedElementView, LayoutedLikeC4ModelData, type LayoutedProjectsView, LayoutedViewDriftReason, LikeC4ModelData, LikeC4ModelDump, LikeC4Project, LikeC4ProjectManualLayoutsConfig, LikeC4ProjectStyleDefaults, LikeC4ProjectStylesConfig, LikeC4ProjectStylesCustomStylesheets, LikeC4ProjectTheme, type LikeC4StyleDefaults, LikeC4Styles, type LikeC4StylesConfig, type LikeC4Theme, ParsedView as LikeC4View, ParsedView, Link, LinkedList, LooseLiteral, MarkdownOrString, ModelExpression, ModelFqnExpr, ModelGlobals, ModelRelation, ModelRelationExpr, ModelStage, MultiMap, NTuple, NodeId, NodeNotation, NonEmptyArray, NonEmptyReadonlyArray, NoneIcon, NotOperator, OperatorPredicate, OrOperator, ParsedDeploymentView, ParsedDynamicView, ParsedElementView, ParsedLikeC4ModelData, Participant, ParticipantOperator, Point, Predicate, PredicateSelector, ProcessedView, ProjectDump, ProjectId, Queue, RankValue, RectBox, RelationExpr, RelationId, RelationKind, Relationship, RelationshipArrowType, RelationshipArrowTypes, RelationshipColorValues, RelationshipKind, RelationshipLineType, RelationshipSpecification, ReorderedArray, RichText, RichTextEmpty, RichTextOrEmpty, ShapeSize, Size, Sizes, SpacingSize, SpecAux, SpecTypesFromDump, Specification, SpecificationDump, StepEdgeId, StepEdgeIdLiteral, StepEdgeKind, Tag, TagEqual, TagSpecification, TextSize, ThemeColor, type ThemeColorValues, ThemeColors, Unknown, UnknownComputed, UnknownLayouted, UnknownParsed, Vector, VectorValue, ViewAutoLayout, ViewChange, ViewId, ViewManualLayout, ViewManualLayoutSnapshot, ViewOnStage, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRulePredicate, ViewRuleRank, ViewType, ViewWithHash, ViewWithNotation, ViewWithType, WhereOperator, XYPoint, _layout, _stage, _type, ancestorsFqn, applyManualLayout, _aux_d_exports as aux, calcDriftsFromSnapshot, ensureSizes, exact, extractStep, flattenMarkdownOrString, getParallelStepsPrefix, hasProp, invariant, isAncestor, isAndOperator, isAutoLayoutDirection, isComputedView, isCustomColor, isDeployedInstance, isDeploymentNode, isDeploymentView, isDescendantOf, isDiagramView, isDiagramView as isLayoutedView, isDynamicStep, isDynamicStepsParallel, isDynamicStepsSeries, isDynamicView, isElementView, isExtendsElementView, isGlobalFqn, isGroupElementKind, isIterable, isKindEqual, isNonEmptyArray, isNotOperator, isOnStage, isOrOperator, isParticipantOperator, isSameHierarchy, isScopedElementView, isStepEdgeId, isString, isTagColorSpecified, isTagEqual, isThemeColor, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, memoizeProp, nameFromFqn, nonNullable, nonexhaustive, parentFqn, preferDescription, preferSummary, scalar_d_exports as scalar, sortNaturalByFqn, sortParentsFirst, splitGlobalFqn, stepEdgeId, vector, whereOperatorAsPredicate };
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { A as isDeployedInstance, C as isNotOperator, D as whereOperatorAsPredicate, E as isTagEqual, F as isOnStage, I as exact, M as _layout, N as _stage, O as isTagColorSpecified, P as _type, S as isKindEqual, T as isParticipantOperator, _ as isExtendsElementView, a as isDynamicStep, b as isViewRuleStyle, c as isAutoLayoutDirection, d as isViewRuleGlobalStyle, f as isComputedView, g as isElementView, h as isDynamicView, i as getParallelStepsPrefix, j as isDeploymentNode, k as ensureSizes, l as isViewRuleAutoLayout, m as isDiagramView, n as isViewRuleGroup, o as isDynamicStepsParallel, p as isDeploymentView, r as isViewRuleRank, s as isDynamicStepsSeries, t as LikeC4Styles, u as isViewRuleGlobalPredicateRef, v as isScopedElementView, w as isOrOperator, x as isAndOperator, y as isViewRulePredicate } from "./_chunks/LikeC4Styles.mjs";
|
|
2
|
+
import "./_chunks/libs/natural-compare-lite.mjs";
|
|
3
|
+
import { A as sortParentsFirst, C as isAncestor, D as parentFqn, E as nameFromFqn, N as isNonEmptyArray, P as isString, T as isSameHierarchy, _ as ancestorsFqn, h as memoizeProp, j as hasProp, k as sortNaturalByFqn, w as isDescendantOf } from "./_chunks/utils.mjs";
|
|
4
|
+
import { n as nonNullable, r as nonexhaustive, t as invariant } from "./_chunks/invariant.mjs";
|
|
5
|
+
import "./_chunks/libs/@mantine/colors-generator.mjs";
|
|
6
|
+
import "./_chunks/libs/graphology-dag.mjs";
|
|
7
|
+
import { i as import_linked_list, n as import_default_map, o as import_multi_map, r as import_default_weak_map, s as import_queue, t as import_bi_map } from "./_chunks/libs/mnemonist.mjs";
|
|
8
|
+
import { p as isIterable } from "./_chunks/iterable.mjs";
|
|
9
|
+
import "./_chunks/libs/defu.mjs";
|
|
10
|
+
import "./_chunks/libs/extend.mjs";
|
|
11
|
+
import { n as preferSummary, t as preferDescription } from "./_chunks/_aux.mjs";
|
|
12
|
+
import { i as RectBox, n as vector, r as BBox, t as Vector } from "./_chunks/geometry.mjs";
|
|
13
|
+
import { _ as scalar_exports, a as GroupElementKind, c as ProjectId, d as ViewId, f as extractStep, g as isStepEdgeId, h as isGroupElementKind, i as GlobalFqn, l as RelationId, m as isGlobalFqn, n as EdgeId, o as NodeId, p as flattenMarkdownOrString, r as Fqn, s as NoneIcon, t as DeploymentFqn, u as StepEdgeKind, v as splitGlobalFqn, y as stepEdgeId } from "./_chunks/scalar.mjs";
|
|
14
|
+
import { t as FqnRef } from "./_chunks/fqnRef.mjs";
|
|
15
|
+
import { n as FqnExpr, r as RelationExpr, t as Expression } from "./_chunks/expression.mjs";
|
|
16
|
+
import { n as ModelFqnExpr, r as ModelRelationExpr, t as ModelExpression } from "./_chunks/expression-model.mjs";
|
|
17
|
+
import { t as RichText } from "./_chunks/RichText.mjs";
|
|
18
|
+
import "./styles/index.mjs";
|
|
19
|
+
import { n as applyManualLayout, t as calcDriftsFromSnapshot } from "./_chunks/calcDriftsFromSnapshot.mjs";
|
|
20
|
+
|
|
21
|
+
var BiMap = import_bi_map.default;
|
|
22
|
+
var DefaultMap = import_default_map.default;
|
|
23
|
+
var DefaultWeakMap = import_default_weak_map.default;
|
|
24
|
+
var LinkedList = import_linked_list.default;
|
|
25
|
+
var MultiMap = import_multi_map.default;
|
|
26
|
+
var Queue = import_queue.default;
|
|
27
|
+
export { BBox, BiMap, DefaultMap, DefaultWeakMap, DeploymentFqn, EdgeId, Expression, Fqn, FqnExpr, FqnRef, GlobalFqn, GroupElementKind, LikeC4Styles, LinkedList, ModelExpression, ModelFqnExpr, ModelRelationExpr, MultiMap, NodeId, NoneIcon, ProjectId, Queue, RectBox, RelationExpr, RelationId, RichText, StepEdgeKind, Vector, ViewId, _layout, _stage, _type, ancestorsFqn, applyManualLayout, calcDriftsFromSnapshot, ensureSizes, exact, extractStep, flattenMarkdownOrString, getParallelStepsPrefix, hasProp, invariant, isAncestor, isAndOperator, isAutoLayoutDirection, isComputedView, isDeployedInstance, isDeploymentNode, isDeploymentView, isDescendantOf, isDiagramView, isDiagramView as isLayoutedView, isDynamicStep, isDynamicStepsParallel, isDynamicStepsSeries, isDynamicView, isElementView, isExtendsElementView, isGlobalFqn, isGroupElementKind, isIterable, isKindEqual, isNonEmptyArray, isNotOperator, isOnStage, isOrOperator, isParticipantOperator, isSameHierarchy, isScopedElementView, isStepEdgeId, isString, isTagColorSpecified, isTagEqual, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, memoizeProp, nameFromFqn, nonNullable, nonexhaustive, parentFqn, preferDescription, preferSummary, scalar_exports as scalar, sortNaturalByFqn, sortParentsFirst, splitGlobalFqn, stepEdgeId, vector, whereOperatorAsPredicate };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import '../../../shared/core.BPGOjone.mjs';
|
|
14
|
-
import '../../../shared/core.CywrQs86.mjs';
|
|
15
|
-
import '../../../shared/core.Ctj2S3bD.mjs';
|
|
1
|
+
import "../../../_chunks/_aux.mjs";
|
|
2
|
+
import "../../../_chunks/scalar.mjs";
|
|
3
|
+
import "../../../_chunks/expression.mjs";
|
|
4
|
+
import "../../../_chunks/fqnRef.mjs";
|
|
5
|
+
import "../../../_chunks/expression-model.mjs";
|
|
6
|
+
import "../../../_chunks/index2.mjs";
|
|
7
|
+
import "../../../_chunks/RichText.mjs";
|
|
8
|
+
import "../../../_chunks/index3.mjs";
|
|
9
|
+
import "../../../_chunks/LikeC4Model.mjs";
|
|
10
|
+
import { n as Connection } from "../../../_chunks/const.mjs";
|
|
11
|
+
import { a as DeploymentConnectionModel, n as findConnectionsBetween, r as findConnectionsWithin, t as findConnection } from "../../../_chunks/find.mjs";
|
|
12
|
+
export { Connection, DeploymentConnectionModel, findConnection, findConnectionsBetween, findConnectionsWithin };
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import "../../../_chunks/libs/natural-compare-lite.mjs";
|
|
2
|
+
import "../../../_chunks/libs/@mantine/colors-generator.mjs";
|
|
3
|
+
import "../../../_chunks/libs/graphology-dag.mjs";
|
|
4
|
+
import "../../../_chunks/libs/defu.mjs";
|
|
5
|
+
import "../../../_chunks/libs/extend.mjs";
|
|
6
|
+
import { a as DeploymentConnectionModel, n as findConnectionsBetween, r as findConnectionsWithin, t as findConnection } from "../../../_chunks/find.mjs";
|
|
7
|
+
import { n as Connection } from "../../../_chunks/const.mjs";
|
|
8
|
+
|
|
9
|
+
export { Connection, DeploymentConnectionModel, findConnection, findConnectionsBetween, findConnectionsWithin };
|
|
@@ -1,75 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import '../../shared/core.CywrQs86.mjs';
|
|
16
|
-
import '../../shared/core.Ctj2S3bD.mjs';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Check if connection is nested inside another connection
|
|
20
|
-
* (i.e. between descendants)
|
|
21
|
-
*/
|
|
22
|
-
declare function isNestedConnection<T extends {
|
|
23
|
-
id: string;
|
|
24
|
-
}>(parent: WithSourceTarget<NoInfer<T>>): (nested: WithSourceTarget<T>) => boolean;
|
|
25
|
-
declare function isNestedConnection<T extends {
|
|
26
|
-
id: string;
|
|
27
|
-
}>(nested: WithSourceTarget<T>, parent: WithSourceTarget<T>): boolean;
|
|
28
|
-
type ConnectionElemId = Connection<{
|
|
29
|
-
readonly id: string;
|
|
30
|
-
}, any>;
|
|
31
|
-
declare function findDeepestNestedConnection<C extends ConnectionElemId>(connections: ReadonlyArray<C>, connection: C): C | null;
|
|
32
|
-
declare function sortDeepestFirst<C extends ConnectionElemId>(connections: ReadonlyArray<C>): C[];
|
|
33
|
-
type WithBoundary = {
|
|
34
|
-
id: string;
|
|
35
|
-
boundary: null | {
|
|
36
|
-
id: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
declare function sortConnectionsByBoundaryHierarchy(sort?: 'asc' | 'desc'): <T extends WithBoundary, A extends IterableContainer<T>>(array: A) => ReorderedArray<A>;
|
|
40
|
-
declare function sortConnectionsByBoundaryHierarchy<T extends WithBoundary, A extends IterableContainer<T>>(array: A, sort?: 'asc' | 'desc'): ReorderedArray<A>;
|
|
41
|
-
/**
|
|
42
|
-
* Find connections that includes given connection (i.e between it's ancestors)
|
|
43
|
-
*/
|
|
44
|
-
declare function findAscendingConnections<C extends ConnectionElemId>(connections: ReadonlyArray<C>, connection: C): Array<C>;
|
|
45
|
-
/**
|
|
46
|
-
* Find connections that given connection includes (i.e between it's descendants)
|
|
47
|
-
*/
|
|
48
|
-
declare function findDescendantConnections<C extends ConnectionElemId>(connections: ReadonlyArray<C>, connection: C): Array<C>;
|
|
49
|
-
declare function mergeConnections<C extends IterableContainer<Connection<any, any>>>(connections: C): Array<C[number]>;
|
|
50
|
-
/**
|
|
51
|
-
* Excludes the values existing in `other` array.
|
|
52
|
-
* The output maintains the same order as the input.
|
|
53
|
-
*/
|
|
54
|
-
declare function differenceConnections<C extends Connection<any, any>>(source: Iterable<C>, exclude: Iterable<C>): C[];
|
|
55
|
-
type WithSourceTarget<T = unknown> = {
|
|
56
|
-
source: T;
|
|
57
|
-
target: T;
|
|
58
|
-
};
|
|
59
|
-
declare function hasSameSourceTarget<T>(a: WithSourceTarget<NoInfer<T>>): (b: WithSourceTarget<T>) => boolean;
|
|
60
|
-
declare function hasSameSourceTarget<T>(a: WithSourceTarget<T>, b: WithSourceTarget<T>): boolean;
|
|
61
|
-
declare function hasSameSource<T>(a: WithSourceTarget<NoInfer<T>>): (b: WithSourceTarget<T>) => boolean;
|
|
62
|
-
declare function hasSameSource<T>(a: WithSourceTarget<T>, b: WithSourceTarget<T>): boolean;
|
|
63
|
-
declare function hasSameTarget<T>(a: WithSourceTarget<NoInfer<T>>): (b: WithSourceTarget<T>) => boolean;
|
|
64
|
-
declare function hasSameTarget<T>(a: WithSourceTarget<T>, b: WithSourceTarget<T>): boolean;
|
|
65
|
-
type WithId<T> = {
|
|
66
|
-
id: T;
|
|
67
|
-
};
|
|
68
|
-
declare function isOutgoing<T extends string>(source: WithId<NoInfer<T>>): (a: WithSourceTarget<WithId<T>>) => boolean;
|
|
69
|
-
declare function isOutgoing<T extends string>(a: WithSourceTarget<WithId<T>>, source: WithId<T>): boolean;
|
|
70
|
-
declare function isIncoming<T extends string>(target: WithId<NoInfer<T>>): (a: WithSourceTarget<WithId<T>>) => boolean;
|
|
71
|
-
declare function isIncoming<T extends string>(a: WithSourceTarget<WithId<T>>, target: WithId<T>): boolean;
|
|
72
|
-
declare function isAnyInOut<T extends string>(source: WithId<NoInfer<T>>): (a: WithSourceTarget<WithId<T>>) => boolean;
|
|
73
|
-
declare function isAnyInOut<T extends string>(a: WithSourceTarget<WithId<T>>, source: WithId<T>): boolean;
|
|
74
|
-
|
|
75
|
-
export { Connection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
|
1
|
+
import "../../_chunks/_aux.mjs";
|
|
2
|
+
import "../../_chunks/scalar.mjs";
|
|
3
|
+
import "../../_chunks/expression.mjs";
|
|
4
|
+
import "../../_chunks/fqnRef.mjs";
|
|
5
|
+
import "../../_chunks/expression-model.mjs";
|
|
6
|
+
import "../../_chunks/index2.mjs";
|
|
7
|
+
import "../../_chunks/RichText.mjs";
|
|
8
|
+
import "../../_chunks/index3.mjs";
|
|
9
|
+
import "../../_chunks/LikeC4Model.mjs";
|
|
10
|
+
import { n as Connection } from "../../_chunks/const.mjs";
|
|
11
|
+
import { a as DeploymentConnectionModel, i as find_d_exports } from "../../_chunks/find.mjs";
|
|
12
|
+
import { a as ConnectionModel, i as find_d_exports$1 } from "../../_chunks/find2.mjs";
|
|
13
|
+
import { a as hasSameSource, c as isAnyInOut, d as isOutgoing, f as mergeConnections, i as findDescendantConnections, l as isIncoming, m as sortDeepestFirst, n as findAscendingConnections, o as hasSameSourceTarget, p as sortConnectionsByBoundaryHierarchy, r as findDeepestNestedConnection, s as hasSameTarget, t as differenceConnections, u as isNestedConnection } from "../../_chunks/index4.mjs";
|
|
14
|
+
export { Connection, ConnectionModel, DeploymentConnectionModel, find_d_exports as deployment, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, find_d_exports$1 as model, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import "../../_chunks/libs/natural-compare-lite.mjs";
|
|
2
|
+
import "../../_chunks/libs/@mantine/colors-generator.mjs";
|
|
3
|
+
import "../../_chunks/libs/graphology-dag.mjs";
|
|
4
|
+
import "../../_chunks/libs/defu.mjs";
|
|
5
|
+
import "../../_chunks/libs/extend.mjs";
|
|
6
|
+
import { a as DeploymentConnectionModel, i as find_exports } from "../../_chunks/find.mjs";
|
|
7
|
+
import { n as Connection } from "../../_chunks/const.mjs";
|
|
8
|
+
import { _ as mergeConnections, a as ConnectionModel, c as findDeepestNestedConnection, d as hasSameSourceTarget, f as hasSameTarget, g as isOutgoing, h as isNestedConnection, i as find_exports$1, l as findDescendantConnections, m as isIncoming, o as differenceConnections, p as isAnyInOut, s as findAscendingConnections, u as hasSameSource, v as sortConnectionsByBoundaryHierarchy, y as sortDeepestFirst } from "../../_chunks/find2.mjs";
|
|
9
|
+
|
|
10
|
+
export { Connection, ConnectionModel, DeploymentConnectionModel, find_exports as deployment, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, find_exports$1 as model, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import '../../../shared/core.BPGOjone.mjs';
|
|
14
|
-
import '../../../shared/core.CywrQs86.mjs';
|
|
15
|
-
import '../../../shared/core.Ctj2S3bD.mjs';
|
|
1
|
+
import "../../../_chunks/_aux.mjs";
|
|
2
|
+
import "../../../_chunks/scalar.mjs";
|
|
3
|
+
import "../../../_chunks/expression.mjs";
|
|
4
|
+
import "../../../_chunks/fqnRef.mjs";
|
|
5
|
+
import "../../../_chunks/expression-model.mjs";
|
|
6
|
+
import "../../../_chunks/index2.mjs";
|
|
7
|
+
import "../../../_chunks/RichText.mjs";
|
|
8
|
+
import "../../../_chunks/index3.mjs";
|
|
9
|
+
import "../../../_chunks/LikeC4Model.mjs";
|
|
10
|
+
import { n as Connection } from "../../../_chunks/const.mjs";
|
|
11
|
+
import { a as ConnectionModel, n as findConnectionsBetween, r as findConnectionsWithin, t as findConnection } from "../../../_chunks/find2.mjs";
|
|
12
|
+
export { Connection, ConnectionModel, findConnection, findConnectionsBetween, findConnectionsWithin };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import "../../../_chunks/libs/natural-compare-lite.mjs";
|
|
2
|
+
import "../../../_chunks/libs/graphology-dag.mjs";
|
|
3
|
+
import "../../../_chunks/libs/defu.mjs";
|
|
4
|
+
import "../../../_chunks/libs/extend.mjs";
|
|
5
|
+
import { n as Connection } from "../../../_chunks/const.mjs";
|
|
6
|
+
import { a as ConnectionModel, n as findConnectionsBetween, r as findConnectionsWithin, t as findConnection } from "../../../_chunks/find2.mjs";
|
|
7
|
+
|
|
8
|
+
export { Connection, ConnectionModel, findConnection, findConnectionsBetween, findConnectionsWithin };
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,57 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import '../shared/core.BPGOjone.mjs';
|
|
17
|
-
import '../shared/core.CywrQs86.mjs';
|
|
18
|
-
import '../shared/core.Ctj2S3bD.mjs';
|
|
19
|
-
|
|
20
|
-
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>;
|
|
21
|
-
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
|
22
|
-
declare function isDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is DeployedInstanceModel<M>;
|
|
23
|
-
declare function isDeploymentElementModel<M extends Any>(model: AnyModel<M>): model is DeploymentElementModel<M>;
|
|
24
|
-
declare function isNestedElementOfDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is NestedElementOfDeployedInstanceModel<M>;
|
|
25
|
-
declare function isDeploymentRelationModel<M extends Any>(x: AnyModel<M>): x is DeploymentRelationModel<M>;
|
|
26
|
-
declare function isRelationModel<M extends Any>(x: AnyModel<M>): x is RelationshipModel<M>;
|
|
27
|
-
|
|
28
|
-
declare function isElementModel<M extends Any>(element: AnyModel<M>): element is ElementModel<M>;
|
|
29
|
-
declare function isLikeC4ViewModel<M extends Any>(view: AnyModel<M>): view is LikeC4ViewModel<M>;
|
|
30
|
-
declare function isNodeModel<M extends Any>(node: AnyModel<M>): node is NodeModel<M>;
|
|
31
|
-
declare function isEdgeModel<M extends Any>(edge: AnyModel<M>): edge is EdgeModel<M>;
|
|
32
|
-
|
|
33
|
-
declare const VIEW_FOLDERS_SEPARATOR = "/";
|
|
34
|
-
/**
|
|
35
|
-
* Normalizes view path by removing spaces from segments, removing empty segments,
|
|
36
|
-
* and removing leading/trailing slashes
|
|
37
|
-
* @example
|
|
38
|
-
* normalizeViewPath('One / Tw o / Thre e') === 'One/Tw o/Thre e'
|
|
39
|
-
*/
|
|
40
|
-
declare const normalizeViewPath: (title: string) => string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns view group path if it is used as a path
|
|
43
|
-
* Returns empty string if it is not a path
|
|
44
|
-
* @example
|
|
45
|
-
* getViewFolderPath('One / Tw o / Thre e') === 'One/Tw o'
|
|
46
|
-
* getViewFolderPath('One') === ''
|
|
47
|
-
*/
|
|
48
|
-
declare const getViewFolderPath: (title: string) => string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Returns view title if it is used as a path
|
|
51
|
-
* @example
|
|
52
|
-
* getViewTitleFromPath('One / Tw o / Thre e') === 'Thre e'
|
|
53
|
-
* getViewTitleFromPath('One') === 'One'
|
|
54
|
-
*/
|
|
55
|
-
declare const extractViewTitleFromPath: (title: string) => string;
|
|
56
|
-
|
|
57
|
-
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 };
|
|
1
|
+
import "../_chunks/_aux.mjs";
|
|
2
|
+
import "../_chunks/scalar.mjs";
|
|
3
|
+
import "../_chunks/expression.mjs";
|
|
4
|
+
import "../_chunks/fqnRef.mjs";
|
|
5
|
+
import "../_chunks/expression-model.mjs";
|
|
6
|
+
import "../_chunks/index2.mjs";
|
|
7
|
+
import "../_chunks/RichText.mjs";
|
|
8
|
+
import "../_chunks/index3.mjs";
|
|
9
|
+
import { C as ElementModel, S as NodeModel, T as RelationshipModel, _ as WithMetadata, a as DeploymentNodeModel, b as LikeC4ViewsFolder, d as DeploymentOrFqn, f as EdgeOrId, g as OutgoingFilter, h as NodeOrId, i as DeploymentElementModel, l as RelationshipsAccum, m as IncomingFilter, n as LikeC4Model, o as DeploymentRelationEndpoint, p as ElementOrFqn, r as DeployedInstanceModel, s as DeploymentRelationModel, t as AnyLikeC4Model, u as LikeC4DeploymentModel, v as WithTags, w as AnyRelationshipModel, x as EdgeModel, y as LikeC4ViewModel } from "../_chunks/LikeC4Model.mjs";
|
|
10
|
+
import { n as Connection } from "../_chunks/const.mjs";
|
|
11
|
+
import { a as DeploymentConnectionModel, i as find_d_exports } from "../_chunks/find.mjs";
|
|
12
|
+
import { a as ConnectionModel, i as find_d_exports$1 } from "../_chunks/find2.mjs";
|
|
13
|
+
import { a as hasSameSource, c as isAnyInOut, d as isOutgoing, f as mergeConnections, i as findDescendantConnections, l as isIncoming, m as sortDeepestFirst, n as findAscendingConnections, o as hasSameSourceTarget, p as sortConnectionsByBoundaryHierarchy, r as findDeepestNestedConnection, s as hasSameTarget, t as differenceConnections, u as isNestedConnection } from "../_chunks/index4.mjs";
|
|
14
|
+
import { a as isDeployedInstanceModel, c as isDeploymentRelationModel, d as isLikeC4ViewModel, f as isNestedElementOfDeployedInstanceModel, i as normalizeViewPath, l as isEdgeModel, m as isRelationModel, n as extractViewTitleFromPath, o as isDeploymentElementModel, p as isNodeModel, r as getViewFolderPath, s as isDeploymentNodeModel, t as VIEW_FOLDERS_SEPARATOR, u as isElementModel } from "../_chunks/index5.mjs";
|
|
15
|
+
export { AnyLikeC4Model, AnyRelationshipModel, Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, DeploymentOrFqn, DeploymentRelationEndpoint, DeploymentRelationModel, EdgeModel, EdgeOrId, ElementModel, ElementOrFqn, IncomingFilter, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, LikeC4ViewsFolder, NodeModel, NodeOrId, OutgoingFilter, RelationshipModel, RelationshipsAccum, VIEW_FOLDERS_SEPARATOR, WithMetadata, WithTags, find_d_exports as deploymentConnection, differenceConnections, extractViewTitleFromPath, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, getViewFolderPath, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isRelationModel as isModelRelation, isRelationModel, isRelationModel as isRelationshipModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, mergeConnections, find_d_exports$1 as modelConnection, normalizeViewPath, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../_chunks/libs/natural-compare-lite.mjs";
|
|
2
|
+
import "../_chunks/libs/@mantine/colors-generator.mjs";
|
|
3
|
+
import "../_chunks/libs/graphology-dag.mjs";
|
|
4
|
+
import "../_chunks/libs/defu.mjs";
|
|
5
|
+
import "../_chunks/libs/extend.mjs";
|
|
6
|
+
import { S as ElementModel, _ as LikeC4DeploymentModel, a as isEdgeModel, b as getViewFolderPath, c as isNestedElementOfDeployedInstanceModel, d as LikeC4Model, f as LikeC4ViewsFolder, g as RelationshipModel, h as EdgeModel, i as isDeploymentRelationModel, l as isNodeModel, m as NodeModel, n as isDeploymentElementModel, o as isElementModel, p as LikeC4ViewModel, r as isDeploymentNodeModel, s as isLikeC4ViewModel, t as isDeployedInstanceModel, u as isRelationModel, v as VIEW_FOLDERS_SEPARATOR, x as normalizeViewPath, y as extractViewTitleFromPath } from "../_chunks/model.mjs";
|
|
7
|
+
import { a as DeploymentConnectionModel, c as DeploymentRelationModel, i as find_exports, o as DeployedInstanceModel, s as DeploymentNodeModel, u as RelationshipsAccum } from "../_chunks/find.mjs";
|
|
8
|
+
import { n as Connection } from "../_chunks/const.mjs";
|
|
9
|
+
import { _ as mergeConnections, a as ConnectionModel, c as findDeepestNestedConnection, d as hasSameSourceTarget, f as hasSameTarget, g as isOutgoing, h as isNestedConnection, i as find_exports$1, l as findDescendantConnections, m as isIncoming, o as differenceConnections, p as isAnyInOut, s as findAscendingConnections, u as hasSameSource, v as sortConnectionsByBoundaryHierarchy, y as sortDeepestFirst } from "../_chunks/find2.mjs";
|
|
10
|
+
|
|
11
|
+
export { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, LikeC4ViewsFolder, NodeModel, RelationshipModel, RelationshipsAccum, VIEW_FOLDERS_SEPARATOR, find_exports as deploymentConnection, differenceConnections, extractViewTitleFromPath, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, getViewFolderPath, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isRelationModel as isModelRelation, isRelationModel, isRelationModel as isRelationshipModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, mergeConnections, find_exports$1 as modelConnection, normalizeViewPath, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
package/dist/styles/index.d.mts
CHANGED
|
@@ -1,117 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import '../types/expression-model.mjs';
|
|
11
|
-
import '../shared/core.BPGOjone.mjs';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Colors are taken from the styles presets of the LikeC4 (Radix Colors)
|
|
15
|
-
*/
|
|
16
|
-
declare const DefaultTagColors: string[];
|
|
17
|
-
declare function assignTagColors(tags: {
|
|
18
|
-
[kind: string]: Partial<TagSpecification>;
|
|
19
|
-
}): Record<Tag, TagSpecification>;
|
|
20
|
-
|
|
21
|
-
declare function computeColorValues(color: ColorLiteral): ThemeColorValues;
|
|
22
|
-
|
|
23
|
-
declare const styleDefaults: LikeC4StyleDefaults;
|
|
24
|
-
|
|
25
|
-
declare const defaultTheme: {
|
|
26
|
-
colors: {
|
|
27
|
-
amber: {
|
|
28
|
-
elements: ElementColorValues;
|
|
29
|
-
relationships: RelationshipColorValues;
|
|
30
|
-
};
|
|
31
|
-
blue: {
|
|
32
|
-
elements: ElementColorValues;
|
|
33
|
-
relationships: RelationshipColorValues;
|
|
34
|
-
};
|
|
35
|
-
gray: {
|
|
36
|
-
elements: ElementColorValues;
|
|
37
|
-
relationships: RelationshipColorValues;
|
|
38
|
-
};
|
|
39
|
-
slate: {
|
|
40
|
-
elements: ElementColorValues;
|
|
41
|
-
relationships: RelationshipColorValues;
|
|
42
|
-
};
|
|
43
|
-
green: {
|
|
44
|
-
elements: ElementColorValues;
|
|
45
|
-
relationships: RelationshipColorValues;
|
|
46
|
-
};
|
|
47
|
-
indigo: {
|
|
48
|
-
elements: ElementColorValues;
|
|
49
|
-
relationships: RelationshipColorValues;
|
|
50
|
-
};
|
|
51
|
-
muted: {
|
|
52
|
-
elements: ElementColorValues;
|
|
53
|
-
relationships: RelationshipColorValues;
|
|
54
|
-
};
|
|
55
|
-
primary: {
|
|
56
|
-
elements: ElementColorValues;
|
|
57
|
-
relationships: RelationshipColorValues;
|
|
58
|
-
};
|
|
59
|
-
red: {
|
|
60
|
-
elements: ElementColorValues;
|
|
61
|
-
relationships: RelationshipColorValues;
|
|
62
|
-
};
|
|
63
|
-
secondary: {
|
|
64
|
-
elements: ElementColorValues;
|
|
65
|
-
relationships: RelationshipColorValues;
|
|
66
|
-
};
|
|
67
|
-
sky: {
|
|
68
|
-
elements: ElementColorValues;
|
|
69
|
-
relationships: RelationshipColorValues;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
sizes: {
|
|
73
|
-
xs: {
|
|
74
|
-
width: number;
|
|
75
|
-
height: number;
|
|
76
|
-
};
|
|
77
|
-
sm: {
|
|
78
|
-
width: number;
|
|
79
|
-
height: number;
|
|
80
|
-
};
|
|
81
|
-
md: {
|
|
82
|
-
width: number;
|
|
83
|
-
height: number;
|
|
84
|
-
};
|
|
85
|
-
lg: {
|
|
86
|
-
width: number;
|
|
87
|
-
height: number;
|
|
88
|
-
};
|
|
89
|
-
xl: {
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
spacing: {
|
|
95
|
-
xs: number;
|
|
96
|
-
sm: number;
|
|
97
|
-
md: number;
|
|
98
|
-
lg: number;
|
|
99
|
-
xl: number;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Text sizes for titles
|
|
103
|
-
* https://typescale.com/
|
|
104
|
-
*
|
|
105
|
-
* Scale: 1.2
|
|
106
|
-
* Base: 16px
|
|
107
|
-
*/
|
|
108
|
-
textSizes: {
|
|
109
|
-
xs: number;
|
|
110
|
-
sm: number;
|
|
111
|
-
md: number;
|
|
112
|
-
lg: number;
|
|
113
|
-
xl: number;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export { ColorLiteral, DefaultTagColors, ElementColorValues, LikeC4StyleDefaults, RelationshipColorValues, ThemeColorValues, assignTagColors, computeColorValues, defaultTheme, styleDefaults };
|
|
1
|
+
import "../_chunks/_aux.mjs";
|
|
2
|
+
import "../_chunks/scalar.mjs";
|
|
3
|
+
import { $ as ThemeColors, A as HexColor, B as ShapeSize, C as BorderStyle, D as CustomColorDefinitions, E as CustomColor, F as LikeC4Theme, G as ThemeColorValues, H as SpacingSize, I as RelationshipArrowType, J as BorderStyles, K as isCustomColor, L as RelationshipArrowTypes, M as IconSize, N as LikeC4StyleDefaults, O as ElementColorValues, P as LikeC4StylesConfig, Q as Sizes, R as RelationshipColorValues, T as ColorLiteral, U as TextSize, V as Size, W as ThemeColor, X as ElementShapes, Y as DefaultTagColors, Z as IconPositions, j as IconPosition, k as ElementShape, q as isThemeColor, w as Color, z as RelationshipLineType } from "../_chunks/expression.mjs";
|
|
4
|
+
import "../_chunks/fqnRef.mjs";
|
|
5
|
+
import "../_chunks/expression-model.mjs";
|
|
6
|
+
import "../_chunks/index2.mjs";
|
|
7
|
+
import "../_chunks/RichText.mjs";
|
|
8
|
+
import { a as LikeC4Styles, i as assignTagColors, n as styleDefaults, r as computeColorValues, t as defaultTheme } from "../_chunks/index3.mjs";
|
|
9
|
+
export { BorderStyle, BorderStyles, Color, ColorLiteral, CustomColor, CustomColorDefinitions, DefaultTagColors, ElementColorValues, ElementShape, ElementShapes, HexColor, IconPosition, IconPositions, IconSize, LikeC4StyleDefaults, LikeC4Styles, LikeC4StylesConfig, LikeC4Theme, RelationshipArrowType, RelationshipArrowTypes, RelationshipColorValues, RelationshipLineType, ShapeSize, Size, Sizes, SpacingSize, TextSize, ThemeColor, ThemeColorValues, ThemeColors, assignTagColors, computeColorValues, defaultTheme, isCustomColor, isThemeColor, styleDefaults };
|