@elyx-code/project-logic-tree 0.0.6058 → 0.0.6060
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.js
CHANGED
|
@@ -1142,7 +1142,7 @@ const w = {
|
|
|
1142
1142
|
id: Jt.inputs.first.id,
|
|
1143
1143
|
type: n.ValueDescriptor,
|
|
1144
1144
|
version: 1,
|
|
1145
|
-
name: "
|
|
1145
|
+
name: "Text",
|
|
1146
1146
|
description: "The first text to join to the second one. Its value will be at the beginning of the resulting text.",
|
|
1147
1147
|
dataType: JT,
|
|
1148
1148
|
parentRelationType: A.FixedArguments,
|
|
@@ -1208,7 +1208,7 @@ const w = {
|
|
|
1208
1208
|
id: Jt.inputs.second.id,
|
|
1209
1209
|
type: n.ValueDescriptor,
|
|
1210
1210
|
version: 1,
|
|
1211
|
-
name: "
|
|
1211
|
+
name: "Text",
|
|
1212
1212
|
description: "The second text to join to the first one. Its value will be at the end of the resulting text.",
|
|
1213
1213
|
dataType: YT,
|
|
1214
1214
|
parentRelationType: A.FixedArguments,
|
|
@@ -1276,7 +1276,7 @@ const w = {
|
|
|
1276
1276
|
id: Jt.inputs.dynamicString.id,
|
|
1277
1277
|
type: n.ValueDescriptor,
|
|
1278
1278
|
version: 1,
|
|
1279
|
-
name: "
|
|
1279
|
+
name: "Text",
|
|
1280
1280
|
description: "Text to join to the previous ones. Its value will be at the end of the resulting text.",
|
|
1281
1281
|
dataType: lb,
|
|
1282
1282
|
parentRelationType: A.DynamicArgument,
|
|
@@ -1459,7 +1459,7 @@ const w = {
|
|
|
1459
1459
|
index: 1,
|
|
1460
1460
|
parent: Ab
|
|
1461
1461
|
}, Ld = {
|
|
1462
|
-
id: Z.
|
|
1462
|
+
id: Z.Split,
|
|
1463
1463
|
type: n.ActionDescriptor,
|
|
1464
1464
|
version: 1,
|
|
1465
1465
|
name: Z.Split,
|
|
@@ -11481,7 +11481,7 @@ const iO = {
|
|
|
11481
11481
|
id: "8f2094c0-e27e-465e-9280-112da0de9019",
|
|
11482
11482
|
declaration: Ka,
|
|
11483
11483
|
version: 1,
|
|
11484
|
-
inputs: [
|
|
11484
|
+
inputs: [Pp, RB],
|
|
11485
11485
|
outputs: [OB],
|
|
11486
11486
|
process: null,
|
|
11487
11487
|
calledByError: [],
|
|
@@ -26717,11 +26717,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26717
26717
|
// If the declaration has inputs (value-descriptor entities) that are not yet added to the operation,
|
|
26718
26718
|
// create the input-map entities and add them to the operation
|
|
26719
26719
|
syncMissingFixedInputs() {
|
|
26720
|
-
|
|
26720
|
+
const e = this.declaration.inputs.filter(
|
|
26721
26721
|
(t) => t.parentRelationType === A.FixedArguments && !this.inputs.find(
|
|
26722
26722
|
(i) => i.declaration.id === t.id
|
|
26723
26723
|
)
|
|
26724
|
-
)
|
|
26724
|
+
);
|
|
26725
|
+
return this.inputs.sort((t, i) => t.index - i.index), e.forEach((t) => {
|
|
26726
|
+
this.inputs.forEach((s) => {
|
|
26727
|
+
s.index >= t.index && s.index++;
|
|
26728
|
+
});
|
|
26725
26729
|
const i = {
|
|
26726
26730
|
id: B.UUID.uuid(),
|
|
26727
26731
|
version: 1,
|
|
@@ -26729,7 +26733,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26729
26733
|
declaration: t.toJSON(),
|
|
26730
26734
|
readsValue: null,
|
|
26731
26735
|
defaultValue: null,
|
|
26732
|
-
index:
|
|
26736
|
+
index: t.index,
|
|
26733
26737
|
name: null,
|
|
26734
26738
|
description: null,
|
|
26735
26739
|
parent: this.toReference()
|
|
@@ -26738,30 +26742,34 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26738
26742
|
this.project
|
|
26739
26743
|
);
|
|
26740
26744
|
a.setParent(this), a.initChildren(), a.addSelfToProject();
|
|
26741
|
-
}), this;
|
|
26745
|
+
}), this.inputs.sort((t, i) => t.index - i.index), this;
|
|
26742
26746
|
}
|
|
26743
26747
|
// If the declaration has outputs (value-descriptor entities) that are not yet added to the operation,
|
|
26744
26748
|
// create the output-map entities and add them to the operation
|
|
26745
26749
|
syncMissingFixedOutputs() {
|
|
26746
|
-
|
|
26750
|
+
const e = this.declaration.outputs.filter(
|
|
26747
26751
|
(t) => t.parentRelationType === A.FixedReturns && !this.outputs.find(
|
|
26748
26752
|
(i) => i.declaration.id === t.id
|
|
26749
26753
|
)
|
|
26750
|
-
)
|
|
26754
|
+
);
|
|
26755
|
+
return this.outputs.sort((t, i) => t.index - i.index), e.forEach((t) => {
|
|
26756
|
+
this.outputs.forEach((s) => {
|
|
26757
|
+
s.index >= t.index && s.index++;
|
|
26758
|
+
});
|
|
26751
26759
|
const i = {
|
|
26752
26760
|
id: B.UUID.uuid(),
|
|
26753
26761
|
version: 1,
|
|
26754
26762
|
type: n.OutputMap,
|
|
26755
26763
|
declaration: t.toJSON(),
|
|
26756
26764
|
writesValues: [],
|
|
26757
|
-
index:
|
|
26765
|
+
index: t.index,
|
|
26758
26766
|
parent: this.toReference()
|
|
26759
26767
|
}, a = E(
|
|
26760
26768
|
i,
|
|
26761
26769
|
this.project
|
|
26762
26770
|
);
|
|
26763
26771
|
a.setParent(this), a.initChildren(), a.addSelfToProject();
|
|
26764
|
-
}), this;
|
|
26772
|
+
}), this.outputs.sort((t, i) => t.index - i.index), this;
|
|
26765
26773
|
}
|
|
26766
26774
|
};
|
|
26767
26775
|
c(se, "MUTABLE_BASE_PROPERTIES", []), c(se, "INMUTABLE_BASE_PROPERTIES", ["id", "type", "version"]), c(se, "BASE_PROPERTIES", [
|
|
@@ -36867,6 +36875,10 @@ const Ie = class Ie {
|
|
|
36867
36875
|
c(this, "project");
|
|
36868
36876
|
// Meta
|
|
36869
36877
|
c(this, "initialized", !1);
|
|
36878
|
+
// Always false at this level
|
|
36879
|
+
// But it can be set to true in the extending class
|
|
36880
|
+
// Or when the full project state is loaded
|
|
36881
|
+
c(this, "autoexecutable", !1);
|
|
36870
36882
|
this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.description = e.description;
|
|
36871
36883
|
}
|
|
36872
36884
|
/*
|
|
@@ -45302,57 +45314,58 @@ class kk extends te {
|
|
|
45302
45314
|
}
|
|
45303
45315
|
}
|
|
45304
45316
|
class qk extends te {
|
|
45305
|
-
constructor(
|
|
45306
|
-
super(Zr,
|
|
45317
|
+
constructor(t) {
|
|
45318
|
+
super(Zr, t);
|
|
45319
|
+
c(this, "autoexecutable", !0);
|
|
45307
45320
|
}
|
|
45308
|
-
getEntityToMatchInputMap(
|
|
45309
|
-
return
|
|
45310
|
-
(
|
|
45311
|
-
var
|
|
45312
|
-
return ((
|
|
45321
|
+
getEntityToMatchInputMap(t) {
|
|
45322
|
+
return t.inputs.find(
|
|
45323
|
+
(i) => {
|
|
45324
|
+
var a;
|
|
45325
|
+
return ((a = i.declaration) == null ? void 0 : a.id) === w.operation[Se.Validate].inputs.entityToMatch.id;
|
|
45313
45326
|
}
|
|
45314
45327
|
) || null;
|
|
45315
45328
|
}
|
|
45316
|
-
getDataToValidateInputMap(
|
|
45317
|
-
return
|
|
45318
|
-
(
|
|
45319
|
-
var
|
|
45320
|
-
return ((
|
|
45329
|
+
getDataToValidateInputMap(t) {
|
|
45330
|
+
return t.inputs.find(
|
|
45331
|
+
(i) => {
|
|
45332
|
+
var a;
|
|
45333
|
+
return ((a = i.declaration) == null ? void 0 : a.id) === w.operation[Se.Validate].inputs.dataToValidate.id;
|
|
45321
45334
|
}
|
|
45322
45335
|
) || null;
|
|
45323
45336
|
}
|
|
45324
|
-
getOutputDataOutputMap(
|
|
45325
|
-
return
|
|
45326
|
-
(
|
|
45327
|
-
var
|
|
45328
|
-
return ((
|
|
45337
|
+
getOutputDataOutputMap(t) {
|
|
45338
|
+
return t.outputs.find(
|
|
45339
|
+
(i) => {
|
|
45340
|
+
var a;
|
|
45341
|
+
return ((a = i.declaration) == null ? void 0 : a.id) === w.operation[Se.Validate].outputs.outputEntity.id;
|
|
45329
45342
|
}
|
|
45330
45343
|
) || null;
|
|
45331
45344
|
}
|
|
45332
|
-
getEntityToMatch(
|
|
45333
|
-
let
|
|
45334
|
-
if (
|
|
45335
|
-
const
|
|
45336
|
-
|
|
45345
|
+
getEntityToMatch(t) {
|
|
45346
|
+
let i = null;
|
|
45347
|
+
if (t.readsValue) {
|
|
45348
|
+
const s = t.readsValue.getDataType();
|
|
45349
|
+
s && s.entity && s.entity.type === n.CustomEntity && (i = s.entity);
|
|
45337
45350
|
}
|
|
45338
|
-
const
|
|
45339
|
-
return !
|
|
45340
|
-
}
|
|
45341
|
-
syncOperationInstance(
|
|
45342
|
-
const
|
|
45343
|
-
|
|
45344
|
-
const
|
|
45345
|
-
|
|
45346
|
-
const
|
|
45347
|
-
return
|
|
45348
|
-
}
|
|
45349
|
-
syncEntityToMatchInputMapDataType(
|
|
45350
|
-
var
|
|
45351
|
-
if (((
|
|
45351
|
+
const a = t.getDefaultValue();
|
|
45352
|
+
return !i && a && a.valueAsType && !Array.isArray(a.valueAsType) && a.valueAsType.type === n.CustomEntity && (i = a.valueAsType), i;
|
|
45353
|
+
}
|
|
45354
|
+
syncOperationInstance(t) {
|
|
45355
|
+
const i = this.getEntityToMatchInputMap(t);
|
|
45356
|
+
i && this.syncEntityToMatchInputMapDataType(i);
|
|
45357
|
+
const a = this.getDataToValidateInputMap(t);
|
|
45358
|
+
a && this.syncDataToValidateInputMapDataType(a);
|
|
45359
|
+
const s = this.getOutputDataOutputMap(t);
|
|
45360
|
+
return s && this.syncOutputDataOutputMapDataType(s), t;
|
|
45361
|
+
}
|
|
45362
|
+
syncEntityToMatchInputMapDataType(t) {
|
|
45363
|
+
var a, s, o;
|
|
45364
|
+
if (((a = t.declaration) == null ? void 0 : a.id) !== w.operation[Se.Validate].inputs.entityToMatch.id)
|
|
45352
45365
|
return null;
|
|
45353
|
-
if (!
|
|
45354
|
-
const
|
|
45355
|
-
id:
|
|
45366
|
+
if (!t.dataType) {
|
|
45367
|
+
const l = {
|
|
45368
|
+
id: t.id + "--infered-data-type",
|
|
45356
45369
|
version: 1,
|
|
45357
45370
|
type: n.DataType,
|
|
45358
45371
|
isList: !1,
|
|
@@ -45365,33 +45378,33 @@ class qk extends te {
|
|
|
45365
45378
|
like: !0,
|
|
45366
45379
|
inferred: !0,
|
|
45367
45380
|
defaultValue: null,
|
|
45368
|
-
parent:
|
|
45369
|
-
},
|
|
45370
|
-
|
|
45371
|
-
|
|
45381
|
+
parent: t.toReference()
|
|
45382
|
+
}, u = E(
|
|
45383
|
+
l,
|
|
45384
|
+
t.project
|
|
45372
45385
|
);
|
|
45373
|
-
|
|
45386
|
+
u.setParent(t), u.initChildren(), t.setDataType(u);
|
|
45374
45387
|
}
|
|
45375
|
-
(
|
|
45388
|
+
(s = t.dataType) == null || s.sync({
|
|
45376
45389
|
inferred: !0,
|
|
45377
45390
|
like: !1,
|
|
45378
45391
|
asType: !0
|
|
45379
45392
|
});
|
|
45380
|
-
const
|
|
45381
|
-
return (
|
|
45393
|
+
const i = this.getEntityToMatch(t);
|
|
45394
|
+
return (o = t.dataType) == null || o.setEntity(i), t.dataType;
|
|
45382
45395
|
}
|
|
45383
|
-
syncDataToValidateInputMapDataType(
|
|
45384
|
-
var
|
|
45385
|
-
if (((
|
|
45396
|
+
syncDataToValidateInputMapDataType(t) {
|
|
45397
|
+
var o, l, u;
|
|
45398
|
+
if (((o = t.declaration) == null ? void 0 : o.id) !== w.operation[Se.Validate].inputs.dataToValidate.id)
|
|
45386
45399
|
return null;
|
|
45387
|
-
const
|
|
45388
|
-
|
|
45400
|
+
const i = this.getEntityToMatchInputMap(
|
|
45401
|
+
t.parent
|
|
45389
45402
|
);
|
|
45390
|
-
if (!
|
|
45403
|
+
if (!i || !this.getEntityToMatch(i))
|
|
45391
45404
|
return null;
|
|
45392
|
-
if (!
|
|
45393
|
-
const
|
|
45394
|
-
id:
|
|
45405
|
+
if (!t.dataType) {
|
|
45406
|
+
const p = {
|
|
45407
|
+
id: t.id + "--infered-data-type",
|
|
45395
45408
|
version: 1,
|
|
45396
45409
|
type: n.DataType,
|
|
45397
45410
|
isList: !1,
|
|
@@ -45404,35 +45417,35 @@ class qk extends te {
|
|
|
45404
45417
|
like: !0,
|
|
45405
45418
|
inferred: !0,
|
|
45406
45419
|
defaultValue: null,
|
|
45407
|
-
parent:
|
|
45408
|
-
},
|
|
45409
|
-
|
|
45410
|
-
|
|
45420
|
+
parent: t.toReference()
|
|
45421
|
+
}, h = E(
|
|
45422
|
+
p,
|
|
45423
|
+
t.project
|
|
45411
45424
|
);
|
|
45412
|
-
|
|
45425
|
+
h.setParent(t), h.initChildren(), t.setDataType(h);
|
|
45413
45426
|
}
|
|
45414
|
-
(
|
|
45427
|
+
(l = t.dataType) == null || l.sync({
|
|
45415
45428
|
inferred: !0,
|
|
45416
45429
|
like: !0,
|
|
45417
45430
|
asType: !1
|
|
45418
45431
|
});
|
|
45419
|
-
const
|
|
45420
|
-
|
|
45432
|
+
const s = this.getEntityToMatch(
|
|
45433
|
+
i
|
|
45421
45434
|
);
|
|
45422
|
-
return (
|
|
45435
|
+
return (u = t.dataType) == null || u.setEntity(s), t.dataType;
|
|
45423
45436
|
}
|
|
45424
|
-
syncOutputDataOutputMapDataType(
|
|
45425
|
-
var
|
|
45426
|
-
if (((
|
|
45437
|
+
syncOutputDataOutputMapDataType(t) {
|
|
45438
|
+
var o, l, u;
|
|
45439
|
+
if (((o = t.declaration) == null ? void 0 : o.id) !== w.operation[Se.Validate].outputs.outputEntity.id)
|
|
45427
45440
|
return null;
|
|
45428
|
-
const
|
|
45429
|
-
|
|
45441
|
+
const i = this.getEntityToMatchInputMap(
|
|
45442
|
+
t.parent
|
|
45430
45443
|
);
|
|
45431
|
-
if (!
|
|
45444
|
+
if (!i || !this.getEntityToMatch(i))
|
|
45432
45445
|
return null;
|
|
45433
|
-
if (!
|
|
45434
|
-
const
|
|
45435
|
-
id:
|
|
45446
|
+
if (!t.dataType) {
|
|
45447
|
+
const p = {
|
|
45448
|
+
id: t.id + "--infered-data-type",
|
|
45436
45449
|
version: 1,
|
|
45437
45450
|
type: n.DataType,
|
|
45438
45451
|
isList: !1,
|
|
@@ -45445,34 +45458,34 @@ class qk extends te {
|
|
|
45445
45458
|
like: !0,
|
|
45446
45459
|
inferred: !0,
|
|
45447
45460
|
defaultValue: null,
|
|
45448
|
-
parent:
|
|
45449
|
-
},
|
|
45450
|
-
|
|
45451
|
-
|
|
45461
|
+
parent: t.toReference()
|
|
45462
|
+
}, h = E(
|
|
45463
|
+
p,
|
|
45464
|
+
t.project
|
|
45452
45465
|
);
|
|
45453
|
-
|
|
45466
|
+
h.setParent(t), h.initChildren(), t.setDataType(h);
|
|
45454
45467
|
}
|
|
45455
|
-
(
|
|
45468
|
+
(l = t.dataType) == null || l.sync({
|
|
45456
45469
|
inferred: !0,
|
|
45457
45470
|
like: !0,
|
|
45458
45471
|
asType: !1
|
|
45459
45472
|
});
|
|
45460
|
-
const
|
|
45461
|
-
|
|
45473
|
+
const s = this.getEntityToMatch(
|
|
45474
|
+
i
|
|
45462
45475
|
);
|
|
45463
|
-
return (
|
|
45476
|
+
return (u = t.dataType) == null || u.setEntity(s), t.dataType;
|
|
45464
45477
|
}
|
|
45465
45478
|
/*
|
|
45466
45479
|
Based on the entity that the input map is declaration,
|
|
45467
45480
|
we dynamically infer its data type
|
|
45468
45481
|
*/
|
|
45469
|
-
inferInputMapDataType(
|
|
45470
|
-
var
|
|
45471
|
-
return ((
|
|
45482
|
+
inferInputMapDataType(t) {
|
|
45483
|
+
var i, a;
|
|
45484
|
+
return ((i = t.declaration) == null ? void 0 : i.id) === w.operation[Se.Validate].inputs.entityToMatch.id ? this.syncEntityToMatchInputMapDataType(t) : ((a = t.declaration) == null ? void 0 : a.id) === w.operation[Se.Validate].inputs.dataToValidate.id ? this.syncDataToValidateInputMapDataType(t) : null;
|
|
45472
45485
|
}
|
|
45473
|
-
inferOutputMapDataType(
|
|
45474
|
-
var
|
|
45475
|
-
return ((
|
|
45486
|
+
inferOutputMapDataType(t) {
|
|
45487
|
+
var i;
|
|
45488
|
+
return ((i = t.declaration) == null ? void 0 : i.id) === w.operation[Se.Validate].outputs.outputEntity.id ? this.syncOutputDataOutputMapDataType(t) : null;
|
|
45476
45489
|
}
|
|
45477
45490
|
}
|
|
45478
45491
|
class Jk extends te {
|