@finos/legend-query-builder 0.6.22 → 0.6.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +8 -5
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  7. package/lib/components/QueryBuilderParametersPanel.js +3 -3
  8. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  9. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  10. package/lib/components/QueryBuilderResultPanel.js +8 -3
  11. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  12. package/lib/components/QueryBuilderSideBar.js +2 -2
  13. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  14. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  15. package/lib/components/QueryBuilderTextEditor.js +4 -3
  16. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  17. package/lib/components/QueryBuilder_TestID.d.ts +1 -1
  18. package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
  19. package/lib/components/QueryBuilder_TestID.js +1 -1
  20. package/lib/components/QueryBuilder_TestID.js.map +1 -1
  21. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  22. package/lib/components/explorer/QueryBuilderExplorerPanel.js +8 -7
  23. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  24. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +5 -5
  25. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  26. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
  27. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -3
  28. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  29. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.d.ts → QueryBuilderTDSWindowPanel.d.ts} +4 -4
  30. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -0
  31. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.js → QueryBuilderTDSWindowPanel.js} +94 -94
  32. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -0
  33. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  34. package/lib/components/shared/LambdaParameterValuesEditor.js +10 -4
  35. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  36. package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
  37. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
  38. package/lib/components/workflows/ClassQueryBuilder.js +1 -1
  39. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  40. package/lib/components/workflows/MappingQueryBuilder.js +1 -1
  41. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  42. package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -14
  43. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  44. package/lib/graphManager/QueryBuilderHashUtils.js +14 -14
  45. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  46. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
  47. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
  48. package/lib/graphManager/QueryBuilderSupportedFunctions.js +1 -0
  49. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
  50. package/lib/index.css +2 -2
  51. package/lib/index.css.map +1 -1
  52. package/lib/package.json +6 -6
  53. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
  54. package/lib/stores/QueryBuilderPreviewDataHelper.js +6 -2
  55. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
  56. package/lib/stores/QueryBuilderResultState.d.ts +3 -1
  57. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  58. package/lib/stores/QueryBuilderResultState.js +4 -1
  59. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  60. package/lib/stores/QueryBuilderStateBuilder.js +1 -1
  61. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  62. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  63. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +26 -9
  64. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  65. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +7 -1
  66. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  67. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +50 -32
  68. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  69. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +6 -6
  70. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  71. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +13 -13
  72. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
  74. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  75. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  76. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +4 -4
  77. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  78. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts → window/QueryBuilderWindowGroupByOperatorLoader.d.ts} +3 -3
  79. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.d.ts.map +1 -0
  80. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js +36 -0
  81. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js.map +1 -0
  82. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +91 -0
  83. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -0
  84. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.js → window/QueryBuilderWindowState.js} +55 -53
  85. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -0
  86. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts → window/QueryBuilderWindowStateBuilder.d.ts} +1 -1
  87. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.d.ts.map +1 -0
  88. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js → window/QueryBuilderWindowStateBuilder.js} +10 -10
  89. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -0
  90. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts → window/QueryBuilderWindowValueSpecificationBuilder.d.ts} +3 -3
  91. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.d.ts.map +1 -0
  92. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js → window/QueryBuilderWindowValueSpecificationBuilder.js} +5 -5
  93. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -0
  94. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts → window/operators/QueryBuilderTDS_WindowOperator.d.ts} +2 -2
  95. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts.map +1 -0
  96. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js → window/operators/QueryBuilderTDS_WindowOperator.js} +2 -2
  97. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.js.map +1 -0
  98. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts +25 -0
  99. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts.map +1 -0
  100. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js → window/operators/QueryBuilderTDS_WindowOperator_Average.js} +6 -4
  101. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -0
  102. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts} +3 -3
  103. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts.map +1 -0
  104. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js → window/operators/QueryBuilderTDS_WindowOperator_Count.js} +4 -4
  105. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -0
  106. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts} +3 -3
  107. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map +1 -0
  108. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js → window/operators/QueryBuilderTDS_WindowOperator_Max.js} +4 -4
  109. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -0
  110. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts} +3 -3
  111. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts.map +1 -0
  112. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js → window/operators/QueryBuilderTDS_WindowOperator_Min.js} +4 -4
  113. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -0
  114. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts} +3 -3
  115. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts.map +1 -0
  116. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js → window/operators/QueryBuilderTDS_WindowOperator_Sum.js} +4 -4
  117. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -0
  118. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts} +3 -3
  119. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts.map +1 -0
  120. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js} +4 -4
  121. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -0
  122. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts} +3 -3
  123. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts.map +1 -0
  124. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js} +4 -4
  125. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -0
  126. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts} +3 -3
  127. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts.map +1 -0
  128. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js} +4 -4
  129. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -0
  130. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts} +3 -3
  131. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts.map +1 -0
  132. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js} +4 -4
  133. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -0
  134. package/lib/stores/shared/LambdaParameterState.d.ts +1 -1
  135. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  136. package/lib/stores/shared/LambdaParameterState.js +1 -1
  137. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  138. package/package.json +13 -13
  139. package/src/components/QueryBuilder.tsx +16 -6
  140. package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
  141. package/src/components/QueryBuilderParametersPanel.tsx +3 -4
  142. package/src/components/QueryBuilderResultPanel.tsx +17 -3
  143. package/src/components/QueryBuilderSideBar.tsx +2 -2
  144. package/src/components/QueryBuilderTextEditor.tsx +10 -2
  145. package/src/components/QueryBuilder_TestID.ts +1 -1
  146. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +12 -1
  147. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +8 -8
  148. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +6 -8
  149. package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.tsx → QueryBuilderTDSWindowPanel.tsx} +166 -166
  150. package/src/components/shared/LambdaParameterValuesEditor.tsx +24 -11
  151. package/src/components/shared/QueryBuilderVariableSelector.tsx +1 -1
  152. package/src/components/workflows/ClassQueryBuilder.tsx +1 -1
  153. package/src/components/workflows/MappingQueryBuilder.tsx +1 -1
  154. package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
  155. package/src/graphManager/QueryBuilderSupportedFunctions.ts +1 -0
  156. package/src/stores/QueryBuilderPreviewDataHelper.ts +6 -2
  157. package/src/stores/QueryBuilderResultState.ts +7 -1
  158. package/src/stores/QueryBuilderStateBuilder.ts +1 -1
  159. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +42 -10
  160. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +79 -34
  161. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +16 -16
  162. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
  163. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +4 -2
  164. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.ts +39 -0
  165. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.ts → window/QueryBuilderWindowState.ts} +83 -76
  166. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.ts → window/QueryBuilderWindowStateBuilder.ts} +19 -19
  167. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.ts → window/QueryBuilderWindowValueSpecificationBuilder.ts} +9 -9
  168. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.ts → window/operators/QueryBuilderTDS_WindowOperator.ts} +1 -1
  169. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.ts → window/operators/QueryBuilderTDS_WindowOperator_Average.ts} +5 -3
  170. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.ts} +3 -3
  171. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.ts} +3 -3
  172. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.ts} +3 -3
  173. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.ts} +3 -3
  174. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.ts} +3 -3
  175. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.ts} +3 -3
  176. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.ts} +3 -3
  177. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts} +3 -3
  178. package/src/stores/shared/LambdaParameterState.ts +2 -1
  179. package/tsconfig.json +15 -15
  180. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +0 -1
  181. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +0 -1
  182. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +0 -1
  183. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js +0 -36
  184. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +0 -1
  185. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts +0 -91
  186. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +0 -1
  187. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +0 -1
  188. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +0 -1
  189. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +0 -1
  190. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +0 -1
  191. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +0 -1
  192. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts.map +0 -1
  193. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +0 -1
  194. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +0 -1
  195. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +0 -1
  196. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +0 -1
  197. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +0 -1
  198. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +0 -1
  199. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +0 -1
  200. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +0 -1
  201. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +0 -1
  202. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts +0 -25
  203. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +0 -1
  204. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +0 -1
  205. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +0 -1
  206. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map +0 -1
  207. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +0 -1
  208. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map +0 -1
  209. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +0 -1
  210. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js.map +0 -1
  211. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +0 -1
  212. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map +0 -1
  213. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.ts +0 -39
@@ -463,14 +463,16 @@ export const QueryBuilderResultPanel = observer(
463
463
  const isQueryValid =
464
464
  !queryBuilderState.isQuerySupported || !queryValidationIssues;
465
465
  const runQuery = (): void => {
466
+ resultState.pressedRunQuery.inProgress();
466
467
  if (queryParametersState.parameterStates.length) {
467
468
  queryParametersState.parameterValuesEditorState.open(
468
469
  (): Promise<void> =>
469
470
  flowResult(resultState.runQuery()).catch(
470
471
  applicationStore.alertUnhandledError,
471
472
  ),
472
- PARAMETER_SUBMIT_ACTION.EXECUTE,
473
+ PARAMETER_SUBMIT_ACTION.RUN,
473
474
  );
475
+ resultState.pressedRunQuery.complete();
474
476
  } else {
475
477
  flowResult(resultState.runQuery()).catch(
476
478
  applicationStore.alertUnhandledError,
@@ -496,6 +498,11 @@ export const QueryBuilderResultPanel = observer(
496
498
  };
497
499
  const allowSettingPreviewLimit = queryBuilderState.isQuerySupported;
498
500
 
501
+ const isRunQueryDisabled =
502
+ !isQueryValid ||
503
+ resultState.isGeneratingPlan ||
504
+ resultState.pressedRunQuery.isInProgress;
505
+
499
506
  const getResultSetDescription = (
500
507
  _executionResult: ExecutionResult,
501
508
  ): string | undefined => {
@@ -526,6 +533,11 @@ export const QueryBuilderResultPanel = observer(
526
533
  <div className="panel__header">
527
534
  <div className="panel__header__title">
528
535
  <div className="panel__header__title__label">result</div>
536
+ {resultState.pressedRunQuery.isInProgress && (
537
+ <div className="panel__header__title__label__status">
538
+ Running Query...
539
+ </div>
540
+ )}
529
541
  <div className="query-builder__result__analytics">
530
542
  {resultDescription ?? ''}
531
543
  </div>
@@ -583,7 +595,7 @@ export const QueryBuilderResultPanel = observer(
583
595
  .join('\n')}`
584
596
  : undefined
585
597
  }
586
- disabled={!isQueryValid}
598
+ disabled={isRunQueryDisabled}
587
599
  >
588
600
  <PlayIcon className="query-builder__result__execute-btn__label__icon" />
589
601
  <div className="query-builder__result__execute-btn__label__title">
@@ -592,18 +604,20 @@ export const QueryBuilderResultPanel = observer(
592
604
  </button>
593
605
  <DropdownMenu
594
606
  className="query-builder__result__execute-btn__dropdown-btn"
595
- disabled={resultState.isGeneratingPlan || !isQueryValid}
607
+ disabled={isRunQueryDisabled}
596
608
  content={
597
609
  <MenuContent>
598
610
  <MenuContentItem
599
611
  className="query-builder__result__execute-btn__option"
600
612
  onClick={generatePlan}
613
+ disabled={isRunQueryDisabled}
601
614
  >
602
615
  Generate Plan
603
616
  </MenuContentItem>
604
617
  <MenuContentItem
605
618
  className="query-builder__result__execute-btn__option"
606
619
  onClick={debugPlanGeneration}
620
+ disabled={isRunQueryDisabled}
607
621
  >
608
622
  Debug
609
623
  </MenuContentItem>
@@ -183,7 +183,7 @@ export const QueryBuilderClassSelector = observer(
183
183
  filterOption={elementFilterOption}
184
184
  formatOptionLabel={getPackageableElementOptionFormatter({
185
185
  darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
186
- pureModel: queryBuilderState.graphManagerState.graph,
186
+ graph: queryBuilderState.graphManagerState.graph,
187
187
  })}
188
188
  />
189
189
  {queryBuilderState.isQuerySupported && (
@@ -341,7 +341,7 @@ const BasicQueryBuilderSetup = observer(
341
341
  filterOption={mappingFilterOption}
342
342
  formatOptionLabel={getPackageableElementOptionFormatter({
343
343
  darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
344
- pureModel: queryBuilderState.graphManagerState.graph,
344
+ graph: queryBuilderState.graphManagerState.graph,
345
345
  })}
346
346
  />
347
347
  </div>
@@ -19,12 +19,13 @@ import { observer } from 'mobx-react-lite';
19
19
  import {
20
20
  clsx,
21
21
  Dialog,
22
- LoadingIcon,
23
22
  Modal,
24
23
  ModalBody,
25
24
  ModalFooter,
25
+ ModalFooterStatus,
26
26
  ModalHeader,
27
27
  PanelLoadingIndicator,
28
+ RefreshIcon,
28
29
  } from '@finos/legend-art';
29
30
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
30
31
  import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
@@ -115,6 +116,10 @@ export const QueryBuilderTextEditor = observer(
115
116
  </div>
116
117
  </ModalBody>
117
118
  <ModalFooter>
119
+ {queryBuilderState.textEditorState.closingQueryState
120
+ .isInProgress && (
121
+ <ModalFooterStatus>Closing Query...</ModalFooterStatus>
122
+ )}
118
123
  {mode === QueryBuilderTextEditorMode.TEXT && (
119
124
  <button
120
125
  className="btn btn--dark btn--caution"
@@ -134,7 +139,10 @@ export const QueryBuilderTextEditor = observer(
134
139
  {queryBuilderState.textEditorState.closingQueryState
135
140
  .isInProgress ? (
136
141
  <>
137
- <LoadingIcon isLoading={true} /> Closing
142
+ <div className="loading-icon__container--spinning">
143
+ <RefreshIcon />
144
+ Closing
145
+ </div>
138
146
  </>
139
147
  ) : (
140
148
  <> Close </>
@@ -23,7 +23,7 @@ export enum QUERY_BUILDER_TEST_ID {
23
23
  QUERY_BUILDER_GRAPH_FETCH = 'query__builder__graph__fetch',
24
24
  QUERY_BUILDER_FILTER = 'query__builder__filter',
25
25
  QUERY_BUILDER_POST_FILTER = 'query__builder__post-filter',
26
- QUERY_BUILDER_OLAP_GROUPBY = 'query__builder__olap-groupby',
26
+ QUERY_BUILDER_WINDOW_GROUPBY = 'query__builder__window',
27
27
  QUERY_BUILDER_EXPLORER = 'query__builder__explorer',
28
28
  QUERY_BUILDER_PROPERTY_SEARCH_PANEL = 'query__builder__property__search__panel',
29
29
  QUERY_BUILDER_RESULT_PANEL = 'query__builder__result__panel',
@@ -204,7 +204,10 @@ const QueryBuilderExplorerPreviewDataModal = observer(
204
204
 
205
205
  return (
206
206
  <Dialog
207
- open={Boolean(previewDataState.previewData)}
207
+ open={
208
+ Boolean(previewDataState.previewData) ||
209
+ previewDataState.isGeneratingPreviewData
210
+ }
208
211
  onClose={close}
209
212
  classes={{
210
213
  root: 'editor-modal__root-container',
@@ -219,7 +222,15 @@ const QueryBuilderExplorerPreviewDataModal = observer(
219
222
  <ModalHeader
220
223
  title={prettyPropertyName(previewDataState.propertyName)}
221
224
  />
225
+ <PanelLoadingIndicator
226
+ isLoading={previewDataState.isGeneratingPreviewData}
227
+ />
222
228
  <ModalBody className="query-builder__explorer__preview-data-modal__body">
229
+ {previewDataState.isGeneratingPreviewData && (
230
+ <div className="query-builder__explorer__preview-data-modal__placeholder">
231
+ Loading preview data...
232
+ </div>
233
+ )}
223
234
  {previewDataState.previewData && (
224
235
  <table className="table">
225
236
  <thead>
@@ -93,9 +93,9 @@ import {
93
93
  renderPropertyTypeIcon,
94
94
  } from './QueryBuilderTDSComponentHelper.js';
95
95
  import {
96
- type QueryBuilderOLAPColumnDragSource,
97
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
98
- } from '../../stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js';
96
+ type QueryBuilderWindowColumnDragSource,
97
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
98
+ } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
99
99
  import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
100
100
 
101
101
  const QueryBuilderPostFilterConditionContextMenu = observer(
@@ -218,7 +218,7 @@ export const QueryBuilderColumnBadge = observer(
218
218
  () => ({
219
219
  accept: [
220
220
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
221
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
221
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
222
222
  ],
223
223
  drop: (item, monitor): void => {
224
224
  if (!monitor.didDrop()) {
@@ -486,12 +486,12 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
486
486
  (item: QueryBuilderPostFilterDropTarget, type: string): void => {
487
487
  if (
488
488
  type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
489
- type === QUERY_BUILDER_OLAP_COLUMN_DND_TYPE
489
+ type === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE
490
490
  ) {
491
491
  const columnState = (
492
492
  item as
493
493
  | QueryBuilderProjectionColumnDragSource
494
- | QueryBuilderOLAPColumnDragSource
494
+ | QueryBuilderWindowColumnDragSource
495
495
  ).columnState as QueryBuilderTDSColumnState;
496
496
  let conditionState: PostFilterConditionState;
497
497
  try {
@@ -553,7 +553,7 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
553
553
  accept: [
554
554
  ...Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE),
555
555
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
556
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
556
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
557
557
  ],
558
558
  drop: (item, monitor): void => {
559
559
  if (!monitor.didDrop()) {
@@ -865,7 +865,7 @@ const QueryBuilderPostFilterPanelContent = observer(
865
865
  () => ({
866
866
  accept: [
867
867
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
868
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
868
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
869
869
  ],
870
870
  drop: (item, monitor): void => {
871
871
  if (!monitor.didDrop()) {
@@ -21,7 +21,7 @@ import {
21
21
  ResizablePanelSplitter,
22
22
  } from '@finos/legend-art';
23
23
  import { QueryBuilderFilterPanel } from '../filter/QueryBuilderFilterPanel.js';
24
- import { QueryBuilderOlapGroupByPanel } from './QueryBuilderOLAPGroupByPanel.js';
24
+ import { QueryBuilderTDSWindowPanel } from './QueryBuilderTDSWindowPanel.js';
25
25
  import { QueryBuilderPostFilterPanel } from './QueryBuilderPostFilterPanel.js';
26
26
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
27
27
 
@@ -29,7 +29,7 @@ export const QueryBuilderPostTDSPanel = observer(
29
29
  (props: { tdsState: QueryBuilderTDSState }) => {
30
30
  const { tdsState } = props;
31
31
  const showFilterPanel = tdsState.queryBuilderState.filterState.showPanel;
32
- const showOLAPGroupByPanel = tdsState.showOlapGroupByPanel;
32
+ const showWindowFuncPanel = tdsState.showWindowFuncPanel;
33
33
  const showPostFilterPanel = tdsState.showPostFilterPanel;
34
34
  if (!tdsState.TEMPORARY__showPostFetchStructurePanel) {
35
35
  return null;
@@ -43,17 +43,15 @@ export const QueryBuilderPostTDSPanel = observer(
43
43
  />
44
44
  </ResizablePanel>
45
45
  )}
46
- {showFilterPanel && (showOLAPGroupByPanel || showPostFilterPanel) && (
46
+ {showFilterPanel && (showWindowFuncPanel || showPostFilterPanel) && (
47
47
  <ResizablePanelSplitter />
48
48
  )}
49
- {showOLAPGroupByPanel && (
49
+ {showWindowFuncPanel && (
50
50
  <ResizablePanel minSize={40}>
51
- <QueryBuilderOlapGroupByPanel
52
- olapGroupByState={tdsState.olapGroupByState}
53
- />
51
+ <QueryBuilderTDSWindowPanel tdsWindowState={tdsState.windowState} />
54
52
  </ResizablePanel>
55
53
  )}
56
- {showOLAPGroupByPanel && showPostFilterPanel && (
54
+ {showWindowFuncPanel && showPostFilterPanel && (
57
55
  <ResizablePanelSplitter />
58
56
  )}
59
57
  {showPostFilterPanel && (