@revisium/schema-toolkit 0.21.1 → 0.21.3
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/{chunk-HFMZITNE.js → chunk-6ELDQVQK.js} +13 -7
- package/dist/{chunk-S5SRXND6.cjs → chunk-IOUYEEGB.cjs} +13 -7
- package/dist/index.cjs +46 -46
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/model/index.cjs +46 -46
- package/dist/model/index.d.cts +4 -4
- package/dist/model/index.d.ts +4 -4
- package/dist/model/index.js +1 -1
- package/dist/{typed-Cri0IYAn.d.cts → typed-DjSH_5Vh.d.cts} +2 -2
- package/dist/{typed-BRZhUqGG.d.ts → typed-KUia-LYN.d.ts} +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1972,8 +1972,12 @@ var BasePrimitiveValueNode = class extends BaseValueNode {
|
|
|
1972
1972
|
if (this.isReadOnly && !options?.internal) {
|
|
1973
1973
|
throw new Error(`Cannot set value on read-only field: ${this.name}`);
|
|
1974
1974
|
}
|
|
1975
|
+
const coercedValue = this.coerceValue(value);
|
|
1976
|
+
if (coercedValue === this._value) {
|
|
1977
|
+
return;
|
|
1978
|
+
}
|
|
1975
1979
|
const oldValue = this._value;
|
|
1976
|
-
this._value =
|
|
1980
|
+
this._value = coercedValue;
|
|
1977
1981
|
if (!options?.internal) {
|
|
1978
1982
|
this.emit({ type: "setValue", node: this, value: this._value, oldValue });
|
|
1979
1983
|
}
|
|
@@ -2698,6 +2702,9 @@ function parseValuePath(path) {
|
|
|
2698
2702
|
// src/model/value-tree/ChangeTracker.ts
|
|
2699
2703
|
var ChangeTracker = class {
|
|
2700
2704
|
_changes = [];
|
|
2705
|
+
constructor() {
|
|
2706
|
+
makeAutoObservable(this);
|
|
2707
|
+
}
|
|
2701
2708
|
get changes() {
|
|
2702
2709
|
return this._changes;
|
|
2703
2710
|
}
|
|
@@ -2710,7 +2717,7 @@ var ChangeTracker = class {
|
|
|
2710
2717
|
clear() {
|
|
2711
2718
|
this._changes = [];
|
|
2712
2719
|
}
|
|
2713
|
-
|
|
2720
|
+
get patches() {
|
|
2714
2721
|
const patches = [];
|
|
2715
2722
|
for (const change of this._changes) {
|
|
2716
2723
|
const converted = this.changeToPatch(change);
|
|
@@ -2865,7 +2872,6 @@ var ValueTree = class {
|
|
|
2865
2872
|
makeAutoObservable(this, {
|
|
2866
2873
|
_root: false,
|
|
2867
2874
|
index: false,
|
|
2868
|
-
changeTracker: false,
|
|
2869
2875
|
_nodeChangeListener: false,
|
|
2870
2876
|
_formulaEngine: false,
|
|
2871
2877
|
_suppressEvents: false
|
|
@@ -2954,8 +2960,8 @@ var ValueTree = class {
|
|
|
2954
2960
|
get errors() {
|
|
2955
2961
|
return this._root.errors;
|
|
2956
2962
|
}
|
|
2957
|
-
|
|
2958
|
-
return this.changeTracker.
|
|
2963
|
+
get patches() {
|
|
2964
|
+
return this.changeTracker.patches;
|
|
2959
2965
|
}
|
|
2960
2966
|
trackChange(change) {
|
|
2961
2967
|
this.changeTracker.track(change);
|
|
@@ -3186,8 +3192,8 @@ var RowModelImpl = class {
|
|
|
3186
3192
|
get errors() {
|
|
3187
3193
|
return this._tree.errors;
|
|
3188
3194
|
}
|
|
3189
|
-
|
|
3190
|
-
return this._tree.
|
|
3195
|
+
get patches() {
|
|
3196
|
+
return this._tree.patches;
|
|
3191
3197
|
}
|
|
3192
3198
|
commit() {
|
|
3193
3199
|
this._tree.commit();
|
|
@@ -1974,8 +1974,12 @@ var BasePrimitiveValueNode = class extends BaseValueNode {
|
|
|
1974
1974
|
if (this.isReadOnly && !options?.internal) {
|
|
1975
1975
|
throw new Error(`Cannot set value on read-only field: ${this.name}`);
|
|
1976
1976
|
}
|
|
1977
|
+
const coercedValue = this.coerceValue(value);
|
|
1978
|
+
if (coercedValue === this._value) {
|
|
1979
|
+
return;
|
|
1980
|
+
}
|
|
1977
1981
|
const oldValue = this._value;
|
|
1978
|
-
this._value =
|
|
1982
|
+
this._value = coercedValue;
|
|
1979
1983
|
if (!options?.internal) {
|
|
1980
1984
|
this.emit({ type: "setValue", node: this, value: this._value, oldValue });
|
|
1981
1985
|
}
|
|
@@ -2700,6 +2704,9 @@ function parseValuePath(path) {
|
|
|
2700
2704
|
// src/model/value-tree/ChangeTracker.ts
|
|
2701
2705
|
var ChangeTracker = class {
|
|
2702
2706
|
_changes = [];
|
|
2707
|
+
constructor() {
|
|
2708
|
+
chunkRCCBUOGY_cjs.makeAutoObservable(this);
|
|
2709
|
+
}
|
|
2703
2710
|
get changes() {
|
|
2704
2711
|
return this._changes;
|
|
2705
2712
|
}
|
|
@@ -2712,7 +2719,7 @@ var ChangeTracker = class {
|
|
|
2712
2719
|
clear() {
|
|
2713
2720
|
this._changes = [];
|
|
2714
2721
|
}
|
|
2715
|
-
|
|
2722
|
+
get patches() {
|
|
2716
2723
|
const patches = [];
|
|
2717
2724
|
for (const change of this._changes) {
|
|
2718
2725
|
const converted = this.changeToPatch(change);
|
|
@@ -2867,7 +2874,6 @@ var ValueTree = class {
|
|
|
2867
2874
|
chunkRCCBUOGY_cjs.makeAutoObservable(this, {
|
|
2868
2875
|
_root: false,
|
|
2869
2876
|
index: false,
|
|
2870
|
-
changeTracker: false,
|
|
2871
2877
|
_nodeChangeListener: false,
|
|
2872
2878
|
_formulaEngine: false,
|
|
2873
2879
|
_suppressEvents: false
|
|
@@ -2956,8 +2962,8 @@ var ValueTree = class {
|
|
|
2956
2962
|
get errors() {
|
|
2957
2963
|
return this._root.errors;
|
|
2958
2964
|
}
|
|
2959
|
-
|
|
2960
|
-
return this.changeTracker.
|
|
2965
|
+
get patches() {
|
|
2966
|
+
return this.changeTracker.patches;
|
|
2961
2967
|
}
|
|
2962
2968
|
trackChange(change) {
|
|
2963
2969
|
this.changeTracker.track(change);
|
|
@@ -3188,8 +3194,8 @@ var RowModelImpl = class {
|
|
|
3188
3194
|
get errors() {
|
|
3189
3195
|
return this._tree.errors;
|
|
3190
3196
|
}
|
|
3191
|
-
|
|
3192
|
-
return this._tree.
|
|
3197
|
+
get patches() {
|
|
3198
|
+
return this._tree.patches;
|
|
3193
3199
|
}
|
|
3194
3200
|
commit() {
|
|
3195
3201
|
this._tree.commit();
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ require('./chunk-AV5EZUMZ.cjs');
|
|
|
4
4
|
var chunkVMELKZXD_cjs = require('./chunk-VMELKZXD.cjs');
|
|
5
5
|
require('./chunk-J4RVO37K.cjs');
|
|
6
6
|
var chunkRQBW7ATZ_cjs = require('./chunk-RQBW7ATZ.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkIOUYEEGB_cjs = require('./chunk-IOUYEEGB.cjs');
|
|
8
8
|
var chunkRCCBUOGY_cjs = require('./chunk-RCCBUOGY.cjs');
|
|
9
9
|
var chunk2PIMJSWJ_cjs = require('./chunk-2PIMJSWJ.cjs');
|
|
10
10
|
var chunk7JWCZZPJ_cjs = require('./chunk-7JWCZZPJ.cjs');
|
|
@@ -28,183 +28,183 @@ Object.defineProperty(exports, "CustomSchemeKeywords", {
|
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "ArrayToItemsTypeTransformer", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkIOUYEEGB_cjs.ArrayToItemsTypeTransformer; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ArrayValueNode", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkIOUYEEGB_cjs.ArrayValueNode; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "BasePrimitiveValueNode", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkIOUYEEGB_cjs.BasePrimitiveValueNode; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "BaseValueNode", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkIOUYEEGB_cjs.BaseValueNode; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "BooleanValueNode", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkIOUYEEGB_cjs.BooleanValueNode; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "DataModelImpl", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkIOUYEEGB_cjs.DataModelImpl; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "DefaultTransformer", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkIOUYEEGB_cjs.DefaultTransformer; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "ForeignKeyNotFoundError", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyNotFoundError; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "ForeignKeyResolverImpl", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyResolverImpl; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyResolverNotConfiguredError; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyValueNodeImpl; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaChangeDetector; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaDependencyIndex; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "FormulaPath", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaPath; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "NodeFactory", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactory; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "NodeFactoryRegistry", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactoryRegistry; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "NumberValueNode", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkIOUYEEGB_cjs.NumberValueNode; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ObjectToArrayTransformer", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkIOUYEEGB_cjs.ObjectToArrayTransformer; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "ObjectValueNode", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkIOUYEEGB_cjs.ObjectValueNode; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "ParsedFormula", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkIOUYEEGB_cjs.ParsedFormula; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "PrimitiveToArrayTransformer", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkIOUYEEGB_cjs.PrimitiveToArrayTransformer; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "RefTransformer", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkIOUYEEGB_cjs.RefTransformer; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "RowModelImpl", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkIOUYEEGB_cjs.RowModelImpl; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "SchemaParser", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkIOUYEEGB_cjs.SchemaParser; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "StringValueNode", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkIOUYEEGB_cjs.StringValueNode; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "TableModelImpl", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkIOUYEEGB_cjs.TableModelImpl; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "TypeTransformChain", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkIOUYEEGB_cjs.TypeTransformChain; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "ValueNodeFactory", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactory2; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "ValueTree", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkIOUYEEGB_cjs.ValueTree; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "ValueType", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkIOUYEEGB_cjs.ValueType; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "createDataModel", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkIOUYEEGB_cjs.createDataModel; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "createDefaultRegistry", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkIOUYEEGB_cjs.createDefaultRegistry; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "createForeignKeyResolver", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkIOUYEEGB_cjs.createForeignKeyResolver; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "createNodeFactory", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkIOUYEEGB_cjs.createNodeFactory; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "createRowModel", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkIOUYEEGB_cjs.createRowModel; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "createSchemaModel", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkIOUYEEGB_cjs.createSchemaModel; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "createTableModel", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkIOUYEEGB_cjs.createTableModel; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "createTypeTransformChain", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkIOUYEEGB_cjs.createTypeTransformChain; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "createTypedTree", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkIOUYEEGB_cjs.createTypedTree; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "extractFormulaDefinition", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkIOUYEEGB_cjs.extractFormulaDefinition; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "generateDefaultValue", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkIOUYEEGB_cjs.generateDefaultValue; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "generateNodeId", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkIOUYEEGB_cjs.generateNodeId; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "isForeignKeyValueNode", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkIOUYEEGB_cjs.isForeignKeyValueNode; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "resetNodeIdCounter", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkIOUYEEGB_cjs.resetNodeIdCounter; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "typedNode", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkIOUYEEGB_cjs.typedNode; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "ChangeCoalescer", {
|
|
210
210
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from './json.types-PrMmLhba.cjs';
|
|
2
2
|
export { h as JsonPatch, g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from './json-patch.types-eM6pYC2P.cjs';
|
|
3
|
-
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-
|
|
3
|
+
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-DjSH_5Vh.cjs';
|
|
4
4
|
export { InitMigration, Migration, RemoveMigration, RenameMigration, UpdateMigration } from './types/index.cjs';
|
|
5
5
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, j as JsonSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from './schema.types-On_VGw2m.cjs';
|
|
6
6
|
export { a as FieldChange, F as FieldChangeType } from './types-C_GxaUve.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from './json.types-PrMmLhba.js';
|
|
2
2
|
export { h as JsonPatch, g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from './json-patch.types-BpVnp08Z.js';
|
|
3
|
-
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-
|
|
3
|
+
export { v as ArrayNodeOptions, A as ArrayValueNodeInterface, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, C as FieldType, E as FieldTypeSpec, X as ForeignKeyResolver, F as FormulaDefinition, r as FormulaWarning, g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, w as NodeFactoryFn, x as NodeFactoryOptions, n as NodeFactoryRegistry, j as NodeFromValue, u as ObjectNodeOptions, O as ObjectValueNodeInterface, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, P as PrimitiveValueNode, R as RefSchemas, G as ReplaceResult, M as RowData, Q as RowModel, U as RowModelOptions, h as SchemaAtPath, i as SchemaFromValue, B as SchemaModel, H as SchemaModelOptions, S as SchemaPaths, a0 as SimpleFieldType, K as TableModel, W as TableModelLike, L as TableModelOptions, Z as TransformContext, _ as TransformResult, Y as TypeTransformer, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, q as ValueNode, y as ValueNodeFactory, s as ValueNodeOptions, k as ValuePaths, z as ValueTreeLike, l as ValueType, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from './typed-KUia-LYN.js';
|
|
4
4
|
export { InitMigration, Migration, RemoveMigration, RenameMigration, UpdateMigration } from './types/index.js';
|
|
5
5
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, j as JsonSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from './schema.types-On_VGw2m.js';
|
|
6
6
|
export { a as FieldChange, F as FieldChangeType } from './types-C_GxaUve.js';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import './chunk-OAUVP6CU.js';
|
|
|
2
2
|
export { JsonSchemaTypeName } from './chunk-NO655UI5.js';
|
|
3
3
|
import './chunk-3MJP73IJ.js';
|
|
4
4
|
export { CustomSchemeKeywords } from './chunk-WE4OLW5U.js';
|
|
5
|
-
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from './chunk-
|
|
5
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from './chunk-6ELDQVQK.js';
|
|
6
6
|
export { ChangeCoalescer, ChangeCollector, CompositeRule, EMPTY_METADATA, EMPTY_PATH, EnumValidator, FIELD_NAME_ERROR_MESSAGE, ForeignKeyValidator, FormulaPathBuilder, FormulaSerializer, ItemsSegment, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, NULL_NODE, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, PatternValidator, PropertySegment, RequiredValidator, ResolvedDependency, SchemaDiff, SchemaPropertyRule, SchemaSerializer, SchemaTruthyRule, ValidationEngine, ValidatorRegistry, ValidatorResolver, areNodesContentEqual, areNodesEqual, coalesceChanges, collectChanges, createArrayNode, createBooleanNode, createDefaultValidatorRegistry, createMobxProvider, createNumberNode, createObjectNode, createPath, createRefNode, createSchemaTree, createStringNode, createValidationEngine, isValidFieldName, jsonPointerToPath, jsonPointerToSegments, jsonPointerToSimplePath, makeAutoObservable, makeObservable, observable, reaction, resetReactivityProvider, runInAction, setReactivityProvider, validateFormulas, validateSchema } from './chunk-AWFMSOHM.js';
|
|
7
7
|
export { arr, bool, boolFormula, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, numFormula, obj, ref, str, strFormula } from './chunk-IZMBM36H.js';
|
|
8
8
|
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, convertJsonPathToSchemaPath, convertSchemaPathToJsonPath, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, deepEqual, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, getValueByPath, hasPath, parsePath, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, setValueByPath, traverseStore, traverseValue, validateJsonFieldName } from './chunk-JLXX3SGF.js';
|
package/dist/model/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIOUYEEGB_cjs = require('../chunk-IOUYEEGB.cjs');
|
|
4
4
|
var chunkRCCBUOGY_cjs = require('../chunk-RCCBUOGY.cjs');
|
|
5
5
|
require('../chunk-2PIMJSWJ.cjs');
|
|
6
6
|
var chunkONW2OVNQ_cjs = require('../chunk-ONW2OVNQ.cjs');
|
|
@@ -9,183 +9,183 @@ var chunkONW2OVNQ_cjs = require('../chunk-ONW2OVNQ.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ArrayToItemsTypeTransformer", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkIOUYEEGB_cjs.ArrayToItemsTypeTransformer; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ArrayValueNode", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkIOUYEEGB_cjs.ArrayValueNode; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "BasePrimitiveValueNode", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkIOUYEEGB_cjs.BasePrimitiveValueNode; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "BaseValueNode", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkIOUYEEGB_cjs.BaseValueNode; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "BooleanValueNode", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkIOUYEEGB_cjs.BooleanValueNode; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "DataModelImpl", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkIOUYEEGB_cjs.DataModelImpl; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DefaultTransformer", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkIOUYEEGB_cjs.DefaultTransformer; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "ForeignKeyNotFoundError", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyNotFoundError; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ForeignKeyResolverImpl", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyResolverImpl; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyResolverNotConfiguredError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkIOUYEEGB_cjs.ForeignKeyValueNodeImpl; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "FormulaChangeDetector", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaChangeDetector; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "FormulaDependencyIndex", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaDependencyIndex; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "FormulaPath", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkIOUYEEGB_cjs.FormulaPath; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "NodeFactory", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactory; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "NodeFactoryRegistry", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactoryRegistry; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "NumberValueNode", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkIOUYEEGB_cjs.NumberValueNode; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "ObjectToArrayTransformer", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkIOUYEEGB_cjs.ObjectToArrayTransformer; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "ObjectValueNode", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkIOUYEEGB_cjs.ObjectValueNode; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "ParsedFormula", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkIOUYEEGB_cjs.ParsedFormula; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "PrimitiveToArrayTransformer", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkIOUYEEGB_cjs.PrimitiveToArrayTransformer; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "RefTransformer", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkIOUYEEGB_cjs.RefTransformer; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "RowModelImpl", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkIOUYEEGB_cjs.RowModelImpl; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "SchemaParser", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkIOUYEEGB_cjs.SchemaParser; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "StringValueNode", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkIOUYEEGB_cjs.StringValueNode; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "TableModelImpl", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkIOUYEEGB_cjs.TableModelImpl; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "TypeTransformChain", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkIOUYEEGB_cjs.TypeTransformChain; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "ValueNodeFactory", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkIOUYEEGB_cjs.NodeFactory2; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "ValueTree", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkIOUYEEGB_cjs.ValueTree; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "ValueType", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkIOUYEEGB_cjs.ValueType; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createDataModel", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkIOUYEEGB_cjs.createDataModel; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "createDefaultRegistry", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkIOUYEEGB_cjs.createDefaultRegistry; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "createForeignKeyResolver", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkIOUYEEGB_cjs.createForeignKeyResolver; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "createNodeFactory", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkIOUYEEGB_cjs.createNodeFactory; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "createRowModel", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkIOUYEEGB_cjs.createRowModel; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "createSchemaModel", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkIOUYEEGB_cjs.createSchemaModel; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "createTableModel", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkIOUYEEGB_cjs.createTableModel; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "createTypeTransformChain", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkIOUYEEGB_cjs.createTypeTransformChain; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "createTypedTree", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkIOUYEEGB_cjs.createTypedTree; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "extractFormulaDefinition", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkIOUYEEGB_cjs.extractFormulaDefinition; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "generateDefaultValue", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkIOUYEEGB_cjs.generateDefaultValue; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "generateNodeId", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkIOUYEEGB_cjs.generateNodeId; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "isForeignKeyValueNode", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkIOUYEEGB_cjs.isForeignKeyValueNode; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "resetNodeIdCounter", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkIOUYEEGB_cjs.resetNodeIdCounter; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "typedNode", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkIOUYEEGB_cjs.typedNode; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "FormulaPathBuilder", {
|
|
191
191
|
enumerable: true,
|
package/dist/model/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-cAOADo23.cjs';
|
|
2
2
|
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-cAOADo23.cjs';
|
|
3
|
-
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, R as RefSchemas$1, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions, g as InferNode } from '../typed-
|
|
4
|
-
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-
|
|
3
|
+
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, R as RefSchemas$1, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions, g as InferNode } from '../typed-DjSH_5Vh.cjs';
|
|
4
|
+
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-DjSH_5Vh.cjs';
|
|
5
5
|
import { g as JsonObjectSchema, j as JsonSchema } from '../schema.types-On_VGw2m.cjs';
|
|
6
6
|
import { j as SchemaNode, T as TreeFormulaValidationError, D as Diagnostic, o as Formula, F as FormulaDependency, P as Path } from '../types-BIvIURgy.cjs';
|
|
7
7
|
export { R as ResolvedDependency } from '../types-BIvIURgy.cjs';
|
|
@@ -140,7 +140,7 @@ declare class RowModelImpl implements RowModel {
|
|
|
140
140
|
get isDirty(): boolean;
|
|
141
141
|
get isValid(): boolean;
|
|
142
142
|
get errors(): readonly Diagnostic[];
|
|
143
|
-
|
|
143
|
+
get patches(): readonly JsonValuePatch[];
|
|
144
144
|
commit(): void;
|
|
145
145
|
revert(): void;
|
|
146
146
|
dispose(): void;
|
|
@@ -568,7 +568,7 @@ declare class ValueTree implements ValueTreeLike {
|
|
|
568
568
|
get isDirty(): boolean;
|
|
569
569
|
get isValid(): boolean;
|
|
570
570
|
get errors(): readonly Diagnostic[];
|
|
571
|
-
|
|
571
|
+
get patches(): readonly JsonValuePatch[];
|
|
572
572
|
trackChange(change: Change): void;
|
|
573
573
|
commit(): void;
|
|
574
574
|
revert(): void;
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as JsonSchemaStore } from '../json-string.store-DfdLcgnM.js';
|
|
2
2
|
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DfdLcgnM.js';
|
|
3
|
-
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, R as RefSchemas$1, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions, g as InferNode } from '../typed-
|
|
4
|
-
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-
|
|
3
|
+
import { a3 as RefSchemas, Y as TypeTransformer, E as FieldTypeSpec, _ as TransformResult, Z as TransformContext, M as RowData, H as SchemaModelOptions, B as SchemaModel, C as FieldType, Q as RowModel, S as SchemaPaths, N as NodeAtPath, V as ValueAtPath, I as InferValue, U as RowModelOptions, z as ValueTreeLike, W as TableModelLike, q as ValueNode, d as JsonValuePatch, L as TableModelOptions, K as TableModel, X as ForeignKeyResolver, R as RefSchemas$1, l as ValueType, a4 as NodeChangeListener, a5 as NodeChangeEvent, O as ObjectValueNode$1, A as ArrayValueNode$1, P as PrimitiveValueNode, r as FormulaWarning, F as FormulaDefinition, y as NodeFactory$1, a6 as ValuePath, a7 as Change, x as NodeFactoryOptions, g as InferNode } from '../typed-KUia-LYN.js';
|
|
4
|
+
export { v as ArrayNodeOptions, a2 as CompositeTypeName, D as DirtyTrackable, $ as FieldSchemaSpec, w as NodeFactoryFn, n as NodeFactoryRegistry, u as ObjectNodeOptions, t as PrimitiveNodeOptions, a1 as PrimitiveTypeName, G as ReplaceResult, a0 as SimpleFieldType, s as ValueNodeOptions, p as createDefaultRegistry, o as createNodeFactory, m as extractFormulaDefinition } from '../typed-KUia-LYN.js';
|
|
5
5
|
import { g as JsonObjectSchema, j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
import { j as SchemaNode, T as TreeFormulaValidationError, D as Diagnostic, o as Formula, F as FormulaDependency, P as Path } from '../types-C_pTFtSY.js';
|
|
7
7
|
export { R as ResolvedDependency } from '../types-C_pTFtSY.js';
|
|
@@ -140,7 +140,7 @@ declare class RowModelImpl implements RowModel {
|
|
|
140
140
|
get isDirty(): boolean;
|
|
141
141
|
get isValid(): boolean;
|
|
142
142
|
get errors(): readonly Diagnostic[];
|
|
143
|
-
|
|
143
|
+
get patches(): readonly JsonValuePatch[];
|
|
144
144
|
commit(): void;
|
|
145
145
|
revert(): void;
|
|
146
146
|
dispose(): void;
|
|
@@ -568,7 +568,7 @@ declare class ValueTree implements ValueTreeLike {
|
|
|
568
568
|
get isDirty(): boolean;
|
|
569
569
|
get isValid(): boolean;
|
|
570
570
|
get errors(): readonly Diagnostic[];
|
|
571
|
-
|
|
571
|
+
get patches(): readonly JsonValuePatch[];
|
|
572
572
|
trackChange(change: Change): void;
|
|
573
573
|
commit(): void;
|
|
574
574
|
revert(): void;
|
package/dist/model/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-
|
|
1
|
+
export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueTree, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, createTypedTree, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter, typedNode } from '../chunk-6ELDQVQK.js';
|
|
2
2
|
export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-AWFMSOHM.js';
|
|
3
3
|
import '../chunk-IZMBM36H.js';
|
|
4
4
|
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from '../chunk-FTBRJODD.js';
|
|
@@ -169,7 +169,7 @@ interface ValueTreeLike {
|
|
|
169
169
|
readonly isDirty: boolean;
|
|
170
170
|
readonly isValid: boolean;
|
|
171
171
|
readonly errors: readonly Diagnostic[];
|
|
172
|
-
|
|
172
|
+
readonly patches: readonly JsonValuePatch[];
|
|
173
173
|
commit(): void;
|
|
174
174
|
revert(): void;
|
|
175
175
|
nodeById(id: string): ValueNode | undefined;
|
|
@@ -204,7 +204,7 @@ interface RowModel {
|
|
|
204
204
|
readonly isDirty: boolean;
|
|
205
205
|
readonly isValid: boolean;
|
|
206
206
|
readonly errors: readonly Diagnostic[];
|
|
207
|
-
|
|
207
|
+
readonly patches: readonly JsonValuePatch[];
|
|
208
208
|
commit(): void;
|
|
209
209
|
revert(): void;
|
|
210
210
|
dispose(): void;
|
|
@@ -169,7 +169,7 @@ interface ValueTreeLike {
|
|
|
169
169
|
readonly isDirty: boolean;
|
|
170
170
|
readonly isValid: boolean;
|
|
171
171
|
readonly errors: readonly Diagnostic[];
|
|
172
|
-
|
|
172
|
+
readonly patches: readonly JsonValuePatch[];
|
|
173
173
|
commit(): void;
|
|
174
174
|
revert(): void;
|
|
175
175
|
nodeById(id: string): ValueNode | undefined;
|
|
@@ -204,7 +204,7 @@ interface RowModel {
|
|
|
204
204
|
readonly isDirty: boolean;
|
|
205
205
|
readonly isValid: boolean;
|
|
206
206
|
readonly errors: readonly Diagnostic[];
|
|
207
|
-
|
|
207
|
+
readonly patches: readonly JsonValuePatch[];
|
|
208
208
|
commit(): void;
|
|
209
209
|
revert(): void;
|
|
210
210
|
dispose(): void;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.cjs';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-eM6pYC2P.cjs';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-eM6pYC2P.cjs';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-DjSH_5Vh.cjs';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.cjs';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.cjs';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.js';
|
|
2
2
|
import { h as JsonPatch } from '../json-patch.types-BpVnp08Z.js';
|
|
3
3
|
export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-BpVnp08Z.js';
|
|
4
|
-
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-
|
|
4
|
+
export { g as InferNode, I as InferValue, d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace, N as NodeAtPath, j as NodeFromValue, h as SchemaAtPath, i as SchemaFromValue, S as SchemaPaths, f as TypedArrayValueNode, e as TypedObjectValueNode, T as TypedPrimitiveValueNode, V as ValueAtPath, k as ValuePaths } from '../typed-KUia-LYN.js';
|
|
5
5
|
import { j as JsonSchema } from '../schema.types-On_VGw2m.js';
|
|
6
6
|
export { C as ContentMediaType, h as JsonArraySchema, e as JsonBooleanSchema, d as JsonNumberSchema, g as JsonObjectSchema, i as JsonRefSchema, f as JsonSchemaPrimitives, b as JsonSchemaSharedFields, a as JsonSchemaType, J as JsonSchemaTypeName, k as JsonSchemaWithoutRef, c as JsonStringSchema, X as XFormula } from '../schema.types-On_VGw2m.js';
|
|
7
7
|
export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
|