@finos/legend-query-builder 3.1.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderColorTheme.d.ts +23 -0
- package/lib/__lib__/QueryBuilderColorTheme.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderColorTheme.js +24 -0
- package/lib/__lib__/QueryBuilderColorTheme.js.map +1 -0
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts +20 -20
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTelemetryHelper.js +40 -40
- package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +17 -15
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js +3 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/QueryLoader.d.ts +30 -0
- package/lib/components/QueryLoader.d.ts.map +1 -0
- package/lib/components/QueryLoader.js +164 -0
- package/lib/components/QueryLoader.js.map +1 -0
- package/lib/components/data-access/DataAccessOverview.d.ts +23 -0
- package/lib/components/data-access/DataAccessOverview.d.ts.map +1 -0
- package/lib/components/data-access/DataAccessOverview.js +146 -0
- package/lib/components/data-access/DataAccessOverview.js.map +1 -0
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.js +3 -3
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +0 -18
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +34 -36
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +7 -19
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +2 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/index.css +1 -17
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -2
- package/lib/stores/QueryBuilderState.d.ts +3 -3
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +34 -18
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +39 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js +17 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/QueryLoaderState.d.ts +67 -0
- package/lib/stores/QueryLoaderState.d.ts.map +1 -0
- package/lib/stores/QueryLoaderState.js +205 -0
- package/lib/stores/QueryLoaderState.js.map +1 -0
- package/lib/stores/data-access/DataAccessState.d.ts +56 -0
- package/lib/stores/data-access/DataAccessState.d.ts.map +1 -0
- package/lib/stores/data-access/DataAccessState.js +212 -0
- package/lib/stores/data-access/DataAccessState.js.map +1 -0
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts +4 -2
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +20 -6
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +7 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/package.json +12 -10
- package/src/__lib__/QueryBuilderColorTheme.ts +23 -0
- package/src/__lib__/QueryBuilderTelemetryHelper.ts +40 -59
- package/src/components/QueryBuilder.tsx +63 -47
- package/src/components/QueryBuilder_LegendApplicationPlugin.ts +4 -0
- package/src/components/QueryLoader.tsx +504 -0
- package/src/components/data-access/DataAccessOverview.tsx +308 -0
- package/src/components/execution-plan/ExecutionPlanViewer.tsx +1 -3
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +99 -102
- package/src/components/shared/LambdaEditor.tsx +4 -21
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +2 -1
- package/src/index.ts +7 -0
- package/src/stores/QueryBuilderState.ts +65 -19
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +46 -0
- package/src/stores/QueryLoaderState.ts +298 -0
- package/src/stores/data-access/DataAccessState.ts +322 -0
- package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +53 -6
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +39 -2
- package/tsconfig.json +6 -0
@@ -0,0 +1,56 @@
|
|
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
|
+
import type { GenericLegendApplicationStore } from '@finos/legend-application';
|
17
|
+
import { type BasicGraphManagerState, type DatasetEntitlementReport, type DatasetSpecification } from '@finos/legend-graph';
|
18
|
+
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
19
|
+
export declare class DatasetAccessInfo {
|
20
|
+
readonly uuid: string;
|
21
|
+
readonly specification: DatasetSpecification;
|
22
|
+
entitlementReport?: DatasetEntitlementReport | undefined;
|
23
|
+
constructor(specification: DatasetSpecification);
|
24
|
+
setEntitlementReport(val: DatasetEntitlementReport | undefined): void;
|
25
|
+
}
|
26
|
+
type EntitlementCheckInfo = {
|
27
|
+
total: number;
|
28
|
+
data: {
|
29
|
+
label: string;
|
30
|
+
count: number;
|
31
|
+
percentage: number;
|
32
|
+
color: string;
|
33
|
+
}[];
|
34
|
+
};
|
35
|
+
export declare class DataAccessState {
|
36
|
+
readonly applicationStore: GenericLegendApplicationStore;
|
37
|
+
readonly graphManagerState: BasicGraphManagerState;
|
38
|
+
readonly surveyDatasets: () => Promise<DatasetSpecification[]>;
|
39
|
+
readonly checkDatasetEntitlements: (datasets: DatasetSpecification[]) => Promise<DatasetEntitlementReport[]>;
|
40
|
+
readonly initialDatasets?: DatasetSpecification[] | undefined;
|
41
|
+
readonly surveyDatasetsState: ActionState;
|
42
|
+
readonly checkEntitlementsState: ActionState;
|
43
|
+
datasets: DatasetAccessInfo[];
|
44
|
+
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, options: {
|
45
|
+
initialDatasets?: DatasetSpecification[] | undefined;
|
46
|
+
surveyDatasets: () => Promise<DatasetSpecification[]>;
|
47
|
+
checkDatasetEntitlements: (datasets: DatasetSpecification[]) => Promise<DatasetEntitlementReport[]>;
|
48
|
+
});
|
49
|
+
get entitlementCheckInfo(): EntitlementCheckInfo;
|
50
|
+
fetchDatasetSpecifications(): GeneratorFn<void>;
|
51
|
+
fetchDatasetEntitlementReports(): GeneratorFn<void>;
|
52
|
+
intialize(): Promise<void>;
|
53
|
+
refresh(): Promise<void>;
|
54
|
+
}
|
55
|
+
export {};
|
56
|
+
//# sourceMappingURL=DataAccessState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataAccessState.d.ts","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAK1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EAGX,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAW9B,qBAAa,iBAAiB;IAC5B,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,aAAa,EAAG,oBAAoB,CAAC;IAE9C,iBAAiB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;gBAE7C,aAAa,EAAE,oBAAoB;IAS/C,oBAAoB,CAAC,GAAG,EAAE,wBAAwB,GAAG,SAAS,GAAG,IAAI;CAGtE;AAED,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7E,CAAC;AAEF,qBAAa,eAAe;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAEnD,QAAQ,CAAC,cAAc,EAAE,MAAM,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC/D,QAAQ,CAAC,wBAAwB,EAAE,CACjC,QAAQ,EAAE,oBAAoB,EAAE,KAC7B,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAEzC,QAAQ,CAAC,eAAe,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAC9D,QAAQ,CAAC,mBAAmB,cAAwB;IACpD,QAAQ,CAAC,sBAAsB,cAAwB;IAEvD,QAAQ,EAAE,iBAAiB,EAAE,CAAM;gBAGjC,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,sBAAsB,EACzC,OAAO,EAAE;QACP,eAAe,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;QACrD,cAAc,EAAE,MAAM,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;QACtD,wBAAwB,EAAE,CACxB,QAAQ,EAAE,oBAAoB,EAAE,KAC7B,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;KAC1C;IAmBH,IAAI,oBAAoB,IAAI,oBAAoB,CAqI/C;IAEA,0BAA0B,IAAI,WAAW,CAAC,IAAI,CAAC;IAsB/C,8BAA8B,IAAI,WAAW,CAAC,IAAI,CAAC;IAuC9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAS1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
@@ -0,0 +1,212 @@
|
|
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
|
+
import { DatasetEntitlementAccessGrantedReport, DatasetEntitlementAccessApprovedReport, DatasetEntitlementAccessRequestedReport, DatasetEntitlementAccessNotGrantedReport, DatasetEntitlementUnsupportedReport, } from '@finos/legend-graph';
|
17
|
+
import { ActionState, assertErrorThrown, uuid, getNonNullableEntry, } from '@finos/legend-shared';
|
18
|
+
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
19
|
+
import { QUERY_BUILDER_COLOR_THEME_KEY } from '../../__lib__/QueryBuilderColorTheme.js';
|
20
|
+
export class DatasetAccessInfo {
|
21
|
+
uuid = uuid();
|
22
|
+
specification;
|
23
|
+
entitlementReport;
|
24
|
+
constructor(specification) {
|
25
|
+
makeObservable(this, {
|
26
|
+
entitlementReport: observable,
|
27
|
+
setEntitlementReport: action,
|
28
|
+
});
|
29
|
+
this.specification = specification;
|
30
|
+
}
|
31
|
+
setEntitlementReport(val) {
|
32
|
+
this.entitlementReport = val;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
export class DataAccessState {
|
36
|
+
applicationStore;
|
37
|
+
graphManagerState;
|
38
|
+
surveyDatasets;
|
39
|
+
checkDatasetEntitlements;
|
40
|
+
initialDatasets;
|
41
|
+
surveyDatasetsState = ActionState.create();
|
42
|
+
checkEntitlementsState = ActionState.create();
|
43
|
+
datasets = [];
|
44
|
+
constructor(applicationStore, graphManagerState, options) {
|
45
|
+
makeObservable(this, {
|
46
|
+
datasets: observable,
|
47
|
+
entitlementCheckInfo: computed,
|
48
|
+
fetchDatasetSpecifications: flow,
|
49
|
+
fetchDatasetEntitlementReports: flow,
|
50
|
+
});
|
51
|
+
this.applicationStore = applicationStore;
|
52
|
+
this.graphManagerState = graphManagerState;
|
53
|
+
this.initialDatasets = options.initialDatasets;
|
54
|
+
this.datasets = (options.initialDatasets ?? []).map((dataset) => new DatasetAccessInfo(dataset));
|
55
|
+
this.surveyDatasets = options.surveyDatasets;
|
56
|
+
this.checkDatasetEntitlements = options.checkDatasetEntitlements;
|
57
|
+
}
|
58
|
+
get entitlementCheckInfo() {
|
59
|
+
const total = this.datasets.length;
|
60
|
+
if (!total) {
|
61
|
+
return {
|
62
|
+
total,
|
63
|
+
data: [
|
64
|
+
{
|
65
|
+
label: 'Access Granted',
|
66
|
+
count: 1,
|
67
|
+
percentage: 100,
|
68
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_GRANTED),
|
69
|
+
},
|
70
|
+
],
|
71
|
+
};
|
72
|
+
}
|
73
|
+
const info = {
|
74
|
+
total,
|
75
|
+
data: [],
|
76
|
+
};
|
77
|
+
const accessGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
78
|
+
DatasetEntitlementAccessGrantedReport).length;
|
79
|
+
const accessGrantedPercentage = Math.round(accessGrantedCount / total) * 100;
|
80
|
+
info.data.push({
|
81
|
+
label: 'Access Granted',
|
82
|
+
count: accessGrantedCount,
|
83
|
+
percentage: accessGrantedPercentage,
|
84
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_GRANTED),
|
85
|
+
});
|
86
|
+
const accessApprovedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
87
|
+
DatasetEntitlementAccessApprovedReport).length;
|
88
|
+
const accessApprovedPercentage = Math.round((accessApprovedCount / total) * 100);
|
89
|
+
info.data.push({
|
90
|
+
label: 'Access Approved',
|
91
|
+
count: accessApprovedCount,
|
92
|
+
percentage: accessApprovedPercentage,
|
93
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_APPROVED),
|
94
|
+
});
|
95
|
+
const accessRequestedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
96
|
+
DatasetEntitlementAccessRequestedReport).length;
|
97
|
+
const accessRequestedPercentage = Math.round((accessRequestedCount / total) * 100);
|
98
|
+
info.data.push({
|
99
|
+
label: 'Access Requested',
|
100
|
+
count: accessRequestedCount,
|
101
|
+
percentage: accessRequestedPercentage,
|
102
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_REQUESTED),
|
103
|
+
});
|
104
|
+
const accessNotGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
105
|
+
DatasetEntitlementAccessNotGrantedReport).length;
|
106
|
+
const accessNotGrantedPercentage = Math.round(accessNotGrantedCount / total) * 100;
|
107
|
+
info.data.push({
|
108
|
+
label: 'Access Not Granted',
|
109
|
+
count: accessNotGrantedCount,
|
110
|
+
percentage: accessNotGrantedPercentage,
|
111
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_NOT_GRANTED),
|
112
|
+
});
|
113
|
+
const unsupportedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
114
|
+
DatasetEntitlementUnsupportedReport).length;
|
115
|
+
const unsupportedPercentage = Math.round((unsupportedCount / total) * 100);
|
116
|
+
info.data.push({
|
117
|
+
label: 'Unsupported',
|
118
|
+
count: unsupportedCount,
|
119
|
+
percentage: unsupportedPercentage,
|
120
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__UNSUPPORTED_ACCESS),
|
121
|
+
});
|
122
|
+
const unknownCount = total -
|
123
|
+
accessGrantedCount -
|
124
|
+
accessApprovedCount -
|
125
|
+
accessRequestedCount -
|
126
|
+
accessNotGrantedCount -
|
127
|
+
unsupportedCount;
|
128
|
+
const unknownPercentage = Math.round(unknownCount / total) * 100;
|
129
|
+
info.data.push({
|
130
|
+
label: 'Unknown',
|
131
|
+
count: unknownCount,
|
132
|
+
percentage: unknownPercentage,
|
133
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__UNSUPPORTED_ACCESS),
|
134
|
+
});
|
135
|
+
let currentPercentageSum = 0;
|
136
|
+
for (let i = 0; i < info.data.length; ++i) {
|
137
|
+
const data = getNonNullableEntry(info.data, i);
|
138
|
+
if (currentPercentageSum + data.percentage >= 100) {
|
139
|
+
data.percentage = 100 - currentPercentageSum;
|
140
|
+
info.data = info.data.slice(0, i + 1);
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
currentPercentageSum += data.percentage;
|
144
|
+
}
|
145
|
+
return info;
|
146
|
+
}
|
147
|
+
*fetchDatasetSpecifications() {
|
148
|
+
this.surveyDatasetsState.inProgress();
|
149
|
+
try {
|
150
|
+
const datasets = (yield this.surveyDatasets());
|
151
|
+
this.datasets = datasets.map((dataset) => {
|
152
|
+
const existingDataset = this.datasets.find((ds) => ds.specification.hashCode === dataset.hashCode);
|
153
|
+
if (existingDataset) {
|
154
|
+
return existingDataset;
|
155
|
+
}
|
156
|
+
return new DatasetAccessInfo(dataset);
|
157
|
+
});
|
158
|
+
}
|
159
|
+
catch (error) {
|
160
|
+
assertErrorThrown(error);
|
161
|
+
this.applicationStore.notificationService.notifyError(error);
|
162
|
+
}
|
163
|
+
finally {
|
164
|
+
this.surveyDatasetsState.complete();
|
165
|
+
}
|
166
|
+
}
|
167
|
+
*fetchDatasetEntitlementReports() {
|
168
|
+
this.checkEntitlementsState.inProgress();
|
169
|
+
try {
|
170
|
+
const reports = (yield this.checkDatasetEntitlements(this.datasets.map((dataset) => dataset.specification)));
|
171
|
+
this.datasets.forEach((dataset) => {
|
172
|
+
const matchingReport = reports.find((report) => report.dataset.hashCode === dataset.specification.hashCode);
|
173
|
+
if (matchingReport) {
|
174
|
+
dataset.setEntitlementReport(matchingReport);
|
175
|
+
return;
|
176
|
+
}
|
177
|
+
dataset.setEntitlementReport(undefined);
|
178
|
+
});
|
179
|
+
const newDatasets = [];
|
180
|
+
reports.forEach((report) => {
|
181
|
+
const matchingDataset = this.datasets.find((dataset) => dataset.specification.hashCode === report.dataset.hashCode);
|
182
|
+
if (!matchingDataset) {
|
183
|
+
const newDataset = new DatasetAccessInfo(report.dataset);
|
184
|
+
newDataset.setEntitlementReport(report);
|
185
|
+
newDatasets.push(newDataset);
|
186
|
+
}
|
187
|
+
});
|
188
|
+
this.datasets = this.datasets.concat(newDatasets);
|
189
|
+
}
|
190
|
+
catch (error) {
|
191
|
+
assertErrorThrown(error);
|
192
|
+
this.applicationStore.notificationService.notifyError(error);
|
193
|
+
}
|
194
|
+
finally {
|
195
|
+
this.checkEntitlementsState.complete();
|
196
|
+
}
|
197
|
+
}
|
198
|
+
async intialize() {
|
199
|
+
if (!this.initialDatasets) {
|
200
|
+
await flowResult(this.fetchDatasetSpecifications());
|
201
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
202
|
+
}
|
203
|
+
else {
|
204
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
205
|
+
}
|
206
|
+
}
|
207
|
+
async refresh() {
|
208
|
+
await flowResult(this.fetchDatasetSpecifications());
|
209
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
210
|
+
}
|
211
|
+
}
|
212
|
+
//# sourceMappingURL=DataAccessState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataAccessState.js","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,qCAAqC,EAIrC,sCAAsC,EACtC,uCAAuC,EACvC,wCAAwC,EACxC,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO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W,CAAC,CAAC;SACnD;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC9D;gBAAS;YACR,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC;SACxC;IACH,CAAC;IAED,KAAK,CAAC,SAAS;QACb,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACzB,MAAM,UAAU,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC;YACpD,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;SACzD;aAAM;YACL,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;SACzD;IACH,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,UAAU,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC;QACpD,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
@@ -15,11 +15,13 @@
|
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
18
|
+
import { DataAccessState } from '../data-access/DataAccessState.js';
|
18
19
|
export declare class QueryBuilderCheckEntitlementsState implements Hashable {
|
19
20
|
readonly queryBuilderState: QueryBuilderState;
|
20
|
-
|
21
|
+
dataAccessState?: DataAccessState | undefined;
|
22
|
+
showCheckEntitlementsViewer: boolean;
|
21
23
|
constructor(queryBuilderState: QueryBuilderState);
|
22
|
-
|
24
|
+
setShowCheckEntitlementsViewer(val: boolean): void;
|
23
25
|
get hashCode(): string;
|
24
26
|
}
|
25
27
|
//# sourceMappingURL=QueryBuilderCheckEntitlementsState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAQpE,qBAAa,kCAAmC,YAAW,QAAQ;IACjE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,2BAA2B,UAAS;gBAExB,iBAAiB,EAAE,iBAAiB;IAWhD,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAyClD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -16,24 +16,38 @@
|
|
16
16
|
import { hashArray } from '@finos/legend-shared';
|
17
17
|
import { makeObservable, observable, action, computed } from 'mobx';
|
18
18
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtils.js';
|
19
|
+
import { DataAccessState } from '../data-access/DataAccessState.js';
|
20
|
+
import { RuntimePointer, InMemoryGraphData, } from '@finos/legend-graph';
|
19
21
|
export class QueryBuilderCheckEntitlementsState {
|
20
22
|
queryBuilderState;
|
21
|
-
|
23
|
+
dataAccessState;
|
24
|
+
showCheckEntitlementsViewer = false;
|
22
25
|
constructor(queryBuilderState) {
|
23
26
|
makeObservable(this, {
|
24
|
-
|
25
|
-
|
27
|
+
showCheckEntitlementsViewer: observable,
|
28
|
+
dataAccessState: observable,
|
29
|
+
setShowCheckEntitlementsViewer: action,
|
26
30
|
hashCode: computed,
|
27
31
|
});
|
28
32
|
this.queryBuilderState = queryBuilderState;
|
29
33
|
}
|
30
|
-
|
31
|
-
this.
|
34
|
+
setShowCheckEntitlementsViewer(val) {
|
35
|
+
this.showCheckEntitlementsViewer = val;
|
36
|
+
this.dataAccessState = undefined;
|
37
|
+
if (this.queryBuilderState.mapping &&
|
38
|
+
this.queryBuilderState.runtimeValue instanceof RuntimePointer) {
|
39
|
+
const mappingPath = this.queryBuilderState.mapping.path;
|
40
|
+
const runtimePath = this.queryBuilderState.runtimeValue.packageableRuntime.value.path;
|
41
|
+
this.dataAccessState = new DataAccessState(this.queryBuilderState.applicationStore, this.queryBuilderState.graphManagerState, {
|
42
|
+
surveyDatasets: async () => this.queryBuilderState.graphManagerState.graphManager.surveyDatasets(mappingPath, runtimePath, this.queryBuilderState.buildQuery(), new InMemoryGraphData(this.queryBuilderState.graphManagerState.graph)),
|
43
|
+
checkDatasetEntitlements: async (datasets) => this.queryBuilderState.graphManagerState.graphManager.checkDatasetEntitlements(datasets, mappingPath, runtimePath, this.queryBuilderState.buildQuery(), new InMemoryGraphData(this.queryBuilderState.graphManagerState.graph)),
|
44
|
+
});
|
45
|
+
}
|
32
46
|
}
|
33
47
|
get hashCode() {
|
34
48
|
return hashArray([
|
35
49
|
QUERY_BUILDER_STATE_HASH_STRUCTURE.CHECK_ENTITLEMENTS_STATE,
|
36
|
-
this.
|
50
|
+
this.showCheckEntitlementsViewer,
|
37
51
|
]);
|
38
52
|
}
|
39
53
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EACL,cAAc,EAGd,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,kCAAkC;IACpC,iBAAiB,CAAoB;IAE9C,eAAe,CAA+B;IAC9C,2BAA2B,GAAG,KAAK,CAAC;IAEpC,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,2BAA2B,EAAE,UAAU;YACvC,eAAe,EAAE,UAAU;YAC3B,8BAA8B,EAAE,MAAM;YACtC,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,8BAA8B,CAAC,GAAY;QACzC,IAAI,CAAC,2BAA2B,GAAG,GAAG,CAAC;QAEvC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,IACE,IAAI,CAAC,iBAAiB,CAAC,OAAO;YAC9B,IAAI,CAAC,iBAAiB,CAAC,YAAY,YAAY,cAAc,EAC7D;YACA,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC;YACxD,MAAM,WAAW,GACf,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC;YACpE,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CACxC,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EACvC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EACxC;gBACE,cAAc,EAAE,KAAK,IAAqC,EAAE,CAC1D,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,cAAc,CAClE,WAAW,EACX,WAAW,EACX,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,EACnC,IAAI,iBAAiB,CACnB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CACF;gBACH,wBAAwB,EAAE,KAAK,EAC7B,QAAgC,EACK,EAAE,CACvC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,wBAAwB,CAC5E,QAAQ,EACR,WAAW,EACX,WAAW,EACX,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,EACnC,IAAI,iBAAiB,CACnB,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CACF;aACJ,CACF,CAAC;SACH;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,wBAAwB;YAC3D,IAAI,CAAC,2BAA2B;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,11 +13,13 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type PureModel,
|
16
|
+
import { type PureModel, type GraphManagerState, type ValueSpecification, type Type, type ObserverContext, type RawLambda, VariableExpression, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, LambdaFunction } from '@finos/legend-graph';
|
17
17
|
export declare const createSupportedFunctionExpression: (supportedFuncName: string, expectedReturnType: Type) => SimpleFunctionExpression;
|
18
18
|
export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
|
19
19
|
export declare const buildPrimitiveInstanceValue: (graph: PureModel, type: PRIMITIVE_TYPE, value: unknown, observerContext: ObserverContext) => PrimitiveInstanceValue;
|
20
20
|
export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type, observerContext: ObserverContext) => ValueSpecification;
|
21
|
+
export declare const buildDefaultEmptyStringLambda: (graph: PureModel, observerContext: ObserverContext) => LambdaFunction;
|
22
|
+
export declare const buildDefaultEmptyStringRawLambda: (graphState: GraphManagerState, observerContext: ObserverContext) => RawLambda;
|
21
23
|
export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel, observerContext: ObserverContext) => ValueSpecification | undefined;
|
22
24
|
export declare const getValueSpecificationStringValue: (valueSpecification: ValueSpecification) => string | undefined;
|
23
25
|
//# sourceMappingURL=ValueSpecificationEditorHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAMf,MAAM,qBAAqB,CAAC;AAW7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AAiDF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAgDF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAeF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,KAC/B,kBAAkB,GAAG,SA8BvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { VariableExpression, CollectionInstanceValue, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, INTERNAL__PropagatedValue, SimpleFunctionExpression, } from '@finos/legend-graph';
|
16
|
+
import { VariableExpression, CollectionInstanceValue, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, INTERNAL__PropagatedValue, SimpleFunctionExpression, LambdaFunction, FunctionType, PackageableElementExplicitReference, Multiplicity, CORE_PURE_PATH, buildRawLambdaFromLambdaFunction, } from '@finos/legend-graph';
|
17
17
|
import { Randomizer, UnsupportedOperationError } from '@finos/legend-shared';
|
18
18
|
import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationHelper.js';
|
19
19
|
import { instanceValue_setValues, valueSpecification_setGenericType, } from './ValueSpecificationModifierHelper.js';
|
@@ -92,6 +92,12 @@ export const buildDefaultInstanceValue = (graph, type, observerContext) => {
|
|
92
92
|
throw new UnsupportedOperationError(`Can't get default value for type'${path}'`);
|
93
93
|
}
|
94
94
|
};
|
95
|
+
export const buildDefaultEmptyStringLambda = (graph, observerContext) => {
|
96
|
+
const lambdaFunction = new LambdaFunction(new FunctionType(PackageableElementExplicitReference.create(graph.getType(CORE_PURE_PATH.ANY)), Multiplicity.ONE));
|
97
|
+
lambdaFunction.expressionSequence[0] = buildDefaultInstanceValue(graph, PrimitiveType.STRING, observerContext);
|
98
|
+
return lambdaFunction;
|
99
|
+
};
|
100
|
+
export const buildDefaultEmptyStringRawLambda = (graphState, observerContext) => buildRawLambdaFromLambdaFunction(buildDefaultEmptyStringLambda(graphState.graph, observerContext), graphState);
|
95
101
|
export const generateVariableExpressionMockValue = (parameter, graph, observerContext) => {
|
96
102
|
const varType = parameter.genericType?.value.rawType;
|
97
103
|
const multiplicity = parameter.multiplicity;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,YAAY,EACZ,cAAc,EACd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,CAAC,YAAY,CAAC;KACxC;SAAM,IAAI,kBAAkB,YAAY,uBAAuB,EAAE;QAChE,OAAO,kBAAkB,CAAC,MAAM;aAC7B,GAAG,CAAC,gCAAgC,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "3.1
|
3
|
+
"version": "3.2.1",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,20 +42,20 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.0.
|
46
|
-
"@finos/legend-art": "7.0.
|
47
|
-
"@finos/legend-graph": "28.1.
|
48
|
-
"@finos/legend-lego": "0.
|
49
|
-
"@finos/legend-server-depot": "6.0.
|
50
|
-
"@finos/legend-shared": "10.0.
|
51
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "15.0.8",
|
46
|
+
"@finos/legend-art": "7.0.9",
|
47
|
+
"@finos/legend-graph": "28.1.5",
|
48
|
+
"@finos/legend-lego": "1.0.0",
|
49
|
+
"@finos/legend-server-depot": "6.0.5",
|
50
|
+
"@finos/legend-shared": "10.0.4",
|
51
|
+
"@finos/legend-storage": "3.0.54",
|
52
52
|
"@testing-library/react": "14.0.0",
|
53
53
|
"@types/react": "18.2.0",
|
54
54
|
"@types/react-dom": "18.2.1",
|
55
55
|
"mathjs": "11.8.0",
|
56
56
|
"mobx": "6.9.0",
|
57
57
|
"mobx-react-lite": "3.4.3",
|
58
|
-
"monaco-editor": "0.
|
58
|
+
"monaco-editor": "0.38.0",
|
59
59
|
"react": "18.2.0",
|
60
60
|
"react-dnd": "16.0.1",
|
61
61
|
"react-dom": "18.2.0",
|
@@ -63,12 +63,14 @@
|
|
63
63
|
"sql-formatter": "12.2.0"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
|
-
"@finos/legend-dev-utils": "2.0.
|
66
|
+
"@finos/legend-dev-utils": "2.0.58",
|
67
67
|
"@jest/globals": "29.5.0",
|
68
|
+
"chart.js": "4.3.0",
|
68
69
|
"cross-env": "7.0.3",
|
69
70
|
"eslint": "8.39.0",
|
70
71
|
"jest": "29.5.0",
|
71
72
|
"npm-run-all": "4.1.5",
|
73
|
+
"react-chartjs-2": "5.2.0",
|
72
74
|
"rimraf": "5.0.0",
|
73
75
|
"sass": "1.62.1",
|
74
76
|
"typescript": "5.0.4"
|
@@ -0,0 +1,23 @@
|
|
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
|
+
export enum QUERY_BUILDER_COLOR_THEME_KEY {
|
18
|
+
DATA_ACCESS_OVERVIEW__CHART__ACCESS_GRANTED = 'data-access-overview.chart.access-granted',
|
19
|
+
DATA_ACCESS_OVERVIEW__CHART__ACCESS_APPROVED = 'data-access-overview.chart.access-approved',
|
20
|
+
DATA_ACCESS_OVERVIEW__CHART__ACCESS_REQUESTED = 'data-access-overview.chart.access-requested',
|
21
|
+
DATA_ACCESS_OVERVIEW__CHART__ACCESS_NOT_GRANTED = 'data-access-overview.chart.access-not-granted',
|
22
|
+
DATA_ACCESS_OVERVIEW__CHART__UNSUPPORTED_ACCESS = 'data-access-overview.chart.unsupported-access',
|
23
|
+
}
|