@fluidframework/tree 2.63.0 → 2.70.0-360753
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-report/tree.alpha.api.md +31 -27
- package/api-report/tree.beta.api.md +36 -1
- package/api-report/tree.legacy.beta.api.md +36 -1
- package/dist/alpha.d.ts +4 -4
- package/dist/beta.d.ts +4 -0
- package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts +2 -2
- package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts.map +1 -1
- package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.js +9 -10
- package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.js.map +1 -1
- package/dist/feature-libraries/chunked-forest/codec/codecs.d.ts +5 -4
- package/dist/feature-libraries/chunked-forest/codec/codecs.d.ts.map +1 -1
- package/dist/feature-libraries/chunked-forest/codec/codecs.js.map +1 -1
- package/dist/feature-libraries/forest-summary/forestSummarizer.d.ts +1 -1
- package/dist/feature-libraries/forest-summary/forestSummarizer.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/forestSummarizer.js +2 -2
- package/dist/feature-libraries/forest-summary/forestSummarizer.js.map +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts +9 -7
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.js +34 -11
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.js.map +1 -1
- package/dist/legacy.d.ts +4 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/serializableDomainSchema.d.ts +12 -10
- package/dist/serializableDomainSchema.d.ts.map +1 -1
- package/dist/serializableDomainSchema.js +7 -7
- package/dist/serializableDomainSchema.js.map +1 -1
- package/dist/shared-tree/sharedTree.d.ts +1 -1
- package/dist/shared-tree/sharedTree.d.ts.map +1 -1
- package/dist/shared-tree/sharedTree.js +2 -2
- package/dist/shared-tree/sharedTree.js.map +1 -1
- package/dist/simple-tree/api/schemaFactory.d.ts +1 -1
- package/dist/simple-tree/api/schemaFactory.d.ts.map +1 -1
- package/dist/simple-tree/api/schemaFactory.js +17 -13
- package/dist/simple-tree/api/schemaFactory.js.map +1 -1
- package/dist/simple-tree/api/schemaFactoryAlpha.d.ts.map +1 -1
- package/dist/simple-tree/api/schemaFactoryAlpha.js +8 -8
- package/dist/simple-tree/api/schemaFactoryAlpha.js.map +1 -1
- package/dist/simple-tree/api/schemaFactoryBeta.d.ts +2 -1
- package/dist/simple-tree/api/schemaFactoryBeta.d.ts.map +1 -1
- package/dist/simple-tree/api/schemaFactoryBeta.js +8 -7
- package/dist/simple-tree/api/schemaFactoryBeta.js.map +1 -1
- package/dist/simple-tree/api/schemaFactoryRecursive.d.ts +1 -1
- package/dist/simple-tree/api/schemaFactoryRecursive.js.map +1 -1
- package/dist/simple-tree/node-kinds/array/arrayNode.d.ts +3 -4
- package/dist/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/array/arrayNode.js +3 -2
- package/dist/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
- package/dist/simple-tree/node-kinds/map/mapNode.d.ts +4 -3
- package/dist/simple-tree/node-kinds/map/mapNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/map/mapNode.js +3 -2
- package/dist/simple-tree/node-kinds/map/mapNode.js.map +1 -1
- package/dist/simple-tree/node-kinds/object/objectNode.d.ts +4 -3
- package/dist/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/object/objectNode.js +5 -5
- package/dist/simple-tree/node-kinds/object/objectNode.js.map +1 -1
- package/dist/simple-tree/node-kinds/record/recordNode.d.ts +3 -10
- package/dist/simple-tree/node-kinds/record/recordNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/record/recordNode.js +3 -2
- package/dist/simple-tree/node-kinds/record/recordNode.js.map +1 -1
- package/dist/simple-tree/node-kinds/record/recordNodeTypes.d.ts +2 -2
- package/dist/simple-tree/node-kinds/record/recordNodeTypes.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/record/recordNodeTypes.js.map +1 -1
- package/dist/tableSchema.d.ts +37 -24
- package/dist/tableSchema.d.ts.map +1 -1
- package/dist/tableSchema.js +81 -54
- package/dist/tableSchema.js.map +1 -1
- package/dist/treeFactory.d.ts.map +1 -1
- package/dist/treeFactory.js +1 -1
- package/dist/treeFactory.js.map +1 -1
- package/dist/util/utils.d.ts +11 -2
- package/dist/util/utils.d.ts.map +1 -1
- package/dist/util/utils.js.map +1 -1
- package/lib/alpha.d.ts +4 -4
- package/lib/beta.d.ts +4 -0
- package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts +2 -2
- package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts.map +1 -1
- package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.js +9 -10
- package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.js.map +1 -1
- package/lib/feature-libraries/chunked-forest/codec/codecs.d.ts +5 -4
- package/lib/feature-libraries/chunked-forest/codec/codecs.d.ts.map +1 -1
- package/lib/feature-libraries/chunked-forest/codec/codecs.js.map +1 -1
- package/lib/feature-libraries/forest-summary/forestSummarizer.d.ts +1 -1
- package/lib/feature-libraries/forest-summary/forestSummarizer.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/forestSummarizer.js +2 -2
- package/lib/feature-libraries/forest-summary/forestSummarizer.js.map +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts +9 -7
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.js +34 -11
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.js.map +1 -1
- package/lib/legacy.d.ts +4 -0
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/serializableDomainSchema.d.ts +12 -10
- package/lib/serializableDomainSchema.d.ts.map +1 -1
- package/lib/serializableDomainSchema.js +8 -8
- package/lib/serializableDomainSchema.js.map +1 -1
- package/lib/shared-tree/sharedTree.d.ts +1 -1
- package/lib/shared-tree/sharedTree.d.ts.map +1 -1
- package/lib/shared-tree/sharedTree.js +2 -2
- package/lib/shared-tree/sharedTree.js.map +1 -1
- package/lib/simple-tree/api/schemaFactory.d.ts +1 -1
- package/lib/simple-tree/api/schemaFactory.d.ts.map +1 -1
- package/lib/simple-tree/api/schemaFactory.js +18 -14
- package/lib/simple-tree/api/schemaFactory.js.map +1 -1
- package/lib/simple-tree/api/schemaFactoryAlpha.d.ts.map +1 -1
- package/lib/simple-tree/api/schemaFactoryAlpha.js +8 -8
- package/lib/simple-tree/api/schemaFactoryAlpha.js.map +1 -1
- package/lib/simple-tree/api/schemaFactoryBeta.d.ts +2 -1
- package/lib/simple-tree/api/schemaFactoryBeta.d.ts.map +1 -1
- package/lib/simple-tree/api/schemaFactoryBeta.js +8 -7
- package/lib/simple-tree/api/schemaFactoryBeta.js.map +1 -1
- package/lib/simple-tree/api/schemaFactoryRecursive.d.ts +1 -1
- package/lib/simple-tree/api/schemaFactoryRecursive.js.map +1 -1
- package/lib/simple-tree/node-kinds/array/arrayNode.d.ts +3 -4
- package/lib/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/array/arrayNode.js +3 -2
- package/lib/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
- package/lib/simple-tree/node-kinds/map/mapNode.d.ts +4 -3
- package/lib/simple-tree/node-kinds/map/mapNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/map/mapNode.js +3 -2
- package/lib/simple-tree/node-kinds/map/mapNode.js.map +1 -1
- package/lib/simple-tree/node-kinds/object/objectNode.d.ts +4 -3
- package/lib/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/object/objectNode.js +5 -5
- package/lib/simple-tree/node-kinds/object/objectNode.js.map +1 -1
- package/lib/simple-tree/node-kinds/record/recordNode.d.ts +3 -10
- package/lib/simple-tree/node-kinds/record/recordNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/record/recordNode.js +3 -2
- package/lib/simple-tree/node-kinds/record/recordNode.js.map +1 -1
- package/lib/simple-tree/node-kinds/record/recordNodeTypes.d.ts +2 -2
- package/lib/simple-tree/node-kinds/record/recordNodeTypes.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/record/recordNodeTypes.js.map +1 -1
- package/lib/tableSchema.d.ts +37 -24
- package/lib/tableSchema.d.ts.map +1 -1
- package/lib/tableSchema.js +81 -54
- package/lib/tableSchema.js.map +1 -1
- package/lib/treeFactory.d.ts.map +1 -1
- package/lib/treeFactory.js +1 -1
- package/lib/treeFactory.js.map +1 -1
- package/lib/util/utils.d.ts +11 -2
- package/lib/util/utils.d.ts.map +1 -1
- package/lib/util/utils.js.map +1 -1
- package/package.json +21 -21
- package/src/feature-libraries/chunked-forest/codec/chunkDecoding.ts +16 -14
- package/src/feature-libraries/chunked-forest/codec/codecs.ts +8 -4
- package/src/feature-libraries/forest-summary/forestSummarizer.ts +2 -0
- package/src/feature-libraries/forest-summary/incrementalSummaryBuilder.ts +65 -13
- package/src/packageVersion.ts +1 -1
- package/src/serializableDomainSchema.ts +11 -11
- package/src/shared-tree/sharedTree.ts +2 -0
- package/src/simple-tree/api/schemaFactory.ts +38 -22
- package/src/simple-tree/api/schemaFactoryAlpha.ts +8 -17
- package/src/simple-tree/api/schemaFactoryBeta.ts +17 -23
- package/src/simple-tree/api/schemaFactoryRecursive.ts +1 -1
- package/src/simple-tree/node-kinds/array/arrayNode.ts +5 -4
- package/src/simple-tree/node-kinds/map/mapNode.ts +5 -3
- package/src/simple-tree/node-kinds/object/objectNode.ts +8 -7
- package/src/simple-tree/node-kinds/record/recordNode.ts +6 -18
- package/src/simple-tree/node-kinds/record/recordNodeTypes.ts +2 -2
- package/src/tableSchema.ts +143 -81
- package/src/treeFactory.ts +1 -0
- package/src/util/utils.ts +11 -2
package/dist/tableSchema.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { type FieldHasDefault, type ImplicitAllowedTypes, type InsertableTreeNodeFromImplicitAllowedTypes, type NodeKind, type
|
|
5
|
+
import { type FieldHasDefault, type ImplicitAllowedTypes, type InsertableTreeNodeFromImplicitAllowedTypes, type NodeKind, type SchemaFactoryBeta, type ScopedSchemaName, TreeArrayNode, type TreeNode, type TreeNodeFromImplicitAllowedTypes, type TreeNodeSchemaClass, type WithType, type TreeFieldFromImplicitField, type InsertableTreeFieldFromImplicitField, type InternalTreeNode, SchemaFactory, type ImplicitFieldSchema } from "./simple-tree/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Not intended for use outside of this package.
|
|
8
8
|
*
|
|
@@ -29,7 +29,7 @@ export declare namespace System_TableSchema {
|
|
|
29
29
|
* @privateRemarks This interface primarily exists to provide a single home for property documentation.
|
|
30
30
|
* @system @alpha
|
|
31
31
|
*/
|
|
32
|
-
interface OptionsWithSchemaFactory<TSchemaFactory extends
|
|
32
|
+
interface OptionsWithSchemaFactory<TSchemaFactory extends SchemaFactoryBeta> {
|
|
33
33
|
/**
|
|
34
34
|
* Schema factory with which the Column schema will be associated.
|
|
35
35
|
* @remarks Can be used to associate the resulting schema with an existing {@link SchemaFactory.scope|scope}.
|
|
@@ -53,12 +53,12 @@ export declare namespace System_TableSchema {
|
|
|
53
53
|
* @remarks Includes parameters common to all column factory overloads.
|
|
54
54
|
* @system @alpha
|
|
55
55
|
*/
|
|
56
|
-
type CreateColumnOptionsBase<TSchemaFactory extends
|
|
56
|
+
type CreateColumnOptionsBase<TSchemaFactory extends SchemaFactoryBeta = SchemaFactoryBeta, TCell extends ImplicitAllowedTypes = ImplicitAllowedTypes> = OptionsWithSchemaFactory<TSchemaFactory> & OptionsWithCellSchema<TCell>;
|
|
57
57
|
/**
|
|
58
58
|
* Factory for creating column schema.
|
|
59
59
|
* @system @alpha
|
|
60
60
|
*/
|
|
61
|
-
function createColumnSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory:
|
|
61
|
+
function createColumnSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory: SchemaFactoryBeta<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind.Object, TreeNode & TableSchema.Column<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind, unknown>, object & {
|
|
62
62
|
readonly id?: string | undefined;
|
|
63
63
|
} & (FieldHasDefault<TPropsSchema> extends true ? {
|
|
64
64
|
/**
|
|
@@ -86,14 +86,14 @@ export declare namespace System_TableSchema {
|
|
|
86
86
|
* @remarks Includes parameters common to all row factory overloads.
|
|
87
87
|
* @system @alpha
|
|
88
88
|
*/
|
|
89
|
-
type CreateRowOptionsBase<TSchemaFactory extends
|
|
89
|
+
type CreateRowOptionsBase<TSchemaFactory extends SchemaFactoryBeta = SchemaFactoryBeta, TCell extends ImplicitAllowedTypes = ImplicitAllowedTypes> = OptionsWithSchemaFactory<TSchemaFactory> & OptionsWithCellSchema<TCell>;
|
|
90
90
|
/**
|
|
91
91
|
* Factory for creating row schema.
|
|
92
92
|
* @sealed @alpha
|
|
93
93
|
*/
|
|
94
|
-
function createRowSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory:
|
|
94
|
+
function createRowSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory: SchemaFactoryBeta<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind.Object, TreeNode & TableSchema.Row<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind, unknown>, object & {
|
|
95
95
|
readonly id?: string | undefined;
|
|
96
|
-
readonly cells: (import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>> | undefined) & import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>>;
|
|
96
|
+
readonly cells: (import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined, unknown>> | undefined) & import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined, unknown>>;
|
|
97
97
|
} & (FieldHasDefault<TPropsSchema> extends true ? {
|
|
98
98
|
/**
|
|
99
99
|
* The row's properties.
|
|
@@ -116,7 +116,7 @@ export declare namespace System_TableSchema {
|
|
|
116
116
|
* @remarks
|
|
117
117
|
* The table row models its cells as a record, where each key is the ID of the column it belongs to. The choice of record (as opposed to a map) is intended to make interop with common table rendering libraries in TypeScript/JavaScript easier.
|
|
118
118
|
*/
|
|
119
|
-
readonly cells: import("./simple-tree/fieldSchema.js").
|
|
119
|
+
readonly cells: import("./simple-tree/fieldSchema.js").FieldSchema<import("./simple-tree/fieldSchema.js").FieldKind.Required, TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined, unknown>, unknown>;
|
|
120
120
|
}>;
|
|
121
121
|
/**
|
|
122
122
|
* Base row schema type.
|
|
@@ -128,12 +128,12 @@ export declare namespace System_TableSchema {
|
|
|
128
128
|
* @remarks Includes parameters common to all table factory overloads.
|
|
129
129
|
* @system @alpha
|
|
130
130
|
*/
|
|
131
|
-
type TableFactoryOptionsBase<TSchemaFactory extends
|
|
131
|
+
type TableFactoryOptionsBase<TSchemaFactory extends SchemaFactoryBeta = SchemaFactoryBeta, TCell extends ImplicitAllowedTypes = ImplicitAllowedTypes> = OptionsWithSchemaFactory<TSchemaFactory> & OptionsWithCellSchema<TCell>;
|
|
132
132
|
/**
|
|
133
133
|
* Factory for creating table schema.
|
|
134
134
|
* @system @alpha
|
|
135
135
|
*/
|
|
136
|
-
function createTableSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TColumnSchema extends ColumnSchemaBase<TInputScope, TCellSchema>, const TRowSchema extends RowSchemaBase<TInputScope, TCellSchema>>(inputSchemaFactory:
|
|
136
|
+
function createTableSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TColumnSchema extends ColumnSchemaBase<TInputScope, TCellSchema>, const TRowSchema extends RowSchemaBase<TInputScope, TCellSchema>>(inputSchemaFactory: SchemaFactoryBeta<TInputScope>, _cellSchema: TCellSchema, columnSchema: TColumnSchema, rowSchema: TRowSchema): import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table">, NodeKind.Object, true, {
|
|
137
137
|
readonly rows: TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, TreeArrayNode<TRowSchema, [TRowSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TRowSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TRowSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema> : never, import("./simple-tree/index.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/index.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, unknown>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>>, true, TRowSchema, undefined>;
|
|
138
138
|
readonly columns: TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, TreeArrayNode<TColumnSchema, [TColumnSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TColumnSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TColumnSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema> : never, import("./simple-tree/index.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/index.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, unknown>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>>, true, TColumnSchema, undefined>;
|
|
139
139
|
}, object & {
|
|
@@ -296,7 +296,7 @@ export declare namespace TableSchema {
|
|
|
296
296
|
set props(value: InsertableTreeFieldFromImplicitField<TProps>);
|
|
297
297
|
/**
|
|
298
298
|
* Gets all of the populated cells in the column, keyed by their associated row IDs.
|
|
299
|
-
* @throws Throws an error if the
|
|
299
|
+
* @throws Throws an error if the column is not in a table.
|
|
300
300
|
*/
|
|
301
301
|
getCells(): readonly {
|
|
302
302
|
rowId: string;
|
|
@@ -309,7 +309,7 @@ export declare namespace TableSchema {
|
|
|
309
309
|
* @typeParam TCell - The type of the cells in the {@link TableSchema.Table}.
|
|
310
310
|
* @alpha
|
|
311
311
|
*/
|
|
312
|
-
function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.CreateColumnOptionsBase<
|
|
312
|
+
function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryBeta<TScope>, TCell>): System_TableSchema.ColumnSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>;
|
|
313
313
|
/**
|
|
314
314
|
* Factory for creating new table column schema.
|
|
315
315
|
* @typeParam TScope - The {@link SchemaFactory.scope | schema factory scope}.
|
|
@@ -317,7 +317,7 @@ export declare namespace TableSchema {
|
|
|
317
317
|
* @typeParam TProps - Additional properties to associate with the column.
|
|
318
318
|
* @alpha
|
|
319
319
|
*/
|
|
320
|
-
function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateColumnOptionsBase<
|
|
320
|
+
function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryBeta<TScope>, TCell> & {
|
|
321
321
|
/**
|
|
322
322
|
* Optional column properties.
|
|
323
323
|
*/
|
|
@@ -392,7 +392,7 @@ export declare namespace TableSchema {
|
|
|
392
392
|
* @typeParam TCell - The type of the cells in the {@link TableSchema.Table}.
|
|
393
393
|
* @alpha
|
|
394
394
|
*/
|
|
395
|
-
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.CreateRowOptionsBase<
|
|
395
|
+
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryBeta<TScope>, TCell>): System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>;
|
|
396
396
|
/**
|
|
397
397
|
* Factory for creating new table row schema.
|
|
398
398
|
* @typeParam TScope - The {@link SchemaFactory.scope | schema factory scope}.
|
|
@@ -400,7 +400,7 @@ export declare namespace TableSchema {
|
|
|
400
400
|
* @typeParam TProps - Additional properties to associate with the row.
|
|
401
401
|
* @alpha
|
|
402
402
|
*/
|
|
403
|
-
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateRowOptionsBase<
|
|
403
|
+
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryBeta<TScope>, TCell> & {
|
|
404
404
|
/**
|
|
405
405
|
* Optional row properties.
|
|
406
406
|
*/
|
|
@@ -412,13 +412,13 @@ export declare namespace TableSchema {
|
|
|
412
412
|
*/
|
|
413
413
|
interface CellKey<TColumn extends ImplicitAllowedTypes, TRow extends ImplicitAllowedTypes> {
|
|
414
414
|
/**
|
|
415
|
-
* {@link TableSchema.Column}
|
|
415
|
+
* {@link TableSchema.Column}, {@link TableSchema.Column.id}, or column index at which the cell is located.
|
|
416
416
|
*/
|
|
417
|
-
readonly column: string | TreeNodeFromImplicitAllowedTypes<TColumn>;
|
|
417
|
+
readonly column: string | number | TreeNodeFromImplicitAllowedTypes<TColumn>;
|
|
418
418
|
/**
|
|
419
|
-
* {@link TableSchema.Row}
|
|
419
|
+
* {@link TableSchema.Row}, {@link TableSchema.Row.id}, or row index at which the cell is located.
|
|
420
420
|
*/
|
|
421
|
-
readonly row: string | TreeNodeFromImplicitAllowedTypes<TRow>;
|
|
421
|
+
readonly row: string | number | TreeNodeFromImplicitAllowedTypes<TRow>;
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* {@link TableSchema.Table.insertColumns} parameters.
|
|
@@ -483,15 +483,28 @@ export declare namespace TableSchema {
|
|
|
483
483
|
readonly rows: TreeArrayNode<TRow>;
|
|
484
484
|
/**
|
|
485
485
|
* Gets a table column by its {@link TableSchema.Column.id}.
|
|
486
|
+
* @returns The column, if it exists. Otherwise, `undefined`.
|
|
486
487
|
*/
|
|
487
488
|
getColumn(id: string): TreeNodeFromImplicitAllowedTypes<TColumn> | undefined;
|
|
489
|
+
/**
|
|
490
|
+
* Gets a table column by its index in the table.
|
|
491
|
+
* @returns The column, if it exists. Otherwise, `undefined`.
|
|
492
|
+
*/
|
|
493
|
+
getColumn(index: number): TreeNodeFromImplicitAllowedTypes<TColumn> | undefined;
|
|
488
494
|
/**
|
|
489
495
|
* Gets a table row by its {@link TableSchema.Row.id}.
|
|
496
|
+
* @returns The row, if it exists. Otherwise, `undefined`.
|
|
490
497
|
*/
|
|
491
498
|
getRow(id: string): TreeNodeFromImplicitAllowedTypes<TRow> | undefined;
|
|
492
499
|
/**
|
|
493
|
-
* Gets a
|
|
500
|
+
* Gets a table row by its index in the table.
|
|
501
|
+
* @returns The row, if it exists. Otherwise, `undefined`.
|
|
502
|
+
*/
|
|
503
|
+
getRow(index: number): TreeNodeFromImplicitAllowedTypes<TRow> | undefined;
|
|
504
|
+
/**
|
|
505
|
+
* Gets a cell in the table by corresponding column and row.
|
|
494
506
|
* @param key - A key that uniquely distinguishes a cell in the table, represented as a combination of the column ID and row ID.
|
|
507
|
+
* @returns The cell, if it exists. Otherwise, `undefined`.
|
|
495
508
|
*/
|
|
496
509
|
getCell(key: CellKey<TColumn, TRow>): TreeNodeFromImplicitAllowedTypes<TCell> | undefined;
|
|
497
510
|
/**
|
|
@@ -597,7 +610,7 @@ export declare namespace TableSchema {
|
|
|
597
610
|
* @typeParam TCell - The type of the cells in the table.
|
|
598
611
|
* @alpha
|
|
599
612
|
*/
|
|
600
|
-
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.TableFactoryOptionsBase<
|
|
613
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryBeta<TScope>, TCell>): System_TableSchema.TableSchemaBase<TScope, TCell, System_TableSchema.ColumnSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>, System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>>;
|
|
601
614
|
/**
|
|
602
615
|
* Factory for creating new table schema with custom column schema.
|
|
603
616
|
* @typeParam TScope - The {@link SchemaFactory.scope | schema factory scope}.
|
|
@@ -605,7 +618,7 @@ export declare namespace TableSchema {
|
|
|
605
618
|
* @typeParam TColumn - The type of the columns in the table.
|
|
606
619
|
* @alpha
|
|
607
620
|
*/
|
|
608
|
-
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<
|
|
621
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryBeta<TScope>, TCell> & {
|
|
609
622
|
readonly column: TColumn;
|
|
610
623
|
}): System_TableSchema.TableSchemaBase<TScope, TCell, TColumn, System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>>;
|
|
611
624
|
/**
|
|
@@ -615,7 +628,7 @@ export declare namespace TableSchema {
|
|
|
615
628
|
* @typeParam TRow - The type of the rows in the table.
|
|
616
629
|
* @alpha
|
|
617
630
|
*/
|
|
618
|
-
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<
|
|
631
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryBeta<TScope>, TCell> & {
|
|
619
632
|
readonly row: TRow;
|
|
620
633
|
}): System_TableSchema.TableSchemaBase<TScope, TCell, System_TableSchema.ColumnSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>, TRow>;
|
|
621
634
|
/**
|
|
@@ -626,7 +639,7 @@ export declare namespace TableSchema {
|
|
|
626
639
|
* @typeParam TRow - The type of the rows in the table.
|
|
627
640
|
* @alpha
|
|
628
641
|
*/
|
|
629
|
-
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope, TCell>, const TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<
|
|
642
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope, TCell>, const TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryBeta<TScope>, TCell> & {
|
|
630
643
|
readonly column: TColumn;
|
|
631
644
|
readonly row: TRow;
|
|
632
645
|
}): System_TableSchema.TableSchemaBase<TScope, TCell, TColumn, TRow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../src/tableSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAEzB,KAAK,0CAA0C,EAC/C,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,gCAAgC,EAErC,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,gBAAgB,EACrB,aAAa,EACb,KAAK,mBAAmB,EAIxB,MAAM,wBAAwB,CAAC;AA+DhC;;;;;;;;;GASG;AACH,yBAAiB,kBAAkB,CAAC;IACnC;;;;;;;OAOG;IACH,KAAY,gBAAgB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7E;;;;;OAKG;IACH,UAAiB,wBAAwB,CAAC,cAAc,SAAS,kBAAkB;QAClF;;;WAGG;QACH,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC;KACvC;IAED;;;;;OAKG;IACH,UAAiB,qBAAqB,CAAC,WAAW,SAAS,oBAAoB;QAC9E;;WAEG;QACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;KAC3B;IAID;;;;OAIG;IACH,KAAY,uBAAuB,CAClC,cAAc,SAAS,kBAAkB,GAAG,kBAAkB,EAC9D,KAAK,SAAS,oBAAoB,GAAG,oBAAoB,IACtD,wBAAwB,CAAC,cAAc,CAAC,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAE5E;;;OAGG;IAEH,SAAgB,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B,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG;QACtF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;KACnB,GACC,kBAAkB,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CA4BpE"}
|
package/dist/tableSchema.js
CHANGED
|
@@ -63,7 +63,7 @@ var System_TableSchema;
|
|
|
63
63
|
*/
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
65
65
|
function createColumnSchema(inputSchemaFactory, cellSchema, propsSchema) {
|
|
66
|
-
const schemaFactory = inputSchemaFactory.
|
|
66
|
+
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
67
67
|
// Note: `columnFields` is broken into two parts to work around a TypeScript bug
|
|
68
68
|
// that results in broken `.d.ts` output.
|
|
69
69
|
// See definition of `ColumnInsertableType` below.
|
|
@@ -128,7 +128,7 @@ var System_TableSchema;
|
|
|
128
128
|
*/
|
|
129
129
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
130
130
|
function createRowSchema(inputSchemaFactory, cellSchema, propsSchema) {
|
|
131
|
-
const schemaFactory = inputSchemaFactory.
|
|
131
|
+
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
132
132
|
// Note: `rowFields` is broken into two parts to work around a TypeScript bug
|
|
133
133
|
// that results in broken `.d.ts` output.
|
|
134
134
|
// See definition of `RowInsertableType` below.
|
|
@@ -223,7 +223,7 @@ var System_TableSchema;
|
|
|
223
223
|
*/
|
|
224
224
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
225
225
|
function createTableSchema(inputSchemaFactory, _cellSchema, columnSchema, rowSchema) {
|
|
226
|
-
const schemaFactory = inputSchemaFactory.
|
|
226
|
+
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
227
227
|
/**
|
|
228
228
|
* {@link Table} fields.
|
|
229
229
|
* @remarks Extracted for re-use in returned type signature defined later in this function.
|
|
@@ -236,30 +236,26 @@ var System_TableSchema;
|
|
|
236
236
|
/**
|
|
237
237
|
* The Table schema
|
|
238
238
|
*/
|
|
239
|
-
class Table extends schemaFactory.
|
|
239
|
+
class Table extends schemaFactory.object("Table", tableFields, {
|
|
240
240
|
// Will make it easier to evolve this schema in the future.
|
|
241
241
|
allowUnknownOptionalFields: true,
|
|
242
242
|
}) {
|
|
243
243
|
static empty() {
|
|
244
244
|
return new this({ columns: [], rows: [] });
|
|
245
245
|
}
|
|
246
|
-
getColumn(
|
|
247
|
-
|
|
248
|
-
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
249
|
-
return this.columns.find((column) => column.id === id);
|
|
246
|
+
getColumn(indexOrId) {
|
|
247
|
+
return this._tryGetColumn(indexOrId);
|
|
250
248
|
}
|
|
251
|
-
getRow(
|
|
252
|
-
|
|
253
|
-
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
254
|
-
return this.rows.find((_row) => _row.id === id);
|
|
249
|
+
getRow(indexOrId) {
|
|
250
|
+
return this._tryGetRow(indexOrId);
|
|
255
251
|
}
|
|
256
252
|
getCell(key) {
|
|
257
|
-
const { column:
|
|
258
|
-
const row = this._tryGetRow(
|
|
253
|
+
const { column: columnOrIdOrIndex, row: rowOrIdOrIndex } = key;
|
|
254
|
+
const row = this._tryGetRow(rowOrIdOrIndex);
|
|
259
255
|
if (row === undefined) {
|
|
260
256
|
return undefined;
|
|
261
257
|
}
|
|
262
|
-
const column = this._tryGetColumn(
|
|
258
|
+
const column = this._tryGetColumn(columnOrIdOrIndex);
|
|
263
259
|
if (column === undefined) {
|
|
264
260
|
return undefined;
|
|
265
261
|
}
|
|
@@ -408,15 +404,16 @@ var System_TableSchema;
|
|
|
408
404
|
// So if we throw an error here for any row, no rows will be removed.
|
|
409
405
|
for (const rowToRemove of rowsToRemove) {
|
|
410
406
|
// We have already validated that all of the rows exist above, so this is safe.
|
|
411
|
-
this.rows.
|
|
407
|
+
const index = this.rows.indexOf(rowToRemove);
|
|
408
|
+
this.rows.removeAt(index);
|
|
412
409
|
}
|
|
413
410
|
});
|
|
414
411
|
return rowsToRemove;
|
|
415
412
|
}
|
|
416
413
|
removeCell(key) {
|
|
417
|
-
const { column:
|
|
418
|
-
const row = this._getRow(
|
|
419
|
-
const column = this._getColumn(
|
|
414
|
+
const { column: columnOrIdOrIndex, row: rowOrIdOrIndex } = key;
|
|
415
|
+
const row = this._getRow(rowOrIdOrIndex);
|
|
416
|
+
const column = this._getColumn(columnOrIdOrIndex);
|
|
420
417
|
const cell = row.getCell(column.id);
|
|
421
418
|
if (cell === undefined) {
|
|
422
419
|
return undefined;
|
|
@@ -480,30 +477,39 @@ var System_TableSchema;
|
|
|
480
477
|
* Returns `undefined` if there is no match.
|
|
481
478
|
* @remarks Searches for a match based strictly on the ID and returns that result.
|
|
482
479
|
*/
|
|
483
|
-
_tryGetColumn(
|
|
484
|
-
|
|
485
|
-
|
|
480
|
+
_tryGetColumn(columnOrIdOrIndex) {
|
|
481
|
+
if (typeof columnOrIdOrIndex === "number") {
|
|
482
|
+
if (columnOrIdOrIndex < 0 || columnOrIdOrIndex >= this.columns.length) {
|
|
483
|
+
return undefined;
|
|
484
|
+
}
|
|
485
|
+
// TypeScript is unable to narrow the types correctly here, hence the cast.
|
|
486
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
487
|
+
return this.columns[columnOrIdOrIndex];
|
|
488
|
+
}
|
|
489
|
+
if (typeof columnOrIdOrIndex === "string") {
|
|
490
|
+
const columnId = columnOrIdOrIndex;
|
|
491
|
+
// TypeScript is unable to narrow the types correctly here, hence the casts.
|
|
492
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
493
|
+
return this.columns.find((col) => col.id === columnId);
|
|
494
|
+
}
|
|
495
|
+
// If the user provided a node, ensure it actually exists in this table.
|
|
496
|
+
if (!this.columns.includes(columnOrIdOrIndex)) {
|
|
497
|
+
return undefined;
|
|
498
|
+
}
|
|
499
|
+
return columnOrIdOrIndex;
|
|
486
500
|
}
|
|
487
501
|
/**
|
|
488
502
|
* Attempts to resolve the provided Column node or ID to a Column node in the table.
|
|
489
503
|
* @throws Throws a `UsageError` if there is no match.
|
|
490
504
|
* @remarks Searches for a match based strictly on the ID and returns that result.
|
|
491
505
|
*/
|
|
492
|
-
_getColumn(
|
|
493
|
-
const column = this._tryGetColumn(
|
|
506
|
+
_getColumn(columnOrIdOrIndex) {
|
|
507
|
+
const column = this._tryGetColumn(columnOrIdOrIndex);
|
|
494
508
|
if (column === undefined) {
|
|
495
|
-
|
|
509
|
+
Table._throwMissingColumnError(columnOrIdOrIndex);
|
|
496
510
|
}
|
|
497
511
|
return column;
|
|
498
512
|
}
|
|
499
|
-
/**
|
|
500
|
-
* Resolves a Column node or ID to its ID.
|
|
501
|
-
* If an ID is provided, it is returned as-is.
|
|
502
|
-
* If a node is provided, its ID is returned.
|
|
503
|
-
*/
|
|
504
|
-
_getColumnId(columnOrId) {
|
|
505
|
-
return typeof columnOrId === "string" ? columnOrId : columnOrId.id;
|
|
506
|
-
}
|
|
507
513
|
/**
|
|
508
514
|
* Checks if a Column with the specified ID exists in the table.
|
|
509
515
|
*/
|
|
@@ -511,45 +517,66 @@ var System_TableSchema;
|
|
|
511
517
|
return this._tryGetColumn(columnId) !== undefined;
|
|
512
518
|
}
|
|
513
519
|
/**
|
|
514
|
-
* Throw a `UsageError` for a missing Column by its ID.
|
|
520
|
+
* Throw a `UsageError` for a missing Column by its ID or index.
|
|
515
521
|
*/
|
|
516
|
-
_throwMissingColumnError(
|
|
517
|
-
|
|
522
|
+
static _throwMissingColumnError(columnOrIdOrIndex) {
|
|
523
|
+
if (typeof columnOrIdOrIndex === "number") {
|
|
524
|
+
throw new internal_2.UsageError(`No column exists at index ${columnOrIdOrIndex}.`);
|
|
525
|
+
}
|
|
526
|
+
if (typeof columnOrIdOrIndex === "string") {
|
|
527
|
+
throw new internal_2.UsageError(`No column with ID "${columnOrIdOrIndex}" exists in the table.`);
|
|
528
|
+
}
|
|
529
|
+
throw new internal_2.UsageError(`The specified column node with ID "${columnOrIdOrIndex.id}" does not exist in the table.`);
|
|
518
530
|
}
|
|
519
531
|
/**
|
|
520
532
|
* Attempts to resolve the provided Row node or ID to a Row node in the table.
|
|
521
533
|
* Returns `undefined` if there is no match.
|
|
522
534
|
* @remarks Searches for a match based strictly on the ID and returns that result.
|
|
523
535
|
*/
|
|
524
|
-
_tryGetRow(
|
|
525
|
-
|
|
526
|
-
|
|
536
|
+
_tryGetRow(rowOrIdOrIndex) {
|
|
537
|
+
if (typeof rowOrIdOrIndex === "number") {
|
|
538
|
+
if (rowOrIdOrIndex < 0 || rowOrIdOrIndex >= this.rows.length) {
|
|
539
|
+
return undefined;
|
|
540
|
+
}
|
|
541
|
+
// TypeScript is unable to narrow the types correctly here, hence the cast.
|
|
542
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
543
|
+
return this.rows[rowOrIdOrIndex];
|
|
544
|
+
}
|
|
545
|
+
if (typeof rowOrIdOrIndex === "string") {
|
|
546
|
+
const rowId = rowOrIdOrIndex;
|
|
547
|
+
// TypeScript is unable to narrow the types correctly here, hence the casts.
|
|
548
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
549
|
+
return this.rows.find((row) => row.id === rowId);
|
|
550
|
+
}
|
|
551
|
+
// If the user provided a node, ensure it actually exists in this table.
|
|
552
|
+
if (!this.rows.includes(rowOrIdOrIndex)) {
|
|
553
|
+
return undefined;
|
|
554
|
+
}
|
|
555
|
+
return rowOrIdOrIndex;
|
|
527
556
|
}
|
|
528
557
|
/**
|
|
529
|
-
* Attempts to resolve the provided Row node or
|
|
558
|
+
* Attempts to resolve the provided Row node, ID, or index to a Row node in the table.
|
|
530
559
|
* @throws Throws a `UsageError` if there is no match.
|
|
531
560
|
* @remarks Searches for a match based strictly on the ID and returns that result.
|
|
532
561
|
*/
|
|
533
|
-
_getRow(
|
|
534
|
-
const row = this._tryGetRow(
|
|
562
|
+
_getRow(rowOrIdOrIndex) {
|
|
563
|
+
const row = this._tryGetRow(rowOrIdOrIndex);
|
|
535
564
|
if (row === undefined) {
|
|
536
|
-
|
|
565
|
+
Table._throwMissingRowError(rowOrIdOrIndex);
|
|
537
566
|
}
|
|
538
567
|
return row;
|
|
539
568
|
}
|
|
540
569
|
/**
|
|
541
|
-
*
|
|
542
|
-
* If an ID is provided, it is returned as-is.
|
|
543
|
-
* If a node is provided, its ID is returned.
|
|
544
|
-
*/
|
|
545
|
-
_getRowId(rowOrId) {
|
|
546
|
-
return typeof rowOrId === "string" ? rowOrId : rowOrId.id;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Throw a `UsageError` for a missing Row by its ID.
|
|
570
|
+
* Throw a `UsageError` for a missing Row by its ID or index.
|
|
550
571
|
*/
|
|
551
|
-
_throwMissingRowError(
|
|
552
|
-
|
|
572
|
+
static _throwMissingRowError(rowOrIdOrIndex) {
|
|
573
|
+
if (typeof rowOrIdOrIndex === "number") {
|
|
574
|
+
throw new internal_2.UsageError(`No row exists at index ${rowOrIdOrIndex}.`);
|
|
575
|
+
}
|
|
576
|
+
if (typeof rowOrIdOrIndex === "string") {
|
|
577
|
+
throw new internal_2.UsageError(`No row with ID "${rowOrIdOrIndex}" exists in the table.`);
|
|
578
|
+
}
|
|
579
|
+
throw new internal_2.UsageError(`The specified row node with ID "${rowOrIdOrIndex.id}" does not exist in the table.`);
|
|
553
580
|
}
|
|
554
581
|
static _removeRange(range, array) {
|
|
555
582
|
Table._assertValidRange(range, array);
|