@likec4/core 1.46.0 → 1.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.d.mts +1 -1
- package/dist/builder/index.mjs +5 -5
- package/dist/compute-view/index.d.mts +1 -1
- package/dist/compute-view/index.mjs +4 -4
- package/dist/compute-view/relationships-view/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/model/connection/deployment/index.d.mts +3 -3
- package/dist/model/connection/deployment/index.mjs +2 -2
- package/dist/model/connection/index.d.mts +4 -4
- package/dist/model/connection/index.mjs +3 -3
- package/dist/model/connection/model/index.d.mts +3 -3
- package/dist/model/connection/model/index.mjs +2 -2
- package/dist/model/index.d.mts +5 -5
- package/dist/model/index.mjs +4 -4
- package/dist/shared/{core.CQPEY2wQ.mjs → core.78IWAHAE.mjs} +1 -1
- package/dist/shared/{core.DqlrMlsf.mjs → core.BFd1lU9R.mjs} +1 -1
- package/dist/shared/{core.DbQpDoJS.mjs → core.CRhT4Iio.mjs} +9 -6
- package/dist/shared/{core.BK-tI3Q3.mjs → core.DEK-BO3_.mjs} +2 -2
- package/dist/shared/{core.BLG-ADpi.d.mts → core.DK3pdsTf.d.mts} +1 -0
- package/dist/shared/{core.Qv7vZIwZ.mjs → core.DSalPD6v.mjs} +258 -188
- package/dist/shared/{core.DU8pv3Q6.mjs → core.DVfPJPJj.mjs} +15 -14
- package/dist/shared/{core.Byj60hH6.d.mts → core.DezoCAzf.d.mts} +1 -1
- package/dist/shared/{core.D4Y4U8Lp.d.mts → core.I8sCl3WM.d.mts} +2 -2
- package/dist/shared/{core.CQYL_Z-_.d.mts → core.e5GJ61_a.d.mts} +2 -2
- package/dist/shared/{core.DJpiszim.mjs → core.xgoPk2RG.mjs} +124 -126
- package/dist/types/index.mjs +1 -1
- package/package.json +9 -9
package/dist/builder/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LastArrayElement, Split, Simplify, IsLiteral, Writable, IfNever, IsNever, TupleToUnion, Tagged, PartialDeep } from 'type-fest';
|
|
2
|
-
import { f as LikeC4Model } from '../shared/core.
|
|
2
|
+
import { f as LikeC4Model } from '../shared/core.DK3pdsTf.mjs';
|
|
3
3
|
import { D as DeploymentFqn, F as Fqn, M as MarkdownOrString } from '../shared/core.CDdf8izT.mjs';
|
|
4
4
|
import { f as DeploymentElement, j as DeploymentRelationship, p as ParsedView, a0 as ParsedDeploymentView, P as ParsedLikeC4ModelData } from '../shared/core.5gPDaaG5.mjs';
|
|
5
5
|
import { f as Element, g as ModelRelation, q as AnyViewRuleStyle, w as AutoLayoutDirection, ah as ParsedElementView, h as ElementSpecification$1, j as RelationshipSpecification, T as TagSpecification, L as LikeC4ProjectStylesConfig } from '../shared/core.DE-g9oFF.mjs';
|
package/dist/builder/index.mjs
CHANGED
|
@@ -6,14 +6,14 @@ import { k as e } from '../shared/core.om36dXXW.mjs';
|
|
|
6
6
|
import { e as e$3 } from '../shared/core.DRJma0Ol.mjs';
|
|
7
7
|
import { a as _type, u as e$2, _ as _stage, d as isDeployedInstance, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
8
8
|
import { t as t$2 } from '../shared/core.CbT8JVYL.mjs';
|
|
9
|
-
import { a as t$4, c as computeLikeC4Model } from '../shared/core.
|
|
10
|
-
import { t as t$3 } from '../shared/core.
|
|
9
|
+
import { a as t$4, c as computeLikeC4Model } from '../shared/core.xgoPk2RG.mjs';
|
|
10
|
+
import { t as t$3 } from '../shared/core.DSalPD6v.mjs';
|
|
11
11
|
import { assignTagColors } from '../styles/index.mjs';
|
|
12
12
|
import { n as nameFromFqn, d as isSameHierarchy, p as parentFqn } from '../shared/core.CdNCAwq7.mjs';
|
|
13
13
|
import { e as e$1 } from '../shared/core.CqAJJpK_.mjs';
|
|
14
14
|
import { ModelFqnExpr } from '../types/expression-model.mjs';
|
|
15
15
|
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
16
|
-
import { e as exact } from '../shared/core.
|
|
16
|
+
import { e as exact } from '../shared/core.DEK-BO3_.mjs';
|
|
17
17
|
import { FqnRef } from '../types/fqnRef.mjs';
|
|
18
18
|
|
|
19
19
|
function t(...t){return t$1(Object.fromEntries,t)}
|
|
@@ -807,7 +807,6 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
807
807
|
...props
|
|
808
808
|
} = typeof _props === "string" ? { title: _props } : { ..._props };
|
|
809
809
|
const _id = b.__deploymentFqn(id);
|
|
810
|
-
invariant(_elements.has(target), `Target element with id "${target}" not found`);
|
|
811
810
|
b.__addDeployment(
|
|
812
811
|
exact({
|
|
813
812
|
id: _id,
|
|
@@ -912,7 +911,8 @@ function builder(_spec, _elements = /* @__PURE__ */ new Map(), _relations = [],
|
|
|
912
911
|
}
|
|
913
912
|
}),
|
|
914
913
|
with: (...ops) => {
|
|
915
|
-
|
|
914
|
+
const b = self.clone();
|
|
915
|
+
return ops.reduce((b2, op) => op(b2), b);
|
|
916
916
|
},
|
|
917
917
|
model: (cb) => {
|
|
918
918
|
const b = self.clone();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as Any, t as toComputed, d as AnyParsed } from '../shared/core.BkSYCfRg.mjs';
|
|
2
|
-
import { f as LikeC4Model } from '../shared/core.
|
|
2
|
+
import { f as LikeC4Model } from '../shared/core.DK3pdsTf.mjs';
|
|
3
3
|
import { P as ParsedLikeC4ModelData, C as ComputedLikeC4ModelData, p as ParsedView, r as ComputedView } from '../shared/core.5gPDaaG5.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
5
|
import '../shared/core.DB0Ue5Wx.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { w as willCreateCycle, t as topologicalSortExports, a as t$2, n as n$1 } from '../shared/core.
|
|
2
|
-
export { c as computeLikeC4Model, b as computeParsedModelData, d as computeView, u as unsafeComputeView } from '../shared/core.
|
|
1
|
+
import { w as willCreateCycle, t as topologicalSortExports, a as t$2, n as n$1 } from '../shared/core.xgoPk2RG.mjs';
|
|
2
|
+
export { c as computeLikeC4Model, b as computeParsedModelData, d as computeView, u as unsafeComputeView } from '../shared/core.xgoPk2RG.mjs';
|
|
3
3
|
import { n } from '../shared/core.BhNcrwzK.mjs';
|
|
4
|
-
import { t } from '../shared/core.
|
|
4
|
+
import { t } from '../shared/core.DVfPJPJj.mjs';
|
|
5
5
|
import { r as isExtendsElementView, p as isElementView } from '../shared/core.DH7TXqXf.mjs';
|
|
6
6
|
import { G as Graph } from '../shared/core.CmGY9blO.mjs';
|
|
7
7
|
import { c as isNonEmptyArray } from '../shared/core.CdNCAwq7.mjs';
|
|
8
8
|
import { t as t$3 } from '../shared/core.CbT8JVYL.mjs';
|
|
9
|
-
import { t as t$1 } from '../shared/core.
|
|
9
|
+
import { t as t$1 } from '../shared/core.DSalPD6v.mjs';
|
|
10
10
|
|
|
11
11
|
function resolveRulesExtendedViews(unresolvedViews) {
|
|
12
12
|
const g = new Graph({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as Any, U as Unknown, a as ElementId, V as ViewId } from '../../shared/core.BkSYCfRg.mjs';
|
|
2
|
-
import { E as ElementModel, R as RelationshipModel, f as LikeC4Model } from '../../shared/core.
|
|
2
|
+
import { E as ElementModel, R as RelationshipModel, f as LikeC4Model } from '../../shared/core.DK3pdsTf.mjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
5
|
import '../../shared/core.CDdf8izT.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -5,10 +5,10 @@ export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
|
|
|
5
5
|
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
|
|
6
6
|
export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
|
|
7
7
|
export { m as memoizeProp } from './shared/core.CLSZtnFh.mjs';
|
|
8
|
-
export { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.
|
|
8
|
+
export { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.DSalPD6v.mjs';
|
|
9
9
|
export { preferDescription, preferSummary } from './types/_aux.mjs';
|
|
10
10
|
export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, d as NodeId, N as NoneIcon, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, h as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, g as isStepEdgeId, s as scalar, c as splitGlobalFqn, e as stepEdgeId } from './shared/core.D0WZutNd.mjs';
|
|
11
|
-
export { R as RichText, e as exact } from './shared/core.
|
|
11
|
+
export { R as RichText, e as exact } from './shared/core.DEK-BO3_.mjs';
|
|
12
12
|
export { b as _layout, _ as _stage, a as _type, j as isAndOperator, n as isComputedView, d as isDeployedInstance, c as isDeploymentNode, s as isDeploymentView, o as isDiagramView, t as isDynamicView, p as isElementView, r as isExtendsElementView, f as isKindEqual, o as isLayoutedView, h as isNotOperator, i as isOnStage, k as isOrOperator, g as isParticipantOperator, q as isScopedElementView, e as isTagEqual, l as isViewRulePredicate, m as isViewRuleStyle, w as whereOperatorAsPredicate } from './shared/core.DH7TXqXf.mjs';
|
|
13
13
|
export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
|
|
14
14
|
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.DezoCAzf.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.e5GJ61_a.mjs';
|
|
3
|
+
import '../../../shared/core.DK3pdsTf.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
5
|
import '../../../shared/core.or6-EHsb.mjs';
|
|
6
6
|
import '../../../shared/core.9U0HL3oG.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.BFd1lU9R.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as findConnection, g as findConnectionsBetween, h as findConnectionsWithin } from '../../../shared/core.CRhT4Iio.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, f as model } from '../../shared/core.
|
|
1
|
+
import { C as Connection } from '../../shared/core.DezoCAzf.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, f as deployment } from '../../shared/core.e5GJ61_a.mjs';
|
|
3
|
+
export { C as ConnectionModel, f as model } from '../../shared/core.I8sCl3WM.mjs';
|
|
4
4
|
import { I as IterableContainer, R as ReorderedArray } from '../../shared/core.DB0Ue5Wx.mjs';
|
|
5
|
-
import '../../shared/core.
|
|
5
|
+
import '../../shared/core.DK3pdsTf.mjs';
|
|
6
6
|
import 'type-fest';
|
|
7
7
|
import '../../shared/core.or6-EHsb.mjs';
|
|
8
8
|
import '../../shared/core.9U0HL3oG.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as Connection } from '../../shared/core.
|
|
2
|
-
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.
|
|
3
|
-
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../shared/core.BFd1lU9R.mjs';
|
|
2
|
+
export { D as DeploymentConnectionModel, d as deployment } from '../../shared/core.CRhT4Iio.mjs';
|
|
3
|
+
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as model, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../../shared/core.78IWAHAE.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.
|
|
3
|
-
import '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.DezoCAzf.mjs';
|
|
2
|
+
export { C as ConnectionModel, a as findConnection, b as findConnectionsBetween, c as findConnectionsWithin } from '../../../shared/core.I8sCl3WM.mjs';
|
|
3
|
+
import '../../../shared/core.DK3pdsTf.mjs';
|
|
4
4
|
import 'type-fest';
|
|
5
5
|
import '../../../shared/core.or6-EHsb.mjs';
|
|
6
6
|
import '../../../shared/core.9U0HL3oG.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Connection } from '../../../shared/core.
|
|
2
|
-
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.
|
|
1
|
+
export { C as Connection } from '../../../shared/core.BFd1lU9R.mjs';
|
|
2
|
+
export { C as ConnectionModel, p as findConnection, o as findConnectionsBetween, q as findConnectionsWithin } from '../../../shared/core.78IWAHAE.mjs';
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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.
|
|
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.
|
|
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.DK3pdsTf.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.DK3pdsTf.mjs';
|
|
3
3
|
import { A as Any } from '../shared/core.BkSYCfRg.mjs';
|
|
4
|
-
export { C as Connection } from '../shared/core.
|
|
5
|
-
export { C as ConnectionModel, f as modelConnection } from '../shared/core.
|
|
6
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.
|
|
4
|
+
export { C as Connection } from '../shared/core.DezoCAzf.mjs';
|
|
5
|
+
export { C as ConnectionModel, f as modelConnection } from '../shared/core.I8sCl3WM.mjs';
|
|
6
|
+
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.e5GJ61_a.mjs';
|
|
7
7
|
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
8
8
|
import 'type-fest';
|
|
9
9
|
import '../shared/core.or6-EHsb.mjs';
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.
|
|
2
|
-
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.
|
|
3
|
-
export { C as Connection } from '../shared/core.
|
|
4
|
-
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.
|
|
1
|
+
export { g as EdgeModel, E as ElementModel, f as LikeC4DeploymentModel, L as LikeC4Model, h as LikeC4ViewModel, j as LikeC4ViewsFolder, N as NodeModel, R as RelationshipModel, V as VIEW_FOLDERS_SEPARATOR, k as extractViewTitleFromPath, l as getViewFolderPath, c as isDeployedInstanceModel, e as isDeploymentElementModel, d as isDeploymentNodeModel, m as isDeploymentRelationModel, r as isEdgeModel, i as isElementModel, p as isLikeC4ViewModel, o as isModelRelation, b as isNestedElementOfDeployedInstanceModel, q as isNodeModel, o as isRelationModel, o as isRelationshipModel, n as normalizeViewPath } from '../shared/core.DVfPJPJj.mjs';
|
|
2
|
+
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.CRhT4Iio.mjs';
|
|
3
|
+
export { C as Connection } from '../shared/core.BFd1lU9R.mjs';
|
|
4
|
+
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.78IWAHAE.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as customInspectSymbol } from './core.
|
|
1
|
+
import { c as customInspectSymbol } from './core.BFd1lU9R.mjs';
|
|
2
2
|
import { e } from './core.BoYfZOBm.mjs';
|
|
3
3
|
import { i as intersection, u as union, d as difference, e as equals } from './core.DbfO90vF.mjs';
|
|
4
4
|
import { s as stringHash } from './core.oSV6SRfk.mjs';
|
|
@@ -24,6 +24,6 @@ var Connection;
|
|
|
24
24
|
};
|
|
25
25
|
})(Connection || (Connection = {}));
|
|
26
26
|
|
|
27
|
-
const customInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
27
|
+
const customInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
28
28
|
|
|
29
29
|
export { Connection as C, customInspectSymbol as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as customInspectSymbol } from './core.
|
|
1
|
+
import { c as customInspectSymbol } from './core.BFd1lU9R.mjs';
|
|
2
2
|
import { i as intersection, d as difference, u as union, e as equals } from './core.DbfO90vF.mjs';
|
|
3
3
|
import { t as t$1 } from './core.BsSXS-_R.mjs';
|
|
4
4
|
import { e as e$1 } from './core.BKlholso.mjs';
|
|
@@ -6,7 +6,7 @@ import { n as n$1 } from './core.BhNcrwzK.mjs';
|
|
|
6
6
|
import { m as hierarchyLevel, g as commonAncestor, n as nameFromFqn, d as isSameHierarchy } from './core.CdNCAwq7.mjs';
|
|
7
7
|
import { a as nonNullable, i as invariant } from './core.D4npX2q8.mjs';
|
|
8
8
|
import { m as memoizeProp } from './core.CLSZtnFh.mjs';
|
|
9
|
-
import { e as exact, R as RichText } from './core.
|
|
9
|
+
import { e as exact, R as RichText } from './core.DEK-BO3_.mjs';
|
|
10
10
|
import { preferSummary, preferDescription } from '../types/_aux.mjs';
|
|
11
11
|
import { i as ihead } from './core.uFk_o9X6.mjs';
|
|
12
12
|
import { s as stringHash } from './core.oSV6SRfk.mjs';
|
|
@@ -41,6 +41,9 @@ class AbstractDeploymentElementModel {
|
|
|
41
41
|
get color() {
|
|
42
42
|
return this.style.color;
|
|
43
43
|
}
|
|
44
|
+
get icon() {
|
|
45
|
+
return this.style.icon ?? null;
|
|
46
|
+
}
|
|
44
47
|
/**
|
|
45
48
|
* Short description of the element.
|
|
46
49
|
* Falls back to description if summary is not provided.
|
|
@@ -159,13 +162,13 @@ class AbstractDeploymentElementModel {
|
|
|
159
162
|
return false;
|
|
160
163
|
}
|
|
161
164
|
get allOutgoing() {
|
|
162
|
-
return memoizeProp(this, Symbol.for("allOutgoing"), () => RelationshipsAccum.from(
|
|
165
|
+
return memoizeProp(this, /* @__PURE__ */ Symbol.for("allOutgoing"), () => RelationshipsAccum.from(
|
|
163
166
|
new Set(this.outgoingModelRelationships()),
|
|
164
167
|
new Set(this.outgoing())
|
|
165
168
|
));
|
|
166
169
|
}
|
|
167
170
|
get allIncoming() {
|
|
168
|
-
return memoizeProp(this, Symbol.for("allIncoming"), () => RelationshipsAccum.from(
|
|
171
|
+
return memoizeProp(this, /* @__PURE__ */ Symbol.for("allIncoming"), () => RelationshipsAccum.from(
|
|
169
172
|
new Set(this.incomingModelRelationships()),
|
|
170
173
|
new Set(this.incoming())
|
|
171
174
|
));
|
|
@@ -207,7 +210,7 @@ class DeploymentNodeModel extends AbstractDeploymentElementModel {
|
|
|
207
210
|
return this.$node.kind;
|
|
208
211
|
}
|
|
209
212
|
get tags() {
|
|
210
|
-
return memoizeProp(this, Symbol.for("tags"), () => {
|
|
213
|
+
return memoizeProp(this, /* @__PURE__ */ Symbol.for("tags"), () => {
|
|
211
214
|
return n$1([
|
|
212
215
|
...this.$node.tags ?? [],
|
|
213
216
|
...this.$model.$model.specification.deployments[this.kind]?.tags ?? []
|
|
@@ -332,7 +335,7 @@ class DeployedInstanceModel extends AbstractDeploymentElementModel {
|
|
|
332
335
|
}));
|
|
333
336
|
}
|
|
334
337
|
get tags() {
|
|
335
|
-
return memoizeProp(this, Symbol.for("tags"), () => {
|
|
338
|
+
return memoizeProp(this, /* @__PURE__ */ Symbol.for("tags"), () => {
|
|
336
339
|
return n$1([
|
|
337
340
|
...this.$instance.tags ?? [],
|
|
338
341
|
...this.element.tags
|
|
@@ -1033,8 +1033,8 @@ function exact(a) {
|
|
|
1033
1033
|
return t(a, (v) => v === void 0);
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
const symb_text = Symbol.for("text");
|
|
1037
|
-
const symb_html = Symbol.for("html");
|
|
1036
|
+
const symb_text = /* @__PURE__ */ Symbol.for("text");
|
|
1037
|
+
const symb_html = /* @__PURE__ */ Symbol.for("html");
|
|
1038
1038
|
const emptyTxt = "";
|
|
1039
1039
|
const mdcache = new LRUMap(500);
|
|
1040
1040
|
const txtcache = new LRUMap(500);
|
|
@@ -725,6 +725,7 @@ declare abstract class AbstractDeploymentElementModel<A extends Any> implements
|
|
|
725
725
|
get name(): string;
|
|
726
726
|
get shape(): ElementShape;
|
|
727
727
|
get color(): Color;
|
|
728
|
+
get icon(): IconUrl | null;
|
|
728
729
|
/**
|
|
729
730
|
* Short description of the element.
|
|
730
731
|
* Falls back to description if summary is not provided.
|