@likec4/core 1.47.0 → 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.
Files changed (181) hide show
  1. package/LICENSE +1 -1
  2. package/dist/_chunks/Builder.view-element.mjs +3284 -0
  3. package/dist/_chunks/LikeC4Model.d.mts +1287 -0
  4. package/dist/_chunks/LikeC4Styles.mjs +691 -0
  5. package/dist/_chunks/RichText.d.mts +84 -0
  6. package/dist/_chunks/RichText.mjs +148 -0
  7. package/dist/_chunks/_aux.d.mts +289 -0
  8. package/dist/_chunks/_aux.mjs +18 -0
  9. package/dist/_chunks/_types.d.mts +781 -0
  10. package/dist/_chunks/_types2.d.mts +38 -0
  11. package/dist/_chunks/assignTagColors.mjs +24 -0
  12. package/dist/_chunks/calcDriftsFromSnapshot.mjs +379 -0
  13. package/dist/_chunks/connection.mjs +0 -0
  14. package/dist/_chunks/const.d.mts +43 -0
  15. package/dist/_chunks/const.mjs +33 -0
  16. package/dist/_chunks/expression-model.d.mts +192 -0
  17. package/dist/_chunks/expression-model.mjs +103 -0
  18. package/dist/_chunks/expression.d.mts +347 -0
  19. package/dist/_chunks/expression.mjs +107 -0
  20. package/dist/_chunks/find.d.mts +82 -0
  21. package/dist/_chunks/find.mjs +646 -0
  22. package/dist/_chunks/find2.d.mts +78 -0
  23. package/dist/_chunks/find2.mjs +287 -0
  24. package/dist/_chunks/fqnRef.d.mts +58 -0
  25. package/dist/_chunks/fqnRef.mjs +41 -0
  26. package/dist/_chunks/geometry.mjs +335 -0
  27. package/dist/_chunks/index.d.mts +169 -0
  28. package/dist/_chunks/index2.d.mts +937 -0
  29. package/dist/_chunks/index3.d.mts +146 -0
  30. package/dist/_chunks/index4.d.mts +62 -0
  31. package/dist/_chunks/index5.d.mts +42 -0
  32. package/dist/_chunks/index6.d.mts +43 -0
  33. package/dist/{shared/core.OtRNdMxy.d.mts → _chunks/index7.d.mts} +113 -197
  34. package/dist/_chunks/index8.d.mts +144 -0
  35. package/dist/_chunks/invariant.mjs +18 -0
  36. package/dist/_chunks/iterable.mjs +146 -0
  37. package/dist/_chunks/libs/@mantine/colors-generator.mjs +3416 -0
  38. package/dist/_chunks/libs/@ungap/structured-clone.mjs +213 -0
  39. package/dist/_chunks/libs/bail.mjs +14 -0
  40. package/dist/_chunks/libs/ccount.mjs +25 -0
  41. package/dist/_chunks/libs/character-entities-html4.mjs +263 -0
  42. package/dist/_chunks/libs/character-entities-legacy.mjs +117 -0
  43. package/dist/_chunks/libs/character-entities.mjs +2136 -0
  44. package/dist/_chunks/libs/comma-separated-tokens.mjs +18 -0
  45. package/dist/_chunks/libs/decode-named-character-reference.mjs +21 -0
  46. package/dist/_chunks/libs/defu.mjs +42 -0
  47. package/dist/_chunks/libs/devlop.mjs +5 -0
  48. package/dist/_chunks/libs/escape-string-regexp.mjs +8 -0
  49. package/dist/_chunks/libs/extend.mjs +77 -0
  50. package/dist/_chunks/libs/graphology-dag.mjs +703 -0
  51. package/dist/_chunks/libs/graphology-types.d.mts +601 -0
  52. package/dist/_chunks/libs/graphology.d.mts +6 -0
  53. package/dist/_chunks/libs/graphology.mjs +4565 -0
  54. package/dist/_chunks/libs/hast-util-sanitize.mjs +863 -0
  55. package/dist/_chunks/libs/hast-util-to-html.mjs +2696 -0
  56. package/dist/_chunks/libs/is-plain-obj.mjs +9 -0
  57. package/dist/_chunks/libs/longest-streak.mjs +30 -0
  58. package/dist/_chunks/libs/markdown-table.mjs +290 -0
  59. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +653 -0
  60. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +8522 -0
  61. package/dist/_chunks/libs/mdast-util-gfm.mjs +2393 -0
  62. package/dist/_chunks/libs/mdast-util-to-hast.mjs +1803 -0
  63. package/dist/_chunks/libs/micromark-extension-gfm.mjs +2243 -0
  64. package/dist/_chunks/libs/mnemonist.d.mts +254 -0
  65. package/dist/_chunks/libs/mnemonist.mjs +1978 -0
  66. package/dist/_chunks/libs/natural-compare-lite.mjs +42 -0
  67. package/dist/_chunks/libs/rehype-sanitize.mjs +29 -0
  68. package/dist/_chunks/libs/rehype-stringify.mjs +34 -0
  69. package/dist/_chunks/libs/remark-gfm.mjs +36 -0
  70. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +100 -0
  71. package/dist/_chunks/libs/remark-parse.mjs +39 -0
  72. package/dist/_chunks/libs/remark-rehype.mjs +171 -0
  73. package/dist/_chunks/libs/remeda.mjs +702 -0
  74. package/dist/_chunks/libs/trough.mjs +158 -0
  75. package/dist/_chunks/libs/unified.mjs +2212 -0
  76. package/dist/_chunks/mnemonist.d.mts +1 -0
  77. package/dist/_chunks/mnemonist.mjs +0 -0
  78. package/dist/_chunks/model.mjs +1898 -0
  79. package/dist/_chunks/model2.mjs +0 -0
  80. package/dist/_chunks/relationships-view.mjs +132 -0
  81. package/dist/_chunks/rolldown-runtime.mjs +42 -0
  82. package/dist/{shared/core.C_3y3eqV.d.mts → _chunks/scalar.d.mts} +13 -43
  83. package/dist/_chunks/scalar.mjs +84 -0
  84. package/dist/_chunks/utils.mjs +483 -0
  85. package/dist/builder/index.d.mts +11 -775
  86. package/dist/builder/index.mjs +631 -1022
  87. package/dist/compute-view/index.d.mts +85 -56
  88. package/dist/compute-view/index.mjs +247 -214
  89. package/dist/compute-view/relationships-view/index.d.mts +16 -51
  90. package/dist/compute-view/relationships-view/index.mjs +6 -184
  91. package/dist/geometry/index.d.mts +2 -109
  92. package/dist/geometry/index.mjs +2 -327
  93. package/dist/index.d.mts +18 -20
  94. package/dist/index.mjs +27 -18
  95. package/dist/model/connection/deployment/index.d.mts +12 -15
  96. package/dist/model/connection/deployment/index.mjs +9 -2
  97. package/dist/model/connection/index.d.mts +14 -75
  98. package/dist/model/connection/index.mjs +10 -3
  99. package/dist/model/connection/model/index.d.mts +12 -15
  100. package/dist/model/connection/model/index.mjs +8 -2
  101. package/dist/model/index.d.mts +15 -57
  102. package/dist/model/index.mjs +11 -4
  103. package/dist/styles/index.d.mts +9 -117
  104. package/dist/styles/index.mjs +26 -59
  105. package/dist/types/RichText.d.mts +3 -0
  106. package/dist/types/RichText.mjs +7 -0
  107. package/dist/types/_aux.d.mts +3 -4
  108. package/dist/types/_aux.mjs +2 -7
  109. package/dist/types/expression-model.d.mts +6 -190
  110. package/dist/types/expression-model.mjs +6 -108
  111. package/dist/types/expression.d.mts +5 -6
  112. package/dist/types/expression.mjs +6 -112
  113. package/dist/types/fqnRef.d.mts +4 -60
  114. package/dist/types/fqnRef.mjs +6 -44
  115. package/dist/types/index.d.mts +9 -47
  116. package/dist/types/index.mjs +14 -16
  117. package/dist/types/scalar.d.mts +2 -2
  118. package/dist/types/scalar.mjs +7 -4
  119. package/dist/utils/graphology/index.d.mts +2 -1864
  120. package/dist/utils/graphology/index.mjs +3 -1
  121. package/dist/utils/index.d.mts +11 -124
  122. package/dist/utils/index.mjs +16 -43
  123. package/dist/utils/iterable/index.d.mts +9 -132
  124. package/dist/utils/iterable/index.mjs +2 -61
  125. package/dist/utils/mnemonist.d.mts +2 -0
  126. package/dist/utils/mnemonist.mjs +12 -0
  127. package/package.json +17 -22
  128. package/compute-view/relationships/package.json +0 -4
  129. package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
  130. package/dist/shared/core.78IWAHAE.mjs +0 -332
  131. package/dist/shared/core.B85MJLTf.mjs +0 -5
  132. package/dist/shared/core.BFd1lU9R.mjs +0 -29
  133. package/dist/shared/core.BKlholso.mjs +0 -3
  134. package/dist/shared/core.BNN-3vPH.mjs +0 -1255
  135. package/dist/shared/core.BPGOjone.d.mts +0 -46
  136. package/dist/shared/core.BP_QHEXs.mjs +0 -785
  137. package/dist/shared/core.BbE4y-yl.mjs +0 -177
  138. package/dist/shared/core.Bdy3hhTc.mjs +0 -28382
  139. package/dist/shared/core.BfCKSW-g.d.mts +0 -1266
  140. package/dist/shared/core.BhNcrwzK.mjs +0 -7
  141. package/dist/shared/core.BkVA6gjl.mjs +0 -5
  142. package/dist/shared/core.BoYfZOBm.mjs +0 -3
  143. package/dist/shared/core.BsSXS-_R.mjs +0 -7
  144. package/dist/shared/core.C3JowhaZ.mjs +0 -32
  145. package/dist/shared/core.C4x8aaWa.mjs +0 -27
  146. package/dist/shared/core.CAgYpDtM.d.mts +0 -98
  147. package/dist/shared/core.CHf8VEa3.mjs +0 -1206
  148. package/dist/shared/core.CLSZtnFh.mjs +0 -69
  149. package/dist/shared/core.CbT8JVYL.mjs +0 -5
  150. package/dist/shared/core.CdNCAwq7.mjs +0 -176
  151. package/dist/shared/core.CmGY9blO.mjs +0 -6717
  152. package/dist/shared/core.CmPXpJ8l.mjs +0 -21
  153. package/dist/shared/core.Coi_LOUZ.mjs +0 -7
  154. package/dist/shared/core.CqAJJpK_.mjs +0 -3
  155. package/dist/shared/core.CywrQs86.d.mts +0 -31
  156. package/dist/shared/core.D00YbOhQ.d.mts +0 -300
  157. package/dist/shared/core.D0WZutNd.mjs +0 -94
  158. package/dist/shared/core.D4npX2q8.mjs +0 -18
  159. package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
  160. package/dist/shared/core.DC5IAaDT.d.mts +0 -334
  161. package/dist/shared/core.DE9qzhn8.d.mts +0 -83
  162. package/dist/shared/core.DGcIbsj4.mjs +0 -3946
  163. package/dist/shared/core.DH7TXqXf.mjs +0 -136
  164. package/dist/shared/core.DKhRkHRN.d.mts +0 -41
  165. package/dist/shared/core.DRJma0Ol.mjs +0 -22
  166. package/dist/shared/core.DU5SRqNF.mjs +0 -2209
  167. package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
  168. package/dist/shared/core.DbfO90vF.mjs +0 -434
  169. package/dist/shared/core.DcS-0zys.mjs +0 -10
  170. package/dist/shared/core.Dh119QSP.mjs +0 -4995
  171. package/dist/shared/core.DjcWextK.mjs +0 -1371
  172. package/dist/shared/core.Dojz4bvg.d.mts +0 -504
  173. package/dist/shared/core.FZ305VYd.mjs +0 -21
  174. package/dist/shared/core.RfnaEmgA.mjs +0 -7
  175. package/dist/shared/core.btEq3i3f.mjs +0 -300
  176. package/dist/shared/core.oSV6SRfk.mjs +0 -13
  177. package/dist/shared/core.om36dXXW.mjs +0 -41
  178. package/dist/shared/core.osFs8tU7.d.mts +0 -466
  179. package/dist/shared/core.q10OP9oJ.mjs +0 -5
  180. package/dist/shared/core.tpvDGvdC.d.mts +0 -87
  181. package/dist/shared/core.uFk_o9X6.mjs +0 -13
package/dist/index.d.mts CHANGED
@@ -1,21 +1,18 @@
1
- import { L as LayoutedView, V as ViewManualLayoutSnapshot } from './shared/core.osFs8tU7.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.osFs8tU7.mjs';
3
- export { B as BiMap, D as DefaultWeakMap, L as LinkedList, M as MultiMap, Q as Queue, a as ancestorsFqn, h as hasProp, i as invariant, b as isAncestor, c as isDescendantOf, d as isNonEmptyArray, e as isSameHierarchy, f as isString, m as memoizeProp, n as nameFromFqn, j as nonNullable, g as nonexhaustive, p as parentFqn, s as sortNaturalByFqn, k as sortParentsFirst } from './shared/core.OtRNdMxy.mjs';
4
- export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
5
- export { L as LikeC4Styles } from './shared/core.CAgYpDtM.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.DC5IAaDT.mjs';
7
- export { i as isIterable } from './shared/core.DXhDWKFZ.mjs';
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.D00YbOhQ.mjs';
9
- export { A as AnyFqn, B as BuiltInIcon, D as DeploymentFqn, b as DeploymentKind, k as EdgeId, E as ElementKind, F as Fqn, e as GlobalFqn, G as GroupElementKind, I as Icon, a as IconUrl, M as MarkdownOrString, j as NodeId, N as NoneIcon, P as ProjectId, d as RelationId, R as RelationKind, c as RelationshipKind, l as StepEdgeId, S as StepEdgeIdLiteral, n as StepEdgeKind, T as Tag, V as ViewId, p as extractStep, f as flattenMarkdownOrString, g as isGlobalFqn, i as isGroupElementKind, o as isStepEdgeId, s as scalar, h as splitGlobalFqn, m as stepEdgeId } from './shared/core.C_3y3eqV.mjs';
10
- export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.DB0Ue5Wx.mjs';
11
- export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
12
- export { FqnRef } from './types/fqnRef.mjs';
13
- export { B as BBox, P as Point, R as RectBox, X as XYPoint } from './shared/core.BPGOjone.mjs';
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.Dojz4bvg.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
- export { L as LikeC4Styles, e as ensureSizes } from './shared/core.DGcIbsj4.mjs';
2
- export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.CdNCAwq7.mjs';
3
- export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.BNN-3vPH.mjs';
4
- export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
5
- export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
6
- export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
7
- export { m as memoizeProp } from './shared/core.CLSZtnFh.mjs';
8
- export { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.DjcWextK.mjs';
9
- export { preferDescription, preferSummary } from './types/_aux.mjs';
10
- export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, d as NodeId, N as NoneIcon, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, h as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, g as isStepEdgeId, s as scalar, c as splitGlobalFqn, e as stepEdgeId } from './shared/core.D0WZutNd.mjs';
11
- export { R as RichText, e as exact } from './shared/core.CHf8VEa3.mjs';
12
- export { b as _layout, _ as _stage, a as _type, j as isAndOperator, n as isComputedView, d as isDeployedInstance, c as isDeploymentNode, s as isDeploymentView, o as isDiagramView, t as isDynamicView, p as isElementView, r as isExtendsElementView, f as isKindEqual, o as isLayoutedView, h as isNotOperator, i as isOnStage, k as isOrOperator, g as isParticipantOperator, q as isScopedElementView, e as isTagEqual, l as isViewRulePredicate, m as isViewRuleStyle, w as whereOperatorAsPredicate } from './shared/core.DH7TXqXf.mjs';
13
- export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
14
- export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
15
- export { FqnRef } from './types/fqnRef.mjs';
16
- export { BBox, RectBox, Vector, vector } from './geometry/index.mjs';
17
- export { isTagColorSpecified } from './types/index.mjs';
18
- export { g as getParallelStepsPrefix, b as isAutoLayoutDirection, d as isDynamicStep, e as isDynamicStepsParallel, f as isDynamicStepsSeries, c as isViewRuleAutoLayout, a as isViewRuleGlobalPredicateRef, i as isViewRuleGlobalStyle, h as isViewRuleGroup, j as isViewRuleRank } from './shared/core.om36dXXW.mjs';
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
- export { C as Connection } from '../../../shared/core.DKhRkHRN.mjs';
2
- export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.tpvDGvdC.mjs';
3
- import '../../../shared/core.BfCKSW-g.mjs';
4
- import 'type-fest';
5
- import '../../../shared/core.CAgYpDtM.mjs';
6
- import '../../../shared/core.DC5IAaDT.mjs';
7
- import '../../../shared/core.D00YbOhQ.mjs';
8
- import '../../../shared/core.DB0Ue5Wx.mjs';
9
- import '../../../shared/core.C_3y3eqV.mjs';
10
- import '../../../types/fqnRef.mjs';
11
- import '../../../shared/core.Dojz4bvg.mjs';
12
- import '../../../types/expression-model.mjs';
13
- import '../../../shared/core.BPGOjone.mjs';
14
- import '../../../shared/core.CywrQs86.mjs';
15
- import '../../../shared/core.osFs8tU7.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
- export { C as Connection } from '../../../shared/core.BFd1lU9R.mjs';
2
- export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.BP_QHEXs.mjs';
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 { C as Connection } from '../../shared/core.DKhRkHRN.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.tpvDGvdC.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.DE9qzhn8.mjs';
4
- import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
5
- import '../../shared/core.BfCKSW-g.mjs';
6
- import 'type-fest';
7
- import '../../shared/core.CAgYpDtM.mjs';
8
- import '../../shared/core.DC5IAaDT.mjs';
9
- import '../../shared/core.D00YbOhQ.mjs';
10
- import '../../shared/core.C_3y3eqV.mjs';
11
- import '../../types/fqnRef.mjs';
12
- import '../../shared/core.Dojz4bvg.mjs';
13
- import '../../types/expression-model.mjs';
14
- import '../../shared/core.BPGOjone.mjs';
15
- import '../../shared/core.CywrQs86.mjs';
16
- import '../../shared/core.osFs8tU7.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
- export { C as Connection } from '../../shared/core.BFd1lU9R.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.BP_QHEXs.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.78IWAHAE.mjs';
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
- export { C as Connection } from '../../../shared/core.DKhRkHRN.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DE9qzhn8.mjs';
3
- import '../../../shared/core.BfCKSW-g.mjs';
4
- import 'type-fest';
5
- import '../../../shared/core.CAgYpDtM.mjs';
6
- import '../../../shared/core.DC5IAaDT.mjs';
7
- import '../../../shared/core.D00YbOhQ.mjs';
8
- import '../../../shared/core.DB0Ue5Wx.mjs';
9
- import '../../../shared/core.C_3y3eqV.mjs';
10
- import '../../../types/fqnRef.mjs';
11
- import '../../../shared/core.Dojz4bvg.mjs';
12
- import '../../../types/expression-model.mjs';
13
- import '../../../shared/core.BPGOjone.mjs';
14
- import '../../../shared/core.CywrQs86.mjs';
15
- import '../../../shared/core.osFs8tU7.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
- export { C as Connection } from '../../../shared/core.BFd1lU9R.mjs';
2
- export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.78IWAHAE.mjs';
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 };
@@ -1,57 +1,15 @@
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.BfCKSW-g.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.BfCKSW-g.mjs';
3
- import { A as Any } from '../shared/core.D00YbOhQ.mjs';
4
- export { C as Connection } from '../shared/core.DKhRkHRN.mjs';
5
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.DE9qzhn8.mjs';
6
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.tpvDGvdC.mjs';
7
- export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
8
- import 'type-fest';
9
- import '../shared/core.CAgYpDtM.mjs';
10
- import '../shared/core.DC5IAaDT.mjs';
11
- import '../shared/core.DB0Ue5Wx.mjs';
12
- import '../types/fqnRef.mjs';
13
- import '../shared/core.C_3y3eqV.mjs';
14
- import '../shared/core.Dojz4bvg.mjs';
15
- import '../types/expression-model.mjs';
16
- import '../shared/core.BPGOjone.mjs';
17
- import '../shared/core.CywrQs86.mjs';
18
- import '../shared/core.osFs8tU7.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 };
@@ -1,4 +1,11 @@
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.DU5SRqNF.mjs';
2
- export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.BP_QHEXs.mjs';
3
- export { C as Connection } from '../shared/core.BFd1lU9R.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.78IWAHAE.mjs';
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 };
@@ -1,117 +1,9 @@
1
- import { T as Tag } from '../shared/core.C_3y3eqV.mjs';
2
- import { T as TagSpecification } from '../shared/core.Dojz4bvg.mjs';
3
- import { G as ColorLiteral, c as ThemeColorValues, b as LikeC4StyleDefaults, E as ElementColorValues, R as RelationshipColorValues } from '../shared/core.DC5IAaDT.mjs';
4
- export { B as BorderStyle, z as BorderStyles, C as Color, U as CustomColor, Q as CustomColorDefinitions, h as ElementShape, D as ElementShapes, H as HexColor, L as LikeC4StylesConfig, a as LikeC4Theme, g as RelationshipArrowType, I as RelationshipArrowTypes, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, d as TextSize, T as ThemeColor, J as ThemeColors, V as isCustomColor, M as isThemeColor } from '../shared/core.DC5IAaDT.mjs';
5
- export { L as LikeC4Styles } from '../shared/core.CAgYpDtM.mjs';
6
- import 'type-fest';
7
- import '../shared/core.D00YbOhQ.mjs';
8
- import '../shared/core.DB0Ue5Wx.mjs';
9
- import '../types/fqnRef.mjs';
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 };