@elyx-code/project-logic-tree 0.0.6995 → 0.0.6999

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.d.ts CHANGED
@@ -19153,6 +19153,7 @@ export declare enum BaseValueDescriptorIds {
19153
19153
  type: EntityType.LiteralValue;
19154
19154
  name: PrimitiveTypes;
19155
19155
  value: LiteralValueType;
19156
+ rawString?: string | null;
19156
19157
  autogeneration: ValueAutogenerationOptions | null;
19157
19158
  }
19158
19159
 
@@ -20050,12 +20051,14 @@ export declare enum BaseValueDescriptorIds {
20050
20051
  export declare interface IPrimitiveStringValue extends ILiteralValue {
20051
20052
  name: PrimitiveTypes.String;
20052
20053
  value: string | null;
20054
+ rawString?: string | null;
20053
20055
  autogeneration: StringAutogenerationOptions | null;
20054
20056
  }
20055
20057
 
20056
20058
  export declare interface IPrimitiveStringValueTransfer extends ILiteralValueTransfer {
20057
20059
  name: PrimitiveTypes.String;
20058
20060
  value: string | null;
20061
+ rawString?: string | null;
20059
20062
  autogeneration: StringAutogenerationOptions | null;
20060
20063
  }
20061
20064
 
@@ -22064,6 +22067,7 @@ export declare enum BaseValueDescriptorIds {
22064
22067
  name: PrimitiveTypes;
22065
22068
  autogeneration: ValueAutogenerationOptions | null;
22066
22069
  value: LiteralValueType;
22070
+ rawString?: string | null;
22067
22071
  valueAsTypeSingle: ValueAsTypeState | null;
22068
22072
  valueAsTypeList: ValueAsTypeState[] | null;
22069
22073
  errors: EntityError[];
package/dist/index.js CHANGED
@@ -103745,6 +103745,7 @@ const hi = class hi extends sn {
103745
103745
  R(this, "name");
103746
103746
  R(this, "autogeneration", null);
103747
103747
  R(this, "value", null);
103748
+ R(this, "rawString", null);
103748
103749
  // Nested entities
103749
103750
  R(this, "valueAsTypeSingle", null);
103750
103751
  R(this, "valueAsTypeList", null);
@@ -103763,7 +103764,7 @@ const hi = class hi extends sn {
103763
103764
  // A standalone value, is a value that is not part of the project tree
103764
103765
  // It is used for calculations and other operations that have no logic representation in the project
103765
103766
  R(this, "standalone", !1);
103766
- if (this.initialData = i, this.project = r, this.id = i.id, this.name = i.name, this.autogeneration = i.autogeneration, this.value = i.value, !this.name)
103767
+ if (this.initialData = i, this.project = r, this.id = i.id, this.name = i.name, this.autogeneration = i.autogeneration, this.value = i.value, this.rawString = i.rawString !== void 0 ? i.rawString : typeof i.value == "string" ? i.value : null, !this.name)
103767
103768
  throw new Error(
103768
103769
  "[LiteralValueState.constructor] Must have a name in the initial data passed to the constructor"
103769
103770
  );
@@ -103784,6 +103785,7 @@ const hi = class hi extends sn {
103784
103785
  name: "",
103785
103786
  autogeneration: null,
103786
103787
  value: null,
103788
+ rawString: null,
103787
103789
  valueAsTypeSingle: null,
103788
103790
  valueAsTypeList: null,
103789
103791
  parent: null
@@ -103833,6 +103835,7 @@ const hi = class hi extends sn {
103833
103835
  valueAsTypeSingle: h,
103834
103836
  valueAsTypeList: m,
103835
103837
  value: i.value || null,
103838
+ rawString: i.rawString !== void 0 ? i.rawString : typeof i.value == "string" ? i.value : null,
103836
103839
  parent: f.toReference()
103837
103840
  }, E = Re(
103838
103841
  b,
@@ -104713,7 +104716,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
104713
104716
  i,
104714
104717
  r
104715
104718
  ), c = on(this, a), e = this.toMeta();
104716
- return this.name = a.name !== void 0 ? a.name : e.name, this.autogeneration = a.autogeneration !== void 0 ? a.autogeneration : e.autogeneration, this.value = a.value !== void 0 ? a.value : e.value, super.baseMetaSync(a, this, r), a.deleted === !0 && !e.deleted ? r == null || r.add(this, W.Removed) : a.deleted === !1 && e.deleted ? r == null || r.add(this, W.Added) : c && (r == null || r.add(this, W.Updated)), r == null || r.attemptAutoclose("meta-sync", this.id), this;
104719
+ this.name = a.name !== void 0 ? a.name : e.name, this.autogeneration = a.autogeneration !== void 0 ? a.autogeneration : e.autogeneration, this.value = a.value !== void 0 ? a.value : e.value, this.rawString = a.rawString !== void 0 ? a.rawString : e.rawString;
104720
+ const f = i.valueAsTypeSingle !== void 0 ? i.valueAsTypeSingle : this.valueAsTypeSingle ?? null, h = i.valueAsTypeList !== void 0 ? i.valueAsTypeList : this.valueAsTypeList ?? null;
104721
+ return (this.name !== fe.String || f !== null || h !== null && h.length > 0) && (this.rawString = null, a.rawString = null), super.baseMetaSync(a, this, r), a.deleted === !0 && !e.deleted ? r == null || r.add(this, W.Removed) : a.deleted === !1 && e.deleted ? r == null || r.add(this, W.Added) : c && (r == null || r.add(this, W.Updated)), r == null || r.attemptAutoclose("meta-sync", this.id), this;
104717
104722
  }
104718
104723
  async APILoad(i = We, ...r) {
104719
104724
  return await hi.repository.APILoad(this.id, ...r), this;
@@ -104962,6 +104967,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
104962
104967
  author: this.author,
104963
104968
  deleted: this.deleted,
104964
104969
  value: this.value,
104970
+ rawString: this.rawString,
104965
104971
  autogeneration: this.autogeneration,
104966
104972
  type: this.type,
104967
104973
  editable: this.editable,
@@ -104984,6 +104990,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
104984
104990
  name: this.name,
104985
104991
  autogeneration: this.autogeneration,
104986
104992
  value: this.value,
104993
+ rawString: this.rawString,
104987
104994
  valueAsTypeSingle: ((r = this.valueAsTypeSingle) == null ? void 0 : r.toJSON(
104988
104995
  i
104989
104996
  )) || null,
@@ -105016,6 +105023,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
105016
105023
  name: this.name,
105017
105024
  autogeneration: this.autogeneration,
105018
105025
  value: this.value,
105026
+ rawString: this.rawString,
105019
105027
  valueAsTypeSingle: this.valueAsTypeSingle ? this.project.getBuiltIn(this.valueAsTypeSingle.id) ? this.valueAsTypeSingle.toJSON() : this.valueAsTypeSingle.toJSONClone({
105020
105028
  ...i,
105021
105029
  newId: null
@@ -105068,6 +105076,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
105068
105076
  )
105069
105077
  ) : null,
105070
105078
  value: this.value,
105079
+ rawString: this.rawString,
105071
105080
  autogeneration: this.autogeneration,
105072
105081
  parent: (e = this.parent) == null ? void 0 : e.toReference(i),
105073
105082
  standaloneParent: (f = this.standaloneParent) == null ? void 0 : f.toReference(i)
@@ -105092,6 +105101,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
105092
105101
  valueAsTypeSingle: ((c = this.valueAsTypeSingle) == null ? void 0 : c.id) || null,
105093
105102
  valueAsTypeList: Array.isArray(this.valueAsTypeSingle) ? this.valueAsTypeSingle.map((h) => h.id) : null,
105094
105103
  value: this.value,
105104
+ rawString: this.rawString,
105095
105105
  autogeneration: this.autogeneration,
105096
105106
  parent: (e = this.parent) == null ? void 0 : e.id,
105097
105107
  standaloneParent: (f = this.standaloneParent) == null ? void 0 : f.id
@@ -105207,7 +105217,7 @@ R(hi, "repository", {
105207
105217
  ...SC
105208
105218
  ]), R(hi, "PARENT_TYPES", [
105209
105219
  ...hi.USER_MANAGED_PARENT_TYPES
105210
- ]), R(hi, "MUTABLE_BASE_PROPERTIES", ["name", "autogeneration", "value"]), R(hi, "INMUTABLE_BASE_PROPERTIES", [
105220
+ ]), R(hi, "MUTABLE_BASE_PROPERTIES", ["name", "autogeneration", "value", "rawString"]), R(hi, "INMUTABLE_BASE_PROPERTIES", [
105211
105221
  "id",
105212
105222
  "type",
105213
105223
  "version",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6995",
3
+ "version": "0.0.6999",
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",