@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.
Files changed (134) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +2 -1
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/data-cube/QueryBuilderDataCube.d.ts +22 -0
  5. package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -0
  6. package/lib/components/data-cube/QueryBuilderDataCube.js +48 -0
  7. package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -0
  8. package/lib/components/filter/QueryBuilderFilterPanel.js +2 -2
  9. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  10. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  11. package/lib/components/result/QueryBuilderResultPanel.js +6 -3
  12. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  13. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  14. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +2 -3
  15. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  16. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +2 -2
  17. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  18. package/lib/components/result/tds/QueryBuilderTDSResultShared.js +19 -155
  19. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  20. package/lib/graph-manager/QueryBuilderConfig.d.ts +5 -1
  21. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
  22. package/lib/graph-manager/QueryBuilderConfig.js +6 -1
  23. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
  24. package/lib/index.css +1 -1
  25. package/lib/index.d.ts +2 -0
  26. package/lib/index.d.ts.map +1 -1
  27. package/lib/index.js +2 -0
  28. package/lib/index.js.map +1 -1
  29. package/lib/package.json +2 -1
  30. package/lib/stores/QueryBuilderState.d.ts +2 -0
  31. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  32. package/lib/stores/QueryBuilderState.js +9 -19
  33. package/lib/stores/QueryBuilderState.js.map +1 -1
  34. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +38 -0
  35. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -0
  36. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +71 -0
  37. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -0
  38. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +52 -0
  39. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -0
  40. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +149 -0
  41. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -0
  42. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +19 -0
  43. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -0
  44. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +31 -0
  45. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -0
  46. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
  47. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  48. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  49. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +1 -0
  50. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  51. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +3 -0
  52. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  53. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
  54. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  55. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -0
  56. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  57. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +1 -1
  58. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -1
  59. package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
  60. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  61. package/lib/stores/filter/QueryBuilderFilterState.js +3 -8
  62. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  63. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
  64. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  65. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +2 -2
  66. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  67. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +3 -3
  68. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  69. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +2 -2
  70. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  71. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +3 -3
  72. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  73. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +2 -2
  74. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  75. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +2 -2
  76. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  77. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +1 -1
  78. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  79. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
  80. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  81. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +1 -1
  82. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  83. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
  84. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  85. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +2 -2
  86. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
  87. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
  88. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  89. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +2 -2
  90. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
  91. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +2 -2
  92. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  93. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +1 -1
  94. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  95. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
  96. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  97. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +1 -1
  98. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  99. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
  100. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  101. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +2 -2
  102. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  103. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +3 -3
  104. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  105. package/package.json +7 -6
  106. package/src/components/QueryBuilder.tsx +4 -0
  107. package/src/components/data-cube/QueryBuilderDataCube.tsx +116 -0
  108. package/src/components/filter/QueryBuilderFilterPanel.tsx +2 -2
  109. package/src/components/result/QueryBuilderResultPanel.tsx +24 -0
  110. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +2 -3
  111. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +26 -332
  112. package/src/graph-manager/QueryBuilderConfig.ts +7 -1
  113. package/src/index.ts +2 -0
  114. package/src/stores/QueryBuilderState.ts +13 -27
  115. package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +109 -0
  116. package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +255 -0
  117. package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +41 -0
  118. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -0
  119. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +4 -0
  120. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +4 -0
  121. package/src/stores/filter/QueryBuilderFilterOperator.ts +1 -1
  122. package/src/stores/filter/QueryBuilderFilterState.ts +5 -10
  123. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
  124. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -3
  125. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -3
  126. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +2 -2
  127. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +4 -2
  128. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +4 -2
  129. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
  130. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +2 -2
  131. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +4 -2
  132. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +4 -2
  133. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -3
  134. 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()}' when the LHS property is of type '${propertyType.path}'`,
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()}' when the LHS property is of type '${propertyType.path}'`,
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()}' when the LHS property is of type '${propertyType.path}'`,
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()}' when the LHS property is of type '${propertyType.path}'`,
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()}' when the LHS property is of type '${propertyType.path}'`,
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",