@finos/legend-query-builder 4.15.3 → 4.15.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +3 -1
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +4 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.js +4 -6
- package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +38 -33
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +12 -5
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/index.css +16 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +6 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +3 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +12 -21
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +39 -57
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +17 -6
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +142 -59
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
- package/package.json +8 -8
- package/src/__lib__/QueryBuilderTesting.ts +5 -0
- package/src/components/QueryBuilderSideBar.tsx +4 -1
- package/src/components/data-cube/QueryBuilderDataCube.tsx +5 -17
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +63 -70
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +23 -11
- package/src/index.ts +1 -1
- package/src/stores/QueryBuilderState.ts +12 -0
- package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +66 -86
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +227 -94
- package/tsconfig.json +0 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +0 -36
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +0 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +0 -65
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +0 -1
- package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +0 -98
@@ -1,98 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
import {
|
18
|
-
APPLICATION_EVENT,
|
19
|
-
shouldDisplayVirtualAssistantDocumentationEntry,
|
20
|
-
type GenericLegendApplicationStore,
|
21
|
-
} from '@finos/legend-application';
|
22
|
-
import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
|
23
|
-
import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
|
24
|
-
|
25
|
-
export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
|
26
|
-
private readonly application: GenericLegendApplicationStore;
|
27
|
-
|
28
|
-
constructor(application: GenericLegendApplicationStore) {
|
29
|
-
super();
|
30
|
-
|
31
|
-
this.application = application;
|
32
|
-
}
|
33
|
-
|
34
|
-
get documentationUrl(): string | undefined {
|
35
|
-
return this.application.documentationService.url;
|
36
|
-
}
|
37
|
-
|
38
|
-
getDocumentationEntry(key: string) {
|
39
|
-
return this.application.documentationService.getDocEntry(key);
|
40
|
-
}
|
41
|
-
|
42
|
-
openDocumentationEntry(entry: DocumentationEntry) {
|
43
|
-
this.currentDocumentationEntry = entry;
|
44
|
-
}
|
45
|
-
|
46
|
-
shouldDisplayDocumentationEntry(entry: DocumentationEntry) {
|
47
|
-
return shouldDisplayVirtualAssistantDocumentationEntry(entry);
|
48
|
-
}
|
49
|
-
|
50
|
-
openLink(url: string) {
|
51
|
-
this.application.navigationService.navigator.visitAddress(url);
|
52
|
-
}
|
53
|
-
|
54
|
-
setWindowTitle(title: string) {
|
55
|
-
this.application.layoutService.setWindowTitle(title);
|
56
|
-
}
|
57
|
-
|
58
|
-
logDebug(message: string, ...data: unknown[]) {
|
59
|
-
this.application.logService.debug(
|
60
|
-
LogEvent.create(APPLICATION_EVENT.DEBUG),
|
61
|
-
message,
|
62
|
-
...data,
|
63
|
-
);
|
64
|
-
}
|
65
|
-
|
66
|
-
debugProcess(processName: string, ...data: unknown[]) {
|
67
|
-
this.application.logService.debug(
|
68
|
-
LogEvent.create(APPLICATION_EVENT.DEBUG),
|
69
|
-
`\n------ START DEBUG PROCESS: ${processName} ------\n`,
|
70
|
-
...data,
|
71
|
-
`\n------- END DEBUG PROCESS: ${processName} -------\n`,
|
72
|
-
);
|
73
|
-
}
|
74
|
-
|
75
|
-
logInfo(event: LogEvent, ...data: unknown[]) {
|
76
|
-
this.application.logService.info(event, ...data);
|
77
|
-
}
|
78
|
-
|
79
|
-
logWarning(event: LogEvent, ...data: unknown[]) {
|
80
|
-
this.application.logService.warn(event, ...data);
|
81
|
-
}
|
82
|
-
|
83
|
-
logError(event: LogEvent, ...data: unknown[]) {
|
84
|
-
this.application.logService.error(event, ...data);
|
85
|
-
}
|
86
|
-
|
87
|
-
logUnhandledError(error: Error) {
|
88
|
-
this.application.logUnhandledError(error);
|
89
|
-
}
|
90
|
-
|
91
|
-
logIllegalStateError(message: string, error?: Error) {
|
92
|
-
this.logError(
|
93
|
-
LogEvent.create(APPLICATION_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED),
|
94
|
-
message,
|
95
|
-
error,
|
96
|
-
);
|
97
|
-
}
|
98
|
-
}
|