@elyx-code/project-logic-tree 0.0.6995 → 0.0.6996
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 +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +11 -3
- package/package.json +1 -1
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,7 @@ 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
|
+
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, this.rawString = a.rawString !== void 0 ? a.rawString : e.rawString, (this.name !== fe.String || this.valueAsTypeSingle !== null || this.valueAsTypeList !== null && this.valueAsTypeList.length > 0) && (this.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
104720
|
}
|
|
104718
104721
|
async APILoad(i = We, ...r) {
|
|
104719
104722
|
return await hi.repository.APILoad(this.id, ...r), this;
|
|
@@ -104962,6 +104965,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
104962
104965
|
author: this.author,
|
|
104963
104966
|
deleted: this.deleted,
|
|
104964
104967
|
value: this.value,
|
|
104968
|
+
rawString: this.rawString,
|
|
104965
104969
|
autogeneration: this.autogeneration,
|
|
104966
104970
|
type: this.type,
|
|
104967
104971
|
editable: this.editable,
|
|
@@ -104984,6 +104988,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
104984
104988
|
name: this.name,
|
|
104985
104989
|
autogeneration: this.autogeneration,
|
|
104986
104990
|
value: this.value,
|
|
104991
|
+
rawString: this.rawString,
|
|
104987
104992
|
valueAsTypeSingle: ((r = this.valueAsTypeSingle) == null ? void 0 : r.toJSON(
|
|
104988
104993
|
i
|
|
104989
104994
|
)) || null,
|
|
@@ -105016,6 +105021,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
105016
105021
|
name: this.name,
|
|
105017
105022
|
autogeneration: this.autogeneration,
|
|
105018
105023
|
value: this.value,
|
|
105024
|
+
rawString: this.rawString,
|
|
105019
105025
|
valueAsTypeSingle: this.valueAsTypeSingle ? this.project.getBuiltIn(this.valueAsTypeSingle.id) ? this.valueAsTypeSingle.toJSON() : this.valueAsTypeSingle.toJSONClone({
|
|
105020
105026
|
...i,
|
|
105021
105027
|
newId: null
|
|
@@ -105068,6 +105074,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
105068
105074
|
)
|
|
105069
105075
|
) : null,
|
|
105070
105076
|
value: this.value,
|
|
105077
|
+
rawString: this.rawString,
|
|
105071
105078
|
autogeneration: this.autogeneration,
|
|
105072
105079
|
parent: (e = this.parent) == null ? void 0 : e.toReference(i),
|
|
105073
105080
|
standaloneParent: (f = this.standaloneParent) == null ? void 0 : f.toReference(i)
|
|
@@ -105092,6 +105099,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
105092
105099
|
valueAsTypeSingle: ((c = this.valueAsTypeSingle) == null ? void 0 : c.id) || null,
|
|
105093
105100
|
valueAsTypeList: Array.isArray(this.valueAsTypeSingle) ? this.valueAsTypeSingle.map((h) => h.id) : null,
|
|
105094
105101
|
value: this.value,
|
|
105102
|
+
rawString: this.rawString,
|
|
105095
105103
|
autogeneration: this.autogeneration,
|
|
105096
105104
|
parent: (e = this.parent) == null ? void 0 : e.id,
|
|
105097
105105
|
standaloneParent: (f = this.standaloneParent) == null ? void 0 : f.id
|
|
@@ -105207,7 +105215,7 @@ R(hi, "repository", {
|
|
|
105207
105215
|
...SC
|
|
105208
105216
|
]), R(hi, "PARENT_TYPES", [
|
|
105209
105217
|
...hi.USER_MANAGED_PARENT_TYPES
|
|
105210
|
-
]), R(hi, "MUTABLE_BASE_PROPERTIES", ["name", "autogeneration", "value"]), R(hi, "INMUTABLE_BASE_PROPERTIES", [
|
|
105218
|
+
]), R(hi, "MUTABLE_BASE_PROPERTIES", ["name", "autogeneration", "value", "rawString"]), R(hi, "INMUTABLE_BASE_PROPERTIES", [
|
|
105211
105219
|
"id",
|
|
105212
105220
|
"type",
|
|
105213
105221
|
"version",
|
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.6996",
|
|
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",
|