likec4 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__app__/src/likec4.js +11785 -12231
- package/__app__/src/main.js +185 -129
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +38526 -17009
- package/__app__/src/webcomponent.js +68 -0
- package/config/package.json +2 -2
- package/config/schema.json +575 -0
- package/dist/cli/index.mjs +573 -569
- package/dist/config/index.d.mts +4 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +47 -4
- package/dist/model/index.mjs +1 -1
- package/dist/shared/likec4.B5Q51Z1F.mjs +543 -0
- package/dist/shared/likec4.BCSBNe4z.d.mts +6808 -0
- package/dist/shared/likec4.CB2-Uaub.mjs +47 -0
- package/dist/shared/likec4.CJVbsoPD.mjs +256 -0
- package/dist/shared/{likec4.DDO3vjMr.d.mts → likec4.CaOUU1HJ.d.mts} +292 -201
- package/dist/shared/likec4.DOUP9ptn.mjs +1 -0
- package/dist/shared/{likec4.C8C0fF8a.mjs → likec4.DO_7oUns.mjs} +1 -1
- package/dist/shared/likec4.DdxVkEIS.mjs +4038 -0
- package/dist/vite-plugin/index.d.mts +4 -3
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.mjs +3 -3
- package/icons/all/package.json +4 -0
- package/model/builder/package.json +4 -0
- package/model/package.json +4 -0
- package/package.json +42 -42
- package/react/index.d.ts +6655 -0
- package/react/index.js +48628 -0
- package/react/package.json +3 -2
- package/vite-plugin/package.json +2 -2
- package/vite-plugin-modules.d.ts +5 -5
- package/__app__/src/webcomponent.tsx +0 -81
- package/dist/shared/likec4.CdNNo2L4.mjs +0 -1
- package/dist/shared/likec4.CxmGAh_J.mjs +0 -144
- package/dist/shared/likec4.DX1wM3Or.d.mts +0 -1704
- package/dist/shared/likec4.P9UC3Wd_.mjs +0 -257
- package/dist/shared/likec4.hpe1blK6.mjs +0 -4173
- package/react/index.d.mts +0 -6558
- package/react/index.mjs +0 -185
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Fqn, EdgeId, AnyAux, aux, ComputedView,
|
|
1
|
+
import * as _likec4_core from '@likec4/core';
|
|
2
|
+
import { Fqn, EdgeId, AnyAux, aux, ComputedView, LikeC4Styles, DiagramView, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
|
|
3
|
+
import * as type_fest from 'type-fest';
|
|
3
4
|
import { Tagged, ValueOf, ConditionalPick, Writable, Simplify, MergeExclusive } from 'type-fest';
|
|
4
|
-
import { U as URI$1, L as LikeC4ProjectConfig } from './likec4.
|
|
5
|
+
import { U as URI$1, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput } from './likec4.BCSBNe4z.mjs';
|
|
5
6
|
import { LikeC4Model } from '@likec4/core/model';
|
|
6
|
-
import
|
|
7
|
+
import * as c4 from '@likec4/core/types';
|
|
8
|
+
import { scalar, ProjectId as ProjectId$1, Fqn as Fqn$1 } from '@likec4/core/types';
|
|
7
9
|
import { MultiMap as MultiMap$1, DefaultWeakMap } from '@likec4/core/utils';
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -11946,7 +11948,7 @@ interface GraphvizPort extends Disposable {
|
|
|
11946
11948
|
}
|
|
11947
11949
|
type LayoutTaskParams<A extends aux.Any = aux.Any> = {
|
|
11948
11950
|
view: ComputedView<A>;
|
|
11949
|
-
|
|
11951
|
+
styles: LikeC4Styles;
|
|
11950
11952
|
};
|
|
11951
11953
|
type LayoutResult<A extends aux.Any = aux.Any> = {
|
|
11952
11954
|
dot: DotSource;
|
|
@@ -14095,6 +14097,8 @@ type DynamicViewProperty = DynamicViewDisplayVariantProperty | ViewProperty;
|
|
|
14095
14097
|
declare const DynamicViewProperty = "DynamicViewProperty";
|
|
14096
14098
|
type DynamicViewRule = DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleAutoLayout | ViewRuleStyleOrGlobalRef;
|
|
14097
14099
|
declare const DynamicViewRule = "DynamicViewRule";
|
|
14100
|
+
type DynamicViewStep = DynamicStepChain | DynamicStepSingle;
|
|
14101
|
+
declare const DynamicViewStep = "DynamicViewStep";
|
|
14098
14102
|
type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
|
|
14099
14103
|
declare const ElementProperty = "ElementProperty";
|
|
14100
14104
|
type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
|
|
@@ -14162,6 +14166,16 @@ type WhereRelationExpression = WhereBinaryExpression | WhereRelation | WhereRela
|
|
|
14162
14166
|
declare const WhereRelationExpression = "WhereRelationExpression";
|
|
14163
14167
|
type WhereTagEqual = WhereElementTag | WhereRelationParticipantTag | WhereRelationTag;
|
|
14164
14168
|
declare const WhereTagEqual = "WhereTagEqual";
|
|
14169
|
+
interface AbstractDynamicStep extends AstNode {
|
|
14170
|
+
readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
|
|
14171
|
+
readonly $type: 'AbstractDynamicStep' | 'DynamicStepChain' | 'DynamicStepSingle';
|
|
14172
|
+
custom?: CustomRelationProperties;
|
|
14173
|
+
dotKind?: RelationKindDotRef;
|
|
14174
|
+
kind?: Reference<RelationshipKind>;
|
|
14175
|
+
target: ElementRef;
|
|
14176
|
+
title?: string;
|
|
14177
|
+
}
|
|
14178
|
+
declare const AbstractDynamicStep = "AbstractDynamicStep";
|
|
14165
14179
|
interface ArrowProperty extends AstNode {
|
|
14166
14180
|
readonly $container: CustomRelationProperties | RelationStyleProperty | SpecificationRelationshipKind;
|
|
14167
14181
|
readonly $type: 'ArrowProperty';
|
|
@@ -14197,7 +14211,7 @@ interface CustomElementProperties extends AstNode {
|
|
|
14197
14211
|
}
|
|
14198
14212
|
declare const CustomElementProperties = "CustomElementProperties";
|
|
14199
14213
|
interface CustomRelationProperties extends AstNode {
|
|
14200
|
-
readonly $container:
|
|
14214
|
+
readonly $container: AbstractDynamicStep | RelationExprWith;
|
|
14201
14215
|
readonly $type: 'CustomRelationProperties';
|
|
14202
14216
|
props: Array<NotationProperty | NotesProperty | RelationNavigateToProperty | RelationStringProperty | RelationshipStyleProperty>;
|
|
14203
14217
|
}
|
|
@@ -14207,6 +14221,7 @@ interface DeployedInstance extends AstNode {
|
|
|
14207
14221
|
readonly $type: 'DeployedInstance';
|
|
14208
14222
|
body?: DeployedInstanceBody;
|
|
14209
14223
|
name?: Id;
|
|
14224
|
+
summary?: string;
|
|
14210
14225
|
target: ElementRef;
|
|
14211
14226
|
title?: string;
|
|
14212
14227
|
}
|
|
@@ -14225,6 +14240,7 @@ interface DeploymentNode extends AstNode {
|
|
|
14225
14240
|
body?: DeploymentNodeBody;
|
|
14226
14241
|
kind: Reference<DeploymentNodeKind>;
|
|
14227
14242
|
name: Id;
|
|
14243
|
+
summary?: string;
|
|
14228
14244
|
title?: string;
|
|
14229
14245
|
}
|
|
14230
14246
|
declare const DeploymentNode = "DeploymentNode";
|
|
@@ -14346,18 +14362,6 @@ interface DynamicViewRef extends AstNode {
|
|
|
14346
14362
|
view: Reference<DynamicView>;
|
|
14347
14363
|
}
|
|
14348
14364
|
declare const DynamicViewRef = "DynamicViewRef";
|
|
14349
|
-
interface DynamicViewStep extends AstNode {
|
|
14350
|
-
readonly $container: DynamicViewBody | DynamicViewParallelSteps;
|
|
14351
|
-
readonly $type: 'DynamicViewStep';
|
|
14352
|
-
custom?: CustomRelationProperties;
|
|
14353
|
-
dotKind?: RelationKindDotRef;
|
|
14354
|
-
isBackward: boolean;
|
|
14355
|
-
kind?: Reference<RelationshipKind>;
|
|
14356
|
-
source: ElementRef;
|
|
14357
|
-
target: ElementRef;
|
|
14358
|
-
title?: string;
|
|
14359
|
-
}
|
|
14360
|
-
declare const DynamicViewStep = "DynamicViewStep";
|
|
14361
14365
|
interface Element extends AstNode {
|
|
14362
14366
|
readonly $container: ElementBody | ExtendElementBody | Model;
|
|
14363
14367
|
readonly $type: 'Element';
|
|
@@ -14389,7 +14393,7 @@ interface ElementKindExpression extends AstNode {
|
|
|
14389
14393
|
}
|
|
14390
14394
|
declare const ElementKindExpression = "ElementKindExpression";
|
|
14391
14395
|
interface ElementRef extends AstNode {
|
|
14392
|
-
readonly $container: DeployedInstance |
|
|
14396
|
+
readonly $container: AbstractDynamicStep | DeployedInstance | DynamicStepSingle | ElementView;
|
|
14393
14397
|
readonly $type: 'ElementRef';
|
|
14394
14398
|
modelElement: FqnRef;
|
|
14395
14399
|
}
|
|
@@ -14397,7 +14401,7 @@ declare const ElementRef = "ElementRef";
|
|
|
14397
14401
|
interface ElementStringProperty extends AstNode {
|
|
14398
14402
|
readonly $container: CustomElementProperties | DeployedInstanceBody | DeploymentNodeBody | ElementBody;
|
|
14399
14403
|
readonly $type: 'ElementStringProperty';
|
|
14400
|
-
key: 'description' | 'technology' | 'title';
|
|
14404
|
+
key: 'description' | 'summary' | 'technology' | 'title';
|
|
14401
14405
|
value: MarkdownOrString;
|
|
14402
14406
|
}
|
|
14403
14407
|
declare const ElementStringProperty = "ElementStringProperty";
|
|
@@ -14761,7 +14765,7 @@ interface RelationExprWith extends AstNode {
|
|
|
14761
14765
|
}
|
|
14762
14766
|
declare const RelationExprWith = "RelationExprWith";
|
|
14763
14767
|
interface RelationKindDotRef extends AstNode {
|
|
14764
|
-
readonly $container:
|
|
14768
|
+
readonly $container: AbstractDynamicStep | DeploymentRelation | OutgoingRelationExpr | Relation;
|
|
14765
14769
|
readonly $type: 'RelationKindDotRef';
|
|
14766
14770
|
kind: Reference<RelationshipKind>;
|
|
14767
14771
|
}
|
|
@@ -14842,7 +14846,7 @@ declare const SpecificationElementKind = "SpecificationElementKind";
|
|
|
14842
14846
|
interface SpecificationElementStringProperty extends AstNode {
|
|
14843
14847
|
readonly $container: SpecificationDeploymentNodeKind | SpecificationElementKind;
|
|
14844
14848
|
readonly $type: 'SpecificationElementStringProperty';
|
|
14845
|
-
key: 'description' | 'notation' | 'technology' | 'title';
|
|
14849
|
+
key: 'description' | 'notation' | 'summary' | 'technology' | 'title';
|
|
14846
14850
|
value: MarkdownOrString;
|
|
14847
14851
|
}
|
|
14848
14852
|
declare const SpecificationElementStringProperty = "SpecificationElementStringProperty";
|
|
@@ -15049,7 +15053,21 @@ interface WildcardExpression extends AstNode {
|
|
|
15049
15053
|
isWildcard: boolean;
|
|
15050
15054
|
}
|
|
15051
15055
|
declare const WildcardExpression = "WildcardExpression";
|
|
15056
|
+
interface DynamicStepChain extends AbstractDynamicStep {
|
|
15057
|
+
readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
|
|
15058
|
+
readonly $type: 'DynamicStepChain';
|
|
15059
|
+
source: DynamicStepChain | DynamicStepSingle;
|
|
15060
|
+
}
|
|
15061
|
+
declare const DynamicStepChain = "DynamicStepChain";
|
|
15062
|
+
interface DynamicStepSingle extends AbstractDynamicStep {
|
|
15063
|
+
readonly $container: DynamicStepChain | DynamicViewBody | DynamicViewParallelSteps;
|
|
15064
|
+
readonly $type: 'DynamicStepSingle';
|
|
15065
|
+
isBackward: boolean;
|
|
15066
|
+
source: ElementRef;
|
|
15067
|
+
}
|
|
15068
|
+
declare const DynamicStepSingle = "DynamicStepSingle";
|
|
15052
15069
|
type LikeC4AstType = {
|
|
15070
|
+
AbstractDynamicStep: AbstractDynamicStep;
|
|
15053
15071
|
ArrowProperty: ArrowProperty;
|
|
15054
15072
|
BorderProperty: BorderProperty;
|
|
15055
15073
|
ColorLiteral: ColorLiteral;
|
|
@@ -15072,6 +15090,8 @@ type LikeC4AstType = {
|
|
|
15072
15090
|
DeploymentViewRulePredicate: DeploymentViewRulePredicate;
|
|
15073
15091
|
DeploymentViewRuleStyle: DeploymentViewRuleStyle;
|
|
15074
15092
|
DirectedRelationExpr: DirectedRelationExpr;
|
|
15093
|
+
DynamicStepChain: DynamicStepChain;
|
|
15094
|
+
DynamicStepSingle: DynamicStepSingle;
|
|
15075
15095
|
DynamicView: DynamicView;
|
|
15076
15096
|
DynamicViewBody: DynamicViewBody;
|
|
15077
15097
|
DynamicViewDisplayVariantProperty: DynamicViewDisplayVariantProperty;
|
|
@@ -15219,7 +15239,7 @@ declare class LikeC4DocumentValidator extends DefaultDocumentValidator {
|
|
|
15219
15239
|
|
|
15220
15240
|
type Guard<N extends AstNode> = (n: AstNode) => n is N;
|
|
15221
15241
|
type Guarded<G> = G extends Guard<infer N> ? N : never;
|
|
15222
|
-
declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate |
|
|
15242
|
+
declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | DynamicStepChain | DynamicStepSingle | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | DynamicViewParallelSteps | ElementRef | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
|
|
15223
15243
|
type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
|
|
15224
15244
|
declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
|
|
15225
15245
|
isValid: (n: ValidatableAstNode) => boolean;
|
|
@@ -15230,154 +15250,155 @@ type IsValidFn = ChecksFromDiagnostics['isValid'];
|
|
|
15230
15250
|
|
|
15231
15251
|
declare module 'langium' {
|
|
15232
15252
|
interface LangiumDocument {
|
|
15233
|
-
likec4ProjectId?:
|
|
15253
|
+
likec4ProjectId?: _likec4_core.ProjectId;
|
|
15234
15254
|
}
|
|
15235
15255
|
interface AstNodeDescription {
|
|
15236
|
-
likec4ProjectId?:
|
|
15256
|
+
likec4ProjectId?: _likec4_core.ProjectId;
|
|
15237
15257
|
}
|
|
15238
15258
|
}
|
|
15239
15259
|
declare const idattr: unique symbol;
|
|
15240
15260
|
declare module './generated/ast' {
|
|
15241
15261
|
interface Element {
|
|
15242
|
-
[idattr]?:
|
|
15262
|
+
[idattr]?: _likec4_core.Fqn | undefined;
|
|
15243
15263
|
}
|
|
15244
15264
|
interface ElementView {
|
|
15245
|
-
[idattr]?:
|
|
15265
|
+
[idattr]?: _likec4_core.ViewId | undefined;
|
|
15246
15266
|
}
|
|
15247
15267
|
interface DynamicView {
|
|
15248
|
-
[idattr]?:
|
|
15268
|
+
[idattr]?: _likec4_core.ViewId | undefined;
|
|
15249
15269
|
}
|
|
15250
15270
|
interface DeploymentView {
|
|
15251
|
-
[idattr]?:
|
|
15271
|
+
[idattr]?: _likec4_core.ViewId | undefined;
|
|
15252
15272
|
}
|
|
15253
15273
|
interface DeploymentNode {
|
|
15254
|
-
[idattr]?:
|
|
15274
|
+
[idattr]?: _likec4_core.Fqn | undefined;
|
|
15255
15275
|
}
|
|
15256
15276
|
interface DeployedInstance {
|
|
15257
|
-
[idattr]?:
|
|
15277
|
+
[idattr]?: _likec4_core.Fqn | undefined;
|
|
15258
15278
|
}
|
|
15259
15279
|
}
|
|
15260
15280
|
type ParsedElementStyle = {
|
|
15261
|
-
shape?:
|
|
15262
|
-
icon?:
|
|
15263
|
-
color?:
|
|
15264
|
-
border?:
|
|
15281
|
+
shape?: _likec4_core.ElementShape;
|
|
15282
|
+
icon?: _likec4_core.IconUrl;
|
|
15283
|
+
color?: _likec4_core.Color;
|
|
15284
|
+
border?: _likec4_core.BorderStyle;
|
|
15265
15285
|
opacity?: number;
|
|
15266
15286
|
multiple?: boolean;
|
|
15267
|
-
size?:
|
|
15268
|
-
padding?:
|
|
15269
|
-
textSize?:
|
|
15287
|
+
size?: _likec4_core.ShapeSize;
|
|
15288
|
+
padding?: _likec4_core.SpacingSize;
|
|
15289
|
+
textSize?: _likec4_core.TextSize;
|
|
15270
15290
|
};
|
|
15271
15291
|
interface ParsedAstSpecification {
|
|
15272
|
-
tags: Record<
|
|
15292
|
+
tags: Record<_likec4_core.Tag, {
|
|
15273
15293
|
astPath: string;
|
|
15274
|
-
color?:
|
|
15294
|
+
color?: _likec4_core.ColorLiteral;
|
|
15275
15295
|
}>;
|
|
15276
|
-
elements: Record<
|
|
15277
|
-
relationships: Record<
|
|
15296
|
+
elements: Record<_likec4_core.ElementKind, _likec4_core.ElementSpecification>;
|
|
15297
|
+
relationships: Record<_likec4_core.RelationshipKind, {
|
|
15278
15298
|
technology?: string;
|
|
15279
15299
|
notation?: string;
|
|
15280
|
-
color?:
|
|
15281
|
-
line?:
|
|
15282
|
-
head?:
|
|
15283
|
-
tail?:
|
|
15300
|
+
color?: _likec4_core.Color;
|
|
15301
|
+
line?: _likec4_core.RelationshipLineType;
|
|
15302
|
+
head?: _likec4_core.RelationshipArrowType;
|
|
15303
|
+
tail?: _likec4_core.RelationshipArrowType;
|
|
15284
15304
|
}>;
|
|
15285
|
-
colors: Record<
|
|
15286
|
-
color:
|
|
15305
|
+
colors: Record<_likec4_core.CustomColor, {
|
|
15306
|
+
color: _likec4_core.ColorLiteral;
|
|
15287
15307
|
}>;
|
|
15288
|
-
deployments: Record<
|
|
15308
|
+
deployments: Record<_likec4_core.DeploymentKind, _likec4_core.ElementSpecification>;
|
|
15289
15309
|
}
|
|
15290
15310
|
interface ParsedAstElement {
|
|
15291
|
-
id:
|
|
15311
|
+
id: _likec4_core.Fqn;
|
|
15292
15312
|
astPath: string;
|
|
15293
|
-
kind:
|
|
15313
|
+
kind: _likec4_core.ElementKind;
|
|
15294
15314
|
title: string;
|
|
15295
|
-
|
|
15315
|
+
summary?: _likec4_core.MarkdownOrString;
|
|
15316
|
+
description?: _likec4_core.MarkdownOrString;
|
|
15296
15317
|
technology?: string;
|
|
15297
|
-
tags?:
|
|
15298
|
-
links?:
|
|
15318
|
+
tags?: _likec4_core.NonEmptyArray<_likec4_core.Tag>;
|
|
15319
|
+
links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
|
|
15299
15320
|
style: ParsedElementStyle;
|
|
15300
15321
|
metadata?: {
|
|
15301
15322
|
[key: string]: string;
|
|
15302
15323
|
};
|
|
15303
15324
|
}
|
|
15304
15325
|
interface ParsedAstExtend {
|
|
15305
|
-
id:
|
|
15326
|
+
id: _likec4_core.Fqn;
|
|
15306
15327
|
astPath: string;
|
|
15307
|
-
tags
|
|
15308
|
-
links
|
|
15328
|
+
tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
|
|
15329
|
+
links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
|
|
15309
15330
|
metadata?: {
|
|
15310
15331
|
[key: string]: string;
|
|
15311
15332
|
};
|
|
15312
15333
|
}
|
|
15313
15334
|
interface ParsedAstRelation {
|
|
15314
|
-
id:
|
|
15335
|
+
id: _likec4_core.RelationId;
|
|
15315
15336
|
astPath: string;
|
|
15316
|
-
source:
|
|
15317
|
-
target:
|
|
15318
|
-
kind?:
|
|
15319
|
-
tags?:
|
|
15337
|
+
source: _likec4_core.FqnRef.ModelRef;
|
|
15338
|
+
target: _likec4_core.FqnRef.ModelRef;
|
|
15339
|
+
kind?: _likec4_core.RelationshipKind;
|
|
15340
|
+
tags?: _likec4_core.NonEmptyArray<_likec4_core.Tag>;
|
|
15320
15341
|
title: string;
|
|
15321
|
-
description?:
|
|
15342
|
+
description?: _likec4_core.MarkdownOrString;
|
|
15322
15343
|
technology?: string;
|
|
15323
|
-
color?:
|
|
15324
|
-
line?:
|
|
15325
|
-
head?:
|
|
15326
|
-
tail?:
|
|
15327
|
-
links?:
|
|
15328
|
-
navigateTo?:
|
|
15344
|
+
color?: _likec4_core.Color;
|
|
15345
|
+
line?: _likec4_core.RelationshipLineType;
|
|
15346
|
+
head?: _likec4_core.RelationshipArrowType;
|
|
15347
|
+
tail?: _likec4_core.RelationshipArrowType;
|
|
15348
|
+
links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
|
|
15349
|
+
navigateTo?: _likec4_core.ViewId;
|
|
15329
15350
|
metadata?: {
|
|
15330
15351
|
[key: string]: string;
|
|
15331
15352
|
};
|
|
15332
15353
|
}
|
|
15333
15354
|
type ParsedAstDeployment = Simplify<MergeExclusive<ParsedAstDeployment.Node, ParsedAstDeployment.Instance>>;
|
|
15334
15355
|
declare namespace ParsedAstDeployment {
|
|
15335
|
-
type Node =
|
|
15336
|
-
type Instance = Omit<
|
|
15337
|
-
readonly element:
|
|
15356
|
+
type Node = _likec4_core.DeploymentNode;
|
|
15357
|
+
type Instance = Omit<_likec4_core.DeployedInstance, 'element'> & {
|
|
15358
|
+
readonly element: _likec4_core.FqnRef.ModelRef;
|
|
15338
15359
|
};
|
|
15339
15360
|
}
|
|
15340
|
-
type ParsedAstDeploymentRelation =
|
|
15361
|
+
type ParsedAstDeploymentRelation = _likec4_core.DeploymentRelationship & {
|
|
15341
15362
|
astPath: string;
|
|
15342
15363
|
};
|
|
15343
|
-
type ParsedAstGlobals = Writable<
|
|
15364
|
+
type ParsedAstGlobals = Writable<_likec4_core.ModelGlobals>;
|
|
15344
15365
|
interface ParsedAstElementView {
|
|
15345
|
-
id:
|
|
15346
|
-
viewOf?:
|
|
15347
|
-
extends?:
|
|
15366
|
+
id: _likec4_core.ViewId;
|
|
15367
|
+
viewOf?: _likec4_core.Fqn;
|
|
15368
|
+
extends?: _likec4_core.ViewId;
|
|
15348
15369
|
astPath: string;
|
|
15349
15370
|
title: string | null;
|
|
15350
|
-
description:
|
|
15351
|
-
tags:
|
|
15352
|
-
links:
|
|
15353
|
-
rules:
|
|
15354
|
-
manualLayout?:
|
|
15371
|
+
description: _likec4_core.MarkdownOrString | null;
|
|
15372
|
+
tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
|
|
15373
|
+
links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
|
|
15374
|
+
rules: _likec4_core.ElementViewRule[];
|
|
15375
|
+
manualLayout?: _likec4_core.ViewManualLayout;
|
|
15355
15376
|
}
|
|
15356
15377
|
interface ParsedAstDynamicView {
|
|
15357
|
-
id:
|
|
15378
|
+
id: _likec4_core.ViewId;
|
|
15358
15379
|
astPath: string;
|
|
15359
15380
|
title: string | null;
|
|
15360
|
-
description:
|
|
15361
|
-
tags:
|
|
15362
|
-
links:
|
|
15363
|
-
steps:
|
|
15364
|
-
rules: Array<
|
|
15365
|
-
variant:
|
|
15366
|
-
manualLayout?:
|
|
15381
|
+
description: _likec4_core.MarkdownOrString | null;
|
|
15382
|
+
tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
|
|
15383
|
+
links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
|
|
15384
|
+
steps: _likec4_core.DynamicViewStep[];
|
|
15385
|
+
rules: Array<_likec4_core.DynamicViewRule>;
|
|
15386
|
+
variant: _likec4_core.DynamicViewDisplayVariant | undefined;
|
|
15387
|
+
manualLayout?: _likec4_core.ViewManualLayout;
|
|
15367
15388
|
}
|
|
15368
15389
|
interface ParsedAstDeploymentView {
|
|
15369
|
-
id:
|
|
15390
|
+
id: _likec4_core.ViewId;
|
|
15370
15391
|
astPath: string;
|
|
15371
15392
|
title: string | null;
|
|
15372
|
-
description:
|
|
15373
|
-
tags:
|
|
15374
|
-
links:
|
|
15375
|
-
rules: Array<
|
|
15393
|
+
description: _likec4_core.MarkdownOrString | null;
|
|
15394
|
+
tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
|
|
15395
|
+
links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
|
|
15396
|
+
rules: Array<_likec4_core.DeploymentViewRule>;
|
|
15376
15397
|
}
|
|
15377
15398
|
type ParsedAstView = ParsedAstElementView | ParsedAstDynamicView | ParsedAstDeploymentView;
|
|
15378
15399
|
interface AstNodeDescriptionWithFqn extends AstNodeDescription {
|
|
15379
|
-
likec4ProjectId:
|
|
15380
|
-
id:
|
|
15400
|
+
likec4ProjectId: _likec4_core.ProjectId;
|
|
15401
|
+
id: _likec4_core.Fqn;
|
|
15381
15402
|
}
|
|
15382
15403
|
type LikeC4AstNode = ValueOf<ConditionalPick<LikeC4AstType, AstNode>>;
|
|
15383
15404
|
type LikeC4DocumentDiagnostic = Diagnostic & DiagnosticInfo<LikeC4AstNode>;
|
|
@@ -15392,14 +15413,14 @@ interface LikeC4DocumentProps {
|
|
|
15392
15413
|
c4Views?: ParsedAstView[];
|
|
15393
15414
|
c4Deployments?: ParsedAstDeployment[];
|
|
15394
15415
|
c4DeploymentRelations?: ParsedAstDeploymentRelation[];
|
|
15395
|
-
c4Imports?: MultiMap$1<
|
|
15416
|
+
c4Imports?: MultiMap$1<_likec4_core.ProjectId, _likec4_core.Fqn, Set<_likec4_core.Fqn>>;
|
|
15396
15417
|
}
|
|
15397
15418
|
type LikeC4GrammarDocument = Omit<LangiumDocument<LikeC4Grammar>, 'diagnostics'>;
|
|
15398
15419
|
interface LikeC4LangiumDocument extends LikeC4GrammarDocument, LikeC4DocumentProps {
|
|
15399
|
-
likec4ProjectId:
|
|
15420
|
+
likec4ProjectId: _likec4_core.ProjectId;
|
|
15400
15421
|
}
|
|
15401
15422
|
interface ParsedLikeC4LangiumDocument extends LikeC4GrammarDocument, Required<LikeC4DocumentProps> {
|
|
15402
|
-
likec4ProjectId:
|
|
15423
|
+
likec4ProjectId: _likec4_core.ProjectId;
|
|
15403
15424
|
}
|
|
15404
15425
|
|
|
15405
15426
|
declare class LikeC4NameProvider extends DefaultNameProvider {
|
|
@@ -15454,14 +15475,14 @@ declare class LangiumDocuments extends DefaultLangiumDocuments {
|
|
|
15454
15475
|
type ProjectFolder = Tagged<string, 'ProjectFolder'>;
|
|
15455
15476
|
declare function ProjectFolder(folder: URI$1 | string): ProjectFolder;
|
|
15456
15477
|
interface ProjectData {
|
|
15457
|
-
id: ProjectId;
|
|
15478
|
+
id: scalar.ProjectId;
|
|
15458
15479
|
config: LikeC4ProjectConfig;
|
|
15459
15480
|
folder: ProjectFolder;
|
|
15460
15481
|
folderUri: URI$1;
|
|
15461
15482
|
exclude?: (path: string) => boolean;
|
|
15462
15483
|
}
|
|
15463
15484
|
interface Project {
|
|
15464
|
-
id: ProjectId;
|
|
15485
|
+
id: scalar.ProjectId;
|
|
15465
15486
|
folderUri: URI$1;
|
|
15466
15487
|
config: LikeC4ProjectConfig;
|
|
15467
15488
|
}
|
|
@@ -15472,21 +15493,7 @@ declare class ProjectsManager {
|
|
|
15472
15493
|
* The global project ID used for all documents
|
|
15473
15494
|
* that are not part of a specific project.
|
|
15474
15495
|
*/
|
|
15475
|
-
static readonly DefaultProjectId: ProjectId;
|
|
15476
|
-
private static DefaultProject;
|
|
15477
|
-
/**
|
|
15478
|
-
* The mapping between project config files and project IDs.
|
|
15479
|
-
*/
|
|
15480
|
-
private projectIdToFolder;
|
|
15481
|
-
/**
|
|
15482
|
-
* Registered projects.
|
|
15483
|
-
* Sorted descending by the number of segments in the folder path.
|
|
15484
|
-
* This ensures that the most specific project is used for a document.
|
|
15485
|
-
*/
|
|
15486
|
-
private _projects;
|
|
15487
|
-
private excludedDocuments;
|
|
15488
|
-
private get defaultGlobalProject();
|
|
15489
|
-
private reloadProjectsLimiter;
|
|
15496
|
+
static readonly DefaultProjectId: scalar.ProjectId;
|
|
15490
15497
|
constructor(services: LikeC4SharedServices);
|
|
15491
15498
|
/**
|
|
15492
15499
|
* Returns:
|
|
@@ -15495,16 +15502,16 @@ declare class ProjectsManager {
|
|
|
15495
15502
|
* - the ID of the only project
|
|
15496
15503
|
* - undefined if there are multiple projects.
|
|
15497
15504
|
*/
|
|
15498
|
-
get defaultProjectId(): ProjectId | undefined;
|
|
15499
|
-
set defaultProjectId(id: ProjectId | undefined);
|
|
15500
|
-
get all(): NonEmptyReadonlyArray<ProjectId>;
|
|
15501
|
-
getProject(arg: ProjectId | LangiumDocument): Project;
|
|
15505
|
+
get defaultProjectId(): scalar.ProjectId | undefined;
|
|
15506
|
+
set defaultProjectId(id: string | scalar.ProjectId | undefined);
|
|
15507
|
+
get all(): NonEmptyReadonlyArray<scalar.ProjectId>;
|
|
15508
|
+
getProject(arg: scalar.ProjectId | LangiumDocument): Project;
|
|
15502
15509
|
/**
|
|
15503
15510
|
* Validates and ensures the project ID.
|
|
15504
15511
|
* If no project ID is specified, returns default project ID
|
|
15505
15512
|
* If there are multiple projects and default project is not set, throws an error
|
|
15506
15513
|
*/
|
|
15507
|
-
ensureProjectId(projectId?: ProjectId | undefined): ProjectId;
|
|
15514
|
+
ensureProjectId(projectId?: scalar.ProjectId | undefined): scalar.ProjectId;
|
|
15508
15515
|
hasMultipleProjects(): boolean;
|
|
15509
15516
|
/**
|
|
15510
15517
|
* Checks if the specified document should be excluded from processing.
|
|
@@ -15521,20 +15528,25 @@ declare class ProjectsManager {
|
|
|
15521
15528
|
*
|
|
15522
15529
|
* @param entry The file system entry to check
|
|
15523
15530
|
*/
|
|
15524
|
-
|
|
15531
|
+
registerConfigFile(configFile: URI$1): Promise<ProjectData | undefined>;
|
|
15525
15532
|
/**
|
|
15526
15533
|
* Registers (or reloads) likec4 project by config file or config object.
|
|
15527
15534
|
* If there is some project registered at same folder, it will be reloaded.
|
|
15528
15535
|
*/
|
|
15529
15536
|
registerProject(opts: URI$1 | {
|
|
15530
|
-
config:
|
|
15537
|
+
config: LikeC4ProjectConfigInput;
|
|
15531
15538
|
folderUri: URI$1 | string;
|
|
15532
15539
|
}): Promise<ProjectData>;
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15540
|
+
/**
|
|
15541
|
+
* Registers (or reloads) likec4 project by config file or config object.
|
|
15542
|
+
* If there is some project registered at same folder, it will be reloaded.
|
|
15543
|
+
*/
|
|
15544
|
+
private _registerProject;
|
|
15545
|
+
belongsTo(document: LangiumDocument | URI$1 | string): scalar.ProjectId;
|
|
15546
|
+
reloadProjects(): Promise<void>;
|
|
15547
|
+
protected uniqueProjectId(name: string): scalar.ProjectId;
|
|
15536
15548
|
protected resetProjectIds(): void;
|
|
15537
|
-
protected rebuidDocuments(): Promise<void>;
|
|
15549
|
+
protected rebuidDocuments(cancelToken?: CancellationToken): Promise<void>;
|
|
15538
15550
|
protected findProjectForDocument(documentUri: string): any;
|
|
15539
15551
|
protected get mappingsToProject(): WorkspaceCache<string, Pick<ProjectData, 'id' | 'config' | 'exclude'>>;
|
|
15540
15552
|
}
|
|
@@ -15688,22 +15700,27 @@ declare class LikeC4ModelLocator {
|
|
|
15688
15700
|
private projects;
|
|
15689
15701
|
constructor(services: LikeC4Services);
|
|
15690
15702
|
private documents;
|
|
15691
|
-
getParsedElement(...args: [Element] | [
|
|
15692
|
-
locateElement(fqn:
|
|
15693
|
-
locateDeploymentElement(deploymentFqn:
|
|
15694
|
-
locateRelation(relationId:
|
|
15695
|
-
locateViewAst(viewId:
|
|
15703
|
+
getParsedElement(...args: [Element] | [_likec4_core.Fqn] | [_likec4_core.Fqn, _likec4_core.ProjectId]): ParsedAstElement | null;
|
|
15704
|
+
locateElement(fqn: _likec4_core.Fqn, projectId?: _likec4_core.ProjectId | undefined): Location | null;
|
|
15705
|
+
locateDeploymentElement(deploymentFqn: _likec4_core.DeploymentFqn, projectId?: _likec4_core.ProjectId | undefined): Location | null;
|
|
15706
|
+
locateRelation(relationId: _likec4_core.RelationId, projectId?: _likec4_core.ProjectId): Location | null;
|
|
15707
|
+
locateViewAst(viewId: _likec4_core.ViewId, projectId?: _likec4_core.ProjectId | undefined): null | {
|
|
15696
15708
|
doc: ParsedLikeC4LangiumDocument;
|
|
15697
15709
|
view: ParsedAstView;
|
|
15698
15710
|
viewAst: LikeC4View;
|
|
15699
15711
|
};
|
|
15700
|
-
locateView(viewId:
|
|
15712
|
+
locateView(viewId: _likec4_core.ViewId, projectId?: _likec4_core.ProjectId): Location | null;
|
|
15701
15713
|
locateDocumentTags(documentUri: URI$1, cancelToken?: CancellationToken): Promise<Array<{
|
|
15702
15714
|
name: string;
|
|
15703
15715
|
color: string;
|
|
15704
15716
|
range: Range$1;
|
|
15705
15717
|
isSpecification: boolean;
|
|
15706
15718
|
}>>;
|
|
15719
|
+
locateDynamicViewStep(params: {
|
|
15720
|
+
view: _likec4_core.ViewId;
|
|
15721
|
+
astPath: string;
|
|
15722
|
+
projectId?: _likec4_core.ProjectId | undefined;
|
|
15723
|
+
}): Location | null;
|
|
15707
15724
|
}
|
|
15708
15725
|
|
|
15709
15726
|
declare class BaseParser {
|
|
@@ -15712,40 +15729,46 @@ declare class BaseParser {
|
|
|
15712
15729
|
isValid: IsValidFn;
|
|
15713
15730
|
constructor(services: LikeC4Services, doc: ParsedLikeC4LangiumDocument);
|
|
15714
15731
|
get project(): Project;
|
|
15715
|
-
resolveFqn(node: FqnReferenceable):
|
|
15732
|
+
resolveFqn(node: FqnReferenceable): _likec4_core.Fqn;
|
|
15716
15733
|
getAstNodePath(node: AstNode): any;
|
|
15717
15734
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
15718
15735
|
[key: string]: string;
|
|
15719
15736
|
} | undefined;
|
|
15720
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined):
|
|
15737
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): _likec4_core.MarkdownOrString | undefined;
|
|
15721
15738
|
convertTags<E extends {
|
|
15722
15739
|
tags?: Tags;
|
|
15723
15740
|
}>(withTags?: E): any;
|
|
15724
15741
|
parseTags<E extends {
|
|
15725
15742
|
tags?: Tags;
|
|
15726
|
-
}>(withTags?: E):
|
|
15727
|
-
convertLinks(source?: LinkProperty['$container']):
|
|
15728
|
-
parseLinks(source?: LinkProperty['$container']):
|
|
15729
|
-
parseIconProperty(prop: IconProperty | undefined):
|
|
15743
|
+
}>(withTags?: E): _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
|
|
15744
|
+
convertLinks(source?: LinkProperty['$container']): _likec4_core.Link[] | undefined;
|
|
15745
|
+
parseLinks(source?: LinkProperty['$container']): _likec4_core.Link[] | undefined;
|
|
15746
|
+
parseIconProperty(prop: IconProperty | undefined): _likec4_core.IconUrl | undefined;
|
|
15730
15747
|
parseImageAlias(value: string): string | undefined;
|
|
15731
|
-
parseColorLiteral(astNode: ColorLiteral):
|
|
15748
|
+
parseColorLiteral(astNode: ColorLiteral): _likec4_core.ColorLiteral | undefined;
|
|
15732
15749
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
15733
15750
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
15734
15751
|
/**
|
|
15735
|
-
*
|
|
15736
|
-
*
|
|
15752
|
+
* Parse base properties: title, description and technology
|
|
15753
|
+
*
|
|
15754
|
+
* @param props - body properties (inside '{...}')
|
|
15755
|
+
* @param override - optional, inline properties (right on the node)
|
|
15756
|
+
* have higher priority and override body properties
|
|
15737
15757
|
*/
|
|
15738
|
-
|
|
15739
|
-
title?: string | undefined;
|
|
15740
|
-
description?: string | undefined;
|
|
15741
|
-
technology?: string | undefined;
|
|
15742
|
-
}, bodyProps: {
|
|
15758
|
+
parseBaseProps(props: {
|
|
15743
15759
|
title?: MarkdownOrString | undefined;
|
|
15760
|
+
summary?: MarkdownOrString | undefined;
|
|
15744
15761
|
description?: MarkdownOrString | undefined;
|
|
15745
15762
|
technology?: MarkdownOrString | undefined;
|
|
15763
|
+
}, override?: {
|
|
15764
|
+
title?: string | undefined;
|
|
15765
|
+
summary?: string | undefined;
|
|
15766
|
+
description?: string | undefined;
|
|
15767
|
+
technology?: string | undefined;
|
|
15746
15768
|
}): {
|
|
15747
15769
|
title?: string;
|
|
15748
|
-
|
|
15770
|
+
summary?: _likec4_core.MarkdownOrString;
|
|
15771
|
+
description?: _likec4_core.MarkdownOrString;
|
|
15749
15772
|
technology?: string;
|
|
15750
15773
|
};
|
|
15751
15774
|
}
|
|
@@ -15770,7 +15793,12 @@ declare const DocumentParserFromMixins: {
|
|
|
15770
15793
|
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
|
|
15771
15794
|
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
|
|
15772
15795
|
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
|
|
15773
|
-
parseDynamicStep(node: DynamicViewStep): ProjectId;
|
|
15796
|
+
parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
|
|
15797
|
+
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
|
|
15798
|
+
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
|
|
15799
|
+
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest.Writable<type_fest.Except<ProjectId, "source", {
|
|
15800
|
+
requireExactProps: true;
|
|
15801
|
+
}>>;
|
|
15774
15802
|
parsePredicate(astNode: ExpressionV2): ProjectId;
|
|
15775
15803
|
parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
|
|
15776
15804
|
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
@@ -15793,6 +15821,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15793
15821
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
15794
15822
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
15795
15823
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
15824
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
15796
15825
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
15797
15826
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
15798
15827
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -15821,16 +15850,19 @@ declare const DocumentParserFromMixins: {
|
|
|
15821
15850
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
15822
15851
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
15823
15852
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
15824
|
-
|
|
15825
|
-
title?: string | undefined;
|
|
15826
|
-
description?: string | undefined;
|
|
15827
|
-
technology?: string | undefined;
|
|
15828
|
-
}, bodyProps: {
|
|
15853
|
+
parseBaseProps(props: {
|
|
15829
15854
|
title?: MarkdownOrString | undefined;
|
|
15855
|
+
summary?: MarkdownOrString | undefined;
|
|
15830
15856
|
description?: MarkdownOrString | undefined;
|
|
15831
15857
|
technology?: MarkdownOrString | undefined;
|
|
15858
|
+
}, override?: {
|
|
15859
|
+
title?: string | undefined;
|
|
15860
|
+
summary?: string | undefined;
|
|
15861
|
+
description?: string | undefined;
|
|
15862
|
+
technology?: string | undefined;
|
|
15832
15863
|
}): {
|
|
15833
15864
|
title?: string;
|
|
15865
|
+
summary?: ProjectId;
|
|
15834
15866
|
description?: ProjectId;
|
|
15835
15867
|
technology?: string;
|
|
15836
15868
|
};
|
|
@@ -15860,7 +15892,12 @@ declare const DocumentParserFromMixins: {
|
|
|
15860
15892
|
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
|
|
15861
15893
|
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
|
|
15862
15894
|
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
|
|
15863
|
-
parseDynamicStep(node: DynamicViewStep): ProjectId;
|
|
15895
|
+
parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
|
|
15896
|
+
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
|
|
15897
|
+
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
|
|
15898
|
+
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest.Writable<type_fest.Except<ProjectId, "source", {
|
|
15899
|
+
requireExactProps: true;
|
|
15900
|
+
}>>;
|
|
15864
15901
|
parsePredicate(astNode: ExpressionV2): ProjectId;
|
|
15865
15902
|
parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
|
|
15866
15903
|
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
@@ -15883,6 +15920,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15883
15920
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
15884
15921
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
15885
15922
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
15923
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
15886
15924
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
15887
15925
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
15888
15926
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -15911,16 +15949,19 @@ declare const DocumentParserFromMixins: {
|
|
|
15911
15949
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
15912
15950
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
15913
15951
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
15914
|
-
|
|
15915
|
-
title?: string | undefined;
|
|
15916
|
-
description?: string | undefined;
|
|
15917
|
-
technology?: string | undefined;
|
|
15918
|
-
}, bodyProps: {
|
|
15952
|
+
parseBaseProps(props: {
|
|
15919
15953
|
title?: MarkdownOrString | undefined;
|
|
15954
|
+
summary?: MarkdownOrString | undefined;
|
|
15920
15955
|
description?: MarkdownOrString | undefined;
|
|
15921
15956
|
technology?: MarkdownOrString | undefined;
|
|
15957
|
+
}, override?: {
|
|
15958
|
+
title?: string | undefined;
|
|
15959
|
+
summary?: string | undefined;
|
|
15960
|
+
description?: string | undefined;
|
|
15961
|
+
technology?: string | undefined;
|
|
15922
15962
|
}): {
|
|
15923
15963
|
title?: string;
|
|
15964
|
+
summary?: ProjectId;
|
|
15924
15965
|
description?: ProjectId;
|
|
15925
15966
|
technology?: string;
|
|
15926
15967
|
};
|
|
@@ -15963,16 +16004,19 @@ declare const DocumentParserFromMixins: {
|
|
|
15963
16004
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
15964
16005
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
15965
16006
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
15966
|
-
|
|
15967
|
-
title?: string | undefined;
|
|
15968
|
-
description?: string | undefined;
|
|
15969
|
-
technology?: string | undefined;
|
|
15970
|
-
}, bodyProps: {
|
|
16007
|
+
parseBaseProps(props: {
|
|
15971
16008
|
title?: MarkdownOrString | undefined;
|
|
16009
|
+
summary?: MarkdownOrString | undefined;
|
|
15972
16010
|
description?: MarkdownOrString | undefined;
|
|
15973
16011
|
technology?: MarkdownOrString | undefined;
|
|
16012
|
+
}, override?: {
|
|
16013
|
+
title?: string | undefined;
|
|
16014
|
+
summary?: string | undefined;
|
|
16015
|
+
description?: string | undefined;
|
|
16016
|
+
technology?: string | undefined;
|
|
15974
16017
|
}): {
|
|
15975
16018
|
title?: string;
|
|
16019
|
+
summary?: ProjectId;
|
|
15976
16020
|
description?: ProjectId;
|
|
15977
16021
|
technology?: string;
|
|
15978
16022
|
};
|
|
@@ -16001,6 +16045,7 @@ declare const DocumentParserFromMixins: {
|
|
|
16001
16045
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
16002
16046
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
16003
16047
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
16048
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
16004
16049
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
16005
16050
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
16006
16051
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -16029,16 +16074,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16029
16074
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16030
16075
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16031
16076
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16032
|
-
|
|
16033
|
-
title?: string | undefined;
|
|
16034
|
-
description?: string | undefined;
|
|
16035
|
-
technology?: string | undefined;
|
|
16036
|
-
}, bodyProps: {
|
|
16077
|
+
parseBaseProps(props: {
|
|
16037
16078
|
title?: MarkdownOrString | undefined;
|
|
16079
|
+
summary?: MarkdownOrString | undefined;
|
|
16038
16080
|
description?: MarkdownOrString | undefined;
|
|
16039
16081
|
technology?: MarkdownOrString | undefined;
|
|
16082
|
+
}, override?: {
|
|
16083
|
+
title?: string | undefined;
|
|
16084
|
+
summary?: string | undefined;
|
|
16085
|
+
description?: string | undefined;
|
|
16086
|
+
technology?: string | undefined;
|
|
16040
16087
|
}): {
|
|
16041
16088
|
title?: string;
|
|
16089
|
+
summary?: ProjectId;
|
|
16042
16090
|
description?: ProjectId;
|
|
16043
16091
|
technology?: string;
|
|
16044
16092
|
};
|
|
@@ -16060,6 +16108,7 @@ declare const DocumentParserFromMixins: {
|
|
|
16060
16108
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
16061
16109
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
16062
16110
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
16111
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
16063
16112
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
16064
16113
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
16065
16114
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -16088,16 +16137,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16088
16137
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16089
16138
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16090
16139
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16091
|
-
|
|
16092
|
-
title?: string | undefined;
|
|
16093
|
-
description?: string | undefined;
|
|
16094
|
-
technology?: string | undefined;
|
|
16095
|
-
}, bodyProps: {
|
|
16140
|
+
parseBaseProps(props: {
|
|
16096
16141
|
title?: MarkdownOrString | undefined;
|
|
16142
|
+
summary?: MarkdownOrString | undefined;
|
|
16097
16143
|
description?: MarkdownOrString | undefined;
|
|
16098
16144
|
technology?: MarkdownOrString | undefined;
|
|
16145
|
+
}, override?: {
|
|
16146
|
+
title?: string | undefined;
|
|
16147
|
+
summary?: string | undefined;
|
|
16148
|
+
description?: string | undefined;
|
|
16149
|
+
technology?: string | undefined;
|
|
16099
16150
|
}): {
|
|
16100
16151
|
title?: string;
|
|
16152
|
+
summary?: ProjectId;
|
|
16101
16153
|
description?: ProjectId;
|
|
16102
16154
|
technology?: string;
|
|
16103
16155
|
};
|
|
@@ -16127,6 +16179,7 @@ declare const DocumentParserFromMixins: {
|
|
|
16127
16179
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
16128
16180
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
16129
16181
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
16182
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
16130
16183
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
16131
16184
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
16132
16185
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -16155,16 +16208,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16155
16208
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16156
16209
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16157
16210
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16158
|
-
|
|
16159
|
-
title?: string | undefined;
|
|
16160
|
-
description?: string | undefined;
|
|
16161
|
-
technology?: string | undefined;
|
|
16162
|
-
}, bodyProps: {
|
|
16211
|
+
parseBaseProps(props: {
|
|
16163
16212
|
title?: MarkdownOrString | undefined;
|
|
16213
|
+
summary?: MarkdownOrString | undefined;
|
|
16164
16214
|
description?: MarkdownOrString | undefined;
|
|
16165
16215
|
technology?: MarkdownOrString | undefined;
|
|
16216
|
+
}, override?: {
|
|
16217
|
+
title?: string | undefined;
|
|
16218
|
+
summary?: string | undefined;
|
|
16219
|
+
description?: string | undefined;
|
|
16220
|
+
technology?: string | undefined;
|
|
16166
16221
|
}): {
|
|
16167
16222
|
title?: string;
|
|
16223
|
+
summary?: ProjectId;
|
|
16168
16224
|
description?: ProjectId;
|
|
16169
16225
|
technology?: string;
|
|
16170
16226
|
};
|
|
@@ -16187,6 +16243,7 @@ declare const DocumentParserFromMixins: {
|
|
|
16187
16243
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
16188
16244
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
16189
16245
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
16246
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
16190
16247
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
16191
16248
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
16192
16249
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -16215,16 +16272,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16215
16272
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16216
16273
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16217
16274
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16218
|
-
|
|
16219
|
-
title?: string | undefined;
|
|
16220
|
-
description?: string | undefined;
|
|
16221
|
-
technology?: string | undefined;
|
|
16222
|
-
}, bodyProps: {
|
|
16275
|
+
parseBaseProps(props: {
|
|
16223
16276
|
title?: MarkdownOrString | undefined;
|
|
16277
|
+
summary?: MarkdownOrString | undefined;
|
|
16224
16278
|
description?: MarkdownOrString | undefined;
|
|
16225
16279
|
technology?: MarkdownOrString | undefined;
|
|
16280
|
+
}, override?: {
|
|
16281
|
+
title?: string | undefined;
|
|
16282
|
+
summary?: string | undefined;
|
|
16283
|
+
description?: string | undefined;
|
|
16284
|
+
technology?: string | undefined;
|
|
16226
16285
|
}): {
|
|
16227
16286
|
title?: string;
|
|
16287
|
+
summary?: ProjectId;
|
|
16228
16288
|
description?: ProjectId;
|
|
16229
16289
|
technology?: string;
|
|
16230
16290
|
};
|
|
@@ -16255,16 +16315,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16255
16315
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16256
16316
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16257
16317
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16258
|
-
|
|
16259
|
-
title?: string | undefined;
|
|
16260
|
-
description?: string | undefined;
|
|
16261
|
-
technology?: string | undefined;
|
|
16262
|
-
}, bodyProps: {
|
|
16318
|
+
parseBaseProps(props: {
|
|
16263
16319
|
title?: MarkdownOrString | undefined;
|
|
16320
|
+
summary?: MarkdownOrString | undefined;
|
|
16264
16321
|
description?: MarkdownOrString | undefined;
|
|
16265
16322
|
technology?: MarkdownOrString | undefined;
|
|
16323
|
+
}, override?: {
|
|
16324
|
+
title?: string | undefined;
|
|
16325
|
+
summary?: string | undefined;
|
|
16326
|
+
description?: string | undefined;
|
|
16327
|
+
technology?: string | undefined;
|
|
16266
16328
|
}): {
|
|
16267
16329
|
title?: string;
|
|
16330
|
+
summary?: ProjectId;
|
|
16268
16331
|
description?: ProjectId;
|
|
16269
16332
|
technology?: string;
|
|
16270
16333
|
};
|
|
@@ -16282,6 +16345,7 @@ declare const DocumentParserFromMixins: {
|
|
|
16282
16345
|
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
16283
16346
|
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
16284
16347
|
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
16348
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest.Except<ProjectId["customRelation"], "expr">;
|
|
16285
16349
|
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
16286
16350
|
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
16287
16351
|
parseRelationExpr(astNode: RelationExpr): ProjectId;
|
|
@@ -16310,16 +16374,19 @@ declare const DocumentParserFromMixins: {
|
|
|
16310
16374
|
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
16311
16375
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
16312
16376
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
16313
|
-
|
|
16314
|
-
title?: string | undefined;
|
|
16315
|
-
description?: string | undefined;
|
|
16316
|
-
technology?: string | undefined;
|
|
16317
|
-
}, bodyProps: {
|
|
16377
|
+
parseBaseProps(props: {
|
|
16318
16378
|
title?: MarkdownOrString | undefined;
|
|
16379
|
+
summary?: MarkdownOrString | undefined;
|
|
16319
16380
|
description?: MarkdownOrString | undefined;
|
|
16320
16381
|
technology?: MarkdownOrString | undefined;
|
|
16382
|
+
}, override?: {
|
|
16383
|
+
title?: string | undefined;
|
|
16384
|
+
summary?: string | undefined;
|
|
16385
|
+
description?: string | undefined;
|
|
16386
|
+
technology?: string | undefined;
|
|
16321
16387
|
}): {
|
|
16322
16388
|
title?: string;
|
|
16389
|
+
summary?: ProjectId;
|
|
16323
16390
|
description?: ProjectId;
|
|
16324
16391
|
technology?: string;
|
|
16325
16392
|
};
|
|
@@ -16359,18 +16426,42 @@ declare namespace DidRequestOpenViewNotification {
|
|
|
16359
16426
|
* If LSP has multiple projects, the projectId is required.
|
|
16360
16427
|
*/
|
|
16361
16428
|
declare namespace Locate {
|
|
16362
|
-
type Params =
|
|
16429
|
+
type Params =
|
|
16430
|
+
/**
|
|
16431
|
+
* Locate an element by its fqn
|
|
16432
|
+
*/
|
|
16433
|
+
{
|
|
16363
16434
|
element: Fqn;
|
|
16364
16435
|
projectId?: string | undefined;
|
|
16365
16436
|
property?: string;
|
|
16366
|
-
}
|
|
16437
|
+
}
|
|
16438
|
+
/**
|
|
16439
|
+
* Locate a relation by its id
|
|
16440
|
+
*/
|
|
16441
|
+
| {
|
|
16367
16442
|
projectId?: string | undefined;
|
|
16368
16443
|
relation: RelationId;
|
|
16369
|
-
}
|
|
16444
|
+
}
|
|
16445
|
+
/**
|
|
16446
|
+
* Locate a deployment by its fqn
|
|
16447
|
+
*/
|
|
16448
|
+
| {
|
|
16370
16449
|
deployment: DeploymentFqn;
|
|
16371
16450
|
projectId?: string | undefined;
|
|
16372
16451
|
property?: string;
|
|
16373
|
-
}
|
|
16452
|
+
}
|
|
16453
|
+
/**
|
|
16454
|
+
* Locate a step in a dynamic view by its astPath
|
|
16455
|
+
*/
|
|
16456
|
+
| {
|
|
16457
|
+
view: ViewId;
|
|
16458
|
+
astPath: string;
|
|
16459
|
+
projectId?: string | undefined;
|
|
16460
|
+
}
|
|
16461
|
+
/**
|
|
16462
|
+
* Locate a view by its id
|
|
16463
|
+
*/
|
|
16464
|
+
| {
|
|
16374
16465
|
view: ViewId;
|
|
16375
16466
|
projectId?: string | undefined;
|
|
16376
16467
|
};
|
|
@@ -16514,7 +16605,7 @@ declare class LikeC4DocumentHighlightProvider extends DefaultDocumentHighlightPr
|
|
|
16514
16605
|
declare class LikeC4DocumentLinkProvider implements DocumentLinkProvider {
|
|
16515
16606
|
private services;
|
|
16516
16607
|
constructor(services: LikeC4Services);
|
|
16517
|
-
getDocumentLinks(doc: LangiumDocument, _params: DocumentLinkParams,
|
|
16608
|
+
getDocumentLinks(doc: LangiumDocument, _params: DocumentLinkParams, _cancelToken?: CancellationToken): Promise<DocumentLink[]>;
|
|
16518
16609
|
resolveLink(doc: LangiumDocument, link: string): string;
|
|
16519
16610
|
relativeLink(doc: LangiumDocument, link: string): string | null;
|
|
16520
16611
|
}
|