@finos/legend-query-builder 4.14.96 → 4.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +2 -1
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.d.ts +22 -0
- package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -0
- package/lib/components/data-cube/QueryBuilderDataCube.js +48 -0
- package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.js +2 -2
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +6 -3
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +2 -3
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +2 -2
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +19 -155
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/graph-manager/QueryBuilderConfig.d.ts +5 -1
- package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
- package/lib/graph-manager/QueryBuilderConfig.js +6 -1
- package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +2 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +9 -19
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +38 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +71 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +52 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +149 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +19 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +31 -0
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +3 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +3 -8
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/package.json +7 -6
- package/src/components/QueryBuilder.tsx +4 -0
- package/src/components/data-cube/QueryBuilderDataCube.tsx +116 -0
- package/src/components/filter/QueryBuilderFilterPanel.tsx +2 -2
- package/src/components/result/QueryBuilderResultPanel.tsx +24 -0
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +2 -3
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +26 -332
- package/src/graph-manager/QueryBuilderConfig.ts +7 -1
- package/src/index.ts +2 -0
- package/src/stores/QueryBuilderState.ts +13 -27
- package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +109 -0
- package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +255 -0
- package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +41 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +4 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +4 -0
- package/src/stores/filter/QueryBuilderFilterOperator.ts +1 -1
- package/src/stores/filter/QueryBuilderFilterState.ts +5 -10
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -3
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -3
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +4 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +4 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +4 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +4 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -3
- package/tsconfig.json +4 -0
@@ -43,7 +43,7 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
43
43
|
extends QueryBuilderFilterOperator
|
44
44
|
implements Hashable
|
45
45
|
{
|
46
|
-
getLabel(): string {
|
46
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
47
47
|
return '>';
|
48
48
|
}
|
49
49
|
|
@@ -104,7 +104,9 @@ export class QueryBuilderFilterOperator_GreaterThan
|
|
104
104
|
}
|
105
105
|
default:
|
106
106
|
throw new UnsupportedOperationError(
|
107
|
-
`Can't get default value for filter operator '${this.getLabel(
|
107
|
+
`Can't get default value for filter operator '${this.getLabel(
|
108
|
+
filterConditionState,
|
109
|
+
)}' when the LHS property is of type '${propertyType.path}'`,
|
108
110
|
);
|
109
111
|
}
|
110
112
|
}
|
@@ -43,7 +43,7 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
43
43
|
extends QueryBuilderFilterOperator
|
44
44
|
implements Hashable
|
45
45
|
{
|
46
|
-
getLabel(): string {
|
46
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
47
47
|
return '>=';
|
48
48
|
}
|
49
49
|
|
@@ -104,7 +104,9 @@ export class QueryBuilderFilterOperator_GreaterThanEqual
|
|
104
104
|
}
|
105
105
|
default:
|
106
106
|
throw new UnsupportedOperationError(
|
107
|
-
`Can't get default value for filter operator '${this.getLabel(
|
107
|
+
`Can't get default value for filter operator '${this.getLabel(
|
108
|
+
filterConditionState,
|
109
|
+
)}' when the LHS property is of type '${propertyType.path}'`,
|
108
110
|
);
|
109
111
|
}
|
110
112
|
}
|
@@ -48,7 +48,7 @@ export class QueryBuilderFilterOperator_In
|
|
48
48
|
extends QueryBuilderFilterOperator
|
49
49
|
implements Hashable
|
50
50
|
{
|
51
|
-
getLabel(): string {
|
51
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
52
52
|
return 'is in list of';
|
53
53
|
}
|
54
54
|
|
@@ -176,7 +176,7 @@ export class QueryBuilderFilterOperator_In
|
|
176
176
|
}
|
177
177
|
|
178
178
|
export class QueryBuilderFilterOperator_NotIn extends QueryBuilderFilterOperator_In {
|
179
|
-
override getLabel(): string {
|
179
|
+
override getLabel(filterConditionState: FilterConditionState): string {
|
180
180
|
return `is not in list of`;
|
181
181
|
}
|
182
182
|
|
@@ -42,7 +42,7 @@ export class QueryBuilderFilterOperator_IsEmpty
|
|
42
42
|
extends QueryBuilderFilterOperator
|
43
43
|
implements Hashable
|
44
44
|
{
|
45
|
-
getLabel(): string {
|
45
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
46
46
|
return 'is empty';
|
47
47
|
}
|
48
48
|
|
@@ -110,7 +110,7 @@ export class QueryBuilderFilterOperator_IsEmpty
|
|
110
110
|
}
|
111
111
|
|
112
112
|
export class QueryBuilderFilterOperator_IsNotEmpty extends QueryBuilderFilterOperator_IsEmpty {
|
113
|
-
override getLabel(): string {
|
113
|
+
override getLabel(filterConditionState: FilterConditionState): string {
|
114
114
|
return `is not empty`;
|
115
115
|
}
|
116
116
|
|
@@ -43,7 +43,7 @@ export class QueryBuilderFilterOperator_LessThan
|
|
43
43
|
extends QueryBuilderFilterOperator
|
44
44
|
implements Hashable
|
45
45
|
{
|
46
|
-
getLabel(): string {
|
46
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
47
47
|
return '<';
|
48
48
|
}
|
49
49
|
|
@@ -104,7 +104,9 @@ export class QueryBuilderFilterOperator_LessThan
|
|
104
104
|
}
|
105
105
|
default:
|
106
106
|
throw new UnsupportedOperationError(
|
107
|
-
`Can't get default value for filter operator '${this.getLabel(
|
107
|
+
`Can't get default value for filter operator '${this.getLabel(
|
108
|
+
filterConditionState,
|
109
|
+
)}' when the LHS property is of type '${propertyType.path}'`,
|
108
110
|
);
|
109
111
|
}
|
110
112
|
}
|
@@ -43,7 +43,7 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
43
43
|
extends QueryBuilderFilterOperator
|
44
44
|
implements Hashable
|
45
45
|
{
|
46
|
-
getLabel(): string {
|
46
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
47
47
|
return '<=';
|
48
48
|
}
|
49
49
|
|
@@ -104,7 +104,9 @@ export class QueryBuilderFilterOperator_LessThanEqual
|
|
104
104
|
}
|
105
105
|
default:
|
106
106
|
throw new UnsupportedOperationError(
|
107
|
-
`Can't get default value for filter operator '${this.getLabel(
|
107
|
+
`Can't get default value for filter operator '${this.getLabel(
|
108
|
+
filterConditionState,
|
109
|
+
)}' when the LHS property is of type '${propertyType.path}'`,
|
108
110
|
);
|
109
111
|
}
|
110
112
|
}
|
@@ -46,7 +46,7 @@ export class QueryBuilderFilterOperator_StartWith
|
|
46
46
|
extends QueryBuilderFilterOperator
|
47
47
|
implements Hashable
|
48
48
|
{
|
49
|
-
getLabel(): string {
|
49
|
+
getLabel(filterConditionState: FilterConditionState): string {
|
50
50
|
return 'starts with';
|
51
51
|
}
|
52
52
|
|
@@ -90,7 +90,9 @@ export class QueryBuilderFilterOperator_StartWith
|
|
90
90
|
}
|
91
91
|
default:
|
92
92
|
throw new UnsupportedOperationError(
|
93
|
-
`Can't get default value for filter operator '${this.getLabel(
|
93
|
+
`Can't get default value for filter operator '${this.getLabel(
|
94
|
+
filterConditionState,
|
95
|
+
)}' when the LHS property is of type '${propertyType.path}'`,
|
94
96
|
);
|
95
97
|
}
|
96
98
|
}
|
@@ -126,7 +128,7 @@ export class QueryBuilderFilterOperator_StartWith
|
|
126
128
|
}
|
127
129
|
|
128
130
|
export class QueryBuilderFilterOperator_NotStartWith extends QueryBuilderFilterOperator_StartWith {
|
129
|
-
override getLabel(): string {
|
131
|
+
override getLabel(filterConditionState: FilterConditionState): string {
|
130
132
|
return `doesn't start with`;
|
131
133
|
}
|
132
134
|
|
package/tsconfig.json
CHANGED
@@ -99,6 +99,9 @@
|
|
99
99
|
"./src/stores/ServiceInfo.ts",
|
100
100
|
"./src/stores/__test-utils__/QueryBuilderStateTestUtils.ts",
|
101
101
|
"./src/stores/data-access/DataAccessState.ts",
|
102
|
+
"./src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts",
|
103
|
+
"./src/stores/data-cube/QueryBuilderDataCubeEngine.ts",
|
104
|
+
"./src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts",
|
102
105
|
"./src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts",
|
103
106
|
"./src/stores/execution-plan/ExecutionPlanState.ts",
|
104
107
|
"./src/stores/explorer/QueryBuilderExplorerState.ts",
|
@@ -220,6 +223,7 @@
|
|
220
223
|
"./src/components/ServiceQuerySetupUtils.tsx",
|
221
224
|
"./src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx",
|
222
225
|
"./src/components/data-access/DataAccessOverview.tsx",
|
226
|
+
"./src/components/data-cube/QueryBuilderDataCube.tsx",
|
223
227
|
"./src/components/execution-plan/AllocationExecutionNodeViewer.tsx",
|
224
228
|
"./src/components/execution-plan/ConstantExecutionNodeViewer.tsx",
|
225
229
|
"./src/components/execution-plan/DataTypeResultTypeViewer.tsx",
|