@fluidframework/tree 2.40.0 → 2.41.0-337492
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/feature-libraries/default-schema/schemaChecker.d.ts.map +1 -1
- package/dist/feature-libraries/default-schema/schemaChecker.js +0 -7
- package/dist/feature-libraries/default-schema/schemaChecker.js.map +1 -1
- 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/shared-tree/schematizeTree.d.ts +1 -1
- package/dist/shared-tree/schematizeTree.js +1 -1
- package/dist/shared-tree/schematizeTree.js.map +1 -1
- package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/dist/shared-tree/schematizingTreeView.js +3 -2
- package/dist/shared-tree/schematizingTreeView.js.map +1 -1
- package/dist/simple-tree/core/unhydratedFlexTree.d.ts.map +1 -1
- package/dist/simple-tree/core/unhydratedFlexTree.js +5 -1
- package/dist/simple-tree/core/unhydratedFlexTree.js.map +1 -1
- package/dist/tableSchema.d.ts +24 -25
- package/dist/tableSchema.d.ts.map +1 -1
- package/dist/tableSchema.js +24 -25
- package/dist/tableSchema.js.map +1 -1
- package/lib/feature-libraries/default-schema/schemaChecker.d.ts.map +1 -1
- package/lib/feature-libraries/default-schema/schemaChecker.js +0 -7
- package/lib/feature-libraries/default-schema/schemaChecker.js.map +1 -1
- 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/shared-tree/schematizeTree.d.ts +1 -1
- package/lib/shared-tree/schematizeTree.js +1 -1
- package/lib/shared-tree/schematizeTree.js.map +1 -1
- package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/lib/shared-tree/schematizingTreeView.js +3 -2
- package/lib/shared-tree/schematizingTreeView.js.map +1 -1
- package/lib/simple-tree/core/unhydratedFlexTree.d.ts.map +1 -1
- package/lib/simple-tree/core/unhydratedFlexTree.js +5 -1
- package/lib/simple-tree/core/unhydratedFlexTree.js.map +1 -1
- package/lib/tableSchema.d.ts +24 -25
- package/lib/tableSchema.d.ts.map +1 -1
- package/lib/tableSchema.js +24 -25
- package/lib/tableSchema.js.map +1 -1
- package/package.json +20 -20
- package/src/feature-libraries/default-schema/schemaChecker.ts +0 -8
- package/src/packageVersion.ts +1 -1
- package/src/shared-tree/schematizeTree.ts +1 -1
- package/src/shared-tree/schematizingTreeView.ts +3 -2
- package/src/simple-tree/core/unhydratedFlexTree.ts +6 -1
- package/src/tableSchema.ts +74 -88
package/dist/tableSchema.d.ts
CHANGED
|
@@ -55,10 +55,10 @@ export declare namespace System_TableSchema {
|
|
|
55
55
|
*/
|
|
56
56
|
type CreateColumnOptionsBase<TSchemaFactory extends SchemaFactoryAlpha = SchemaFactoryAlpha> = OptionsWithSchemaFactory<TSchemaFactory>;
|
|
57
57
|
/**
|
|
58
|
-
* Factory for creating
|
|
58
|
+
* Factory for creating column schema.
|
|
59
59
|
* @system @internal
|
|
60
60
|
*/
|
|
61
|
-
function
|
|
61
|
+
function createColumnSchema<const TInputScope extends string | undefined, const TPropsSchema extends ImplicitAnnotatedFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind.Object, TreeNode & TableSchema.Column<TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind, unknown>, object & {
|
|
62
62
|
readonly id?: string | undefined;
|
|
63
63
|
} & (FieldHasDefault<UnannotateImplicitFieldSchema<TPropsSchema>> extends true ? {
|
|
64
64
|
/**
|
|
@@ -80,7 +80,7 @@ export declare namespace System_TableSchema {
|
|
|
80
80
|
* Base column schema type.
|
|
81
81
|
* @sealed @system @internal
|
|
82
82
|
*/
|
|
83
|
-
type ColumnSchemaBase<TScope extends string | undefined = string | undefined, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof
|
|
83
|
+
type ColumnSchemaBase<TScope extends string | undefined = string | undefined, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof createColumnSchema<TScope, TPropsSchema>>;
|
|
84
84
|
/**
|
|
85
85
|
* Base options for creating table row schema.
|
|
86
86
|
* @remarks Includes parameters common to all row factory overloads.
|
|
@@ -88,11 +88,10 @@ export declare namespace System_TableSchema {
|
|
|
88
88
|
*/
|
|
89
89
|
type CreateRowOptionsBase<TSchemaFactory extends SchemaFactoryAlpha = SchemaFactoryAlpha, TCell extends ImplicitAllowedTypes = ImplicitAllowedTypes> = OptionsWithSchemaFactory<TSchemaFactory> & OptionsWithCellSchema<TCell>;
|
|
90
90
|
/**
|
|
91
|
-
* Factory for creating
|
|
92
|
-
*
|
|
91
|
+
* Factory for creating row schema.
|
|
93
92
|
* @sealed @internal
|
|
94
93
|
*/
|
|
95
|
-
function
|
|
94
|
+
function createRowSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitAnnotatedFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<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 & {
|
|
96
95
|
readonly id?: string | undefined;
|
|
97
96
|
readonly cells: (import("./simple-tree/schemaTypes.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, import("./simple-tree/mapNode.js").TreeMapNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, unknown>, import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>, import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, true, TCellSchema, import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema>, unknown> & (new (data?: InternalTreeNode | import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema> | undefined) => import("./simple-tree/mapNode.js").TreeMapNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, unknown>)> | undefined) & import("./simple-tree/schemaTypes.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, import("./simple-tree/mapNode.js").TreeMapNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, unknown>, import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>, import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, true, TCellSchema, import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema>, unknown> & (new (data?: InternalTreeNode | import("./simple-tree/mapNode.js").MapNodeInsertableData<TCellSchema> | undefined) => import("./simple-tree/mapNode.js").TreeMapNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Map, unknown>)>;
|
|
98
97
|
} & (FieldHasDefault<UnannotateImplicitFieldSchema<TPropsSchema>> extends true ? {
|
|
@@ -118,7 +117,7 @@ export declare namespace System_TableSchema {
|
|
|
118
117
|
* Base row schema type.
|
|
119
118
|
* @sealed @system @internal
|
|
120
119
|
*/
|
|
121
|
-
type RowSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof
|
|
120
|
+
type RowSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof createRowSchema<TScope, TCellSchema, TPropsSchema>>;
|
|
122
121
|
/**
|
|
123
122
|
* Base options for creating table schema.
|
|
124
123
|
* @remarks Includes parameters common to all table factory overloads.
|
|
@@ -126,10 +125,10 @@ export declare namespace System_TableSchema {
|
|
|
126
125
|
*/
|
|
127
126
|
type TableFactoryOptionsBase<TSchemaFactory extends SchemaFactoryAlpha = SchemaFactoryAlpha, TCell extends ImplicitAllowedTypes = ImplicitAllowedTypes> = OptionsWithSchemaFactory<TSchemaFactory> & OptionsWithCellSchema<TCell>;
|
|
128
127
|
/**
|
|
129
|
-
* Factory for creating
|
|
128
|
+
* Factory for creating table schema.
|
|
130
129
|
* @system @internal
|
|
131
130
|
*/
|
|
132
|
-
function
|
|
131
|
+
function createTableSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TColumnSchema extends ColumnSchemaBase<TInputScope>, const TRowSchema extends RowSchemaBase<TInputScope, TCellSchema>>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, _cellSchema: TCellSchema, columnSchema: TColumnSchema, rowSchema: TRowSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table">, NodeKind.Object, TreeNode & TableSchema.Table<TCellSchema, TColumnSchema, TRowSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table">, NodeKind, unknown>, object & {
|
|
133
132
|
readonly rows: (import("./simple-tree/schemaTypes.js").InsertableTypedNode<import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, true, TRowSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>> | undefined) => TreeArrayNode<TRowSchema, [TRowSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TRowSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TRowSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, unknown>), import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, true, TRowSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>> | undefined) => TreeArrayNode<TRowSchema, [TRowSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TRowSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TRowSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, unknown>)> | undefined) & import("./simple-tree/schemaTypes.js").InsertableTypedNode<import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, true, TRowSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>> | undefined) => TreeArrayNode<TRowSchema, [TRowSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TRowSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TRowSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, unknown>), import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, true, TRowSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema>> | undefined) => TreeArrayNode<TRowSchema, [TRowSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TRowSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TRowSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TRowSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.rows">, NodeKind.Array, unknown>)>;
|
|
134
133
|
readonly columns: (import("./simple-tree/schemaTypes.js").InsertableTypedNode<import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, true, TColumnSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>> | undefined) => TreeArrayNode<TColumnSchema, [TColumnSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TColumnSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TColumnSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, unknown>), import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, true, TColumnSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>> | undefined) => TreeArrayNode<TColumnSchema, [TColumnSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TColumnSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TColumnSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, unknown>)> | undefined) & import("./simple-tree/schemaTypes.js").InsertableTypedNode<import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, true, TColumnSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>> | undefined) => TreeArrayNode<TColumnSchema, [TColumnSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TColumnSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TColumnSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, unknown>), import("./simple-tree/index.js").TreeNodeSchemaCore<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, true, TColumnSchema, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>>, unknown> & (new (data?: InternalTreeNode | Iterable<InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema>> | undefined) => TreeArrayNode<TColumnSchema, [TColumnSchema] extends [ImplicitAllowedTypes] ? TreeNodeFromImplicitAllowedTypes<TColumnSchema> : TreeNodeFromImplicitAllowedTypes<ImplicitAllowedTypes>, [TColumnSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TColumnSchema> : never, import("./simple-tree/arrayNode.js").ReadonlyArrayNode<TreeNode | import("./simple-tree/schemaTypes.js").TreeLeafValue>> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Table.columns">, NodeKind.Array, unknown>)>;
|
|
135
134
|
}, true, {
|
|
@@ -140,7 +139,7 @@ export declare namespace System_TableSchema {
|
|
|
140
139
|
* Base row schema type.
|
|
141
140
|
* @sealed @system @internal
|
|
142
141
|
*/
|
|
143
|
-
type TableSchemaBase<TScope extends string | undefined, TCell extends ImplicitAllowedTypes, TColumn extends ColumnSchemaBase<TScope>, TRow extends RowSchemaBase<TScope, TCell>> = ReturnType<typeof
|
|
142
|
+
type TableSchemaBase<TScope extends string | undefined, TCell extends ImplicitAllowedTypes, TColumn extends ColumnSchemaBase<TScope>, TRow extends RowSchemaBase<TScope, TCell>> = ReturnType<typeof createTableSchema<TScope, TCell, TColumn, TRow>>;
|
|
144
143
|
}
|
|
145
144
|
/**
|
|
146
145
|
* Contains types and factories for creating schema to represent dynamic tabular data.
|
|
@@ -173,7 +172,7 @@ export declare namespace System_TableSchema {
|
|
|
173
172
|
* value: schemaFactory.string,
|
|
174
173
|
* }) {}
|
|
175
174
|
*
|
|
176
|
-
* class Table extends TableSchema.
|
|
175
|
+
* class Table extends TableSchema.table({
|
|
177
176
|
* schemaFactory,
|
|
178
177
|
* cell: Cell,
|
|
179
178
|
* }) {}
|
|
@@ -198,17 +197,17 @@ export declare namespace System_TableSchema {
|
|
|
198
197
|
* dataType: schemaFactory.optional(schemaFactory.string),
|
|
199
198
|
* }) {}
|
|
200
199
|
*
|
|
201
|
-
* class Column extends TableSchema.
|
|
200
|
+
* class Column extends TableSchema.column({
|
|
202
201
|
* schemaFactory,
|
|
203
202
|
* props: ColumnProps,
|
|
204
203
|
* }) {}
|
|
205
204
|
*
|
|
206
|
-
* class Row extends TableSchema.
|
|
205
|
+
* class Row extends TableSchema.row({
|
|
207
206
|
* schemaFactory,
|
|
208
207
|
* cell: Cell,
|
|
209
208
|
* }) {}
|
|
210
209
|
*
|
|
211
|
-
* class Table extends TableSchema.
|
|
210
|
+
* class Table extends TableSchema.table({
|
|
212
211
|
* schemaFactory,
|
|
213
212
|
* cell: Cell,
|
|
214
213
|
* column: Column,
|
|
@@ -234,7 +233,7 @@ export declare namespace System_TableSchema {
|
|
|
234
233
|
export declare namespace TableSchema {
|
|
235
234
|
/**
|
|
236
235
|
* A column in a table.
|
|
237
|
-
* @remarks Implemented by the schema class returned from {@link TableSchema.(
|
|
236
|
+
* @remarks Implemented by the schema class returned from {@link TableSchema.(column:2)}.
|
|
238
237
|
* @sealed @internal
|
|
239
238
|
*/
|
|
240
239
|
interface Column<TProps extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> {
|
|
@@ -247,7 +246,7 @@ export declare namespace TableSchema {
|
|
|
247
246
|
* The column's properties.
|
|
248
247
|
* @remarks This is a user-defined schema that can be used to store additional information about the column.
|
|
249
248
|
* @privateRemarks
|
|
250
|
-
* Note: these docs are duplicated on the inline type definitions in {@link
|
|
249
|
+
* Note: these docs are duplicated on the inline type definitions in {@link System_TableSchema.createColumnSchema}.
|
|
251
250
|
* If you update the docs here, please also update the inline type definitions.
|
|
252
251
|
*/
|
|
253
252
|
get props(): TreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>;
|
|
@@ -257,12 +256,12 @@ export declare namespace TableSchema {
|
|
|
257
256
|
* Factory for creating new table column schema.
|
|
258
257
|
* @internal
|
|
259
258
|
*/
|
|
260
|
-
function
|
|
259
|
+
function column<const TScope extends string | undefined>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryAlpha<TScope>>): System_TableSchema.ColumnSchemaBase<TScope, System_TableSchema.DefaultPropsType>;
|
|
261
260
|
/**
|
|
262
261
|
* Factory for creating new table column schema.
|
|
263
262
|
* @internal
|
|
264
263
|
*/
|
|
265
|
-
function
|
|
264
|
+
function column<const TScope extends string | undefined, const TProps extends ImplicitAnnotatedFieldSchema>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryAlpha<TScope>> & {
|
|
266
265
|
/**
|
|
267
266
|
* Optional column properties.
|
|
268
267
|
*/
|
|
@@ -316,7 +315,7 @@ export declare namespace TableSchema {
|
|
|
316
315
|
* The row's properties.
|
|
317
316
|
* @remarks This is a user-defined schema that can be used to store additional information about the row.
|
|
318
317
|
* @privateRemarks
|
|
319
|
-
* Note: these docs are duplicated on the inline type definitions in {@link
|
|
318
|
+
* Note: these docs are duplicated on the inline type definitions in {@link System_TableSchema.createRowSchema}.
|
|
320
319
|
* If you update the docs here, please also update the inline type definitions.
|
|
321
320
|
*/
|
|
322
321
|
get props(): TreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>;
|
|
@@ -326,12 +325,12 @@ export declare namespace TableSchema {
|
|
|
326
325
|
* Factory for creating new table column schema.
|
|
327
326
|
* @internal
|
|
328
327
|
*/
|
|
329
|
-
function
|
|
328
|
+
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryAlpha<TScope>, TCell>): System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>;
|
|
330
329
|
/**
|
|
331
|
-
* Factory for creating new table
|
|
330
|
+
* Factory for creating new table row schema.
|
|
332
331
|
* @internal
|
|
333
332
|
*/
|
|
334
|
-
function
|
|
333
|
+
function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitAnnotatedFieldSchema>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
|
|
335
334
|
/**
|
|
336
335
|
* Optional row properties.
|
|
337
336
|
*/
|
|
@@ -589,19 +588,19 @@ export declare namespace TableSchema {
|
|
|
589
588
|
* Factory for creating new table schema without specifying row or column schema.
|
|
590
589
|
* @internal
|
|
591
590
|
*/
|
|
592
|
-
function
|
|
591
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryAlpha<TScope>, TCell>): System_TableSchema.TableSchemaBase<TScope, TCell, System_TableSchema.ColumnSchemaBase<TScope, System_TableSchema.DefaultPropsType>, System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>>;
|
|
593
592
|
/**
|
|
594
593
|
* Factory for creating new table schema without specifying row schema.
|
|
595
594
|
* @internal
|
|
596
595
|
*/
|
|
597
|
-
function
|
|
596
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope>>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
|
|
598
597
|
readonly column: TColumn;
|
|
599
598
|
}): System_TableSchema.TableSchemaBase<TScope, TCell, TColumn, System_TableSchema.RowSchemaBase<TScope, TCell, System_TableSchema.DefaultPropsType>>;
|
|
600
599
|
/**
|
|
601
600
|
* Factory for creating new table schema.
|
|
602
601
|
* @internal
|
|
603
602
|
*/
|
|
604
|
-
function
|
|
603
|
+
function table<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TColumn extends System_TableSchema.ColumnSchemaBase<TScope>, const TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>(params: System_TableSchema.TableFactoryOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
|
|
605
604
|
readonly column: TColumn;
|
|
606
605
|
readonly row: TRow;
|
|
607
606
|
}): 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,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,MAAM,wBAAwB,CAAC;AAehC;;;;;;;;;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,aAA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C,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG;QACvF,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;CA2BpE"}
|
package/dist/tableSchema.js
CHANGED
|
@@ -32,11 +32,11 @@ const tableSchemaFactorySubScope = "table";
|
|
|
32
32
|
var System_TableSchema;
|
|
33
33
|
(function (System_TableSchema) {
|
|
34
34
|
/**
|
|
35
|
-
* Factory for creating
|
|
35
|
+
* Factory for creating column schema.
|
|
36
36
|
* @system @internal
|
|
37
37
|
*/
|
|
38
38
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
39
|
-
function
|
|
39
|
+
function createColumnSchema(inputSchemaFactory, propsSchema) {
|
|
40
40
|
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
41
41
|
// Note: `columnFields` is broken into two parts to work around a TypeScript bug
|
|
42
42
|
// that results in broken `.d.ts` output.
|
|
@@ -78,14 +78,13 @@ var System_TableSchema;
|
|
|
78
78
|
const ColumnSchemaType = Column;
|
|
79
79
|
return ColumnSchemaType;
|
|
80
80
|
}
|
|
81
|
-
System_TableSchema.
|
|
81
|
+
System_TableSchema.createColumnSchema = createColumnSchema;
|
|
82
82
|
/**
|
|
83
|
-
* Factory for creating
|
|
84
|
-
*
|
|
83
|
+
* Factory for creating row schema.
|
|
85
84
|
* @sealed @internal
|
|
86
85
|
*/
|
|
87
86
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
88
|
-
function
|
|
87
|
+
function createRowSchema(inputSchemaFactory, cellSchema, propsSchema) {
|
|
89
88
|
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
90
89
|
// Note: `rowFields` is broken into two parts to work around a TypeScript bug
|
|
91
90
|
// that results in broken `.d.ts` output.
|
|
@@ -148,13 +147,13 @@ var System_TableSchema;
|
|
|
148
147
|
const RowSchemaType = Row;
|
|
149
148
|
return RowSchemaType;
|
|
150
149
|
}
|
|
151
|
-
System_TableSchema.
|
|
150
|
+
System_TableSchema.createRowSchema = createRowSchema;
|
|
152
151
|
/**
|
|
153
|
-
* Factory for creating
|
|
152
|
+
* Factory for creating table schema.
|
|
154
153
|
* @system @internal
|
|
155
154
|
*/
|
|
156
155
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
157
|
-
function
|
|
156
|
+
function createTableSchema(inputSchemaFactory, _cellSchema, columnSchema, rowSchema) {
|
|
158
157
|
const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
|
|
159
158
|
/**
|
|
160
159
|
* {@link Table} fields.
|
|
@@ -434,7 +433,7 @@ var System_TableSchema;
|
|
|
434
433
|
// Return the table schema
|
|
435
434
|
return TableSchemaType;
|
|
436
435
|
}
|
|
437
|
-
System_TableSchema.
|
|
436
|
+
System_TableSchema.createTableSchema = createTableSchema;
|
|
438
437
|
// #endregion
|
|
439
438
|
})(System_TableSchema || (exports.System_TableSchema = System_TableSchema = {}));
|
|
440
439
|
/**
|
|
@@ -468,7 +467,7 @@ var System_TableSchema;
|
|
|
468
467
|
* value: schemaFactory.string,
|
|
469
468
|
* }) {}
|
|
470
469
|
*
|
|
471
|
-
* class Table extends TableSchema.
|
|
470
|
+
* class Table extends TableSchema.table({
|
|
472
471
|
* schemaFactory,
|
|
473
472
|
* cell: Cell,
|
|
474
473
|
* }) {}
|
|
@@ -493,17 +492,17 @@ var System_TableSchema;
|
|
|
493
492
|
* dataType: schemaFactory.optional(schemaFactory.string),
|
|
494
493
|
* }) {}
|
|
495
494
|
*
|
|
496
|
-
* class Column extends TableSchema.
|
|
495
|
+
* class Column extends TableSchema.column({
|
|
497
496
|
* schemaFactory,
|
|
498
497
|
* props: ColumnProps,
|
|
499
498
|
* }) {}
|
|
500
499
|
*
|
|
501
|
-
* class Row extends TableSchema.
|
|
500
|
+
* class Row extends TableSchema.row({
|
|
502
501
|
* schemaFactory,
|
|
503
502
|
* cell: Cell,
|
|
504
503
|
* }) {}
|
|
505
504
|
*
|
|
506
|
-
* class Table extends TableSchema.
|
|
505
|
+
* class Table extends TableSchema.table({
|
|
507
506
|
* schemaFactory,
|
|
508
507
|
* cell: Cell,
|
|
509
508
|
* column: Column,
|
|
@@ -532,29 +531,29 @@ var TableSchema;
|
|
|
532
531
|
/**
|
|
533
532
|
* Overload implementation
|
|
534
533
|
*/
|
|
535
|
-
function
|
|
536
|
-
return System_TableSchema.
|
|
534
|
+
function column({ schemaFactory, props = index_js_2.SchemaFactory.optional(index_js_2.SchemaFactory.null), }) {
|
|
535
|
+
return System_TableSchema.createColumnSchema(schemaFactory, props);
|
|
537
536
|
}
|
|
538
|
-
TableSchema.
|
|
537
|
+
TableSchema.column = column;
|
|
539
538
|
/**
|
|
540
539
|
* Overload implementation
|
|
541
540
|
*/
|
|
542
|
-
function
|
|
543
|
-
return System_TableSchema.
|
|
541
|
+
function row({ schemaFactory, cell, props = index_js_2.SchemaFactory.optional(index_js_2.SchemaFactory.null), }) {
|
|
542
|
+
return System_TableSchema.createRowSchema(schemaFactory, cell, props);
|
|
544
543
|
}
|
|
545
|
-
TableSchema.
|
|
544
|
+
TableSchema.row = row;
|
|
546
545
|
/**
|
|
547
546
|
* Overload implementation
|
|
548
547
|
*/
|
|
549
|
-
function
|
|
548
|
+
function table({ schemaFactory, cell: cellSchema, column: columnSchema = column({
|
|
550
549
|
schemaFactory,
|
|
551
|
-
}), row =
|
|
550
|
+
}), row: rowSchema = row({
|
|
552
551
|
schemaFactory,
|
|
553
|
-
cell,
|
|
552
|
+
cell: cellSchema,
|
|
554
553
|
}), }) {
|
|
555
|
-
return System_TableSchema.
|
|
554
|
+
return System_TableSchema.createTableSchema(schemaFactory, cellSchema, columnSchema, rowSchema);
|
|
556
555
|
}
|
|
557
|
-
TableSchema.
|
|
556
|
+
TableSchema.table = table;
|
|
558
557
|
// #endregion
|
|
559
558
|
})(TableSchema || (exports.TableSchema = TableSchema = {}));
|
|
560
559
|
//# sourceMappingURL=tableSchema.js.map
|