@elyx-code/project-logic-tree 0.0.6026 → 0.0.6027
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 +76 -69
- package/dist/index.umd.cjs +33 -33
- package/dist/tree/state/project/project.d.ts +1 -0
- package/dist/tree/utils/uuid.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Yf = Object.defineProperty;
|
|
2
2
|
var zf = (n, e, t) => e in n ? Yf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var c = (n, e, t) => (zf(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
var i = /* @__PURE__ */ ((n) => (n.CustomEntity = "custom-entity", n.BuiltInBaseEntity = "built-in-base-entity", n.Project = "project", n.InstalledProject = "installed-project", n.GlobalEvent = "global-event", n.DataType = "data-type", n.FunctionCall = "function-call", n.FunctionDeclaration = "function-declaration", n.ActionDescriptor = "action-descriptor", n.ValueDescriptor = "value-descriptor", n.ArgumentDeclaration = "argument-declaration", n.InputMap = "input-map", n.ReturnStatement = "return-statement", n.BreakStatement = "break-statement", n.ContinueStatement = "continue-statement", n.ReturnDeclaration = "return-declaration", n.OutputMap = "output-map", n.PrimitiveEntity = "primitive-entity", n.PrimitiveValue = "primitive-value", n.Property = "property", n.Operation = "operation", n.Condition = "condition", n.VariableDeclaration = "variable-declaration", n.VariableInstance = "variable-instance", n.Search = "search", n.Loop = "loop", n.InternalCall = "internal-call", n.GenericReference = "generic-reference", n))(i || {}), x = /* @__PURE__ */ ((n) => (n.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", n.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", n.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", n.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", n.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", n.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", n))(x || {}), ke = /* @__PURE__ */ ((n) => (n.CurrentDateAndTime = "current-date-and-time", n.Unique = "unique", n.Random = "random", n))(ke || {}), _t = /* @__PURE__ */ ((n) => (n.DeletePersistedEntity = "base-delete-persisted-entity", n.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", n.AbortExecution = "base-abort-execution", n))(_t || {}), F = /* @__PURE__ */ ((n) => (n.Fixed = "fixed", n.None = "none", n.Dynamic = "dynamic", n))(F || {}), M = /* @__PURE__ */ ((n) => (n.FixedArguments = "fixed-arguments", n.FixedReturns = "fixed-returns", n.ReturnedError = "returned-error", n.OngoingProcessExecution = "ongoing-process-execution", n))(M || {}), D = /* @__PURE__ */ ((n) => (n.EntityTemplate = "entity-template", n.ActionDescriptor = "action-descriptor", n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Null = "null", n.Enum = "enum", n.JSON = "json", n.Date = "date", n.UUID = "uuid", n.File = "file", n))(D || {}), mt = /* @__PURE__ */ ((n) => (n.Addition = "addition", n.Substraction = "substraction", n.Multiplication = "multiplication", n.Division = "division", n.Remainder = "remainder", n.Exponentiation = "exponentiation", n))(mt || {}), Ae = /* @__PURE__ */ ((n) => (n.Join = "string-join", n.Split = "stringSsplit", n.DeleteLast = "string-delete-last", n.DeleteFirst = "string-delete-first", n.DeleteIndex = "string-delete-index", n.AddIndex = "string-add-index", n.ReplaceFirst = "string-replace-first", n.ReplaceLast = "string-replace-last", n.ReplaceIndex = "string-replace-index", n.ReplaceSingleMatch = "string-replace-single-match", n.ReplaceAllMatches = "string-replace-all-matches", n.GetIndex = "string-get-index", n.GetFirst = "string-get-first", n.GetLast = "string-get-last", n.Append = "string-append", n.Prepend = "string-prepend", n))(Ae || {}), J = /* @__PURE__ */ ((n) => (n.Join = "list-join", n.Split = "list-split", n.DeleteLast = "list-delete-last", n.DeleteFirst = "list-delete-first", n.DeleteIndex = "list-delete-index", n.AddIndex = "list-add-index", n.ReplaceFirst = "list-replace-first", n.ReplaceLast = "list-replace-last", n.ReplaceIndex = "list-replace-index", n.ReplaceSingleMatch = "list-replace-single-match", n.ReplaceAllMatches = "list-replace-all-matches", n.GetIndex = "list-get-index", n.GetFirst = "list-get-first", n.GetLast = "list-get-last", n.Append = "list-append", n.Prepend = "list-prepend", n))(J || {}), Oe = /* @__PURE__ */ ((n) => (n.Parallel = "parallel", n.Sequential = "sequential", n.Wait = "wait", n))(Oe || {}), st = /* @__PURE__ */ ((n) => (n.CreateNewInstance = "create-new-instance", n.Validate = "validate", n))(st || {}), rt = /* @__PURE__ */ ((n) => (n.HttpRequest = "base-http-request", n))(rt || {}), _e = /* @__PURE__ */ ((n) => (n.Equal = "equal", n.NotEqual = "not-equal", n.And = "and", n.Or = "or", n.LessThan = "less-than", n.MoreThan = "more-than", n.LessThanOrEqual = "less-than-or-equal", n.MoreThanOrEqual = "more-than-or-equal", n))(_e || {}), jt = /* @__PURE__ */ ((n) => (n.Empty = "empty", n.NotEmpty = "not-empty", n))(jt || {}),
|
|
4
|
+
var i = /* @__PURE__ */ ((n) => (n.CustomEntity = "custom-entity", n.BuiltInBaseEntity = "built-in-base-entity", n.Project = "project", n.InstalledProject = "installed-project", n.GlobalEvent = "global-event", n.DataType = "data-type", n.FunctionCall = "function-call", n.FunctionDeclaration = "function-declaration", n.ActionDescriptor = "action-descriptor", n.ValueDescriptor = "value-descriptor", n.ArgumentDeclaration = "argument-declaration", n.InputMap = "input-map", n.ReturnStatement = "return-statement", n.BreakStatement = "break-statement", n.ContinueStatement = "continue-statement", n.ReturnDeclaration = "return-declaration", n.OutputMap = "output-map", n.PrimitiveEntity = "primitive-entity", n.PrimitiveValue = "primitive-value", n.Property = "property", n.Operation = "operation", n.Condition = "condition", n.VariableDeclaration = "variable-declaration", n.VariableInstance = "variable-instance", n.Search = "search", n.Loop = "loop", n.InternalCall = "internal-call", n.GenericReference = "generic-reference", n))(i || {}), x = /* @__PURE__ */ ((n) => (n.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", n.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", n.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", n.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", n.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", n.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", n))(x || {}), ke = /* @__PURE__ */ ((n) => (n.CurrentDateAndTime = "current-date-and-time", n.Unique = "unique", n.Random = "random", n))(ke || {}), _t = /* @__PURE__ */ ((n) => (n.DeletePersistedEntity = "base-delete-persisted-entity", n.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", n.AbortExecution = "base-abort-execution", n))(_t || {}), F = /* @__PURE__ */ ((n) => (n.Fixed = "fixed", n.None = "none", n.Dynamic = "dynamic", n))(F || {}), M = /* @__PURE__ */ ((n) => (n.FixedArguments = "fixed-arguments", n.FixedReturns = "fixed-returns", n.ReturnedError = "returned-error", n.OngoingProcessExecution = "ongoing-process-execution", n))(M || {}), D = /* @__PURE__ */ ((n) => (n.EntityTemplate = "entity-template", n.ActionDescriptor = "action-descriptor", n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Null = "null", n.Enum = "enum", n.JSON = "json", n.Date = "date", n.UUID = "uuid", n.File = "file", n))(D || {}), mt = /* @__PURE__ */ ((n) => (n.Addition = "addition", n.Substraction = "substraction", n.Multiplication = "multiplication", n.Division = "division", n.Remainder = "remainder", n.Exponentiation = "exponentiation", n))(mt || {}), Ae = /* @__PURE__ */ ((n) => (n.Join = "string-join", n.Split = "stringSsplit", n.DeleteLast = "string-delete-last", n.DeleteFirst = "string-delete-first", n.DeleteIndex = "string-delete-index", n.AddIndex = "string-add-index", n.ReplaceFirst = "string-replace-first", n.ReplaceLast = "string-replace-last", n.ReplaceIndex = "string-replace-index", n.ReplaceSingleMatch = "string-replace-single-match", n.ReplaceAllMatches = "string-replace-all-matches", n.GetIndex = "string-get-index", n.GetFirst = "string-get-first", n.GetLast = "string-get-last", n.Append = "string-append", n.Prepend = "string-prepend", n))(Ae || {}), J = /* @__PURE__ */ ((n) => (n.Join = "list-join", n.Split = "list-split", n.DeleteLast = "list-delete-last", n.DeleteFirst = "list-delete-first", n.DeleteIndex = "list-delete-index", n.AddIndex = "list-add-index", n.ReplaceFirst = "list-replace-first", n.ReplaceLast = "list-replace-last", n.ReplaceIndex = "list-replace-index", n.ReplaceSingleMatch = "list-replace-single-match", n.ReplaceAllMatches = "list-replace-all-matches", n.GetIndex = "list-get-index", n.GetFirst = "list-get-first", n.GetLast = "list-get-last", n.Append = "list-append", n.Prepend = "list-prepend", n))(J || {}), Oe = /* @__PURE__ */ ((n) => (n.Parallel = "parallel", n.Sequential = "sequential", n.Wait = "wait", n))(Oe || {}), st = /* @__PURE__ */ ((n) => (n.CreateNewInstance = "create-new-instance", n.Validate = "validate", n))(st || {}), rt = /* @__PURE__ */ ((n) => (n.HttpRequest = "base-http-request", n))(rt || {}), _e = /* @__PURE__ */ ((n) => (n.Equal = "equal", n.NotEqual = "not-equal", n.And = "and", n.Or = "or", n.LessThan = "less-than", n.MoreThan = "more-than", n.LessThanOrEqual = "less-than-or-equal", n.MoreThanOrEqual = "more-than-or-equal", n))(_e || {}), jt = /* @__PURE__ */ ((n) => (n.Empty = "empty", n.NotEmpty = "not-empty", n))(jt || {}), Q = /* @__PURE__ */ ((n) => (n.ManualFlow = "manual-flow-loop", n.Counted = "counted-loop", n.List = "list-loop", n.ObjectKeys = "object-keys-loop", n.ObjectValues = "object-values-loop", n.String = "string-loop", n))(Q || {}), Fe = /* @__PURE__ */ ((n) => (n.OrDataTypeGroup = "or-data-type-group", n.AndDataTypeGroup = "and-data-type-group", n.DynamicArgumentTypes = "dynamic-argument-types", n.DynamicReturnTypes = "dynamic-return-types", n))(Fe || {}), Rn = /* @__PURE__ */ ((n) => (n.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", n))(Rn || {}), Zf = /* @__PURE__ */ ((n) => (n.Error = "error", n.Task = "task", n.Return = "return", n))(Zf || {});
|
|
5
5
|
const pr = [
|
|
6
6
|
i.VariableDeclaration,
|
|
7
7
|
i.VariableInstance,
|
|
@@ -324,8 +324,8 @@ const L = {
|
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
[i.Loop]: {
|
|
327
|
-
[
|
|
328
|
-
id:
|
|
327
|
+
[Q.List]: {
|
|
328
|
+
id: Q.List,
|
|
329
329
|
inputs: {
|
|
330
330
|
list: {
|
|
331
331
|
id: "iterate-over-list-loop-list-input-id"
|
|
@@ -337,8 +337,8 @@ const L = {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
},
|
|
340
|
-
[
|
|
341
|
-
id:
|
|
340
|
+
[Q.String]: {
|
|
341
|
+
id: Q.String,
|
|
342
342
|
inputs: {
|
|
343
343
|
string: {
|
|
344
344
|
id: "iterate-over-string-loop-string-input-id"
|
|
@@ -350,8 +350,8 @@ const L = {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
|
-
[
|
|
354
|
-
id:
|
|
353
|
+
[Q.ObjectKeys]: {
|
|
354
|
+
id: Q.ObjectKeys,
|
|
355
355
|
inputs: {
|
|
356
356
|
object: {
|
|
357
357
|
id: "iterate-over-object-keys-loop-object-input-id"
|
|
@@ -363,8 +363,8 @@ const L = {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
},
|
|
366
|
-
[
|
|
367
|
-
id:
|
|
366
|
+
[Q.ObjectValues]: {
|
|
367
|
+
id: Q.ObjectValues,
|
|
368
368
|
inputs: {
|
|
369
369
|
object: {
|
|
370
370
|
id: "iterate-over-object-values-loop-object-input-id"
|
|
@@ -376,8 +376,8 @@ const L = {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
|
-
[
|
|
380
|
-
id:
|
|
379
|
+
[Q.ManualFlow]: {
|
|
380
|
+
id: Q.ManualFlow,
|
|
381
381
|
inputs: {},
|
|
382
382
|
outputs: {
|
|
383
383
|
results: {
|
|
@@ -385,8 +385,8 @@ const L = {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
|
-
[
|
|
389
|
-
id:
|
|
388
|
+
[Q.Counted]: {
|
|
389
|
+
id: Q.Counted,
|
|
390
390
|
inputs: {
|
|
391
391
|
number: {
|
|
392
392
|
id: "iterate-over-counted-loop-number-input-id"
|
|
@@ -2315,7 +2315,7 @@ const OE = {
|
|
|
2315
2315
|
}, Dd = L[i.Loop]["list-loop"], vR = {
|
|
2316
2316
|
id: "iterate-over-list-loop-return-declaration-parent-ref-id",
|
|
2317
2317
|
type: i.GenericReference,
|
|
2318
|
-
entityId:
|
|
2318
|
+
entityId: Q.List,
|
|
2319
2319
|
entityType: i.ActionDescriptor
|
|
2320
2320
|
}, gR = {
|
|
2321
2321
|
id: Dd.outputs.results.id,
|
|
@@ -2349,7 +2349,7 @@ const OE = {
|
|
|
2349
2349
|
}, PR = {
|
|
2350
2350
|
id: "iterate-over-list-loop-list-argument-declaration-parent-ref-id",
|
|
2351
2351
|
type: i.GenericReference,
|
|
2352
|
-
entityId:
|
|
2352
|
+
entityId: Q.List,
|
|
2353
2353
|
entityType: i.ActionDescriptor
|
|
2354
2354
|
}, AR = {
|
|
2355
2355
|
id: Dd.inputs.list.id,
|
|
@@ -2363,10 +2363,10 @@ const OE = {
|
|
|
2363
2363
|
parent: PR,
|
|
2364
2364
|
parentRelationType: M.FixedArguments
|
|
2365
2365
|
}, Ur = {
|
|
2366
|
-
id:
|
|
2366
|
+
id: Q.List,
|
|
2367
2367
|
type: i.ActionDescriptor,
|
|
2368
2368
|
version: 1,
|
|
2369
|
-
name:
|
|
2369
|
+
name: Q.List,
|
|
2370
2370
|
description: "Iterates over a list of entities",
|
|
2371
2371
|
fixedArguments: [AR],
|
|
2372
2372
|
fixedReturns: [gR],
|
|
@@ -2397,7 +2397,7 @@ const OE = {
|
|
|
2397
2397
|
}, wR = {
|
|
2398
2398
|
id: "manual-flow-loop-previous-iterations-results-declaration-parent-ref-id",
|
|
2399
2399
|
type: i.GenericReference,
|
|
2400
|
-
entityId:
|
|
2400
|
+
entityId: Q.ManualFlow,
|
|
2401
2401
|
entityType: i.ActionDescriptor
|
|
2402
2402
|
}, BR = {
|
|
2403
2403
|
id: SR.outputs.results.id,
|
|
@@ -2411,10 +2411,10 @@ const OE = {
|
|
|
2411
2411
|
parentRelationType: M.FixedReturns,
|
|
2412
2412
|
parent: wR
|
|
2413
2413
|
}, Pd = {
|
|
2414
|
-
id:
|
|
2414
|
+
id: Q.ManualFlow,
|
|
2415
2415
|
type: i.ActionDescriptor,
|
|
2416
2416
|
version: 1,
|
|
2417
|
-
name:
|
|
2417
|
+
name: Q.ManualFlow,
|
|
2418
2418
|
description: "A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",
|
|
2419
2419
|
fixedArguments: [],
|
|
2420
2420
|
dynamicArgumentTypes: null,
|
|
@@ -21215,17 +21215,17 @@ function k8(n) {
|
|
|
21215
21215
|
}
|
|
21216
21216
|
function q8(n) {
|
|
21217
21217
|
switch (n.id) {
|
|
21218
|
-
case
|
|
21218
|
+
case Q.List:
|
|
21219
21219
|
return "Loop over list items";
|
|
21220
|
-
case
|
|
21220
|
+
case Q.ManualFlow:
|
|
21221
21221
|
return "Manual flow control loop";
|
|
21222
|
-
case
|
|
21222
|
+
case Q.ObjectKeys:
|
|
21223
21223
|
return "Loop over object keys";
|
|
21224
|
-
case
|
|
21224
|
+
case Q.ObjectValues:
|
|
21225
21225
|
return "Loop over object values";
|
|
21226
|
-
case
|
|
21226
|
+
case Q.Counted:
|
|
21227
21227
|
return "Loop given number of times";
|
|
21228
|
-
case
|
|
21228
|
+
case Q.String:
|
|
21229
21229
|
return "Loop over text characters";
|
|
21230
21230
|
case mt.Addition:
|
|
21231
21231
|
return "Sum numbers";
|
|
@@ -25967,7 +25967,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
25967
25967
|
var l, u, p, h, f;
|
|
25968
25968
|
const e = [], t = [], r = [];
|
|
25969
25969
|
switch (this.declaration.id) {
|
|
25970
|
-
case
|
|
25970
|
+
case Q.List: {
|
|
25971
25971
|
const R = this.body.inputs.find((g) => {
|
|
25972
25972
|
var I;
|
|
25973
25973
|
return g.name === q.CURRENT_VALUE_ARG_NAME || g.id === ((I = this.currentValueArgumentDeclaration) == null ? void 0 : I.id);
|
|
@@ -26027,11 +26027,11 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26027
26027
|
}
|
|
26028
26028
|
break;
|
|
26029
26029
|
}
|
|
26030
|
-
case
|
|
26030
|
+
case Q.ManualFlow:
|
|
26031
26031
|
break;
|
|
26032
|
-
case
|
|
26032
|
+
case Q.Counted:
|
|
26033
26033
|
break;
|
|
26034
|
-
case
|
|
26034
|
+
case Q.ObjectKeys: {
|
|
26035
26035
|
const R = this.body.inputs.find((g) => {
|
|
26036
26036
|
var I;
|
|
26037
26037
|
return g.name === q.CURRENT_VALUE_ARG_NAME || g.id === ((I = this.currentValueArgumentDeclaration) == null ? void 0 : I.id);
|
|
@@ -26092,7 +26092,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26092
26092
|
}
|
|
26093
26093
|
break;
|
|
26094
26094
|
}
|
|
26095
|
-
case
|
|
26095
|
+
case Q.ObjectValues: {
|
|
26096
26096
|
const R = this.body.inputs.find((g) => {
|
|
26097
26097
|
var I;
|
|
26098
26098
|
return g.name === q.CURRENT_VALUE_ARG_NAME || g.id === ((I = this.currentValueArgumentDeclaration) == null ? void 0 : I.id);
|
|
@@ -26219,7 +26219,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26219
26219
|
}
|
|
26220
26220
|
break;
|
|
26221
26221
|
}
|
|
26222
|
-
case
|
|
26222
|
+
case Q.String: {
|
|
26223
26223
|
const R = this.body.inputs.find((g) => {
|
|
26224
26224
|
var I;
|
|
26225
26225
|
return g.name === q.CURRENT_VALUE_ARG_NAME || g.id === ((I = this.currentValueArgumentDeclaration) == null ? void 0 : I.id);
|
|
@@ -26319,7 +26319,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26319
26319
|
syncInputMaps() {
|
|
26320
26320
|
const e = [], t = [], r = [];
|
|
26321
26321
|
switch (this.declaration.id) {
|
|
26322
|
-
case
|
|
26322
|
+
case Q.List: {
|
|
26323
26323
|
let a = null;
|
|
26324
26324
|
if (this.inputs.forEach((s) => {
|
|
26325
26325
|
var o;
|
|
@@ -26356,13 +26356,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26356
26356
|
}
|
|
26357
26357
|
break;
|
|
26358
26358
|
}
|
|
26359
|
-
case
|
|
26359
|
+
case Q.ManualFlow: {
|
|
26360
26360
|
this.inputs.forEach((a) => {
|
|
26361
26361
|
a.remove(), r.push(a);
|
|
26362
26362
|
});
|
|
26363
26363
|
break;
|
|
26364
26364
|
}
|
|
26365
|
-
case
|
|
26365
|
+
case Q.Counted: {
|
|
26366
26366
|
let a = null;
|
|
26367
26367
|
if (this.inputs.forEach((s) => {
|
|
26368
26368
|
var o;
|
|
@@ -26399,7 +26399,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26399
26399
|
}
|
|
26400
26400
|
break;
|
|
26401
26401
|
}
|
|
26402
|
-
case
|
|
26402
|
+
case Q.ObjectKeys: {
|
|
26403
26403
|
let a = null;
|
|
26404
26404
|
if (this.inputs.forEach((s) => {
|
|
26405
26405
|
var o;
|
|
@@ -26436,7 +26436,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26436
26436
|
}
|
|
26437
26437
|
break;
|
|
26438
26438
|
}
|
|
26439
|
-
case
|
|
26439
|
+
case Q.ObjectValues: {
|
|
26440
26440
|
let a = null;
|
|
26441
26441
|
if (this.inputs.forEach((s) => {
|
|
26442
26442
|
var o;
|
|
@@ -26473,7 +26473,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26473
26473
|
}
|
|
26474
26474
|
break;
|
|
26475
26475
|
}
|
|
26476
|
-
case
|
|
26476
|
+
case Q.String: {
|
|
26477
26477
|
let a = null;
|
|
26478
26478
|
if (this.inputs.forEach((s) => {
|
|
26479
26479
|
var o;
|
|
@@ -41301,7 +41301,7 @@ function c5(n, e) {
|
|
|
41301
41301
|
throw new Error("Invalid entity type: " + n.type);
|
|
41302
41302
|
}
|
|
41303
41303
|
}
|
|
41304
|
-
const
|
|
41304
|
+
const X = class X {
|
|
41305
41305
|
// values: PrimitiveValueState[] = [];
|
|
41306
41306
|
constructor(e) {
|
|
41307
41307
|
c(this, "initialData");
|
|
@@ -41349,9 +41349,15 @@ const Q = class Q {
|
|
|
41349
41349
|
c(this, "references", []);
|
|
41350
41350
|
this.initialData = e, this.id = e.id, this.version = e.version, this.name = e.name, this.description = e.description, this.x = 0, this.y = 0;
|
|
41351
41351
|
try {
|
|
41352
|
-
|
|
41352
|
+
(!X.UUID || X.UUID.isBackup) && (X.UUID = ma == null ? void 0 : ma()), X.UUID || (X.UUID = {
|
|
41353
|
+
isBackup: !0,
|
|
41354
|
+
// Generate a 32 character UUID
|
|
41355
|
+
uuid: () => Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15),
|
|
41356
|
+
fromUUID: (t) => t
|
|
41357
|
+
});
|
|
41353
41358
|
} catch (t) {
|
|
41354
|
-
console.error("Error initializing UUID module", t),
|
|
41359
|
+
console.error("Error initializing UUID module", t), X.UUID = {
|
|
41360
|
+
isBackup: !0,
|
|
41355
41361
|
// Generate a 32 character UUID
|
|
41356
41362
|
uuid: () => Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15),
|
|
41357
41363
|
fromUUID: (r) => r
|
|
@@ -41359,7 +41365,7 @@ const Q = class Q {
|
|
|
41359
41365
|
}
|
|
41360
41366
|
}
|
|
41361
41367
|
static injectUUIDModule(e) {
|
|
41362
|
-
|
|
41368
|
+
X.UUID = e;
|
|
41363
41369
|
}
|
|
41364
41370
|
// Validates the entity payload after generation and returns any errors
|
|
41365
41371
|
static validateGenerationTarget(e, t) {
|
|
@@ -41661,7 +41667,7 @@ const Q = class Q {
|
|
|
41661
41667
|
}
|
|
41662
41668
|
toReference() {
|
|
41663
41669
|
return {
|
|
41664
|
-
id: this.id + "--" +
|
|
41670
|
+
id: this.id + "--" + X.UUID.uuid() + "--ref",
|
|
41665
41671
|
type: i.GenericReference,
|
|
41666
41672
|
entityId: this.id,
|
|
41667
41673
|
entityType: this.type
|
|
@@ -41795,7 +41801,7 @@ const Q = class Q {
|
|
|
41795
41801
|
return this.errors;
|
|
41796
41802
|
}
|
|
41797
41803
|
clone() {
|
|
41798
|
-
return new
|
|
41804
|
+
return new X(this.toJSON());
|
|
41799
41805
|
}
|
|
41800
41806
|
getCustomEntity(e) {
|
|
41801
41807
|
return this.entities.find((t) => t.id === e) || null;
|
|
@@ -42256,37 +42262,38 @@ const Q = class Q {
|
|
|
42256
42262
|
}
|
|
42257
42263
|
};
|
|
42258
42264
|
// The module to be used by all project state logic to generate UUIDs
|
|
42259
|
-
c(
|
|
42265
|
+
c(X, "UUID", {
|
|
42266
|
+
isBackup: !0,
|
|
42260
42267
|
// Generate a 32 character UUID
|
|
42261
42268
|
uuid: () => Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15),
|
|
42262
42269
|
fromUUID: (e) => e
|
|
42263
|
-
}), c(
|
|
42264
|
-
...
|
|
42265
|
-
...
|
|
42270
|
+
}), c(X, "MUTABLE_BASE_PROPERTIES", ["name", "description"]), c(X, "INMUTABLE_BASE_PROPERTIES", ["id", "type", "version"]), c(X, "BASE_PROPERTIES", [
|
|
42271
|
+
...X.MUTABLE_BASE_PROPERTIES,
|
|
42272
|
+
...X.INMUTABLE_BASE_PROPERTIES
|
|
42266
42273
|
]), // Includes the base properties and the meta properties
|
|
42267
42274
|
// Often contains properties related to UX, not necessary for the logic
|
|
42268
|
-
c(
|
|
42269
|
-
...
|
|
42275
|
+
c(X, "MUTABLE_META_PROPERTIES", [
|
|
42276
|
+
...X.MUTABLE_BASE_PROPERTIES,
|
|
42270
42277
|
"x",
|
|
42271
42278
|
"y"
|
|
42272
|
-
]), c(
|
|
42273
|
-
...
|
|
42274
|
-
]), c(
|
|
42275
|
-
...
|
|
42276
|
-
...
|
|
42279
|
+
]), c(X, "INMUTABLE_META_PROPERTIES", [
|
|
42280
|
+
...X.INMUTABLE_BASE_PROPERTIES
|
|
42281
|
+
]), c(X, "META_PROPERTIES", [
|
|
42282
|
+
...X.MUTABLE_META_PROPERTIES,
|
|
42283
|
+
...X.INMUTABLE_META_PROPERTIES
|
|
42277
42284
|
]), // Properties pointing to nested entities that are declared before the entity itself
|
|
42278
|
-
c(
|
|
42285
|
+
c(X, "MUTABLE_UPSTREAM_PROPERTIES", []), c(X, "INMUTABLE_UPSTREAM_PROPERTIES", [
|
|
42279
42286
|
"primitives",
|
|
42280
42287
|
"builtInBaseEntities",
|
|
42281
42288
|
"operationDeclarations",
|
|
42282
42289
|
"globalEventActionDescriptors",
|
|
42283
42290
|
"loopDeclarations",
|
|
42284
42291
|
"builtInInstances"
|
|
42285
|
-
]), c(
|
|
42286
|
-
...
|
|
42287
|
-
...
|
|
42292
|
+
]), c(X, "UPSTREAM_PROPERTIES", [
|
|
42293
|
+
...X.MUTABLE_UPSTREAM_PROPERTIES,
|
|
42294
|
+
...X.INMUTABLE_UPSTREAM_PROPERTIES
|
|
42288
42295
|
]), // Properties pointing to nested entities that are declared after the entity itself or are direct children
|
|
42289
|
-
c(
|
|
42296
|
+
c(X, "MUTABLE_DOWNSTREAM_PROPERTIES", [
|
|
42290
42297
|
"entities",
|
|
42291
42298
|
"projects",
|
|
42292
42299
|
"functions",
|
|
@@ -42298,15 +42305,15 @@ c(Q, "MUTABLE_DOWNSTREAM_PROPERTIES", [
|
|
|
42298
42305
|
"functionCalls",
|
|
42299
42306
|
"loops",
|
|
42300
42307
|
"searches"
|
|
42301
|
-
]), c(
|
|
42302
|
-
...
|
|
42303
|
-
...
|
|
42304
|
-
]), c(
|
|
42305
|
-
...
|
|
42306
|
-
...
|
|
42307
|
-
...
|
|
42308
|
+
]), c(X, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), c(X, "DOWNSTREAM_PROPERTIES", [
|
|
42309
|
+
...X.MUTABLE_DOWNSTREAM_PROPERTIES,
|
|
42310
|
+
...X.INMUTABLE_DOWNSTREAM_PROPERTIES
|
|
42311
|
+
]), c(X, "PROPERTIES", [
|
|
42312
|
+
...X.META_PROPERTIES,
|
|
42313
|
+
...X.UPSTREAM_PROPERTIES,
|
|
42314
|
+
...X.DOWNSTREAM_PROPERTIES
|
|
42308
42315
|
]);
|
|
42309
|
-
let w =
|
|
42316
|
+
let w = X;
|
|
42310
42317
|
class u9 extends Le {
|
|
42311
42318
|
constructor(t) {
|
|
42312
42319
|
super(Ht, t);
|
|
@@ -42710,7 +42717,7 @@ export {
|
|
|
42710
42717
|
LT as LIST_OPERATIONS,
|
|
42711
42718
|
J as ListOperations,
|
|
42712
42719
|
Or as LoopState,
|
|
42713
|
-
|
|
42720
|
+
Q as LoopTypes,
|
|
42714
42721
|
kn as NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION,
|
|
42715
42722
|
Em as NUMBER_OPERATIONS,
|
|
42716
42723
|
am as NumberAdditionOperationInputIds,
|