Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
442 changes: 221 additions & 221 deletions vuu-ui/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vuu-ui/packages/grid-layout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heswell/grid-layout",
"version": "0.13.19",
"version": "0.13.20",
"description": "VUU Layout Components",
"main": "src/index.ts",
"author": "heswell",
Expand All @@ -12,7 +12,7 @@
},
"types": "src/index.ts",
"dependencies": {
"@vuu-ui/vuu-utils": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.20",
"@salt-ds/core": "1.43.0",
"@salt-ds/lab": "1.0.0-alpha.64",
"@salt-ds/styles": "0.2.1",
Expand Down
6 changes: 3 additions & 3 deletions vuu-ui/packages/vuu-codemirror/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-codemirror",
"version": "0.13.19",
"version": "0.13.20",
"author": "heswell",
"main": "src/index.ts",
"license": "Apache-2.0",
Expand All @@ -11,15 +11,15 @@
"lezer-generate:column": "lezer-generator --output ./src/column-expression-input/column-language-parser/generated/column-parser.js ./src/column-expression-input/column-language-parser/grammar/column.grammar"
},
"devDependencies": {
"@vuu-ui/vuu-table-types": "0.13.19"
"@vuu-ui/vuu-table-types": "0.13.20"
},
"dependencies": {
"@codemirror/autocomplete": "^6.4.2",
"@codemirror/commands": "^6.2.1",
"@codemirror/language": "^6.6.0",
"@codemirror/state": "^6.2.0",
"@codemirror/view": "^6.9.3",
"@vuu-ui/vuu-utils": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.20",
"@lezer/common": "1.2.3",
"@lezer/highlight": "^1.1.3"
},
Expand Down
10 changes: 5 additions & 5 deletions vuu-ui/packages/vuu-context-menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-context-menu",
"version": "0.13.19",
"version": "0.13.20",
"author": "heswell",
"main": "src/index.ts",
"license": "Apache-2.0",
Expand All @@ -10,12 +10,12 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"devDependencies": {
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20"
},
"dependencies": {
"@vuu-ui/vuu-utils": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.20",
"@salt-ds/core": "1.43.0",
"@salt-ds/styles": "0.2.1",
"@salt-ds/window": "0.1.1"
Expand Down
14 changes: 7 additions & 7 deletions vuu-ui/packages/vuu-data-local/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-data-local",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -11,14 +11,14 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"devDependencies": {
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19",
"@vuu-ui/vuu-filter-types": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20",
"@vuu-ui/vuu-filter-types": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20"
},
"dependencies": {
"@vuu-ui/vuu-filter-parser": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19"
"@vuu-ui/vuu-filter-parser": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20"
},
"sideEffects": false
}
28 changes: 14 additions & 14 deletions vuu-ui/packages/vuu-data-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-data-react",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -11,21 +11,21 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"devDependencies": {
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-filter-types": "0.13.19",
"@vuu-ui/vuu-popups": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-filter-types": "0.13.20",
"@vuu-ui/vuu-popups": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20"
},
"dependencies": {
"@vuu-ui/vuu-context-menu": "0.13.19",
"@vuu-ui/vuu-data-remote": "0.13.19",
"@vuu-ui/vuu-filter-parser": "0.13.19",
"@vuu-ui/vuu-layout": "0.13.19",
"@vuu-ui/vuu-popups": "0.13.19",
"@vuu-ui/vuu-ui-controls": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19",
"@vuu-ui/vuu-table": "0.13.19",
"@vuu-ui/vuu-context-menu": "0.13.20",
"@vuu-ui/vuu-data-remote": "0.13.20",
"@vuu-ui/vuu-filter-parser": "0.13.20",
"@vuu-ui/vuu-layout": "0.13.20",
"@vuu-ui/vuu-popups": "0.13.20",
"@vuu-ui/vuu-ui-controls": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20",
"@vuu-ui/vuu-table": "0.13.20",
"@salt-ds/core": "1.43.0",
"@salt-ds/styles": "0.2.1",
"@salt-ds/window": "0.1.1"
Expand Down
14 changes: 7 additions & 7 deletions vuu-ui/packages/vuu-data-remote/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-data-remote",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -12,13 +12,13 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"devDependencies": {
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19",
"@vuu-ui/vuu-filter-types": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20",
"@vuu-ui/vuu-filter-types": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20"
},
"dependencies": {
"@vuu-ui/vuu-filter-parser": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19"
"@vuu-ui/vuu-filter-parser": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20"
}
}
12 changes: 6 additions & 6 deletions vuu-ui/packages/vuu-data-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-data-test",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -10,13 +10,13 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"dependencies": {
"@vuu-ui/vuu-data-local": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19"
"@vuu-ui/vuu-data-local": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20"
},
"devDependencies": {
"@vuu-ui/vuu-protocol-types": "0.13.19",
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19"
"@vuu-ui/vuu-protocol-types": "0.13.20",
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20"
},
"sideEffects": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class ModuleContainer {
}
throw Error(`[ModuleFactory] module ${name} not found`);
}

get moduleNames() {
return this.#modules.keys();
}
}

export default ModuleContainer.instance;
8 changes: 8 additions & 0 deletions vuu-ui/packages/vuu-data-test/src/core/module/VuuModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ export abstract class VuuModule<T extends string = string>
protected abstract services?: Record<T, RpcService[] | undefined> | undefined;
protected abstract visualLinks?: Record<T, VuuLink[] | undefined>;

getTableSchema(tableName: string) {
return this.schemas[tableName as T];
}

getTableList() {
return Object.keys(this.tables);
}

private unregisterViewport = (viewportId: string) => {
for (const [tableName, subscriptions] of this.#subscriptionMap) {
if (subscriptions[0].viewportId.toString() === viewportId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@ import type {
ServerAPI,
} from "@vuu-ui/vuu-data-types";
import type { VuuTable } from "@vuu-ui/vuu-protocol-types";
import { basketSchemas, isBasketTable } from "../basket";
import { isSimulTable, simulSchemas } from "../simul";
import { ReactNode } from "react";
import { DataProvider } from "@vuu-ui/vuu-utils";
import { ReactNode } from "react";
import moduleContainer from "../core/module/ModuleContainer";
import tableContainer from "../core/table/TableContainer";

const serverAPI: Pick<
ServerAPI,
"getTableList" | "getTableSchema" | "rpcCall"
> = {
getTableList: async () => {
return {
tables: Object.values(simulSchemas)
.concat(Object.values(basketSchemas))
.map((schema) => schema.table),
};
const tables = moduleContainer.moduleNames.reduce<Array<VuuTable>>(
(tableList, moduleName) => {
const moduleTables = moduleContainer.get(moduleName).getTableList();
moduleTables.forEach((tableName) => {
const table = tableContainer.getTable(tableName);
tableList.push(table.schema.table);
});
return tableList;
},
[],
);
return { tables };
},
getTableSchema: async (vuuTable: VuuTable) => {
if (isSimulTable(vuuTable)) {
return simulSchemas[vuuTable.table];
} else if (isBasketTable(vuuTable)) {
return basketSchemas[vuuTable.table];
} else {
throw Error(
`unsupported module/table ${vuuTable.module}/${vuuTable.table}`,
);
}
getTableSchema: async ({ module, table }: VuuTable) => {
return moduleContainer.get(module).getTableSchema(table);
},
rpcCall: async () => {
throw Error("LocalDataSource provider no longer supports rpc calls");
throw Error(
"RpcCall no longer supported on LocalDataSOurceProvider ServerAPI",
);
},
};

Expand Down
6 changes: 3 additions & 3 deletions vuu-ui/packages/vuu-data-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-data-types",
"version": "0.13.19",
"version": "0.13.20",
"main": "",
"scripts": {
"build": "node ../../scripts/run-build-typelib.mjs"
Expand All @@ -9,8 +9,8 @@
"author": "heswell",
"license": "Apache-2.0",
"devDependencies": {
"@vuu-ui/vuu-filter-types": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19"
"@vuu-ui/vuu-filter-types": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20"
},
"dependencies": {},
"peerDependencies": {}
Expand Down
22 changes: 11 additions & 11 deletions vuu-ui/packages/vuu-datatable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-datatable",
"version": "0.13.19",
"version": "0.13.20",
"author": "heswell",
"main": "src/index.ts",
"license": "Apache-2.0",
Expand All @@ -13,16 +13,16 @@
"@salt-ds/core": "1.43.0",
"@salt-ds/styles": "0.2.1",
"@salt-ds/window": "0.1.1",
"@vuu-ui/vuu-data-local": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19",
"@vuu-ui/vuu-filters": "0.13.19",
"@vuu-ui/vuu-layout": "0.13.19",
"@vuu-ui/vuu-popups": "0.13.19",
"@vuu-ui/vuu-shell": "0.13.19",
"@vuu-ui/vuu-table": "0.13.19",
"@vuu-ui/vuu-table-extras": "0.13.19",
"@vuu-ui/vuu-ui-controls": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19"
"@vuu-ui/vuu-data-local": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20",
"@vuu-ui/vuu-filters": "0.13.20",
"@vuu-ui/vuu-layout": "0.13.20",
"@vuu-ui/vuu-popups": "0.13.20",
"@vuu-ui/vuu-shell": "0.13.20",
"@vuu-ui/vuu-table": "0.13.20",
"@vuu-ui/vuu-table-extras": "0.13.20",
"@vuu-ui/vuu-ui-controls": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20"
},
"peerDependencies": {
"clsx": "^2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions vuu-ui/packages/vuu-filter-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-filter-parser",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -14,8 +14,8 @@
"dependencies": {
"@lezer/common": "^1.0.2",
"@lezer/lr": "1.4.2",
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-filter-types": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-filter-types": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20"
}
}
2 changes: 1 addition & 1 deletion vuu-ui/packages/vuu-filter-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-filter-types",
"version": "0.13.19",
"version": "0.13.20",
"main": "",
"scripts": {
"build": "node ../../scripts/run-build-typelib.mjs"
Expand Down
22 changes: 11 additions & 11 deletions vuu-ui/packages/vuu-filters/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuu-ui/vuu-filters",
"version": "0.13.19",
"version": "0.13.20",
"main": "src/index.ts",
"author": "heswell",
"license": "Apache-2.0",
Expand All @@ -11,18 +11,18 @@
"type-defs": "node ../../scripts/build-type-defs.mjs"
},
"devDependencies": {
"@vuu-ui/vuu-data-types": "0.13.19",
"@vuu-ui/vuu-protocol-types": "0.13.19",
"@vuu-ui/vuu-table-types": "0.13.19",
"@vuu-ui/vuu-filter-types": "0.13.19"
"@vuu-ui/vuu-data-types": "0.13.20",
"@vuu-ui/vuu-protocol-types": "0.13.20",
"@vuu-ui/vuu-table-types": "0.13.20",
"@vuu-ui/vuu-filter-types": "0.13.20"
},
"dependencies": {
"@vuu-ui/vuu-data-react": "0.13.19",
"@vuu-ui/vuu-filter-parser": "0.13.19",
"@vuu-ui/vuu-popups": "0.13.19",
"@vuu-ui/vuu-ui-controls": "0.13.19",
"@vuu-ui/vuu-table": "0.13.19",
"@vuu-ui/vuu-utils": "0.13.19",
"@vuu-ui/vuu-data-react": "0.13.20",
"@vuu-ui/vuu-filter-parser": "0.13.20",
"@vuu-ui/vuu-popups": "0.13.20",
"@vuu-ui/vuu-ui-controls": "0.13.20",
"@vuu-ui/vuu-table": "0.13.20",
"@vuu-ui/vuu-utils": "0.13.20",
"@salt-ds/core": "1.43.0",
"@salt-ds/styles": "0.2.1",
"@salt-ds/window": "0.1.1"
Expand Down
Loading