@finos/legend-query-builder 0.4.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. package/lib/components/QueryBuilder.d.ts +1 -0
  2. package/lib/components/QueryBuilder.d.ts.map +1 -1
  3. package/lib/components/QueryBuilder.js +11 -2
  4. package/lib/components/QueryBuilder.js.map +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +23 -0
  6. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -0
  7. package/lib/components/QueryBuilderConstantExpressionPanel.js +105 -0
  8. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -0
  9. package/lib/components/QueryBuilderDiffPanel.d.ts +1 -0
  10. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderDiffPanel.js +1 -2
  12. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderParametersPanel.d.ts +1 -9
  14. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  15. package/lib/components/QueryBuilderParametersPanel.js +10 -27
  16. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  17. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +1 -0
  18. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  19. package/lib/components/QueryBuilderPropertyExpressionEditor.js +60 -12
  20. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  21. package/lib/components/QueryBuilderResultPanel.d.ts +1 -0
  22. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  23. package/lib/components/QueryBuilderSideBar.d.ts +3 -1
  24. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  25. package/lib/components/QueryBuilderSideBar.js +6 -14
  26. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  27. package/lib/components/QueryBuilderTextEditor.d.ts +1 -0
  28. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  29. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -0
  30. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
  31. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -0
  32. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  33. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +1 -0
  34. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  35. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +12 -18
  36. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  37. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -0
  38. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  39. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -0
  40. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
  41. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +1 -0
  42. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  43. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.d.ts → QueryBuilderOLAPGroupByPanel.d.ts} +3 -2
  44. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +1 -0
  45. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.js → QueryBuilderOLAPGroupByPanel.js} +2 -2
  46. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +1 -0
  47. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +1 -0
  48. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +9 -11
  50. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -0
  52. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +1 -1
  54. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  55. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -0
  56. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -0
  58. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  59. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +4 -4
  60. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  61. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -0
  62. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  63. package/lib/components/filter/QueryBuilderFilterPanel.js +8 -9
  64. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  65. package/lib/components/shared/BasicValueSpecificationEditor.d.ts +12 -1
  66. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  67. package/lib/components/shared/BasicValueSpecificationEditor.js +11 -7
  68. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  69. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  70. package/lib/components/shared/CustomDatePicker.js +3 -3
  71. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  72. package/lib/components/shared/LambdaEditor.d.ts +1 -0
  73. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  74. package/lib/components/shared/LambdaEditor.js +1 -15
  75. package/lib/components/shared/LambdaEditor.js.map +1 -1
  76. package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -0
  77. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  78. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +37 -0
  79. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -0
  80. package/lib/components/shared/QueryBuilderVariableSelector.js +53 -0
  81. package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -0
  82. package/lib/components/watermark/QueryBuilderWatermark.d.ts +1 -0
  83. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  84. package/lib/components/watermark/QueryBuilderWatermark.js +9 -11
  85. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
  86. package/lib/graphManager/QueryBuilderHashUtils.d.ts +2 -0
  87. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  88. package/lib/graphManager/QueryBuilderHashUtils.js +2 -0
  89. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  90. package/lib/index.css +1 -17
  91. package/lib/index.css.map +1 -1
  92. package/lib/package.json +6 -6
  93. package/lib/stores/QueryBuilderConfig.d.ts +1 -0
  94. package/lib/stores/QueryBuilderConfig.d.ts.map +1 -1
  95. package/lib/stores/QueryBuilderConfig.js +1 -0
  96. package/lib/stores/QueryBuilderConfig.js.map +1 -1
  97. package/lib/stores/QueryBuilderConstantsState.d.ts +43 -0
  98. package/lib/stores/QueryBuilderConstantsState.d.ts.map +1 -0
  99. package/lib/stores/QueryBuilderConstantsState.js +116 -0
  100. package/lib/stores/QueryBuilderConstantsState.js.map +1 -0
  101. package/lib/stores/QueryBuilderParametersState.d.ts +0 -4
  102. package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -1
  103. package/lib/stores/QueryBuilderParametersState.js +0 -1
  104. package/lib/stores/QueryBuilderParametersState.js.map +1 -1
  105. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +3 -10
  106. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  107. package/lib/stores/QueryBuilderPropertyEditorState.js +6 -140
  108. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  109. package/lib/stores/QueryBuilderState.d.ts +10 -3
  110. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  111. package/lib/stores/QueryBuilderState.js +27 -4
  112. package/lib/stores/QueryBuilderState.js.map +1 -1
  113. package/lib/stores/QueryBuilderStateBuilder.d.ts +4 -3
  114. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  115. package/lib/stores/QueryBuilderStateBuilder.js +50 -42
  116. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  117. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  118. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +23 -25
  119. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  120. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  121. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +14 -78
  122. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  123. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
  124. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  125. package/lib/stores/QueryBuilderValueSpecificationHelper.js +13 -20
  126. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  127. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +2 -1
  128. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  129. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  130. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +2 -1
  131. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  132. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +4 -0
  133. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  134. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +3 -3
  135. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
  136. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -4
  137. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
  138. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +3 -2
  139. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  140. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +15 -2
  141. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  142. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts +3 -3
  143. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
  144. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +6 -6
  145. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
  146. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.d.ts → QueryBuilderOLAPGroupByOperatorLoader.d.ts} +1 -1
  147. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +1 -0
  148. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.js → QueryBuilderOLAPGroupByOperatorLoader.js} +1 -1
  149. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +1 -0
  150. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.d.ts → QueryBuilderOLAPGroupByState.d.ts} +1 -1
  151. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +1 -0
  152. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.js → QueryBuilderOLAPGroupByState.js} +1 -1
  153. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +1 -0
  154. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.d.ts → QueryBuilderOLAPGroupByStateBuilder.d.ts} +3 -3
  155. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +1 -0
  156. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.js → QueryBuilderOLAPGroupByStateBuilder.js} +4 -4
  157. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +1 -0
  158. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts} +2 -2
  159. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +1 -0
  160. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.js → QueryBuilderOLAPGroupByValueSpecificationBuilder.js} +2 -2
  161. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +1 -0
  162. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +2 -1
  163. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  164. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +9 -1
  165. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  166. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +1 -1
  167. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  168. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +2 -1
  169. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  170. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +4 -0
  171. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  172. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +5 -5
  173. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  174. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +10 -10
  175. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  176. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
  177. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  178. package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -1
  179. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  180. package/lib/stores/filter/QueryBuilderFilterState.js +9 -1
  181. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  182. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +2 -2
  183. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
  184. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +6 -4
  185. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  186. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +27 -0
  187. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -0
  188. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +93 -0
  189. package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -0
  190. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +26 -0
  191. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -0
  192. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +60 -0
  193. package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -0
  194. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +70 -0
  195. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -0
  196. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +199 -0
  197. package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -0
  198. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +49 -0
  199. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -0
  200. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js +24 -0
  201. package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -0
  202. package/lib/stores/{QueryBuilderMilestoningState.d.ts → milestoning/QueryBuilderMilestoningState.d.ts} +7 -2
  203. package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -0
  204. package/lib/stores/{QueryBuilderMilestoningState.js → milestoning/QueryBuilderMilestoningState.js} +30 -20
  205. package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -0
  206. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +26 -0
  207. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -0
  208. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +55 -0
  209. package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -0
  210. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
  211. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  212. package/lib/stores/shared/ValueSpecificationEditorHelper.js +58 -2
  213. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  214. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +2 -1
  215. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  216. package/lib/stores/watermark/QueryBuilderWatermarkState.js +6 -0
  217. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  218. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts +2 -2
  219. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts.map +1 -1
  220. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +2 -2
  221. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
  222. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts +2 -2
  223. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
  224. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +7 -4
  225. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
  226. package/lib/stores/workflows/ServiceQueryBuilderState.js +1 -1
  227. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  228. package/package.json +13 -13
  229. package/src/components/QueryBuilder.tsx +38 -0
  230. package/src/components/QueryBuilderConstantExpressionPanel.tsx +291 -0
  231. package/src/components/QueryBuilderDiffPanel.tsx +0 -2
  232. package/src/components/QueryBuilderParametersPanel.tsx +29 -103
  233. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +119 -36
  234. package/src/components/QueryBuilderSideBar.tsx +5 -22
  235. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +29 -39
  236. package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel_.tsx → QueryBuilderOLAPGroupByPanel.tsx} +1 -1
  237. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +18 -19
  238. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +1 -1
  239. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +9 -9
  240. package/src/components/filter/QueryBuilderFilterPanel.tsx +16 -17
  241. package/src/components/shared/BasicValueSpecificationEditor.tsx +47 -22
  242. package/src/components/shared/CustomDatePicker.tsx +3 -2
  243. package/src/components/shared/LambdaEditor.tsx +0 -15
  244. package/src/components/shared/QueryBuilderVariableSelector.tsx +193 -0
  245. package/src/components/watermark/QueryBuilderWatermark.tsx +19 -31
  246. package/src/graphManager/QueryBuilderHashUtils.ts +2 -0
  247. package/src/stores/QueryBuilderConfig.ts +1 -0
  248. package/src/stores/QueryBuilderConstantsState.ts +173 -0
  249. package/src/stores/QueryBuilderParametersState.ts +0 -6
  250. package/src/stores/QueryBuilderPropertyEditorState.ts +6 -235
  251. package/src/stores/QueryBuilderState.ts +36 -4
  252. package/src/stores/QueryBuilderStateBuilder.ts +111 -52
  253. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +34 -51
  254. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +16 -105
  255. package/src/stores/QueryBuilderValueSpecificationHelper.ts +23 -29
  256. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +2 -0
  257. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +14 -2
  258. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +5 -0
  259. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +21 -4
  260. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +7 -0
  261. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByOperatorLoader_.ts → QueryBuilderOLAPGroupByOperatorLoader.ts} +0 -0
  262. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByState_.ts → QueryBuilderOLAPGroupByState.ts} +0 -0
  263. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByStateBuilder_.ts → QueryBuilderOLAPGroupByStateBuilder.ts} +3 -1
  264. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder.ts} +1 -1
  265. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +13 -0
  266. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +1 -1
  267. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +12 -0
  268. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +11 -0
  269. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +1 -1
  270. package/src/stores/filter/QueryBuilderFilterState.ts +13 -0
  271. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +10 -5
  272. package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +165 -0
  273. package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +96 -0
  274. package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +311 -0
  275. package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +77 -0
  276. package/src/stores/{QueryBuilderMilestoningState.ts → milestoning/QueryBuilderMilestoningState.ts} +66 -39
  277. package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +88 -0
  278. package/src/stores/shared/ValueSpecificationEditorHelper.ts +84 -2
  279. package/src/stores/watermark/QueryBuilderWatermarkState.ts +8 -0
  280. package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +3 -0
  281. package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +11 -5
  282. package/src/stores/workflows/ServiceQueryBuilderState.ts +1 -1
  283. package/tsconfig.json +14 -6
  284. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +0 -1
  285. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +0 -1
  286. package/lib/stores/QueryBuilderMilestoningState.d.ts.map +0 -1
  287. package/lib/stores/QueryBuilderMilestoningState.js.map +0 -1
  288. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.d.ts.map +0 -1
  289. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js.map +0 -1
  290. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +0 -1
  291. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +0 -1
  292. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +0 -1
  293. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +0 -1
  294. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +0 -1
  295. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +0 -1
@@ -0,0 +1,291 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import {
18
+ type PackageableElementOption,
19
+ buildElementOption,
20
+ getPackageableElementOptionFormatter,
21
+ LEGEND_APPLICATION_DOCUMENTATION_KEY,
22
+ } from '@finos/legend-application';
23
+ import {
24
+ BlankPanelPlaceholder,
25
+ CustomSelectorInput,
26
+ Dialog,
27
+ InfoCircleIcon,
28
+ Modal,
29
+ ModalBody,
30
+ ModalFooter,
31
+ ModalHeader,
32
+ PanelFormSection,
33
+ PanelFormTextField,
34
+ PlusIcon,
35
+ } from '@finos/legend-art';
36
+ import {
37
+ type Type,
38
+ type ValueSpecification,
39
+ PrimitiveType,
40
+ VariableExpression,
41
+ Multiplicity,
42
+ } from '@finos/legend-graph';
43
+ import { generateEnumerableNameFromToken } from '@finos/legend-shared';
44
+ import { observer } from 'mobx-react-lite';
45
+ import { DEFAULT_CONSTANT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
46
+ import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
47
+ import { QueryBuilderConstantExpressionState } from '../stores/QueryBuilderConstantsState.js';
48
+ import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEditorHelper.js';
49
+ import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
50
+ import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
51
+ import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
52
+
53
+ // Note: We currently only allow constant variables for primitive types of multiplicity ONE.
54
+ // This is why we don't show multiplicity in the editor.
55
+ const QueryBuilderConstantExpressionEditor = observer(
56
+ (props: { constantState: QueryBuilderConstantExpressionState }) => {
57
+ const { constantState } = props;
58
+ const queryBuilderState = constantState.queryBuilderState;
59
+ const applicationStore = queryBuilderState.applicationStore;
60
+ const variableState = queryBuilderState.constantState;
61
+ const varExpression = constantState.variable;
62
+ const variableName = varExpression.name;
63
+ const allVariableNames = queryBuilderState.allVariableNames;
64
+ const isCreating = !variableState.constants.includes(constantState);
65
+ const valueSpec = constantState.value;
66
+ const variableType =
67
+ constantState.value.genericType?.value.rawType ?? PrimitiveType.STRING;
68
+ const selectedType = buildElementOption(variableType);
69
+ const close = (): void => {
70
+ variableState.setSelectedConstant(undefined);
71
+ };
72
+ const changeType = (val: PackageableElementOption<Type>): void => {
73
+ if (variableType !== val.value) {
74
+ constantState.changeValSpecType(val.value);
75
+ }
76
+ };
77
+ const typeOptions: PackageableElementOption<Type>[] =
78
+ queryBuilderState.graphManagerState.graph.primitiveTypes
79
+ .map(buildElementOption)
80
+ .concat(
81
+ queryBuilderState.graphManagerState.graph.enumerations.map(
82
+ buildElementOption,
83
+ ),
84
+ );
85
+ const validationMessage = !variableName
86
+ ? `Constant Name can't be empty`
87
+ : allVariableNames.filter((e) => e === variableName).length >
88
+ (isCreating ? 0 : 1)
89
+ ? 'Constant Name Already Exists'
90
+ : undefined;
91
+ const onAction = (): void => {
92
+ if (isCreating) {
93
+ variableState.addConstant(constantState);
94
+ }
95
+ close();
96
+ };
97
+ const resetConstantValue = (): void => {
98
+ const valSpec = buildDefaultInstanceValue(
99
+ queryBuilderState.graphManagerState.graph,
100
+ variableType,
101
+ );
102
+ constantState.setValueSpec(valSpec);
103
+ };
104
+
105
+ return (
106
+ <Dialog
107
+ open={Boolean(constantState)}
108
+ onClose={close}
109
+ classes={{
110
+ root: 'editor-modal__root-container',
111
+ container: 'editor-modal__container',
112
+ paper: 'editor-modal__content',
113
+ }}
114
+ >
115
+ <Modal
116
+ darkMode={true}
117
+ className="editor-modal query-builder__variables__modal"
118
+ >
119
+ <ModalHeader
120
+ title={`${isCreating ? 'Create Constant' : 'Update Constant'}`}
121
+ />
122
+ <ModalBody className="query-builder__variables__modal__body">
123
+ <PanelFormTextField
124
+ name="Constant Name"
125
+ prompt="Name of constant. Should be descriptive of its purpose."
126
+ update={(value: string | undefined): void =>
127
+ variableExpression_setName(varExpression, value ?? '')
128
+ }
129
+ value={varExpression.name}
130
+ errorMessage={validationMessage}
131
+ isReadOnly={false}
132
+ />
133
+ <PanelFormSection>
134
+ <div className="panel__content__form__section__header__label">
135
+ Type
136
+ </div>
137
+ <div className="panel__content__form__section__header__prompt">
138
+ Data type of the parameter.
139
+ </div>
140
+ <CustomSelectorInput
141
+ placeholder="Choose a type..."
142
+ options={typeOptions}
143
+ onChange={changeType}
144
+ value={selectedType}
145
+ darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
146
+ formatOptionLabel={getPackageableElementOptionFormatter({
147
+ darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
148
+ })}
149
+ />
150
+ </PanelFormSection>
151
+ <PanelFormSection>
152
+ <div className="panel__content__form__section__header__label">
153
+ Value
154
+ </div>
155
+ <div className="query-builder__variable-editor">
156
+ <BasicValueSpecificationEditor
157
+ valueSpecification={valueSpec}
158
+ setValueSpecification={(val: ValueSpecification): void => {
159
+ constantState.setValueSpec(val);
160
+ }}
161
+ graph={queryBuilderState.graphManagerState.graph}
162
+ obseverContext={queryBuilderState.observableContext}
163
+ typeCheckOption={{
164
+ expectedType: variableType,
165
+ match: variableType === PrimitiveType.DATETIME,
166
+ }}
167
+ resetValue={resetConstantValue}
168
+ />
169
+ </div>
170
+ </PanelFormSection>
171
+ </ModalBody>
172
+ <ModalFooter>
173
+ {isCreating && (
174
+ <button
175
+ className="btn modal__footer__close-btn btn--dark"
176
+ onClick={onAction}
177
+ disabled={Boolean(validationMessage)}
178
+ >
179
+ Create
180
+ </button>
181
+ )}
182
+ <button className="btn modal__footer__close-btn" onClick={close}>
183
+ Close
184
+ </button>
185
+ </ModalFooter>
186
+ </Modal>
187
+ </Dialog>
188
+ );
189
+ },
190
+ );
191
+
192
+ export const QueryBuilderConstantExpressionPanel = observer(
193
+ (props: { queryBuilderState: QueryBuilderState }) => {
194
+ const { queryBuilderState } = props;
195
+ const constantState = queryBuilderState.constantState;
196
+ const graph = queryBuilderState.graphManagerState.graph;
197
+ const isReadOnly = !queryBuilderState.isQuerySupported;
198
+ const varNames = queryBuilderState.allVariableNames;
199
+ const seeDocumentation = (): void =>
200
+ queryBuilderState.applicationStore.assistantService.openDocumentationEntry(
201
+ LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY,
202
+ );
203
+ const addConstant = (): void => {
204
+ if (!isReadOnly) {
205
+ const defaultVal = buildDefaultInstanceValue(
206
+ graph,
207
+ PrimitiveType.STRING,
208
+ );
209
+ const constantName = generateEnumerableNameFromToken(
210
+ varNames,
211
+ DEFAULT_CONSTANT_VARIABLE_NAME,
212
+ );
213
+ const variableEx = new VariableExpression(
214
+ constantName,
215
+ Multiplicity.ONE,
216
+ );
217
+ variableEx.genericType = defaultVal.genericType;
218
+ const constState = new QueryBuilderConstantExpressionState(
219
+ queryBuilderState,
220
+ variableEx,
221
+ defaultVal,
222
+ );
223
+ constantState.setSelectedConstant(constState);
224
+ }
225
+ };
226
+
227
+ return (
228
+ <div className="panel query-builder__variables">
229
+ <div className="panel__header">
230
+ <div className="panel__header__title">
231
+ <div className="panel__header__title__label">constants</div>
232
+ <div
233
+ onClick={seeDocumentation}
234
+ className="query-builder__variables__info"
235
+ title={`Constants are static values set to a variable name that can be leveraged within your query. They remain the same for ALL executions`}
236
+ >
237
+ <InfoCircleIcon />
238
+ </div>
239
+ </div>
240
+ {!isReadOnly && (
241
+ <div className="panel__header__actions">
242
+ <button
243
+ className="panel__header__action"
244
+ tabIndex={-1}
245
+ onClick={addConstant}
246
+ title="Add Constant"
247
+ >
248
+ <PlusIcon />
249
+ </button>
250
+ </div>
251
+ )}
252
+ </div>
253
+ <div className="panel__content query-builder__variables__content">
254
+ <>
255
+ {Boolean(queryBuilderState.constantState.constants) &&
256
+ queryBuilderState.constantState.constants.map((constState) => (
257
+ <VariableViewer
258
+ key={constState.uuid}
259
+ queryBuilderState={queryBuilderState}
260
+ variable={constState.variable}
261
+ constantValue={constState.value}
262
+ actions={{
263
+ editVariable: () =>
264
+ constantState.setSelectedConstant(constState),
265
+ deleteVariable: () =>
266
+ constantState.removeConstant(constState),
267
+ }}
268
+ isReadOnly={isReadOnly}
269
+ />
270
+ ))}
271
+ {!constantState.constants.length && (
272
+ <BlankPanelPlaceholder
273
+ text="Add a Constants"
274
+ disabled={isReadOnly}
275
+ onClick={addConstant}
276
+ clickActionType="add"
277
+ previewText="No constants"
278
+ tooltipText="Click to add a new constant"
279
+ />
280
+ )}
281
+ </>
282
+ </div>
283
+ {constantState.selectedConstant && (
284
+ <QueryBuilderConstantExpressionEditor
285
+ constantState={constantState.selectedConstant}
286
+ />
287
+ )}
288
+ </div>
289
+ );
290
+ },
291
+ );
@@ -15,7 +15,6 @@
15
15
  */
16
16
 
17
17
  import {
18
- createPassThroughOnKeyHandler,
19
18
  EDITOR_LANGUAGE,
20
19
  EDITOR_THEME,
21
20
  TAB_SIZE,
@@ -70,7 +69,6 @@ const TextDiffView = observer(
70
69
  readOnly: true,
71
70
  wordWrap: 'on',
72
71
  });
73
- _editor.getOriginalEditor().onKeyDown(createPassThroughOnKeyHandler());
74
72
  setEditor(_editor);
75
73
  }
76
74
  }, [applicationStore, editor]);
@@ -20,23 +20,15 @@ import {
20
20
  Dialog,
21
21
  BlankPanelContent,
22
22
  CustomSelectorInput,
23
- PencilIcon,
24
- TimesIcon,
25
- DollarIcon,
26
23
  PlusIcon,
27
- DragPreviewLayer,
28
- useDragPreviewLayer,
29
24
  BlankPanelPlaceholder,
30
25
  Modal,
31
26
  ModalBody,
32
27
  ModalFooter,
33
28
  ModalHeader,
34
29
  PanelFormTextField,
30
+ InfoCircleIcon,
35
31
  } from '@finos/legend-art';
36
- import {
37
- type QueryBuilderParameterDragSource,
38
- QUERY_BUILDER_PARAMETER_DND_TYPE,
39
- } from '../stores/QueryBuilderParametersState.js';
40
32
  import {
41
33
  type Type,
42
34
  VariableExpression,
@@ -51,13 +43,14 @@ import {
51
43
  buildElementOption,
52
44
  getPackageableElementOptionFormatter,
53
45
  useApplicationStore,
46
+ LEGEND_APPLICATION_DOCUMENTATION_KEY,
54
47
  } from '@finos/legend-application';
55
- import { useDrag } from 'react-dnd';
56
48
  import { generateEnumerableNameFromToken } from '@finos/legend-shared';
57
49
  import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
58
50
  import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
59
51
  import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
60
52
  import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEditor.js';
53
+ import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
61
54
 
62
55
  type MultiplicityOption = { label: string; value: Multiplicity };
63
56
 
@@ -147,12 +140,12 @@ const VariableExpressionEditor = observer(
147
140
  >
148
141
  <Modal
149
142
  darkMode={true}
150
- className="editor-modal query-builder__parameters__modal"
143
+ className="editor-modal query-builder__variables__modal"
151
144
  >
152
145
  <ModalHeader
153
146
  title={`${isCreating ? 'Create Parameter' : 'Update Parameter'}`}
154
147
  />
155
- <ModalBody className="query-builder__parameters__modal__body">
148
+ <ModalBody className="query-builder__variables__modal__body">
156
149
  <PanelFormTextField
157
150
  name="Parameter Name"
158
151
  prompt="Name of the parameter. Should be descriptive of its purpose."
@@ -223,90 +216,6 @@ const VariableExpressionEditor = observer(
223
216
  },
224
217
  );
225
218
 
226
- export const VariableExpressionViewer = observer(
227
- (props: {
228
- queryBuilderState: QueryBuilderState;
229
- isReadOnly: boolean;
230
- hideActions?: boolean;
231
- variableExpressionState: LambdaParameterState;
232
- }) => {
233
- const {
234
- queryBuilderState,
235
- isReadOnly,
236
- hideActions,
237
- variableExpressionState,
238
- } = props;
239
- const queryParameterState = queryBuilderState.parametersState;
240
- const variable = variableExpressionState.parameter;
241
- const name = variable.name;
242
- const variableType = variable.genericType?.value.rawType;
243
- const typeName = variableType?.name;
244
- const editVariable = (): void => {
245
- queryParameterState.setSelectedParameter(variableExpressionState);
246
- };
247
- const deleteVariable = (): void =>
248
- queryParameterState.removeParameter(variableExpressionState);
249
- const [, dragConnector, dragPreviewConnector] = useDrag(
250
- () => ({
251
- type: QUERY_BUILDER_PARAMETER_DND_TYPE,
252
- item: { variable: variableExpressionState },
253
- }),
254
- [variableExpressionState],
255
- );
256
- useDragPreviewLayer(dragPreviewConnector);
257
-
258
- return (
259
- <div className="query-builder__parameters__parameter" ref={dragConnector}>
260
- <DragPreviewLayer
261
- labelGetter={(item: QueryBuilderParameterDragSource): string =>
262
- item.variable.variableName === ''
263
- ? '(unknown)'
264
- : item.variable.variableName
265
- }
266
- types={[QUERY_BUILDER_PARAMETER_DND_TYPE]}
267
- />
268
- <div className="query-builder__parameters__parameter__content">
269
- <div className="query-builder__parameters__parameter__icon">
270
- <div className="query-builder__parameters__parameter-icon">
271
- <DollarIcon />
272
- </div>
273
- </div>
274
- <div className="query-builder__parameters__parameter__label">
275
- {name}
276
- <div className="query-builder__parameters__parameter__type">
277
- <div className="query-builder__parameters__parameter__type__label">
278
- {typeName}
279
- </div>
280
- </div>
281
- </div>
282
- </div>
283
- {!hideActions && (
284
- <div className="query-builder__parameters__parameter__actions">
285
- <button
286
- className="query-builder__parameters__parameter__action"
287
- tabIndex={-1}
288
- disabled={isReadOnly}
289
- onClick={editVariable}
290
- title="Edit"
291
- >
292
- <PencilIcon />
293
- </button>
294
- <button
295
- className="query-builder__parameters__parameter__action"
296
- tabIndex={-1}
297
- onClick={deleteVariable}
298
- disabled={isReadOnly}
299
- title="Remove"
300
- >
301
- <TimesIcon />
302
- </button>
303
- </div>
304
- )}
305
- </div>
306
- );
307
- },
308
- );
309
-
310
219
  export const QueryBuilderParametersPanel = observer(
311
220
  (props: { queryBuilderState: QueryBuilderState }) => {
312
221
  const { queryBuilderState } = props;
@@ -315,6 +224,10 @@ export const QueryBuilderParametersPanel = observer(
315
224
  const varNames = queryBuilderState.parametersState.parameterStates.map(
316
225
  (parameter) => parameter.variableName,
317
226
  );
227
+ const seeDocumentation = (): void =>
228
+ queryBuilderState.applicationStore.assistantService.openDocumentationEntry(
229
+ LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY,
230
+ );
318
231
  const addParameter = (): void => {
319
232
  if (!isReadOnly && !queryBuilderState.isParameterSupportDisabled) {
320
233
  const parmaterState = new LambdaParameterState(
@@ -334,10 +247,17 @@ export const QueryBuilderParametersPanel = observer(
334
247
  };
335
248
 
336
249
  return (
337
- <div className="panel query-builder__parameters">
250
+ <div className="panel query-builder__variables">
338
251
  <div className="panel__header">
339
252
  <div className="panel__header__title">
340
253
  <div className="panel__header__title__label">parameters</div>
254
+ <div
255
+ onClick={seeDocumentation}
256
+ className="query-builder__variables__info"
257
+ title={`Parameters are variables assigned to your query. They are dynamic in nature and can change for each execution.`}
258
+ >
259
+ <InfoCircleIcon />
260
+ </div>
341
261
  </div>
342
262
  {!isReadOnly && !queryBuilderState.isParameterSupportDisabled && (
343
263
  <div className="panel__header__actions">
@@ -352,16 +272,22 @@ export const QueryBuilderParametersPanel = observer(
352
272
  </div>
353
273
  )}
354
274
  </div>
355
- <div className="panel__content query-builder__parameters__content">
275
+ <div className="panel__content query-builder__variables__content">
356
276
  {!queryBuilderState.isParameterSupportDisabled && (
357
277
  <>
358
278
  {Boolean(queryParameterState.parameterStates.length) &&
359
- queryParameterState.parameterStates.map((parameter) => (
360
- <VariableExpressionViewer
361
- key={parameter.uuid}
362
- queryBuilderState={queryBuilderState}
279
+ queryParameterState.parameterStates.map((pState) => (
280
+ <VariableViewer
281
+ key={pState.uuid}
282
+ variable={pState.parameter}
363
283
  isReadOnly={isReadOnly}
364
- variableExpressionState={parameter}
284
+ queryBuilderState={queryBuilderState}
285
+ actions={{
286
+ editVariable: () =>
287
+ queryParameterState.setSelectedParameter(pState),
288
+ deleteVariable: () =>
289
+ queryParameterState.removeParameter(pState),
290
+ }}
365
291
  />
366
292
  ))}
367
293
  {!queryParameterState.parameterStates.length && (