@revisium/schema-toolkit 0.17.0 → 0.18.0

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZG7QX4I3_cjs = require('./chunk-ZG7QX4I3.cjs');
3
+ var chunkUQ63QBOS_cjs = require('./chunk-UQ63QBOS.cjs');
4
4
  var chunkVGADCIBG_cjs = require('./chunk-VGADCIBG.cjs');
5
5
  var nanoid = require('nanoid');
6
6
 
@@ -21,7 +21,7 @@ var SchemaParser = class {
21
21
  continue;
22
22
  }
23
23
  try {
24
- const formula = new chunkZG7QX4I3_cjs.ParsedFormula(tree, pending.nodeId, pending.expression);
24
+ const formula = new chunkUQ63QBOS_cjs.ParsedFormula(tree, pending.nodeId, pending.expression);
25
25
  node.setFormula(formula);
26
26
  } catch (error) {
27
27
  this._parseErrors.push({
@@ -42,7 +42,7 @@ var SchemaParser = class {
42
42
  if (resolvedSchema) {
43
43
  return this.parseNode(resolvedSchema, name, refValue);
44
44
  }
45
- return chunkZG7QX4I3_cjs.createRefNode(nanoid.nanoid(), name, refValue, this.extractMetadata(schema));
45
+ return chunkUQ63QBOS_cjs.createRefNode(nanoid.nanoid(), name, refValue, this.extractMetadata(schema));
46
46
  }
47
47
  const schemaWithType = schema;
48
48
  switch (schemaWithType.type) {
@@ -68,14 +68,14 @@ var SchemaParser = class {
68
68
  children.push(this.parseNode(propSchema, propName));
69
69
  }
70
70
  }
71
- return chunkZG7QX4I3_cjs.createObjectNode(nanoid.nanoid(), name, children, {
71
+ return chunkUQ63QBOS_cjs.createObjectNode(nanoid.nanoid(), name, children, {
72
72
  metadata: this.extractMetadata(schema),
73
73
  ref: ref2
74
74
  });
75
75
  }
76
76
  parseArray(schema, name, ref2) {
77
77
  const items = this.parseNode(schema.items, "items");
78
- return chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), name, items, {
78
+ return chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), name, items, {
79
79
  metadata: this.extractMetadata(schema),
80
80
  ref: ref2
81
81
  });
@@ -83,7 +83,7 @@ var SchemaParser = class {
83
83
  parseString(schema, name, ref2) {
84
84
  const nodeId = nanoid.nanoid();
85
85
  this.collectFormula(nodeId, schema["x-formula"]);
86
- return chunkZG7QX4I3_cjs.createStringNode(nodeId, name, {
86
+ return chunkUQ63QBOS_cjs.createStringNode(nodeId, name, {
87
87
  defaultValue: schema.default,
88
88
  foreignKey: schema.foreignKey,
89
89
  metadata: this.extractMetadata(schema),
@@ -93,7 +93,7 @@ var SchemaParser = class {
93
93
  parseNumber(schema, name, ref2) {
94
94
  const nodeId = nanoid.nanoid();
95
95
  this.collectFormula(nodeId, schema["x-formula"]);
96
- return chunkZG7QX4I3_cjs.createNumberNode(nodeId, name, {
96
+ return chunkUQ63QBOS_cjs.createNumberNode(nodeId, name, {
97
97
  defaultValue: schema.default,
98
98
  metadata: this.extractMetadata(schema),
99
99
  ref: ref2
@@ -102,7 +102,7 @@ var SchemaParser = class {
102
102
  parseBoolean(schema, name, ref2) {
103
103
  const nodeId = nanoid.nanoid();
104
104
  this.collectFormula(nodeId, schema["x-formula"]);
105
- return chunkZG7QX4I3_cjs.createBooleanNode(nodeId, name, {
105
+ return chunkUQ63QBOS_cjs.createBooleanNode(nodeId, name, {
106
106
  defaultValue: schema.default,
107
107
  metadata: this.extractMetadata(schema),
108
108
  ref: ref2
@@ -135,13 +135,13 @@ var NodeFactory = class {
135
135
  createNode(name, type) {
136
136
  switch (type) {
137
137
  case "string":
138
- return chunkZG7QX4I3_cjs.createStringNode(nanoid.nanoid(), name, { defaultValue: "" });
138
+ return chunkUQ63QBOS_cjs.createStringNode(nanoid.nanoid(), name, { defaultValue: "" });
139
139
  case "number":
140
- return chunkZG7QX4I3_cjs.createNumberNode(nanoid.nanoid(), name, { defaultValue: 0 });
140
+ return chunkUQ63QBOS_cjs.createNumberNode(nanoid.nanoid(), name, { defaultValue: 0 });
141
141
  case "boolean":
142
- return chunkZG7QX4I3_cjs.createBooleanNode(nanoid.nanoid(), name, { defaultValue: false });
142
+ return chunkUQ63QBOS_cjs.createBooleanNode(nanoid.nanoid(), name, { defaultValue: false });
143
143
  case "object":
144
- return chunkZG7QX4I3_cjs.createObjectNode(nanoid.nanoid(), name, []);
144
+ return chunkUQ63QBOS_cjs.createObjectNode(nanoid.nanoid(), name, []);
145
145
  case "array":
146
146
  return this.createArrayNodeInternal(name);
147
147
  default:
@@ -149,11 +149,11 @@ var NodeFactory = class {
149
149
  }
150
150
  }
151
151
  createArrayNodeInternal(name) {
152
- const items = chunkZG7QX4I3_cjs.createStringNode(nanoid.nanoid(), "items", { defaultValue: "" });
153
- return chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), name, items);
152
+ const items = chunkUQ63QBOS_cjs.createStringNode(nanoid.nanoid(), "items", { defaultValue: "" });
153
+ return chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), name, items);
154
154
  }
155
155
  createArrayNodeWithItems(name, items) {
156
- return chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), name, items);
156
+ return chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), name, items);
157
157
  }
158
158
  };
159
159
 
@@ -252,7 +252,7 @@ var PrimitiveToArrayTransformer = class {
252
252
  const { sourceNode } = ctx;
253
253
  const itemsNode = sourceNode.cloneWithId(nanoid.nanoid());
254
254
  itemsNode.setName("items");
255
- const arrayNode = chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), sourceNode.name(), itemsNode);
255
+ const arrayNode = chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), sourceNode.name(), itemsNode);
256
256
  return { node: arrayNode };
257
257
  }
258
258
  };
@@ -265,7 +265,7 @@ var ObjectToArrayTransformer = class {
265
265
  const { sourceNode } = ctx;
266
266
  const itemsNode = sourceNode.cloneWithId(nanoid.nanoid());
267
267
  itemsNode.setName("items");
268
- const arrayNode = chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), sourceNode.name(), itemsNode);
268
+ const arrayNode = chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), sourceNode.name(), itemsNode);
269
269
  return { node: arrayNode };
270
270
  }
271
271
  };
@@ -311,7 +311,7 @@ var RefTransformer = class {
311
311
  return { node: newNode };
312
312
  }
313
313
  const metadata = this.extractMetadata(targetSpec);
314
- const node = chunkZG7QX4I3_cjs.createRefNode(nanoid.nanoid(), sourceNode.name(), refUri, metadata);
314
+ const node = chunkUQ63QBOS_cjs.createRefNode(nanoid.nanoid(), sourceNode.name(), refUri, metadata);
315
315
  return { node };
316
316
  }
317
317
  extractMetadata(spec) {
@@ -346,23 +346,23 @@ var DefaultTransformer = class {
346
346
  createNode(name, type, spec, metadata) {
347
347
  switch (type) {
348
348
  case "string":
349
- return chunkZG7QX4I3_cjs.createStringNode(nanoid.nanoid(), name, {
349
+ return chunkUQ63QBOS_cjs.createStringNode(nanoid.nanoid(), name, {
350
350
  defaultValue: spec.default ?? "",
351
351
  foreignKey: spec.foreignKey,
352
352
  metadata
353
353
  });
354
354
  case "number":
355
- return chunkZG7QX4I3_cjs.createNumberNode(nanoid.nanoid(), name, {
355
+ return chunkUQ63QBOS_cjs.createNumberNode(nanoid.nanoid(), name, {
356
356
  defaultValue: spec.default ?? 0,
357
357
  metadata
358
358
  });
359
359
  case "boolean":
360
- return chunkZG7QX4I3_cjs.createBooleanNode(nanoid.nanoid(), name, {
360
+ return chunkUQ63QBOS_cjs.createBooleanNode(nanoid.nanoid(), name, {
361
361
  defaultValue: spec.default ?? false,
362
362
  metadata
363
363
  });
364
364
  case "object":
365
- return chunkZG7QX4I3_cjs.createObjectNode(nanoid.nanoid(), name, [], { metadata });
365
+ return chunkUQ63QBOS_cjs.createObjectNode(nanoid.nanoid(), name, [], { metadata });
366
366
  case "array":
367
367
  return this.createArrayNode(name, metadata);
368
368
  default:
@@ -370,8 +370,8 @@ var DefaultTransformer = class {
370
370
  }
371
371
  }
372
372
  createArrayNode(name, metadata) {
373
- const items = chunkZG7QX4I3_cjs.createStringNode(nanoid.nanoid(), "items", { defaultValue: "" });
374
- return chunkZG7QX4I3_cjs.createArrayNode(nanoid.nanoid(), name, items, { metadata });
373
+ const items = chunkUQ63QBOS_cjs.createStringNode(nanoid.nanoid(), "items", { defaultValue: "" });
374
+ return chunkUQ63QBOS_cjs.createArrayNode(nanoid.nanoid(), name, items, { metadata });
375
375
  }
376
376
  extractMetadata(spec) {
377
377
  const meta = {};
@@ -435,10 +435,10 @@ function createTypeTransformChain(options) {
435
435
  var SchemaModelImpl = class {
436
436
  _baseTree;
437
437
  _currentTree;
438
- _patchBuilder = new chunkZG7QX4I3_cjs.PatchBuilder();
439
- _serializer = new chunkZG7QX4I3_cjs.SchemaSerializer();
438
+ _patchBuilder = new chunkUQ63QBOS_cjs.PatchBuilder();
439
+ _serializer = new chunkUQ63QBOS_cjs.SchemaSerializer();
440
440
  _nodeFactory = new NodeFactory();
441
- _formulaIndex = new chunkZG7QX4I3_cjs.FormulaDependencyIndex();
441
+ _formulaIndex = new chunkUQ63QBOS_cjs.FormulaDependencyIndex();
442
442
  _transformChain;
443
443
  _formulaParseErrors = [];
444
444
  _refSchemas;
@@ -450,12 +450,12 @@ var SchemaModelImpl = class {
450
450
  });
451
451
  const parser = new SchemaParser();
452
452
  const rootNode = parser.parse(schema, this._refSchemas);
453
- this._currentTree = chunkZG7QX4I3_cjs.createSchemaTree(rootNode);
453
+ this._currentTree = chunkUQ63QBOS_cjs.createSchemaTree(rootNode);
454
454
  parser.parseFormulas(this._currentTree);
455
455
  this._formulaParseErrors = parser.parseErrors;
456
456
  this._buildFormulaIndex();
457
457
  this._baseTree = this._currentTree.clone();
458
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
458
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
459
459
  _patchBuilder: false,
460
460
  _serializer: false,
461
461
  _nodeFactory: false,
@@ -481,6 +481,18 @@ var SchemaModelImpl = class {
481
481
  this._currentTree.addChildTo(parentId, node);
482
482
  return node;
483
483
  }
484
+ insertFieldAt(parentId, index, name, type) {
485
+ const parent = this._currentTree.nodeById(parentId);
486
+ if (parent.isNull() || !parent.isObject()) {
487
+ return chunkUQ63QBOS_cjs.NULL_NODE;
488
+ }
489
+ if (index < 0 || index > parent.properties().length) {
490
+ return chunkUQ63QBOS_cjs.NULL_NODE;
491
+ }
492
+ const node = this._nodeFactory.createNode(name, type);
493
+ this._currentTree.insertChildAt(parentId, index, node);
494
+ return node;
495
+ }
484
496
  removeField(nodeId) {
485
497
  const path = this._currentTree.pathOf(nodeId);
486
498
  if (path.isEmpty()) {
@@ -532,7 +544,7 @@ var SchemaModelImpl = class {
532
544
  this._formulaIndex.unregisterFormula(nodeId);
533
545
  } else {
534
546
  try {
535
- const formula = new chunkZG7QX4I3_cjs.ParsedFormula(this._currentTree, nodeId, expression);
547
+ const formula = new chunkUQ63QBOS_cjs.ParsedFormula(this._currentTree, nodeId, expression);
536
548
  node.setFormula(formula);
537
549
  this._formulaIndex.registerFormula(nodeId, formula);
538
550
  } catch (error) {
@@ -700,7 +712,7 @@ var SchemaModelImpl = class {
700
712
  if (!formula) {
701
713
  return "";
702
714
  }
703
- return chunkZG7QX4I3_cjs.FormulaSerializer.serializeExpression(
715
+ return chunkUQ63QBOS_cjs.FormulaSerializer.serializeExpression(
704
716
  this._currentTree,
705
717
  nodeId,
706
718
  formula,
@@ -708,10 +720,10 @@ var SchemaModelImpl = class {
708
720
  );
709
721
  }
710
722
  get validationErrors() {
711
- return chunkZG7QX4I3_cjs.validateSchema(this._currentTree.root());
723
+ return chunkUQ63QBOS_cjs.validateSchema(this._currentTree.root());
712
724
  }
713
725
  get formulaErrors() {
714
- return [...this._formulaParseErrors, ...chunkZG7QX4I3_cjs.validateFormulas(this._currentTree)];
726
+ return [...this._formulaParseErrors, ...chunkUQ63QBOS_cjs.validateFormulas(this._currentTree)];
715
727
  }
716
728
  get isDirty() {
717
729
  return this.patches.length > 0;
@@ -767,7 +779,7 @@ var RowModelImpl = class {
767
779
  constructor(_rowId, _tree) {
768
780
  this._rowId = _rowId;
769
781
  this._tree = _tree;
770
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
782
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
771
783
  _rowId: false,
772
784
  _tree: false,
773
785
  _tableModel: "observable.ref"
@@ -919,7 +931,7 @@ var ArrayValueNode = class extends BaseValueNode {
919
931
  _nodeFactory = null;
920
932
  constructor(id, name, schema, items) {
921
933
  super(id, name, schema);
922
- this._items = chunkZG7QX4I3_cjs.observable.array();
934
+ this._items = chunkUQ63QBOS_cjs.observable.array();
923
935
  this._baseItems = [];
924
936
  if (items) {
925
937
  for (const item of items) {
@@ -928,7 +940,7 @@ var ArrayValueNode = class extends BaseValueNode {
928
940
  }
929
941
  }
930
942
  this._baseItems = [...this._items];
931
- chunkZG7QX4I3_cjs.makeObservable(this, {
943
+ chunkUQ63QBOS_cjs.makeObservable(this, {
932
944
  _items: "observable",
933
945
  _baseItems: "observable",
934
946
  value: "computed",
@@ -1083,7 +1095,7 @@ var ArrayValueNode = class extends BaseValueNode {
1083
1095
  for (const item of this._items) {
1084
1096
  item.parent = null;
1085
1097
  }
1086
- this._items = chunkZG7QX4I3_cjs.observable.array();
1098
+ this._items = chunkUQ63QBOS_cjs.observable.array();
1087
1099
  for (const baseItem of this._baseItems) {
1088
1100
  this._items.push(baseItem);
1089
1101
  }
@@ -1126,7 +1138,7 @@ var BasePrimitiveValueNode = class extends BaseValueNode {
1126
1138
  this._baseValue = initialValue;
1127
1139
  }
1128
1140
  initObservable() {
1129
- chunkZG7QX4I3_cjs.makeObservable(this, {
1141
+ chunkUQ63QBOS_cjs.makeObservable(this, {
1130
1142
  _value: "observable",
1131
1143
  _baseValue: "observable",
1132
1144
  _formulaWarning: "observable",
@@ -1474,7 +1486,7 @@ var ObjectValueNode = class extends BaseValueNode {
1474
1486
  _baseChildren;
1475
1487
  constructor(id, name, schema, children) {
1476
1488
  super(id, name, schema);
1477
- this._children = chunkZG7QX4I3_cjs.observable.map();
1489
+ this._children = chunkUQ63QBOS_cjs.observable.map();
1478
1490
  this._baseChildren = /* @__PURE__ */ new Map();
1479
1491
  if (children) {
1480
1492
  for (const child of children) {
@@ -1483,7 +1495,7 @@ var ObjectValueNode = class extends BaseValueNode {
1483
1495
  }
1484
1496
  }
1485
1497
  this._baseChildren = new Map(this._children);
1486
- chunkZG7QX4I3_cjs.makeObservable(this, {
1498
+ chunkUQ63QBOS_cjs.makeObservable(this, {
1487
1499
  _children: "observable",
1488
1500
  _baseChildren: "observable",
1489
1501
  value: "computed",
@@ -1559,7 +1571,7 @@ var ObjectValueNode = class extends BaseValueNode {
1559
1571
  for (const child of this._children.values()) {
1560
1572
  child.parent = null;
1561
1573
  }
1562
- this._children = chunkZG7QX4I3_cjs.observable.map();
1574
+ this._children = chunkUQ63QBOS_cjs.observable.map();
1563
1575
  for (const [key, value] of this._baseChildren) {
1564
1576
  this._children.set(key, value);
1565
1577
  }
@@ -1773,7 +1785,7 @@ var IndexSegment = class {
1773
1785
  };
1774
1786
 
1775
1787
  // src/core/value-path/ValuePath.ts
1776
- var ValuePathImpl = class _ValuePathImpl extends chunkZG7QX4I3_cjs.AbstractBasePath {
1788
+ var ValuePathImpl = class _ValuePathImpl extends chunkUQ63QBOS_cjs.AbstractBasePath {
1777
1789
  asString() {
1778
1790
  const parts = [];
1779
1791
  for (const seg of this.segs) {
@@ -1861,7 +1873,7 @@ function parseValuePath(path) {
1861
1873
  var ValueTree = class {
1862
1874
  constructor(_root) {
1863
1875
  this._root = _root;
1864
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
1876
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
1865
1877
  _root: false
1866
1878
  });
1867
1879
  }
@@ -1951,13 +1963,13 @@ var TableModelImpl = class {
1951
1963
  this._schema = createSchemaModel(options.schema, { refSchemas: options.refSchemas });
1952
1964
  this._fkResolver = options.fkResolver;
1953
1965
  this._refSchemas = options.refSchemas;
1954
- this._rows = chunkZG7QX4I3_cjs.observable.array();
1966
+ this._rows = chunkUQ63QBOS_cjs.observable.array();
1955
1967
  if (options.rows) {
1956
1968
  for (const row of options.rows) {
1957
1969
  this._rows.push(this.createRowModel(row.rowId, row.data));
1958
1970
  }
1959
1971
  }
1960
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
1972
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
1961
1973
  _schema: false,
1962
1974
  _rows: false,
1963
1975
  _jsonSchema: false,
@@ -2078,13 +2090,13 @@ var ForeignKeyResolverImpl = class {
2078
2090
  constructor(options) {
2079
2091
  this.loader = options?.loader;
2080
2092
  this._prefetchEnabled = options?.prefetch ?? false;
2081
- this._schemaCache = chunkZG7QX4I3_cjs.observable.map();
2082
- this._tableCache = chunkZG7QX4I3_cjs.observable.map();
2093
+ this._schemaCache = chunkUQ63QBOS_cjs.observable.map();
2094
+ this._tableCache = chunkUQ63QBOS_cjs.observable.map();
2083
2095
  this._loadingTables = /* @__PURE__ */ new Set();
2084
2096
  this._loadingRows = /* @__PURE__ */ new Map();
2085
2097
  this._pendingTableLoads = /* @__PURE__ */ new Map();
2086
2098
  this._pendingRowLoads = /* @__PURE__ */ new Map();
2087
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
2099
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
2088
2100
  _schemaCache: false,
2089
2101
  _tableCache: false,
2090
2102
  _loadingTables: false,
@@ -2122,7 +2134,7 @@ var ForeignKeyResolverImpl = class {
2122
2134
  if (this._disposed) {
2123
2135
  return;
2124
2136
  }
2125
- chunkZG7QX4I3_cjs.runInAction(() => {
2137
+ chunkUQ63QBOS_cjs.runInAction(() => {
2126
2138
  this._schemaCache.set(tableId, schema);
2127
2139
  });
2128
2140
  }
@@ -2130,12 +2142,12 @@ var ForeignKeyResolverImpl = class {
2130
2142
  if (this._disposed) {
2131
2143
  return;
2132
2144
  }
2133
- const rowMap = chunkZG7QX4I3_cjs.observable.map();
2145
+ const rowMap = chunkUQ63QBOS_cjs.observable.map();
2134
2146
  for (const row of rows) {
2135
2147
  rowMap.set(row.rowId, row);
2136
2148
  }
2137
2149
  const cache = { schema, rows: rowMap };
2138
- chunkZG7QX4I3_cjs.runInAction(() => {
2150
+ chunkUQ63QBOS_cjs.runInAction(() => {
2139
2151
  this._tableCache.set(tableId, cache);
2140
2152
  this._schemaCache.set(tableId, schema);
2141
2153
  });
@@ -2150,7 +2162,7 @@ var ForeignKeyResolverImpl = class {
2150
2162
  const table = this._tableCache.get(tableId);
2151
2163
  if (table) {
2152
2164
  const rowData = { rowId, data };
2153
- chunkZG7QX4I3_cjs.runInAction(() => {
2165
+ chunkUQ63QBOS_cjs.runInAction(() => {
2154
2166
  table.rows.set(rowId, rowData);
2155
2167
  });
2156
2168
  if (this._prefetchEnabled) {
@@ -2164,7 +2176,7 @@ var ForeignKeyResolverImpl = class {
2164
2176
  }
2165
2177
  const schema = this._schemaCache.get(oldTableId);
2166
2178
  const tableCache = this._tableCache.get(oldTableId);
2167
- chunkZG7QX4I3_cjs.runInAction(() => {
2179
+ chunkUQ63QBOS_cjs.runInAction(() => {
2168
2180
  if (schema) {
2169
2181
  this._schemaCache.delete(oldTableId);
2170
2182
  this._schemaCache.set(newTableId, schema);
@@ -2266,9 +2278,9 @@ var ForeignKeyResolverImpl = class {
2266
2278
  }
2267
2279
  ensureTableCache(tableId, schema) {
2268
2280
  if (!this._tableCache.has(tableId)) {
2269
- const rowMap = chunkZG7QX4I3_cjs.observable.map();
2281
+ const rowMap = chunkUQ63QBOS_cjs.observable.map();
2270
2282
  const cache = { schema, rows: rowMap };
2271
- chunkZG7QX4I3_cjs.runInAction(() => {
2283
+ chunkUQ63QBOS_cjs.runInAction(() => {
2272
2284
  this._tableCache.set(tableId, cache);
2273
2285
  });
2274
2286
  }
@@ -2368,7 +2380,7 @@ var DataModelImpl = class {
2368
2380
  _fk;
2369
2381
  _ownsFkResolver;
2370
2382
  constructor(options) {
2371
- this._tables = chunkZG7QX4I3_cjs.observable.map();
2383
+ this._tables = chunkUQ63QBOS_cjs.observable.map();
2372
2384
  if (options?.fkResolver) {
2373
2385
  this._fk = options.fkResolver;
2374
2386
  this._ownsFkResolver = false;
@@ -2376,7 +2388,7 @@ var DataModelImpl = class {
2376
2388
  this._fk = createForeignKeyResolver();
2377
2389
  this._ownsFkResolver = true;
2378
2390
  }
2379
- chunkZG7QX4I3_cjs.makeAutoObservable(this, {
2391
+ chunkUQ63QBOS_cjs.makeAutoObservable(this, {
2380
2392
  _tables: false,
2381
2393
  _fk: false,
2382
2394
  _ownsFkResolver: false
@@ -2493,5 +2505,5 @@ exports.generateDefaultValue = generateDefaultValue;
2493
2505
  exports.generateNodeId = generateNodeId;
2494
2506
  exports.isForeignKeyValueNode = isForeignKeyValueNode;
2495
2507
  exports.resetNodeIdCounter = resetNodeIdCounter;
2496
- //# sourceMappingURL=chunk-YRKXZTRZ.cjs.map
2497
- //# sourceMappingURL=chunk-YRKXZTRZ.cjs.map
2508
+ //# sourceMappingURL=chunk-DGWSDEVQ.cjs.map
2509
+ //# sourceMappingURL=chunk-DGWSDEVQ.cjs.map