@revisium/schema-toolkit 0.16.1 → 0.16.2

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.
Files changed (83) hide show
  1. package/dist/{chunk-IWRV6QAD.cjs → chunk-44ZEZUWU.cjs} +419 -86
  2. package/dist/chunk-44ZEZUWU.cjs.map +1 -0
  3. package/dist/{chunk-HY4VE7H2.js → chunk-55AMH44G.js} +3 -3
  4. package/dist/chunk-55AMH44G.js.map +1 -0
  5. package/dist/{chunk-TMWPWGUN.cjs → chunk-B3T6YB2D.cjs} +6 -6
  6. package/dist/chunk-B3T6YB2D.cjs.map +1 -0
  7. package/dist/{chunk-GAPLSVZN.cjs → chunk-J6SCHJKG.cjs} +2 -2
  8. package/dist/chunk-J6SCHJKG.cjs.map +1 -0
  9. package/dist/chunk-JJ2KGTZX.cjs +105 -0
  10. package/dist/chunk-JJ2KGTZX.cjs.map +1 -0
  11. package/dist/{chunk-S7GEDTSL.js → chunk-KLDN3IHB.js} +408 -88
  12. package/dist/chunk-KLDN3IHB.js.map +1 -0
  13. package/dist/chunk-MLNKM67U.cjs +4 -0
  14. package/dist/chunk-MLNKM67U.cjs.map +1 -0
  15. package/dist/{chunk-CYTPQYVM.js → chunk-MPF6VCB5.js} +2 -2
  16. package/dist/chunk-MPF6VCB5.js.map +1 -0
  17. package/dist/{chunk-KQWWRWGB.cjs → chunk-OY5NX5DZ.cjs} +216 -279
  18. package/dist/chunk-OY5NX5DZ.cjs.map +1 -0
  19. package/dist/{chunk-2NRQPOQY.js → chunk-QEV4Q4TR.js} +3 -3
  20. package/dist/{chunk-2NRQPOQY.js.map → chunk-QEV4Q4TR.js.map} +1 -1
  21. package/dist/{chunk-XS47N22X.cjs → chunk-V6JTSET2.cjs} +13 -13
  22. package/dist/{chunk-XS47N22X.cjs.map → chunk-V6JTSET2.cjs.map} +1 -1
  23. package/dist/{chunk-KTCH6INZ.js → chunk-VQZNN335.js} +200 -263
  24. package/dist/chunk-VQZNN335.js.map +1 -0
  25. package/dist/chunk-Y2GYABV7.js +3 -0
  26. package/dist/chunk-Y2GYABV7.js.map +1 -0
  27. package/dist/chunk-YGTMLR3D.js +88 -0
  28. package/dist/chunk-YGTMLR3D.js.map +1 -0
  29. package/dist/core/index.cjs +84 -70
  30. package/dist/core/index.cjs.map +1 -1
  31. package/dist/core/index.d.cts +69 -7
  32. package/dist/core/index.d.ts +69 -7
  33. package/dist/core/index.js +3 -24
  34. package/dist/core/index.js.map +1 -1
  35. package/dist/formula/index.d.cts +1 -1
  36. package/dist/formula/index.d.ts +1 -1
  37. package/dist/index.cjs +373 -112
  38. package/dist/index.d.cts +10 -10
  39. package/dist/index.d.ts +10 -10
  40. package/dist/index.js +7 -6
  41. package/dist/{json-patch.types-eltVqnWC.d.cts → json-patch.types-Cu0Medki.d.cts} +1 -1
  42. package/dist/{json-patch.types-DTUHS9SV.d.ts → json-patch.types-DY7k9hxy.d.ts} +1 -1
  43. package/dist/{json-string.store-DKlkc1u_.d.cts → json-string.store-DOZn38CI.d.cts} +2 -2
  44. package/dist/{json-string.store-DMrHPJ3v.d.ts → json-string.store-DRmQFKrp.d.ts} +2 -2
  45. package/dist/lib/index.cjs +40 -40
  46. package/dist/lib/index.d.cts +4 -4
  47. package/dist/lib/index.d.ts +4 -4
  48. package/dist/lib/index.js +3 -3
  49. package/dist/mocks/index.cjs +36 -12
  50. package/dist/mocks/index.d.cts +28 -9
  51. package/dist/mocks/index.d.ts +28 -9
  52. package/dist/mocks/index.js +2 -2
  53. package/dist/model/index.cjs +86 -58
  54. package/dist/model/index.d.cts +108 -40
  55. package/dist/model/index.d.ts +108 -40
  56. package/dist/model/index.js +4 -4
  57. package/dist/plugins/index.cjs +1 -1
  58. package/dist/plugins/index.d.cts +9 -9
  59. package/dist/plugins/index.d.ts +9 -9
  60. package/dist/plugins/index.js +1 -1
  61. package/dist/{schema.types-ZX5fUW1X.d.cts → schema.types-B5OgKLpV.d.cts} +3 -2
  62. package/dist/{schema.types-ZX5fUW1X.d.ts → schema.types-B5OgKLpV.d.ts} +3 -2
  63. package/dist/types/index.cjs +2 -2
  64. package/dist/types/index.d.cts +4 -4
  65. package/dist/types/index.d.ts +4 -4
  66. package/dist/types/index.js +1 -1
  67. package/dist/{types-DmsYGLDX.d.ts → types-BUiNI0oL.d.cts} +18 -23
  68. package/dist/{types-BWeurwlH.d.cts → types-bBnnfNxC.d.ts} +18 -23
  69. package/package.json +3 -1
  70. package/dist/FormulaValidator-Bl6lav9r.d.ts +0 -10
  71. package/dist/FormulaValidator-DTT8T1OM.d.cts +0 -10
  72. package/dist/chunk-AORPUIKD.js +0 -81
  73. package/dist/chunk-AORPUIKD.js.map +0 -1
  74. package/dist/chunk-CYTPQYVM.js.map +0 -1
  75. package/dist/chunk-EJYILFAK.cjs +0 -92
  76. package/dist/chunk-EJYILFAK.cjs.map +0 -1
  77. package/dist/chunk-GAPLSVZN.cjs.map +0 -1
  78. package/dist/chunk-HY4VE7H2.js.map +0 -1
  79. package/dist/chunk-IWRV6QAD.cjs.map +0 -1
  80. package/dist/chunk-KQWWRWGB.cjs.map +0 -1
  81. package/dist/chunk-KTCH6INZ.js.map +0 -1
  82. package/dist/chunk-S7GEDTSL.js.map +0 -1
  83. package/dist/chunk-TMWPWGUN.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema } from '../chunk-AORPUIKD.js';
2
- import '../chunk-CYTPQYVM.js';
1
+ export { arr, bool, getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema, num, obj, ref, str } from '../chunk-YGTMLR3D.js';
2
+ import '../chunk-MPF6VCB5.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,229 +1,257 @@
1
1
  'use strict';
2
2
 
3
- var chunkKQWWRWGB_cjs = require('../chunk-KQWWRWGB.cjs');
4
- require('../chunk-IWRV6QAD.cjs');
3
+ var chunkOY5NX5DZ_cjs = require('../chunk-OY5NX5DZ.cjs');
4
+ var chunk44ZEZUWU_cjs = require('../chunk-44ZEZUWU.cjs');
5
5
  require('../chunk-TBFTADML.cjs');
6
- var chunkTMWPWGUN_cjs = require('../chunk-TMWPWGUN.cjs');
6
+ var chunkB3T6YB2D_cjs = require('../chunk-B3T6YB2D.cjs');
7
7
  require('../chunk-ZRNFSUOV.cjs');
8
- require('../chunk-GAPLSVZN.cjs');
8
+ require('../chunk-J6SCHJKG.cjs');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "ArrayValueNode", {
13
13
  enumerable: true,
14
- get: function () { return chunkKQWWRWGB_cjs.ArrayValueNode; }
14
+ get: function () { return chunkOY5NX5DZ_cjs.ArrayValueNode; }
15
15
  });
16
16
  Object.defineProperty(exports, "BasePrimitiveValueNode", {
17
17
  enumerable: true,
18
- get: function () { return chunkKQWWRWGB_cjs.BasePrimitiveValueNode; }
18
+ get: function () { return chunkOY5NX5DZ_cjs.BasePrimitiveValueNode; }
19
19
  });
20
20
  Object.defineProperty(exports, "BaseValueNode", {
21
21
  enumerable: true,
22
- get: function () { return chunkKQWWRWGB_cjs.BaseValueNode; }
22
+ get: function () { return chunkOY5NX5DZ_cjs.BaseValueNode; }
23
23
  });
24
24
  Object.defineProperty(exports, "BooleanValueNode", {
25
25
  enumerable: true,
26
- get: function () { return chunkKQWWRWGB_cjs.BooleanValueNode; }
26
+ get: function () { return chunkOY5NX5DZ_cjs.BooleanValueNode; }
27
27
  });
28
28
  Object.defineProperty(exports, "DataModelImpl", {
29
29
  enumerable: true,
30
- get: function () { return chunkKQWWRWGB_cjs.DataModelImpl; }
30
+ get: function () { return chunkOY5NX5DZ_cjs.DataModelImpl; }
31
31
  });
32
32
  Object.defineProperty(exports, "ForeignKeyNotFoundError", {
33
33
  enumerable: true,
34
- get: function () { return chunkKQWWRWGB_cjs.ForeignKeyNotFoundError; }
34
+ get: function () { return chunkOY5NX5DZ_cjs.ForeignKeyNotFoundError; }
35
35
  });
36
36
  Object.defineProperty(exports, "ForeignKeyResolverImpl", {
37
37
  enumerable: true,
38
- get: function () { return chunkKQWWRWGB_cjs.ForeignKeyResolverImpl; }
38
+ get: function () { return chunkOY5NX5DZ_cjs.ForeignKeyResolverImpl; }
39
39
  });
40
40
  Object.defineProperty(exports, "ForeignKeyResolverNotConfiguredError", {
41
41
  enumerable: true,
42
- get: function () { return chunkKQWWRWGB_cjs.ForeignKeyResolverNotConfiguredError; }
42
+ get: function () { return chunkOY5NX5DZ_cjs.ForeignKeyResolverNotConfiguredError; }
43
43
  });
44
44
  Object.defineProperty(exports, "ForeignKeyValueNodeImpl", {
45
45
  enumerable: true,
46
- get: function () { return chunkKQWWRWGB_cjs.ForeignKeyValueNodeImpl; }
46
+ get: function () { return chunkOY5NX5DZ_cjs.ForeignKeyValueNodeImpl; }
47
47
  });
48
48
  Object.defineProperty(exports, "NodeFactory", {
49
49
  enumerable: true,
50
- get: function () { return chunkKQWWRWGB_cjs.NodeFactory; }
50
+ get: function () { return chunkOY5NX5DZ_cjs.NodeFactory; }
51
51
  });
52
52
  Object.defineProperty(exports, "NodeFactoryRegistry", {
53
53
  enumerable: true,
54
- get: function () { return chunkKQWWRWGB_cjs.NodeFactoryRegistry; }
54
+ get: function () { return chunkOY5NX5DZ_cjs.NodeFactoryRegistry; }
55
55
  });
56
56
  Object.defineProperty(exports, "NumberValueNode", {
57
57
  enumerable: true,
58
- get: function () { return chunkKQWWRWGB_cjs.NumberValueNode; }
58
+ get: function () { return chunkOY5NX5DZ_cjs.NumberValueNode; }
59
59
  });
60
60
  Object.defineProperty(exports, "ObjectValueNode", {
61
61
  enumerable: true,
62
- get: function () { return chunkKQWWRWGB_cjs.ObjectValueNode; }
62
+ get: function () { return chunkOY5NX5DZ_cjs.ObjectValueNode; }
63
63
  });
64
64
  Object.defineProperty(exports, "RowModelImpl", {
65
65
  enumerable: true,
66
- get: function () { return chunkKQWWRWGB_cjs.RowModelImpl; }
66
+ get: function () { return chunkOY5NX5DZ_cjs.RowModelImpl; }
67
67
  });
68
68
  Object.defineProperty(exports, "SchemaParser", {
69
69
  enumerable: true,
70
- get: function () { return chunkKQWWRWGB_cjs.SchemaParser; }
70
+ get: function () { return chunkOY5NX5DZ_cjs.SchemaParser; }
71
71
  });
72
72
  Object.defineProperty(exports, "StringValueNode", {
73
73
  enumerable: true,
74
- get: function () { return chunkKQWWRWGB_cjs.StringValueNode; }
74
+ get: function () { return chunkOY5NX5DZ_cjs.StringValueNode; }
75
75
  });
76
76
  Object.defineProperty(exports, "TableModelImpl", {
77
77
  enumerable: true,
78
- get: function () { return chunkKQWWRWGB_cjs.TableModelImpl; }
78
+ get: function () { return chunkOY5NX5DZ_cjs.TableModelImpl; }
79
79
  });
80
80
  Object.defineProperty(exports, "ValueNodeFactory", {
81
81
  enumerable: true,
82
- get: function () { return chunkKQWWRWGB_cjs.NodeFactory2; }
82
+ get: function () { return chunkOY5NX5DZ_cjs.NodeFactory2; }
83
83
  });
84
84
  Object.defineProperty(exports, "ValueType", {
85
85
  enumerable: true,
86
- get: function () { return chunkKQWWRWGB_cjs.ValueType; }
86
+ get: function () { return chunkOY5NX5DZ_cjs.ValueType; }
87
87
  });
88
88
  Object.defineProperty(exports, "createDataModel", {
89
89
  enumerable: true,
90
- get: function () { return chunkKQWWRWGB_cjs.createDataModel; }
90
+ get: function () { return chunkOY5NX5DZ_cjs.createDataModel; }
91
91
  });
92
92
  Object.defineProperty(exports, "createDefaultRegistry", {
93
93
  enumerable: true,
94
- get: function () { return chunkKQWWRWGB_cjs.createDefaultRegistry; }
94
+ get: function () { return chunkOY5NX5DZ_cjs.createDefaultRegistry; }
95
95
  });
96
96
  Object.defineProperty(exports, "createForeignKeyResolver", {
97
97
  enumerable: true,
98
- get: function () { return chunkKQWWRWGB_cjs.createForeignKeyResolver; }
98
+ get: function () { return chunkOY5NX5DZ_cjs.createForeignKeyResolver; }
99
99
  });
100
100
  Object.defineProperty(exports, "createNodeFactory", {
101
101
  enumerable: true,
102
- get: function () { return chunkKQWWRWGB_cjs.createNodeFactory; }
102
+ get: function () { return chunkOY5NX5DZ_cjs.createNodeFactory; }
103
103
  });
104
104
  Object.defineProperty(exports, "createSchemaModel", {
105
105
  enumerable: true,
106
- get: function () { return chunkKQWWRWGB_cjs.createSchemaModel; }
106
+ get: function () { return chunkOY5NX5DZ_cjs.createSchemaModel; }
107
107
  });
108
108
  Object.defineProperty(exports, "createTableModel", {
109
109
  enumerable: true,
110
- get: function () { return chunkKQWWRWGB_cjs.createTableModel; }
110
+ get: function () { return chunkOY5NX5DZ_cjs.createTableModel; }
111
111
  });
112
112
  Object.defineProperty(exports, "extractFormulaDefinition", {
113
113
  enumerable: true,
114
- get: function () { return chunkKQWWRWGB_cjs.extractFormulaDefinition; }
114
+ get: function () { return chunkOY5NX5DZ_cjs.extractFormulaDefinition; }
115
115
  });
116
116
  Object.defineProperty(exports, "generateDefaultValue", {
117
117
  enumerable: true,
118
- get: function () { return chunkKQWWRWGB_cjs.generateDefaultValue; }
118
+ get: function () { return chunkOY5NX5DZ_cjs.generateDefaultValue; }
119
119
  });
120
120
  Object.defineProperty(exports, "generateNodeId", {
121
121
  enumerable: true,
122
- get: function () { return chunkKQWWRWGB_cjs.generateNodeId; }
122
+ get: function () { return chunkOY5NX5DZ_cjs.generateNodeId; }
123
123
  });
124
124
  Object.defineProperty(exports, "isForeignKeyValueNode", {
125
125
  enumerable: true,
126
- get: function () { return chunkKQWWRWGB_cjs.isForeignKeyValueNode; }
126
+ get: function () { return chunkOY5NX5DZ_cjs.isForeignKeyValueNode; }
127
127
  });
128
128
  Object.defineProperty(exports, "resetNodeIdCounter", {
129
129
  enumerable: true,
130
- get: function () { return chunkKQWWRWGB_cjs.resetNodeIdCounter; }
130
+ get: function () { return chunkOY5NX5DZ_cjs.resetNodeIdCounter; }
131
+ });
132
+ Object.defineProperty(exports, "FormulaChangeDetector", {
133
+ enumerable: true,
134
+ get: function () { return chunk44ZEZUWU_cjs.FormulaChangeDetector; }
135
+ });
136
+ Object.defineProperty(exports, "FormulaDependencyIndex", {
137
+ enumerable: true,
138
+ get: function () { return chunk44ZEZUWU_cjs.FormulaDependencyIndex; }
139
+ });
140
+ Object.defineProperty(exports, "FormulaPath", {
141
+ enumerable: true,
142
+ get: function () { return chunk44ZEZUWU_cjs.FormulaPath; }
143
+ });
144
+ Object.defineProperty(exports, "FormulaPathBuilder", {
145
+ enumerable: true,
146
+ get: function () { return chunk44ZEZUWU_cjs.FormulaPathBuilder; }
147
+ });
148
+ Object.defineProperty(exports, "FormulaSerializer", {
149
+ enumerable: true,
150
+ get: function () { return chunk44ZEZUWU_cjs.FormulaSerializer; }
151
+ });
152
+ Object.defineProperty(exports, "ParsedFormula", {
153
+ enumerable: true,
154
+ get: function () { return chunk44ZEZUWU_cjs.ParsedFormula; }
155
+ });
156
+ Object.defineProperty(exports, "ResolvedDependency", {
157
+ enumerable: true,
158
+ get: function () { return chunk44ZEZUWU_cjs.ResolvedDependency; }
131
159
  });
132
160
  Object.defineProperty(exports, "JsonArrayStore", {
133
161
  enumerable: true,
134
- get: function () { return chunkTMWPWGUN_cjs.JsonArrayStore; }
162
+ get: function () { return chunkB3T6YB2D_cjs.JsonArrayStore; }
135
163
  });
136
164
  Object.defineProperty(exports, "JsonArrayValueStore", {
137
165
  enumerable: true,
138
- get: function () { return chunkTMWPWGUN_cjs.JsonArrayValueStore; }
166
+ get: function () { return chunkB3T6YB2D_cjs.JsonArrayValueStore; }
139
167
  });
140
168
  Object.defineProperty(exports, "JsonBooleanStore", {
141
169
  enumerable: true,
142
- get: function () { return chunkTMWPWGUN_cjs.JsonBooleanStore; }
170
+ get: function () { return chunkB3T6YB2D_cjs.JsonBooleanStore; }
143
171
  });
144
172
  Object.defineProperty(exports, "JsonBooleanValueStore", {
145
173
  enumerable: true,
146
- get: function () { return chunkTMWPWGUN_cjs.JsonBooleanValueStore; }
174
+ get: function () { return chunkB3T6YB2D_cjs.JsonBooleanValueStore; }
147
175
  });
148
176
  Object.defineProperty(exports, "JsonNumberStore", {
149
177
  enumerable: true,
150
- get: function () { return chunkTMWPWGUN_cjs.JsonNumberStore; }
178
+ get: function () { return chunkB3T6YB2D_cjs.JsonNumberStore; }
151
179
  });
152
180
  Object.defineProperty(exports, "JsonNumberValueStore", {
153
181
  enumerable: true,
154
- get: function () { return chunkTMWPWGUN_cjs.JsonNumberValueStore; }
182
+ get: function () { return chunkB3T6YB2D_cjs.JsonNumberValueStore; }
155
183
  });
156
184
  Object.defineProperty(exports, "JsonObjectStore", {
157
185
  enumerable: true,
158
- get: function () { return chunkTMWPWGUN_cjs.JsonObjectStore; }
186
+ get: function () { return chunkB3T6YB2D_cjs.JsonObjectStore; }
159
187
  });
160
188
  Object.defineProperty(exports, "JsonObjectValueStore", {
161
189
  enumerable: true,
162
- get: function () { return chunkTMWPWGUN_cjs.JsonObjectValueStore; }
190
+ get: function () { return chunkB3T6YB2D_cjs.JsonObjectValueStore; }
163
191
  });
164
192
  Object.defineProperty(exports, "JsonStringStore", {
165
193
  enumerable: true,
166
- get: function () { return chunkTMWPWGUN_cjs.JsonStringStore; }
194
+ get: function () { return chunkB3T6YB2D_cjs.JsonStringStore; }
167
195
  });
168
196
  Object.defineProperty(exports, "JsonStringValueStore", {
169
197
  enumerable: true,
170
- get: function () { return chunkTMWPWGUN_cjs.JsonStringValueStore; }
198
+ get: function () { return chunkB3T6YB2D_cjs.JsonStringValueStore; }
171
199
  });
172
200
  Object.defineProperty(exports, "equal", {
173
201
  enumerable: true,
174
- get: function () { return chunkTMWPWGUN_cjs.equal; }
202
+ get: function () { return chunkB3T6YB2D_cjs.equal; }
175
203
  });
176
204
  Object.defineProperty(exports, "fromArrayToObject", {
177
205
  enumerable: true,
178
- get: function () { return chunkTMWPWGUN_cjs.fromArrayToObject; }
206
+ get: function () { return chunkB3T6YB2D_cjs.fromArrayToObject; }
179
207
  });
180
208
  Object.defineProperty(exports, "fromArrayTransformation", {
181
209
  enumerable: true,
182
- get: function () { return chunkTMWPWGUN_cjs.fromArrayTransformation; }
210
+ get: function () { return chunkB3T6YB2D_cjs.fromArrayTransformation; }
183
211
  });
184
212
  Object.defineProperty(exports, "fromBooleanToNumber", {
185
213
  enumerable: true,
186
- get: function () { return chunkTMWPWGUN_cjs.fromBooleanToNumber; }
214
+ get: function () { return chunkB3T6YB2D_cjs.fromBooleanToNumber; }
187
215
  });
188
216
  Object.defineProperty(exports, "fromBooleanToString", {
189
217
  enumerable: true,
190
- get: function () { return chunkTMWPWGUN_cjs.fromBooleanToString; }
218
+ get: function () { return chunkB3T6YB2D_cjs.fromBooleanToString; }
191
219
  });
192
220
  Object.defineProperty(exports, "fromNumberToBoolean", {
193
221
  enumerable: true,
194
- get: function () { return chunkTMWPWGUN_cjs.fromNumberToBoolean; }
222
+ get: function () { return chunkB3T6YB2D_cjs.fromNumberToBoolean; }
195
223
  });
196
224
  Object.defineProperty(exports, "fromNumberToString", {
197
225
  enumerable: true,
198
- get: function () { return chunkTMWPWGUN_cjs.fromNumberToString; }
226
+ get: function () { return chunkB3T6YB2D_cjs.fromNumberToString; }
199
227
  });
200
228
  Object.defineProperty(exports, "fromObjectToArray", {
201
229
  enumerable: true,
202
- get: function () { return chunkTMWPWGUN_cjs.fromObjectToArray; }
230
+ get: function () { return chunkB3T6YB2D_cjs.fromObjectToArray; }
203
231
  });
204
232
  Object.defineProperty(exports, "fromObjectToPrimitive", {
205
233
  enumerable: true,
206
- get: function () { return chunkTMWPWGUN_cjs.fromObjectToPrimitive; }
234
+ get: function () { return chunkB3T6YB2D_cjs.fromObjectToPrimitive; }
207
235
  });
208
236
  Object.defineProperty(exports, "fromPrimitiveToObject", {
209
237
  enumerable: true,
210
- get: function () { return chunkTMWPWGUN_cjs.fromPrimitiveToObject; }
238
+ get: function () { return chunkB3T6YB2D_cjs.fromPrimitiveToObject; }
211
239
  });
212
240
  Object.defineProperty(exports, "fromStringToBoolean", {
213
241
  enumerable: true,
214
- get: function () { return chunkTMWPWGUN_cjs.fromStringToBoolean; }
242
+ get: function () { return chunkB3T6YB2D_cjs.fromStringToBoolean; }
215
243
  });
216
244
  Object.defineProperty(exports, "fromStringToNumber", {
217
245
  enumerable: true,
218
- get: function () { return chunkTMWPWGUN_cjs.fromStringToNumber; }
246
+ get: function () { return chunkB3T6YB2D_cjs.fromStringToNumber; }
219
247
  });
220
248
  Object.defineProperty(exports, "getTransformation", {
221
249
  enumerable: true,
222
- get: function () { return chunkTMWPWGUN_cjs.getTransformation; }
250
+ get: function () { return chunkB3T6YB2D_cjs.getTransformation; }
223
251
  });
224
252
  Object.defineProperty(exports, "toArrayTransformation", {
225
253
  enumerable: true,
226
- get: function () { return chunkTMWPWGUN_cjs.toArrayTransformation; }
254
+ get: function () { return chunkB3T6YB2D_cjs.toArrayTransformation; }
227
255
  });
228
256
  //# sourceMappingURL=index.cjs.map
229
257
  //# sourceMappingURL=index.cjs.map
@@ -1,11 +1,13 @@
1
- import { h as JsonSchemaStore } from '../json-string.store-DKlkc1u_.cjs';
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-DKlkc1u_.cjs';
3
- import { b as SchemaNode, P as Path, N as NodeMetadata, S as SchemaValidationError, F as FormulaValidationError, f as SchemaPatch, J as JsonPatch, R as ReactivityAdapter, c as SchemaTree, D as Diagnostic } from '../types-BWeurwlH.cjs';
4
- import { f as JsonObjectSchema, i as JsonSchema } from '../schema.types-ZX5fUW1X.cjs';
1
+ import { h as JsonSchemaStore } from '../json-string.store-DOZn38CI.cjs';
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-DOZn38CI.cjs';
3
+ import { j as SchemaNode, P as Path, h as NodeMetadata, f as SchemaValidationError, T as TreeFormulaValidationError, l as SchemaPatch, k as SchemaTree, D as Diagnostic, n as Formula, F as FormulaDependency } from '../types-BUiNI0oL.cjs';
4
+ export { R as ResolvedDependency } from '../types-BUiNI0oL.cjs';
5
+ import { h as JsonPatch } from '../json-patch.types-Cu0Medki.cjs';
6
+ import { f as JsonObjectSchema, i as JsonSchema, X as XFormula } from '../schema.types-B5OgKLpV.cjs';
5
7
  import { d as JsonValuePatch } from '../json-value-patch.types-CjBpq5VF.cjs';
6
- import 'node:events';
8
+ import { ASTNode } from '@revisium/formula';
9
+ import 'eventemitter3';
7
10
  import '../json.types-46Cq-WxU.cjs';
8
- import '@revisium/formula';
9
11
 
10
12
  declare const equal: (value: unknown) => unknown;
11
13
  declare const fromNumberToString: (value: number, defaultValue?: string) => string;
@@ -23,9 +25,6 @@ declare const fromArrayToObject: (_value: unknown, defaultValue: unknown) => unk
23
25
  declare const getTransformation: (from: JsonSchemaStore, to: JsonSchemaStore) => Transformation | undefined;
24
26
  type Transformation = (value: unknown, defaultValue?: unknown) => unknown;
25
27
 
26
- interface ReactivityOptions {
27
- reactivity?: ReactivityAdapter;
28
- }
29
28
  type FieldType = 'string' | 'number' | 'boolean' | 'object' | 'array';
30
29
  interface ReplaceResult {
31
30
  replacedNodeId: string;
@@ -48,10 +47,12 @@ interface SchemaModel {
48
47
  replaceRoot(newType: FieldType): ReplaceResult | null;
49
48
  canMoveNode(nodeId: string, targetParentId: string): boolean;
50
49
  hasValidDropTarget(nodeId: string): boolean;
50
+ moveNode(nodeId: string, targetParentId: string): void;
51
51
  getFormulaDependents(nodeId: string): readonly string[];
52
52
  hasFormulaDependents(nodeId: string): boolean;
53
+ serializeFormula(nodeId: string): string;
53
54
  readonly validationErrors: SchemaValidationError[];
54
- readonly formulaErrors: FormulaValidationError[];
55
+ readonly formulaErrors: TreeFormulaValidationError[];
55
56
  readonly isDirty: boolean;
56
57
  readonly isValid: boolean;
57
58
  readonly patches: SchemaPatch[];
@@ -65,12 +66,14 @@ interface SchemaModel {
65
66
  }): unknown;
66
67
  }
67
68
 
68
- declare function createSchemaModel(schema: JsonObjectSchema, options?: ReactivityOptions): SchemaModel;
69
+ declare function createSchemaModel(schema: JsonObjectSchema): SchemaModel;
69
70
 
70
71
  declare class SchemaParser {
71
72
  private pendingFormulas;
73
+ private _parseErrors;
72
74
  parse(schema: JsonObjectSchema): SchemaNode;
73
75
  parseFormulas(tree: SchemaTree): void;
76
+ get parseErrors(): TreeFormulaValidationError[];
74
77
  private parseNode;
75
78
  private parseObject;
76
79
  private parseArray;
@@ -83,7 +86,7 @@ declare class SchemaParser {
83
86
 
84
87
  declare class NodeFactory$1 {
85
88
  createNode(name: string, type: FieldType): SchemaNode;
86
- private createArrayNode;
89
+ private createArrayNodeInternal;
87
90
  createArrayNodeWithItems(name: string, items: SchemaNode): SchemaNode;
88
91
  }
89
92
 
@@ -130,7 +133,6 @@ interface ForeignKeyLoader {
130
133
  loadRow(tableId: string, rowId: string): Promise<ForeignKeyRowLoaderResult>;
131
134
  }
132
135
  interface ForeignKeyResolverOptions {
133
- reactivity?: ReactivityAdapter;
134
136
  loader?: ForeignKeyLoader;
135
137
  prefetch?: boolean;
136
138
  prefetchDepth?: 1;
@@ -163,7 +165,6 @@ declare class NodeFactoryRegistry {
163
165
  type RefSchemas = Record<string, JsonSchema>;
164
166
  interface NodeFactoryOptions {
165
167
  refSchemas?: RefSchemas;
166
- reactivity?: ReactivityAdapter;
167
168
  fkResolver?: ForeignKeyResolver;
168
169
  }
169
170
  declare class NodeFactory {
@@ -175,7 +176,7 @@ declare class NodeFactory {
175
176
  private getSchemaType;
176
177
  private resolveSchema;
177
178
  }
178
- declare function createDefaultRegistry(reactivity?: ReactivityAdapter, fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
179
+ declare function createDefaultRegistry(fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
179
180
  declare function createNodeFactory(options?: NodeFactoryOptions): NodeFactory;
180
181
 
181
182
  declare enum ValueType {
@@ -308,10 +309,8 @@ interface RowModel {
308
309
  declare class RowModelImpl implements RowModel {
309
310
  private readonly _rowId;
310
311
  private readonly _tree;
311
- private readonly _reactivity?;
312
312
  private _tableModel;
313
- constructor(_rowId: string, _tree: ValueTreeLike, _reactivity?: ReactivityAdapter | undefined);
314
- private initObservable;
313
+ constructor(_rowId: string, _tree: ValueTreeLike);
315
314
  get rowId(): string;
316
315
  get tableModel(): TableModelLike | null;
317
316
  get tree(): ValueTreeLike;
@@ -337,10 +336,8 @@ declare class TableModelImpl implements TableModel {
337
336
  private readonly _schema;
338
337
  private readonly _rows;
339
338
  private readonly _jsonSchema;
340
- private readonly _reactivity;
341
339
  private readonly _fkResolver;
342
- constructor(options: TableModelOptions, reactivity?: ReactivityAdapter);
343
- private initObservable;
340
+ constructor(options: TableModelOptions);
344
341
  get tableId(): string;
345
342
  get baseTableId(): string;
346
343
  get isRenamed(): boolean;
@@ -359,7 +356,7 @@ declare class TableModelImpl implements TableModel {
359
356
  revert(): void;
360
357
  private createRowModel;
361
358
  }
362
- declare function createTableModel(options: TableModelOptions, reactivity?: ReactivityAdapter): TableModel;
359
+ declare function createTableModel(options: TableModelOptions): TableModel;
363
360
 
364
361
  interface GenerateDefaultValueOptions {
365
362
  arrayItemCount?: number;
@@ -378,9 +375,7 @@ declare class ForeignKeyResolverImpl implements ForeignKeyResolver {
378
375
  private _prefetchEnabled;
379
376
  private _disposed;
380
377
  private readonly loader;
381
- private readonly reactivity;
382
378
  constructor(options?: ForeignKeyResolverOptions);
383
- private initObservable;
384
379
  get isPrefetchEnabled(): boolean;
385
380
  setPrefetch(enabled: boolean): void;
386
381
  hasSchema(tableId: string): boolean;
@@ -435,7 +430,6 @@ interface DataModel {
435
430
  }
436
431
 
437
432
  interface DataModelOptions {
438
- reactivity?: ReactivityAdapter;
439
433
  fkResolver?: ForeignKeyResolver;
440
434
  }
441
435
 
@@ -443,9 +437,7 @@ declare class DataModelImpl implements DataModel {
443
437
  private readonly _tables;
444
438
  private readonly _fk;
445
439
  private readonly _ownsFkResolver;
446
- private readonly _reactivity;
447
440
  constructor(options?: DataModelOptions);
448
- private initObservable;
449
441
  get fk(): ForeignKeyResolver;
450
442
  get tables(): readonly TableModel[];
451
443
  get tableIds(): readonly string[];
@@ -461,6 +453,87 @@ declare class DataModelImpl implements DataModel {
461
453
  }
462
454
  declare function createDataModel(options?: DataModelOptions): DataModel;
463
455
 
456
+ declare class ParsedFormula implements Formula {
457
+ private readonly _expression;
458
+ private readonly astNode;
459
+ private readonly deps;
460
+ private readonly astPathToNodeId;
461
+ constructor(tree: SchemaTree, formulaNodeId: string, expression: string);
462
+ version(): number;
463
+ expression(): string;
464
+ ast(): ASTNode;
465
+ dependencies(): readonly FormulaDependency[];
466
+ getNodeIdForAstPath(astPath: string): string | null;
467
+ astPaths(): readonly string[];
468
+ private resolveDependencyPath;
469
+ private getFormulaBasePath;
470
+ }
471
+
472
+ declare class FormulaPath {
473
+ private readonly basePath;
474
+ private readonly relativePath;
475
+ constructor(basePath: Path, relativePath: string);
476
+ resolve(): Path | null;
477
+ private astToPath;
478
+ private resolveRelativePathString;
479
+ private resolveRootPath;
480
+ private parseFormulaPath;
481
+ }
482
+
483
+ interface SerializeOptions {
484
+ readonly strict?: boolean;
485
+ }
486
+ declare class FormulaSerializer {
487
+ private readonly tree;
488
+ private readonly formulaNodeId;
489
+ private readonly formula;
490
+ private readonly pathBuilder;
491
+ constructor(tree: SchemaTree, formulaNodeId: string, formula: Formula);
492
+ static toXFormula(tree: SchemaTree, formulaNodeId: string, formula: Formula): XFormula;
493
+ static serializeExpression(tree: SchemaTree, formulaNodeId: string, formula: Formula, options?: SerializeOptions): string;
494
+ serialize(options?: SerializeOptions): string;
495
+ private buildPathReplacements;
496
+ private needsReplacement;
497
+ private normalizeArrayNotation;
498
+ }
499
+
500
+ declare class FormulaPathBuilder {
501
+ buildWithArrayNotation(fromPath: Path, toPath: Path): string;
502
+ private findCommonPrefixLength;
503
+ private buildPartsWithArrayNotation;
504
+ private formatPartsWithArrayNotation;
505
+ }
506
+
507
+ declare class FormulaDependencyIndex {
508
+ private readonly dependentsMap;
509
+ private readonly formulasByNodeId;
510
+ registerFormula(formulaNodeId: string, formula: Formula): void;
511
+ unregisterFormula(formulaNodeId: string): void;
512
+ getDependents(nodeId: string): readonly string[];
513
+ hasDependents(nodeId: string): boolean;
514
+ getFormula(nodeId: string): Formula | null;
515
+ hasFormula(nodeId: string): boolean;
516
+ clear(): void;
517
+ forEachFormula(callback: (nodeId: string, formula: Formula) => void): void;
518
+ size(): number;
519
+ }
520
+
521
+ interface IndirectFormulaChange {
522
+ readonly nodeId: string;
523
+ readonly fromExpression: string;
524
+ readonly toExpression: string;
525
+ }
526
+ declare class FormulaChangeDetector {
527
+ private readonly index;
528
+ private readonly currentTree;
529
+ private readonly baseTree;
530
+ constructor(index: FormulaDependencyIndex, currentTree: SchemaTree, baseTree: SchemaTree);
531
+ detectIndirectChanges(changedNodeIds: Set<string>): IndirectFormulaChange[];
532
+ private collectDependentChanges;
533
+ private detectFormulaChange;
534
+ private getSerializedExpression;
535
+ }
536
+
464
537
  declare function generateNodeId(): string;
465
538
  declare function resetNodeIdCounter(): void;
466
539
  declare abstract class BaseValueNode implements ValueNode {
@@ -485,11 +558,10 @@ declare abstract class BaseValueNode implements ValueNode {
485
558
  }
486
559
 
487
560
  declare abstract class BasePrimitiveValueNode<T extends string | number | boolean> extends BaseValueNode implements PrimitiveValueNode {
488
- protected readonly reactivity?: ReactivityAdapter | undefined;
489
561
  protected _value: T;
490
562
  protected _baseValue: T;
491
563
  protected _formulaWarning: FormulaWarning | null;
492
- constructor(id: string | undefined, name: string, schema: JsonSchema, value: T | undefined, defaultValue: T, reactivity?: ReactivityAdapter | undefined);
564
+ constructor(id: string | undefined, name: string, schema: JsonSchema, value: T | undefined, defaultValue: T);
493
565
  protected initObservable(): void;
494
566
  get value(): T;
495
567
  set value(newValue: T);
@@ -515,7 +587,7 @@ declare abstract class BasePrimitiveValueNode<T extends string | number | boolea
515
587
 
516
588
  declare class StringValueNode extends BasePrimitiveValueNode<string> {
517
589
  readonly type = ValueType.String;
518
- constructor(id: string | undefined, name: string, schema: JsonSchema, value?: string, reactivity?: ReactivityAdapter);
590
+ constructor(id: string | undefined, name: string, schema: JsonSchema, value?: string);
519
591
  get defaultValue(): string;
520
592
  protected coerceValue(value: unknown): string;
521
593
  protected computeErrors(): readonly Diagnostic[];
@@ -529,7 +601,7 @@ declare class StringValueNode extends BasePrimitiveValueNode<string> {
529
601
 
530
602
  declare class NumberValueNode extends BasePrimitiveValueNode<number> {
531
603
  readonly type = ValueType.Number;
532
- constructor(id: string | undefined, name: string, schema: JsonSchema, value?: number, reactivity?: ReactivityAdapter);
604
+ constructor(id: string | undefined, name: string, schema: JsonSchema, value?: number);
533
605
  get defaultValue(): number;
534
606
  protected coerceValue(value: unknown): number;
535
607
  protected computeErrors(): readonly Diagnostic[];
@@ -537,18 +609,16 @@ declare class NumberValueNode extends BasePrimitiveValueNode<number> {
537
609
 
538
610
  declare class BooleanValueNode extends BasePrimitiveValueNode<boolean> {
539
611
  readonly type = ValueType.Boolean;
540
- constructor(id: string | undefined, name: string, schema: JsonSchema, value?: boolean, reactivity?: ReactivityAdapter);
612
+ constructor(id: string | undefined, name: string, schema: JsonSchema, value?: boolean);
541
613
  get defaultValue(): boolean;
542
614
  protected coerceValue(value: unknown): boolean;
543
615
  }
544
616
 
545
617
  declare class ObjectValueNode extends BaseValueNode implements ObjectValueNode$1 {
546
- private readonly reactivity?;
547
618
  readonly type = ValueType.Object;
548
619
  private _children;
549
620
  private _baseChildren;
550
- constructor(id: string | undefined, name: string, schema: JsonSchema, children?: ValueNode[], reactivity?: ReactivityAdapter | undefined);
551
- private initObservable;
621
+ constructor(id: string | undefined, name: string, schema: JsonSchema, children?: ValueNode[]);
552
622
  get value(): Record<string, ValueNode>;
553
623
  get children(): readonly ValueNode[];
554
624
  getPlainValue(): Record<string, unknown>;
@@ -565,13 +635,11 @@ declare class ObjectValueNode extends BaseValueNode implements ObjectValueNode$1
565
635
  }
566
636
 
567
637
  declare class ArrayValueNode extends BaseValueNode implements ArrayValueNode$1 {
568
- private readonly reactivity?;
569
638
  readonly type = ValueType.Array;
570
639
  private _items;
571
640
  private _baseItems;
572
641
  private _nodeFactory;
573
- constructor(id: string | undefined, name: string, schema: JsonSchema, items?: ValueNode[], reactivity?: ReactivityAdapter | undefined);
574
- private initObservable;
642
+ constructor(id: string | undefined, name: string, schema: JsonSchema, items?: ValueNode[]);
575
643
  get value(): readonly ValueNode[];
576
644
  get length(): number;
577
645
  getPlainValue(): unknown[];
@@ -606,11 +674,11 @@ declare function isForeignKeyValueNode(node: ValueNode): node is ForeignKeyValue
606
674
  declare class ForeignKeyValueNodeImpl extends StringValueNode implements ForeignKeyValueNode {
607
675
  private readonly fkResolver?;
608
676
  private readonly _foreignKey;
609
- constructor(id: string | undefined, name: string, schema: JsonSchema, value?: string, reactivity?: ReactivityAdapter, fkResolver?: ForeignKeyResolver | undefined);
677
+ constructor(id: string | undefined, name: string, schema: JsonSchema, value?: string, fkResolver?: ForeignKeyResolver | undefined);
610
678
  get foreignKey(): string;
611
679
  get isLoading(): boolean;
612
680
  getRow(): Promise<RowData>;
613
681
  getSchema(): Promise<JsonObjectSchema>;
614
682
  }
615
683
 
616
- export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, type FormulaDefinition, type FormulaWarning, type GenerateDefaultValueOptions, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, type PrimitiveNodeOptions, type PrimitiveValueNode, type ReactivityOptions, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
684
+ export { type ArrayNodeOptions, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type DataModel, DataModelImpl, type DataModelOptions, type DirtyTrackable, type FieldType, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, FormulaPathBuilder, FormulaSerializer, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, type PrimitiveValueNode, type RefSchemas, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, SchemaParser, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };