@likec4/core 1.20.2 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.cjs +24 -18
- package/dist/builder/index.d.cts +11 -5
- package/dist/builder/index.d.mts +11 -5
- package/dist/builder/index.d.ts +11 -5
- package/dist/builder/index.mjs +10 -4
- package/dist/compute-view/index.cjs +6 -6
- package/dist/compute-view/index.d.cts +4 -4
- package/dist/compute-view/index.d.mts +4 -4
- package/dist/compute-view/index.d.ts +4 -4
- package/dist/compute-view/index.mjs +6 -6
- package/dist/index.cjs +52 -14
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +46 -11
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +5 -5
- package/dist/model/index.d.mts +5 -5
- package/dist/model/index.d.ts +5 -5
- package/dist/model/index.mjs +1 -1
- package/dist/shared/{core.Cmfo_N4F.d.mts → core.5Z5cpENq.d.mts} +5 -4
- package/dist/shared/{core.D4wZW7zR.d.ts → core.BJfq046m.d.ts} +5 -4
- package/dist/shared/{core.C0ygs98j.d.cts → core.BS_nXBsP.d.cts} +9 -2
- package/dist/shared/{core.CajOK_t3.d.mts → core.BYs5deiY.d.cts} +1 -1
- package/dist/shared/{core.Bezy7K65.mjs → core.BfZZXtur.mjs} +2 -2
- package/dist/shared/{core.CwZmAghJ.d.cts → core.BgPZ8Tl8.d.cts} +5 -4
- package/dist/shared/{core.FACQZmma.cjs → core.BjR0D3IO.cjs} +15 -15
- package/dist/shared/{core.uxHtIZaH.cjs → core.CAkSSvJ6.cjs} +11 -5
- package/dist/shared/{core.El-gigOM.mjs → core.CE-kCVHA.mjs} +1 -1
- package/dist/shared/{core.DjMYkPMQ.d.mts → core.CJaCUZQ9.d.mts} +9 -2
- package/dist/shared/{core.88YY6vtF.d.mts → core.CT1nzYjO.d.cts} +2 -2
- package/dist/shared/{core.0PxLtLpP.mjs → core.CYNYaH2U.mjs} +5 -2
- package/dist/shared/{core.CCyhaU-4.mjs → core.CeefT_JU.mjs} +6 -6
- package/dist/shared/{core.PYycpzvA.mjs → core.Cz9Oy_FA.mjs} +476 -410
- package/dist/shared/{core.BIZD3l1g.d.cts → core.D0KD4FiT.d.mts} +1 -1
- package/dist/shared/{core.DxJ1KbOs.cjs → core.D91uYrqI.cjs} +552 -486
- package/dist/shared/{core.BtISRjMA.d.ts → core.DQCc-Jxk.d.ts} +1 -1
- package/dist/shared/{core.Db_OTRdC.cjs → core.DnPc_NDM.cjs} +1 -1
- package/dist/shared/{core.CNUzoKM7.d.ts → core.Dp3HTiRV.d.ts} +2 -2
- package/dist/shared/{core.CKYxnFEl.cjs → core.DqQrj2oQ.cjs} +2 -2
- package/dist/shared/{core.Bs71hdR4.d.ts → core.DsDq-blc.d.ts} +9 -2
- package/dist/shared/{core.Lh2RFJf1.d.cts → core.DuuS_BrY.d.mts} +2 -2
- package/dist/shared/{core.BJfn72tj.d.ts → core.QP35c488.d.cts} +33 -1
- package/dist/shared/{core.BJfn72tj.d.mts → core.QP35c488.d.mts} +33 -1
- package/dist/shared/{core.BJfn72tj.d.cts → core.QP35c488.d.ts} +33 -1
- package/dist/types/index.cjs +4 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.mjs +3 -3
- package/package.json +6 -6
- package/src/builder/Builder.ts +11 -5
- package/src/builder/Builder.view-common.ts +1 -0
- package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +16 -4
- package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +21 -5
- package/src/builder/_types.ts +9 -0
- package/src/colors/index.ts +41 -5
- package/src/compute-view/deployment-view/predicates/{elements.ts → deploymentRefs.ts} +32 -21
- package/src/compute-view/deployment-view/predicates/index.ts +1 -1
- package/src/compute-view/deployment-view/predicates/utils.ts +56 -1
- package/src/compute-view/deployment-view/predicates/wildcard.ts +20 -9
- package/src/compute-view/element-view/memory/memory.ts +1 -1
- package/src/compute-view/memory/AbstractStageExclude.ts +1 -1
- package/src/compute-view/utils/applyCustomElementProperties.ts +18 -1
- package/src/compute-view/utils/applyViewRuleStyles.ts +9 -0
- package/src/compute-view/utils/buildComputedNodes.ts +13 -9
- package/src/model/DeploymentElementModel.ts +5 -2
- package/src/model/ElementModel.ts +10 -0
- package/src/types/element.ts +19 -1
- package/src/types/expression.ts +4 -1
- package/src/types/index.ts +6 -0
- package/src/types/theme.ts +22 -1
- package/src/types/view.ts +5 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.
|
|
2
|
-
export { A as AsFqn, B as BorderStyles,
|
|
3
|
-
export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.
|
|
4
|
-
export { c as computeRelationshipsView } from './shared/core.
|
|
1
|
+
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.BfZZXtur.mjs';
|
|
2
|
+
export { A as AsFqn, B as BorderStyles, U as ComputedNode, V as ComputedView, Q as DefaultArrowType, d as DefaultElementShape, S as DefaultLineStyle, g as DefaultPaddingSize, T as DefaultRelationshipColor, h as DefaultShapeSize, j as DefaultTextSize, e as DefaultThemeColor, D as DeploymentElement, W as DiagramNode, E as ElementKind, k as ElementShapes, f as Expr, H as ExpressionV2, I as FqnExpr, J as FqnRef, R as RelationExpr, X as extractStep, Y as getBBoxCenter, Z as getParallelStepsPrefix, K as isAndOperator, _ as isAutoLayoutDirection, l as isCustomElement, m as isCustomRelationExpr, $ as isDeploymentView, a0 as isDynamicView, a1 as isDynamicViewParallelSteps, p as isElement, q as isElementKindExpr, b as isElementPredicateExpr, r as isElementRef, s as isElementTagExpr, a as isElementView, t as isElementWhere, u as isExpandedElementExpr, i as isExtendsElementView, w as isInOut, v as isIncoming, L as isKindEqual, M as isNotOperator, N as isOrOperator, x as isOutgoing, y as isRelation, z as isRelationExpression, C as isRelationPredicateExpr, F as isRelationWhere, c as isScopedElementView, a2 as isStepEdgeId, O as isTagEqual, a3 as isViewRuleAutoLayout, a4 as isViewRuleGlobalPredicateRef, a5 as isViewRuleGlobalStyle, a6 as isViewRuleGroup, a7 as isViewRulePredicate, a8 as isViewRuleStyle, G as isWildcard, a9 as stepEdgeId, P as whereOperatorAsPredicate } from './shared/core.CYNYaH2U.mjs';
|
|
3
|
+
export { b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, c as computeView, a as computeViews, u as unsafeComputeView } from './shared/core.Cz9Oy_FA.mjs';
|
|
4
|
+
export { c as computeRelationshipsView } from './shared/core.CE-kCVHA.mjs';
|
|
5
5
|
export { isThemeColor } from './types/index.mjs';
|
|
6
|
-
export { D as DefaultMap, e as LinkedList, q as Queue, S as Stack, h as ancestorsFqn, j as commonAncestor, f as commonHead, k as compareByFqnHierarchically, o as compareFqnHierarchically, g as compareNatural, K as difference, L as equalsSet, z as getOrCreate, a as hasAtLeast, r as hierarchyDistance, s as hierarchyLevel, C as ifilter, i as ifind, E as iflat, F as imap, M as intersection, u as isAncestor, v as isDescendantOf, G as isIterable, A as isNonEmptyArray, c as isSameHierarchy, B as isString, H as isome, I as iunique, n as nameFromFqn, Q as objectHash, p as parentFqn, w as sortByFqnHierarchically, x as sortNaturalByFqn, y as sortParentsFirst, P as stringHash, N as symmetricDifference, J as toArray, t as toSet, O as union } from './shared/core.
|
|
6
|
+
export { D as DefaultMap, e as LinkedList, q as Queue, S as Stack, h as ancestorsFqn, j as commonAncestor, f as commonHead, k as compareByFqnHierarchically, o as compareFqnHierarchically, g as compareNatural, K as difference, L as equalsSet, z as getOrCreate, a as hasAtLeast, r as hierarchyDistance, s as hierarchyLevel, C as ifilter, i as ifind, E as iflat, F as imap, M as intersection, u as isAncestor, v as isDescendantOf, G as isIterable, A as isNonEmptyArray, c as isSameHierarchy, B as isString, H as isome, I as iunique, n as nameFromFqn, Q as objectHash, p as parentFqn, w as sortByFqnHierarchically, x as sortNaturalByFqn, y as sortParentsFirst, P as stringHash, N as symmetricDifference, J as toArray, t as toSet, O as union } from './shared/core.CeefT_JU.mjs';
|
|
7
7
|
export { compareRelations, delay, ireduce } from './utils/index.mjs';
|
|
8
8
|
|
|
9
9
|
const { min: min$4, max: max$4 } = Math;
|
|
@@ -441,11 +441,6 @@ const labConstants = {
|
|
|
441
441
|
Yn: 1,
|
|
442
442
|
Zn: 1.08883,
|
|
443
443
|
|
|
444
|
-
t0: 0.137931034, // 4 / 29
|
|
445
|
-
t1: 0.206896552, // 6 / 29
|
|
446
|
-
t2: 0.12841855, // 3 * t1 * t1
|
|
447
|
-
t3: 0.008856452, // t1 * t1 * t1,
|
|
448
|
-
|
|
449
444
|
kE: 216.0 / 24389.0,
|
|
450
445
|
kKE: 8.0,
|
|
451
446
|
kK: 24389.0 / 27.0,
|
|
@@ -3644,7 +3639,47 @@ const defaultTheme = {
|
|
|
3644
3639
|
elements: ElementColors,
|
|
3645
3640
|
relationships: RelationshipColors,
|
|
3646
3641
|
font: "Arial",
|
|
3647
|
-
shadow: "#0a0a0a"
|
|
3642
|
+
shadow: "#0a0a0a",
|
|
3643
|
+
sizes: {
|
|
3644
|
+
xs: {
|
|
3645
|
+
width: 120,
|
|
3646
|
+
height: 80
|
|
3647
|
+
},
|
|
3648
|
+
sm: {
|
|
3649
|
+
width: 180,
|
|
3650
|
+
height: 110
|
|
3651
|
+
},
|
|
3652
|
+
md: {
|
|
3653
|
+
width: 320,
|
|
3654
|
+
height: 180
|
|
3655
|
+
},
|
|
3656
|
+
lg: {
|
|
3657
|
+
width: 420,
|
|
3658
|
+
height: 234
|
|
3659
|
+
},
|
|
3660
|
+
xl: {
|
|
3661
|
+
width: 520,
|
|
3662
|
+
height: 290
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3665
|
+
spacing: {
|
|
3666
|
+
xs: 8,
|
|
3667
|
+
// 0.5rem
|
|
3668
|
+
sm: 10,
|
|
3669
|
+
// 0.625rem
|
|
3670
|
+
md: 24,
|
|
3671
|
+
// 1.5rem = 16px + 8px
|
|
3672
|
+
lg: 32,
|
|
3673
|
+
// 2rem
|
|
3674
|
+
xl: 48
|
|
3675
|
+
},
|
|
3676
|
+
textSizes: {
|
|
3677
|
+
xs: 12,
|
|
3678
|
+
sm: 14,
|
|
3679
|
+
md: 19,
|
|
3680
|
+
lg: 24,
|
|
3681
|
+
xl: 32
|
|
3682
|
+
}
|
|
3648
3683
|
};
|
|
3649
3684
|
function computeColorValues(color) {
|
|
3650
3685
|
if (color.match(/^#([0-9a-f]{3}){1,2}$/i)) {
|
package/dist/model/index.cjs
CHANGED
package/dist/model/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.
|
|
2
|
-
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.
|
|
3
|
-
import { F as Fqn, a as IteratorLike } from '../shared/core.
|
|
4
|
-
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.BgPZ8Tl8.cjs';
|
|
2
|
+
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.BgPZ8Tl8.cjs';
|
|
3
|
+
import { F as Fqn, a as IteratorLike } from '../shared/core.QP35c488.cjs';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.BYs5deiY.cjs';
|
|
5
5
|
import 'type-fest';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.BS_nXBsP.cjs';
|
|
7
7
|
|
|
8
8
|
interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
|
|
9
9
|
readonly id: Id;
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.
|
|
2
|
-
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.
|
|
3
|
-
import { F as Fqn, a as IteratorLike } from '../shared/core.
|
|
4
|
-
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.5Z5cpENq.mjs';
|
|
2
|
+
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.5Z5cpENq.mjs';
|
|
3
|
+
import { F as Fqn, a as IteratorLike } from '../shared/core.QP35c488.mjs';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.D0KD4FiT.mjs';
|
|
5
5
|
import 'type-fest';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.CJaCUZQ9.mjs';
|
|
7
7
|
|
|
8
8
|
interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
|
|
9
9
|
readonly id: Id;
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.
|
|
2
|
-
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.
|
|
3
|
-
import { F as Fqn, a as IteratorLike } from '../shared/core.
|
|
4
|
-
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, A as AnyAux, f as DeploymentNodeModel, g as DeployedInstanceModel, h as RelationshipsAccum, R as RelationshipModel, i as DeploymentRelationModel } from '../shared/core.BJfq046m.js';
|
|
2
|
+
export { b as Aux, j as EdgeModel, d as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel } from '../shared/core.BJfq046m.js';
|
|
3
|
+
import { F as Fqn, a as IteratorLike } from '../shared/core.QP35c488.js';
|
|
4
|
+
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.DQCc-Jxk.js';
|
|
5
5
|
import 'type-fest';
|
|
6
|
-
import '../shared/core.
|
|
6
|
+
import '../shared/core.DsDq-blc.js';
|
|
7
7
|
|
|
8
8
|
interface Connection<Elem = ElementModel | DeploymentElementModel, Id = string> {
|
|
9
9
|
readonly id: Id;
|
package/dist/model/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/core.
|
|
1
|
+
export { C as Connection, f as ConnectionModel, F as DeployedInstanceModel, D as DeploymentConnectionModel, H as DeploymentNodeModel, I as DeploymentRelationModel, J as EdgeModel, E as ElementModel, b as LikeC4DeploymentModel, L as LikeC4Model, e as LikeC4ViewModel, N as NodeModel, R as RelationshipModel, g as deploymentConnection, h as differenceConnections, j as findAscendingConnections, k as findDeepestNestedConnection, m as findDescendantConnections, n as hasSameSource, o as hasSameSourceTarget, p as hasSameTarget, q as isAnyInOut, K as isDeployedInstance, M as isDeploymentNode, s as isIncoming, v as isNestedConnection, x as isOutgoing, y as mergeConnections, z as modelConnection, A as sortConnectionsByBoundaryHierarchy, B as sortDeepestFirst } from '../shared/core.Cz9Oy_FA.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
|
|
2
|
-
import {
|
|
3
|
-
import { F as Fqn, K as KeysOf,
|
|
2
|
+
import { a as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, C as ComputedLikeC4Model, bk as ViewId, au as RelationId, bf as NodeId, bc as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b5 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, aY as ComputedDynamicView, bh as StepEdgeId, a_ as ComputedElementView, aX as ComputedDeploymentView, at as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aw as RelationshipKind } from './core.CJaCUZQ9.mjs';
|
|
3
|
+
import { F as Fqn, K as KeysOf, a as IteratorLike, i as ElementKind, o as ElementShape, v as Color, I as IconUrl, r as Tag, q as Link, M as ThemeColor, l as Element, p as ElementStyle } from './core.QP35c488.mjs';
|
|
4
4
|
|
|
5
5
|
type ComputeViewResult<V extends ComputedView = ComputedView> = {
|
|
6
6
|
isSuccess: true;
|
|
@@ -474,7 +474,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
|
|
|
474
474
|
abstract readonly hierarchyLevel: number;
|
|
475
475
|
abstract readonly $model: LikeC4DeploymentModel<M>;
|
|
476
476
|
abstract readonly $node: DeploymentNode | DeployedInstance;
|
|
477
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
477
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
478
478
|
get shape(): ElementShape;
|
|
479
479
|
get color(): ThemeColor;
|
|
480
480
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -575,7 +575,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
|
|
|
575
575
|
constructor($model: LikeC4DeploymentModel<M>, $instance: DeployedInstance, element: ElementModel<M>);
|
|
576
576
|
get $node(): DeployedInstance;
|
|
577
577
|
get parent(): DeploymentNodeModel<M>;
|
|
578
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
578
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
579
579
|
get shape(): ElementShape;
|
|
580
580
|
get color(): ThemeColor;
|
|
581
581
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -672,6 +672,7 @@ declare class ElementModel<M extends AnyAux = AnyAux> {
|
|
|
672
672
|
get links(): ReadonlyArray<Link>;
|
|
673
673
|
get defaultView(): LikeC4ViewModel<M> | null;
|
|
674
674
|
get isRoot(): boolean;
|
|
675
|
+
get style(): SetRequired<ElementStyle, 'size'>;
|
|
675
676
|
isAncestorOf(another: ElementModel<M>): boolean;
|
|
676
677
|
isDescendantOf(another: ElementModel<M>): boolean;
|
|
677
678
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
|
|
2
|
-
import {
|
|
3
|
-
import { F as Fqn, K as KeysOf,
|
|
2
|
+
import { a as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, C as ComputedLikeC4Model, bk as ViewId, au as RelationId, bf as NodeId, bc as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b5 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, aY as ComputedDynamicView, bh as StepEdgeId, a_ as ComputedElementView, aX as ComputedDeploymentView, at as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aw as RelationshipKind } from './core.DsDq-blc.js';
|
|
3
|
+
import { F as Fqn, K as KeysOf, a as IteratorLike, i as ElementKind, o as ElementShape, v as Color, I as IconUrl, r as Tag, q as Link, M as ThemeColor, l as Element, p as ElementStyle } from './core.QP35c488.js';
|
|
4
4
|
|
|
5
5
|
type ComputeViewResult<V extends ComputedView = ComputedView> = {
|
|
6
6
|
isSuccess: true;
|
|
@@ -474,7 +474,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
|
|
|
474
474
|
abstract readonly hierarchyLevel: number;
|
|
475
475
|
abstract readonly $model: LikeC4DeploymentModel<M>;
|
|
476
476
|
abstract readonly $node: DeploymentNode | DeployedInstance;
|
|
477
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
477
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
478
478
|
get shape(): ElementShape;
|
|
479
479
|
get color(): ThemeColor;
|
|
480
480
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -575,7 +575,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
|
|
|
575
575
|
constructor($model: LikeC4DeploymentModel<M>, $instance: DeployedInstance, element: ElementModel<M>);
|
|
576
576
|
get $node(): DeployedInstance;
|
|
577
577
|
get parent(): DeploymentNodeModel<M>;
|
|
578
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
578
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
579
579
|
get shape(): ElementShape;
|
|
580
580
|
get color(): ThemeColor;
|
|
581
581
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -672,6 +672,7 @@ declare class ElementModel<M extends AnyAux = AnyAux> {
|
|
|
672
672
|
get links(): ReadonlyArray<Link>;
|
|
673
673
|
get defaultView(): LikeC4ViewModel<M> | null;
|
|
674
674
|
get isRoot(): boolean;
|
|
675
|
+
get style(): SetRequired<ElementStyle, 'size'>;
|
|
675
676
|
isAncestorOf(another: ElementModel<M>): boolean;
|
|
676
677
|
isDescendantOf(another: ElementModel<M>): boolean;
|
|
677
678
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tagged, NonEmptyTuple, Simplify, MergeExclusive } from 'type-fest';
|
|
2
|
-
import { N as NonEmptyArray, F as Fqn,
|
|
2
|
+
import { N as NonEmptyArray, F as Fqn, i as ElementKind, r as Tag, o as ElementShape, v as Color, I as IconUrl, k as BorderStyle, S as ShapeSize, E as ExclusiveUnion, p as ElementStyle, q as Link, P as Point, X as XYPoint, T as ThemeColorValues, G as SpacingSize, J as TextSize, M as ThemeColor, m as ElementKindSpecification, t as TypedElement } from './core.QP35c488.cjs';
|
|
3
3
|
|
|
4
4
|
type EqualOperator<V> = {
|
|
5
5
|
eq: V;
|
|
@@ -93,6 +93,9 @@ interface CustomElementExpr extends Omit<BaseExpr, 'custom'> {
|
|
|
93
93
|
opacity?: number;
|
|
94
94
|
navigateTo?: ViewId;
|
|
95
95
|
multiple?: boolean;
|
|
96
|
+
size?: ShapeSize;
|
|
97
|
+
padding?: ShapeSize;
|
|
98
|
+
textSize?: ShapeSize;
|
|
96
99
|
};
|
|
97
100
|
}
|
|
98
101
|
declare function isCustomElement(expr: Expression): expr is CustomElementExpr;
|
|
@@ -393,6 +396,10 @@ interface ViewRuleGroup {
|
|
|
393
396
|
color?: Color;
|
|
394
397
|
border?: BorderStyle;
|
|
395
398
|
opacity?: number;
|
|
399
|
+
multiple?: boolean;
|
|
400
|
+
size?: ShapeSize;
|
|
401
|
+
padding?: SpacingSize;
|
|
402
|
+
textSize?: TextSize;
|
|
396
403
|
}
|
|
397
404
|
declare function isViewRuleGroup(rule: ViewRule): rule is ViewRuleGroup;
|
|
398
405
|
type ViewRule = ViewRulePredicate | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
@@ -848,4 +855,4 @@ interface LayoutedLikeC4Model<Fqns extends string = string, DeploymentFqns exten
|
|
|
848
855
|
views: Record<Views, DiagramView<Views, Tags>>;
|
|
849
856
|
}
|
|
850
857
|
|
|
851
|
-
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B,
|
|
858
|
+
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, type ComputedLikeC4Model as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, ComputedView as a, type CustomColorDefinitions as a$, type GlobalPredicateId as a0, type GlobalPredicates as a1, type GlobalStyleID as a2, type GlobalStyles as a3, type ModelGlobals as a4, type AnyParsedLikeC4Model as a5, type GenericLikeC4Model as a6, type LayoutedLikeC4Model as a7, type LikeC4ModelDump as a8, type ParsedLikeC4Model as a9, DiagramNode as aA, extractStep as aB, getBBoxCenter as aC, getParallelStepsPrefix as aD, isAutoLayoutDirection as aE, isDeploymentView as aF, isDynamicView as aG, isDynamicViewParallelSteps as aH, isElementView as aI, isExtendsElementView as aJ, isScopedElementView as aK, isStepEdgeId as aL, isViewRuleAutoLayout as aM, isViewRuleGlobalPredicateRef as aN, isViewRuleGlobalStyle as aO, isViewRuleGroup as aP, isViewRulePredicate as aQ, isViewRuleStyle as aR, stepEdgeId as aS, type AutoLayoutDirection as aT, type BasicElementView as aU, type BasicView as aV, type BBox as aW, type ComputedDeploymentView as aX, type ComputedDynamicView as aY, type ComputedEdge as aZ, type ComputedElementView as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isTagEqual as ae, whereOperatorAsPredicate as af, type AndOperator as ag, type EqualOperator as ah, type Filterable as ai, type KindEqual as aj, type NotOperator as ak, type OperatorPredicate as al, type OrOperator as am, type TagEqual as an, type WhereOperator as ao, DefaultArrowType as ap, DefaultLineStyle as aq, DefaultRelationshipColor as ar, type AbstractRelation as as, type ModelRelation as at, type RelationId as au, type RelationshipArrowType as av, type RelationshipKind as aw, type RelationshipKindSpecification as ax, type RelationshipLineType as ay, ComputedNode as az, type DeployedInstance as b, type DeploymentView as b0, type DeploymentViewRule as b1, type DeploymentViewRulePredicate as b2, type DeploymentViewRuleStyle as b3, type DiagramEdge as b4, type DiagramView as b5, type DynamicView as b6, type DynamicViewIncludeRule as b7, type DynamicViewParallelSteps as b8, type DynamicViewRule as b9, type DynamicViewStep as ba, type DynamicViewStepOrParallel as bb, type EdgeId as bc, type ElementView as bd, type ExtendsElementView as be, type NodeId as bf, type ScopedElementView as bg, type StepEdgeId as bh, type StepEdgeIdLiteral as bi, type ViewAutoLayout as bj, type ViewId as bk, type ViewManualLayout as bl, type ViewRule as bm, type ViewRuleAutoLayout as bn, type ViewRuleGlobalPredicateRef as bo, type ViewRuleGlobalStyle as bp, type ViewRuleGroup as bq, type ViewRulePredicate as br, type ViewRuleStyle as bs, type ViewRuleStyleOrGlobalRef as bt, type ViewWithHash as bu, type ViewWithNotation as bv, type ElementNotation as bw, type Participant as bx, type DeploymentElementStyle as c, type DeploymentNode as d, expression as e, type DeploymentNodeKind as f, type DeploymentNodeKindSpecification as g, type DeploymentRef as h, type DeploymentRelation as i, isCustomElement as j, isCustomRelationExpr as k, isElement as l, isElementKindExpr as m, isElementPredicateExpr as n, isElementRef as o, isElementTagExpr as p, isElementWhere as q, isExpandedElementExpr as r, isIncoming as s, isInOut as t, isOutgoing as u, isRelation as v, isRelationExpression as w, isRelationPredicateExpr as x, isRelationWhere as y, isWildcard as z };
|
|
@@ -14,8 +14,8 @@ function nonexhaustive(value) {
|
|
|
14
14
|
throw new Error(`NonExhaustive value: ${value}`);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function u$1(
|
|
17
|
+
function u$1(o,n,a){let t=r=>o(r,...n);return a===undefined?t:Object.assign(t,{lazy:a,lazyArgs:n})}
|
|
18
18
|
|
|
19
|
-
function u(r,n,
|
|
19
|
+
function u(r,n,o){let a=r.length-n.length;if(a===0)return r(...n);if(a===1)return u$1(r,n,o);throw new Error("Wrong number of arguments")}
|
|
20
20
|
|
|
21
21
|
export { nonNullable as a, invariant as i, nonexhaustive as n, u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsStringLiteral, LiteralUnion, Simplify, SetRequired } from 'type-fest';
|
|
2
|
-
import {
|
|
3
|
-
import { F as Fqn, K as KeysOf,
|
|
2
|
+
import { a as ComputedView, L as LikeC4View, a9 as ParsedLikeC4Model, C as ComputedLikeC4Model, bk as ViewId, au as RelationId, bf as NodeId, bc as EdgeId, a6 as GenericLikeC4Model, a7 as LayoutedLikeC4Model, b5 as DiagramView, a8 as LikeC4ModelDump, f as DeploymentNodeKind, aY as ComputedDynamicView, bh as StepEdgeId, a_ as ComputedElementView, aX as ComputedDeploymentView, at as ModelRelation, a5 as AnyParsedLikeC4Model, a4 as ModelGlobals, h as DeploymentRef, d as DeploymentNode, b as DeployedInstance, c as DeploymentElementStyle, i as DeploymentRelation, aw as RelationshipKind } from './core.BS_nXBsP.cjs';
|
|
3
|
+
import { F as Fqn, K as KeysOf, a as IteratorLike, i as ElementKind, o as ElementShape, v as Color, I as IconUrl, r as Tag, q as Link, M as ThemeColor, l as Element, p as ElementStyle } from './core.QP35c488.cjs';
|
|
4
4
|
|
|
5
5
|
type ComputeViewResult<V extends ComputedView = ComputedView> = {
|
|
6
6
|
isSuccess: true;
|
|
@@ -474,7 +474,7 @@ declare abstract class AbstractDeploymentElementModel<M extends AnyAux = AnyAux>
|
|
|
474
474
|
abstract readonly hierarchyLevel: number;
|
|
475
475
|
abstract readonly $model: LikeC4DeploymentModel<M>;
|
|
476
476
|
abstract readonly $node: DeploymentNode | DeployedInstance;
|
|
477
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
477
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
478
478
|
get shape(): ElementShape;
|
|
479
479
|
get color(): ThemeColor;
|
|
480
480
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -575,7 +575,7 @@ declare class DeployedInstanceModel<M extends AnyAux = AnyAux> extends AbstractD
|
|
|
575
575
|
constructor($model: LikeC4DeploymentModel<M>, $instance: DeployedInstance, element: ElementModel<M>);
|
|
576
576
|
get $node(): DeployedInstance;
|
|
577
577
|
get parent(): DeploymentNodeModel<M>;
|
|
578
|
-
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color'>;
|
|
578
|
+
get style(): SetRequired<DeploymentElementStyle, 'shape' | 'color' | 'size'>;
|
|
579
579
|
get shape(): ElementShape;
|
|
580
580
|
get color(): ThemeColor;
|
|
581
581
|
get tags(): ReadonlyArray<Tag>;
|
|
@@ -672,6 +672,7 @@ declare class ElementModel<M extends AnyAux = AnyAux> {
|
|
|
672
672
|
get links(): ReadonlyArray<Link>;
|
|
673
673
|
get defaultView(): LikeC4ViewModel<M> | null;
|
|
674
674
|
get isRoot(): boolean;
|
|
675
|
+
get style(): SetRequired<ElementStyle, 'size'>;
|
|
675
676
|
isAncestorOf(another: ElementModel<M>): boolean;
|
|
676
677
|
isDescendantOf(another: ElementModel<M>): boolean;
|
|
677
678
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const chunkWIMGWYZL = require('./core.DqQrj2oQ.cjs');
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
@@ -14,17 +14,17 @@ function _mergeNamespaces(n, m) {
|
|
|
14
14
|
return n;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
var e={done:true,hasNext:false},s={done:false,hasNext:false},a
|
|
17
|
+
var e={done:true,hasNext:false},s={done:false,hasNext:false},a=()=>e;
|
|
18
18
|
|
|
19
|
-
function
|
|
19
|
+
function C(t,...o){let n=t,u=o.map(e=>"lazy"in e?A(e):undefined),p=0;for(;p<o.length;){if(u[p]===undefined||!B(n)){let i=o[p];n=i(n),p+=1;continue}let r=[];for(let i=p;i<o.length;i++){let l=u[i];if(l===undefined||(r.push(l),l.isSingle))break}let a=[];for(let i of n)if(y(i,a,r))break;let{isSingle:s}=r.at(-1);n=s?a[0]:a,p+=r.length;}return n}function y(t,o,n){if(n.length===0)return o.push(t),false;let u=t,p=s,e=false;for(let[r,a]of n.entries()){let{index:s,items:i}=a;if(i.push(u),p=a(u,s,i),a.index+=1,p.hasNext){if(p.hasMany??false){for(let l of p.next)if(y(l,o,n.slice(r+1)))return true;return e}u=p.next;}if(!p.hasNext)break;p.done&&(e=true);}return p.hasNext&&o.push(u),e}function A(t){let{lazy:o,lazyArgs:n}=t,u=o(...n);return Object.assign(u,{isSingle:o.single??false,index:0,items:[]})}function B(t){return typeof t=="string"||typeof t=="object"&&t!==null&&Symbol.iterator in t}
|
|
20
20
|
|
|
21
|
-
function d(...e){return
|
|
21
|
+
function d(...e){return chunkWIMGWYZL.u(i$2,e,o$1)}var i$2=(e,n)=>e.length<n.length?e.map((t,r)=>[t,n[r]]):n.map((t,r)=>[e[r],t]),o$1=e=>(n,t)=>({hasNext:true,next:[n,e[t]],done:t>=e.length-1});
|
|
22
22
|
|
|
23
|
-
function i$1(...e){return
|
|
23
|
+
function i$1(...e){return chunkWIMGWYZL.u(r,e)}var r=(e,t)=>e.length>=t;
|
|
24
24
|
|
|
25
|
-
function u(...e){return
|
|
25
|
+
function u(...e){return chunkWIMGWYZL.u(i,e)}function i(e,a){let n=[];for(let[o,r]of e.entries()){if(!a(r,o,e))break;n.push(r);}return n}
|
|
26
26
|
|
|
27
|
-
function m(...a){return
|
|
27
|
+
function m(...a){return chunkWIMGWYZL.u(o,a,p)}var o=(a,e)=>a.map(e),p=a=>(e,t,r)=>({done:false,hasNext:true,next:a(e,t,r)});
|
|
28
28
|
|
|
29
29
|
function t$1(r){return typeof r=="string"}
|
|
30
30
|
|
|
@@ -14360,7 +14360,7 @@ function commonHead(sources, targets, equals) {
|
|
|
14360
14360
|
return [];
|
|
14361
14361
|
}
|
|
14362
14362
|
equals ??= Object.is;
|
|
14363
|
-
return
|
|
14363
|
+
return C(
|
|
14364
14364
|
d(sources, targets),
|
|
14365
14365
|
u(([source, target]) => equals(source, target)),
|
|
14366
14366
|
m(([source, _]) => source)
|
|
@@ -14625,7 +14625,7 @@ function isIterable(something) {
|
|
|
14625
14625
|
|
|
14626
14626
|
function ifilter(arg1, arg2) {
|
|
14627
14627
|
const pred = arg2 ?? arg1;
|
|
14628
|
-
|
|
14628
|
+
chunkWIMGWYZL.invariant(t(pred));
|
|
14629
14629
|
function* _filter(iter) {
|
|
14630
14630
|
for (const value of iter) {
|
|
14631
14631
|
if (pred(value)) {
|
|
@@ -14642,7 +14642,7 @@ function ifilter(arg1, arg2) {
|
|
|
14642
14642
|
|
|
14643
14643
|
function ifind(arg1, arg2) {
|
|
14644
14644
|
const pred = arg2 ?? arg1;
|
|
14645
|
-
|
|
14645
|
+
chunkWIMGWYZL.invariant(t(pred));
|
|
14646
14646
|
function _find(iter) {
|
|
14647
14647
|
for (const value of iter) {
|
|
14648
14648
|
if (pred(value)) {
|
|
@@ -14669,7 +14669,7 @@ function* _iflat(iterable) {
|
|
|
14669
14669
|
|
|
14670
14670
|
function imap(arg1, arg2) {
|
|
14671
14671
|
const mapper = arg2 ?? arg1;
|
|
14672
|
-
|
|
14672
|
+
chunkWIMGWYZL.invariant(t(mapper));
|
|
14673
14673
|
function* _map(iter) {
|
|
14674
14674
|
for (const value of iter) {
|
|
14675
14675
|
yield mapper(value);
|
|
@@ -14684,7 +14684,7 @@ function imap(arg1, arg2) {
|
|
|
14684
14684
|
|
|
14685
14685
|
function isome(arg1, arg2) {
|
|
14686
14686
|
const pred = arg2 ?? arg1;
|
|
14687
|
-
|
|
14687
|
+
chunkWIMGWYZL.invariant(t(pred));
|
|
14688
14688
|
function _some(iter) {
|
|
14689
14689
|
for (const value of iter) {
|
|
14690
14690
|
if (pred(value)) {
|
|
@@ -14791,7 +14791,7 @@ function hasIntersection(a, b) {
|
|
|
14791
14791
|
function stringHash(str) {
|
|
14792
14792
|
let hash = 5381;
|
|
14793
14793
|
const len = str.length;
|
|
14794
|
-
|
|
14794
|
+
chunkWIMGWYZL.invariant(len > 0, "stringHash: empty string");
|
|
14795
14795
|
for (let i = 0; i < len; i++) {
|
|
14796
14796
|
hash = hash * 33 ^ str.charCodeAt(i);
|
|
14797
14797
|
}
|
|
@@ -14818,9 +14818,10 @@ function requireObject_hash () {
|
|
|
14818
14818
|
var object_hashExports = requireObject_hash();
|
|
14819
14819
|
const objectHash = /*@__PURE__*/getDefaultExportFromCjs(object_hashExports);
|
|
14820
14820
|
|
|
14821
|
+
exports.C = C;
|
|
14821
14822
|
exports.DefaultMap = DefaultMap;
|
|
14822
14823
|
exports.Stack = Stack;
|
|
14823
|
-
exports.a = a
|
|
14824
|
+
exports.a = a;
|
|
14824
14825
|
exports.ancestorsFqn = ancestorsFqn;
|
|
14825
14826
|
exports.commonAncestor = commonAncestor;
|
|
14826
14827
|
exports.commonHead = commonHead;
|
|
@@ -14871,4 +14872,3 @@ exports.toArray = toArray;
|
|
|
14871
14872
|
exports.toSet = toSet;
|
|
14872
14873
|
exports.u = u;
|
|
14873
14874
|
exports.union = union;
|
|
14874
|
-
exports.x = x;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const chunkWIMGWYZL = require('./core.DqQrj2oQ.cjs');
|
|
4
4
|
|
|
5
5
|
function o$1(a){return t=>!a(t)}
|
|
6
6
|
|
|
@@ -8,9 +8,9 @@ function n(e){return e==null}
|
|
|
8
8
|
|
|
9
9
|
function o(r){return Array.isArray(r)}
|
|
10
10
|
|
|
11
|
-
function t(...a){return
|
|
11
|
+
function t(...a){return chunkWIMGWYZL.u(e,a)}var e=(a,o)=>o.every(l=>l(a));
|
|
12
12
|
|
|
13
|
-
function y(...a){return
|
|
13
|
+
function y(...a){return chunkWIMGWYZL.u(r,a)}var r=(a,o)=>o.some(e=>e(a));
|
|
14
14
|
|
|
15
15
|
exports.DeploymentElement = void 0;
|
|
16
16
|
((DeploymentElement2) => {
|
|
@@ -41,6 +41,9 @@ const ElementShapes = [
|
|
|
41
41
|
];
|
|
42
42
|
const DefaultThemeColor = "primary";
|
|
43
43
|
const DefaultElementShape = "rectangle";
|
|
44
|
+
const DefaultShapeSize = "md";
|
|
45
|
+
const DefaultPaddingSize = "md";
|
|
46
|
+
const DefaultTextSize = "md";
|
|
44
47
|
|
|
45
48
|
function isElementRef(expr) {
|
|
46
49
|
return "element" in expr;
|
|
@@ -130,7 +133,7 @@ exports.FqnRef = void 0;
|
|
|
130
133
|
return "model" in ref;
|
|
131
134
|
};
|
|
132
135
|
FqnRef2.toDeploymentRef = (ref) => {
|
|
133
|
-
|
|
136
|
+
chunkWIMGWYZL.invariant((0, FqnRef2.isDeploymentRef)(ref), "Expected DeploymentRef");
|
|
134
137
|
return (0, FqnRef2.isInsideInstanceRef)(ref) ? {
|
|
135
138
|
id: ref.deployment,
|
|
136
139
|
element: ref.element
|
|
@@ -241,7 +244,7 @@ function whereOperatorAsPredicate(operator) {
|
|
|
241
244
|
return y(predicates);
|
|
242
245
|
}
|
|
243
246
|
default:
|
|
244
|
-
|
|
247
|
+
chunkWIMGWYZL.nonexhaustive(operator);
|
|
245
248
|
}
|
|
246
249
|
}
|
|
247
250
|
function participantIs(participant, predicate) {
|
|
@@ -384,7 +387,10 @@ exports.BorderStyles = BorderStyles;
|
|
|
384
387
|
exports.DefaultArrowType = DefaultArrowType;
|
|
385
388
|
exports.DefaultElementShape = DefaultElementShape;
|
|
386
389
|
exports.DefaultLineStyle = DefaultLineStyle;
|
|
390
|
+
exports.DefaultPaddingSize = DefaultPaddingSize;
|
|
387
391
|
exports.DefaultRelationshipColor = DefaultRelationshipColor;
|
|
392
|
+
exports.DefaultShapeSize = DefaultShapeSize;
|
|
393
|
+
exports.DefaultTextSize = DefaultTextSize;
|
|
388
394
|
exports.DefaultThemeColor = DefaultThemeColor;
|
|
389
395
|
exports.ElementShapes = ElementShapes;
|
|
390
396
|
exports.expression = expression;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tagged, NonEmptyTuple, Simplify, MergeExclusive } from 'type-fest';
|
|
2
|
-
import { N as NonEmptyArray, F as Fqn,
|
|
2
|
+
import { N as NonEmptyArray, F as Fqn, i as ElementKind, r as Tag, o as ElementShape, v as Color, I as IconUrl, k as BorderStyle, S as ShapeSize, E as ExclusiveUnion, p as ElementStyle, q as Link, P as Point, X as XYPoint, T as ThemeColorValues, G as SpacingSize, J as TextSize, M as ThemeColor, m as ElementKindSpecification, t as TypedElement } from './core.QP35c488.mjs';
|
|
3
3
|
|
|
4
4
|
type EqualOperator<V> = {
|
|
5
5
|
eq: V;
|
|
@@ -93,6 +93,9 @@ interface CustomElementExpr extends Omit<BaseExpr, 'custom'> {
|
|
|
93
93
|
opacity?: number;
|
|
94
94
|
navigateTo?: ViewId;
|
|
95
95
|
multiple?: boolean;
|
|
96
|
+
size?: ShapeSize;
|
|
97
|
+
padding?: ShapeSize;
|
|
98
|
+
textSize?: ShapeSize;
|
|
96
99
|
};
|
|
97
100
|
}
|
|
98
101
|
declare function isCustomElement(expr: Expression): expr is CustomElementExpr;
|
|
@@ -393,6 +396,10 @@ interface ViewRuleGroup {
|
|
|
393
396
|
color?: Color;
|
|
394
397
|
border?: BorderStyle;
|
|
395
398
|
opacity?: number;
|
|
399
|
+
multiple?: boolean;
|
|
400
|
+
size?: ShapeSize;
|
|
401
|
+
padding?: SpacingSize;
|
|
402
|
+
textSize?: TextSize;
|
|
396
403
|
}
|
|
397
404
|
declare function isViewRuleGroup(rule: ViewRule): rule is ViewRuleGroup;
|
|
398
405
|
type ViewRule = ViewRulePredicate | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
@@ -848,4 +855,4 @@ interface LayoutedLikeC4Model<Fqns extends string = string, DeploymentFqns exten
|
|
|
848
855
|
views: Record<Views, DiagramView<Views, Tags>>;
|
|
849
856
|
}
|
|
850
857
|
|
|
851
|
-
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B,
|
|
858
|
+
export { type GlobalDynamicPredicates as $, type CustomElementExpr as A, type CustomRelationExpr as B, type ComputedLikeC4Model as C, DeploymentElement as D, type DirectRelationExpr as E, type ElementExpression as F, type ElementKindExpr as G, type ElementPredicateExpression as H, type ElementRefExpr as I, type ElementTagExpr as J, type ElementWhereExpr as K, type LikeC4View as L, type ExpandedElementExpr as M, type Expression as N, type IncomingExpr as O, type PredicateSelector as P, type InOutExpr as Q, type NonWilcard as R, type OutgoingExpr as S, type RelationExpression as T, type RelationPredicateExpression as U, type RelationWhereExpr as V, type WildcardExpr as W, ExpressionV2 as X, FqnExpr as Y, FqnRef as Z, RelationExpr as _, ComputedView as a, type CustomColorDefinitions as a$, type GlobalPredicateId as a0, type GlobalPredicates as a1, type GlobalStyleID as a2, type GlobalStyles as a3, type ModelGlobals as a4, type AnyParsedLikeC4Model as a5, type GenericLikeC4Model as a6, type LayoutedLikeC4Model as a7, type LikeC4ModelDump as a8, type ParsedLikeC4Model as a9, DiagramNode as aA, extractStep as aB, getBBoxCenter as aC, getParallelStepsPrefix as aD, isAutoLayoutDirection as aE, isDeploymentView as aF, isDynamicView as aG, isDynamicViewParallelSteps as aH, isElementView as aI, isExtendsElementView as aJ, isScopedElementView as aK, isStepEdgeId as aL, isViewRuleAutoLayout as aM, isViewRuleGlobalPredicateRef as aN, isViewRuleGlobalStyle as aO, isViewRuleGroup as aP, isViewRulePredicate as aQ, isViewRuleStyle as aR, stepEdgeId as aS, type AutoLayoutDirection as aT, type BasicElementView as aU, type BasicView as aV, type BBox as aW, type ComputedDeploymentView as aX, type ComputedDynamicView as aY, type ComputedEdge as aZ, type ComputedElementView as a_, isAndOperator as aa, isKindEqual as ab, isNotOperator as ac, isOrOperator as ad, isTagEqual as ae, whereOperatorAsPredicate as af, type AndOperator as ag, type EqualOperator as ah, type Filterable as ai, type KindEqual as aj, type NotOperator as ak, type OperatorPredicate as al, type OrOperator as am, type TagEqual as an, type WhereOperator as ao, DefaultArrowType as ap, DefaultLineStyle as aq, DefaultRelationshipColor as ar, type AbstractRelation as as, type ModelRelation as at, type RelationId as au, type RelationshipArrowType as av, type RelationshipKind as aw, type RelationshipKindSpecification as ax, type RelationshipLineType as ay, ComputedNode as az, type DeployedInstance as b, type DeploymentView as b0, type DeploymentViewRule as b1, type DeploymentViewRulePredicate as b2, type DeploymentViewRuleStyle as b3, type DiagramEdge as b4, type DiagramView as b5, type DynamicView as b6, type DynamicViewIncludeRule as b7, type DynamicViewParallelSteps as b8, type DynamicViewRule as b9, type DynamicViewStep as ba, type DynamicViewStepOrParallel as bb, type EdgeId as bc, type ElementView as bd, type ExtendsElementView as be, type NodeId as bf, type ScopedElementView as bg, type StepEdgeId as bh, type StepEdgeIdLiteral as bi, type ViewAutoLayout as bj, type ViewId as bk, type ViewManualLayout as bl, type ViewRule as bm, type ViewRuleAutoLayout as bn, type ViewRuleGlobalPredicateRef as bo, type ViewRuleGlobalStyle as bp, type ViewRuleGroup as bq, type ViewRulePredicate as br, type ViewRuleStyle as bs, type ViewRuleStyleOrGlobalRef as bt, type ViewWithHash as bu, type ViewWithNotation as bv, type ElementNotation as bw, type Participant as bx, type DeploymentElementStyle as c, type DeploymentNode as d, expression as e, type DeploymentNodeKind as f, type DeploymentNodeKindSpecification as g, type DeploymentRef as h, type DeploymentRelation as i, isCustomElement as j, isCustomRelationExpr as k, isElement as l, isElementKindExpr as m, isElementPredicateExpr as n, isElementRef as o, isElementTagExpr as p, isElementWhere as q, isExpandedElementExpr as r, isIncoming as s, isInOut as t, isOutgoing as u, isRelation as v, isRelationExpression as w, isRelationPredicateExpr as x, isRelationWhere as y, isWildcard as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.
|
|
2
|
-
import { F as Fqn } from './core.
|
|
1
|
+
import { L as LikeC4Model, E as ElementModel, R as RelationshipModel } from './core.BgPZ8Tl8.cjs';
|
|
2
|
+
import { F as Fqn } from './core.QP35c488.cjs';
|
|
3
3
|
|
|
4
4
|
declare function computeRelationshipsView(subjectId: Fqn, likec4model: LikeC4Model): {
|
|
5
5
|
incomers: Set<ElementModel<LikeC4Model.Any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u, i as invariant, n as nonexhaustive } from './core.
|
|
1
|
+
import { u, i as invariant, n as nonexhaustive } from './core.BfZZXtur.mjs';
|
|
2
2
|
|
|
3
3
|
function o$1(a){return t=>!a(t)}
|
|
4
4
|
|
|
@@ -39,6 +39,9 @@ const ElementShapes = [
|
|
|
39
39
|
];
|
|
40
40
|
const DefaultThemeColor = "primary";
|
|
41
41
|
const DefaultElementShape = "rectangle";
|
|
42
|
+
const DefaultShapeSize = "md";
|
|
43
|
+
const DefaultPaddingSize = "md";
|
|
44
|
+
const DefaultTextSize = "md";
|
|
42
45
|
|
|
43
46
|
function isElementRef(expr) {
|
|
44
47
|
return "element" in expr;
|
|
@@ -377,4 +380,4 @@ var DiagramNode;
|
|
|
377
380
|
DiagramNode2.isNodesGroup = isNodesGroup;
|
|
378
381
|
})(DiagramNode || (DiagramNode = {}));
|
|
379
382
|
|
|
380
|
-
export {
|
|
383
|
+
export { isDeploymentView as $, AsFqn as A, BorderStyles as B, isRelationPredicateExpr as C, DeploymentElement as D, ElementKind as E, isRelationWhere as F, isWildcard as G, ExpressionV2 as H, FqnExpr as I, FqnRef as J, isAndOperator as K, isKindEqual as L, isNotOperator as M, isOrOperator as N, isTagEqual as O, whereOperatorAsPredicate as P, DefaultArrowType as Q, RelationExpr as R, DefaultLineStyle as S, DefaultRelationshipColor as T, ComputedNode as U, ComputedView as V, DiagramNode as W, extractStep as X, getBBoxCenter as Y, getParallelStepsPrefix as Z, isAutoLayoutDirection as _, isElementView as a, isDynamicView as a0, isDynamicViewParallelSteps as a1, isStepEdgeId as a2, isViewRuleAutoLayout as a3, isViewRuleGlobalPredicateRef as a4, isViewRuleGlobalStyle as a5, isViewRuleGroup as a6, isViewRulePredicate as a7, isViewRuleStyle as a8, stepEdgeId as a9, o$1 as aa, y as ab, isElementPredicateExpr as b, isScopedElementView as c, DefaultElementShape as d, DefaultThemeColor as e, expression as f, DefaultPaddingSize as g, DefaultShapeSize as h, isExtendsElementView as i, DefaultTextSize as j, ElementShapes as k, isCustomElement as l, isCustomRelationExpr as m, n, o, isElement as p, isElementKindExpr as q, isElementRef as r, isElementTagExpr as s, isElementWhere as t, isExpandedElementExpr as u, isIncoming as v, isInOut as w, isOutgoing as x, isRelation as y, isRelationExpression as z };
|