likec4 1.20.3 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/__app__/src/chunks/{-index-overview-TebwYeV7.js → -index-overview-Csw3b-Fk.js} +4 -4
- package/__app__/src/chunks/{likec4-D8rQPdul.js → likec4-fsbHEjF3.js} +479 -478
- package/__app__/src/chunks/{main-DSlxn73B.js → main-DbAbBULM.js} +5105 -5106
- package/__app__/src/chunks/{mantine-D3AsIG-5.js → mantine-BdYO4lQg.js} +3837 -3743
- package/__app__/src/chunks/{tanstack-router-BE0xJAYp.js → tanstack-router-H-3IPlI6.js} +1 -1
- package/__app__/src/main.js +1 -1
- package/__app__/src/style.css +1 -1
- package/__app__/webcomponent/webcomponent.js +888 -799
- package/dist/cli/index.cjs +36 -36
- package/dist/cli/index.mjs +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +90 -27
- package/dist/index.d.mts +90 -27
- package/dist/index.d.ts +90 -27
- package/dist/index.mjs +1 -1
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +2 -2
- package/dist/model/index.d.mts +2 -2
- package/dist/model/index.d.ts +2 -2
- package/dist/model/index.mjs +1 -1
- package/dist/shared/likec4.BH2DNgw1.mjs +1855 -0
- package/dist/shared/likec4.DIyCHEbR.cjs +1855 -0
- package/package.json +19 -19
- package/react/index.js +553 -469
- package/react/style.css +1 -1
- package/dist/shared/likec4.32ndthTo.cjs +0 -1855
- package/dist/shared/likec4.BgEQuI_b.mjs +0 -1855
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LikeC4Model } from '@likec4/core/model';
|
|
2
|
-
export { AnyAux, Aux, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel } from '@likec4/core/model';
|
|
3
1
|
import * as c4 from '@likec4/core';
|
|
4
|
-
import { ComputedView,
|
|
2
|
+
import { ComputedView, DiagramView, OverviewGraph, Fqn, ViewId, invariant, ViewChange } from '@likec4/core';
|
|
5
3
|
export { AbstractRelation, AutoLayoutDirection, BBox, Color, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4Model, ComputedNode, ComputedView, DeployedInstance, DeploymentElement, DeploymentNode, DeploymentNodeKind, DeploymentRelation, DeploymentView, DiagramEdge, DiagramNode, DiagramView, DynamicView, EdgeId, Element, ElementKind, ElementView, Fqn, HexColorLiteral, LayoutedLikeC4Model, LikeC4View, NodeId, ParsedLikeC4Model, Point, RelationExpr, RelationId, StepEdgeId, Tag, ThemeColor, ViewId, XYPoint } from '@likec4/core';
|
|
6
|
-
import {
|
|
4
|
+
import { LikeC4Model } from '@likec4/core/model';
|
|
5
|
+
export { AnyAux, Aux, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel } from '@likec4/core/model';
|
|
6
|
+
import { Tagged, ValueOf, ConditionalPick, Writable } from 'type-fest';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A tagging type for string properties that are actually document URIs.
|
|
@@ -13941,17 +13941,21 @@ type ElementPredicate = ElementPredicateOrWhere | ElementPredicateWith;
|
|
|
13941
13941
|
declare const ElementPredicate = "ElementPredicate";
|
|
13942
13942
|
type ElementPredicateOrWhere = ElementExpression | ElementPredicateWhere;
|
|
13943
13943
|
declare const ElementPredicateOrWhere = "ElementPredicateOrWhere";
|
|
13944
|
+
type ElementPredicateOrWhereV2 = ElementPredicateWhereV2 | FqnExpr;
|
|
13945
|
+
declare const ElementPredicateOrWhereV2 = "ElementPredicateOrWhereV2";
|
|
13944
13946
|
type ElementProperty = ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataProperty;
|
|
13945
13947
|
declare const ElementProperty = "ElementProperty";
|
|
13946
13948
|
type ElementShape = 'browser' | 'cylinder' | 'mobile' | 'person' | 'queue' | 'rectangle' | 'storage';
|
|
13947
|
-
type ExpressionV2 =
|
|
13949
|
+
type ExpressionV2 = ElementPredicateOrWhereV2 | RelationPredicateOrWhereV2;
|
|
13948
13950
|
declare const ExpressionV2 = "ExpressionV2";
|
|
13951
|
+
type ExtendElementProperty = LinkProperty | MetadataProperty;
|
|
13952
|
+
declare const ExtendElementProperty = "ExtendElementProperty";
|
|
13949
13953
|
type FqnExpr = FqnRefExpr | WildcardExpression;
|
|
13950
13954
|
declare const FqnExpr = "FqnExpr";
|
|
13951
13955
|
type FqnReferenceable = Element | ExtendElement | Referenceable;
|
|
13952
13956
|
declare const FqnReferenceable = "FqnReferenceable";
|
|
13953
13957
|
type IconId = string;
|
|
13954
|
-
type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | ArrowType | ElementShape | LineOptions | Participant | ThemeColor | string;
|
|
13958
|
+
type Id = 'deployment' | 'element' | 'group' | 'instance' | 'model' | 'node' | ArrowType | ElementShape | LineOptions | Participant | SizeValue | ThemeColor | string;
|
|
13955
13959
|
type LikeC4View = DeploymentView | DynamicView | ElementView;
|
|
13956
13960
|
declare const LikeC4View = "LikeC4View";
|
|
13957
13961
|
type LineOptions = 'dashed' | 'dotted' | 'solid';
|
|
@@ -13976,9 +13980,12 @@ type RelationProperty = LinkProperty | MetadataProperty | RelationNavigateToProp
|
|
|
13976
13980
|
declare const RelationProperty = "RelationProperty";
|
|
13977
13981
|
type RelationshipStyleProperty = ArrowProperty | ColorProperty | LineProperty;
|
|
13978
13982
|
declare const RelationshipStyleProperty = "RelationshipStyleProperty";
|
|
13983
|
+
type SizeProperty = PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty;
|
|
13984
|
+
declare const SizeProperty = "SizeProperty";
|
|
13985
|
+
type SizeValue = 'large' | 'lg' | 'md' | 'medium' | 'sm' | 'small' | 'xl' | 'xlarge' | 'xs' | 'xsmall';
|
|
13979
13986
|
type StringProperty = ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
13980
13987
|
declare const StringProperty = "StringProperty";
|
|
13981
|
-
type StyleProperty = BorderProperty | ColorProperty | IconProperty | MultipleProperty | OpacityProperty | ShapeProperty;
|
|
13988
|
+
type StyleProperty = BorderProperty | ColorProperty | IconProperty | MultipleProperty | OpacityProperty | PaddingSizeProperty | ShapeProperty | ShapeSizeProperty | TextSizeProperty;
|
|
13982
13989
|
declare const StyleProperty = "StyleProperty";
|
|
13983
13990
|
type ThemeColor = 'amber' | 'blue' | 'gray' | 'green' | 'indigo' | 'muted' | 'primary' | 'red' | 'secondary' | 'sky' | 'slate';
|
|
13984
13991
|
type Uri = string;
|
|
@@ -14262,6 +14269,13 @@ interface ElementPredicateWhere extends AstNode {
|
|
|
14262
14269
|
where?: WhereElementExpression;
|
|
14263
14270
|
}
|
|
14264
14271
|
declare const ElementPredicateWhere = "ElementPredicateWhere";
|
|
14272
|
+
interface ElementPredicateWhereV2 extends AstNode {
|
|
14273
|
+
readonly $container: DeploymentViewRulePredicateExpression;
|
|
14274
|
+
readonly $type: 'ElementPredicateWhereV2';
|
|
14275
|
+
subject: FqnExpr;
|
|
14276
|
+
where?: WhereElementExpression;
|
|
14277
|
+
}
|
|
14278
|
+
declare const ElementPredicateWhereV2 = "ElementPredicateWhereV2";
|
|
14265
14279
|
interface ElementPredicateWith extends AstNode {
|
|
14266
14280
|
readonly $container: DynamicViewPredicateIterator | Predicates;
|
|
14267
14281
|
readonly $type: 'ElementPredicateWith';
|
|
@@ -14336,22 +14350,17 @@ interface ExtendElement extends AstNode {
|
|
|
14336
14350
|
readonly $container: Model;
|
|
14337
14351
|
readonly $type: 'ExtendElement';
|
|
14338
14352
|
body: ExtendElementBody;
|
|
14339
|
-
element:
|
|
14353
|
+
element: StrictFqnElementRef;
|
|
14340
14354
|
}
|
|
14341
14355
|
declare const ExtendElement = "ExtendElement";
|
|
14342
14356
|
interface ExtendElementBody extends AstNode {
|
|
14343
14357
|
readonly $container: ExtendElement;
|
|
14344
14358
|
readonly $type: 'ExtendElementBody';
|
|
14345
14359
|
elements: Array<Element | Relation>;
|
|
14360
|
+
props: Array<ExtendElementProperty>;
|
|
14361
|
+
tags?: Tags;
|
|
14346
14362
|
}
|
|
14347
14363
|
declare const ExtendElementBody = "ExtendElementBody";
|
|
14348
|
-
interface FqnElementRef extends AstNode {
|
|
14349
|
-
readonly $container: ExtendElement | FqnElementRef;
|
|
14350
|
-
readonly $type: 'FqnElementRef';
|
|
14351
|
-
el: Reference<Element>;
|
|
14352
|
-
parent?: FqnElementRef;
|
|
14353
|
-
}
|
|
14354
|
-
declare const FqnElementRef = "FqnElementRef";
|
|
14355
14364
|
interface FqnExpressions extends AstNode {
|
|
14356
14365
|
readonly $container: DeploymentViewRuleStyle | FqnExpressions;
|
|
14357
14366
|
readonly $type: 'FqnExpressions';
|
|
@@ -14367,7 +14376,7 @@ interface FqnRef extends AstNode {
|
|
|
14367
14376
|
}
|
|
14368
14377
|
declare const FqnRef = "FqnRef";
|
|
14369
14378
|
interface FqnRefExpr extends AstNode {
|
|
14370
|
-
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | FqnExpressions | IncomingRelationExpr | OutgoingRelationExpr;
|
|
14379
|
+
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | ElementPredicateWhereV2 | FqnExpressions | IncomingRelationExpr | OutgoingRelationExpr;
|
|
14371
14380
|
readonly $type: 'FqnRefExpr';
|
|
14372
14381
|
ref: FqnRef;
|
|
14373
14382
|
selector?: string;
|
|
@@ -14484,7 +14493,7 @@ interface LineProperty extends AstNode {
|
|
|
14484
14493
|
}
|
|
14485
14494
|
declare const LineProperty = "LineProperty";
|
|
14486
14495
|
interface LinkProperty extends AstNode {
|
|
14487
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | RelationBody;
|
|
14496
|
+
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendElementBody | RelationBody;
|
|
14488
14497
|
readonly $type: 'LinkProperty';
|
|
14489
14498
|
key: 'link';
|
|
14490
14499
|
title?: string;
|
|
@@ -14499,7 +14508,7 @@ interface MetadataAttribute extends AstNode {
|
|
|
14499
14508
|
}
|
|
14500
14509
|
declare const MetadataAttribute = "MetadataAttribute";
|
|
14501
14510
|
interface MetadataBody extends AstNode {
|
|
14502
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | ElementBody | RelationBody;
|
|
14511
|
+
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | ElementBody | ExtendElementBody | RelationBody;
|
|
14503
14512
|
readonly $type: 'MetadataBody';
|
|
14504
14513
|
props: Array<MetadataAttribute>;
|
|
14505
14514
|
}
|
|
@@ -14577,6 +14586,13 @@ interface OutgoingRelationExpression extends AstNode {
|
|
|
14577
14586
|
kind?: Reference<RelationshipKind>;
|
|
14578
14587
|
}
|
|
14579
14588
|
declare const OutgoingRelationExpression = "OutgoingRelationExpression";
|
|
14589
|
+
interface PaddingSizeProperty extends AstNode {
|
|
14590
|
+
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
14591
|
+
readonly $type: 'PaddingSizeProperty';
|
|
14592
|
+
key: 'padding';
|
|
14593
|
+
value: SizeValue;
|
|
14594
|
+
}
|
|
14595
|
+
declare const PaddingSizeProperty = "PaddingSizeProperty";
|
|
14580
14596
|
interface Predicates extends AstNode {
|
|
14581
14597
|
readonly $container: ExcludePredicate | IncludePredicate | Predicates;
|
|
14582
14598
|
readonly $type: 'Predicates';
|
|
@@ -14658,6 +14674,13 @@ interface ShapeProperty extends AstNode {
|
|
|
14658
14674
|
value: ElementShape;
|
|
14659
14675
|
}
|
|
14660
14676
|
declare const ShapeProperty = "ShapeProperty";
|
|
14677
|
+
interface ShapeSizeProperty extends AstNode {
|
|
14678
|
+
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
14679
|
+
readonly $type: 'ShapeSizeProperty';
|
|
14680
|
+
key: 'size';
|
|
14681
|
+
value: SizeValue;
|
|
14682
|
+
}
|
|
14683
|
+
declare const ShapeSizeProperty = "ShapeSizeProperty";
|
|
14661
14684
|
interface SpecificationColor extends AstNode {
|
|
14662
14685
|
readonly $container: SpecificationRule;
|
|
14663
14686
|
readonly $type: 'SpecificationColor';
|
|
@@ -14717,6 +14740,13 @@ interface SpecificationTag extends AstNode {
|
|
|
14717
14740
|
tag: Tag;
|
|
14718
14741
|
}
|
|
14719
14742
|
declare const SpecificationTag = "SpecificationTag";
|
|
14743
|
+
interface StrictFqnElementRef extends AstNode {
|
|
14744
|
+
readonly $container: ExtendElement | StrictFqnElementRef;
|
|
14745
|
+
readonly $type: 'StrictFqnElementRef';
|
|
14746
|
+
el: Reference<Element>;
|
|
14747
|
+
parent?: StrictFqnElementRef;
|
|
14748
|
+
}
|
|
14749
|
+
declare const StrictFqnElementRef = "StrictFqnElementRef";
|
|
14720
14750
|
interface Tag extends AstNode {
|
|
14721
14751
|
readonly $container: SpecificationTag;
|
|
14722
14752
|
readonly $type: 'Tag';
|
|
@@ -14724,12 +14754,19 @@ interface Tag extends AstNode {
|
|
|
14724
14754
|
}
|
|
14725
14755
|
declare const Tag = "Tag";
|
|
14726
14756
|
interface Tags extends AstNode {
|
|
14727
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelation | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | Relation | RelationBody | Tags;
|
|
14757
|
+
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelation | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendElementBody | Relation | RelationBody | Tags;
|
|
14728
14758
|
readonly $type: 'Tags';
|
|
14729
14759
|
prev?: Tags;
|
|
14730
14760
|
values: Array<Reference<Tag>>;
|
|
14731
14761
|
}
|
|
14732
14762
|
declare const Tags = "Tags";
|
|
14763
|
+
interface TextSizeProperty extends AstNode {
|
|
14764
|
+
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
14765
|
+
readonly $type: 'TextSizeProperty';
|
|
14766
|
+
key: 'textSize';
|
|
14767
|
+
value: SizeValue;
|
|
14768
|
+
}
|
|
14769
|
+
declare const TextSizeProperty = "TextSizeProperty";
|
|
14733
14770
|
interface ViewRef extends AstNode {
|
|
14734
14771
|
readonly $container: NavigateToProperty;
|
|
14735
14772
|
readonly $type: 'ViewRef';
|
|
@@ -14779,7 +14816,7 @@ interface ViewStringProperty extends AstNode {
|
|
|
14779
14816
|
}
|
|
14780
14817
|
declare const ViewStringProperty = "ViewStringProperty";
|
|
14781
14818
|
interface WhereBinaryExpression extends AstNode {
|
|
14782
|
-
readonly $container: ElementPredicateWhere | RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation | WhereRelationNegation;
|
|
14819
|
+
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | RelationPredicateWhere | RelationPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation | WhereRelationNegation;
|
|
14783
14820
|
readonly $type: 'WhereBinaryExpression';
|
|
14784
14821
|
left: WhereElementExpression | WhereRelationExpression;
|
|
14785
14822
|
operator: 'and' | 'or';
|
|
@@ -14787,21 +14824,21 @@ interface WhereBinaryExpression extends AstNode {
|
|
|
14787
14824
|
}
|
|
14788
14825
|
declare const WhereBinaryExpression = "WhereBinaryExpression";
|
|
14789
14826
|
interface WhereElementKind extends AstNode {
|
|
14790
|
-
readonly $container: ElementPredicateWhere | WhereBinaryExpression | WhereElementNegation;
|
|
14827
|
+
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
14791
14828
|
readonly $type: 'WhereElementKind';
|
|
14792
14829
|
not: boolean;
|
|
14793
14830
|
operator: 'is' | string;
|
|
14794
|
-
value?: Reference<
|
|
14831
|
+
value?: Reference<DeploymentNodeOrElementKind>;
|
|
14795
14832
|
}
|
|
14796
14833
|
declare const WhereElementKind = "WhereElementKind";
|
|
14797
14834
|
interface WhereElementNegation extends AstNode {
|
|
14798
|
-
readonly $container: ElementPredicateWhere | WhereBinaryExpression | WhereElementNegation;
|
|
14835
|
+
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
14799
14836
|
readonly $type: 'WhereElementNegation';
|
|
14800
14837
|
value: WhereElementExpression;
|
|
14801
14838
|
}
|
|
14802
14839
|
declare const WhereElementNegation = "WhereElementNegation";
|
|
14803
14840
|
interface WhereElementTag extends AstNode {
|
|
14804
|
-
readonly $container: ElementPredicateWhere | WhereBinaryExpression | WhereElementNegation;
|
|
14841
|
+
readonly $container: ElementPredicateWhere | ElementPredicateWhereV2 | WhereBinaryExpression | WhereElementNegation;
|
|
14805
14842
|
readonly $type: 'WhereElementTag';
|
|
14806
14843
|
not: boolean;
|
|
14807
14844
|
operator: 'is' | string;
|
|
@@ -14849,7 +14886,7 @@ interface WhereRelationTag extends AstNode {
|
|
|
14849
14886
|
}
|
|
14850
14887
|
declare const WhereRelationTag = "WhereRelationTag";
|
|
14851
14888
|
interface WildcardExpression extends AstNode {
|
|
14852
|
-
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWith | FqnExpressions | IncomingRelationExpr | IncomingRelationExpression | OutgoingRelationExpr | OutgoingRelationExpression | Predicates;
|
|
14889
|
+
readonly $container: DeploymentViewRulePredicateExpression | DirectedRelationExpr | DirectedRelationExpression | DynamicViewPredicateIterator | ElementExpressionsIterator | ElementPredicateWhere | ElementPredicateWhereV2 | ElementPredicateWith | FqnExpressions | IncomingRelationExpr | IncomingRelationExpression | OutgoingRelationExpr | OutgoingRelationExpression | Predicates;
|
|
14853
14890
|
readonly $type: 'WildcardExpression';
|
|
14854
14891
|
isWildcard: boolean;
|
|
14855
14892
|
}
|
|
@@ -14896,7 +14933,9 @@ type LikeC4AstType = {
|
|
|
14896
14933
|
ElementKindExpression: ElementKindExpression;
|
|
14897
14934
|
ElementPredicate: ElementPredicate;
|
|
14898
14935
|
ElementPredicateOrWhere: ElementPredicateOrWhere;
|
|
14936
|
+
ElementPredicateOrWhereV2: ElementPredicateOrWhereV2;
|
|
14899
14937
|
ElementPredicateWhere: ElementPredicateWhere;
|
|
14938
|
+
ElementPredicateWhereV2: ElementPredicateWhereV2;
|
|
14900
14939
|
ElementPredicateWith: ElementPredicateWith;
|
|
14901
14940
|
ElementProperty: ElementProperty;
|
|
14902
14941
|
ElementRef: ElementRef;
|
|
@@ -14911,7 +14950,7 @@ type LikeC4AstType = {
|
|
|
14911
14950
|
ExpressionV2: ExpressionV2;
|
|
14912
14951
|
ExtendElement: ExtendElement;
|
|
14913
14952
|
ExtendElementBody: ExtendElementBody;
|
|
14914
|
-
|
|
14953
|
+
ExtendElementProperty: ExtendElementProperty;
|
|
14915
14954
|
FqnExpr: FqnExpr;
|
|
14916
14955
|
FqnExpressions: FqnExpressions;
|
|
14917
14956
|
FqnRef: FqnRef;
|
|
@@ -14948,6 +14987,7 @@ type LikeC4AstType = {
|
|
|
14948
14987
|
OpacityProperty: OpacityProperty;
|
|
14949
14988
|
OutgoingRelationExpr: OutgoingRelationExpr;
|
|
14950
14989
|
OutgoingRelationExpression: OutgoingRelationExpression;
|
|
14990
|
+
PaddingSizeProperty: PaddingSizeProperty;
|
|
14951
14991
|
Predicate: Predicate;
|
|
14952
14992
|
Predicates: Predicates;
|
|
14953
14993
|
Referenceable: Referenceable;
|
|
@@ -14968,6 +15008,8 @@ type LikeC4AstType = {
|
|
|
14968
15008
|
RelationshipKind: RelationshipKind;
|
|
14969
15009
|
RelationshipStyleProperty: RelationshipStyleProperty;
|
|
14970
15010
|
ShapeProperty: ShapeProperty;
|
|
15011
|
+
ShapeSizeProperty: ShapeSizeProperty;
|
|
15012
|
+
SizeProperty: SizeProperty;
|
|
14971
15013
|
SpecificationColor: SpecificationColor;
|
|
14972
15014
|
SpecificationDeploymentNodeKind: SpecificationDeploymentNodeKind;
|
|
14973
15015
|
SpecificationElementKind: SpecificationElementKind;
|
|
@@ -14976,10 +15018,12 @@ type LikeC4AstType = {
|
|
|
14976
15018
|
SpecificationRelationshipStringProperty: SpecificationRelationshipStringProperty;
|
|
14977
15019
|
SpecificationRule: SpecificationRule;
|
|
14978
15020
|
SpecificationTag: SpecificationTag;
|
|
15021
|
+
StrictFqnElementRef: StrictFqnElementRef;
|
|
14979
15022
|
StringProperty: StringProperty;
|
|
14980
15023
|
StyleProperty: StyleProperty;
|
|
14981
15024
|
Tag: Tag;
|
|
14982
15025
|
Tags: Tags;
|
|
15026
|
+
TextSizeProperty: TextSizeProperty;
|
|
14983
15027
|
ViewProperty: ViewProperty;
|
|
14984
15028
|
ViewRef: ViewRef;
|
|
14985
15029
|
ViewRule: ViewRule;
|
|
@@ -15012,7 +15056,7 @@ type LikeC4AstType = {
|
|
|
15012
15056
|
|
|
15013
15057
|
type Guard<N extends AstNode> = (n: AstNode) => n is N;
|
|
15014
15058
|
type Guarded<G> = G extends Guard<infer N> ? N : never;
|
|
15015
|
-
declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody |
|
|
15059
|
+
declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementPredicateWhereV2 | FqnRefExpr | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationPredicateWhereV2 | Element | ExtendElement | DeploymentView | DynamicView | ElementView | DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression | RelationPredicateWhere | RelationPredicateWith | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ExcludePredicate | IncludePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | Tags | DeploymentRelation | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | DynamicViewPredicateIterator | Relation | SpecificationElementKind | GlobalPredicateGroup | Globals | GlobalStyleGroup | SpecificationRule | SpecificationTag;
|
|
15016
15060
|
type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
|
|
15017
15061
|
declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
|
|
15018
15062
|
isValid: (n: ValidatableAstNode) => boolean;
|
|
@@ -15049,6 +15093,9 @@ type ParsedElementStyle = {
|
|
|
15049
15093
|
border?: c4.BorderStyle;
|
|
15050
15094
|
opacity?: number;
|
|
15051
15095
|
multiple?: boolean;
|
|
15096
|
+
size?: c4.ShapeSize;
|
|
15097
|
+
padding?: c4.SpacingSize;
|
|
15098
|
+
textSize?: c4.TextSize;
|
|
15052
15099
|
};
|
|
15053
15100
|
interface ParsedAstSpecification {
|
|
15054
15101
|
tags: Set<c4.Tag>;
|
|
@@ -15084,6 +15131,15 @@ interface ParsedAstElement {
|
|
|
15084
15131
|
[key: string]: string;
|
|
15085
15132
|
};
|
|
15086
15133
|
}
|
|
15134
|
+
interface ParsedAstExtendElement {
|
|
15135
|
+
id: c4.Fqn;
|
|
15136
|
+
astPath: string;
|
|
15137
|
+
tags?: c4.NonEmptyArray<c4.Tag>;
|
|
15138
|
+
links?: c4.NonEmptyArray<ParsedLink>;
|
|
15139
|
+
metadata?: {
|
|
15140
|
+
[key: string]: string;
|
|
15141
|
+
};
|
|
15142
|
+
}
|
|
15087
15143
|
interface ParsedAstRelation {
|
|
15088
15144
|
id: c4.RelationId;
|
|
15089
15145
|
astPath: string;
|
|
@@ -15165,6 +15221,7 @@ interface LikeC4DocumentProps {
|
|
|
15165
15221
|
diagnostics?: Array<LikeC4DocumentDiagnostic>;
|
|
15166
15222
|
c4Specification?: ParsedAstSpecification;
|
|
15167
15223
|
c4Elements?: ParsedAstElement[];
|
|
15224
|
+
c4ExtendElements?: ParsedAstExtendElement[];
|
|
15168
15225
|
c4Relations?: ParsedAstRelation[];
|
|
15169
15226
|
c4Globals?: ParsedAstGlobals;
|
|
15170
15227
|
c4Views?: ParsedAstView[];
|
|
@@ -15416,6 +15473,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15416
15473
|
parseFqnRef(astNode: FqnRef): invariant;
|
|
15417
15474
|
parseFqnExpr(astNode: FqnExpr): invariant;
|
|
15418
15475
|
parseFqnRefExpr(astNode: FqnRefExpr): invariant;
|
|
15476
|
+
parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
|
|
15419
15477
|
parseFqnExpressions(astNode: FqnExpressions): invariant[];
|
|
15420
15478
|
parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
|
|
15421
15479
|
parseRelationExpr(astNode: RelationExpr): invariant;
|
|
@@ -15474,6 +15532,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15474
15532
|
parseFqnRef(astNode: FqnRef): invariant;
|
|
15475
15533
|
parseFqnExpr(astNode: FqnExpr): invariant;
|
|
15476
15534
|
parseFqnRefExpr(astNode: FqnRefExpr): invariant;
|
|
15535
|
+
parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
|
|
15477
15536
|
parseFqnExpressions(astNode: FqnExpressions): invariant[];
|
|
15478
15537
|
parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
|
|
15479
15538
|
parseRelationExpr(astNode: RelationExpr): invariant;
|
|
@@ -15541,6 +15600,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15541
15600
|
parseFqnRef(astNode: FqnRef): invariant;
|
|
15542
15601
|
parseFqnExpr(astNode: FqnExpr): invariant;
|
|
15543
15602
|
parseFqnRefExpr(astNode: FqnRefExpr): invariant;
|
|
15603
|
+
parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
|
|
15544
15604
|
parseFqnExpressions(astNode: FqnExpressions): invariant[];
|
|
15545
15605
|
parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
|
|
15546
15606
|
parseRelationExpr(astNode: RelationExpr): invariant;
|
|
@@ -15574,6 +15634,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15574
15634
|
parseFqnRef(astNode: FqnRef): invariant;
|
|
15575
15635
|
parseFqnExpr(astNode: FqnExpr): invariant;
|
|
15576
15636
|
parseFqnRefExpr(astNode: FqnRefExpr): invariant;
|
|
15637
|
+
parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
|
|
15577
15638
|
parseFqnExpressions(astNode: FqnExpressions): invariant[];
|
|
15578
15639
|
parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
|
|
15579
15640
|
parseRelationExpr(astNode: RelationExpr): invariant;
|
|
@@ -15598,6 +15659,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15598
15659
|
new (...args: any[]): {
|
|
15599
15660
|
parseModel(): void;
|
|
15600
15661
|
parseElement(astNode: Element): ParsedAstElement;
|
|
15662
|
+
parseExtendElement(astNode: ExtendElement): ParsedAstExtendElement | null;
|
|
15601
15663
|
parseRelation(astNode: Relation): ParsedAstRelation;
|
|
15602
15664
|
isValid: IsValidFn;
|
|
15603
15665
|
readonly services: LikeC4Services;
|
|
@@ -15621,6 +15683,7 @@ declare const DocumentParserFromMixins: {
|
|
|
15621
15683
|
parseFqnRef(astNode: FqnRef): invariant;
|
|
15622
15684
|
parseFqnExpr(astNode: FqnExpr): invariant;
|
|
15623
15685
|
parseFqnRefExpr(astNode: FqnRefExpr): invariant;
|
|
15686
|
+
parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
|
|
15624
15687
|
parseFqnExpressions(astNode: FqnExpressions): invariant[];
|
|
15625
15688
|
parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
|
|
15626
15689
|
parseRelationExpr(astNode: RelationExpr): invariant;
|