@likec4/core 1.44.0 → 1.46.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.
Files changed (74) hide show
  1. package/dist/builder/index.d.mts +15 -13
  2. package/dist/builder/index.mjs +33 -17
  3. package/dist/compute-view/index.d.mts +8 -7
  4. package/dist/compute-view/index.mjs +7 -6
  5. package/dist/compute-view/relationships-view/index.d.mts +8 -7
  6. package/dist/compute-view/relationships-view/index.mjs +2 -2
  7. package/dist/geometry/index.d.mts +109 -0
  8. package/dist/geometry/index.mjs +328 -0
  9. package/dist/index.d.mts +29 -7
  10. package/dist/index.mjs +10 -8
  11. package/dist/model/connection/deployment/index.d.mts +10 -9
  12. package/dist/model/connection/deployment/index.mjs +2 -2
  13. package/dist/model/connection/index.d.mts +11 -10
  14. package/dist/model/connection/index.mjs +3 -3
  15. package/dist/model/connection/model/index.d.mts +10 -9
  16. package/dist/model/connection/model/index.mjs +2 -2
  17. package/dist/model/index.d.mts +13 -26
  18. package/dist/model/index.mjs +4 -4
  19. package/dist/shared/{core.Bv3cd-jC.mjs → core.3ZhnKAlZ.mjs} +9 -5
  20. package/dist/shared/{core.CKNmSm2W.d.mts → core.5gPDaaG5.d.mts} +9 -15
  21. package/dist/shared/{core.BnOetIAR.d.mts → core.9U0HL3oG.d.mts} +3 -3
  22. package/dist/shared/{core.M9ayqQZa.mjs → core.BK-tI3Q3.mjs} +2 -3
  23. package/dist/shared/{core.DjAM-S6a.d.mts → core.BLG-ADpi.d.mts} +16 -14
  24. package/dist/shared/core.BPGOjone.d.mts +46 -0
  25. package/dist/shared/{core.DIE3F6sw.mjs → core.BYdtmqY5.mjs} +1 -2
  26. package/dist/shared/core.BhNcrwzK.mjs +7 -0
  27. package/dist/shared/{core.CDOKQTW6.d.mts → core.BkSYCfRg.d.mts} +2 -2
  28. package/dist/shared/core.BkVA6gjl.mjs +5 -0
  29. package/dist/shared/{core.5ZQ-r3Oa.d.mts → core.BqtAzeAh.d.mts} +1 -1
  30. package/dist/shared/{core.DEieYfbG.mjs → core.BspBF3SJ.mjs} +22 -70
  31. package/dist/shared/{core.BnDbAOR2.d.mts → core.Byj60hH6.d.mts} +3 -3
  32. package/dist/shared/{core.CR3PmPzr.mjs → core.CBLX4mT8.mjs} +3811 -15032
  33. package/dist/shared/{core.DX-WYEPA.d.mts → core.CDdf8izT.d.mts} +4 -2
  34. package/dist/shared/core.CLSZtnFh.mjs +69 -0
  35. package/dist/shared/{core.bKIs4oDO.mjs → core.CQPEY2wQ.mjs} +5 -4
  36. package/dist/shared/{core.WwMWeiFL.d.mts → core.CQYL_Z-_.d.mts} +3 -3
  37. package/dist/shared/{core.6VsRBhGY.mjs → core.CdNCAwq7.mjs} +1 -1
  38. package/dist/shared/{core.DrUt0Lbi.mjs → core.CmGY9blO.mjs} +198 -291
  39. package/dist/shared/core.Coi_LOUZ.mjs +7 -0
  40. package/dist/shared/{core.C_Ni6yHl.mjs → core.D0WZutNd.mjs} +3 -1
  41. package/dist/shared/{core.DTJYgLXI.d.mts → core.D4Y4U8Lp.d.mts} +3 -3
  42. package/dist/shared/{core.BMtVqKl7.d.mts → core.DE-g9oFF.d.mts} +22 -46
  43. package/dist/shared/{core.23WeDKcI.mjs → core.DJpiszim.mjs} +265 -233
  44. package/dist/shared/{core.h4TqqSC0.mjs → core.DU8pv3Q6.mjs} +71 -1174
  45. package/dist/shared/{core.CHwVhuc9.mjs → core.DbQpDoJS.mjs} +12 -15
  46. package/dist/shared/{core.CbsSAn1j.mjs → core.DbfO90vF.mjs} +1 -12
  47. package/dist/shared/{core.C0Ye2OCr.mjs → core.DqlrMlsf.mjs} +1 -1
  48. package/dist/shared/core.Qv7vZIwZ.mjs +1282 -0
  49. package/dist/shared/core.oSV6SRfk.mjs +13 -0
  50. package/dist/shared/{core.BuQZczj6.mjs → core.om36dXXW.mjs} +5 -2
  51. package/dist/shared/{core.8mmHFn9g.d.mts → core.or6-EHsb.d.mts} +2 -2
  52. package/dist/shared/{core.DFCHU59b.mjs → core.xeuDd__E.mjs} +3 -4
  53. package/dist/styles/index.d.mts +7 -6
  54. package/dist/styles/index.mjs +4 -4
  55. package/dist/types/_aux.d.mts +2 -2
  56. package/dist/types/expression-model.d.mts +3 -3
  57. package/dist/types/expression.d.mts +3 -3
  58. package/dist/types/fqnRef.d.mts +2 -2
  59. package/dist/types/fqnRef.mjs +1 -1
  60. package/dist/types/index.d.mts +11 -9
  61. package/dist/types/index.mjs +6 -166
  62. package/dist/types/scalar.d.mts +1 -1
  63. package/dist/types/scalar.mjs +1 -1
  64. package/dist/utils/graphology/index.mjs +1 -1
  65. package/dist/utils/index.d.mts +3 -3
  66. package/dist/utils/index.mjs +9 -8
  67. package/dist/utils/iterable/index.d.mts +17 -1
  68. package/dist/utils/iterable/index.mjs +17 -1
  69. package/geometry/package.json +4 -0
  70. package/package.json +20 -12
  71. package/dist/shared/core.B9BjmjuH.mjs +0 -9
  72. package/dist/shared/core.BR4zXDH-.mjs +0 -13
  73. package/dist/shared/core.BdPcbSkN.mjs +0 -118
  74. package/dist/shared/core.OHD4KXm9.mjs +0 -5
@@ -1,13 +0,0 @@
1
- function memoizeProp(obj, tag, fn) {
2
- const tagSymbol = typeof tag === "symbol" ? tag : Symbol.for(tag);
3
- if (!obj.hasOwnProperty(tagSymbol)) {
4
- Object.defineProperty(obj, tagSymbol, {
5
- enumerable: false,
6
- writable: false,
7
- value: fn()
8
- });
9
- }
10
- return obj[tagSymbol];
11
- }
12
-
13
- export { memoizeProp as m };
@@ -1,118 +0,0 @@
1
- var support = {};
2
-
3
- var hasRequiredSupport;
4
-
5
- function requireSupport () {
6
- if (hasRequiredSupport) return support;
7
- hasRequiredSupport = 1;
8
- support.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== 'undefined';
9
- support.SYMBOL_SUPPORT = typeof Symbol !== 'undefined';
10
- return support;
11
- }
12
-
13
- /**
14
- * Obliterator Iterator Class
15
- * ===========================
16
- *
17
- * Simple class representing the library's iterators.
18
- */
19
-
20
- var iterator;
21
- var hasRequiredIterator;
22
-
23
- function requireIterator () {
24
- if (hasRequiredIterator) return iterator;
25
- hasRequiredIterator = 1;
26
- /**
27
- * Iterator class.
28
- *
29
- * @constructor
30
- * @param {function} next - Next function.
31
- */
32
- function Iterator(next) {
33
- if (typeof next !== 'function')
34
- throw new Error('obliterator/iterator: expecting a function!');
35
-
36
- this.next = next;
37
- }
38
-
39
- /**
40
- * If symbols are supported, we add `next` to `Symbol.iterator`.
41
- */
42
- if (typeof Symbol !== 'undefined')
43
- Iterator.prototype[Symbol.iterator] = function () {
44
- return this;
45
- };
46
-
47
- /**
48
- * Returning an iterator of the given values.
49
- *
50
- * @param {any...} values - Values.
51
- * @return {Iterator}
52
- */
53
- Iterator.of = function () {
54
- var args = arguments,
55
- l = args.length,
56
- i = 0;
57
-
58
- return new Iterator(function () {
59
- if (i >= l) return {done: true};
60
-
61
- return {done: false, value: args[i++]};
62
- });
63
- };
64
-
65
- /**
66
- * Returning an empty iterator.
67
- *
68
- * @return {Iterator}
69
- */
70
- Iterator.empty = function () {
71
- var iterator = new Iterator(function () {
72
- return {done: true};
73
- });
74
-
75
- return iterator;
76
- };
77
-
78
- /**
79
- * Returning an iterator over the given indexed sequence.
80
- *
81
- * @param {string|Array} sequence - Target sequence.
82
- * @return {Iterator}
83
- */
84
- Iterator.fromSequence = function (sequence) {
85
- var i = 0,
86
- l = sequence.length;
87
-
88
- return new Iterator(function () {
89
- if (i >= l) return {done: true};
90
-
91
- return {done: false, value: sequence[i++]};
92
- });
93
- };
94
-
95
- /**
96
- * Returning whether the given value is an iterator.
97
- *
98
- * @param {any} value - Value.
99
- * @return {boolean}
100
- */
101
- Iterator.is = function (value) {
102
- if (value instanceof Iterator) return true;
103
-
104
- return (
105
- typeof value === 'object' &&
106
- value !== null &&
107
- typeof value.next === 'function'
108
- );
109
- };
110
-
111
- /**
112
- * Exporting.
113
- */
114
- iterator = Iterator;
115
- return iterator;
116
- }
117
-
118
- export { requireSupport as a, requireIterator as r };
@@ -1,5 +0,0 @@
1
- const e={done:true,hasNext:false},t$1={done:false,hasNext:false},n$1=()=>e;
2
-
3
- function t(e,...t){let a=e,o=t.map(e=>`lazy`in e?r(e):void 0),s=0;for(;s<t.length;){if(o[s]===void 0||!i(a)){let e=t[s];a=e(a),s+=1;continue}let e=[];for(let n=s;n<t.length;n++){let t=o[n];if(t===void 0||(e.push(t),t.isSingle))break}let r=[];for(let t of a)if(n(t,r,e))break;let{isSingle:c}=e.at(-1);a=c?r[0]:r,s+=e.length;}return a}function n(t,r,i){if(i.length===0)return r.push(t),false;let a=t,o=t$1,s=false;for(let[e,t]of i.entries()){let{index:c,items:l}=t;if(l.push(a),o=t(a,c,l),t.index+=1,o.hasNext){if(o.hasMany??false){for(let t of o.next)if(n(t,r,i.slice(e+1)))return true;return s}a=o.next;}if(!o.hasNext)break;o.done&&(s=true);}return o.hasNext&&r.push(a),s}function r(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??false,index:0,items:[]})}function i(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}
4
-
5
- export { t$1 as a, n$1 as n, t };