@elyx-code/project-logic-tree 0.0.7061 → 0.0.7063
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/index.cjs +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -31
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14872,9 +14872,9 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14872
14872
|
|
|
14873
14873
|
export declare function findEntityTypeWithFieldName(fieldName: string): Map<EntityType, EntityFieldType>;
|
|
14874
14874
|
|
|
14875
|
-
export declare function findNextAvailableName(baseName: string, allEntitiesOfType: EntityWithNames[]): string;
|
|
14875
|
+
export declare function findNextAvailableName(baseName: string, allEntitiesOfType: EntityWithNames[], spacer?: string): string;
|
|
14876
14876
|
|
|
14877
|
-
export declare function findNextAvailableNameString(baseName: string, takenNames: string[]): string;
|
|
14877
|
+
export declare function findNextAvailableNameString(baseName: string, takenNames: string[], spacer?: string): string;
|
|
14878
14878
|
|
|
14879
14879
|
export declare function findNextCombinedSingleCallerAncestor(targetA: CallableEntityState | CallerEntityState, targetB: CallableEntityState | CallerEntityState, from?: CallerEntityState): {
|
|
14880
14880
|
ancestor: CallerEntityState | null;
|
package/dist/index.js
CHANGED
|
@@ -75911,7 +75911,7 @@ const kg = Object.values(CF), Xc = {
|
|
|
75911
75911
|
previousVersion: null,
|
|
75912
75912
|
deleted: !1,
|
|
75913
75913
|
name: he.String,
|
|
75914
|
-
value: "
|
|
75914
|
+
value: "compute-instance",
|
|
75915
75915
|
parent: tui,
|
|
75916
75916
|
autogeneration: null,
|
|
75917
75917
|
valueAsTypeList: null,
|
|
@@ -82677,23 +82677,23 @@ function jf(s, u) {
|
|
|
82677
82677
|
}
|
|
82678
82678
|
return i.codeName || null;
|
|
82679
82679
|
}
|
|
82680
|
-
function $K(s, u) {
|
|
82681
|
-
let
|
|
82682
|
-
if (!!u.some((
|
|
82683
|
-
const
|
|
82684
|
-
return !isNaN(
|
|
82680
|
+
function $K(s, u, i = " ") {
|
|
82681
|
+
let r = s;
|
|
82682
|
+
if (!!u.some((c) => c === r)) {
|
|
82683
|
+
const c = s.split(i), e = c.pop() || "", f = parseInt(e);
|
|
82684
|
+
return !isNaN(f) ? c.push(`${f + 1}`) : (c.push(e), c.push("1")), r = c.join(i), $K(r, u, i);
|
|
82685
82685
|
}
|
|
82686
|
-
return
|
|
82686
|
+
return r;
|
|
82687
82687
|
}
|
|
82688
|
-
function tc(s, u) {
|
|
82689
|
-
let
|
|
82688
|
+
function tc(s, u, i = " ") {
|
|
82689
|
+
let r = s;
|
|
82690
82690
|
if (!!u.some(
|
|
82691
|
-
(
|
|
82691
|
+
(c) => c.name === r
|
|
82692
82692
|
)) {
|
|
82693
|
-
const
|
|
82694
|
-
return !isNaN(
|
|
82693
|
+
const c = s.split(i), e = c.pop() || "", f = parseInt(e);
|
|
82694
|
+
return !isNaN(f) ? c.push(`${f + 1}`) : (c.push(e), c.push("1")), r = c.join(i), tc(r, u, i);
|
|
82695
82695
|
}
|
|
82696
|
-
return
|
|
82696
|
+
return r;
|
|
82697
82697
|
}
|
|
82698
82698
|
function yci(s, u) {
|
|
82699
82699
|
const r = s.project.getDefinitionEntities(
|
|
@@ -107641,16 +107641,17 @@ function ffi(s, u) {
|
|
|
107641
107641
|
}
|
|
107642
107642
|
const W = x.map(
|
|
107643
107643
|
(X) => {
|
|
107644
|
-
var Q;
|
|
107645
|
-
return ((Q = X.properties.find(
|
|
107646
|
-
(
|
|
107647
|
-
(
|
|
107644
|
+
var Q, re;
|
|
107645
|
+
return ((re = (Q = X.properties.find(
|
|
107646
|
+
(oe) => oe.implements.some(
|
|
107647
|
+
(Y) => Y.id === j["built-in-base-entity"].BUILT_IN_COMPUTE_ENTITY.properties.computeName.id
|
|
107648
107648
|
)
|
|
107649
|
-
)) == null ? void 0 : Q.
|
|
107649
|
+
)) == null ? void 0 : Q.defaultValue) == null ? void 0 : re.value) || "";
|
|
107650
107650
|
}
|
|
107651
107651
|
), ee = $K(
|
|
107652
|
-
|
|
107653
|
-
W
|
|
107652
|
+
U.value || "compute-instance",
|
|
107653
|
+
W,
|
|
107654
|
+
"-"
|
|
107654
107655
|
);
|
|
107655
107656
|
U.metaSync(
|
|
107656
107657
|
{ value: ee },
|
|
@@ -109271,20 +109272,21 @@ class Rfi extends ao {
|
|
|
109271
109272
|
Ee.COMPUTE_ENTITY
|
|
109272
109273
|
) && m.id !== this.id
|
|
109273
109274
|
).forEach((m) => {
|
|
109275
|
+
var E;
|
|
109274
109276
|
const v = m.properties.find(
|
|
109275
|
-
(
|
|
109276
|
-
(
|
|
109277
|
+
(A) => A.implements.some(
|
|
109278
|
+
(C) => C.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
|
|
109277
109279
|
)
|
|
109278
109280
|
);
|
|
109279
|
-
if (v && (v == null ? void 0 : v.id) !== a.id && v.
|
|
109280
|
-
const
|
|
109281
|
+
if (v && (v == null ? void 0 : v.id) !== a.id && ((E = v.defaultValue) == null ? void 0 : E.value) === c) {
|
|
109282
|
+
const A = new ci({
|
|
109281
109283
|
id: a.id + "--" + Ie.ComputeNameNotUnique,
|
|
109282
109284
|
message: `Compute name "${c}" is duplicated.`,
|
|
109283
109285
|
severity: be.Error,
|
|
109284
109286
|
code: Ie.ComputeNameNotUnique,
|
|
109285
109287
|
entity: a
|
|
109286
109288
|
});
|
|
109287
|
-
e.errors.push(
|
|
109289
|
+
e.errors.push(A);
|
|
109288
109290
|
}
|
|
109289
109291
|
}), e;
|
|
109290
109292
|
});
|
|
@@ -193021,21 +193023,22 @@ function YCi(s) {
|
|
|
193021
193023
|
return s.implements.some((a) => a.id === i) && s.project.entities.filter(
|
|
193022
193024
|
(a) => $i(a, Ee.COMPUTE_ENTITY) && a.id !== s.parent.id
|
|
193023
193025
|
).forEach((a) => {
|
|
193026
|
+
var e, f, h;
|
|
193024
193027
|
const c = a.properties.find(
|
|
193025
|
-
(
|
|
193026
|
-
(
|
|
193028
|
+
(m) => m.implements.some(
|
|
193029
|
+
(v) => v.id === j[d.BuiltInBaseEntity][Ee.COMPUTE_ENTITY].properties.computeName.id
|
|
193027
193030
|
)
|
|
193028
193031
|
);
|
|
193029
|
-
if (c && (c == null ? void 0 : c.id) !== s.id && c.
|
|
193030
|
-
const
|
|
193032
|
+
if (c && (c == null ? void 0 : c.id) !== s.id && ((e = c.defaultValue) == null ? void 0 : e.value) === ((f = s.defaultValue) == null ? void 0 : f.value)) {
|
|
193033
|
+
const m = Zt({
|
|
193031
193034
|
id: `${s.id}--${Ie.ComputeNameNotUnique}`,
|
|
193032
|
-
message: `Compute name "${
|
|
193035
|
+
message: `Compute name "${(h = c.defaultValue) == null ? void 0 : h.value}" is duplicated.`,
|
|
193033
193036
|
severity: be.Error,
|
|
193034
193037
|
code: Ie.ComputeNameNotUnique,
|
|
193035
193038
|
entity: s,
|
|
193036
193039
|
firstRelationship: c
|
|
193037
193040
|
});
|
|
193038
|
-
u.push(
|
|
193041
|
+
u.push(m.error);
|
|
193039
193042
|
}
|
|
193040
193043
|
}), u;
|
|
193041
193044
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7063",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|