@likec4/core 1.17.1 → 1.18.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/compute-view/index.d.mts +91 -0
- package/dist/compute-view/index.d.ts +91 -0
- package/dist/compute-view/index.mjs +79 -0
- package/dist/index.d.mts +246 -434
- package/dist/index.d.ts +246 -434
- package/dist/index.mjs +418 -1322
- package/dist/model/index.d.mts +642 -0
- package/dist/model/index.d.ts +642 -0
- package/dist/model/index.mjs +2 -0
- package/dist/shared/core.BBgiAAv1.mjs +144 -0
- package/dist/shared/core.BPyJvuMU.mjs +2420 -0
- package/dist/shared/core.BQ4AbfvB.mjs +9228 -0
- package/dist/shared/{core.CoLQkcYL.d.mts → core.DMYY7C8s.d.mts} +398 -249
- package/dist/shared/{core.CoLQkcYL.d.ts → core.DMYY7C8s.d.ts} +398 -249
- package/dist/shared/core.k12s_keD.mjs +203 -0
- package/dist/types/index.d.mts +69 -1
- package/dist/types/index.d.ts +69 -1
- package/dist/types/index.mjs +21 -1
- package/package.json +38 -40
- package/src/builder/Builder.deployment.ts +219 -0
- package/src/builder/Builder.deploymentModel.ts +360 -0
- package/src/builder/Builder.element.ts +17 -19
- package/src/builder/Builder.model.ts +13 -2
- package/src/builder/Builder.test-d.ts +59 -4
- package/src/builder/Builder.ts +238 -53
- package/src/builder/Builder.view.ts +238 -53
- package/src/builder/_types.ts +87 -15
- package/src/compute-view/LikeC4ModelGraph.ts +330 -0
- package/src/compute-view/compute-view.ts +92 -0
- package/src/compute-view/deployment-view/Memory.ts +108 -0
- package/src/compute-view/deployment-view/Stage.ts +145 -0
- package/src/compute-view/deployment-view/__test__/fixture.ts +210 -0
- package/src/compute-view/deployment-view/_types.ts +29 -0
- package/src/compute-view/deployment-view/clean-connections.ts +229 -0
- package/src/compute-view/deployment-view/compute.ts +111 -0
- package/src/compute-view/deployment-view/predicates/deployment-ref.ts +146 -0
- package/src/compute-view/deployment-view/predicates/relation-direct.ts +130 -0
- package/src/compute-view/deployment-view/predicates/relation-in-out.ts +43 -0
- package/src/compute-view/deployment-view/predicates/relation-incoming.ts +46 -0
- package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +49 -0
- package/src/compute-view/deployment-view/predicates/wildcard.ts +29 -0
- package/src/compute-view/deployment-view/utils.ts +212 -0
- package/src/compute-view/dynamic-view/__test__/fixture.ts +58 -0
- package/src/compute-view/dynamic-view/compute.ts +310 -0
- package/src/compute-view/element-view/__test__/__snapshots__/legacy.spec.ts.snap +456 -0
- package/src/compute-view/element-view/__test__/fixture.ts +645 -0
- package/src/compute-view/element-view/compute.ts +734 -0
- package/src/compute-view/element-view/predicates.ts +517 -0
- package/src/compute-view/index.ts +5 -0
- package/src/compute-view/utils/__snapshots__/sortNodes.spec.ts.snap +113 -0
- package/src/compute-view/utils/ancestorsOfNode.ts +19 -0
- package/src/compute-view/utils/applyCustomElementProperties.ts +66 -0
- package/src/compute-view/utils/applyCustomRelationProperties.ts +41 -0
- package/src/compute-view/utils/applyViewRuleStyles.ts +53 -0
- package/src/compute-view/utils/buildComputedNodes.ts +148 -0
- package/src/compute-view/utils/buildElementNotations.ts +63 -0
- package/src/compute-view/utils/derive-edge-props-from-relationships.ts +97 -0
- package/src/compute-view/utils/elementExpressionToPredicate.ts +52 -0
- package/src/compute-view/utils/link-nodes-with-edges.ts +58 -0
- package/src/compute-view/utils/relationExpressionToPredicates.ts +55 -0
- package/src/compute-view/utils/resolve-extended-views.ts +65 -0
- package/src/compute-view/utils/resolve-global-rules.ts +83 -0
- package/src/compute-view/utils/sortNodes.ts +101 -0
- package/src/compute-view/utils/topological-sort.ts +160 -0
- package/src/compute-view/utils/uniqueTags.test.ts +42 -0
- package/src/compute-view/utils/uniqueTags.ts +21 -0
- package/src/compute-view/utils/view-hash.ts +27 -0
- package/src/compute-view/utils/with-readable-edges.ts +31 -0
- package/src/index.ts +5 -1
- package/src/model/DeploymentElementModel.ts +534 -0
- package/src/model/DeploymentModel.ts +364 -0
- package/src/model/ElementModel.ts +195 -0
- package/src/model/LikeC4Model.test-d.ts +151 -0
- package/src/model/LikeC4Model.ts +280 -457
- package/src/model/RelationModel.ts +84 -0
- package/src/model/__test__/fixture.ts +153 -338
- package/src/model/connection/ConnectionModel.ts +94 -0
- package/src/model/connection/DeploymentConnectionModel.ts +99 -0
- package/src/model/connection/deployment.ts +124 -0
- package/src/model/connection/model.ts +123 -0
- package/src/model/index.ts +4 -2
- package/src/model/types.ts +95 -15
- package/src/model/view/EdgeModel.ts +103 -0
- package/src/model/view/LikeC4ViewModel.ts +220 -0
- package/src/model/view/NodeModel.ts +228 -0
- package/src/types/_common.ts +2 -0
- package/src/types/deployments.ts +237 -0
- package/src/types/element.ts +7 -3
- package/src/types/expression.ts +8 -6
- package/src/types/index.ts +1 -0
- package/src/types/model.ts +68 -9
- package/src/types/overview-graph.ts +2 -2
- package/src/types/relation.ts +4 -4
- package/src/types/view-notation.ts +2 -2
- package/src/types/view.ts +104 -30
- package/src/utils/{commonHead.ts → common-head.ts} +2 -0
- package/src/utils/fqn.ts +83 -27
- package/src/utils/getOrCreate.ts +42 -0
- package/src/utils/graphlib.ts +10 -0
- package/src/utils/index.ts +4 -1
- package/src/utils/object-hash.ts +3 -0
- package/src/utils/set.ts +76 -0
- package/src/utils/string-hash.ts +16 -0
- package/dist/index.cjs +0 -5452
- package/dist/index.d.cts +0 -1053
- package/dist/shared/core.BXTs-8n7.mjs +0 -293
- package/dist/shared/core.CoLQkcYL.d.cts +0 -734
- package/dist/shared/core.DIYZvpVg.cjs +0 -353
- package/dist/types/index.cjs +0 -70
- package/dist/types/index.d.cts +0 -2
- package/src/model/LikeC4DiagramModel.ts +0 -338
- package/src/model/LikeC4ViewModel.ts +0 -320
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function u$1(t,n,a){let o=r=>t(r,...n);return a===void 0?o:Object.assign(o,{lazy:a,lazyArgs:n})}
|
|
4
|
-
|
|
5
|
-
function u(r,n,a){let o=r.length-n.length;if(o===0)return r(...n);if(o===1)return u$1(r,n,a);throw new Error("Wrong number of arguments")}
|
|
6
|
-
|
|
7
|
-
function o$1(a){return t=>!a(t)}
|
|
8
|
-
|
|
9
|
-
function n(e){return e==null}
|
|
10
|
-
|
|
11
|
-
function o(r){return Array.isArray(r)}
|
|
12
|
-
|
|
13
|
-
function t(...a){return u(e,a)}var e=(a,o)=>o.every(l=>l(a));
|
|
14
|
-
|
|
15
|
-
function y(...a){return u(r,a)}var r=(a,o)=>o.some(e=>e(a));
|
|
16
|
-
|
|
17
|
-
function nonNullable(value, message) {
|
|
18
|
-
if (typeof value === "undefined" || value == null) {
|
|
19
|
-
throw new Error(message ?? `Expected defined value, but received ${value}`);
|
|
20
|
-
}
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
function invariant(condition, message) {
|
|
24
|
-
if (condition) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
throw new Error(message ?? "Invariant failed");
|
|
28
|
-
}
|
|
29
|
-
function nonexhaustive(value) {
|
|
30
|
-
throw new Error(`NonExhaustive value: ${value}`);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function AsFqn(name, parent) {
|
|
34
|
-
return parent ? parent + "." + name : name;
|
|
35
|
-
}
|
|
36
|
-
const BorderStyles = ["solid", "dashed", "dotted", "none"];
|
|
37
|
-
exports.ElementKind = void 0;
|
|
38
|
-
((ElementKind2) => {
|
|
39
|
-
ElementKind2.Group = "@group";
|
|
40
|
-
})(exports.ElementKind || (exports.ElementKind = {}));
|
|
41
|
-
const ElementShapes = [
|
|
42
|
-
"rectangle",
|
|
43
|
-
"person",
|
|
44
|
-
"browser",
|
|
45
|
-
"mobile",
|
|
46
|
-
"cylinder",
|
|
47
|
-
"storage",
|
|
48
|
-
"queue"
|
|
49
|
-
];
|
|
50
|
-
const DefaultThemeColor = "primary";
|
|
51
|
-
const DefaultElementShape = "rectangle";
|
|
52
|
-
|
|
53
|
-
function isElementRef(expr) {
|
|
54
|
-
return "element" in expr;
|
|
55
|
-
}
|
|
56
|
-
function isExpandedElementExpr(expr) {
|
|
57
|
-
return "expanded" in expr;
|
|
58
|
-
}
|
|
59
|
-
function isCustomElement(expr) {
|
|
60
|
-
return "custom" in expr && (isElement(expr.custom.expr) || isElementWhere(expr.custom.expr));
|
|
61
|
-
}
|
|
62
|
-
function isWildcard(expr) {
|
|
63
|
-
return "wildcard" in expr;
|
|
64
|
-
}
|
|
65
|
-
function isElementKindExpr(expr) {
|
|
66
|
-
return "elementKind" in expr && "isEqual" in expr;
|
|
67
|
-
}
|
|
68
|
-
function isElementTagExpr(expr) {
|
|
69
|
-
return "elementTag" in expr && "isEqual" in expr;
|
|
70
|
-
}
|
|
71
|
-
function isElement(expr) {
|
|
72
|
-
return isElementRef(expr) || isWildcard(expr) || isElementKindExpr(expr) || isElementTagExpr(expr) || isExpandedElementExpr(expr);
|
|
73
|
-
}
|
|
74
|
-
function isElementWhere(expr) {
|
|
75
|
-
return "where" in expr && isElement(expr.where.expr);
|
|
76
|
-
}
|
|
77
|
-
function isElementPredicateExpr(expr) {
|
|
78
|
-
return isElement(expr) || isElementWhere(expr) || isCustomElement(expr);
|
|
79
|
-
}
|
|
80
|
-
function isRelation(expr) {
|
|
81
|
-
return "source" in expr && "target" in expr;
|
|
82
|
-
}
|
|
83
|
-
function isInOut(expr) {
|
|
84
|
-
return "inout" in expr;
|
|
85
|
-
}
|
|
86
|
-
function isIncoming(expr) {
|
|
87
|
-
return "incoming" in expr;
|
|
88
|
-
}
|
|
89
|
-
function isOutgoing(expr) {
|
|
90
|
-
return "outgoing" in expr;
|
|
91
|
-
}
|
|
92
|
-
function isRelationExpression(expr) {
|
|
93
|
-
return isRelation(expr) || isInOut(expr) || isIncoming(expr) || isOutgoing(expr);
|
|
94
|
-
}
|
|
95
|
-
function isRelationWhere(expr) {
|
|
96
|
-
return "where" in expr && isRelationExpression(expr.where.expr);
|
|
97
|
-
}
|
|
98
|
-
function isCustomRelationExpr(expr) {
|
|
99
|
-
return "customRelation" in expr;
|
|
100
|
-
}
|
|
101
|
-
function isRelationPredicateExpr(expr) {
|
|
102
|
-
return isRelationExpression(expr) || isRelationWhere(expr) || isCustomRelationExpr(expr);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const expression = {
|
|
106
|
-
__proto__: null,
|
|
107
|
-
isCustomElement: isCustomElement,
|
|
108
|
-
isCustomRelationExpr: isCustomRelationExpr,
|
|
109
|
-
isElement: isElement,
|
|
110
|
-
isElementKindExpr: isElementKindExpr,
|
|
111
|
-
isElementPredicateExpr: isElementPredicateExpr,
|
|
112
|
-
isElementRef: isElementRef,
|
|
113
|
-
isElementTagExpr: isElementTagExpr,
|
|
114
|
-
isElementWhere: isElementWhere,
|
|
115
|
-
isExpandedElementExpr: isExpandedElementExpr,
|
|
116
|
-
isInOut: isInOut,
|
|
117
|
-
isIncoming: isIncoming,
|
|
118
|
-
isOutgoing: isOutgoing,
|
|
119
|
-
isRelation: isRelation,
|
|
120
|
-
isRelationExpression: isRelationExpression,
|
|
121
|
-
isRelationPredicateExpr: isRelationPredicateExpr,
|
|
122
|
-
isRelationWhere: isRelationWhere,
|
|
123
|
-
isWildcard: isWildcard
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const isTagEqual = (operator) => {
|
|
127
|
-
return "tag" in operator;
|
|
128
|
-
};
|
|
129
|
-
const isKindEqual = (operator) => {
|
|
130
|
-
return "kind" in operator;
|
|
131
|
-
};
|
|
132
|
-
const isNotOperator = (operator) => {
|
|
133
|
-
return "not" in operator;
|
|
134
|
-
};
|
|
135
|
-
const isAndOperator = (operator) => {
|
|
136
|
-
return "and" in operator;
|
|
137
|
-
};
|
|
138
|
-
const isOrOperator = (operator) => {
|
|
139
|
-
return "or" in operator;
|
|
140
|
-
};
|
|
141
|
-
function whereOperatorAsPredicate(operator) {
|
|
142
|
-
switch (true) {
|
|
143
|
-
case isTagEqual(operator): {
|
|
144
|
-
if ("eq" in operator.tag) {
|
|
145
|
-
const tag2 = operator.tag.eq;
|
|
146
|
-
return (value) => {
|
|
147
|
-
return Array.isArray(value.tags) && value.tags.includes(tag2);
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
const tag = operator.tag.neq;
|
|
151
|
-
return (value) => {
|
|
152
|
-
return !Array.isArray(value.tags) || !value.tags.includes(tag);
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
case isKindEqual(operator): {
|
|
156
|
-
if ("eq" in operator.kind) {
|
|
157
|
-
const kind2 = operator.kind.eq;
|
|
158
|
-
return (value) => {
|
|
159
|
-
return value.kind === kind2;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
const kind = operator.kind.neq;
|
|
163
|
-
return (value) => {
|
|
164
|
-
return n(value.kind) || value.kind !== kind;
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
case isNotOperator(operator): {
|
|
168
|
-
const predicate = whereOperatorAsPredicate(operator.not);
|
|
169
|
-
return o$1(predicate);
|
|
170
|
-
}
|
|
171
|
-
case isAndOperator(operator): {
|
|
172
|
-
const predicates = operator.and.map(whereOperatorAsPredicate);
|
|
173
|
-
return t(predicates);
|
|
174
|
-
}
|
|
175
|
-
case isOrOperator(operator): {
|
|
176
|
-
const predicates = operator.or.map(whereOperatorAsPredicate);
|
|
177
|
-
return y(predicates);
|
|
178
|
-
}
|
|
179
|
-
default:
|
|
180
|
-
nonexhaustive(operator);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
const DefaultLineStyle = "dashed";
|
|
185
|
-
const DefaultArrowType = "normal";
|
|
186
|
-
const DefaultRelationshipColor = "gray";
|
|
187
|
-
|
|
188
|
-
const ThemeColors = [
|
|
189
|
-
"amber",
|
|
190
|
-
"blue",
|
|
191
|
-
"gray",
|
|
192
|
-
"slate",
|
|
193
|
-
"green",
|
|
194
|
-
"indigo",
|
|
195
|
-
"muted",
|
|
196
|
-
"primary",
|
|
197
|
-
"red",
|
|
198
|
-
"secondary",
|
|
199
|
-
"sky"
|
|
200
|
-
];
|
|
201
|
-
function isThemeColor(color) {
|
|
202
|
-
return color in ThemeColors;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
function isViewRulePredicate(rule) {
|
|
206
|
-
return "include" in rule && Array.isArray(rule.include) || "exclude" in rule && Array.isArray(rule.exclude);
|
|
207
|
-
}
|
|
208
|
-
function isViewRuleGlobalPredicateRef(rule) {
|
|
209
|
-
return "predicateId" in rule;
|
|
210
|
-
}
|
|
211
|
-
function isViewRuleStyle(rule) {
|
|
212
|
-
return "style" in rule && "targets" in rule;
|
|
213
|
-
}
|
|
214
|
-
function isViewRuleGlobalStyle(rule) {
|
|
215
|
-
return "styleId" in rule;
|
|
216
|
-
}
|
|
217
|
-
function isAutoLayoutDirection(autoLayout) {
|
|
218
|
-
return autoLayout === "TB" || autoLayout === "BT" || autoLayout === "LR" || autoLayout === "RL";
|
|
219
|
-
}
|
|
220
|
-
function isViewRuleAutoLayout(rule) {
|
|
221
|
-
return "direction" in rule;
|
|
222
|
-
}
|
|
223
|
-
function isViewRuleGroup(rule) {
|
|
224
|
-
return "title" in rule && "groupRules" in rule && Array.isArray(rule.groupRules);
|
|
225
|
-
}
|
|
226
|
-
function isDynamicViewIncludeRule(rule) {
|
|
227
|
-
return "include" in rule && Array.isArray(rule.include);
|
|
228
|
-
}
|
|
229
|
-
function isDynamicViewParallelSteps(step) {
|
|
230
|
-
return "__parallel" in step && o(step.__parallel);
|
|
231
|
-
}
|
|
232
|
-
function isDynamicView(view) {
|
|
233
|
-
return view.__ === "dynamic";
|
|
234
|
-
}
|
|
235
|
-
function isElementView(view) {
|
|
236
|
-
return n(view.__) || view.__ === "element";
|
|
237
|
-
}
|
|
238
|
-
function isExtendsElementView(view) {
|
|
239
|
-
return isElementView(view) && "extends" in view;
|
|
240
|
-
}
|
|
241
|
-
function isScopedElementView(view) {
|
|
242
|
-
return isElementView(view) && "viewOf" in view;
|
|
243
|
-
}
|
|
244
|
-
function StepEdgeId(step, parallelStep) {
|
|
245
|
-
const id = `step-${String(step).padStart(2, "0")}`;
|
|
246
|
-
return parallelStep ? `${id}.${parallelStep}` : id;
|
|
247
|
-
}
|
|
248
|
-
function isStepEdgeId(id) {
|
|
249
|
-
return id.startsWith("step-");
|
|
250
|
-
}
|
|
251
|
-
function extractStep(id) {
|
|
252
|
-
if (!isStepEdgeId(id)) {
|
|
253
|
-
throw new Error(`Invalid step edge id: ${id}`);
|
|
254
|
-
}
|
|
255
|
-
return parseFloat(id.slice("step-".length));
|
|
256
|
-
}
|
|
257
|
-
function getParallelStepsPrefix(id) {
|
|
258
|
-
if (isStepEdgeId(id) && id.includes(".")) {
|
|
259
|
-
return id.slice(0, id.indexOf(".") + 1);
|
|
260
|
-
}
|
|
261
|
-
return null;
|
|
262
|
-
}
|
|
263
|
-
exports.ComputedNode = void 0;
|
|
264
|
-
((ComputedNode2) => {
|
|
265
|
-
function isNodesGroup(node) {
|
|
266
|
-
return node.kind === exports.ElementKind.Group;
|
|
267
|
-
}
|
|
268
|
-
ComputedNode2.isNodesGroup = isNodesGroup;
|
|
269
|
-
})(exports.ComputedNode || (exports.ComputedNode = {}));
|
|
270
|
-
function isComputedDynamicView(view) {
|
|
271
|
-
return view.__ === "dynamic";
|
|
272
|
-
}
|
|
273
|
-
function isComputedElementView(view) {
|
|
274
|
-
return n(view.__) || view.__ === "element";
|
|
275
|
-
}
|
|
276
|
-
function getBBoxCenter({
|
|
277
|
-
x,
|
|
278
|
-
y,
|
|
279
|
-
width,
|
|
280
|
-
height
|
|
281
|
-
}) {
|
|
282
|
-
return {
|
|
283
|
-
x: x + width / 2,
|
|
284
|
-
y: y + height / 2
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
exports.DiagramNode = void 0;
|
|
288
|
-
((DiagramNode2) => {
|
|
289
|
-
function isNodesGroup(node) {
|
|
290
|
-
return node.kind === exports.ElementKind.Group;
|
|
291
|
-
}
|
|
292
|
-
DiagramNode2.isNodesGroup = isNodesGroup;
|
|
293
|
-
})(exports.DiagramNode || (exports.DiagramNode = {}));
|
|
294
|
-
|
|
295
|
-
exports.AsFqn = AsFqn;
|
|
296
|
-
exports.BorderStyles = BorderStyles;
|
|
297
|
-
exports.DefaultArrowType = DefaultArrowType;
|
|
298
|
-
exports.DefaultElementShape = DefaultElementShape;
|
|
299
|
-
exports.DefaultLineStyle = DefaultLineStyle;
|
|
300
|
-
exports.DefaultRelationshipColor = DefaultRelationshipColor;
|
|
301
|
-
exports.DefaultThemeColor = DefaultThemeColor;
|
|
302
|
-
exports.ElementShapes = ElementShapes;
|
|
303
|
-
exports.StepEdgeId = StepEdgeId;
|
|
304
|
-
exports.expression = expression;
|
|
305
|
-
exports.extractStep = extractStep;
|
|
306
|
-
exports.getBBoxCenter = getBBoxCenter;
|
|
307
|
-
exports.getParallelStepsPrefix = getParallelStepsPrefix;
|
|
308
|
-
exports.invariant = invariant;
|
|
309
|
-
exports.isAndOperator = isAndOperator;
|
|
310
|
-
exports.isAutoLayoutDirection = isAutoLayoutDirection;
|
|
311
|
-
exports.isComputedDynamicView = isComputedDynamicView;
|
|
312
|
-
exports.isComputedElementView = isComputedElementView;
|
|
313
|
-
exports.isCustomElement = isCustomElement;
|
|
314
|
-
exports.isCustomRelationExpr = isCustomRelationExpr;
|
|
315
|
-
exports.isDynamicView = isDynamicView;
|
|
316
|
-
exports.isDynamicViewIncludeRule = isDynamicViewIncludeRule;
|
|
317
|
-
exports.isDynamicViewParallelSteps = isDynamicViewParallelSteps;
|
|
318
|
-
exports.isElement = isElement;
|
|
319
|
-
exports.isElementKindExpr = isElementKindExpr;
|
|
320
|
-
exports.isElementPredicateExpr = isElementPredicateExpr;
|
|
321
|
-
exports.isElementRef = isElementRef;
|
|
322
|
-
exports.isElementTagExpr = isElementTagExpr;
|
|
323
|
-
exports.isElementView = isElementView;
|
|
324
|
-
exports.isElementWhere = isElementWhere;
|
|
325
|
-
exports.isExpandedElementExpr = isExpandedElementExpr;
|
|
326
|
-
exports.isExtendsElementView = isExtendsElementView;
|
|
327
|
-
exports.isInOut = isInOut;
|
|
328
|
-
exports.isIncoming = isIncoming;
|
|
329
|
-
exports.isKindEqual = isKindEqual;
|
|
330
|
-
exports.isNotOperator = isNotOperator;
|
|
331
|
-
exports.isOrOperator = isOrOperator;
|
|
332
|
-
exports.isOutgoing = isOutgoing;
|
|
333
|
-
exports.isRelation = isRelation;
|
|
334
|
-
exports.isRelationExpression = isRelationExpression;
|
|
335
|
-
exports.isRelationPredicateExpr = isRelationPredicateExpr;
|
|
336
|
-
exports.isRelationWhere = isRelationWhere;
|
|
337
|
-
exports.isScopedElementView = isScopedElementView;
|
|
338
|
-
exports.isStepEdgeId = isStepEdgeId;
|
|
339
|
-
exports.isTagEqual = isTagEqual;
|
|
340
|
-
exports.isThemeColor = isThemeColor;
|
|
341
|
-
exports.isViewRuleAutoLayout = isViewRuleAutoLayout;
|
|
342
|
-
exports.isViewRuleGlobalPredicateRef = isViewRuleGlobalPredicateRef;
|
|
343
|
-
exports.isViewRuleGlobalStyle = isViewRuleGlobalStyle;
|
|
344
|
-
exports.isViewRuleGroup = isViewRuleGroup;
|
|
345
|
-
exports.isViewRulePredicate = isViewRulePredicate;
|
|
346
|
-
exports.isViewRuleStyle = isViewRuleStyle;
|
|
347
|
-
exports.isWildcard = isWildcard;
|
|
348
|
-
exports.n = n;
|
|
349
|
-
exports.nonNullable = nonNullable;
|
|
350
|
-
exports.nonexhaustive = nonexhaustive;
|
|
351
|
-
exports.o = o;
|
|
352
|
-
exports.u = u;
|
|
353
|
-
exports.whereOperatorAsPredicate = whereOperatorAsPredicate;
|
package/dist/types/index.cjs
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const types_index = require('../shared/core.DIYZvpVg.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.AsFqn = types_index.AsFqn;
|
|
8
|
-
exports.BorderStyles = types_index.BorderStyles;
|
|
9
|
-
Object.defineProperty(exports, "ComputedNode", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return types_index.ComputedNode; }
|
|
12
|
-
});
|
|
13
|
-
exports.DefaultArrowType = types_index.DefaultArrowType;
|
|
14
|
-
exports.DefaultElementShape = types_index.DefaultElementShape;
|
|
15
|
-
exports.DefaultLineStyle = types_index.DefaultLineStyle;
|
|
16
|
-
exports.DefaultRelationshipColor = types_index.DefaultRelationshipColor;
|
|
17
|
-
exports.DefaultThemeColor = types_index.DefaultThemeColor;
|
|
18
|
-
Object.defineProperty(exports, "DiagramNode", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return types_index.DiagramNode; }
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "ElementKind", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return types_index.ElementKind; }
|
|
25
|
-
});
|
|
26
|
-
exports.ElementShapes = types_index.ElementShapes;
|
|
27
|
-
exports.StepEdgeId = types_index.StepEdgeId;
|
|
28
|
-
exports.extractStep = types_index.extractStep;
|
|
29
|
-
exports.getBBoxCenter = types_index.getBBoxCenter;
|
|
30
|
-
exports.getParallelStepsPrefix = types_index.getParallelStepsPrefix;
|
|
31
|
-
exports.isAndOperator = types_index.isAndOperator;
|
|
32
|
-
exports.isAutoLayoutDirection = types_index.isAutoLayoutDirection;
|
|
33
|
-
exports.isComputedDynamicView = types_index.isComputedDynamicView;
|
|
34
|
-
exports.isComputedElementView = types_index.isComputedElementView;
|
|
35
|
-
exports.isCustomElement = types_index.isCustomElement;
|
|
36
|
-
exports.isCustomRelationExpr = types_index.isCustomRelationExpr;
|
|
37
|
-
exports.isDynamicView = types_index.isDynamicView;
|
|
38
|
-
exports.isDynamicViewIncludeRule = types_index.isDynamicViewIncludeRule;
|
|
39
|
-
exports.isDynamicViewParallelSteps = types_index.isDynamicViewParallelSteps;
|
|
40
|
-
exports.isElement = types_index.isElement;
|
|
41
|
-
exports.isElementKindExpr = types_index.isElementKindExpr;
|
|
42
|
-
exports.isElementPredicateExpr = types_index.isElementPredicateExpr;
|
|
43
|
-
exports.isElementRef = types_index.isElementRef;
|
|
44
|
-
exports.isElementTagExpr = types_index.isElementTagExpr;
|
|
45
|
-
exports.isElementView = types_index.isElementView;
|
|
46
|
-
exports.isElementWhere = types_index.isElementWhere;
|
|
47
|
-
exports.isExpandedElementExpr = types_index.isExpandedElementExpr;
|
|
48
|
-
exports.isExtendsElementView = types_index.isExtendsElementView;
|
|
49
|
-
exports.isInOut = types_index.isInOut;
|
|
50
|
-
exports.isIncoming = types_index.isIncoming;
|
|
51
|
-
exports.isKindEqual = types_index.isKindEqual;
|
|
52
|
-
exports.isNotOperator = types_index.isNotOperator;
|
|
53
|
-
exports.isOrOperator = types_index.isOrOperator;
|
|
54
|
-
exports.isOutgoing = types_index.isOutgoing;
|
|
55
|
-
exports.isRelation = types_index.isRelation;
|
|
56
|
-
exports.isRelationExpression = types_index.isRelationExpression;
|
|
57
|
-
exports.isRelationPredicateExpr = types_index.isRelationPredicateExpr;
|
|
58
|
-
exports.isRelationWhere = types_index.isRelationWhere;
|
|
59
|
-
exports.isScopedElementView = types_index.isScopedElementView;
|
|
60
|
-
exports.isStepEdgeId = types_index.isStepEdgeId;
|
|
61
|
-
exports.isTagEqual = types_index.isTagEqual;
|
|
62
|
-
exports.isThemeColor = types_index.isThemeColor;
|
|
63
|
-
exports.isViewRuleAutoLayout = types_index.isViewRuleAutoLayout;
|
|
64
|
-
exports.isViewRuleGlobalPredicateRef = types_index.isViewRuleGlobalPredicateRef;
|
|
65
|
-
exports.isViewRuleGlobalStyle = types_index.isViewRuleGlobalStyle;
|
|
66
|
-
exports.isViewRuleGroup = types_index.isViewRuleGroup;
|
|
67
|
-
exports.isViewRulePredicate = types_index.isViewRulePredicate;
|
|
68
|
-
exports.isViewRuleStyle = types_index.isViewRuleStyle;
|
|
69
|
-
exports.isWildcard = types_index.isWildcard;
|
|
70
|
-
exports.whereOperatorAsPredicate = types_index.whereOperatorAsPredicate;
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { aG as AndOperator, G as AsFqn, A as AutoLayoutDirection, bF as BBox, bc as BasicElementView, bb as BasicView, B as BorderStyle, J as BorderStyles, C as Color, aS as ColorLiteral, bC as ComputedDynamicView, q as ComputedEdge, bB as ComputedElementView, r as ComputedLikeC4Model, n as ComputedNode, l as ComputedView, y as CustomColor, bo as CustomColorDefinitions, g as CustomElementExpr, h as CustomRelationExpr, aP as DefaultArrowType, O as DefaultElementShape, aO as DefaultLineStyle, aQ as DefaultRelationshipColor, M as DefaultThemeColor, v as DiagramEdge, u as DiagramNode, D as DiagramView, bm as DynamicView, bj as DynamicViewIncludeRule, bh as DynamicViewParallelSteps, bl as DynamicViewRule, bg as DynamicViewStep, bi as DynamicViewStepOrParallel, k as EdgeId, d as Element, a8 as ElementExpression, p as ElementKind, a4 as ElementKindExpr, E as ElementKindSpecification, Y as ElementKindSpecificationStyle, bJ as ElementNotation, ac as ElementPredicateExpression, Z as ElementRefExpr, a as ElementShape, K as ElementShapes, Q as ElementStyle, a6 as ElementTagExpr, aU as ElementThemeColorValues, aV as ElementThemeColors, bf as ElementView, aa as ElementWhereExpr, az as EqualOperator, $ as ExpandedElementExpr, f as Expression, be as ExtendsElementView, aL as Filterable, F as Fqn, av as GlobalDynamicPredicates, at as GlobalPredicateId, au as GlobalPredicates, aw as GlobalStyleID, ax as GlobalStyles, H as HexColorLiteral, I as IconUrl, ag as InOutExpr, ai as IncomingExpr, aC as KindEqual, s as LayoutedLikeC4Model, aY as LikeC4Theme, L as LikeC4View, U as Link, ay as ModelGlobals, o as NodeId, N as NonEmptyArray, x as NonEmptyReadonlyArray, aE as NotOperator, aI as OrOperator, ak as OutgoingExpr, aN as OverviewGraph, P as ParsedLikeC4Model, z as Point, e as Relation, ae as RelationExpr, am as RelationExpression, i as RelationID, ar as RelationPredicateExpression, ao as RelationWhereExpr, b as RelationshipArrowType, t as RelationshipKind, R as RelationshipKindSpecification, c as RelationshipLineType, aW as RelationshipThemeColorValues, aX as RelationshipThemeColors, bd as ScopedElementView, bu as StepEdgeId, bt as StepEdgeIdLiteral, m as Tag, aA as TagEqual, S as TagSpec, aR as ThemeColor, T as ThemeColorValues, W as TypedElement, bA as ViewAutoLayout, bI as ViewChange, j as ViewID, bH as ViewManualLayout, ba as ViewRule, b6 as ViewRuleAutoLayout, a$ as ViewRuleGlobalPredicateRef, b2 as ViewRuleGlobalStyle, b8 as ViewRuleGroup, aZ as ViewRulePredicate, V as ViewRuleStyle, b4 as ViewRuleStyleOrGlobalRef, by as ViewWithHash, bz as ViewWithNotation, aK as WhereOperator, a2 as WildcardExpr, X as XYPoint, bw as extractStep, bG as getBBoxCenter, bx as getParallelStepsPrefix, aH as isAndOperator, b5 as isAutoLayoutDirection, bD as isComputedDynamicView, bE as isComputedElementView, a1 as isCustomElement, aq as isCustomRelationExpr, bp as isDynamicView, bk as isDynamicViewIncludeRule, bn as isDynamicViewParallelSteps, a9 as isElement, a5 as isElementKindExpr, ad as isElementPredicateExpr, _ as isElementRef, a7 as isElementTagExpr, bq as isElementView, ab as isElementWhere, a0 as isExpandedElementExpr, br as isExtendsElementView, ah as isInOut, aj as isIncoming, aD as isKindEqual, aF as isNotOperator, aJ as isOrOperator, al as isOutgoing, af as isRelation, an as isRelationExpression, as as isRelationPredicateExpr, ap as isRelationWhere, bs as isScopedElementView, bv as isStepEdgeId, aB as isTagEqual, aT as isThemeColor, b7 as isViewRuleAutoLayout, b0 as isViewRuleGlobalPredicateRef, b3 as isViewRuleGlobalStyle, b9 as isViewRuleGroup, a_ as isViewRulePredicate, b1 as isViewRuleStyle, a3 as isWildcard, aM as whereOperatorAsPredicate } from '../shared/core.CoLQkcYL.cjs';
|
|
2
|
-
import 'type-fest';
|