@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.
Files changed (79) hide show
  1. package/dist/builder/index.cjs +6 -6
  2. package/dist/builder/index.d.cts +3 -3
  3. package/dist/builder/index.d.mts +3 -3
  4. package/dist/builder/index.d.ts +3 -3
  5. package/dist/builder/index.mjs +6 -6
  6. package/dist/compute-view/index.cjs +5 -5
  7. package/dist/compute-view/index.d.cts +4 -4
  8. package/dist/compute-view/index.d.mts +4 -4
  9. package/dist/compute-view/index.d.ts +4 -4
  10. package/dist/compute-view/index.mjs +6 -6
  11. package/dist/index.cjs +71 -573
  12. package/dist/index.d.cts +9 -133
  13. package/dist/index.d.mts +9 -133
  14. package/dist/index.d.ts +9 -133
  15. package/dist/index.mjs +8 -512
  16. package/dist/model/index.cjs +1 -1
  17. package/dist/model/index.d.cts +5 -5
  18. package/dist/model/index.d.mts +5 -5
  19. package/dist/model/index.d.ts +5 -5
  20. package/dist/model/index.mjs +1 -1
  21. package/dist/shared/{core.DunIMHRf.mjs → core.0PxLtLpP.mjs} +1 -1
  22. package/dist/shared/{core.BvdNMbcA.d.cts → core.88YY6vtF.d.mts} +2 -2
  23. package/dist/shared/{core.CqCTxzMY.mjs → core.BG1hfxpq.mjs} +29 -620
  24. package/dist/shared/{core.ByNgh-mC.d.cts → core.BIZD3l1g.d.cts} +1 -1
  25. package/dist/shared/{core.D74xkKkG.d.ts → core.BJfn72tj.d.cts} +5 -0
  26. package/dist/shared/{core.D74xkKkG.d.cts → core.BJfn72tj.d.mts} +5 -0
  27. package/dist/shared/{core.D74xkKkG.d.mts → core.BJfn72tj.d.ts} +5 -0
  28. package/dist/shared/{core.M-JWF7SS.mjs → core.Bezy7K65.mjs} +1 -1
  29. package/dist/shared/{core.D_Gc58Gt.d.ts → core.Bs71hdR4.d.ts} +2 -1
  30. package/dist/shared/{core.D6-fWbM3.d.ts → core.BtISRjMA.d.ts} +1 -1
  31. package/dist/shared/{core.B72vUaNB.d.cts → core.C0ygs98j.d.cts} +2 -1
  32. package/dist/shared/core.CCyhaU-4.mjs +14819 -0
  33. package/dist/shared/{core.DsoCu540.cjs → core.CKYxnFEl.cjs} +1 -1
  34. package/dist/shared/{core.Damrzla-.d.ts → core.CNUzoKM7.d.ts} +2 -2
  35. package/dist/shared/{core.sLaWHBjR.d.mts → core.CajOK_t3.d.mts} +1 -1
  36. package/dist/shared/{core.BdbFkE_p.d.cts → core.Cmfo_N4F.d.mts} +3 -3
  37. package/dist/shared/{core.jy6z2iRn.d.mts → core.CwZmAghJ.d.cts} +3 -3
  38. package/dist/shared/{core.ZWiGANIJ.d.ts → core.D4wZW7zR.d.ts} +3 -3
  39. package/dist/shared/{core.BGus30EM.cjs → core.DRfrKNT6.cjs} +48 -643
  40. package/dist/shared/{core.gv1bMwCC.cjs → core.Db_OTRdC.cjs} +1 -1
  41. package/dist/shared/{core.Dfzrh1VA.d.mts → core.DjMYkPMQ.d.mts} +2 -1
  42. package/dist/shared/{core.m3rCQAv6.mjs → core.El-gigOM.mjs} +1 -1
  43. package/dist/shared/core.FACQZmma.cjs +14874 -0
  44. package/dist/shared/{core.BRuJ3Wzf.d.mts → core.Lh2RFJf1.d.cts} +2 -2
  45. package/dist/shared/{core.B2QYWlYe.cjs → core.uxHtIZaH.cjs} +1 -1
  46. package/dist/types/index.cjs +1 -1
  47. package/dist/types/index.d.cts +4 -4
  48. package/dist/types/index.d.mts +4 -4
  49. package/dist/types/index.d.ts +4 -4
  50. package/dist/types/index.mjs +1 -1
  51. package/dist/utils/index.cjs +6 -2
  52. package/dist/utils/index.d.cts +129 -145
  53. package/dist/utils/index.d.mts +129 -145
  54. package/dist/utils/index.d.ts +129 -145
  55. package/dist/utils/index.mjs +3 -3
  56. package/package.json +7 -6
  57. package/src/compute-view/deployment-view/clean-connections.ts +1 -1
  58. package/src/compute-view/deployment-view/stages/stage-final.ts +1 -1
  59. package/src/compute-view/element-view/__test__/fixture.ts +2 -0
  60. package/src/compute-view/element-view/compute.ts +1 -1
  61. package/src/compute-view/element-view/memory/memory.ts +3 -3
  62. package/src/compute-view/memory/ops.ts +1 -1
  63. package/src/compute-view/relationships-view/layout.ts +1 -1
  64. package/src/compute-view/relationships-view/utils.ts +1 -1
  65. package/src/compute-view/utils/applyCustomElementProperties.ts +9 -6
  66. package/src/compute-view/utils/applyViewRuleStyles.ts +7 -4
  67. package/src/index.ts +0 -8
  68. package/src/model/DeploymentModel.ts +1 -1
  69. package/src/model/LikeC4Model.ts +3 -3
  70. package/src/types/element.ts +7 -2
  71. package/src/types/expression.ts +1 -0
  72. package/src/utils/index.ts +2 -0
  73. package/src/utils/set.ts +5 -2
  74. package/dist/shared/core.BxvDITEI.mjs +0 -859
  75. package/dist/shared/core.C9DCnJh8.cjs +0 -908
  76. package/src/builder/Builder-style1.test-d.ts +0 -190
  77. package/src/builder/Builder-style2.test-d.ts +0 -175
  78. package/src/compute-view/utils/uniqueTags.test.ts +0 -42
  79. package/src/model/LikeC4Model.test-d.ts +0 -152
@@ -1,4 +1,4 @@
1
- import { F as Fqn } from './core.D74xkKkG.cjs';
1
+ import { F as Fqn } from './core.BJfn72tj.cjs';
2
2
 
3
3
  declare function parentFqn<E extends string>(fqn: E): E | null;
4
4
  declare function nameFromFqn<E extends string>(fqn: E): string;
@@ -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===void 0?o:Object.assign(o,{lazy:a,lazyArgs:n})}
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.D74xkKkG.js';
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,4 +1,4 @@
1
- import { F as Fqn } from './core.D74xkKkG.js';
1
+ import { F as Fqn } from './core.BJfn72tj.js';
2
2
 
3
3
  declare function parentFqn<E extends string>(fqn: E): E | null;
4
4
  declare function nameFromFqn<E extends string>(fqn: E): string;
@@ -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.D74xkKkG.cjs';
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;