Skip to content

Commit a7ff429

Browse files
authored
Localdatasource improvements (#1657)
* improve module discovery in local datasource provider * bump vuu lubrary versions to 0.13.20
1 parent fbb0504 commit a7ff429

34 files changed

Lines changed: 473 additions & 461 deletions

File tree

vuu-ui/package-lock.json

Lines changed: 221 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuu-ui/packages/grid-layout/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@heswell/grid-layout",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"description": "VUU Layout Components",
55
"main": "src/index.ts",
66
"author": "heswell",
@@ -12,7 +12,7 @@
1212
},
1313
"types": "src/index.ts",
1414
"dependencies": {
15-
"@vuu-ui/vuu-utils": "0.13.19",
15+
"@vuu-ui/vuu-utils": "0.13.20",
1616
"@salt-ds/core": "1.43.0",
1717
"@salt-ds/lab": "1.0.0-alpha.64",
1818
"@salt-ds/styles": "0.2.1",

vuu-ui/packages/vuu-codemirror/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-codemirror",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"author": "heswell",
55
"main": "src/index.ts",
66
"license": "Apache-2.0",
@@ -11,15 +11,15 @@
1111
"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"
1212
},
1313
"devDependencies": {
14-
"@vuu-ui/vuu-table-types": "0.13.19"
14+
"@vuu-ui/vuu-table-types": "0.13.20"
1515
},
1616
"dependencies": {
1717
"@codemirror/autocomplete": "^6.4.2",
1818
"@codemirror/commands": "^6.2.1",
1919
"@codemirror/language": "^6.6.0",
2020
"@codemirror/state": "^6.2.0",
2121
"@codemirror/view": "^6.9.3",
22-
"@vuu-ui/vuu-utils": "0.13.19",
22+
"@vuu-ui/vuu-utils": "0.13.20",
2323
"@lezer/common": "1.2.3",
2424
"@lezer/highlight": "^1.1.3"
2525
},

vuu-ui/packages/vuu-context-menu/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-context-menu",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"author": "heswell",
55
"main": "src/index.ts",
66
"license": "Apache-2.0",
@@ -10,12 +10,12 @@
1010
"type-defs": "node ../../scripts/build-type-defs.mjs"
1111
},
1212
"devDependencies": {
13-
"@vuu-ui/vuu-data-types": "0.13.19",
14-
"@vuu-ui/vuu-protocol-types": "0.13.19",
15-
"@vuu-ui/vuu-table-types": "0.13.19"
13+
"@vuu-ui/vuu-data-types": "0.13.20",
14+
"@vuu-ui/vuu-protocol-types": "0.13.20",
15+
"@vuu-ui/vuu-table-types": "0.13.20"
1616
},
1717
"dependencies": {
18-
"@vuu-ui/vuu-utils": "0.13.19",
18+
"@vuu-ui/vuu-utils": "0.13.20",
1919
"@salt-ds/core": "1.43.0",
2020
"@salt-ds/styles": "0.2.1",
2121
"@salt-ds/window": "0.1.1"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-data-local",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"main": "src/index.ts",
55
"author": "heswell",
66
"license": "Apache-2.0",
@@ -11,14 +11,14 @@
1111
"type-defs": "node ../../scripts/build-type-defs.mjs"
1212
},
1313
"devDependencies": {
14-
"@vuu-ui/vuu-data-types": "0.13.19",
15-
"@vuu-ui/vuu-table-types": "0.13.19",
16-
"@vuu-ui/vuu-filter-types": "0.13.19",
17-
"@vuu-ui/vuu-protocol-types": "0.13.19"
14+
"@vuu-ui/vuu-data-types": "0.13.20",
15+
"@vuu-ui/vuu-table-types": "0.13.20",
16+
"@vuu-ui/vuu-filter-types": "0.13.20",
17+
"@vuu-ui/vuu-protocol-types": "0.13.20"
1818
},
1919
"dependencies": {
20-
"@vuu-ui/vuu-filter-parser": "0.13.19",
21-
"@vuu-ui/vuu-utils": "0.13.19"
20+
"@vuu-ui/vuu-filter-parser": "0.13.20",
21+
"@vuu-ui/vuu-utils": "0.13.20"
2222
},
2323
"sideEffects": false
2424
}

vuu-ui/packages/vuu-data-react/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-data-react",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"main": "src/index.ts",
55
"author": "heswell",
66
"license": "Apache-2.0",
@@ -11,21 +11,21 @@
1111
"type-defs": "node ../../scripts/build-type-defs.mjs"
1212
},
1313
"devDependencies": {
14-
"@vuu-ui/vuu-data-types": "0.13.19",
15-
"@vuu-ui/vuu-filter-types": "0.13.19",
16-
"@vuu-ui/vuu-popups": "0.13.19",
17-
"@vuu-ui/vuu-protocol-types": "0.13.19",
18-
"@vuu-ui/vuu-table-types": "0.13.19"
14+
"@vuu-ui/vuu-data-types": "0.13.20",
15+
"@vuu-ui/vuu-filter-types": "0.13.20",
16+
"@vuu-ui/vuu-popups": "0.13.20",
17+
"@vuu-ui/vuu-protocol-types": "0.13.20",
18+
"@vuu-ui/vuu-table-types": "0.13.20"
1919
},
2020
"dependencies": {
21-
"@vuu-ui/vuu-context-menu": "0.13.19",
22-
"@vuu-ui/vuu-data-remote": "0.13.19",
23-
"@vuu-ui/vuu-filter-parser": "0.13.19",
24-
"@vuu-ui/vuu-layout": "0.13.19",
25-
"@vuu-ui/vuu-popups": "0.13.19",
26-
"@vuu-ui/vuu-ui-controls": "0.13.19",
27-
"@vuu-ui/vuu-utils": "0.13.19",
28-
"@vuu-ui/vuu-table": "0.13.19",
21+
"@vuu-ui/vuu-context-menu": "0.13.20",
22+
"@vuu-ui/vuu-data-remote": "0.13.20",
23+
"@vuu-ui/vuu-filter-parser": "0.13.20",
24+
"@vuu-ui/vuu-layout": "0.13.20",
25+
"@vuu-ui/vuu-popups": "0.13.20",
26+
"@vuu-ui/vuu-ui-controls": "0.13.20",
27+
"@vuu-ui/vuu-utils": "0.13.20",
28+
"@vuu-ui/vuu-table": "0.13.20",
2929
"@salt-ds/core": "1.43.0",
3030
"@salt-ds/styles": "0.2.1",
3131
"@salt-ds/window": "0.1.1"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-data-remote",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"main": "src/index.ts",
55
"author": "heswell",
66
"license": "Apache-2.0",
@@ -12,13 +12,13 @@
1212
"type-defs": "node ../../scripts/build-type-defs.mjs"
1313
},
1414
"devDependencies": {
15-
"@vuu-ui/vuu-data-types": "0.13.19",
16-
"@vuu-ui/vuu-table-types": "0.13.19",
17-
"@vuu-ui/vuu-filter-types": "0.13.19",
18-
"@vuu-ui/vuu-protocol-types": "0.13.19"
15+
"@vuu-ui/vuu-data-types": "0.13.20",
16+
"@vuu-ui/vuu-table-types": "0.13.20",
17+
"@vuu-ui/vuu-filter-types": "0.13.20",
18+
"@vuu-ui/vuu-protocol-types": "0.13.20"
1919
},
2020
"dependencies": {
21-
"@vuu-ui/vuu-filter-parser": "0.13.19",
22-
"@vuu-ui/vuu-utils": "0.13.19"
21+
"@vuu-ui/vuu-filter-parser": "0.13.20",
22+
"@vuu-ui/vuu-utils": "0.13.20"
2323
}
2424
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuu-ui/vuu-data-test",
3-
"version": "0.13.19",
3+
"version": "0.13.20",
44
"main": "src/index.ts",
55
"author": "heswell",
66
"license": "Apache-2.0",
@@ -10,13 +10,13 @@
1010
"type-defs": "node ../../scripts/build-type-defs.mjs"
1111
},
1212
"dependencies": {
13-
"@vuu-ui/vuu-data-local": "0.13.19",
14-
"@vuu-ui/vuu-utils": "0.13.19"
13+
"@vuu-ui/vuu-data-local": "0.13.20",
14+
"@vuu-ui/vuu-utils": "0.13.20"
1515
},
1616
"devDependencies": {
17-
"@vuu-ui/vuu-protocol-types": "0.13.19",
18-
"@vuu-ui/vuu-data-types": "0.13.19",
19-
"@vuu-ui/vuu-table-types": "0.13.19"
17+
"@vuu-ui/vuu-protocol-types": "0.13.20",
18+
"@vuu-ui/vuu-data-types": "0.13.20",
19+
"@vuu-ui/vuu-table-types": "0.13.20"
2020
},
2121
"sideEffects": false
2222
}

vuu-ui/packages/vuu-data-test/src/core/module/ModuleContainer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class ModuleContainer {
2828
}
2929
throw Error(`[ModuleFactory] module ${name} not found`);
3030
}
31+
32+
get moduleNames() {
33+
return this.#modules.keys();
34+
}
3135
}
3236

3337
export default ModuleContainer.instance;

vuu-ui/packages/vuu-data-test/src/core/module/VuuModule.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ export abstract class VuuModule<T extends string = string>
8484
protected abstract services?: Record<T, RpcService[] | undefined> | undefined;
8585
protected abstract visualLinks?: Record<T, VuuLink[] | undefined>;
8686

87+
getTableSchema(tableName: string) {
88+
return this.schemas[tableName as T];
89+
}
90+
91+
getTableList() {
92+
return Object.keys(this.tables);
93+
}
94+
8795
private unregisterViewport = (viewportId: string) => {
8896
for (const [tableName, subscriptions] of this.#subscriptionMap) {
8997
if (subscriptions[0].viewportId.toString() === viewportId) {

0 commit comments

Comments
 (0)