@vuu-ui/vuu-data-test 0.8.22-debug → 0.8.23-debug

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-data-test",
3
- "version": "0.8.22-debug",
3
+ "version": "0.8.23-debug",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
- "@vuu-ui/vuu-data-local": "0.8.22-debug",
7
+ "@vuu-ui/vuu-data-local": "0.8.23-debug",
8
8
  "@thomaschaplin/isin-generator": "1.0.3"
9
9
  },
10
10
  "devDependencies": {
11
- "@vuu-ui/vuu-table-types": "0.8.22-debug"
11
+ "@vuu-ui/vuu-table-types": "0.8.23-debug"
12
12
  },
13
13
  "files": [
14
14
  "cjs",
package/types/index.d.ts CHANGED
@@ -6,3 +6,5 @@ export * from "./vuu-modules";
6
6
  export { type BasketsTableName } from "./basket/basket-schemas";
7
7
  export { createBasketTradingRow } from "./basket/basket-module";
8
8
  export { type SimulTableName } from "./simul/simul-schemas";
9
+ export { type TestTableName } from "./test/test-schemas";
10
+ export * from "./Table";
@@ -1,7 +1,8 @@
1
1
  import { TableSchema } from "@vuu-ui/vuu-data-types";
2
2
  import { type BasketsTableName } from "./basket/basket-schemas";
3
3
  import { type SimulTableName } from "./simul/simul-schemas";
4
- export type VuuTableName = BasketsTableName | SimulTableName;
4
+ import { type TestTableName } from "./test/test-schemas";
5
+ export type VuuTableName = BasketsTableName | SimulTableName | TestTableName;
5
6
  export declare const schemas: Record<VuuTableName, TableSchema>;
6
7
  export declare const getAllSchemas: () => Record<VuuTableName, TableSchema>;
7
8
  export declare const getSchema: (tableName: VuuTableName) => Readonly<TableSchema>;
@@ -1,12 +1,3 @@
1
- import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
1
  import { TableSchema } from "@vuu-ui/vuu-data-types";
3
2
  export type SimulTableName = "instruments" | "instrumentsExtended" | "instrumentPrices" | "orders" | "childOrders" | "parentOrders" | "prices";
4
3
  export declare const schemas: Readonly<Record<SimulTableName, Readonly<TableSchema>>>;
5
- export type ColumnState = {
6
- [key: string]: TableSchema;
7
- };
8
- export interface ColumnActionUpdate {
9
- type: "updateColumn";
10
- column: ColumnDescriptor;
11
- }
12
- export type ColumnAction = ColumnActionUpdate;
@@ -0,0 +1,4 @@
1
+ import { TestTableName } from "./test-schemas";
2
+ import { VuuModule } from "../vuu-modules";
3
+ declare const testModule: VuuModule<TestTableName>;
4
+ export default testModule;
@@ -0,0 +1,3 @@
1
+ import { TableSchema } from "@vuu-ui/vuu-data-types";
2
+ export type TestTableName = "TwoHundredColumns";
3
+ export declare const schemas: Readonly<Record<TestTableName, Readonly<TableSchema>>>;
@@ -1,6 +1,6 @@
1
1
  import { DataSource } from "@vuu-ui/vuu-data-types";
2
2
  import { SuggestionFetcher } from "@vuu-ui/vuu-data-react";
3
- export type VuuModuleName = "BASKET" | "SIMUL";
3
+ export type VuuModuleName = "BASKET" | "SIMUL" | "TEST";
4
4
  export interface VuuModule<T extends string = string> {
5
5
  createDataSource: (tableName: T) => DataSource;
6
6
  typeaheadHook: () => SuggestionFetcher;
@@ -1,14 +1,17 @@
1
1
  import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
2
  import { VuuRowDataItemType, VuuTable } from "@vuu-ui/vuu-protocol-types";
3
3
  import { UpdateGenerator } from "./rowUpdates";
4
- type RowAtIndexFunc<T = unknown> = (index: number) => T | undefined;
5
- export declare const VuuColumnGenerator: (columnCount: number) => string[];
6
- export type RowGeneratorFactory<T = VuuRowDataItemType> = (columns: string[]) => RowAtIndexFunc<T[]>;
4
+ type GenerateRowFunc = (index: number) => VuuRowDataItemType[];
5
+ export type RowGeneratorFactory = (columns: string[]) => GenerateRowFunc;
7
6
  export type ColumnGeneratorFn = (columns?: number | string[], columnConfig?: {
8
7
  [key: string]: Partial<ColumnDescriptor>;
9
8
  }) => ColumnDescriptor[];
10
- export declare const DefaultRowGenerator: RowGeneratorFactory<string>;
9
+ export declare const DefaultRowGenerator: RowGeneratorFactory;
11
10
  export declare const DefaultColumnGenerator: ColumnGeneratorFn;
11
+ export declare const defaultGenerators: {
12
+ ColumnGenerator: ColumnGeneratorFn;
13
+ RowGenerator: RowGeneratorFactory;
14
+ };
12
15
  export declare const getColumnAndRowGenerator: (table?: VuuTable) => [ColumnGeneratorFn, RowGeneratorFactory] | [ColumnGeneratorFn, RowGeneratorFactory, () => UpdateGenerator];
13
16
  export declare const populateArray: (count: number, colGen: ColumnGeneratorFn, rowGen: RowGeneratorFactory, columns?: number | string[]) => VuuRowDataItemType[][];
14
17
  export {};
@@ -1,5 +0,0 @@
1
- import { ColumnMap } from "@vuu-ui/vuu-utils";
2
- import { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
3
- import { ColumnGeneratorFn, RowGeneratorFactory } from "./vuu-row-generator";
4
- import { VuuTableName } from "./schemas";
5
- export declare const getGenerators: (tableName: VuuTableName, columnMap: ColumnMap, data: VuuDataRow[]) => [RowGeneratorFactory, ColumnGeneratorFn];