@fluidframework/tree 2.103.0 → 2.110.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.
Files changed (224) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/api-report/tree.alpha.api.md +12 -3
  3. package/api-report/tree.beta.api.md +11 -3
  4. package/api-report/tree.legacy.beta.api.md +11 -3
  5. package/dist/codec/versioned/format.js +2 -24
  6. package/dist/codec/versioned/format.js.map +1 -1
  7. package/dist/core/rebase/types.js +2 -24
  8. package/dist/core/rebase/types.js.map +1 -1
  9. package/dist/core/schema-stored/formatV1.js +2 -24
  10. package/dist/core/schema-stored/formatV1.js.map +1 -1
  11. package/dist/core/schema-stored/formatV2.js +2 -24
  12. package/dist/core/schema-stored/formatV2.js.map +1 -1
  13. package/dist/core/schema-stored/index.js +3 -25
  14. package/dist/core/schema-stored/index.js.map +1 -1
  15. package/dist/core/tree/anchorSet.js +4 -8
  16. package/dist/core/tree/anchorSet.js.map +1 -1
  17. package/dist/core/tree/detachedFieldIndexFormatCommon.js +2 -24
  18. package/dist/core/tree/detachedFieldIndexFormatCommon.js.map +1 -1
  19. package/dist/core/tree/detachedFieldIndexFormatV2.js +2 -24
  20. package/dist/core/tree/detachedFieldIndexFormatV2.js.map +1 -1
  21. package/dist/core/tree/persistedTreeTextFormat.js +2 -24
  22. package/dist/core/tree/persistedTreeTextFormat.js.map +1 -1
  23. package/dist/entrypoints/internal.js +2 -15
  24. package/dist/entrypoints/internal.js.map +1 -1
  25. package/dist/feature-libraries/chunked-forest/chunkedForest.js +7 -11
  26. package/dist/feature-libraries/chunked-forest/chunkedForest.js.map +1 -1
  27. package/dist/feature-libraries/chunked-forest/codec/format/formatGeneric.js +2 -24
  28. package/dist/feature-libraries/chunked-forest/codec/format/formatGeneric.js.map +1 -1
  29. package/dist/feature-libraries/chunked-forest/codec/format/formatV1.js +2 -24
  30. package/dist/feature-libraries/chunked-forest/codec/format/formatV1.js.map +1 -1
  31. package/dist/feature-libraries/chunked-forest/codec/format/formatV2.js +2 -24
  32. package/dist/feature-libraries/chunked-forest/codec/format/formatV2.js.map +1 -1
  33. package/dist/feature-libraries/chunked-forest/codec/format/formatVText.js +2 -24
  34. package/dist/feature-libraries/chunked-forest/codec/format/formatVText.js.map +1 -1
  35. package/dist/feature-libraries/flex-tree/lazyEntity.js +9 -19
  36. package/dist/feature-libraries/flex-tree/lazyEntity.js.map +1 -1
  37. package/dist/feature-libraries/flex-tree/lazyNode.js +3 -13
  38. package/dist/feature-libraries/flex-tree/lazyNode.js.map +1 -1
  39. package/dist/feature-libraries/forest-summary/formatCommon.js +2 -24
  40. package/dist/feature-libraries/forest-summary/formatCommon.js.map +1 -1
  41. package/dist/feature-libraries/index.js +2 -24
  42. package/dist/feature-libraries/index.js.map +1 -1
  43. package/dist/feature-libraries/modular-schema/genericFieldKindFormat.js +2 -24
  44. package/dist/feature-libraries/modular-schema/genericFieldKindFormat.js.map +1 -1
  45. package/dist/feature-libraries/modular-schema/modularChangeFamily.d.ts.map +1 -1
  46. package/dist/feature-libraries/modular-schema/modularChangeFamily.js +10 -30
  47. package/dist/feature-libraries/modular-schema/modularChangeFamily.js.map +1 -1
  48. package/dist/feature-libraries/modular-schema/modularChangeFormatV1.js +2 -24
  49. package/dist/feature-libraries/modular-schema/modularChangeFormatV1.js.map +1 -1
  50. package/dist/feature-libraries/modular-schema/modularChangeFormatV2.js +2 -24
  51. package/dist/feature-libraries/modular-schema/modularChangeFormatV2.js.map +1 -1
  52. package/dist/feature-libraries/modular-schema/modularChangeTypes.d.ts +0 -5
  53. package/dist/feature-libraries/modular-schema/modularChangeTypes.d.ts.map +1 -1
  54. package/dist/feature-libraries/modular-schema/modularChangeTypes.js.map +1 -1
  55. package/dist/feature-libraries/object-forest/objectForest.js +11 -55
  56. package/dist/feature-libraries/object-forest/objectForest.js.map +1 -1
  57. package/dist/feature-libraries/optional-field/optionalFieldChangeFormatV1.js +2 -24
  58. package/dist/feature-libraries/optional-field/optionalFieldChangeFormatV1.js.map +1 -1
  59. package/dist/feature-libraries/optional-field/optionalFieldChangeFormatV2.js +2 -24
  60. package/dist/feature-libraries/optional-field/optionalFieldChangeFormatV2.js.map +1 -1
  61. package/dist/feature-libraries/schema-edits/schemaChangeFormat.js +2 -24
  62. package/dist/feature-libraries/schema-edits/schemaChangeFormat.js.map +1 -1
  63. package/dist/feature-libraries/schema-index/formatV1.js +2 -24
  64. package/dist/feature-libraries/schema-index/formatV1.js.map +1 -1
  65. package/dist/feature-libraries/schema-index/formatV2.js +2 -24
  66. package/dist/feature-libraries/schema-index/formatV2.js.map +1 -1
  67. package/dist/feature-libraries/sequence-field/formatV1.js +2 -24
  68. package/dist/feature-libraries/sequence-field/formatV1.js.map +1 -1
  69. package/dist/feature-libraries/sequence-field/formatV2.js +2 -24
  70. package/dist/feature-libraries/sequence-field/formatV2.js.map +1 -1
  71. package/dist/feature-libraries/sequence-field/formatV3.js +2 -24
  72. package/dist/feature-libraries/sequence-field/formatV3.js.map +1 -1
  73. package/dist/index.js +2 -24
  74. package/dist/index.js.map +1 -1
  75. package/dist/packageVersion.d.ts +1 -1
  76. package/dist/packageVersion.js +1 -1
  77. package/dist/packageVersion.js.map +1 -1
  78. package/dist/shared-tree/schematizingTreeView.d.ts +1 -0
  79. package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
  80. package/dist/shared-tree/schematizingTreeView.js +7 -41
  81. package/dist/shared-tree/schematizingTreeView.js.map +1 -1
  82. package/dist/shared-tree/sharedTree.d.ts +0 -1
  83. package/dist/shared-tree/sharedTree.d.ts.map +1 -1
  84. package/dist/shared-tree/sharedTree.js +6 -45
  85. package/dist/shared-tree/sharedTree.js.map +1 -1
  86. package/dist/shared-tree/sharedTreeChangeFormat.js +2 -24
  87. package/dist/shared-tree/sharedTreeChangeFormat.js.map +1 -1
  88. package/dist/shared-tree/treeCheckout.d.ts +12 -3
  89. package/dist/shared-tree/treeCheckout.d.ts.map +1 -1
  90. package/dist/shared-tree/treeCheckout.js +106 -136
  91. package/dist/shared-tree/treeCheckout.js.map +1 -1
  92. package/dist/shared-tree-core/branch.js +13 -17
  93. package/dist/shared-tree-core/branch.js.map +1 -1
  94. package/dist/shared-tree-core/editManagerFormatCommons.js +2 -24
  95. package/dist/shared-tree-core/editManagerFormatCommons.js.map +1 -1
  96. package/dist/shared-tree-core/editManagerFormatV1toV4.js +2 -24
  97. package/dist/shared-tree-core/editManagerFormatV1toV4.js.map +1 -1
  98. package/dist/shared-tree-core/editManagerFormatVSharedBranches.js +2 -24
  99. package/dist/shared-tree-core/editManagerFormatVSharedBranches.js.map +1 -1
  100. package/dist/shared-tree-core/messageCodecVSharedBranches.js +2 -24
  101. package/dist/shared-tree-core/messageCodecVSharedBranches.js.map +1 -1
  102. package/dist/shared-tree-core/messageFormatV1ToV4.js +2 -24
  103. package/dist/shared-tree-core/messageFormatV1ToV4.js.map +1 -1
  104. package/dist/shared-tree-core/messageFormatVSharedBranches.js +2 -24
  105. package/dist/shared-tree-core/messageFormatVSharedBranches.js.map +1 -1
  106. package/dist/shared-tree-core/sharedTreeCore.js +6 -43
  107. package/dist/shared-tree-core/sharedTreeCore.js.map +1 -1
  108. package/dist/shared-tree-core/transaction.js +20 -30
  109. package/dist/shared-tree-core/transaction.js.map +1 -1
  110. package/dist/simple-tree/api/simpleSchemaCodec.js +2 -24
  111. package/dist/simple-tree/api/simpleSchemaCodec.js.map +1 -1
  112. package/dist/simple-tree/api/snapshotCompatibilityChecker.js +2 -24
  113. package/dist/simple-tree/api/snapshotCompatibilityChecker.js.map +1 -1
  114. package/dist/simple-tree/api/tree.d.ts +10 -0
  115. package/dist/simple-tree/api/tree.d.ts.map +1 -1
  116. package/dist/simple-tree/api/tree.js.map +1 -1
  117. package/dist/simple-tree/core/treeNodeKernel.js +83 -93
  118. package/dist/simple-tree/core/treeNodeKernel.js.map +1 -1
  119. package/dist/simple-tree/core/unhydratedFlexTree.js +6 -10
  120. package/dist/simple-tree/core/unhydratedFlexTree.js.map +1 -1
  121. package/dist/simple-tree/leafNodeSchema.js +2 -12
  122. package/dist/simple-tree/leafNodeSchema.js.map +1 -1
  123. package/dist/simple-tree/node-kinds/array/arrayNode.js +2 -6
  124. package/dist/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
  125. package/dist/simple-tree/simpleSchemaFormatV1.js +2 -24
  126. package/dist/simple-tree/simpleSchemaFormatV1.js.map +1 -1
  127. package/dist/tableSchema.d.ts +50 -4
  128. package/dist/tableSchema.d.ts.map +1 -1
  129. package/dist/tableSchema.js +202 -106
  130. package/dist/tableSchema.js.map +1 -1
  131. package/dist/util/arrayUtilities.d.ts +20 -0
  132. package/dist/util/arrayUtilities.d.ts.map +1 -1
  133. package/dist/util/arrayUtilities.js +24 -1
  134. package/dist/util/arrayUtilities.js.map +1 -1
  135. package/dist/util/index.d.ts +1 -1
  136. package/dist/util/index.d.ts.map +1 -1
  137. package/dist/util/index.js +3 -2
  138. package/dist/util/index.js.map +1 -1
  139. package/dist/util/rangeMap.d.ts +13 -0
  140. package/dist/util/rangeMap.d.ts.map +1 -1
  141. package/dist/util/rangeMap.js +69 -8
  142. package/dist/util/rangeMap.js.map +1 -1
  143. package/dist/util/typeboxBrand.js +2 -24
  144. package/dist/util/typeboxBrand.js.map +1 -1
  145. package/dist/util/utils.js +2 -24
  146. package/dist/util/utils.js.map +1 -1
  147. package/eslint.config.mts +0 -30
  148. package/lib/core/tree/anchorSet.js +1 -5
  149. package/lib/core/tree/anchorSet.js.map +1 -1
  150. package/lib/feature-libraries/chunked-forest/chunkedForest.js +1 -5
  151. package/lib/feature-libraries/chunked-forest/chunkedForest.js.map +1 -1
  152. package/lib/feature-libraries/flex-tree/lazyEntity.js +1 -11
  153. package/lib/feature-libraries/flex-tree/lazyEntity.js.map +1 -1
  154. package/lib/feature-libraries/flex-tree/lazyNode.js +1 -11
  155. package/lib/feature-libraries/flex-tree/lazyNode.js.map +1 -1
  156. package/lib/feature-libraries/modular-schema/modularChangeFamily.d.ts.map +1 -1
  157. package/lib/feature-libraries/modular-schema/modularChangeFamily.js +10 -30
  158. package/lib/feature-libraries/modular-schema/modularChangeFamily.js.map +1 -1
  159. package/lib/feature-libraries/modular-schema/modularChangeTypes.d.ts +0 -5
  160. package/lib/feature-libraries/modular-schema/modularChangeTypes.d.ts.map +1 -1
  161. package/lib/feature-libraries/modular-schema/modularChangeTypes.js.map +1 -1
  162. package/lib/feature-libraries/object-forest/objectForest.js +1 -45
  163. package/lib/feature-libraries/object-forest/objectForest.js.map +1 -1
  164. package/lib/packageVersion.d.ts +1 -1
  165. package/lib/packageVersion.js +1 -1
  166. package/lib/packageVersion.js.map +1 -1
  167. package/lib/shared-tree/schematizingTreeView.d.ts +1 -0
  168. package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
  169. package/lib/shared-tree/schematizingTreeView.js +4 -38
  170. package/lib/shared-tree/schematizingTreeView.js.map +1 -1
  171. package/lib/shared-tree/sharedTree.d.ts +0 -1
  172. package/lib/shared-tree/sharedTree.d.ts.map +1 -1
  173. package/lib/shared-tree/sharedTree.js +1 -40
  174. package/lib/shared-tree/sharedTree.js.map +1 -1
  175. package/lib/shared-tree/treeCheckout.d.ts +12 -3
  176. package/lib/shared-tree/treeCheckout.d.ts.map +1 -1
  177. package/lib/shared-tree/treeCheckout.js +62 -92
  178. package/lib/shared-tree/treeCheckout.js.map +1 -1
  179. package/lib/shared-tree-core/branch.js +1 -5
  180. package/lib/shared-tree-core/branch.js.map +1 -1
  181. package/lib/shared-tree-core/sharedTreeCore.js +1 -38
  182. package/lib/shared-tree-core/sharedTreeCore.js.map +1 -1
  183. package/lib/shared-tree-core/transaction.js +1 -11
  184. package/lib/shared-tree-core/transaction.js.map +1 -1
  185. package/lib/simple-tree/api/tree.d.ts +10 -0
  186. package/lib/simple-tree/api/tree.d.ts.map +1 -1
  187. package/lib/simple-tree/api/tree.js.map +1 -1
  188. package/lib/simple-tree/core/treeNodeKernel.js +1 -11
  189. package/lib/simple-tree/core/treeNodeKernel.js.map +1 -1
  190. package/lib/simple-tree/core/unhydratedFlexTree.js +1 -5
  191. package/lib/simple-tree/core/unhydratedFlexTree.js.map +1 -1
  192. package/lib/simple-tree/leafNodeSchema.js +1 -11
  193. package/lib/simple-tree/leafNodeSchema.js.map +1 -1
  194. package/lib/simple-tree/node-kinds/array/arrayNode.js +1 -5
  195. package/lib/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
  196. package/lib/tableSchema.d.ts +50 -4
  197. package/lib/tableSchema.d.ts.map +1 -1
  198. package/lib/tableSchema.js +171 -75
  199. package/lib/tableSchema.js.map +1 -1
  200. package/lib/util/arrayUtilities.d.ts +20 -0
  201. package/lib/util/arrayUtilities.d.ts.map +1 -1
  202. package/lib/util/arrayUtilities.js +22 -0
  203. package/lib/util/arrayUtilities.js.map +1 -1
  204. package/lib/util/index.d.ts +1 -1
  205. package/lib/util/index.d.ts.map +1 -1
  206. package/lib/util/index.js +1 -1
  207. package/lib/util/index.js.map +1 -1
  208. package/lib/util/rangeMap.d.ts +13 -0
  209. package/lib/util/rangeMap.d.ts.map +1 -1
  210. package/lib/util/rangeMap.js +69 -8
  211. package/lib/util/rangeMap.js.map +1 -1
  212. package/package.json +24 -23
  213. package/src/feature-libraries/modular-schema/modularChangeFamily.ts +14 -47
  214. package/src/feature-libraries/modular-schema/modularChangeTypes.ts +0 -5
  215. package/src/packageVersion.ts +1 -1
  216. package/src/shared-tree/schematizingTreeView.ts +4 -0
  217. package/src/shared-tree/sharedTree.ts +2 -6
  218. package/src/shared-tree/treeCheckout.ts +59 -51
  219. package/src/simple-tree/api/tree.ts +11 -0
  220. package/src/tableSchema.ts +306 -80
  221. package/src/util/arrayUtilities.ts +35 -0
  222. package/src/util/index.ts +2 -0
  223. package/src/util/rangeMap.ts +108 -9
  224. package/tsconfig.json +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../src/tableSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAO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UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CA4BxE"}
@@ -3,19 +3,9 @@
3
3
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
4
  * Licensed under the MIT License.
5
5
  */
6
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
9
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
10
- };
11
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12
- if (kind === "m") throw new TypeError("Private method is not writable");
13
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
- };
17
6
  Object.defineProperty(exports, "__esModule", { value: true });
18
7
  exports.TableSchema = exports.System_TableSchema = void 0;
8
+ const tslib_1 = require("tslib");
19
9
  const internal_1 = require("@fluidframework/core-utils/internal");
20
10
  const internal_2 = require("@fluidframework/telemetry-utils/internal");
21
11
  const index_js_1 = require("./core/index.js");
@@ -150,7 +140,7 @@ var System_TableSchema;
150
140
  */
151
141
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
152
142
  function createTableSchema(inputSchemaFactory, _cellSchema, columnSchema, rowSchema) {
153
- var _Table_instances, _a, _Table_rowCache, _Table_rowCacheUnsubscribe, _Table_columnCache, _Table_columnCacheUnsubscribe, _Table_applyEditsInBatch, _Table_getColumnCache, _Table_tryGetColumn, _Table_getColumn, _Table_getRowCache, _Table_tryGetRow, _Table_getRow, _Table_validateNewColumns, _Table_validateNewRows;
143
+ var _Table_instances, _a, _Table_rowCache, _Table_rowCacheUnsubscribe, _Table_columnCache, _Table_columnCacheUnsubscribe, _Table_applyEditsInBatch, _Table_buildColumnInDocumentConstraintsForRows, _Table_getColumnCache, _Table_tryGetColumnId, _Table_tryGetColumn, _Table_getColumn, _Table_getRowCache, _Table_tryGetRow, _Table_getRow, _Table_validateNewColumns, _Table_validateNewRows;
154
144
  const schemaFactory = createTableScopedFactory(inputSchemaFactory);
155
145
  /**
156
146
  * {@link Table} inner fields.
@@ -269,33 +259,47 @@ var System_TableSchema;
269
259
  return this.table.rows;
270
260
  }
271
261
  getColumn(indexOrId) {
272
- return __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, indexOrId);
262
+ return tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, indexOrId);
273
263
  }
274
264
  getRow(indexOrId) {
275
- return __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, indexOrId);
265
+ return tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, indexOrId);
276
266
  }
277
267
  getCell(key) {
278
268
  const { column: columnOrIdOrIndex, row: rowOrIdOrIndex } = key;
279
- const row = __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, rowOrIdOrIndex);
269
+ const row = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, rowOrIdOrIndex);
280
270
  if (row === undefined) {
281
271
  return undefined;
282
272
  }
283
- const column = __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, columnOrIdOrIndex);
284
- if (column === undefined) {
273
+ const columnId = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumnId).call(this, columnOrIdOrIndex);
274
+ if (columnId === undefined) {
285
275
  return undefined;
286
276
  }
287
- return row.cells[column.id];
277
+ return row.cells[columnId];
288
278
  }
289
- insertColumns({ columns, index, }) {
279
+ insertColumns(columnsOrParams, maybeIndex) {
280
+ // Dispatch on the runtime type of the first argument to disambiguate the two overloads:
281
+ // * Array → positional `(columns, index?)` overload
282
+ // * object → deprecated `(params)` property-bag overload
283
+ let index;
284
+ let columns;
285
+ if (Array.isArray(columnsOrParams)) {
286
+ index = maybeIndex;
287
+ columns = columnsOrParams;
288
+ }
289
+ else {
290
+ const params = columnsOrParams;
291
+ index = params.index;
292
+ columns = params.columns;
293
+ }
290
294
  // #region Input validation
291
295
  // Ensure specified index is valid
292
296
  if (index !== undefined) {
293
297
  (0, index_js_4.validateIndex)(index, this.table.columns, "Table.insertColumns", true);
294
298
  }
295
299
  // Ensure the new columns being inserted are valid
296
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewColumns).call(this, columns);
300
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewColumns).call(this, columns);
297
301
  // #endregion
298
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
302
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
299
303
  applyEdits: () => {
300
304
  // TypeScript is unable to narrow the column type correctly here, hence the casts below.
301
305
  // See: https://github.com/microsoft/TypeScript/issues/52144
@@ -326,26 +330,38 @@ var System_TableSchema;
326
330
  // Inserting the input nodes into the tree hydrates them, making them usable as nodes.
327
331
  return columns;
328
332
  }
329
- insertRows({ index, rows, }) {
333
+ insertRows(rowsOrParams, maybeIndex) {
334
+ // Dispatch on the runtime type of the first argument to disambiguate the two overloads:
335
+ // * Array → positional `(rows, index?)` overload
336
+ // * object → deprecated `(params)` property-bag overload
337
+ let index;
338
+ let rows;
339
+ if (Array.isArray(rowsOrParams)) {
340
+ index = maybeIndex;
341
+ rows = rowsOrParams;
342
+ }
343
+ else {
344
+ const params = rowsOrParams;
345
+ index = params.index;
346
+ rows = params.rows;
347
+ }
330
348
  // #region Input validation
331
349
  // Ensure specified index is valid
332
350
  if (index !== undefined) {
333
351
  (0, index_js_4.validateIndex)(index, this.table.rows, "Table.insertRows", true);
334
352
  }
335
353
  // Ensure the new rows being inserted are valid
336
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewRows).call(this, rows);
354
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewRows).call(this, rows);
337
355
  // #endregion
338
- // Relevant invariant: each cell corresponds to an existing row and column
356
+ // Relevant invariant: each cell corresponds to an existing row and column.
339
357
  // Prevents cell leaks from concurrently removed columns.
340
358
  // Example scenario: Client A removes a column while concurrently Client B adds a row with cells for those columns (including the one A removed).
341
359
  // If client B is sequenced after A, then B's row could have cells that do not correspond to existing columns.
342
- // This constraint ensures all columns that existed when creating the row still exist when the row insertion is applied.
360
+ // We only need to constrain columns that the new rows actually reference a removed column with no
361
+ // corresponding cell in the inserted rows cannot orphan anything from this insertion.
343
362
  // TODO: Replace with "no detach" constraint on the column array when available.
344
- const columnConstraints = this.table.columns.map((column) => ({
345
- type: "nodeInDocument",
346
- node: column,
347
- }));
348
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
363
+ const columnConstraints = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_buildColumnInDocumentConstraintsForRows).call(this, rows);
364
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
349
365
  applyEdits: () => {
350
366
  // TypeScript is unable to narrow the row type correctly here, hence the casts below.
351
367
  // See: https://github.com/microsoft/TypeScript/issues/52144
@@ -358,16 +374,32 @@ var System_TableSchema;
358
374
  this.table.rows.insertAt(index, index_js_3.TreeArrayNode.spread(rows));
359
375
  }
360
376
  },
361
- preconditions: columnConstraints.length > 0 ? columnConstraints : undefined,
377
+ preconditions: columnConstraints,
362
378
  });
363
379
  // Inserting the input nodes into the tree hydrates them, making them usable as nodes.
364
380
  return rows;
365
381
  }
366
- setCell({ key, cell, }) {
367
- const { column: columnOrId, row: rowOrId } = key;
368
- const row = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowOrId);
369
- const column = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrId);
370
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
382
+ setCell(rowOrParams, maybeColumn, maybeCell) {
383
+ // Dispatch on the presence of the second argument to disambiguate the two overloads:
384
+ // * `maybeColumn === undefined` deprecated `(params)` property-bag overload; unpack from `params.key`/`params.cell`
385
+ // * otherwise → positional `(row, column, cell)` overload
386
+ let rowOrId;
387
+ let columnOrId;
388
+ let cell;
389
+ if (maybeColumn === undefined) {
390
+ const params = rowOrParams;
391
+ rowOrId = params.key.row;
392
+ columnOrId = params.key.column;
393
+ cell = params.cell;
394
+ }
395
+ else {
396
+ rowOrId = rowOrParams;
397
+ columnOrId = maybeColumn;
398
+ cell = maybeCell;
399
+ }
400
+ const row = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowOrId);
401
+ const column = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrId);
402
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
371
403
  applyEdits: () => {
372
404
  row.cells[column.id] = cell;
373
405
  },
@@ -412,16 +444,18 @@ var System_TableSchema;
412
444
  return [];
413
445
  }
414
446
  (0, index_js_4.validateIndexRange)(startIndex, endIndex, this.table.columns, "Table.removeColumns");
415
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
447
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
416
448
  applyEdits: () => {
417
449
  const columnsToRemove = this.table.columns.slice(startIndex, endIndex);
418
- // First, remove all cells that correspond to each column from each row:
419
- for (const column of columnsToRemove) {
420
- for (const row of this.table.rows) {
421
- // TypeScript is unable to narrow the row type correctly here, hence the cast.
422
- // See: https://github.com/microsoft/TypeScript/issues/52144
450
+ // First, remove all cells that correspond to each column from each row.
451
+ // Rows are the outer loop so each row's `cells` record is touched contiguously,
452
+ // and the per-column `id` values are read once up front instead of per (column, row) pair.
453
+ const idsToDelete = columnsToRemove.map((column) => column.id);
454
+ for (const row of this.table.rows) {
455
+ const cells = row.cells;
456
+ for (const id of idsToDelete) {
423
457
  // eslint-disable-next-line @typescript-eslint/no-dynamic-delete -- This is currently how Record node entries are deleted.
424
- delete row.cells[column.id];
458
+ delete cells[id];
425
459
  }
426
460
  }
427
461
  // Second, remove the column nodes:
@@ -438,44 +472,45 @@ var System_TableSchema;
438
472
  return [];
439
473
  }
440
474
  // Resolve any IDs to actual nodes.
441
- // This validates that all of the rows exist before starting transaction.
475
+ // This validates that all of the columns exist before starting transaction.
442
476
  // This improves user-facing error experience.
443
- const columnsToRemove = [];
477
+ // Set insertion order is preserved on iteration, which matches the caller-supplied order
478
+ // expected by both the cell-deletion loop and the returned array.
479
+ const columnsToRemove = new Set();
444
480
  for (const columnOrIdToRemove of indexOrColumns) {
445
- columnsToRemove.push(__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrIdToRemove));
481
+ columnsToRemove.add(tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrIdToRemove));
446
482
  }
447
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
483
+ // Collect contiguous runs of columns-to-remove as [start, end) ranges so they can be
484
+ // removed via a small number of `removeRange` calls below.
485
+ const ranges = (0, index_js_4.collectContiguousRanges)(this.table.columns, (column) => columnsToRemove.has(column));
486
+ // Note, throwing an error within a transaction will abort the entire transaction.
487
+ // So if we throw an error here for any column, no columns will be removed.
488
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
448
489
  applyEdits: () => {
449
- // Note, throwing an error within a transaction will abort the entire transaction.
450
- // So if we throw an error here for any column, no columns will be removed.
451
- for (const columnToRemove of columnsToRemove) {
452
- // Remove the corresponding cell from all rows.
453
- for (const row of this.table.rows) {
454
- // TypeScript is unable to narrow the row type correctly here, hence the cast.
455
- // See: https://github.com/microsoft/TypeScript/issues/52144
490
+ // Remove the corresponding cell from every row.
491
+ // The per-column `id` values are hoisted out of the row loop so each row's `cells`
492
+ // record is indexed by a plain string rather than re-reading a tree-node property.
493
+ const idsToDelete = Array.from(columnsToRemove, (column) => column.id);
494
+ for (const row of this.table.rows) {
495
+ const cells = row.cells;
496
+ for (const id of idsToDelete) {
456
497
  // eslint-disable-next-line @typescript-eslint/no-dynamic-delete -- This is currently how Record node entries are deleted.
457
- delete row.cells[columnToRemove.id];
498
+ delete cells[id];
458
499
  }
459
- // We have already validated that all of the columns exist above, so this is safe.
460
- this.table.columns.removeAt(this.table.columns.indexOf(columnToRemove));
500
+ }
501
+ // Remove column nodes. Ranges are iterated in reverse so each `removeRange`
502
+ // call doesn't shift the indices of yet-to-remove ranges at lower positions.
503
+ for (let r = ranges.length - 1; r >= 0; r--) {
504
+ const { start, end } = ranges[r] ?? (0, internal_1.oob)();
505
+ this.table.columns.removeRange(start, end);
461
506
  }
462
507
  },
463
508
  preconditions,
464
509
  });
465
- return columnsToRemove;
510
+ return [...columnsToRemove];
466
511
  }
467
512
  }
468
513
  removeRows(indexOrRows, count) {
469
- // Relevant invariant: each cell corresponds to an existing row and column
470
- // Adding a constraint on columns here to prevent cells being orphaned. The relevant scenario is:
471
- // Client A removes rows
472
- // Client B (either concurrently or not, so long as B's edit is sequenced after A's edit) removes a column,
473
- // Client A reverts the removal of the rows
474
- // TODO: Replace with "no detach on revert" constraint on the column array when available.
475
- const columnConstraints = this.table.columns.map((column) => ({
476
- type: "nodeInDocument",
477
- node: column,
478
- }));
479
514
  if (typeof indexOrRows === "number" || indexOrRows === undefined) {
480
515
  let removedRows;
481
516
  const startIndex = indexOrRows ?? 0;
@@ -485,11 +520,18 @@ var System_TableSchema;
485
520
  return [];
486
521
  }
487
522
  (0, index_js_4.validateIndexRange)(startIndex, endIndex, this.table.rows, "Table.removeRows");
488
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
523
+ // Compute revert constraints from the rows being removed.
524
+ const rowsBeingRemoved = this.table.rows.slice(startIndex, endIndex);
525
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
489
526
  applyEdits: () => {
490
527
  removedRows = removeRangeFromArray(startIndex, endIndex, this.table.rows, "Table.removeRows");
491
528
  },
492
- preconditionsOnRevert: columnConstraints.length > 0 ? columnConstraints : undefined,
529
+ // Relevant invariant: each cell corresponds to an existing row and column.
530
+ // On revert, the removed rows come back with their original cells, so we need
531
+ // each column referenced by those cells to still exist. Columns the removed rows
532
+ // don't reference cannot be orphaned by the revert and need not be constrained.
533
+ // TODO: Replace with "no detach on revert" constraint on the column array when available.
534
+ preconditionsOnRevert: tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_buildColumnInDocumentConstraintsForRows).call(this, rowsBeingRemoved),
493
535
  });
494
536
  return removedRows ?? (0, internal_1.fail)(0xccd /* Transaction did not complete */);
495
537
  }
@@ -500,33 +542,57 @@ var System_TableSchema;
500
542
  // Resolve any IDs to actual nodes.
501
543
  // This validates that all of the rows exist before starting transaction.
502
544
  // This improves user-facing error experience.
503
- const rowsToRemove = [];
545
+ // Set insertion order is preserved on iteration, which matches the caller-supplied order
546
+ // expected by the returned array.
547
+ const rowsToRemove = new Set();
504
548
  for (const rowToRemove of indexOrRows) {
505
- rowsToRemove.push(__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowToRemove));
549
+ rowsToRemove.add(tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowToRemove));
506
550
  }
507
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
551
+ // Collect contiguous runs of rows-to-remove as [start, end) ranges so they can be
552
+ // removed via a small number of `removeRange` calls below.
553
+ const ranges = (0, index_js_4.collectContiguousRanges)(this.table.rows, (row) => rowsToRemove.has(row));
554
+ // Note, throwing an error within a transaction will abort the entire transaction.
555
+ // So if we throw an error here for any row, no rows will be removed.
556
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
508
557
  applyEdits: () => {
509
- // Note, throwing an error within a transaction will abort the entire transaction.
510
- // So if we throw an error here for any row, no rows will be removed.
511
- for (const rowToRemove of rowsToRemove) {
512
- // We have already validated that all of the rows exist above, so this is safe.
513
- const index = this.table.rows.indexOf(rowToRemove);
514
- this.table.rows.removeAt(index);
558
+ // Ranges are iterated in reverse so each `removeRange` call doesn't shift
559
+ // the indices of yet-to-remove ranges at lower positions.
560
+ for (let r = ranges.length - 1; r >= 0; r--) {
561
+ const { start, end } = ranges[r] ?? (0, internal_1.oob)();
562
+ this.table.rows.removeRange(start, end);
515
563
  }
516
564
  },
517
- preconditionsOnRevert: columnConstraints.length > 0 ? columnConstraints : undefined,
565
+ // Relevant invariant: each cell corresponds to an existing row and column.
566
+ // On revert, the removed rows come back with their original cells, so we need
567
+ // each column referenced by those cells to still exist. Columns the removed rows
568
+ // don't reference cannot be orphaned by the revert and need not be constrained.
569
+ // TODO: Replace with "no detach on revert" constraint on the column array when available.
570
+ preconditionsOnRevert: tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_buildColumnInDocumentConstraintsForRows).call(this, rowsToRemove),
518
571
  });
519
- return rowsToRemove;
572
+ return [...rowsToRemove];
520
573
  }
521
- removeCell(key) {
522
- const { column: columnOrIdOrIndex, row: rowOrIdOrIndex } = key;
523
- const row = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowOrIdOrIndex);
524
- const column = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrIdOrIndex);
574
+ removeCell(rowOrKey, maybeColumn) {
575
+ // Dispatch on the presence of the second argument to disambiguate the two overloads:
576
+ // * `maybeColumn === undefined` deprecated `(key)` overload; unpack from `key.row`/`key.column`
577
+ // * otherwise → positional `(row, column)` overload
578
+ let rowOrIdOrIndex;
579
+ let columnOrIdOrIndex;
580
+ if (maybeColumn === undefined) {
581
+ const key = rowOrKey;
582
+ rowOrIdOrIndex = key.row;
583
+ columnOrIdOrIndex = key.column;
584
+ }
585
+ else {
586
+ rowOrIdOrIndex = rowOrKey;
587
+ columnOrIdOrIndex = maybeColumn;
588
+ }
589
+ const row = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowOrIdOrIndex);
590
+ const column = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrIdOrIndex);
525
591
  const cell = row.cells[column.id];
526
592
  if (cell === undefined) {
527
593
  return undefined;
528
594
  }
529
- __classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
595
+ tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
530
596
  applyEdits: () => {
531
597
  // eslint-disable-next-line @typescript-eslint/no-dynamic-delete -- This is currently how Record node entries are deleted.
532
598
  delete row.cells[column.id];
@@ -593,10 +659,9 @@ var System_TableSchema;
593
659
  // #region If the row contains cells, verify that the table contains the columns for those cells
594
660
  // Note: we intentionally hide `cells` on `IRow` to avoid leaking the internal data representation as much as possible, so we have to cast here.
595
661
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
596
- if (newRow.cells !== undefined) {
597
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
598
- const keys = Object.keys(newRow.cells);
599
- for (const key of keys) {
662
+ const cells = newRow.cells;
663
+ if (cells !== undefined) {
664
+ for (const key of Object.keys(cells)) {
600
665
  if (!columnIds.has(key)) {
601
666
  throw new internal_2.UsageError(`Attempted to insert a row containing a cell under column ID "${key}", but the table does not contain a column with that ID.`);
602
667
  }
@@ -640,8 +705,34 @@ var System_TableSchema;
640
705
  }, preconditions === undefined ? undefined : { preconditions });
641
706
  }
642
707
  });
708
+ }, _Table_buildColumnInDocumentConstraintsForRows = function _Table_buildColumnInDocumentConstraintsForRows(rows) {
709
+ if (!index_js_2.TreeAlpha.context(this).isBranch()) {
710
+ return undefined;
711
+ }
712
+ const referencedColumnIds = new Set();
713
+ for (const row of rows) {
714
+ // `cells` is intentionally hidden on the public row type, so cast to read it.
715
+ const cells = row.cells;
716
+ if (cells === undefined) {
717
+ continue;
718
+ }
719
+ for (const id of Object.keys(cells)) {
720
+ referencedColumnIds.add(id);
721
+ }
722
+ }
723
+ if (referencedColumnIds.size === 0) {
724
+ return undefined;
725
+ }
726
+ const columnCache = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this);
727
+ const constraints = [];
728
+ for (const id of referencedColumnIds) {
729
+ const column = columnCache.get(id) ?? (0, internal_1.fail)(0xd05 /* Column ID not found in cache */);
730
+ constraints.push({ type: "nodeInDocument", node: column });
731
+ }
732
+ (0, internal_1.assert)(constraints.length > 0, 0xd06 /* No constraints generated for column references. */);
733
+ return constraints;
643
734
  }, _Table_getColumnCache = function _Table_getColumnCache() {
644
- let cache = __classPrivateFieldGet(this, _Table_columnCache, "f");
735
+ let cache = tslib_1.__classPrivateFieldGet(this, _Table_columnCache, "f");
645
736
  if (cache === undefined) {
646
737
  cache = new Map();
647
738
  for (const column of this.table.columns) {
@@ -649,17 +740,22 @@ var System_TableSchema;
649
740
  // See: https://github.com/microsoft/TypeScript/issues/52144
650
741
  cache.set(column.id, column);
651
742
  }
652
- __classPrivateFieldSet(this, _Table_columnCache, cache, "f");
743
+ tslib_1.__classPrivateFieldSet(this, _Table_columnCache, cache, "f");
653
744
  // Register the invalidation listener once. The `nodeChanged` event fires on the
654
745
  // array node itself after any structural change (insert / remove / move), which is
655
746
  // exactly the set of changes that can alter the ID → node mapping.
656
- if (__classPrivateFieldGet(this, _Table_columnCacheUnsubscribe, "f") === undefined) {
657
- __classPrivateFieldSet(this, _Table_columnCacheUnsubscribe, index_js_2.Tree.on(this.columns, "nodeChanged", () => {
658
- __classPrivateFieldSet(this, _Table_columnCache, undefined, "f");
747
+ if (tslib_1.__classPrivateFieldGet(this, _Table_columnCacheUnsubscribe, "f") === undefined) {
748
+ tslib_1.__classPrivateFieldSet(this, _Table_columnCacheUnsubscribe, index_js_2.Tree.on(this.columns, "nodeChanged", () => {
749
+ tslib_1.__classPrivateFieldSet(this, _Table_columnCache, undefined, "f");
659
750
  }), "f");
660
751
  }
661
752
  }
662
753
  return cache;
754
+ }, _Table_tryGetColumnId = function _Table_tryGetColumnId(columnOrIdOrIndex) {
755
+ if (typeof columnOrIdOrIndex === "string") {
756
+ return columnOrIdOrIndex;
757
+ }
758
+ return tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, columnOrIdOrIndex)?.id;
663
759
  }, _Table_tryGetColumn = function _Table_tryGetColumn(columnOrIdOrIndex) {
664
760
  if (typeof columnOrIdOrIndex === "number") {
665
761
  if (columnOrIdOrIndex < 0 || columnOrIdOrIndex >= this.table.columns.length) {
@@ -669,7 +765,7 @@ var System_TableSchema;
669
765
  // See: https://github.com/microsoft/TypeScript/issues/52144
670
766
  return this.table.columns[columnOrIdOrIndex];
671
767
  }
672
- const columnCache = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this);
768
+ const columnCache = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this);
673
769
  if (typeof columnOrIdOrIndex === "string") {
674
770
  return columnCache.get(columnOrIdOrIndex);
675
771
  }
@@ -677,13 +773,13 @@ var System_TableSchema;
677
773
  const cached = columnCache.get(columnOrIdOrIndex.id);
678
774
  return cached === columnOrIdOrIndex ? columnOrIdOrIndex : undefined;
679
775
  }, _Table_getColumn = function _Table_getColumn(columnOrIdOrIndex) {
680
- const column = __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, columnOrIdOrIndex);
776
+ const column = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetColumn).call(this, columnOrIdOrIndex);
681
777
  if (column === undefined) {
682
778
  _a._throwMissingColumnError(columnOrIdOrIndex);
683
779
  }
684
780
  return column;
685
781
  }, _Table_getRowCache = function _Table_getRowCache() {
686
- let cache = __classPrivateFieldGet(this, _Table_rowCache, "f");
782
+ let cache = tslib_1.__classPrivateFieldGet(this, _Table_rowCache, "f");
687
783
  if (cache === undefined) {
688
784
  cache = new Map();
689
785
  for (const row of this.table.rows) {
@@ -691,13 +787,13 @@ var System_TableSchema;
691
787
  // See: https://github.com/microsoft/TypeScript/issues/52144
692
788
  cache.set(row.id, row);
693
789
  }
694
- __classPrivateFieldSet(this, _Table_rowCache, cache, "f");
790
+ tslib_1.__classPrivateFieldSet(this, _Table_rowCache, cache, "f");
695
791
  // Register the invalidation listener once. The `nodeChanged` event fires on the
696
792
  // array node itself after any structural change (insert / remove / move), which is
697
793
  // exactly the set of changes that can alter the ID → node mapping.
698
- if (__classPrivateFieldGet(this, _Table_rowCacheUnsubscribe, "f") === undefined) {
699
- __classPrivateFieldSet(this, _Table_rowCacheUnsubscribe, index_js_2.Tree.on(this.rows, "nodeChanged", () => {
700
- __classPrivateFieldSet(this, _Table_rowCache, undefined, "f");
794
+ if (tslib_1.__classPrivateFieldGet(this, _Table_rowCacheUnsubscribe, "f") === undefined) {
795
+ tslib_1.__classPrivateFieldSet(this, _Table_rowCacheUnsubscribe, index_js_2.Tree.on(this.rows, "nodeChanged", () => {
796
+ tslib_1.__classPrivateFieldSet(this, _Table_rowCache, undefined, "f");
701
797
  }), "f");
702
798
  }
703
799
  }
@@ -711,7 +807,7 @@ var System_TableSchema;
711
807
  // See: https://github.com/microsoft/TypeScript/issues/52144
712
808
  return this.table.rows[rowOrIdOrIndex];
713
809
  }
714
- const rowCache = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getRowCache).call(this);
810
+ const rowCache = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRowCache).call(this);
715
811
  if (typeof rowOrIdOrIndex === "string") {
716
812
  return rowCache.get(rowOrIdOrIndex);
717
813
  }
@@ -719,15 +815,15 @@ var System_TableSchema;
719
815
  const cached = rowCache.get(rowOrIdOrIndex.id);
720
816
  return cached === rowOrIdOrIndex ? rowOrIdOrIndex : undefined;
721
817
  }, _Table_getRow = function _Table_getRow(rowOrIdOrIndex) {
722
- const row = __classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, rowOrIdOrIndex);
818
+ const row = tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_tryGetRow).call(this, rowOrIdOrIndex);
723
819
  if (row === undefined) {
724
820
  _a._throwMissingRowError(rowOrIdOrIndex);
725
821
  }
726
822
  return row;
727
823
  }, _Table_validateNewColumns = function _Table_validateNewColumns(newColumns) {
728
- return _a._validateNewColumns(newColumns, __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this));
824
+ return _a._validateNewColumns(newColumns, tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this));
729
825
  }, _Table_validateNewRows = function _Table_validateNewRows(newRows) {
730
- return _a._validateNewRows(newRows, __classPrivateFieldGet(this, _Table_instances, "m", _Table_getRowCache).call(this), __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this));
826
+ return _a._validateNewRows(newRows, tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRowCache).call(this), tslib_1.__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumnCache).call(this));
731
827
  };
732
828
  // Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
733
829
  // for the private brand field of TreeNode.