@finos/legend-query-builder 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (399) 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 +23 -51
  4. package/lib/components/QueryBuilder.js.map +1 -1
  5. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  6. package/lib/components/QueryBuilderDiffPanel.js +4 -5
  7. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderNavigationBlocker.d.ts +22 -0
  9. package/lib/components/QueryBuilderNavigationBlocker.d.ts.map +1 -0
  10. package/lib/components/QueryBuilderNavigationBlocker.js +48 -0
  11. package/lib/components/QueryBuilderNavigationBlocker.js.map +1 -0
  12. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  13. package/lib/components/QueryBuilderResultPanel.js +19 -19
  14. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  15. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  16. package/lib/components/QueryBuilderSideBar.js +1 -1
  17. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  18. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  19. package/lib/components/QueryBuilderTextEditor.js +3 -3
  20. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  21. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +23 -0
  22. package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -0
  23. package/lib/components/QueryBuilder_LegendApplicationPlugin.js +31 -0
  24. package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -0
  25. package/lib/components/QueryBuilder_TestID.d.ts +1 -1
  26. package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
  27. package/lib/components/QueryBuilder_TestID.js +1 -1
  28. package/lib/components/QueryBuilder_TestID.js.map +1 -1
  29. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  30. package/lib/components/explorer/QueryBuilderExplorerPanel.js +4 -4
  31. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  32. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  33. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +2 -2
  34. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  35. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
  36. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +4 -4
  37. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
  38. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
  39. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  40. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +23 -28
  41. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  42. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +2 -2
  43. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  44. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +12 -12
  45. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  46. package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.d.ts → QueryBuilderTDSPanel.d.ts} +4 -4
  47. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -0
  48. package/lib/components/fetch-structure/{QueryBuilderProjectionPanel.js → QueryBuilderTDSPanel.js} +37 -38
  49. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -0
  50. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  51. package/lib/components/filter/QueryBuilderFilterPanel.js +3 -3
  52. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  53. package/lib/components/shared/LambdaEditor.d.ts +1 -11
  54. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  55. package/lib/components/shared/LambdaEditor.js +23 -63
  56. package/lib/components/shared/LambdaEditor.js.map +1 -1
  57. package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
  58. package/lib/components/workflows/ServiceQueryBuilder.js +14 -17
  59. package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
  60. package/lib/index.css +2 -2
  61. package/lib/index.css.map +1 -1
  62. package/lib/index.d.ts +6 -4
  63. package/lib/index.d.ts.map +1 -1
  64. package/lib/index.js +6 -4
  65. package/lib/index.js.map +1 -1
  66. package/lib/package.json +6 -7
  67. package/lib/stores/QueryBuilderChangeDetectionState.js +1 -1
  68. package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -1
  69. package/lib/stores/QueryBuilderCommand.d.ts +21 -0
  70. package/lib/stores/QueryBuilderCommand.d.ts.map +1 -0
  71. package/lib/stores/QueryBuilderCommand.js +26 -0
  72. package/lib/stores/QueryBuilderCommand.js.map +1 -0
  73. package/lib/stores/QueryBuilderPreviewDataHelper.js +25 -25
  74. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
  75. package/lib/stores/QueryBuilderState.d.ts +4 -4
  76. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  77. package/lib/stores/QueryBuilderState.js +13 -7
  78. package/lib/stores/QueryBuilderState.js.map +1 -1
  79. package/lib/stores/QueryBuilderStateBuilder.js +3 -3
  80. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  81. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +2 -2
  82. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
  83. package/lib/stores/QueryBuilderTypeaheadHelper.js +14 -14
  84. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
  85. package/lib/stores/QueryBuilderValueSpecificationHelper.js +3 -4
  86. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  87. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -1
  88. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  89. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +1 -1
  90. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  91. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +4 -4
  92. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
  93. package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.d.ts → tds/QueryBuilderTDSState.d.ts} +4 -4
  94. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -0
  95. package/lib/stores/fetch-structure/{projection/QueryBuilderProjectionState.js → tds/QueryBuilderTDSState.js} +27 -27
  96. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -0
  97. package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.d.ts +4 -4
  98. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -0
  99. package/lib/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.js +4 -4
  100. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -0
  101. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
  102. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
  103. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.js +2 -2
  104. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
  105. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -0
  106. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
  107. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -0
  108. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
  109. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.d.ts +4 -4
  110. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
  111. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.js +5 -5
  112. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -0
  113. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -0
  114. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
  115. package/lib/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.js +10 -10
  116. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
  117. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts +1 -1
  118. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -0
  119. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +1 -1
  120. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -0
  121. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +1 -1
  122. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
  123. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -2
  124. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
  125. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +1 -1
  126. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
  127. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -2
  128. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
  129. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +1 -1
  130. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
  131. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +1 -1
  132. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
  133. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +1 -1
  134. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
  135. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +3 -3
  136. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
  137. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +1 -1
  138. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
  139. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +3 -3
  140. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
  141. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +1 -1
  142. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
  143. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.js +1 -1
  144. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
  145. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +1 -1
  146. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
  147. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.js +1 -1
  148. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
  149. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +1 -1
  150. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
  151. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
  152. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
  153. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +1 -1
  154. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
  155. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
  156. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
  157. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +1 -1
  158. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
  159. package/lib/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +1 -1
  160. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
  161. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -0
  162. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
  163. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.js +0 -0
  164. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
  165. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -0
  166. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
  167. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -0
  168. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
  169. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.d.ts +4 -4
  170. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
  171. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.js +10 -12
  172. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -0
  173. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -0
  174. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
  175. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.js +13 -14
  176. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
  177. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -0
  178. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
  179. package/lib/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +3 -3
  180. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
  181. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +1 -1
  182. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
  183. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
  184. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
  185. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +0 -0
  186. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -0
  187. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +1 -1
  188. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -0
  189. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -0
  190. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
  191. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -4
  192. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
  193. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -0
  194. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
  195. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -4
  196. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
  197. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -0
  198. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
  199. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +7 -7
  200. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
  201. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -0
  202. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
  203. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -4
  204. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
  205. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -0
  206. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
  207. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -0
  208. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
  209. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -0
  210. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
  211. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.js +5 -5
  212. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
  213. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -0
  214. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
  215. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +1 -1
  216. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
  217. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -0
  218. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
  219. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -4
  220. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
  221. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -0
  222. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
  223. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -0
  224. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
  225. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -0
  226. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
  227. package/lib/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -4
  228. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
  229. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.d.ts +9 -9
  230. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
  231. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.js +20 -20
  232. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -0
  233. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.d.ts +1 -1
  234. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
  235. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.js +19 -19
  236. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
  237. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.d.ts +2 -2
  238. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
  239. package/lib/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.js +28 -28
  240. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
  241. package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
  242. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  243. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  244. package/lib/stores/shared/ValueSpecificationEditorHelper.js +3 -4
  245. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  246. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +3 -1
  247. package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
  248. package/lib/stores/workflows/ServiceQueryBuilderState.js +5 -1
  249. package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
  250. package/package.json +13 -14
  251. package/src/components/QueryBuilder.tsx +96 -168
  252. package/src/components/QueryBuilderDiffPanel.tsx +3 -4
  253. package/src/components/QueryBuilderNavigationBlocker.tsx +62 -0
  254. package/src/components/QueryBuilderResultPanel.tsx +39 -48
  255. package/src/components/QueryBuilderSideBar.tsx +1 -0
  256. package/src/components/QueryBuilderTextEditor.tsx +3 -4
  257. package/src/components/QueryBuilder_LegendApplicationPlugin.ts +44 -0
  258. package/src/components/QueryBuilder_TestID.ts +1 -1
  259. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -6
  260. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +2 -4
  261. package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +4 -8
  262. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +35 -46
  263. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +17 -20
  264. package/src/components/fetch-structure/{QueryBuilderProjectionPanel.tsx → QueryBuilderTDSPanel.tsx} +47 -57
  265. package/src/components/filter/QueryBuilderFilterPanel.tsx +4 -7
  266. package/src/components/shared/LambdaEditor.tsx +22 -85
  267. package/src/components/workflows/ServiceQueryBuilder.tsx +34 -65
  268. package/src/index.ts +9 -4
  269. package/src/stores/QueryBuilderChangeDetectionState.ts +1 -1
  270. package/src/stores/QueryBuilderCommand.ts +28 -0
  271. package/src/stores/QueryBuilderPreviewDataHelper.ts +28 -28
  272. package/src/stores/QueryBuilderState.ts +31 -10
  273. package/src/stores/QueryBuilderStateBuilder.ts +3 -3
  274. package/src/stores/QueryBuilderTypeaheadHelper.ts +18 -18
  275. package/src/stores/QueryBuilderValueSpecificationHelper.ts +3 -3
  276. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -1
  277. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +4 -4
  278. package/src/stores/fetch-structure/{projection/QueryBuilderProjectionState.ts → tds/QueryBuilderTDSState.ts} +32 -27
  279. package/src/stores/fetch-structure/{projection → tds}/QueryResultSetModifierState.ts +6 -6
  280. package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperator.ts +2 -2
  281. package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -0
  282. package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationState.ts +10 -10
  283. package/src/stores/fetch-structure/{projection → tds}/aggregation/QueryBuilderAggregationStateBuilder.ts +10 -12
  284. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -2
  285. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -2
  286. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -2
  287. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +1 -1
  288. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +3 -3
  289. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +3 -3
  290. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +1 -1
  291. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +1 -1
  292. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
  293. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
  294. package/src/stores/fetch-structure/{projection → tds}/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +1 -1
  295. package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperator.ts +0 -0
  296. package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -0
  297. package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterState.ts +15 -17
  298. package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterStateBuilder.ts +13 -15
  299. package/src/stores/fetch-structure/{projection → tds}/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +3 -3
  300. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
  301. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +1 -1
  302. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -4
  303. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -4
  304. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +7 -7
  305. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +4 -4
  306. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -0
  307. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +5 -5
  308. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
  309. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +4 -4
  310. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -0
  311. package/src/stores/fetch-structure/{projection → tds}/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -4
  312. package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionColumnState.ts +23 -27
  313. package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionStateBuilder.ts +23 -24
  314. package/src/stores/fetch-structure/{projection → tds/projection}/QueryBuilderProjectionValueSpecificationBuilder.ts +40 -45
  315. package/src/stores/filter/QueryBuilderFilterState.ts +1 -1
  316. package/src/stores/shared/ValueSpecificationEditorHelper.ts +3 -4
  317. package/src/stores/workflows/ServiceQueryBuilderState.ts +6 -0
  318. package/tsconfig.json +41 -39
  319. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
  320. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
  321. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
  322. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
  323. package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -48
  324. package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
  325. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
  326. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
  327. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
  328. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
  329. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
  330. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
  331. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
  332. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
  333. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
  334. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
  335. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
  336. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
  337. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
  338. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
  339. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
  340. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
  341. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
  342. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
  343. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +0 -1
  344. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +0 -1
  345. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
  346. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
  347. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
  348. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
  349. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
  350. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
  351. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
  352. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
  353. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
  354. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
  355. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
  356. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
  357. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
  358. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
  359. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
  360. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
  361. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
  362. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
  363. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
  364. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
  365. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
  366. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
  367. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
  368. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
  369. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
  370. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
  371. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
  372. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
  373. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
  374. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
  375. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
  376. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
  377. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +0 -1
  378. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +0 -1
  379. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
  380. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
  381. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
  382. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
  383. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
  384. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
  385. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
  386. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
  387. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  388. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
  389. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
  390. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
  391. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
  392. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
  393. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
  394. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
  395. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
  396. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
  397. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
  398. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
  399. package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
@@ -14,24 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import {
18
- CustomSelectorInput,
19
- PURE_MappingIcon,
20
- PURE_RuntimeIcon,
21
- PlayIcon,
22
- } from '@finos/legend-art';
17
+ import { CustomSelectorInput, PlayIcon, RobotIcon } from '@finos/legend-art';
23
18
  import { observer } from 'mobx-react-lite';
24
- import { getMappingCompatibleClasses } from '@finos/legend-graph';
19
+ import { getMappingCompatibleClasses, type Service } from '@finos/legend-graph';
25
20
  import {
26
- getPackageableElementOptionFormatter,
27
21
  buildElementOption,
28
22
  useApplicationStore,
23
+ type PackageableElementOption,
29
24
  } from '@finos/legend-application';
30
- import {
31
- buildRuntimeValueOption,
32
- getRuntimeOptionFormatter,
33
- QueryBuilderClassSelector,
34
- } from '../QueryBuilderSideBar.js';
25
+ import { QueryBuilderClassSelector } from '../QueryBuilderSideBar.js';
35
26
  import type {
36
27
  ServiceExecutionContext,
37
28
  ServiceQueryBuilderState,
@@ -49,7 +40,7 @@ const buildExecutionContextOption = (
49
40
  });
50
41
 
51
42
  /**
52
- * This setup panel supports cascading in order: Execution Context -> Class
43
+ * This setup panel supports cascading in order: Service -> Execution Context -> Class
53
44
  *
54
45
  * In other words, we will only show:
55
46
  * - For class selector: the list of compatible classes with the selected mapping
@@ -61,15 +52,18 @@ const ServiceQueryBuilderSetupPanelContent = observer(
61
52
  const { queryBuilderState } = props;
62
53
  const applicationStore = useApplicationStore();
63
54
 
64
- // mapping
65
- const selectedMappingOption = queryBuilderState.mapping
66
- ? buildElementOption(queryBuilderState.mapping)
67
- : null;
68
-
69
- // runtime
70
- const selectedRuntimeOption = queryBuilderState.runtimeValue
71
- ? buildRuntimeValueOption(queryBuilderState.runtimeValue)
72
- : null;
55
+ // execution context
56
+ const serviceOptions =
57
+ queryBuilderState.usableServices?.map(buildElementOption) ?? [];
58
+ const selectedServiceOption = buildElementOption(queryBuilderState.service);
59
+ const onServiceOptionChange = (
60
+ option: PackageableElementOption<Service>,
61
+ ): void => {
62
+ if (option.value === queryBuilderState.service) {
63
+ return;
64
+ }
65
+ queryBuilderState.onServiceChange?.(option.value);
66
+ };
73
67
 
74
68
  // execution context
75
69
  const executionContextOptions = queryBuilderState.executionContexts.map(
@@ -109,6 +103,23 @@ const ServiceQueryBuilderSetupPanelContent = observer(
109
103
  </div>
110
104
  </div>
111
105
  <div className="query-builder__setup__config-group__content">
106
+ <div className="query-builder__setup__config-group__item">
107
+ <div
108
+ className="btn--sm query-builder__setup__config-group__item__label"
109
+ title="service"
110
+ >
111
+ <RobotIcon className="query-builder__setup__service__icon__service" />
112
+ </div>
113
+ <CustomSelectorInput
114
+ className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
115
+ placeholder="Choose a service..."
116
+ options={serviceOptions}
117
+ disabled={serviceOptions.length <= 1}
118
+ onChange={onServiceOptionChange}
119
+ value={selectedServiceOption}
120
+ darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
121
+ />
122
+ </div>
112
123
  {/* We will display mapping and runtime selector for single-execution and execution context for multi-execution */}
113
124
  {Boolean(queryBuilderState.executionContexts.length) && (
114
125
  <>
@@ -131,48 +142,6 @@ const ServiceQueryBuilderSetupPanelContent = observer(
131
142
  </div>
132
143
  </>
133
144
  )}
134
- {!queryBuilderState.executionContexts.length && (
135
- <>
136
- <div className="query-builder__setup__config-group__item">
137
- <div
138
- className="btn--sm query-builder__setup__config-group__item__label"
139
- title="mapping"
140
- >
141
- <PURE_MappingIcon />
142
- </div>
143
- <CustomSelectorInput
144
- className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
145
- disabled={true}
146
- options={[]}
147
- value={selectedMappingOption}
148
- darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
149
- formatOptionLabel={getPackageableElementOptionFormatter({
150
- darkMode:
151
- !applicationStore.TEMPORARY__isLightThemeEnabled,
152
- })}
153
- />
154
- </div>
155
- <div className="query-builder__setup__config-group__item">
156
- <div
157
- className="btn--sm query-builder__setup__config-group__item__label"
158
- title="runtime"
159
- >
160
- <PURE_RuntimeIcon />
161
- </div>
162
- <CustomSelectorInput
163
- className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
164
- disabled={true}
165
- options={[]}
166
- value={selectedRuntimeOption}
167
- darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
168
- formatOptionLabel={getRuntimeOptionFormatter({
169
- darkMode:
170
- !applicationStore.TEMPORARY__isLightThemeEnabled,
171
- })}
172
- />
173
- </div>
174
- </>
175
- )}
176
145
  </div>
177
146
  </div>
178
147
  <QueryBuilderClassSelector
package/src/index.ts CHANGED
@@ -17,9 +17,14 @@
17
17
  export * from './stores/QueryBuilderBootstraper.js';
18
18
  export { QueryBuilder_GraphManagerPreset } from './graphManager/QueryBuilder_GraphManagerPreset.js';
19
19
 
20
- export { QUERY_BUILDER_TEST_ID } from './components//QueryBuilder_TestID.js';
21
- export { QueryBuilder } from './components//QueryBuilder.js';
22
- export { QueryBuilderState } from './stores//QueryBuilderState.js';
20
+ export { QUERY_BUILDER_TEST_ID } from './components/QueryBuilder_TestID.js';
21
+ export { QueryBuilder_LegendApplicationPlugin } from './components/QueryBuilder_LegendApplicationPlugin.js';
22
+ export { QueryBuilderNavigationBlocker } from './components/QueryBuilderNavigationBlocker.js';
23
+ export {
24
+ QueryBuilder,
25
+ QUERY_BUILDER_BACKDROP_CONTAINER_ID,
26
+ } from './components/QueryBuilder.js';
27
+ export { QueryBuilderState } from './stores/QueryBuilderState.js';
23
28
 
24
29
  export { QueryBuilderPropertySearchState } from './stores/explorer/QueryBuilderPropertySearchState.js';
25
30
  export {
@@ -32,7 +37,7 @@ export { MappingQueryBuilderState } from './stores/workflows/MappingQueryBuilder
32
37
  export {
33
38
  type ServiceExecutionContext,
34
39
  ServiceQueryBuilderState,
35
- } from './stores//workflows/ServiceQueryBuilderState.js';
40
+ } from './stores/workflows/ServiceQueryBuilderState.js';
36
41
 
37
42
  export { getQueryBuilderGraphManagerExtension } from './graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js';
38
43
  export type { ServiceExecutionAnalysisResult } from './graphManager/action/analytics/ServiceExecutionAnalysis.js';
@@ -157,7 +157,7 @@ export class QueryBuilderChangeDetectionState {
157
157
  ),
158
158
  },
159
159
  {
160
- label: 'Cancel',
160
+ label: 'Abort',
161
161
  type: ActionAlertActionType.PROCEED,
162
162
  default: true,
163
163
  },
@@ -0,0 +1,28 @@
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 type { CommandConfigData } from '@finos/legend-application';
18
+
19
+ export enum QUERY_BUILDER_COMMAND_KEY {
20
+ COMPILE = 'query-builder.compile',
21
+ }
22
+
23
+ export const QUERY_BUILDER_COMMAND_CONFIG: CommandConfigData = {
24
+ [QUERY_BUILDER_COMMAND_KEY.COMPILE]: {
25
+ title: 'Query Builder: Compile query',
26
+ defaultKeyboardShortcut: 'f9',
27
+ },
28
+ };
@@ -19,22 +19,22 @@ import type {
19
19
  AbstractPropertyExpression,
20
20
  } from '@finos/legend-graph';
21
21
  import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
22
- import { QueryBuilderAggregateOperator_Average } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js';
23
- import { QueryBuilderAggregateOperator_Count } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js';
24
- import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js';
25
- import { QueryBuilderAggregateOperator_Max } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js';
26
- import { QueryBuilderAggregateOperator_Min } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js';
27
- import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js';
28
- import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js';
29
- import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js';
30
- import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
22
+ import { QueryBuilderAggregateOperator_Average } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js';
23
+ import { QueryBuilderAggregateOperator_Count } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js';
24
+ import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js';
25
+ import { QueryBuilderAggregateOperator_Max } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js';
26
+ import { QueryBuilderAggregateOperator_Min } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js';
27
+ import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js';
28
+ import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js';
29
+ import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js';
30
+ import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
31
31
  import type { QueryBuilderState } from './QueryBuilderState.js';
32
32
  import {
33
33
  COLUMN_SORT_TYPE,
34
34
  SortColumnState,
35
- } from './fetch-structure/projection/QueryResultSetModifierState.js';
36
- import type { QueryBuilderAggregateOperator } from './fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js';
37
- import { QueryBuilderProjectionState } from './fetch-structure/projection/QueryBuilderProjectionState.js';
35
+ } from './fetch-structure/tds/QueryResultSetModifierState.js';
36
+ import type { QueryBuilderAggregateOperator } from './fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js';
37
+ import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
38
38
 
39
39
  const PREVIEW_DATA_TAKE_LIMIT = 10;
40
40
  const PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME = 'Value';
@@ -75,12 +75,12 @@ const NUMERIC_AGG_FUNC_TO_AGG_OP: [
75
75
  ];
76
76
 
77
77
  const createSimpleProjectionColumn = (
78
- projectionState: QueryBuilderProjectionState,
78
+ tdsState: QueryBuilderTDSState,
79
79
  propertyExpression: AbstractPropertyExpression,
80
80
  columnName: string,
81
81
  ): QueryBuilderSimpleProjectionColumnState => {
82
82
  const col = new QueryBuilderSimpleProjectionColumnState(
83
- projectionState,
83
+ tdsState,
84
84
  propertyExpression,
85
85
  false,
86
86
  );
@@ -123,18 +123,18 @@ export const buildNumericPreviewDataQuery = (
123
123
  // ]
124
124
  // )
125
125
  const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
126
- const projectionState = guaranteeType(
126
+ const tdsState = guaranteeType(
127
127
  builderState.fetchStructureState.implementation,
128
- QueryBuilderProjectionState,
128
+ QueryBuilderTDSState,
129
129
  );
130
- const aggregationState = projectionState.aggregationState;
130
+ const aggregationState = tdsState.aggregationState;
131
131
  NUMERIC_AGG_FUNC_TO_AGG_OP.forEach((val) => {
132
132
  const colState = createSimpleProjectionColumn(
133
- projectionState,
133
+ tdsState,
134
134
  propertyExpression,
135
135
  val[0],
136
136
  );
137
- projectionState.columns.push(colState);
137
+ tdsState.projectionColumns.push(colState);
138
138
  const valAggOp = guaranteeNonNullable(
139
139
  aggregationState.operators.find((t) => t instanceof val[1]),
140
140
  );
@@ -163,38 +163,38 @@ export const buildNonNumericPreviewDataQuery = (
163
163
  // ]
164
164
  // )->sort([desc('Count'), asc('Value')])->take(10)
165
165
  const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
166
- const projectionState = guaranteeType(
166
+ const tdsState = guaranteeType(
167
167
  builderState.fetchStructureState.implementation,
168
- QueryBuilderProjectionState,
168
+ QueryBuilderTDSState,
169
169
  );
170
170
  const valueProjectionColState = createSimpleProjectionColumn(
171
- projectionState,
171
+ tdsState,
172
172
  propertyExpression,
173
173
  PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME,
174
174
  );
175
175
  const valueCountProjectionState = createSimpleProjectionColumn(
176
- projectionState,
176
+ tdsState,
177
177
  propertyExpression,
178
178
  PREVIEW_DATA_NON_NUMERIC_COUNT_COLUMN_NAME,
179
179
  );
180
- projectionState.columns = [
180
+ tdsState.projectionColumns = [
181
181
  valueProjectionColState,
182
182
  valueCountProjectionState,
183
183
  ];
184
184
  const distinctCountOp = guaranteeNonNullable(
185
- projectionState.aggregationState.operators.find(
185
+ tdsState.aggregationState.operators.find(
186
186
  (t) => t instanceof QueryBuilderAggregateOperator_Count,
187
187
  ),
188
188
  );
189
- projectionState.aggregationState.changeColumnAggregateOperator(
189
+ tdsState.aggregationState.changeColumnAggregateOperator(
190
190
  distinctCountOp,
191
191
  valueCountProjectionState,
192
192
  );
193
193
  // result set
194
- projectionState.resultSetModifierState.limit = PREVIEW_DATA_TAKE_LIMIT;
194
+ tdsState.resultSetModifierState.limit = PREVIEW_DATA_TAKE_LIMIT;
195
195
  const sortValueCount = new SortColumnState(valueCountProjectionState);
196
196
  sortValueCount.sortType = COLUMN_SORT_TYPE.DESC;
197
- projectionState.resultSetModifierState.sortColumns = [
197
+ tdsState.resultSetModifierState.sortColumns = [
198
198
  sortValueCount,
199
199
  new SortColumnState(valueProjectionColState),
200
200
  ];
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { action, flow, observable, makeObservable, computed } from 'mobx';
17
+ import {
18
+ action,
19
+ flow,
20
+ observable,
21
+ makeObservable,
22
+ computed,
23
+ flowResult,
24
+ } from 'mobx';
18
25
  import {
19
26
  type GeneratorFn,
20
27
  LogEvent,
@@ -56,7 +63,10 @@ import {
56
63
  buildRawLambdaFromLambdaFunction,
57
64
  } from '@finos/legend-graph';
58
65
  import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
59
- import type { GenericLegendApplicationStore } from '@finos/legend-application';
66
+ import type {
67
+ CommandRegistrar,
68
+ GenericLegendApplicationStore,
69
+ } from '@finos/legend-application';
60
70
  import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
61
71
  import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
62
72
  import type { QueryBuilderFilterOperator } from './filter/QueryBuilderFilterOperator.js';
@@ -64,8 +74,9 @@ import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterO
64
74
  import { QueryBuilderChangeDetectionState } from './QueryBuilderChangeDetectionState.js';
65
75
  import { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
66
76
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../graphManager/QueryBuilderHashUtils.js';
77
+ import { QUERY_BUILDER_COMMAND_KEY } from './QueryBuilderCommand.js';
67
78
 
68
- export abstract class QueryBuilderState {
79
+ export abstract class QueryBuilderState implements CommandRegistrar {
69
80
  applicationStore: GenericLegendApplicationStore;
70
81
  graphManagerState: GraphManagerState;
71
82
 
@@ -84,7 +95,6 @@ export abstract class QueryBuilderState {
84
95
  observableContext: ObserverContext;
85
96
 
86
97
  queryCompileState = ActionState.create();
87
- showBackdrop = false;
88
98
  showFunctionsExplorerPanel = false;
89
99
  showParametersPanel = false;
90
100
 
@@ -109,7 +119,6 @@ export abstract class QueryBuilderState {
109
119
  resultState: observable,
110
120
  textEditorState: observable,
111
121
  unsupportedQueryState: observable,
112
- showBackdrop: observable,
113
122
  showFunctionsExplorerPanel: observable,
114
123
  showParametersPanel: observable,
115
124
  changeDetectionState: observable,
@@ -121,7 +130,6 @@ export abstract class QueryBuilderState {
121
130
  isQuerySupported: computed,
122
131
  validationIssues: computed,
123
132
 
124
- setShowBackdrop: action,
125
133
  setShowFunctionsExplorerPanel: action,
126
134
  setShowParametersPanel: action,
127
135
  setClass: action,
@@ -185,10 +193,6 @@ export abstract class QueryBuilderState {
185
193
  return true;
186
194
  }
187
195
 
188
- setShowBackdrop(val: boolean): void {
189
- this.showBackdrop = val;
190
- }
191
-
192
196
  setShowFunctionsExplorerPanel(val: boolean): void {
193
197
  this.showFunctionsExplorerPanel = val;
194
198
  }
@@ -213,6 +217,23 @@ export abstract class QueryBuilderState {
213
217
  return !this.unsupportedQueryState.rawLambda;
214
218
  }
215
219
 
220
+ registerCommands(): void {
221
+ this.applicationStore.commandCenter.registerCommand({
222
+ key: QUERY_BUILDER_COMMAND_KEY.COMPILE,
223
+ action: () => {
224
+ flowResult(this.compileQuery()).catch(
225
+ this.applicationStore.alertUnhandledError,
226
+ );
227
+ },
228
+ });
229
+ }
230
+
231
+ deregisterCommands(): void {
232
+ [QUERY_BUILDER_COMMAND_KEY.COMPILE].forEach((key) =>
233
+ this.applicationStore.commandCenter.deregisterCommand(key),
234
+ );
235
+ }
236
+
216
237
  resetQueryResult(): void {
217
238
  const resultState = new QueryBuilderResultState(this);
218
239
  resultState.setPreviewLimit(this.resultState.previewLimit);
@@ -49,12 +49,12 @@ import {
49
49
  type INTERNAL__PropagatedValue,
50
50
  type ValueSpecification,
51
51
  } from '@finos/legend-graph';
52
- import { processTDSPostFilterExpression } from './fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js';
52
+ import { processTDSPostFilterExpression } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js';
53
53
  import { processFilterExpression } from './filter/QueryBuilderFilterStateBuilder.js';
54
54
  import {
55
55
  processTDSAggregateExpression,
56
56
  processTDSGroupByExpression,
57
- } from './fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js';
57
+ } from './fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js';
58
58
  import {
59
59
  processGraphFetchExpression,
60
60
  processGraphFetchSerializeExpression,
@@ -67,7 +67,7 @@ import {
67
67
  processTDSSortDirectionExpression,
68
68
  processTDSSortExpression,
69
69
  processTDSTakeExpression,
70
- } from './fetch-structure/projection/QueryBuilderProjectionStateBuilder.js';
70
+ } from './fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js';
71
71
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
72
72
  import { LambdaParameterState } from './shared/LambdaParameterState.js';
73
73
 
@@ -24,18 +24,18 @@ import {
24
24
  type RawLambda,
25
25
  } from '@finos/legend-graph';
26
26
  import { guaranteeType, isNonNullable, isString } from '@finos/legend-shared';
27
- import { QueryBuilderPostFilterOperator_StartWith } from './fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js';
28
- import type { QueryBuilderAggregateColumnState } from './fetch-structure/projection/aggregation/QueryBuilderAggregationState.js';
27
+ import { QueryBuilderPostFilterOperator_StartWith } from './fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js';
28
+ import type { QueryBuilderAggregateColumnState } from './fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
29
29
  import {
30
30
  PostFilterConditionState,
31
31
  QueryBuilderPostFilterTreeConditionNodeData,
32
- } from './fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js';
32
+ } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
33
33
  import {
34
34
  QueryBuilderProjectionColumnState,
35
35
  QueryBuilderSimpleProjectionColumnState,
36
- } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
36
+ } from './fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
37
37
  import type { QueryBuilderState } from './QueryBuilderState.js';
38
- import { QueryBuilderProjectionState } from './fetch-structure/projection/QueryBuilderProjectionState.js';
38
+ import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
39
39
  import {
40
40
  DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
41
41
  DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
@@ -45,12 +45,12 @@ const initializeQueryBuilderState = (
45
45
  queryBuilderState: QueryBuilderState,
46
46
  ): QueryBuilderState => {
47
47
  const builderState = queryBuilderState.INTERNAL__toBasicQueryBuilderState();
48
- const projectionState = guaranteeType(
48
+ const tdsState = guaranteeType(
49
49
  builderState.fetchStructureState.implementation,
50
- QueryBuilderProjectionState,
50
+ QueryBuilderTDSState,
51
51
  );
52
- projectionState.resultSetModifierState.distinct = true;
53
- projectionState.resultSetModifierState.limit = DEFAULT_TYPEAHEAD_SEARCH_LIMIT;
52
+ tdsState.resultSetModifierState.distinct = true;
53
+ tdsState.resultSetModifierState.limit = DEFAULT_TYPEAHEAD_SEARCH_LIMIT;
54
54
  return builderState;
55
55
  };
56
56
 
@@ -61,21 +61,21 @@ const buildColumnTypeaheadQuery = (
61
61
  | QueryBuilderAggregateColumnState,
62
62
  value: ValueSpecification | undefined,
63
63
  ): RawLambda => {
64
- const projectionState = guaranteeType(
64
+ const tdsState = guaranteeType(
65
65
  builderState.fetchStructureState.implementation,
66
- QueryBuilderProjectionState,
66
+ QueryBuilderTDSState,
67
67
  );
68
68
  let projectionColumnState;
69
69
  if (columnState instanceof QueryBuilderProjectionColumnState) {
70
70
  projectionColumnState = columnState;
71
71
  } else {
72
72
  projectionColumnState = columnState.projectionColumnState;
73
- const aggregationState = projectionState.aggregationState;
73
+ const aggregationState = tdsState.aggregationState;
74
74
  aggregationState.columns = [columnState];
75
75
  }
76
- projectionState.columns = [projectionColumnState];
76
+ tdsState.projectionColumns = [projectionColumnState];
77
77
  const postConditionState = new PostFilterConditionState(
78
- projectionState.postFilterState,
78
+ tdsState.postFilterState,
79
79
  columnState,
80
80
  value,
81
81
  new QueryBuilderPostFilterOperator_StartWith(),
@@ -84,7 +84,7 @@ const buildColumnTypeaheadQuery = (
84
84
  undefined,
85
85
  postConditionState,
86
86
  );
87
- projectionState.postFilterState.addNodeFromNode(postFilterNode, undefined);
87
+ tdsState.postFilterState.addNodeFromNode(postFilterNode, undefined);
88
88
  return builderState.resultState.buildExecutionRawLambda();
89
89
  };
90
90
 
@@ -94,12 +94,12 @@ export const buildPropertyTypeaheadQuery = (
94
94
  value: ValueSpecification | undefined,
95
95
  ): RawLambda => {
96
96
  const builderState = initializeQueryBuilderState(queryBuilderState);
97
- const projectionState = guaranteeType(
97
+ const tdsState = guaranteeType(
98
98
  builderState.fetchStructureState.implementation,
99
- QueryBuilderProjectionState,
99
+ QueryBuilderTDSState,
100
100
  );
101
101
  const columnState = new QueryBuilderSimpleProjectionColumnState(
102
- projectionState,
102
+ tdsState,
103
103
  propertyExpression,
104
104
  false,
105
105
  );
@@ -44,13 +44,13 @@ import {
44
44
  } from '@finos/legend-graph';
45
45
  import {
46
46
  addUniqueEntry,
47
+ formatDate,
47
48
  guaranteeNonNullable,
48
49
  guaranteeType,
49
50
  isNumber,
50
51
  isString,
51
52
  UnsupportedOperationError,
52
53
  } from '@finos/legend-shared';
53
- import { format } from 'date-fns';
54
54
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
55
55
  import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
56
56
 
@@ -220,9 +220,9 @@ export const generateDefaultValueForPrimitiveType = (
220
220
  return 0;
221
221
  case PRIMITIVE_TYPE.DATE:
222
222
  case PRIMITIVE_TYPE.STRICTDATE:
223
- return format(new Date(Date.now()), DATE_FORMAT);
223
+ return formatDate(new Date(Date.now()), DATE_FORMAT);
224
224
  case PRIMITIVE_TYPE.DATETIME:
225
- return format(new Date(Date.now()), DATE_TIME_FORMAT);
225
+ return formatDate(new Date(Date.now()), DATE_TIME_FORMAT);
226
226
  default:
227
227
  throw new UnsupportedOperationError(
228
228
  `Can't generate default value for primitive type '${type}'`,
@@ -27,7 +27,7 @@ import type { LambdaFunctionBuilderOption } from '../QueryBuilderValueSpecificat
27
27
  import type { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js';
28
28
 
29
29
  export enum FETCH_STRUCTURE_IMPLEMENTATION {
30
- PROJECTION = 'PROJECTION',
30
+ TABULAR_DATA_STRUCTURE = 'TABULAR_DATA_STRUCTURE',
31
31
  GRAPH_FETCH = 'GRAPH_FETCH',
32
32
  }
33
33
 
@@ -17,7 +17,7 @@
17
17
  import { action, makeObservable, observable } from 'mobx';
18
18
  import type { QueryBuilderState } from '../QueryBuilderState.js';
19
19
  import { QueryBuilderGraphFetchTreeState } from './graph-fetch/QueryBuilderGraphFetchTreeState.js';
20
- import { QueryBuilderProjectionState } from './projection/QueryBuilderProjectionState.js';
20
+ import { QueryBuilderTDSState } from './tds/QueryBuilderTDSState.js';
21
21
  import {
22
22
  type QueryBuilderExplorerTreeNodeData,
23
23
  QueryBuilderExplorerTreePropertyNodeData,
@@ -46,7 +46,7 @@ export class QueryBuilderFetchStructureState {
46
46
  * graph-fetch since `getAll()` naturally works for graph-fetch case
47
47
  * and graph-fetch allows somewhat an empty tree
48
48
  */
49
- this.implementation = new QueryBuilderProjectionState(
49
+ this.implementation = new QueryBuilderTDSState(
50
50
  this.queryBuilderState,
51
51
  this,
52
52
  );
@@ -54,8 +54,8 @@ export class QueryBuilderFetchStructureState {
54
54
 
55
55
  changeImplementation(type: string): void {
56
56
  switch (type) {
57
- case FETCH_STRUCTURE_IMPLEMENTATION.PROJECTION: {
58
- this.implementation = new QueryBuilderProjectionState(
57
+ case FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE: {
58
+ this.implementation = new QueryBuilderTDSState(
59
59
  this.queryBuilderState,
60
60
  this,
61
61
  );