@elyx-code/project-logic-tree 0.0.6691 → 0.0.6693

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
@@ -194046,6 +194046,9 @@ ${CD}`
194046
194046
  }
194047
194047
  getDefaultValue() {
194048
194048
  var c;
194049
+ console.log("[getDefaultValue] Resolving default value for property", this.id, " name:", this.name), console.log(`[getDefaultValue] implements:
194050
+ - ${this.implements.map((e) => e.id + " name: " + e.name).join(`
194051
+ - `)}`);
194049
194052
  let i = null;
194050
194053
  for (const e of this.implements) {
194051
194054
  const y = e.getDefaultValue();
@@ -194096,9 +194099,11 @@ ${CD}`
194096
194099
  self: this
194097
194100
  };
194098
194101
  const n = [], s = [], c = [], e = [];
194099
- this.parent.type !== o.PrimitiveEntity && this.interactive && this.parent.getAllPropertiesImplements().forEach((ve) => {
194102
+ this.parent.type !== o.PrimitiveEntity && this.interactive && this.parent.getAllPropertiesImplements().filter(
194103
+ (ve) => ve.id !== this.id
194104
+ ).forEach((ve) => {
194100
194105
  this.addImplementation(ve, i);
194101
- });
194106
+ }), this.implements.find((ce) => ce.id === this.id) && this.removeImplementation(this, i);
194102
194107
  let y = null;
194103
194108
  for (const ce of this.implements)
194104
194109
  (V = ce.dataType) != null && V.isResolved && (y ? ($ = ce.dataType.orChildrenGroup) != null && $.length && ce.dataType.implementationChooseOne && (y = ce.dataType) : y = ce.dataType);
@@ -196426,7 +196431,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
196426
196431
  x.UUID.uuid()
196427
196432
  );
196428
196433
  s.push($), i == null || i.add($, Z.Added);
196429
- }), i == null || i.attemptAutoclose("sync-implementation-properties", this.id), {
196434
+ }), this.properties.find((b) => {
196435
+ var E;
196436
+ return b.id === ((E = this.allPropertiesImplement) == null ? void 0 : E.id);
196437
+ }) && this.removeAllPropertiesImplement(i), i == null || i.attemptAutoclose("sync-implementation-properties", this.id), {
196430
196438
  updated: D(n),
196431
196439
  added: D(s),
196432
196440
  removed: D(c),
@@ -197111,9 +197119,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
197111
197119
  ];
197112
197120
  }
197113
197121
  async getErrorsAsync(i = {}) {
197114
- const n = qe.from(i), s = [
197115
- ...this.errors
197116
- ];
197122
+ const n = qe.from(i), s = [...this.errors];
197117
197123
  await n.tick();
197118
197124
  for (const c of this.properties)
197119
197125
  s.push(...await c.getErrorsAsync({ tracker: n }));
@@ -197171,7 +197177,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
197171
197177
  c
197172
197178
  ));
197173
197179
  if (w.abstractMethods = L, this.additionalPropertiesDataType)
197174
- if (this.project.diggestedBuiltInBaseEntitiesIds.has(this.additionalPropertiesDataType.id))
197180
+ if (this.project.diggestedBuiltInBaseEntitiesIds.has(
197181
+ this.additionalPropertiesDataType.id
197182
+ ))
197175
197183
  w.setAdditionalPropertiesDataType(
197176
197184
  this.project.getBuiltIn(
197177
197185
  this.additionalPropertiesDataType.id
@@ -197191,7 +197199,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
197191
197199
  );
197192
197200
  }
197193
197201
  if (this.allPropertiesImplement)
197194
- if (this.project.diggestedBuiltInBaseEntitiesIds.has(this.allPropertiesImplement.id))
197202
+ if (this.project.diggestedBuiltInBaseEntitiesIds.has(
197203
+ this.allPropertiesImplement.id
197204
+ ))
197195
197205
  w.setAllPropertiesImplement(
197196
197206
  this.project.getBuiltIn(
197197
197207
  this.allPropertiesImplement.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6691",
3
+ "version": "0.0.6693",
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",