@likec4/core 1.20.1 → 1.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/index.cjs +6 -6
- package/dist/builder/index.d.cts +3 -3
- package/dist/builder/index.d.mts +3 -3
- package/dist/builder/index.d.ts +3 -3
- package/dist/builder/index.mjs +6 -6
- package/dist/compute-view/index.cjs +5 -5
- package/dist/compute-view/index.d.cts +4 -4
- package/dist/compute-view/index.d.mts +4 -4
- package/dist/compute-view/index.d.ts +4 -4
- package/dist/compute-view/index.mjs +6 -6
- package/dist/index.cjs +71 -573
- package/dist/index.d.cts +9 -133
- package/dist/index.d.mts +9 -133
- package/dist/index.d.ts +9 -133
- package/dist/index.mjs +8 -512
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +5 -5
- package/dist/model/index.d.mts +5 -5
- package/dist/model/index.d.ts +5 -5
- package/dist/model/index.mjs +1 -1
- package/dist/shared/{core.DunIMHRf.mjs → core.0PxLtLpP.mjs} +1 -1
- package/dist/shared/{core.BvdNMbcA.d.cts → core.88YY6vtF.d.mts} +2 -2
- package/dist/shared/{core.CqCTxzMY.mjs → core.BG1hfxpq.mjs} +29 -620
- package/dist/shared/{core.ByNgh-mC.d.cts → core.BIZD3l1g.d.cts} +1 -1
- package/dist/shared/{core.D74xkKkG.d.ts → core.BJfn72tj.d.cts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.cts → core.BJfn72tj.d.mts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.mts → core.BJfn72tj.d.ts} +5 -0
- package/dist/shared/{core.M-JWF7SS.mjs → core.Bezy7K65.mjs} +1 -1
- package/dist/shared/{core.D_Gc58Gt.d.ts → core.Bs71hdR4.d.ts} +2 -1
- package/dist/shared/{core.D6-fWbM3.d.ts → core.BtISRjMA.d.ts} +1 -1
- package/dist/shared/{core.B72vUaNB.d.cts → core.C0ygs98j.d.cts} +2 -1
- package/dist/shared/core.CCyhaU-4.mjs +14819 -0
- package/dist/shared/{core.DsoCu540.cjs → core.CKYxnFEl.cjs} +1 -1
- package/dist/shared/{core.Damrzla-.d.ts → core.CNUzoKM7.d.ts} +2 -2
- package/dist/shared/{core.sLaWHBjR.d.mts → core.CajOK_t3.d.mts} +1 -1
- package/dist/shared/{core.BdbFkE_p.d.cts → core.Cmfo_N4F.d.mts} +3 -3
- package/dist/shared/{core.jy6z2iRn.d.mts → core.CwZmAghJ.d.cts} +3 -3
- package/dist/shared/{core.ZWiGANIJ.d.ts → core.D4wZW7zR.d.ts} +3 -3
- package/dist/shared/{core.BGus30EM.cjs → core.DRfrKNT6.cjs} +48 -643
- package/dist/shared/{core.gv1bMwCC.cjs → core.Db_OTRdC.cjs} +1 -1
- package/dist/shared/{core.Dfzrh1VA.d.mts → core.DjMYkPMQ.d.mts} +2 -1
- package/dist/shared/{core.m3rCQAv6.mjs → core.El-gigOM.mjs} +1 -1
- package/dist/shared/core.FACQZmma.cjs +14874 -0
- package/dist/shared/{core.BRuJ3Wzf.d.mts → core.Lh2RFJf1.d.cts} +2 -2
- package/dist/shared/{core.B2QYWlYe.cjs → core.uxHtIZaH.cjs} +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +6 -2
- package/dist/utils/index.d.cts +129 -145
- package/dist/utils/index.d.mts +129 -145
- package/dist/utils/index.d.ts +129 -145
- package/dist/utils/index.mjs +3 -3
- package/package.json +7 -6
- package/src/compute-view/deployment-view/clean-connections.ts +1 -1
- package/src/compute-view/deployment-view/stages/stage-final.ts +1 -1
- package/src/compute-view/element-view/__test__/fixture.ts +2 -0
- package/src/compute-view/element-view/compute.ts +1 -1
- package/src/compute-view/element-view/memory/memory.ts +3 -3
- package/src/compute-view/memory/ops.ts +1 -1
- package/src/compute-view/relationships-view/layout.ts +1 -1
- package/src/compute-view/relationships-view/utils.ts +1 -1
- package/src/compute-view/utils/applyCustomElementProperties.ts +9 -6
- package/src/compute-view/utils/applyViewRuleStyles.ts +7 -4
- package/src/index.ts +0 -8
- package/src/model/DeploymentModel.ts +1 -1
- package/src/model/LikeC4Model.ts +3 -3
- package/src/types/element.ts +7 -2
- package/src/types/expression.ts +1 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/set.ts +5 -2
- package/dist/shared/core.BxvDITEI.mjs +0 -859
- package/dist/shared/core.C9DCnJh8.cjs +0 -908
- package/src/builder/Builder-style1.test-d.ts +0 -190
- package/src/builder/Builder-style2.test-d.ts +0 -175
- package/src/compute-view/utils/uniqueTags.test.ts +0 -42
- package/src/model/LikeC4Model.test-d.ts +0 -152
|
@@ -104,6 +104,11 @@ interface ElementStyle {
|
|
|
104
104
|
* @default 100
|
|
105
105
|
*/
|
|
106
106
|
readonly opacity?: number;
|
|
107
|
+
/**
|
|
108
|
+
* If true, the element is rendered as multiple shapes
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
readonly multiple?: boolean;
|
|
107
112
|
}
|
|
108
113
|
type Tag<Tags extends string = string> = Tagged<Tags, 'Tag'>;
|
|
109
114
|
interface TagSpec {
|
|
@@ -104,6 +104,11 @@ interface ElementStyle {
|
|
|
104
104
|
* @default 100
|
|
105
105
|
*/
|
|
106
106
|
readonly opacity?: number;
|
|
107
|
+
/**
|
|
108
|
+
* If true, the element is rendered as multiple shapes
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
readonly multiple?: boolean;
|
|
107
112
|
}
|
|
108
113
|
type Tag<Tags extends string = string> = Tagged<Tags, 'Tag'>;
|
|
109
114
|
interface TagSpec {
|
|
@@ -104,6 +104,11 @@ interface ElementStyle {
|
|
|
104
104
|
* @default 100
|
|
105
105
|
*/
|
|
106
106
|
readonly opacity?: number;
|
|
107
|
+
/**
|
|
108
|
+
* If true, the element is rendered as multiple shapes
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
readonly multiple?: boolean;
|
|
107
112
|
}
|
|
108
113
|
type Tag<Tags extends string = string> = Tagged<Tags, 'Tag'>;
|
|
109
114
|
interface TagSpec {
|
|
@@ -14,7 +14,7 @@ function nonexhaustive(value) {
|
|
|
14
14
|
throw new Error(`NonExhaustive value: ${value}`);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function u$1(t,n,a){let o=r=>t(r,...n);return a===
|
|
17
|
+
function u$1(t,n,a){let o=r=>t(r,...n);return a===undefined?o:Object.assign(o,{lazy:a,lazyArgs:n})}
|
|
18
18
|
|
|
19
19
|
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")}
|
|
20
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tagged, NonEmptyTuple, Simplify, MergeExclusive } from 'type-fest';
|
|
2
|
-
import { N as NonEmptyArray, F as Fqn, l as ElementShape, s as Color, I as IconUrl, h as BorderStyle, f as ElementKind, o as Tag, E as ExclusiveUnion, m as ElementStyle, n as Link, T as ThemeColorValues, X as XYPoint, P as Point, x as ThemeColor, j as ElementKindSpecification, q as TypedElement } from './core.
|
|
2
|
+
import { N as NonEmptyArray, F as Fqn, l as ElementShape, s as Color, I as IconUrl, h as BorderStyle, f as ElementKind, o as Tag, E as ExclusiveUnion, m as ElementStyle, n as Link, T as ThemeColorValues, X as XYPoint, P as Point, x as ThemeColor, j as ElementKindSpecification, q as TypedElement } from './core.BJfn72tj.js';
|
|
3
3
|
|
|
4
4
|
type EqualOperator<V> = {
|
|
5
5
|
eq: V;
|
|
@@ -92,6 +92,7 @@ interface CustomElementExpr extends Omit<BaseExpr, 'custom'> {
|
|
|
92
92
|
border?: BorderStyle;
|
|
93
93
|
opacity?: number;
|
|
94
94
|
navigateTo?: ViewId;
|
|
95
|
+
multiple?: boolean;
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
declare function isCustomElement(expr: Expression): expr is CustomElementExpr;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tagged, NonEmptyTuple, Simplify, MergeExclusive } from 'type-fest';
|
|
2
|
-
import { N as NonEmptyArray, F as Fqn, l as ElementShape, s as Color, I as IconUrl, h as BorderStyle, f as ElementKind, o as Tag, E as ExclusiveUnion, m as ElementStyle, n as Link, T as ThemeColorValues, X as XYPoint, P as Point, x as ThemeColor, j as ElementKindSpecification, q as TypedElement } from './core.
|
|
2
|
+
import { N as NonEmptyArray, F as Fqn, l as ElementShape, s as Color, I as IconUrl, h as BorderStyle, f as ElementKind, o as Tag, E as ExclusiveUnion, m as ElementStyle, n as Link, T as ThemeColorValues, X as XYPoint, P as Point, x as ThemeColor, j as ElementKindSpecification, q as TypedElement } from './core.BJfn72tj.cjs';
|
|
3
3
|
|
|
4
4
|
type EqualOperator<V> = {
|
|
5
5
|
eq: V;
|
|
@@ -92,6 +92,7 @@ interface CustomElementExpr extends Omit<BaseExpr, 'custom'> {
|
|
|
92
92
|
border?: BorderStyle;
|
|
93
93
|
opacity?: number;
|
|
94
94
|
navigateTo?: ViewId;
|
|
95
|
+
multiple?: boolean;
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
declare function isCustomElement(expr: Expression): expr is CustomElementExpr;
|