@finos/legend-query-builder 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/lib/components/QueryBuilder.d.ts +0 -1
  2. package/lib/components/QueryBuilder.d.ts.map +1 -1
  3. package/lib/components/QueryBuilder.js +42 -9
  4. package/lib/components/QueryBuilder.js.map +1 -1
  5. package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  6. package/lib/components/QueryBuilderComponentTestUtils.js +2 -5
  7. package/lib/components/QueryBuilderComponentTestUtils.js.map +1 -1
  8. package/lib/components/QueryBuilderDiffPanel.d.ts +0 -1
  9. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  10. package/lib/components/QueryBuilderDiffPanel.js +2 -2
  11. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  12. package/lib/components/QueryBuilderParametersPanel.d.ts +0 -1
  13. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  14. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -1
  15. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  16. package/lib/components/QueryBuilderResultPanel.d.ts +0 -1
  17. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  18. package/lib/components/QueryBuilderResultPanel.js +3 -3
  19. package/lib/components/QueryBuilderSideBar.d.ts +0 -1
  20. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  21. package/lib/components/QueryBuilderSideBar.js +2 -1
  22. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  23. package/lib/components/QueryBuilderTextEditor.d.ts +0 -1
  24. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  25. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -1
  26. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
  27. package/lib/components/QueryBuilder_TestID.d.ts +1 -0
  28. package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
  29. package/lib/components/QueryBuilder_TestID.js +1 -0
  30. package/lib/components/QueryBuilder_TestID.js.map +1 -1
  31. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -1
  32. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  33. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -1
  34. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  35. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +2 -2
  36. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  37. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -1
  38. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  39. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -1
  40. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
  41. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
  42. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  43. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts +22 -0
  44. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts.map +1 -0
  45. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js +363 -0
  46. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js.map +1 -0
  47. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -1
  48. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +21 -53
  50. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +22 -0
  52. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -0
  53. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +32 -0
  54. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -0
  55. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -1
  56. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +2 -1
  58. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +27 -0
  60. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -0
  61. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +61 -0
  62. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -0
  63. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +0 -1
  64. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  65. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +4 -13
  66. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  67. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -1
  68. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  69. package/lib/components/shared/LambdaEditor.d.ts +0 -1
  70. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  71. package/lib/components/shared/LambdaEditor.js +23 -7
  72. package/lib/components/shared/LambdaEditor.js.map +1 -1
  73. package/lib/components/shared/LambdaParameterValuesEditor.d.ts +0 -1
  74. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  75. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  76. package/lib/components/workflows/ServiceQueryBuilder.js +5 -1
  77. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  78. package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -0
  79. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  80. package/lib/graphManager/QueryBuilderHashUtils.js +15 -0
  81. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  82. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +7 -1
  83. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
  84. package/lib/graphManager/QueryBuilderSupportedFunctions.js +7 -0
  85. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
  86. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
  87. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +4 -1
  88. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  89. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -0
  90. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  91. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +50 -0
  92. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  93. package/lib/index.css +2 -2
  94. package/lib/index.css.map +1 -1
  95. package/lib/package.json +6 -6
  96. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  97. package/lib/stores/QueryBuilderStateBuilder.js +7 -1
  98. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  99. package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +1 -1
  100. package/lib/stores/QueryBuilderStateTestUtils.js +2 -4
  101. package/lib/stores/QueryBuilderStateTestUtils.js.map +1 -1
  102. package/lib/stores/QueryBuilderTypeaheadHelper.js +2 -2
  103. package/lib/stores/explorer/QueryBuilderExplorerState.js +3 -3
  104. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
  105. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  106. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +3 -0
  107. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  108. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  109. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +2 -1
  110. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  111. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts +24 -0
  112. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts.map +1 -0
  113. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js +20 -0
  114. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js.map +1 -0
  115. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +23 -0
  116. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -0
  117. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +41 -0
  118. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -0
  119. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +11 -0
  120. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  121. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +44 -1
  122. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  123. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +2 -2
  124. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
  125. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +2 -2
  126. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
  127. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js +1 -1
  128. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +4 -4
  129. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
  130. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +8 -7
  131. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  132. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts +18 -0
  133. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts.map +1 -0
  134. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js +36 -0
  135. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js.map +1 -0
  136. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts +91 -0
  137. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts.map +1 -0
  138. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js +272 -0
  139. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js.map +1 -0
  140. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts +19 -0
  141. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts.map +1 -0
  142. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js +100 -0
  143. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js.map +1 -0
  144. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts +19 -0
  145. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts.map +1 -0
  146. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js +83 -0
  147. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js.map +1 -0
  148. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.d.ts +29 -0
  149. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.d.ts.map +1 -0
  150. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js +30 -0
  151. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js.map +1 -0
  152. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts +25 -0
  153. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts.map +1 -0
  154. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js +50 -0
  155. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js.map +1 -0
  156. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts +25 -0
  157. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts.map +1 -0
  158. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js +51 -0
  159. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js.map +1 -0
  160. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts +25 -0
  161. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts.map +1 -0
  162. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js +50 -0
  163. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js.map +1 -0
  164. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts +25 -0
  165. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts.map +1 -0
  166. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js +50 -0
  167. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js.map +1 -0
  168. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts +25 -0
  169. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts.map +1 -0
  170. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js +51 -0
  171. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js.map +1 -0
  172. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts +24 -0
  173. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts.map +1 -0
  174. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.js +48 -0
  175. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.js.map +1 -0
  176. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts +24 -0
  177. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts.map +1 -0
  178. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.js +48 -0
  179. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.js.map +1 -0
  180. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts +24 -0
  181. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts.map +1 -0
  182. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.js +48 -0
  183. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.js.map +1 -0
  184. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts +24 -0
  185. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts.map +1 -0
  186. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.js +48 -0
  187. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.js.map +1 -0
  188. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +1 -1
  189. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js +2 -2
  190. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +6 -4
  191. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  192. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +14 -3
  193. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  194. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
  195. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +8 -11
  196. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  197. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +2 -2
  198. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -1
  199. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +5 -1
  200. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  201. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +4 -4
  202. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +1 -1
  203. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +1 -1
  204. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +3 -3
  205. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +3 -3
  206. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +1 -1
  207. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +2 -2
  208. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -2
  209. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
  210. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +3 -3
  211. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +1 -1
  212. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +1 -1
  213. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +4 -6
  214. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  215. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +6 -5
  216. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  217. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  218. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +1 -0
  219. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  220. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  221. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +6 -3
  222. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  223. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
  224. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  225. package/lib/stores/filter/QueryBuilderFilterState.js +6 -0
  226. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  227. package/package.json +13 -13
  228. package/src/components/QueryBuilder.tsx +110 -35
  229. package/src/components/QueryBuilderComponentTestUtils.tsx +9 -11
  230. package/src/components/QueryBuilderDiffPanel.tsx +2 -2
  231. package/src/components/QueryBuilderResultPanel.tsx +4 -4
  232. package/src/components/QueryBuilderSideBar.tsx +4 -1
  233. package/src/components/QueryBuilder_TestID.ts +1 -0
  234. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +2 -3
  235. package/src/components/fetch-structure/QueryBuilderOlapGroupByPanel.tsx +1140 -0
  236. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +31 -106
  237. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +69 -0
  238. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +4 -1
  239. package/src/components/fetch-structure/QueryBuilderTDSComponentHelper.tsx +118 -0
  240. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +4 -23
  241. package/src/components/shared/LambdaEditor.tsx +25 -22
  242. package/src/components/workflows/ServiceQueryBuilder.tsx +10 -2
  243. package/src/graphManager/QueryBuilderHashUtils.ts +16 -0
  244. package/src/graphManager/QueryBuilderSupportedFunctions.ts +7 -0
  245. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +14 -0
  246. package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +129 -0
  247. package/src/stores/QueryBuilderStateBuilder.ts +14 -1
  248. package/src/stores/QueryBuilderStateTestUtils.ts +9 -13
  249. package/src/stores/QueryBuilderTypeaheadHelper.ts +2 -2
  250. package/src/stores/explorer/QueryBuilderExplorerState.ts +3 -3
  251. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +4 -0
  252. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +2 -1
  253. package/src/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.ts +28 -0
  254. package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +79 -0
  255. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +68 -1
  256. package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +2 -2
  257. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts +1 -1
  258. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +11 -9
  259. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.ts +39 -0
  260. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.ts +377 -0
  261. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.ts +237 -0
  262. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.ts +148 -0
  263. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.ts +43 -0
  264. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.ts +56 -0
  265. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.ts +57 -0
  266. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.ts +56 -0
  267. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.ts +56 -0
  268. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.ts +57 -0
  269. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.ts +54 -0
  270. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.ts +54 -0
  271. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.ts +54 -0
  272. package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.ts +54 -0
  273. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +2 -2
  274. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +22 -10
  275. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +11 -19
  276. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +8 -7
  277. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
  278. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +1 -1
  279. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +1 -1
  280. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +3 -3
  281. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +3 -3
  282. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +1 -1
  283. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +2 -2
  284. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +3 -3
  285. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +3 -3
  286. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +1 -1
  287. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +1 -1
  288. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +9 -11
  289. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -0
  290. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +8 -4
  291. package/src/stores/filter/QueryBuilderFilterState.ts +7 -0
  292. package/tsconfig.json +19 -0
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { guaranteeNonNullable, addUniqueEntry, ActionState, assertErrorThrown, assertType, UnsupportedOperationError, } from '@finos/legend-shared';
17
- import { TYPICAL_MULTIPLICITY_TYPE, AbstractPropertyExpression, Class, VariableExpression, GenericType, GenericTypeExplicitReference, SimpleFunctionExpression, InstanceValue, extractElementNameFromPath, matchFunctionName, TYPE_CAST_TOKEN, VARIABLE_REFERENCE_TOKEN, ARROW_FUNCTION_TOKEN, Multiplicity, getAllClassProperties, getAllOwnClassProperties, getAllClassDerivedProperties, Enum, EntityMappedProperty, Enumeration, DerivedProperty, Property, Association, PRIMITIVE_TYPE, TdsExecutionResult, getAllSubclasses, PropertyExplicitReference, } from '@finos/legend-graph';
17
+ import { TYPICAL_MULTIPLICITY_TYPE, AbstractPropertyExpression, Class, VariableExpression, GenericType, GenericTypeExplicitReference, SimpleFunctionExpression, InstanceValue, extractElementNameFromPath, matchFunctionName, TYPE_CAST_TOKEN, VARIABLE_REFERENCE_TOKEN, ARROW_FUNCTION_TOKEN, Multiplicity, getAllClassProperties, getAllOwnClassProperties, getAllClassDerivedProperties, Enum, EntityMappedProperty, Enumeration, DerivedProperty, Property, Association, PRIMITIVE_TYPE, TDSExecutionResult, getAllSubclasses, PropertyExplicitReference, } from '@finos/legend-graph';
18
18
  import { action, flow, flowResult, makeObservable, observable } from 'mobx';
19
19
  import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
20
20
  import { buildNonNumericPreviewDataQuery, buildNumericPreviewDataQuery, } from '../QueryBuilderPreviewDataHelper.js';
@@ -410,7 +410,7 @@ export class QueryBuilderExplorerState {
410
410
  case PRIMITIVE_TYPE.DECIMAL:
411
411
  case PRIMITIVE_TYPE.FLOAT: {
412
412
  const previewResult = (yield this.queryBuilderState.graphManagerState.graphManager.executeMapping(buildNumericPreviewDataQuery(this.queryBuilderState, propertyExpression), this.queryBuilderState.mapping, runtime, this.queryBuilderState.graphManagerState.graph));
413
- assertType(previewResult, TdsExecutionResult, `Unexpected preview data format`);
413
+ assertType(previewResult, TDSExecutionResult, `Unexpected preview data format`);
414
414
  const previewResultData = previewResult.result;
415
415
  // transpose the result
416
416
  const transposedPreviewResultData = {
@@ -431,7 +431,7 @@ export class QueryBuilderExplorerState {
431
431
  case PRIMITIVE_TYPE.STRICTDATE:
432
432
  case PRIMITIVE_TYPE.DATETIME: {
433
433
  const previewResult = (yield this.queryBuilderState.graphManagerState.graphManager.executeMapping(buildNonNumericPreviewDataQuery(this.queryBuilderState, propertyExpression), this.queryBuilderState.mapping, runtime, this.queryBuilderState.graphManagerState.graph));
434
- assertType(previewResult, TdsExecutionResult, `Unexpected preview data format`);
434
+ assertType(previewResult, TDSExecutionResult, `Unexpected preview data format`);
435
435
  this.previewDataState.setPreviewData(previewResult.result);
436
436
  break;
437
437
  }
@@ -38,5 +38,6 @@ export declare abstract class QueryBuilderFetchStructureImplementationState impl
38
38
  abstract checkBeforeChangingImplementation(onChange: () => void): void;
39
39
  abstract appendFetchStructure(lambdaFunction: LambdaFunction, options?: LambdaFunctionBuilderOption): void;
40
40
  abstract get hashCode(): string;
41
+ get TEMPORARY__showPostFetchStructurePanel(): boolean;
41
42
  }
42
43
  //# sourceMappingURL=QueryBuilderFetchStructureImplementationState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,KAAK,EACL,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,0CAA0C,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,oBAAY,8BAA8B;IACxC,sBAAsB,2BAA2B;IACjD,WAAW,gBAAgB;CAC5B;AAED,8BAAsB,6CACpB,YAAW,QAAQ;IAEnB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;gBAG5D,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAYtD,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5B,QAAQ,KAAK,+BAA+B,IAAI,MAAM,EAAE,CAAC;IACzD,QAAQ,KAAK,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IACvD,QAAQ,CAAC,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAC5E,QAAQ,CAAC,qBAAqB,IAAI,IAAI;IACtC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAC5E,QAAQ,CAAC,eAAe,CACtB,KAAK,EAAE,wCAAwC,EAAE,GAChD,IAAI;IACP,QAAQ,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IACtE,QAAQ,CAAC,oBAAoB,CAC3B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IACP,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC"}
1
+ {"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,KAAK,EACL,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,0CAA0C,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,oBAAY,8BAA8B;IACxC,sBAAsB,2BAA2B;IACjD,WAAW,gBAAgB;CAC5B;AAED,8BAAsB,6CACpB,YAAW,QAAQ;IAEnB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;gBAG5D,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAYtD,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5B,QAAQ,KAAK,+BAA+B,IAAI,MAAM,EAAE,CAAC;IACzD,QAAQ,KAAK,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IACvD,QAAQ,CAAC,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAC5E,QAAQ,CAAC,qBAAqB,IAAI,IAAI;IACtC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAC5E,QAAQ,CAAC,eAAe,CACtB,KAAK,EAAE,wCAAwC,EAAE,GAChD,IAAI;IACP,QAAQ,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IACtE,QAAQ,CAAC,oBAAoB,CAC3B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IACP,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAEhC,IAAI,sCAAsC,IAAI,OAAO,CAEpD;CACF"}
@@ -31,5 +31,8 @@ export class QueryBuilderFetchStructureImplementationState {
31
31
  this.queryBuilderState = queryBuilderState;
32
32
  this.fetchStructureState = fetchStructureState;
33
33
  }
34
+ get TEMPORARY__showPostFetchStructurePanel() {
35
+ return this.queryBuilderState.filterState.showPanel;
36
+ }
34
37
  }
35
38
  //# sourceMappingURL=QueryBuilderFetchStructureImplementationState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAMhD,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,mFAAiD,CAAA;IACjD,6DAA2B,CAAA;AAC7B,CAAC,EAHW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,OAAgB,6CAA6C;IAGxD,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAE9D,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,cAAc,CAAC,IAAI,EAAE;YACnB,+BAA+B,EAAE,QAAQ;YACzC,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;CAkBF"}
1
+ {"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAMhD,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,mFAAiD,CAAA;IACjD,6DAA2B,CAAA;AAC7B,CAAC,EAHW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,OAAgB,6CAA6C;IAGxD,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAE9D,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,cAAc,CAAC,IAAI,EAAE;YACnB,+BAA+B,EAAE,QAAQ;YACzC,gBAAgB,EAAE,QAAQ;YAC1B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAmBD,IAAI,sCAAsC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC;IACtD,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EACL,KAAK,gBAAgB,EAGrB,KAAK,KAAK,EACV,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,6CAA6C,EAC9C,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAK7F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAGL,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,+BACX,SAAQ,6CACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACtD;;;;OAIG;IACH,SAAS,UAAS;gBAGhB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAetD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,+BAA+B,IAAI,MAAM,EAAE,CAiD9C;IAED,IAAI,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAE3C;IAED,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,SAAS,GAAG,IAAI;IAIxE,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,OAAO,CAAC,cAAc;IAYtB,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI9C,oBAAoB,CAClB,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IAIP,WAAW,CACT,IAAI,EAAE,wCAAwC,EAC9C,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACA,IAAI;IAkBP,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAInE,qBAAqB,IAAI,IAAI;IAI7B,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAInE,eAAe,CAAC,KAAK,EAAE,wCAAwC,EAAE,GAAG,IAAI;IAaxE,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IA2B7D,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EACL,KAAK,gBAAgB,EAGrB,KAAK,KAAK,EACV,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,6CAA6C,EAC9C,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAK7F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAGL,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,+BACX,SAAQ,6CACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACtD;;;;OAIG;IACH,SAAS,UAAS;gBAGhB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,+BAA+B;IAgBtD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,+BAA+B,IAAI,MAAM,EAAE,CAiD9C;IAED,IAAI,gBAAgB,IAAI,MAAM,EAAE,GAAG,SAAS,CAE3C;IAED,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,SAAS,GAAG,IAAI;IAIxE,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,OAAO,CAAC,cAAc;IAYtB,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI9C,oBAAoB,CAClB,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IAIP,WAAW,CACT,IAAI,EAAE,wCAAwC,EAC9C,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACA,IAAI;IAkBP,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IAInE,qBAAqB,IAAI,IAAI;IAI7B,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAInE,eAAe,CAAC,KAAK,EAAE,wCAAwC,EAAE,GAAG,IAAI;IAaxE,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IA2B7D,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -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 { action, makeObservable, observable } from 'mobx';
16
+ import { action, computed, makeObservable, observable } from 'mobx';
17
17
  import { PackageableElementExplicitReference, RootGraphFetchTree, getAllSuperclasses, } from '@finos/legend-graph';
18
18
  import { addQueryBuilderPropertyNode, buildGraphFetchTreeData, } from './QueryBuilderGraphFetchTreeUtil.js';
19
19
  import { generateExplorerTreePropertyNodeID, generateExplorerTreeSubtypeNodeID, } from '../../explorer/QueryBuilderExplorerState.js';
@@ -35,6 +35,7 @@ export class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchStructureI
35
35
  makeObservable(this, {
36
36
  treeData: observable.ref,
37
37
  isChecked: observable,
38
+ TEMPORARY__showPostFetchStructurePanel: computed,
38
39
  setGraphFetchTree: action,
39
40
  setChecked: action,
40
41
  });
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAEL,mCAAmC,EACnC,kBAAkB,EAGlB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kCAAkC,EAClC,iCAAiC,GAElC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EACL,oBAAoB,EACpB,SAAS,GAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;A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CACnD,wEAAwE,CACzE,CAAC;YACF,OAAO;SACR;QACD,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,iBAAiB,CAAC;YACrB,GAAG,IAAI,CAAC,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAED,iCAAiC,CAAC,QAAoB;QACpD,IAAI,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE;YACjC,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC;gBACzD,OAAO,EACL,mGAAmG;gBACrG,IAAI,EAAE,eAAe,CAAC,OAAO;gBAC7B,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,SAAS;wBAChB,IAAI,EAAE,qBAAqB,CAAC,oBAAoB;wBAChD,OAAO,EACL,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CACzD,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE,CACvB;qBACJ;oBACD;wBACE,KAAK,EAAE,QAAQ;wBACf,IAAI,EAAE,qBAAqB,CAAC,OAAO;wBACnC,OAAO,EAAE,IAAI;qBACd;iBACF;aACF,CAAC,CAAC;SACJ;aAAM;YACL,QAAQ,EAAE,CAAC;SACZ;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACzB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreeState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,Q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KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE,CACvB;qBACJ;oBACD;wBACE,KAAK,EAAE,QAAQ;wBACf,IAAI,EAAE,qBAAqB,CAAC,OAAO;wBACnC,OAAO,EAAE,IAAI;qBACd;iBACF;aACF,CAAC,CAAC;SACJ;aAAM;YACL,QAAQ,EAAE,CAAC;SACZ;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;YACzB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,24 @@
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 Hashable } from '@finos/legend-shared';
17
+ import type { Type } from '@finos/legend-graph';
18
+ export declare abstract class QueryBuilderTDSColumnState implements Hashable {
19
+ readonly uuid: string;
20
+ abstract get columnName(): string;
21
+ abstract getColumnType(): Type | undefined;
22
+ abstract get hashCode(): string;
23
+ }
24
+ //# sourceMappingURL=QueryBuilderTDSColumnState_.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSColumnState_.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,8BAAsB,0BAA2B,YAAW,QAAQ;IAClE,QAAQ,CAAC,IAAI,SAAU;IAEvB,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAC;IAElC,QAAQ,CAAC,aAAa,IAAI,IAAI,GAAG,SAAS;IAE1C,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC"}
@@ -0,0 +1,20 @@
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 { uuid } from '@finos/legend-shared';
17
+ export class QueryBuilderTDSColumnState {
18
+ uuid = uuid();
19
+ }
20
+ //# sourceMappingURL=QueryBuilderTDSColumnState_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSColumnState_.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,OAAgB,0BAA0B;IACrC,IAAI,GAAG,IAAI,EAAE,CAAC;CAOxB"}
@@ -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
+ import type { QueryBuilderTDSState } from './QueryBuilderTDSState.js';
17
+ import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState_.js';
18
+ import { COLUMN_SORT_TYPE } from './QueryResultSetModifierState.js';
19
+ export declare const findTDSColumnState: (projectionState: QueryBuilderTDSState, columnName: string) => QueryBuilderTDSColumnState | undefined;
20
+ export declare const getTDSColumnState: (projectionState: QueryBuilderTDSState, columnName: string) => QueryBuilderTDSColumnState;
21
+ export declare const getTDSColSortTypeFromFunctionName: (functionName: string) => COLUMN_SORT_TYPE;
22
+ export declare const getFunctionNameFromTDSSortColumn: (columnSortType: COLUMN_SORT_TYPE) => string;
23
+ //# sourceMappingURL=QueryBuilderTDSHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSHelper.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,eAAO,MAAM,kBAAkB,oBACZ,oBAAoB,cACzB,MAAM,KACjB,0BAA0B,GAAG,SACqC,CAAC;AAEtE,eAAO,MAAM,iBAAiB,oBACX,oBAAoB,cACzB,MAAM,KACjB,0BAIA,CAAC;AAEJ,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,KACnB,gBAaF,CAAC;AAEF,eAAO,MAAM,gCAAgC,mBAC3B,gBAAgB,KAC/B,MAeF,CAAC"}
@@ -0,0 +1,41 @@
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 { extractElementNameFromPath, matchFunctionName, } from '@finos/legend-graph';
17
+ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
18
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
19
+ import { COLUMN_SORT_TYPE } from './QueryResultSetModifierState.js';
20
+ export const findTDSColumnState = (projectionState, columnName) => projectionState.tdsColumns.find((c) => c.columnName === columnName);
21
+ export const getTDSColumnState = (projectionState, columnName) => guaranteeNonNullable(findTDSColumnState(projectionState, columnName), `Column ${columnName} not found in TDS`);
22
+ export const getTDSColSortTypeFromFunctionName = (functionName) => {
23
+ if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC)) {
24
+ return COLUMN_SORT_TYPE.ASC;
25
+ }
26
+ else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC)) {
27
+ return COLUMN_SORT_TYPE.DESC;
28
+ }
29
+ throw new UnsupportedOperationError(`Unsupported TDS sort function: ${functionName}`);
30
+ };
31
+ export const getFunctionNameFromTDSSortColumn = (columnSortType) => {
32
+ switch (columnSortType) {
33
+ case COLUMN_SORT_TYPE.ASC:
34
+ return extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC);
35
+ case COLUMN_SORT_TYPE.DESC:
36
+ return extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC);
37
+ default:
38
+ throw new UnsupportedOperationError(`Unsupported column sort type ${columnSortType}`);
39
+ }
40
+ };
41
+ //# sourceMappingURL=QueryBuilderTDSHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSHelper.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAG5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,eAAqC,EACrC,UAAkB,EACsB,EAAE,CAC1C,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,eAAqC,EACrC,UAAkB,EACU,EAAE,CAC9B,oBAAoB,CAClB,kBAAkB,CAAC,eAAe,EAAE,UAAU,CAAC,EAC/C,UAAU,UAAU,mBAAmB,CACxC,CAAC;AAEJ,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,YAAoB,EACF,EAAE;IACpB,IACE,iBAAiB,CAAC,YAAY,EAAE,iCAAiC,CAAC,OAAO,CAAC,EAC1E;QACA,OAAO,gBAAgB,CAAC,GAAG,CAAC;KAC7B;SAAM,IACL,iBAAiB,CAAC,YAAY,EAAE,iCAAiC,CAAC,QAAQ,CAAC,EAC3E;QACA,OAAO,gBAAgB,CAAC,IAAI,CAAC;KAC9B;IACD,MAAM,IAAI,yBAAyB,CACjC,kCAAkC,YAAY,EAAE,CACjD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,cAAgC,EACxB,EAAE;IACV,QAAQ,cAAc,EAAE;QACtB,KAAK,gBAAgB,CAAC,GAAG;YACvB,OAAO,0BAA0B,CAC/B,iCAAiC,CAAC,OAAO,CAC1C,CAAC;QACJ,KAAK,gBAAgB,CAAC,IAAI;YACxB,OAAO,0BAA0B,CAC/B,iCAAiC,CAAC,QAAQ,CAC3C,CAAC;QACJ;YACE,MAAM,IAAI,yBAAyB,CACjC,gCAAgC,cAAc,EAAE,CACjD,CAAC;KACL;AACH,CAAC,CAAC"}
@@ -26,24 +26,35 @@ import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjecti
26
26
  import type { QueryBuilderFetchStructureState } from '../QueryBuilderFetchStructureState.js';
27
27
  import { type QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
28
28
  import type { LambdaFunctionBuilderOption } from '../../QueryBuilderValueSpecificationBuilderHelper.js';
29
+ import { QueryBuilderOlapGroupByState } from './olapGroupBy/QueryBuilderOlapGroupByState.js';
30
+ import type { QueryBuilderTDSOlapOperator } from './olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js';
31
+ import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState_.js';
29
32
  export declare class QueryBuilderTDSState extends QueryBuilderFetchStructureImplementationState implements Hashable {
30
33
  readonly aggregationState: QueryBuilderAggregationState;
31
34
  readonly postFilterState: QueryBuilderPostFilterState;
35
+ readonly olapGroupByState: QueryBuilderOlapGroupByState;
32
36
  readonly resultSetModifierState: QueryResultSetModifierState;
33
37
  projectionColumns: QueryBuilderProjectionColumnState[];
34
38
  isConvertDerivationProjectionObjects: boolean;
35
39
  showPostFilterPanel: boolean;
40
+ showOlapGroupByPanel: boolean;
36
41
  postFilterOperators: QueryBuilderPostFilterOperator[];
37
42
  aggregationOperators: QueryBuilderAggregateOperator[];
43
+ olapGroupByOperators: QueryBuilderTDSOlapOperator[];
38
44
  constructor(queryBuilderState: QueryBuilderState, fetchStructureState: QueryBuilderFetchStructureState);
39
45
  get type(): string;
40
46
  get derivations(): QueryBuilderDerivationProjectionColumnState[];
41
47
  get hasParserError(): boolean;
48
+ get TEMPORARY__showPostFetchStructurePanel(): boolean;
42
49
  get usedExplorerTreePropertyNodeIDs(): string[];
43
50
  get validationIssues(): string[] | undefined;
51
+ get tdsColumns(): QueryBuilderTDSColumnState[];
52
+ isDuplicateColumn(col: QueryBuilderTDSColumnState): boolean;
53
+ isColumnInUse(tdsCol: QueryBuilderTDSColumnState): boolean;
44
54
  onClassChange(_class: Class | undefined): void;
45
55
  appendFetchStructure(lambdaFunction: LambdaFunction, options?: LambdaFunctionBuilderOption): void;
46
56
  setShowPostFilterPanel(val: boolean): void;
57
+ setShowOlapGroupByPanel(val: boolean): void;
47
58
  convertDerivationProjectionObjects(): GeneratorFn<void>;
48
59
  transformSimpleProjectionToDerivation(simpleProjectionColumnState: QueryBuilderSimpleProjectionColumnState): void;
49
60
  replaceColumn(oldVal: QueryBuilderProjectionColumnState, newVal: QueryBuilderProjectionColumnState): void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,WAAW,EAUhB,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,KAAK,gBAAgB,EAMrB,KAAK,EACL,KAAK,cAAc,EAMpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAEL,6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AmD1D,qBAAqB,IAAI,IAAI;IAa7B,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO;IA2BnE,qBAAqB,IAAI,IAAI;IAQ7B,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAanE,eAAe,CAAC,KAAK,EAAE,wCAAwC,EAAE,GAAG,IAAI;IAexE,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAkC7D,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF"}
@@ -17,7 +17,7 @@ import { action, flowResult, makeObservable, observable, flow, computed, } from
17
17
  import { LogEvent, assertErrorThrown, changeEntry, guaranteeType, deleteEntry, addUniqueEntry, guaranteeNonNullable, findLast, filterByType, hashArray, } from '@finos/legend-shared';
18
18
  import { GRAPH_MANAGER_EVENT, extractSourceInformationCoordinates, LAMBDA_PIPE, RawLambda, isStubbed_RawLambda, Class, AbstractPropertyExpression, matchFunctionName, SimpleFunctionExpression, getAllSuperclasses, } from '@finos/legend-graph';
19
19
  import { DEFAULT_LAMBDA_VARIABLE_NAME, QUERY_BUILDER_SOURCE_ID_LABEL, } from '../../QueryBuilderConfig.js';
20
- import { QueryBuilderAggregationState } from './aggregation/QueryBuilderAggregationState.js';
20
+ import { QueryBuilderAggregateColumnState, QueryBuilderAggregationState, } from './aggregation/QueryBuilderAggregationState.js';
21
21
  import { buildGenericLambdaFunctionInstanceValue } from '../../QueryBuilderValueSpecificationHelper.js';
22
22
  import { FETCH_STRUCTURE_IMPLEMENTATION, QueryBuilderFetchStructureImplementationState, } from '../QueryBuilderFetchStructureImplementationState.js';
23
23
  import { QueryResultSetModifierState } from './QueryResultSetModifierState.js';
@@ -30,32 +30,41 @@ import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-applicati
30
30
  import { appendProjection } from './projection/QueryBuilderProjectionValueSpecificationBuilder.js';
31
31
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
32
32
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
33
+ import { QueryBuilderOlapGroupByState } from './olapGroupBy/QueryBuilderOlapGroupByState.js';
34
+ import { getQueryBuilderCoreOlapGroupByOperators } from './olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js';
33
35
  export class QueryBuilderTDSState extends QueryBuilderFetchStructureImplementationState {
34
36
  aggregationState;
35
37
  postFilterState;
38
+ olapGroupByState;
36
39
  resultSetModifierState;
37
40
  projectionColumns = [];
38
41
  isConvertDerivationProjectionObjects = false;
39
42
  showPostFilterPanel = false;
43
+ showOlapGroupByPanel = false;
40
44
  postFilterOperators = getQueryBuilderCorePostFilterOperators();
41
45
  aggregationOperators = getQueryBuilderCoreAggregrationOperators();
46
+ olapGroupByOperators = getQueryBuilderCoreOlapGroupByOperators();
42
47
  constructor(queryBuilderState, fetchStructureState) {
43
48
  super(queryBuilderState, fetchStructureState);
44
49
  makeObservable(this, {
45
50
  projectionColumns: observable,
46
51
  isConvertDerivationProjectionObjects: observable,
47
52
  showPostFilterPanel: observable,
53
+ showOlapGroupByPanel: observable,
54
+ TEMPORARY__showPostFetchStructurePanel: computed,
48
55
  derivations: computed,
49
56
  hasParserError: computed,
50
57
  addColumn: action,
51
58
  moveColumn: action,
52
59
  replaceColumn: action,
53
60
  setShowPostFilterPanel: action,
61
+ setShowOlapGroupByPanel: action,
54
62
  convertDerivationProjectionObjects: flow,
55
63
  });
56
64
  this.resultSetModifierState = new QueryResultSetModifierState(this);
57
65
  this.postFilterState = new QueryBuilderPostFilterState(this, this.postFilterOperators);
58
66
  this.aggregationState = new QueryBuilderAggregationState(this, this.aggregationOperators);
67
+ this.olapGroupByState = new QueryBuilderOlapGroupByState(this, this.olapGroupByOperators);
59
68
  }
60
69
  get type() {
61
70
  return FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE;
@@ -66,6 +75,11 @@ export class QueryBuilderTDSState extends QueryBuilderFetchStructureImplementati
66
75
  get hasParserError() {
67
76
  return this.derivations.some((derivation) => derivation.derivationLambdaEditorState.parserError);
68
77
  }
78
+ get TEMPORARY__showPostFetchStructurePanel() {
79
+ return (this.queryBuilderState.filterState.showPanel ||
80
+ this.showOlapGroupByPanel ||
81
+ this.showPostFilterPanel);
82
+ }
69
83
  get usedExplorerTreePropertyNodeIDs() {
70
84
  let nodeIDs = [];
71
85
  this.projectionColumns.forEach((column) => {
@@ -129,6 +143,32 @@ export class QueryBuilderTDSState extends QueryBuilderFetchStructureImplementati
129
143
  }
130
144
  return undefined;
131
145
  }
146
+ get tdsColumns() {
147
+ const aggregationStateCols = this.aggregationState.columns.map((c) => c.projectionColumnState);
148
+ // remove projection columns in aggregation
149
+ const projectionColumns = this.projectionColumns.filter((c) => !aggregationStateCols.includes(c));
150
+ return [
151
+ ...this.aggregationState.columns,
152
+ ...projectionColumns,
153
+ ...this.olapGroupByState.olapColumns,
154
+ ];
155
+ }
156
+ isDuplicateColumn(col) {
157
+ return (this.tdsColumns.filter((c) => c.columnName === col.columnName).length > 1);
158
+ }
159
+ isColumnInUse(tdsCol) {
160
+ return Boolean([
161
+ ...this.postFilterState.referencedTDSColumns,
162
+ ...this.olapGroupByState.referencedTDSColumns,
163
+ ].find((col) => {
164
+ if (col instanceof QueryBuilderAggregateColumnState) {
165
+ return tdsCol instanceof QueryBuilderAggregateColumnState
166
+ ? tdsCol === col
167
+ : col.projectionColumnState === tdsCol;
168
+ }
169
+ return col === tdsCol;
170
+ }));
171
+ }
132
172
  onClassChange(_class) {
133
173
  return;
134
174
  }
@@ -138,6 +178,9 @@ export class QueryBuilderTDSState extends QueryBuilderFetchStructureImplementati
138
178
  setShowPostFilterPanel(val) {
139
179
  this.showPostFilterPanel = val;
140
180
  }
181
+ setShowOlapGroupByPanel(val) {
182
+ this.showOlapGroupByPanel = val;
183
+ }
141
184
  *convertDerivationProjectionObjects() {
142
185
  const lambdas = new Map();
143
186
  const derivationProjectionColumnStateMap = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,UAAU,EACV,cAAc,EACd,UAAU,EACV,IAAI,EACJ,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,QAAQ,EACR,YAAY,EAEZ,SAAS,GACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAEL,mBAAmB,EACnB,mCAAmC,EACnC,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,KAAK,EAGL,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EAAE,sCAAsC,EAAE,MAAM,uDAAuD,CAAC;AAE/G,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GAExC,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,+CAA+C,EAC/C,kCAAkC,EAClC,iCAAiC,GAElC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,qBAAqB,EACr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,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,sBAAsB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderTDSState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,UAAU,EACV,cAAc,EACd,UAAU,EACV,IAAI,EACJ,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,QAAQ,EACR,YAAY,EAEZ,SAAS,GACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAEL,mBAAmB,EACnB,mCAAmC,EACnC,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,KAAK,EAGL,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,GAC9C,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EAAE,sCAAsC,EAAE,MAAM,uDAAuD,CAAC;AAE/G,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GAExC,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,+CAA+C,EAC/C,kCAA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+GAA+G;gBACrH,IAAI,EAAE,eAAe,CAAC,OAAO;gBAC7B,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,SAAS;wBAChB,IAAI,EAAE,qBAAqB,CAAC,oBAAoB;wBAChD,OAAO,EACL,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CACzD,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE,CACvB;qBACJ;oBACD;wBACE,KAAK,EAAE,QAAQ;wBACf,IAAI,EAAE,qBAAqB,CAAC,OAAO;wBACnC,OAAO,EAAE,IAAI;qBACd;iBACF;aACF,CAAC,CAAC;SACJ;aAAM;YACL,QAAQ,EAAE,CAAC;SACZ;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,gBAAgB;YAC7C,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC;YACjC,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,sBAAsB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -17,8 +17,8 @@ import type { QueryBuilderTDSState } from './QueryBuilderTDSState.js';
17
17
  import type { QueryBuilderProjectionColumnState } from './projection/QueryBuilderProjectionColumnState.js';
18
18
  import { type Hashable } from '@finos/legend-shared';
19
19
  export declare enum COLUMN_SORT_TYPE {
20
- ASC = 0,
21
- DESC = 1
20
+ ASC = "ASC",
21
+ DESC = "DESC"
22
22
  }
23
23
  export declare class SortColumnState implements Hashable {
24
24
  columnState: QueryBuilderProjectionColumnState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryResultSetModifierState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mDAAmD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d,MAAM,sBAAsB,CAAC;AAG9B,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,WAAW,EAAE,iCAAiC,CAAC;IAC/C,QAAQ,mBAAwB;gBAEpB,WAAW,EAAE,iCAAiC;IAY1D,cAAc,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAI5D,WAAW,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI;IAIxC,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,2BAA4B,YAAW,QAAQ;IAC1D,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,SAAS,UAAS;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,UAAS;IACjB,WAAW,EAAE,eAAe,EAAE,CAAM;gBAExB,QAAQ,EAAE,oBAAoB;IAkB1C,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIhC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIvC,cAAc,IAAI,IAAI;IAItB,gBAAgB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAI5C,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIzC,iBAAiB,IAAI,IAAI;IAMzB,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
@@ -18,8 +18,8 @@ import { addUniqueEntry, deleteEntry, hashArray, } from '@finos/legend-shared';
18
18
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../graphManager/QueryBuilderHashUtils.js';
19
19
  export var COLUMN_SORT_TYPE;
20
20
  (function (COLUMN_SORT_TYPE) {
21
- COLUMN_SORT_TYPE[COLUMN_SORT_TYPE["ASC"] = 0] = "ASC";
22
- COLUMN_SORT_TYPE[COLUMN_SORT_TYPE["DESC"] = 1] = "DESC";
21
+ COLUMN_SORT_TYPE["ASC"] = "ASC";
22
+ COLUMN_SORT_TYPE["DESC"] = "DESC";
23
23
  })(COLUMN_SORT_TYPE = COLUMN_SORT_TYPE || (COLUMN_SORT_TYPE = {}));
24
24
  export class SortColumnState {
25
25
  columnState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryResultSetModifierState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAE9F,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qDAAG,CAAA;IACH,uDAAI,CAAA;AACN,CAAC,EAHW,gBAAgB,GAAhB,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED,MAAM,OAAO,eAAe;IAC1B,WAAW,CAAoC;IAC/C,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC;IAEhC,YAAY,WAA8C;QACxD,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,MAAM;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,cAAc,CAAC,GAAsC;QACnD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,WAAW,CAAC,GAAqB;QAC/B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,iBAAiB;YAC9C,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C,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/C,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CACxD,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryResultSetModifierState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAE9F,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,GAAhB,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED,MAAM,OAAO,eAAe;IAC1B,WAAW,CAAoC;IAC/C,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC;IAEhC,YAAY,WAA8C;QACxD,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,MAAM;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;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IAED,gBAAgB,CAAC,GAAoB;QACnC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;IAED,aAAa,CAAC,GAAoB;QAChC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/C,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CACxD,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,yBAAyB;YACtD,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -36,7 +36,7 @@ export class QueryBuilderAggregateOperator {
36
36
  * defaults to using the return type of the projection column state which is being aggregated.
37
37
  */
38
38
  getReturnType(aggregateColumnState) {
39
- return guaranteeNonNullable(aggregateColumnState.projectionColumnState.getReturnType());
39
+ return guaranteeNonNullable(aggregateColumnState.projectionColumnState.getColumnType());
40
40
  }
41
41
  }
42
42
  //# sourceMappingURL=QueryBuilderAggregateOperator.js.map
@@ -18,19 +18,19 @@ import type { Type } from '@finos/legend-graph';
18
18
  import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
19
19
  import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregateOperator.js';
20
20
  import type { QueryBuilderProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
21
- export declare class QueryBuilderAggregateColumnState implements Hashable {
22
- readonly uuid: string;
21
+ import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState_.js';
22
+ export declare class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState implements Hashable {
23
23
  readonly aggregationState: QueryBuilderAggregationState;
24
24
  projectionColumnState: QueryBuilderProjectionColumnState;
25
25
  lambdaParameterName: string;
26
26
  operator: QueryBuilderAggregateOperator;
27
27
  constructor(aggregationState: QueryBuilderAggregationState, projectionColumnState: QueryBuilderProjectionColumnState, operator: QueryBuilderAggregateOperator);
28
- get columnName(): string;
29
28
  setColumnState(val: QueryBuilderProjectionColumnState): void;
30
29
  setLambdaParameterName(val: string): void;
31
30
  setOperator(val: QueryBuilderAggregateOperator): void;
32
- getReturnType(): Type;
31
+ getColumnType(): Type;
33
32
  get hashCode(): string;
33
+ get columnName(): string;
34
34
  }
35
35
  export declare class QueryBuilderAggregationState implements Hashable {
36
36
  readonly tdsState: QueryBuilderTDSState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderAggregationState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AAG5G,qBAAa,gCAAiC,YAAW,QAAQ;IAC/D,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,iCAAiC,CAAC;IACzD,mBAAmB,EAAE,MAAM,CAAgC;IAC3D,QAAQ,EAAE,6BAA6B,CAAC;gBAGtC,gBAAgB,EAAE,4BAA4B,EAC9C,qBAAqB,EAAE,iCAAiC,EACxD,QAAQ,EAAE,6BAA6B;IAiBzC,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,cAAc,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAI5D,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzC,WAAW,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;IAIrD,aAAa,IAAI,IAAI;IAIrB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,6BAA6B,EAAE,CAAM;IACzD,OAAO,EAAE,gCAAgC,EAAE,CAAM;gBAG/C,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,6BAA6B,EAAE;IAc5C,YAAY,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAIzD,SAAS,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAItD,6BAA6B,CAC3B,GAAG,EAAE,6BAA6B,GAAG,SAAS,EAC9C,qBAAqB,EAAE,iCAAiC,GACvD,IAAI;IA6CP,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderAggregationState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AAE5G,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E,qBAAa,gCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,iCAAiC,CAAC;IACzD,mBAAmB,EAAE,MAAM,CAAgC;IAC3D,QAAQ,EAAE,6BAA6B,CAAC;gBAGtC,gBAAgB,EAAE,4BAA4B,EAC9C,qBAAqB,EAAE,iCAAiC,EACxD,QAAQ,EAAE,6BAA6B;IAiBzC,cAAc,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAI5D,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzC,WAAW,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;IAIrD,aAAa,IAAI,IAAI;IAIrB,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;CACF;AAED,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,6BAA6B,EAAE,CAAM;IACzD,OAAO,EAAE,gCAAgC,EAAE,CAAM;gBAG/C,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,6BAA6B,EAAE;IAc5C,YAAY,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAIzD,SAAS,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAItD,6BAA6B,CAC3B,GAAG,EAAE,6BAA6B,GAAG,SAAS,EAC9C,qBAAqB,EAAE,iCAAiC,GACvD,IAAI;IA6CP,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -14,16 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { action, computed, makeObservable, observable } from 'mobx';
17
- import { uuid, deleteEntry, addUniqueEntry, hashArray, } from '@finos/legend-shared';
17
+ import { deleteEntry, addUniqueEntry, hashArray, } from '@finos/legend-shared';
18
18
  import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
19
19
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
20
- export class QueryBuilderAggregateColumnState {
21
- uuid = uuid();
20
+ import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState_.js';
21
+ export class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState {
22
22
  aggregationState;
23
23
  projectionColumnState;
24
24
  lambdaParameterName = DEFAULT_LAMBDA_VARIABLE_NAME;
25
25
  operator;
26
26
  constructor(aggregationState, projectionColumnState, operator) {
27
+ super();
27
28
  makeObservable(this, {
28
29
  projectionColumnState: observable,
29
30
  lambdaParameterName: observable,
@@ -37,9 +38,6 @@ export class QueryBuilderAggregateColumnState {
37
38
  this.projectionColumnState = projectionColumnState;
38
39
  this.operator = operator;
39
40
  }
40
- get columnName() {
41
- return this.projectionColumnState.columnName;
42
- }
43
41
  setColumnState(val) {
44
42
  this.projectionColumnState = val;
45
43
  }
@@ -49,7 +47,7 @@ export class QueryBuilderAggregateColumnState {
49
47
  setOperator(val) {
50
48
  this.operator = val;
51
49
  }
52
- getReturnType() {
50
+ getColumnType() {
53
51
  return this.operator.getReturnType(this);
54
52
  }
55
53
  get hashCode() {
@@ -58,6 +56,9 @@ export class QueryBuilderAggregateColumnState {
58
56
  this.operator,
59
57
  ]);
60
58
  }
59
+ get columnName() {
60
+ return this.projectionColumnState.columnName;
61
+ }
61
62
  }
62
63
  export class QueryBuilderAggregationState {
63
64
  tdsState;