@likec4/core 1.41.0 → 1.42.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 (255) hide show
  1. package/builder/package.json +4 -0
  2. package/compute-view/package.json +4 -0
  3. package/compute-view/relationships/package.json +4 -0
  4. package/dist/builder/index.d.mts +13 -11
  5. package/dist/builder/index.mjs +111 -91
  6. package/dist/compute-view/index.d.mts +8 -7
  7. package/dist/compute-view/index.mjs +14 -11
  8. package/dist/compute-view/relationships-view/index.d.mts +9 -8
  9. package/dist/compute-view/relationships-view/index.mjs +6 -6
  10. package/dist/index.d.mts +7 -7
  11. package/dist/index.mjs +11 -11
  12. package/dist/model/connection/deployment/index.d.mts +11 -10
  13. package/dist/model/connection/deployment/index.mjs +2 -2
  14. package/dist/model/connection/index.d.mts +12 -11
  15. package/dist/model/connection/index.mjs +3 -3
  16. package/dist/model/connection/model/index.d.mts +11 -10
  17. package/dist/model/connection/model/index.mjs +2 -2
  18. package/dist/model/index.d.mts +14 -14
  19. package/dist/model/index.mjs +4 -5
  20. package/dist/shared/{core.Ae86Y3tB.mjs → core.01VTr9qu.mjs} +8 -26
  21. package/dist/shared/core.1vX5a9AY.mjs +86 -0
  22. package/dist/shared/{core.BVNaR17u.mjs → core.B7KhhkRY.mjs} +1 -1
  23. package/dist/shared/core.B85MJLTf.mjs +5 -0
  24. package/dist/shared/{core.DA5vzwZ9.mjs → core.BIqHjQiH.mjs} +56 -42
  25. package/dist/shared/core.BKlholso.mjs +3 -0
  26. package/dist/shared/core.BR4zXDH-.mjs +13 -0
  27. package/dist/shared/{core.CXy1NLUG.mjs → core.BYNkXQ8A.mjs} +21 -12
  28. package/dist/shared/{core.BuoXfSMj.mjs → core.BbE4y-yl.mjs} +1 -1
  29. package/dist/shared/core.BoYfZOBm.mjs +3 -0
  30. package/dist/shared/core.BsSXS-_R.mjs +7 -0
  31. package/dist/shared/{core.DJp8fgok.mjs → core.BzTakU3I.mjs} +14 -10
  32. package/dist/shared/{core.4u1dVmfX.mjs → core.C2TiyjI6.mjs} +2 -2
  33. package/dist/shared/{core.DLpidoWc.mjs → core.C3JowhaZ.mjs} +3 -3
  34. package/dist/shared/{core.CNGyqkJh.mjs → core.C4x8aaWa.mjs} +3 -1
  35. package/dist/shared/{core.BB6zA-UU.mjs → core.C8YY6Uub.mjs} +38 -9
  36. package/dist/shared/{core.Asc11Mjy.mjs → core.C8sl5Y8Z.mjs} +122 -58
  37. package/dist/shared/{core.BvMRMo7Z.mjs → core.CNgZvKb8.mjs} +3 -5198
  38. package/dist/shared/{core.CUG6vpyL.d.mts → core.CQngdcuj.d.mts} +85 -4
  39. package/dist/shared/{core.Be1n9a0i.mjs → core.C_Ni6yHl.mjs} +5 -4
  40. package/dist/shared/core.CbT8JVYL.mjs +5 -0
  41. package/dist/shared/core.CqAJJpK_.mjs +3 -0
  42. package/dist/shared/{core.BXsxn-hf.d.mts → core.D0PjZzIS.d.mts} +27 -15
  43. package/dist/shared/{core.DgesAwC8.d.mts → core.D5fzJWbF.d.mts} +2 -2
  44. package/dist/shared/{core.hfOE3RfK.d.mts → core.DACpKp35.d.mts} +5 -5
  45. package/dist/shared/core.DFi2dOTl.mjs +39548 -0
  46. package/dist/shared/{core.xSQO0XYD.d.mts → core.DIol3syK.d.mts} +2 -2
  47. package/dist/shared/{core.DlG1xWt2.mjs → core.DMMOWQqc.mjs} +3 -2
  48. package/dist/shared/core.DNbUPnve.mjs +3990 -0
  49. package/dist/shared/{core.CCD1ID81.mjs → core.DRJma0Ol.mjs} +4 -3
  50. package/dist/shared/{core.DgttqsJc.mjs → core.DRhg-gVU.mjs} +9 -9
  51. package/dist/shared/core.DSO_rTC2.mjs +5322 -0
  52. package/dist/shared/{core.FUPplpae.d.mts → core.D_vkffV4.d.mts} +4 -2
  53. package/dist/shared/core.DdMJk7nx.d.mts +476 -0
  54. package/dist/shared/{core.BhpgpOep.d.mts → core.Dgs6-nuz.d.mts} +2 -2
  55. package/dist/shared/{core.Be4Jy9Qx.mjs → core.FZ305VYd.mjs} +2 -2
  56. package/dist/shared/core.OHD4KXm9.mjs +5 -0
  57. package/dist/shared/{core.GTgsmXS_.mjs → core.QJD_fcrc.mjs} +2 -2
  58. package/dist/shared/core.RfnaEmgA.mjs +7 -0
  59. package/dist/shared/core.fHR_8Tnq.d.mts +450 -0
  60. package/dist/shared/{core.D0EgVMQK.mjs → core.lRvxPoao.mjs} +14 -12
  61. package/dist/shared/{core.CaT0SUUK.mjs → core.rCeaAqgW.mjs} +1 -84
  62. package/dist/shared/{core.zxTBF_PD.d.mts → core.s9uwOt60.d.mts} +4 -4
  63. package/dist/shared/core.yna0OdV5.d.mts +98 -0
  64. package/dist/styles/index.d.mts +106 -0
  65. package/dist/styles/index.mjs +1 -0
  66. package/dist/types/_aux.d.mts +2 -2
  67. package/dist/types/expression-model.d.mts +3 -4
  68. package/dist/types/expression.d.mts +3 -4
  69. package/dist/types/fqnRef.d.mts +2 -2
  70. package/dist/types/fqnRef.mjs +3 -3
  71. package/dist/types/index.d.mts +8 -8
  72. package/dist/types/index.mjs +150 -5
  73. package/dist/types/scalar.mjs +3 -2
  74. package/dist/utils/graphology/index.d.mts +1864 -0
  75. package/dist/utils/graphology/index.mjs +1 -0
  76. package/dist/utils/index.d.mts +11 -6
  77. package/dist/utils/index.mjs +21 -37
  78. package/dist/utils/iterable/index.d.mts +1 -1
  79. package/dist/utils/iterable/index.mjs +45 -7
  80. package/model/package.json +4 -0
  81. package/package.json +42 -24
  82. package/styles/package.json +4 -0
  83. package/types/package.json +4 -0
  84. package/utils/graphology/package.json +4 -0
  85. package/utils/package.json +4 -0
  86. package/dist/shared/core.6_Vp2iiN.mjs +0 -172
  87. package/dist/shared/core.CUw_2J9j.mjs +0 -47
  88. package/dist/shared/core.CzdwsPmY.d.mts +0 -69
  89. package/dist/shared/core.D-ZGWDDt.d.mts +0 -831
  90. package/dist/shared/core.DoM6aM9N.mjs +0 -7
  91. package/dist/shared/core.ILwny7BV.mjs +0 -38
  92. package/dist/theme/index.d.mts +0 -11
  93. package/dist/theme/index.mjs +0 -232
  94. package/src/builder/Builder.deployment.ts +0 -224
  95. package/src/builder/Builder.deploymentModel.ts +0 -449
  96. package/src/builder/Builder.element.ts +0 -241
  97. package/src/builder/Builder.model.ts +0 -494
  98. package/src/builder/Builder.ts +0 -946
  99. package/src/builder/Builder.view-common.ts +0 -273
  100. package/src/builder/Builder.view-deployment.ts +0 -135
  101. package/src/builder/Builder.view-element.ts +0 -202
  102. package/src/builder/Builder.views.ts +0 -399
  103. package/src/builder/Builder.with.ts +0 -156
  104. package/src/builder/_types.ts +0 -324
  105. package/src/builder/index.ts +0 -11
  106. package/src/compute-view/compute-view.ts +0 -80
  107. package/src/compute-view/deployment-view/_types.ts +0 -38
  108. package/src/compute-view/deployment-view/clean-connections.ts +0 -236
  109. package/src/compute-view/deployment-view/compute.ts +0 -94
  110. package/src/compute-view/deployment-view/memory/index.ts +0 -9
  111. package/src/compute-view/deployment-view/memory/memory.ts +0 -96
  112. package/src/compute-view/deployment-view/predicates/deploymentRefs-where.ts +0 -18
  113. package/src/compute-view/deployment-view/predicates/deploymentRefs.ts +0 -154
  114. package/src/compute-view/deployment-view/predicates/index.ts +0 -8
  115. package/src/compute-view/deployment-view/predicates/relation-direct.ts +0 -243
  116. package/src/compute-view/deployment-view/predicates/relation-in-out.ts +0 -70
  117. package/src/compute-view/deployment-view/predicates/relation-incoming.ts +0 -101
  118. package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +0 -95
  119. package/src/compute-view/deployment-view/predicates/relation-where.ts +0 -18
  120. package/src/compute-view/deployment-view/predicates/utils.ts +0 -282
  121. package/src/compute-view/deployment-view/predicates/wildcard.ts +0 -41
  122. package/src/compute-view/deployment-view/stages/stage-exclude.ts +0 -5
  123. package/src/compute-view/deployment-view/stages/stage-final.ts +0 -245
  124. package/src/compute-view/deployment-view/stages/stage-include.ts +0 -95
  125. package/src/compute-view/deployment-view/utils.ts +0 -297
  126. package/src/compute-view/dynamic-view/compute.ts +0 -312
  127. package/src/compute-view/element-view/_types.ts +0 -47
  128. package/src/compute-view/element-view/clean-connections.ts +0 -117
  129. package/src/compute-view/element-view/compute.ts +0 -324
  130. package/src/compute-view/element-view/memory/NodeGroup.ts +0 -31
  131. package/src/compute-view/element-view/memory/index.ts +0 -10
  132. package/src/compute-view/element-view/memory/memory.ts +0 -178
  133. package/src/compute-view/element-view/memory/stage-exclude.ts +0 -59
  134. package/src/compute-view/element-view/memory/stage-final.ts +0 -129
  135. package/src/compute-view/element-view/memory/stage-include.ts +0 -130
  136. package/src/compute-view/element-view/predicates/_utils.ts +0 -91
  137. package/src/compute-view/element-view/predicates/element-expand.ts +0 -29
  138. package/src/compute-view/element-view/predicates/element-kind-tag.ts +0 -27
  139. package/src/compute-view/element-view/predicates/element-ref.ts +0 -24
  140. package/src/compute-view/element-view/predicates/relation-direct.ts +0 -321
  141. package/src/compute-view/element-view/predicates/relation-in-out.ts +0 -64
  142. package/src/compute-view/element-view/predicates/relation-in.ts +0 -115
  143. package/src/compute-view/element-view/predicates/relation-out.ts +0 -119
  144. package/src/compute-view/element-view/predicates/wildcard.ts +0 -88
  145. package/src/compute-view/element-view/utils.ts +0 -65
  146. package/src/compute-view/index.ts +0 -4
  147. package/src/compute-view/memory/AbstractMemory.ts +0 -45
  148. package/src/compute-view/memory/AbstractStageExclude.ts +0 -215
  149. package/src/compute-view/memory/AbstractStageInclude.ts +0 -200
  150. package/src/compute-view/memory/_types.ts +0 -148
  151. package/src/compute-view/memory/index.ts +0 -5
  152. package/src/compute-view/memory/ops.ts +0 -43
  153. package/src/compute-view/relationships-view/_types.ts +0 -16
  154. package/src/compute-view/relationships-view/compute.ts +0 -159
  155. package/src/compute-view/relationships-view/index.ts +0 -3
  156. package/src/compute-view/relationships-view/layout.ts +0 -358
  157. package/src/compute-view/relationships-view/utils.ts +0 -73
  158. package/src/compute-view/utils/ancestorsOfNode.ts +0 -19
  159. package/src/compute-view/utils/applyCustomElementProperties.ts +0 -107
  160. package/src/compute-view/utils/applyCustomRelationProperties.ts +0 -58
  161. package/src/compute-view/utils/applyViewRuleStyles.ts +0 -73
  162. package/src/compute-view/utils/buildComputedNodes.ts +0 -166
  163. package/src/compute-view/utils/buildElementNotations.ts +0 -64
  164. package/src/compute-view/utils/elementExpressionToPredicate.ts +0 -50
  165. package/src/compute-view/utils/link-nodes-with-edges.ts +0 -56
  166. package/src/compute-view/utils/merge-props-from-relationships.ts +0 -161
  167. package/src/compute-view/utils/relationExpressionToPredicates.ts +0 -55
  168. package/src/compute-view/utils/resolve-extended-views.ts +0 -85
  169. package/src/compute-view/utils/resolve-global-rules.ts +0 -88
  170. package/src/compute-view/utils/topological-sort.ts +0 -256
  171. package/src/compute-view/utils/view-hash.ts +0 -45
  172. package/src/compute-view/utils/with-readable-edges.ts +0 -40
  173. package/src/index.ts +0 -32
  174. package/src/model/DeploymentElementModel.ts +0 -712
  175. package/src/model/DeploymentModel.ts +0 -393
  176. package/src/model/ElementModel.ts +0 -316
  177. package/src/model/LikeC4Model.ts +0 -882
  178. package/src/model/RelationModel.ts +0 -152
  179. package/src/model/connection/Connection.ts +0 -72
  180. package/src/model/connection/deployment/DeploymentConnectionModel.ts +0 -185
  181. package/src/model/connection/deployment/find.ts +0 -120
  182. package/src/model/connection/deployment/index.ts +0 -8
  183. package/src/model/connection/index.ts +0 -22
  184. package/src/model/connection/model/ConnectionModel.ts +0 -158
  185. package/src/model/connection/model/find.ts +0 -117
  186. package/src/model/connection/model/index.ts +0 -8
  187. package/src/model/connection/ops.ts +0 -276
  188. package/src/model/guards.ts +0 -77
  189. package/src/model/index.ts +0 -72
  190. package/src/model/types.ts +0 -67
  191. package/src/model/utils.ts +0 -66
  192. package/src/model/view/EdgeModel.ts +0 -121
  193. package/src/model/view/LikeC4ViewModel.ts +0 -361
  194. package/src/model/view/LikeC4ViewsFolder.ts +0 -151
  195. package/src/model/view/NodeModel.ts +0 -247
  196. package/src/theme/element.ts +0 -61
  197. package/src/theme/index.ts +0 -127
  198. package/src/theme/relationships.ts +0 -54
  199. package/src/types/RichText.ts +0 -205
  200. package/src/types/_aux.ts +0 -317
  201. package/src/types/_common.ts +0 -102
  202. package/src/types/const.ts +0 -34
  203. package/src/types/expression-model.ts +0 -294
  204. package/src/types/expression.ts +0 -313
  205. package/src/types/fqnRef.ts +0 -91
  206. package/src/types/geometry.ts +0 -159
  207. package/src/types/global.ts +0 -21
  208. package/src/types/index.ts +0 -44
  209. package/src/types/model-data.ts +0 -77
  210. package/src/types/model-deployment.ts +0 -78
  211. package/src/types/model-dump.ts +0 -79
  212. package/src/types/model-logical.ts +0 -126
  213. package/src/types/model-spec.ts +0 -88
  214. package/src/types/operators.ts +0 -156
  215. package/src/types/project.ts +0 -14
  216. package/src/types/scalar.ts +0 -162
  217. package/src/types/styles.ts +0 -122
  218. package/src/types/view-changes.ts +0 -32
  219. package/src/types/view-common.ts +0 -157
  220. package/src/types/view-computed.ts +0 -126
  221. package/src/types/view-layouted.ts +0 -94
  222. package/src/types/view-parsed.deployment.ts +0 -39
  223. package/src/types/view-parsed.dynamic.ts +0 -89
  224. package/src/types/view-parsed.element.ts +0 -65
  225. package/src/types/view.ts +0 -113
  226. package/src/utils/common-head.ts +0 -22
  227. package/src/utils/compare-natural.ts +0 -60
  228. package/src/utils/const.ts +0 -1
  229. package/src/utils/fqn.ts +0 -302
  230. package/src/utils/getOrCreate.ts +0 -8
  231. package/src/utils/guards.ts +0 -9
  232. package/src/utils/index.ts +0 -68
  233. package/src/utils/invariant.ts +0 -29
  234. package/src/utils/iterable/_types.ts +0 -5
  235. package/src/utils/iterable/filter.ts +0 -55
  236. package/src/utils/iterable/find.ts +0 -38
  237. package/src/utils/iterable/first.ts +0 -48
  238. package/src/utils/iterable/flat.ts +0 -17
  239. package/src/utils/iterable/head.ts +0 -22
  240. package/src/utils/iterable/index.ts +0 -15
  241. package/src/utils/iterable/map.ts +0 -40
  242. package/src/utils/iterable/reduce.ts +0 -24
  243. package/src/utils/iterable/some.ts +0 -36
  244. package/src/utils/iterable/to.ts +0 -19
  245. package/src/utils/iterable/unique.ts +0 -23
  246. package/src/utils/markdown/index.ts +0 -2
  247. package/src/utils/markdown/to-html.ts +0 -32
  248. package/src/utils/markdown/to-text.ts +0 -14
  249. package/src/utils/memoize-prop.ts +0 -30
  250. package/src/utils/mnemonist.ts +0 -9
  251. package/src/utils/object-hash.ts +0 -14
  252. package/src/utils/promises.ts +0 -24
  253. package/src/utils/relations.ts +0 -36
  254. package/src/utils/set.ts +0 -83
  255. package/src/utils/string-hash.ts +0 -16
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
- export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
2
- export { B as BiMap, D as DefaultWeakMap, L as LinkedList, M as MultiMap, Q as Queue, a as ancestorsFqn, i as invariant, b as isAncestor, c as isDescendantOf, d as isNonEmptyArray, e as isSameHierarchy, f as isString, m as memoizeProp, n as nameFromFqn, h as nonNullable, g as nonexhaustive, p as parentFqn, s as sortNaturalByFqn, j as sortParentsFirst } from './shared/core.FUPplpae.mjs';
1
+ 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.D_vkffV4.mjs';
3
2
  export { D as DefaultMap } from './shared/core.CywrQs86.mjs';
3
+ export { L as LikeC4Styles } from './shared/core.yna0OdV5.mjs';
4
+ export { A as AndOperator, s as BorderStyle, B as BorderStyles, Q as Color, C as ColorLiteral, J as CustomColor, I as CustomColorDefinitions, U as ElementColorValues, u as ElementShape, t as ElementShapes, c as EqualOperator, E as Expression, m as Filterable, F as FqnExpr, H as HexColor, K as KindEqual, L as LikeC4StyleDefaults, a as LikeC4StylesConfig, b as LikeC4Theme, N as NotOperator, n as OperatorPredicate, O as OrOperator, f as Participant, g as ParticipantOperator, P as PredicateSelector, R as RelationExpr, y as RelationshipArrowType, x as RelationshipArrowTypes, V as RelationshipColorValues, v as RelationshipLineType, q as ShapeSize, o as Size, S as Sizes, r as SpacingSize, d as TagEqual, p as TextSize, D as ThemeColor, T as ThemeColorValues, z as ThemeColors, W as WhereOperator, k as isAndOperator, M as isCustomColor, e as isKindEqual, j as isNotOperator, l as isOrOperator, h as isParticipantOperator, i as isTagEqual, G as isThemeColor, w as whereOperatorAsPredicate } from './shared/core.CQngdcuj.mjs';
4
5
  export { i as isIterable } from './shared/core.DXhDWKFZ.mjs';
5
- export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, f as _stage, g as _type, _ as aux, i as isOnStage, p as preferDescription, e as preferSummary } from './shared/core.BhpgpOep.mjs';
6
+ export { A as Any, A as AnyAux, a as Aux, E as ExtractOnStage, M as ModelStage, S as SpecAux, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, f as _stage, g as _type, _ as aux, i as isOnStage, p as preferDescription, e as preferSummary } from './shared/core.Dgs6-nuz.mjs';
6
7
  export { A as AnyFqn, B as BuiltInIcon, D as DeploymentFqn, b as DeploymentKind, j as EdgeId, E as ElementKind, F as Fqn, e as GlobalFqn, G as GroupElementKind, I as Icon, a as IconUrl, M as MarkdownOrString, N as NodeId, P as ProjectId, d as RelationId, R as RelationKind, c as RelationshipKind, k as StepEdgeId, S as StepEdgeIdLiteral, m as StepEdgeKind, T as Tag, V as ViewId, o as extractStep, f as flattenMarkdownOrString, g as isGlobalFqn, i as isGroupElementKind, n as isStepEdgeId, s as scalar, h as splitGlobalFqn, l as stepEdgeId } from './shared/core.DX-WYEPA.mjs';
7
- export { O as AbstractRelationship, ai as AnyExcludePredicate, ah as AnyIncludePredicate, a4 as AnyView, aj as AnyViewRuleStyle, ao as AutoLayoutDirection, u as AuxFromDump, A as AuxFromLikeC4ModelData, B as BBox, aw as BaseParsedViewProperties, av as BaseViewProperties, aD as ComputedDeploymentView, aE as ComputedDynamicView, aB as ComputedEdge, aC as ComputedElementView, C as ComputedLikeC4ModelData, aA as ComputedNode, a2 as ComputedView, K as DefaultArrowType, w as DefaultElementShape, J as DefaultLineStyle, z as DefaultPaddingSize, N as DefaultRelationshipColor, y as DefaultShapeSize, x as DefaultSize, E as DefaultTextSize, v as DefaultThemeColor, k as DeployedInstance, l as DeploymentElement, m as DeploymentElementRef, D as DeploymentElementStyle, j as DeploymentNode, q as DeploymentRelation, p as DeploymentRelationship, aL as DeploymentViewExcludePredicate, aK as DeploymentViewIncludePredicate, aM as DeploymentViewPredicate, aO as DeploymentViewRule, aN as DeploymentViewRuleStyle, aG as DiagramEdge, aF as DiagramNode, a0 as DiagramView, aW as DynamicViewDisplayVariant, aU as DynamicViewIncludeRule, aR as DynamicViewParallelSteps, aV as DynamicViewRule, aQ as DynamicViewStep, aT as DynamicViewStepOrParallel, I as Element, U as ElementSpecification, F as ElementStyle, a_ as ElementViewExcludePredicate, aZ as ElementViewIncludePredicate, a$ as ElementViewPredicate, b3 as ElementViewRule, b0 as ElementViewRuleGroup, b2 as ElementViewRuleStyle, e as GlobalDynamicPredicates, G as GlobalPredicateId, d as GlobalPredicates, f as GlobalStyleID, g as GlobalStyles, aI as LayoutedDeploymentView, aJ as LayoutedDynamicView, aH as LayoutedElementView, L as LayoutedLikeC4ModelData, a0 as LayoutedView, i as LikeC4ModelData, s as LikeC4ModelDump, _ as LikeC4Project, $ as LikeC4View, M as ModelGlobals, T as ModelRelation, ax as NodeNotation, aP as ParsedDeploymentView, aX as ParsedDynamicView, b4 as ParsedElementView, h as ParsedLikeC4ModelData, $ as ParsedView, P as Point, a3 as ProcessedView, t as ProjectDump, c as RectBox, Q as Relationship, Y as RelationshipSpecification, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, r as SpecTypesFromDump, Z as Specification, S as SpecificationDump, V as TagSpecification, as as ViewAutoLayout, at as ViewManualLayout, a5 as ViewOnStage, a7 as ViewRule, aq as ViewRuleAutoLayout, am as ViewRuleGlobalPredicateRef, ak as ViewRuleGlobalStyle, a8 as ViewRulePredicate, au as ViewType, az as ViewWithHash, ay as ViewWithNotation, a6 as ViewWithType, X as XYPoint, H as ensureSizes, aS as getParallelStepsPrefix, ap as isAutoLayoutDirection, ab as isComputedView, o as isDeployedInstance, n as isDeploymentNode, af as isDeploymentView, a1 as isDiagramView, ag as isDynamicView, aY as isDynamicViewParallelSteps, ac as isElementView, ae as isExtendsElementView, a1 as isLayoutedView, ad as isScopedElementView, W as isTagColorSpecified, ar as isViewRuleAutoLayout, an as isViewRuleGlobalPredicateRef, al as isViewRuleGlobalStyle, b1 as isViewRuleGroup, a9 as isViewRulePredicate, aa as isViewRuleStyle } from './shared/core.D-ZGWDDt.mjs';
8
- 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, o as omitUndefined } from './shared/core.DgesAwC8.mjs';
9
- export { A as AndOperator, a as EqualOperator, E as Expression, j as Filterable, F as FqnExpr, K as KindEqual, N as NotOperator, k as OperatorPredicate, O as OrOperator, c as Participant, d as ParticipantOperator, P as PredicateSelector, R as RelationExpr, T as TagEqual, W as WhereOperator, g as isAndOperator, b as isKindEqual, f as isNotOperator, h as isOrOperator, e as isParticipantOperator, i as isTagEqual, w as whereOperatorAsPredicate } from './shared/core.CUG6vpyL.mjs';
8
+ export { w as AnyView, n as AuxFromDump, A as AuxFromLikeC4ModelData, C as ComputedLikeC4ModelData, u as ComputedView, d as DeployedInstance, e as DeploymentElement, f as DeploymentElementRef, D as DeploymentNode, j as DeploymentRelation, h as DeploymentRelationship, Y as DeploymentViewExcludePredicate, X as DeploymentViewIncludePredicate, Z as DeploymentViewPredicate, $ as DeploymentViewRule, _ as DeploymentViewRuleStyle, O as DiagramEdge, N as DiagramNode, s as DiagramView, E as ElementSpecification, U as LayoutedDeploymentView, W as LayoutedDynamicView, Q as LayoutedElementView, L as LayoutedLikeC4ModelData, s as LayoutedView, c as LikeC4ModelData, l as LikeC4ModelDump, r as LikeC4View, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData, r as ParsedView, v as ProcessedView, m as ProjectDump, p as RelationshipSpecification, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty, k as SpecTypesFromDump, q as Specification, S as SpecificationDump, T as TagSpecification, V as ViewOnStage, y as ViewRule, z as ViewRulePredicate, x as ViewWithType, G as isComputedView, g as isDeployedInstance, i as isDeploymentNode, K as isDeploymentView, t as isDiagramView, M as isDynamicView, H as isElementView, J as isExtendsElementView, t as isLayoutedView, I as isScopedElementView, o as isTagColorSpecified, B as isViewRulePredicate, F as isViewRuleStyle } from './shared/core.DdMJk7nx.mjs';
9
+ export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.D5fzJWbF.mjs';
10
10
  export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
11
11
  export { FqnRef } from './types/fqnRef.mjs';
12
- export { b as BorderStyle, B as BorderStyles, i as Color, C as ColorLiteral, d as CustomColor, e as CustomColorDefinitions, c as ElementShape, E as ElementShapes, k as ElementThemeColorValues, l as ElementThemeColors, H as HexColor, L as LikeC4Theme, f as RelationshipArrowType, R as RelationshipLineType, m as RelationshipThemeColorValues, o as RelationshipThemeColors, a as ShapeSize, S as SpacingSize, T as TextSize, h as ThemeColor, n as ThemeColorValues, g as ThemeColors, j as isThemeColor } from './shared/core.CzdwsPmY.mjs';
12
+ export { A as AbstractRelationship, m as AnyExcludePredicate, l as AnyIncludePredicate, n as AnyViewRuleStyle, r as AutoLayoutDirection, B as BBox, z as BaseParsedViewProperties, y as BaseViewProperties, K as ComputedDeploymentView, O as ComputedDynamicView, I as ComputedEdge, J as ComputedElementView, H as ComputedNode, F as ComputedNodeStyle, Q as DynamicStep, T as DynamicStepsParallel, S as DynamicStepsSeries, a1 as DynamicViewDisplayVariant, $ as DynamicViewIncludeRule, a0 as DynamicViewRule, W as DynamicViewStep, f as Element, E as ElementStyle, a4 as ElementViewExcludePredicate, a3 as ElementViewIncludePredicate, a5 as ElementViewPredicate, a9 as ElementViewRule, a6 as ElementViewRuleGroup, a8 as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, k as LikeC4Project, i as LikeC4ProjectStyleDefaults, j as LikeC4ProjectStylesConfig, L as LikeC4ProjectTheme, M as ModelGlobals, h as ModelRelation, N as NodeNotation, a2 as ParsedDynamicView, aa as ParsedElementView, P as Point, R as RectBox, g as Relationship, v as ViewAutoLayout, w as ViewManualLayout, t as ViewRuleAutoLayout, p as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, x as ViewType, D as ViewWithHash, C as ViewWithNotation, X as XYPoint, e as ensureSizes, U as getParallelStepsPrefix, s as isAutoLayoutDirection, Y as isDynamicStep, Z as isDynamicStepsParallel, _ as isDynamicStepsSeries, u as isViewRuleAutoLayout, q as isViewRuleGlobalPredicateRef, o as isViewRuleGlobalStyle, a7 as isViewRuleGroup } from './shared/core.fHR_8Tnq.mjs';
13
13
  export { ViewChange } from './types/index.mjs';
14
14
  import 'type-fest';
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- export { ElementColors, RelationshipColors, computeColorValues, defaultTheme } from './theme/index.mjs';
2
- export { a as ancestorsFqn, 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.DgttqsJc.mjs';
3
- export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.DlG1xWt2.mjs';
4
- export { D as DefaultMap } from './shared/core.BuoXfSMj.mjs';
1
+ export { L as LikeC4Styles, e as ensureSizes } from './shared/core.DNbUPnve.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.DRhg-gVU.mjs';
3
+ export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.DMMOWQqc.mjs';
4
+ export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
5
5
  export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
6
- export { i as isIterable } from './shared/core.DoM6aM9N.mjs';
7
- export { m as memoizeProp } from './shared/core.CUw_2J9j.mjs';
6
+ export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
7
+ export { m as memoizeProp } from './shared/core.BR4zXDH-.mjs';
8
8
  export { _ as aux, p as preferDescription, a as preferSummary } from './shared/core.BazD6cot.mjs';
9
- export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, N as NodeId, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, g as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, e as isStepEdgeId, s as scalar, c as splitGlobalFqn, d as stepEdgeId } from './shared/core.Be1n9a0i.mjs';
10
- export { h as DefaultArrowType, a as DefaultElementShape, g as DefaultLineStyle, d as DefaultPaddingSize, i as DefaultRelationshipColor, c as DefaultShapeSize, b as DefaultSize, e as DefaultTextSize, D as DefaultThemeColor, R as RichText, f as ensureSizes } from './shared/core.Ae86Y3tB.mjs';
11
- export { n as getParallelStepsPrefix, l as isAutoLayoutDirection, b as isComputedView, g as isDeploymentView, c as isDiagramView, h as isDynamicView, p as isDynamicViewParallelSteps, d as isElementView, f as isExtendsElementView, c as isLayoutedView, e as isScopedElementView, m as isViewRuleAutoLayout, k as isViewRuleGlobalPredicateRef, j as isViewRuleGlobalStyle, q as isViewRuleGroup, i as isViewRulePredicate, a as isViewRuleStyle, o as omitUndefined } from './shared/core.DJp8fgok.mjs';
12
- export { _ as _stage, a as _type, h as isAndOperator, c as isDeployedInstance, b as isDeploymentNode, e as isKindEqual, g as isNotOperator, i as isOnStage, j as isOrOperator, f as isParticipantOperator, d as isTagEqual, w as whereOperatorAsPredicate } from './shared/core.CXy1NLUG.mjs';
9
+ export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, N as NodeId, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, g as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, e as isStepEdgeId, s as scalar, c as splitGlobalFqn, d as stepEdgeId } from './shared/core.C_Ni6yHl.mjs';
10
+ export { R as RichText, e as exact } from './shared/core.01VTr9qu.mjs';
11
+ export { _ as _stage, a as _type, h as isAndOperator, c as isDeployedInstance, b as isDeploymentNode, e as isKindEqual, g as isNotOperator, i as isOnStage, j as isOrOperator, f as isParticipantOperator, d as isTagEqual, w as whereOperatorAsPredicate } from './shared/core.BYNkXQ8A.mjs';
13
12
  export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
14
13
  export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
15
14
  export { FqnRef } from './types/fqnRef.mjs';
16
- export { B as BBox, a as BorderStyles, E as ElementShapes, R as RectBox, T as ThemeColors, i as isTagColorSpecified, b as isThemeColor } from './shared/core.6_Vp2iiN.mjs';
15
+ export { BBox, RectBox, isTagColorSpecified } from './types/index.mjs';
16
+ export { n as getParallelStepsPrefix, l as isAutoLayoutDirection, b as isComputedView, g as isDeploymentView, c as isDiagramView, o as isDynamicStep, p as isDynamicStepsParallel, q as isDynamicStepsSeries, h as isDynamicView, d as isElementView, f as isExtendsElementView, c as isLayoutedView, e as isScopedElementView, m as isViewRuleAutoLayout, k as isViewRuleGlobalPredicateRef, j as isViewRuleGlobalStyle, r as isViewRuleGroup, i as isViewRulePredicate, a as isViewRuleStyle } from './shared/core.BzTakU3I.mjs';
@@ -1,13 +1,14 @@
1
- export { C as Connection } from '../../../shared/core.xSQO0XYD.mjs';
2
- export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.hfOE3RfK.mjs';
3
- import '../../../shared/core.BXsxn-hf.mjs';
4
- import '../../../shared/core.BhpgpOep.mjs';
1
+ export { C as Connection } from '../../../shared/core.DIol3syK.mjs';
2
+ export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.DACpKp35.mjs';
3
+ import '../../../shared/core.D0PjZzIS.mjs';
4
+ import '../../../shared/core.yna0OdV5.mjs';
5
+ import '../../../shared/core.CQngdcuj.mjs';
5
6
  import 'type-fest';
6
- import '../../../shared/core.DgesAwC8.mjs';
7
+ import '../../../shared/core.Dgs6-nuz.mjs';
8
+ import '../../../shared/core.D5fzJWbF.mjs';
7
9
  import '../../../shared/core.DX-WYEPA.mjs';
8
- import '../../../shared/core.CywrQs86.mjs';
9
- import '../../../shared/core.D-ZGWDDt.mjs';
10
- import '../../../types/expression-model.mjs';
11
- import '../../../shared/core.CUG6vpyL.mjs';
12
10
  import '../../../types/fqnRef.mjs';
13
- import '../../../shared/core.CzdwsPmY.mjs';
11
+ import '../../../shared/core.fHR_8Tnq.mjs';
12
+ import '../../../types/expression-model.mjs';
13
+ import '../../../shared/core.CywrQs86.mjs';
14
+ import '../../../shared/core.DdMJk7nx.mjs';
@@ -1,2 +1,2 @@
1
- export { C as Connection } from '../../../shared/core.BVNaR17u.mjs';
2
- export { D as DeploymentConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.DA5vzwZ9.mjs';
1
+ export { C as Connection } from '../../../shared/core.B7KhhkRY.mjs';
2
+ export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.BIqHjQiH.mjs';
@@ -1,17 +1,18 @@
1
- import { C as Connection } from '../../shared/core.xSQO0XYD.mjs';
2
- export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.hfOE3RfK.mjs';
3
- export { C as ConnectionModel, f as model } from '../../shared/core.zxTBF_PD.mjs';
4
- import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DgesAwC8.mjs';
5
- import '../../shared/core.BXsxn-hf.mjs';
6
- import '../../shared/core.BhpgpOep.mjs';
1
+ import { C as Connection } from '../../shared/core.DIol3syK.mjs';
2
+ export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.DACpKp35.mjs';
3
+ export { C as ConnectionModel, f as model } from '../../shared/core.s9uwOt60.mjs';
4
+ import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.D5fzJWbF.mjs';
5
+ import '../../shared/core.D0PjZzIS.mjs';
6
+ import '../../shared/core.yna0OdV5.mjs';
7
+ import '../../shared/core.CQngdcuj.mjs';
7
8
  import 'type-fest';
9
+ import '../../shared/core.Dgs6-nuz.mjs';
8
10
  import '../../shared/core.DX-WYEPA.mjs';
9
- import '../../shared/core.CywrQs86.mjs';
10
- import '../../shared/core.D-ZGWDDt.mjs';
11
- import '../../types/expression-model.mjs';
12
- import '../../shared/core.CUG6vpyL.mjs';
13
11
  import '../../types/fqnRef.mjs';
14
- import '../../shared/core.CzdwsPmY.mjs';
12
+ import '../../shared/core.fHR_8Tnq.mjs';
13
+ import '../../types/expression-model.mjs';
14
+ import '../../shared/core.CywrQs86.mjs';
15
+ import '../../shared/core.DdMJk7nx.mjs';
15
16
 
16
17
  /**
17
18
  * Check if connection is nested inside another connection
@@ -1,3 +1,3 @@
1
- export { C as Connection } from '../../shared/core.BVNaR17u.mjs';
2
- export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.DA5vzwZ9.mjs';
3
- export { C as ConnectionModel, d as differenceConnections, c as findAscendingConnections, e as findDeepestNestedConnection, g as findDescendantConnections, h as hasSameSource, i as hasSameSourceTarget, j as hasSameTarget, k as isAnyInOut, l as isIncoming, m as isNestedConnection, n as isOutgoing, o as mergeConnections, q as model, s as sortConnectionsByBoundaryHierarchy, p as sortDeepestFirst } from '../../shared/core.D0EgVMQK.mjs';
1
+ export { C as Connection } from '../../shared/core.B7KhhkRY.mjs';
2
+ export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.BIqHjQiH.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.lRvxPoao.mjs';
@@ -1,13 +1,14 @@
1
- export { C as Connection } from '../../../shared/core.xSQO0XYD.mjs';
2
- export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.zxTBF_PD.mjs';
3
- import '../../../shared/core.BXsxn-hf.mjs';
4
- import '../../../shared/core.BhpgpOep.mjs';
1
+ export { C as Connection } from '../../../shared/core.DIol3syK.mjs';
2
+ export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.s9uwOt60.mjs';
3
+ import '../../../shared/core.D0PjZzIS.mjs';
4
+ import '../../../shared/core.yna0OdV5.mjs';
5
+ import '../../../shared/core.CQngdcuj.mjs';
5
6
  import 'type-fest';
6
- import '../../../shared/core.DgesAwC8.mjs';
7
+ import '../../../shared/core.Dgs6-nuz.mjs';
8
+ import '../../../shared/core.D5fzJWbF.mjs';
7
9
  import '../../../shared/core.DX-WYEPA.mjs';
8
- import '../../../shared/core.CywrQs86.mjs';
9
- import '../../../shared/core.D-ZGWDDt.mjs';
10
- import '../../../types/expression-model.mjs';
11
- import '../../../shared/core.CUG6vpyL.mjs';
12
10
  import '../../../types/fqnRef.mjs';
13
- import '../../../shared/core.CzdwsPmY.mjs';
11
+ import '../../../shared/core.fHR_8Tnq.mjs';
12
+ import '../../../types/expression-model.mjs';
13
+ import '../../../shared/core.CywrQs86.mjs';
14
+ import '../../../shared/core.DdMJk7nx.mjs';
@@ -1,2 +1,2 @@
1
- export { C as Connection } from '../../../shared/core.BVNaR17u.mjs';
2
- export { C as ConnectionModel, f as findConnection, a as findConnectionsBetween, b as findConnectionsWithin } from '../../../shared/core.D0EgVMQK.mjs';
1
+ export { C as Connection } from '../../../shared/core.B7KhhkRY.mjs';
2
+ export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.lRvxPoao.mjs';
@@ -1,20 +1,20 @@
1
- import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.BXsxn-hf.mjs';
2
- export { f as AnyLikeC4Model, l as DeploymentOrFqn, h as DeploymentRelationEndpoint, m as EdgeOrId, n as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, g as LikeC4Model, k as LikeC4ViewsFolder, o as NodeOrId, O as OutgoingFilter, i as RelationshipsAccum, W as WithMetadata, p as WithTags } from '../shared/core.BXsxn-hf.mjs';
3
- import { A as Any } from '../shared/core.BhpgpOep.mjs';
4
- export { a as Aux, S as SpecAux, _ as aux } from '../shared/core.BhpgpOep.mjs';
5
- export { C as Connection } from '../shared/core.xSQO0XYD.mjs';
6
- export { C as ConnectionModel, f as modelConnection } from '../shared/core.zxTBF_PD.mjs';
7
- export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.hfOE3RfK.mjs';
1
+ import { D as DeploymentNodeModel, a as DeployedInstanceModel, b as DeploymentRelationModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, E as ElementModel, R as RelationshipModel, L as LikeC4ViewModel, c as NodeModel, d as EdgeModel, e as DeploymentElementModel } from '../shared/core.D0PjZzIS.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.D0PjZzIS.mjs';
3
+ import { A as Any } from '../shared/core.Dgs6-nuz.mjs';
4
+ export { C as Connection } from '../shared/core.DIol3syK.mjs';
5
+ export { C as ConnectionModel, f as modelConnection } from '../shared/core.s9uwOt60.mjs';
6
+ export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.DACpKp35.mjs';
8
7
  export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
9
- export { u as AuxFromDump, A as AuxFromLikeC4ModelData, R as RichText, a as RichTextEmpty, b as RichTextOrEmpty } from '../shared/core.D-ZGWDDt.mjs';
10
- import '../shared/core.DX-WYEPA.mjs';
8
+ import '../shared/core.yna0OdV5.mjs';
9
+ import '../shared/core.CQngdcuj.mjs';
11
10
  import 'type-fest';
12
- import '../shared/core.CywrQs86.mjs';
13
- import '../shared/core.DgesAwC8.mjs';
14
- import '../shared/core.CzdwsPmY.mjs';
15
- import '../shared/core.CUG6vpyL.mjs';
11
+ import '../shared/core.D5fzJWbF.mjs';
16
12
  import '../types/fqnRef.mjs';
13
+ import '../shared/core.DX-WYEPA.mjs';
14
+ import '../shared/core.fHR_8Tnq.mjs';
17
15
  import '../types/expression-model.mjs';
16
+ import '../shared/core.CywrQs86.mjs';
17
+ import '../shared/core.DdMJk7nx.mjs';
18
18
 
19
19
  type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
20
20
  declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
@@ -53,4 +53,4 @@ declare const getViewFolderPath: (title: string) => string | null;
53
53
  */
54
54
  declare const extractViewTitleFromPath: (title: string) => string;
55
55
 
56
- export { Any, Any as AnyAux, 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 };
56
+ export { AnyRelationshipModel, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
@@ -1,5 +1,4 @@
1
- export { b as EdgeModel, E as ElementModel, a as LikeC4DeploymentModel, L as LikeC4Model, c as LikeC4ViewModel, d as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, e as extractViewTitleFromPath, g as getViewFolderPath, f as isDeployedInstanceModel, h as isDeploymentElementModel, i as isDeploymentNodeModel, k as isDeploymentRelationModel, q as isEdgeModel, m as isElementModel, o as isLikeC4ViewModel, l as isModelRelation, j as isNestedElementOfDeployedInstanceModel, p as isNodeModel, l as isRelationModel, l as isRelationshipModel, n as normalizeViewPath } from '../shared/core.Asc11Mjy.mjs';
2
- export { c as DeployedInstanceModel, D as DeploymentConnectionModel, e as DeploymentNodeModel, g as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.DA5vzwZ9.mjs';
3
- export { C as Connection } from '../shared/core.BVNaR17u.mjs';
4
- export { C as ConnectionModel, d as differenceConnections, c as findAscendingConnections, e as findDeepestNestedConnection, g as findDescendantConnections, h as hasSameSource, i as hasSameSourceTarget, j as hasSameTarget, k as isAnyInOut, l as isIncoming, m as isNestedConnection, n as isOutgoing, o as mergeConnections, q as modelConnection, s as sortConnectionsByBoundaryHierarchy, p as sortDeepestFirst } from '../shared/core.D0EgVMQK.mjs';
5
- export { R as RichText } from '../shared/core.Ae86Y3tB.mjs';
1
+ export { k as EdgeModel, E as ElementModel, j as LikeC4DeploymentModel, L as LikeC4Model, l as LikeC4ViewModel, m as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, n as extractViewTitleFromPath, o as getViewFolderPath, f as isDeployedInstanceModel, h as isDeploymentElementModel, g as isDeploymentNodeModel, q as isDeploymentRelationModel, v as isEdgeModel, i as isElementModel, s as isLikeC4ViewModel, r as isModelRelation, d as isNestedElementOfDeployedInstanceModel, u as isNodeModel, r as isRelationModel, r as isRelationshipModel, p as normalizeViewPath } from '../shared/core.C8sl5Y8Z.mjs';
2
+ export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.BIqHjQiH.mjs';
3
+ export { C as Connection } from '../shared/core.B7KhhkRY.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.lRvxPoao.mjs';
@@ -1,31 +1,13 @@
1
- import { m as memoizeProp, a as markdownToText, b as markdownToHtml } from './core.CUw_2J9j.mjs';
1
+ import { t as t$1 } from './core.BsSXS-_R.mjs';
2
+ import { m as memoizeProp } from './core.BR4zXDH-.mjs';
3
+ import { a as markdownToText, m as markdownToHtml } from './core.DFi2dOTl.mjs';
2
4
  import { n as nonexhaustive } from './core.D4npX2q8.mjs';
3
5
 
4
- const DefaultThemeColor = "primary";
5
- const DefaultElementShape = "rectangle";
6
- const DefaultSize = "md";
7
- const DefaultShapeSize = DefaultSize;
8
- const DefaultPaddingSize = DefaultSize;
9
- const DefaultTextSize = DefaultSize;
10
- function ensureSizes({
11
- size,
12
- padding,
13
- textSize,
14
- ...rest
15
- }) {
16
- size ??= DefaultSize;
17
- textSize ??= size;
18
- padding ??= size;
19
- return {
20
- ...rest,
21
- size,
22
- padding,
23
- textSize
24
- };
6
+ function t(...t){return t$1(n,t)}function n(e,t){let n={...e};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}
7
+
8
+ function exact(a) {
9
+ return t(a, (v) => v === void 0);
25
10
  }
26
- const DefaultLineStyle = "dashed";
27
- const DefaultArrowType = "normal";
28
- const DefaultRelationshipColor = "gray";
29
11
 
30
12
  const symb_text = Symbol.for("text");
31
13
  const symb_html = Symbol.for("html");
@@ -185,4 +167,4 @@ class RichText {
185
167
  }
186
168
  }
187
169
 
188
- export { DefaultThemeColor as D, RichText as R, DefaultElementShape as a, DefaultSize as b, DefaultShapeSize as c, DefaultPaddingSize as d, DefaultTextSize as e, ensureSizes as f, DefaultLineStyle as g, DefaultArrowType as h, DefaultRelationshipColor as i };
170
+ export { RichText as R, exact as e, t };
@@ -0,0 +1,86 @@
1
+ import { r as requireSupport } from './core.rCeaAqgW.mjs';
2
+
3
+ /**
4
+ * Obliterator ForEach Function
5
+ * =============================
6
+ *
7
+ * Helper function used to easily iterate over mixed values.
8
+ */
9
+
10
+ var foreach;
11
+ var hasRequiredForeach;
12
+
13
+ function requireForeach () {
14
+ if (hasRequiredForeach) return foreach;
15
+ hasRequiredForeach = 1;
16
+ var support = requireSupport();
17
+
18
+ var ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;
19
+ var SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;
20
+
21
+ /**
22
+ * Function able to iterate over almost any iterable JS value.
23
+ *
24
+ * @param {any} iterable - Iterable value.
25
+ * @param {function} callback - Callback function.
26
+ */
27
+ foreach = function forEach(iterable, callback) {
28
+ var iterator, k, i, l, s;
29
+
30
+ if (!iterable) throw new Error('obliterator/forEach: invalid iterable.');
31
+
32
+ if (typeof callback !== 'function')
33
+ throw new Error('obliterator/forEach: expecting a callback.');
34
+
35
+ // The target is an array or a string or function arguments
36
+ if (
37
+ Array.isArray(iterable) ||
38
+ (ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable)) ||
39
+ typeof iterable === 'string' ||
40
+ iterable.toString() === '[object Arguments]'
41
+ ) {
42
+ for (i = 0, l = iterable.length; i < l; i++) callback(iterable[i], i);
43
+ return;
44
+ }
45
+
46
+ // The target has a #.forEach method
47
+ if (typeof iterable.forEach === 'function') {
48
+ iterable.forEach(callback);
49
+ return;
50
+ }
51
+
52
+ // The target is iterable
53
+ if (
54
+ SYMBOL_SUPPORT &&
55
+ Symbol.iterator in iterable &&
56
+ typeof iterable.next !== 'function'
57
+ ) {
58
+ iterable = iterable[Symbol.iterator]();
59
+ }
60
+
61
+ // The target is an iterator
62
+ if (typeof iterable.next === 'function') {
63
+ iterator = iterable;
64
+ i = 0;
65
+
66
+ while (((s = iterator.next()), s.done !== true)) {
67
+ callback(s.value, i);
68
+ i++;
69
+ }
70
+
71
+ return;
72
+ }
73
+
74
+ // The target is a plain object
75
+ for (k in iterable) {
76
+ if (iterable.hasOwnProperty(k)) {
77
+ callback(iterable[k], k);
78
+ }
79
+ }
80
+
81
+ return;
82
+ };
83
+ return foreach;
84
+ }
85
+
86
+ export { requireForeach as r };
@@ -1,4 +1,4 @@
1
- import { i as isAncestor } from './core.DgttqsJc.mjs';
1
+ import { i as isAncestor } from './core.DRhg-gVU.mjs';
2
2
 
3
3
  var Connection;
4
4
  ((Connection2) => {
@@ -0,0 +1,5 @@
1
+ function getDefaultExportFromCjs (x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ }
4
+
5
+ export { getDefaultExportFromCjs as g };
@@ -1,29 +1,43 @@
1
- import { c as customInspectSymbol } from './core.BVNaR17u.mjs';
2
- import { i as intersection, d as difference, u as union, a as stringHash, e as equals } from './core.4u1dVmfX.mjs';
3
- import { unique, only, isTruthy, isEmpty } from 'remeda';
4
- import { o as hierarchyLevel, g as commonAncestor, n as nameFromFqn, d as isSameHierarchy } from './core.DgttqsJc.mjs';
1
+ import { c as customInspectSymbol } from './core.B7KhhkRY.mjs';
2
+ import { i as intersection, d as difference, u as union, a as stringHash, e as equals } from './core.C2TiyjI6.mjs';
3
+ import { e as e$1 } from './core.BKlholso.mjs';
4
+ import { t as t$3 } from './core.BsSXS-_R.mjs';
5
+ import { t as t$2, a as t$4 } from './core.OHD4KXm9.mjs';
6
+ import { q as hierarchyLevel, k as commonAncestor, n as nameFromFqn, d as isSameHierarchy } from './core.DRhg-gVU.mjs';
5
7
  import { a as nonNullable, i as invariant } from './core.D4npX2q8.mjs';
6
- import { m as memoizeProp } from './core.CUw_2J9j.mjs';
7
- import { c as DefaultShapeSize, R as RichText, D as DefaultThemeColor, g as DefaultLineStyle, a as DefaultElementShape } from './core.Ae86Y3tB.mjs';
8
+ import { m as memoizeProp } from './core.BR4zXDH-.mjs';
9
+ import { e as exact, R as RichText } from './core.01VTr9qu.mjs';
8
10
  import { a as preferSummary, p as preferDescription } from './core.BazD6cot.mjs';
9
11
 
12
+ function t$1(t,n){let r=n.length-t.length;if(r===1){let[r,...i]=n;return t$2(r,{lazy:t,lazyArgs:i})}if(r===0){let r={lazy:t,lazyArgs:n};return Object.assign(t=>t$2(t,r),r)}throw Error(`Wrong number of arguments`)}
13
+
14
+ function e(e){return e===``||e===void 0?true:Array.isArray(e)?e.length===0:Object.keys(e).length===0}
15
+
16
+ function t(...t){return t$3(n$1,t)}const n$1=e=>e.length===1?e[0]:void 0;
17
+
18
+ function n(...e){return t$1(r,e)}function r(){let t=new Set;return n=>t.has(n)?t$4:(t.add(n),{done:false,hasNext:true,next:n})}
19
+
10
20
  class AbstractDeploymentElementModel {
11
21
  get style() {
12
- return {
13
- shape: DefaultElementShape,
14
- color: DefaultThemeColor,
15
- size: DefaultShapeSize,
22
+ return memoizeProp(this, "style", () => exact({
23
+ shape: this.$model.$styles.defaults.shape,
24
+ color: this.$model.$styles.defaults.color,
25
+ border: this.$model.$styles.defaults.border,
26
+ opacity: this.$model.$styles.defaults.opacity,
27
+ size: this.$model.$styles.defaults.size,
28
+ padding: this.$model.$styles.defaults.padding,
29
+ textSize: this.$model.$styles.defaults.text,
16
30
  ...this.$node.style
17
- };
31
+ }));
18
32
  }
19
33
  get name() {
20
34
  return nameFromFqn(this.id);
21
35
  }
22
36
  get shape() {
23
- return this.$node.style?.shape ?? DefaultElementShape;
37
+ return this.style.shape;
24
38
  }
25
39
  get color() {
26
- return this.$node.style?.color ?? DefaultThemeColor;
40
+ return this.style.color;
27
41
  }
28
42
  /**
29
43
  * Short description of the element.
@@ -155,7 +169,7 @@ class AbstractDeploymentElementModel {
155
169
  ));
156
170
  }
157
171
  hasMetadata() {
158
- return !!this.$node.metadata && !isEmpty(this.$node.metadata);
172
+ return !!this.$node.metadata && !e(this.$node.metadata);
159
173
  }
160
174
  getMetadata(field) {
161
175
  if (field) {
@@ -192,7 +206,7 @@ class DeploymentNodeModel extends AbstractDeploymentElementModel {
192
206
  }
193
207
  get tags() {
194
208
  return memoizeProp(this, Symbol.for("tags"), () => {
195
- return unique([
209
+ return n([
196
210
  ...this.$node.tags ?? [],
197
211
  ...this.$model.$model.specification.deployments[this.kind]?.tags ?? []
198
212
  ]);
@@ -227,7 +241,7 @@ class DeploymentNodeModel extends AbstractDeploymentElementModel {
227
241
  if (children.size !== 1) {
228
242
  return null;
229
243
  }
230
- const child = only([...children]);
244
+ const child = t([...children]);
231
245
  return child?.isInstance() ? child : null;
232
246
  }
233
247
  /**
@@ -300,25 +314,21 @@ class DeployedInstanceModel extends AbstractDeploymentElementModel {
300
314
  return nonNullable(this.$model.parent(this), `Parent of ${this.id} not found`);
301
315
  }
302
316
  get style() {
303
- const { icon, style } = this.element.$element;
304
- return {
305
- shape: this.element.shape,
306
- color: this.element.color,
307
- size: DefaultShapeSize,
308
- ...icon && { icon },
309
- ...style,
317
+ return memoizeProp(this, "style", () => exact({
318
+ shape: this.$model.$styles.defaults.shape,
319
+ color: this.$model.$styles.defaults.color,
320
+ border: this.$model.$styles.defaults.border,
321
+ opacity: this.$model.$styles.defaults.opacity,
322
+ size: this.$model.$styles.defaults.size,
323
+ padding: this.$model.$styles.defaults.padding,
324
+ textSize: this.$model.$styles.defaults.text,
325
+ ...this.element.$element.style,
310
326
  ...this.$instance.style
311
- };
312
- }
313
- get shape() {
314
- return this.$instance.style?.shape ?? this.element.shape;
315
- }
316
- get color() {
317
- return this.$instance.style?.color ?? this.element.color;
327
+ }));
318
328
  }
319
329
  get tags() {
320
330
  return memoizeProp(this, Symbol.for("tags"), () => {
321
- return unique([
331
+ return n([
322
332
  ...this.$instance.tags ?? [],
323
333
  ...this.element.tags
324
334
  ]);
@@ -387,13 +397,11 @@ class NestedElementOfDeployedInstanceModel {
387
397
  return this.instance.id;
388
398
  }
389
399
  get style() {
390
- const { icon, style } = this.element.$element;
391
- return {
400
+ return memoizeProp(this, "style ", () => ({
392
401
  shape: this.element.shape,
393
402
  color: this.element.color,
394
- ...icon && { icon },
395
- ...style
396
- };
403
+ ...this.element.$element.style
404
+ }));
397
405
  }
398
406
  get shape() {
399
407
  return this.element.shape;
@@ -439,7 +447,7 @@ class DeploymentRelationModel {
439
447
  return `${this.source.id} -> ${this.target.id}`;
440
448
  }
441
449
  get title() {
442
- if (!isTruthy(this.$relationship.title)) {
450
+ if (!e$1(this.$relationship.title)) {
443
451
  return null;
444
452
  }
445
453
  return this.$relationship.title;
@@ -463,10 +471,16 @@ class DeploymentRelationModel {
463
471
  return this.$relationship.links ?? [];
464
472
  }
465
473
  get color() {
466
- return this.$relationship.color ?? DefaultThemeColor;
474
+ return this.$relationship.color ?? this.$model.$styles.defaults.relationship.color;
467
475
  }
468
476
  get line() {
469
- return this.$relationship.line ?? DefaultLineStyle;
477
+ return this.$relationship.line ?? this.$model.$styles.defaults.relationship.line;
478
+ }
479
+ get head() {
480
+ return this.$relationship.head ?? this.$model.$styles.defaults.relationship.arrow;
481
+ }
482
+ get tail() {
483
+ return this.$relationship.tail;
470
484
  }
471
485
  *views() {
472
486
  for (const view of this.$model.views()) {
@@ -483,7 +497,7 @@ class DeploymentRelationModel {
483
497
  return false;
484
498
  }
485
499
  hasMetadata() {
486
- return !!this.$relationship.metadata && !isEmpty(this.$relationship.metadata);
500
+ return !!this.$relationship.metadata && !e(this.$relationship.metadata);
487
501
  }
488
502
  getMetadata(field) {
489
503
  if (field) {
@@ -581,7 +595,7 @@ class DeploymentConnectionModel {
581
595
  nonEmpty() {
582
596
  return this.relations.nonEmpty;
583
597
  }
584
- [customInspectSymbol](depth, inspectOptions, inspect) {
598
+ [customInspectSymbol](_depth, _inspectOptions, _inspect) {
585
599
  const asString = this.toString();
586
600
  Object.defineProperty(asString, "constructor", {
587
601
  value: DeploymentConnectionModel,
@@ -742,4 +756,4 @@ const deploymentConnection = {
742
756
  findConnectionsWithin: findConnectionsWithin
743
757
  };
744
758
 
745
- export { DeploymentConnectionModel as D, NestedElementOfDeployedInstanceModel as N, RelationshipsAccum as R, findConnectionsBetween as a, findConnectionsWithin as b, DeployedInstanceModel as c, deploymentConnection as d, DeploymentNodeModel as e, findConnection as f, DeploymentRelationModel as g };
759
+ export { DeploymentConnectionModel as D, NestedElementOfDeployedInstanceModel as N, RelationshipsAccum as R, DeploymentNodeModel as a, DeployedInstanceModel as b, DeploymentRelationModel as c, deploymentConnection as d, e, findConnection as f, findConnectionsBetween as g, findConnectionsWithin as h, n, t };
@@ -0,0 +1,3 @@
1
+ function e(e){return !!e}
2
+
3
+ export { e };
@@ -0,0 +1,13 @@
1
+ function memoizeProp(obj, tag, fn) {
2
+ const tagSymbol = typeof tag === "symbol" ? tag : Symbol.for(tag);
3
+ if (!obj.hasOwnProperty(tagSymbol)) {
4
+ Object.defineProperty(obj, tagSymbol, {
5
+ enumerable: false,
6
+ writable: false,
7
+ value: fn()
8
+ });
9
+ }
10
+ return obj[tagSymbol];
11
+ }
12
+
13
+ export { memoizeProp as m };