@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
@@ -20,17 +20,21 @@ import { renderServiceQueryBuilderSetupPanelContent } from '../../components/wor
20
20
  import { QueryBuilderState } from '../QueryBuilderState.js';
21
21
  export class ServiceQueryBuilderState extends QueryBuilderState {
22
22
  service;
23
+ usableServices;
23
24
  executionContexts = [];
25
+ onServiceChange;
24
26
  onExecutionContextChange;
25
27
  TEMPORARY__setupPanelContentRenderer = () => renderServiceQueryBuilderSetupPanelContent(this);
26
28
  selectedExecutionContext;
27
- constructor(applicationStore, graphManagerState, service, executionContextKey, onExecutionContextChange) {
29
+ constructor(applicationStore, graphManagerState, service, usableServices, executionContextKey, onServiceChange, onExecutionContextChange) {
28
30
  super(applicationStore, graphManagerState);
29
31
  makeObservable(this, {
30
32
  selectedExecutionContext: observable,
31
33
  setSelectedExecutionContext: action,
32
34
  });
33
35
  this.service = service;
36
+ this.usableServices = usableServices;
37
+ this.onServiceChange = onServiceChange;
34
38
  this.onExecutionContextChange = onExecutionContextChange;
35
39
  if (service.execution instanceof PureSingleExecution) {
36
40
  this.mapping = service.execution.mapping.value;
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ServiceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/workflows/ServiceQueryBuilderState.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,33 +44,31 @@
44
44
  "@ag-grid-community/client-side-row-model": "28.2.0",
45
45
  "@ag-grid-community/core": "28.2.0",
46
46
  "@ag-grid-community/react": "28.2.0",
47
- "@finos/legend-application": "9.0.1",
48
- "@finos/legend-art": "4.0.1",
49
- "@finos/legend-graph": "18.0.1",
50
- "@finos/legend-server-depot": "4.1.1",
51
- "@finos/legend-shared": "6.1.4",
52
- "@finos/legend-storage": "3.0.13",
47
+ "@finos/legend-application": "10.0.0",
48
+ "@finos/legend-art": "4.1.0",
49
+ "@finos/legend-graph": "19.0.0",
50
+ "@finos/legend-server-depot": "4.1.2",
51
+ "@finos/legend-shared": "6.1.5",
52
+ "@finos/legend-storage": "3.0.14",
53
53
  "@testing-library/react": "13.4.0",
54
54
  "@types/papaparse": "5.3.5",
55
55
  "@types/react": "18.0.21",
56
56
  "@types/react-dom": "18.0.6",
57
- "date-fns": "2.29.3",
58
57
  "mobx": "6.6.2",
59
58
  "mobx-react-lite": "3.4.0",
60
- "monaco-editor": "0.34.0",
59
+ "monaco-editor": "0.34.1",
61
60
  "papaparse": "5.3.2",
62
61
  "react": "18.2.0",
63
62
  "react-dnd": "16.0.1",
64
63
  "react-dom": "18.2.0",
65
- "react-hotkeys": "2.0.0",
66
- "serializr": "2.0.5"
64
+ "serializr": "3.0.1"
67
65
  },
68
66
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.20",
70
- "@jest/globals": "29.1.2",
67
+ "@finos/legend-dev-utils": "2.0.21",
68
+ "@jest/globals": "29.2.1",
71
69
  "cross-env": "7.0.3",
72
70
  "eslint": "8.25.0",
73
- "jest": "29.1.2",
71
+ "jest": "29.2.1",
74
72
  "npm-run-all": "4.1.5",
75
73
  "rimraf": "3.0.2",
76
74
  "sass": "1.55.0",
@@ -83,6 +81,7 @@
83
81
  "directory": "build/publishContent"
84
82
  },
85
83
  "extensions": {
84
+ "applicationPlugin": "@finos/legend-application-plugin-query-builder",
86
85
  "graphManagerPreset": "@finos/legend-graph-manager-preset-query-builder",
87
86
  "pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-query-builder",
88
87
  "pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-query-builder"
@@ -15,10 +15,8 @@
15
15
  */
16
16
 
17
17
  import { observer } from 'mobx-react-lite';
18
- import { GlobalHotKeys } from 'react-hotkeys';
19
18
  import {
20
19
  clsx,
21
- Backdrop,
22
20
  HammerIcon,
23
21
  ResizablePanelGroup,
24
22
  ResizablePanel,
@@ -31,7 +29,6 @@ import {
31
29
  MenuContentItemLabel,
32
30
  CheckIcon,
33
31
  CaretDownIcon,
34
- CogIcon,
35
32
  DiffIcon,
36
33
  } from '@finos/legend-art';
37
34
  import { QueryBuilderFilterPanel } from './filter/QueryBuilderFilterPanel.js';
@@ -45,20 +42,19 @@ import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderF
45
42
  import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js';
46
43
  import { flowResult } from 'mobx';
47
44
  import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js';
48
- import { useApplicationStore } from '@finos/legend-application';
45
+ import {
46
+ BackdropContainer,
47
+ useApplicationStore,
48
+ useCommands,
49
+ } from '@finos/legend-application';
49
50
  import { QueryBuilderParametersPanel } from './QueryBuilderParametersPanel.js';
50
51
  import { QueryBuilderPostFilterPanel } from './fetch-structure/QueryBuilderPostFilterPanel.js';
51
52
  import { QueryBuilderFunctionsExplorerPanel } from './explorer/QueryBuilderFunctionsExplorerPanel.js';
52
- import { QueryBuilderProjectionState } from '../stores/fetch-structure/projection/QueryBuilderProjectionState.js';
53
+ import { QueryBuilderTDSState } from '../stores/fetch-structure/tds/QueryBuilderTDSState.js';
53
54
  import { QueryBuilderDiffViewPanel } from './QueryBuilderDiffPanel.js';
54
55
 
55
- enum QUERY_BUILDER_HOTKEY {
56
- COMPILE = 'COMPILE',
57
- }
58
-
59
- const QUERY_BUILDER_HOTKEY_MAP = Object.freeze({
60
- [QUERY_BUILDER_HOTKEY.COMPILE]: 'f9',
61
- });
56
+ export const QUERY_BUILDER_BACKDROP_CONTAINER_ID =
57
+ 'query-builder.backdrop-container';
62
58
 
63
59
  const QueryBuilderStatusBar = observer(
64
60
  (props: { queryBuilderState: QueryBuilderState }) => {
@@ -158,23 +154,8 @@ const QueryBuilderStatusBar = observer(
158
154
  export const QueryBuilder = observer(
159
155
  (props: { queryBuilderState: QueryBuilderState }) => {
160
156
  const { queryBuilderState } = props;
161
- const applicationStore = useApplicationStore();
162
157
  const isQuerySupported = queryBuilderState.isQuerySupported;
163
158
 
164
- // Hotkeys
165
- const keyMap = {
166
- [QUERY_BUILDER_HOTKEY.COMPILE]: [QUERY_BUILDER_HOTKEY_MAP.COMPILE],
167
- };
168
- const handlers = {
169
- [QUERY_BUILDER_HOTKEY.COMPILE]: (
170
- event: KeyboardEvent | undefined,
171
- ): void => {
172
- event?.preventDefault();
173
- flowResult(queryBuilderState.compileQuery()).catch(
174
- applicationStore.alertUnhandledError,
175
- );
176
- },
177
- };
178
159
  const toggleShowFunctionPanel = (): void => {
179
160
  queryBuilderState.setShowFunctionsExplorerPanel(
180
161
  !queryBuilderState.showFunctionsExplorerPanel,
@@ -188,153 +169,102 @@ export const QueryBuilder = observer(
188
169
  const toggleShowPostFilterPanel = (): void => {
189
170
  if (
190
171
  queryBuilderState.fetchStructureState.implementation instanceof
191
- QueryBuilderProjectionState
172
+ QueryBuilderTDSState
192
173
  ) {
193
- const projectionState =
194
- queryBuilderState.fetchStructureState.implementation;
195
- projectionState.setShowPostFilterPanel(
196
- !projectionState.showPostFilterPanel,
197
- );
174
+ const tdsState = queryBuilderState.fetchStructureState.implementation;
175
+ tdsState.setShowPostFilterPanel(!tdsState.showPostFilterPanel);
198
176
  }
199
177
  };
200
178
 
201
- // settings
202
- // NOTE: this is temporary until we find a better home for these settings in query builder
203
- const engineConfig =
204
- queryBuilderState.graphManagerState.graphManager.TEMPORARY__getEngineConfig();
205
- const toggleEngineClientRequestPayloadCompression = (): void =>
206
- engineConfig.setUseClientRequestPayloadCompression(
207
- !engineConfig.useClientRequestPayloadCompression,
208
- );
179
+ useCommands(queryBuilderState);
209
180
 
210
181
  return (
211
182
  <div
212
183
  data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER}
213
184
  className="query-builder"
214
185
  >
215
- <div className="query-builder__sub-header">
216
- <div className="query-builder__sub-header__actions">
217
- <DropdownMenu
218
- className="query-builder__sub-header__custom-action"
219
- content={
220
- <MenuContent>
221
- <MenuContentItem
222
- onClick={toggleShowFunctionPanel}
223
- disabled={!queryBuilderState.isQuerySupported}
224
- >
225
- <MenuContentItemIcon>
226
- {queryBuilderState.showFunctionsExplorerPanel ? (
227
- <CheckIcon />
228
- ) : null}
229
- </MenuContentItemIcon>
230
- <MenuContentItemLabel className="query-builder__sub-header__menu-content">
231
- Show Function(s)
232
- </MenuContentItemLabel>
233
- </MenuContentItem>
234
- {/* TODO?: consider hiding this menu option when the fetch-structure is not projection */}
235
- {!queryBuilderState.isParameterSupportDisabled && (
236
- <MenuContentItem
237
- onClick={toggleShowParameterPanel}
238
- disabled={
239
- !queryBuilderState.isQuerySupported ||
240
- queryBuilderState.parametersState.parameterStates
241
- .length > 0
242
- }
243
- >
244
- <MenuContentItemIcon>
245
- {queryBuilderState.showParametersPanel ? (
246
- <CheckIcon />
247
- ) : null}
248
- </MenuContentItemIcon>
249
- <MenuContentItemLabel className="query-builder__sub-header__menu-content">
250
- Show Parameter(s)
251
- </MenuContentItemLabel>
252
- </MenuContentItem>
253
- )}
254
- <MenuContentItem
255
- onClick={toggleShowPostFilterPanel}
256
- disabled={
257
- !queryBuilderState.isQuerySupported ||
258
- !(
259
- queryBuilderState.fetchStructureState
260
- .implementation instanceof QueryBuilderProjectionState
261
- ) ||
262
- Array.from(
263
- queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values(),
264
- ).length > 0
265
- }
266
- >
267
- <MenuContentItemIcon>
268
- {queryBuilderState.fetchStructureState
269
- .implementation instanceof
270
- QueryBuilderProjectionState &&
271
- queryBuilderState.fetchStructureState.implementation
272
- .showPostFilterPanel ? (
273
- <CheckIcon />
274
- ) : null}
275
- </MenuContentItemIcon>
276
- <MenuContentItemLabel className="query-builder__sub-header__menu-content">
277
- Show Post-Filter
278
- </MenuContentItemLabel>
279
- </MenuContentItem>
280
- </MenuContent>
281
- }
282
- menuProps={{
283
- anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
284
- transformOrigin: { vertical: 'top', horizontal: 'right' },
285
- elevation: 7,
286
- }}
287
- >
288
- <button
289
- className="query-builder__sub-header__custom-action__label"
290
- title="Show Advanced Menu..."
291
- >
292
- Advanced
293
- </button>
294
- <CaretDownIcon className="query-builder__sub-header__custom-action__icon" />
295
- </DropdownMenu>
296
- </div>
297
- </div>
298
- <GlobalHotKeys keyMap={keyMap} handlers={handlers}>
299
- <Backdrop
300
- className="backdrop"
301
- open={queryBuilderState.showBackdrop}
302
- />
186
+ <BackdropContainer elementID={QUERY_BUILDER_BACKDROP_CONTAINER_ID} />
187
+ <div className="query-builder__body">
303
188
  <div className="query-builder__content">
304
- <div className="query-builder__activity-bar">
305
- <div className="query-builder__activity-bar__items"></div>
306
- <DropdownMenu
307
- className="query-builder__activity-bar__setting"
308
- content={
309
- <MenuContent>
310
- <MenuContentItem
311
- onClick={toggleEngineClientRequestPayloadCompression}
312
- >
313
- <MenuContentItemIcon>
314
- {engineConfig.useClientRequestPayloadCompression ? (
315
- <CheckIcon />
316
- ) : null}
317
- </MenuContentItemIcon>
318
- <MenuContentItemLabel>
319
- Compress request payload
320
- </MenuContentItemLabel>
321
- </MenuContentItem>
322
- </MenuContent>
323
- }
324
- menuProps={{
325
- anchorOrigin: { vertical: 'center', horizontal: 'center' },
326
- transformOrigin: { vertical: 'bottom', horizontal: 'left' },
327
- elevation: 7,
328
- }}
329
- >
330
- <button
331
- className="query-builder__activity-bar__item"
332
- tabIndex={-1}
333
- title="Settings..."
189
+ <div className="query-builder__sub-header">
190
+ <div className="query-builder__sub-header__actions">
191
+ <DropdownMenu
192
+ className="query-builder__sub-header__custom-action"
193
+ title="Show Advanced Menu..."
194
+ content={
195
+ <MenuContent>
196
+ <MenuContentItem
197
+ onClick={toggleShowFunctionPanel}
198
+ disabled={!queryBuilderState.isQuerySupported}
199
+ >
200
+ <MenuContentItemIcon>
201
+ {queryBuilderState.showFunctionsExplorerPanel ? (
202
+ <CheckIcon />
203
+ ) : null}
204
+ </MenuContentItemIcon>
205
+ <MenuContentItemLabel className="query-builder__sub-header__menu-content">
206
+ Show Function(s)
207
+ </MenuContentItemLabel>
208
+ </MenuContentItem>
209
+ {/* TODO?: consider hiding this menu option when the fetch-structure is not tds */}
210
+ {!queryBuilderState.isParameterSupportDisabled && (
211
+ <MenuContentItem
212
+ onClick={toggleShowParameterPanel}
213
+ disabled={
214
+ !queryBuilderState.isQuerySupported ||
215
+ queryBuilderState.parametersState.parameterStates
216
+ .length > 0
217
+ }
218
+ >
219
+ <MenuContentItemIcon>
220
+ {queryBuilderState.showParametersPanel ? (
221
+ <CheckIcon />
222
+ ) : null}
223
+ </MenuContentItemIcon>
224
+ <MenuContentItemLabel className="query-builder__sub-header__menu-content">
225
+ Show Parameter(s)
226
+ </MenuContentItemLabel>
227
+ </MenuContentItem>
228
+ )}
229
+ <MenuContentItem
230
+ onClick={toggleShowPostFilterPanel}
231
+ disabled={
232
+ !queryBuilderState.isQuerySupported ||
233
+ !(
234
+ queryBuilderState.fetchStructureState
235
+ .implementation instanceof QueryBuilderTDSState
236
+ ) ||
237
+ Array.from(
238
+ queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values(),
239
+ ).length > 0
240
+ }
241
+ >
242
+ <MenuContentItemIcon>
243
+ {queryBuilderState.fetchStructureState
244
+ .implementation instanceof QueryBuilderTDSState &&
245
+ queryBuilderState.fetchStructureState.implementation
246
+ .showPostFilterPanel ? (
247
+ <CheckIcon />
248
+ ) : null}
249
+ </MenuContentItemIcon>
250
+ <MenuContentItemLabel className="query-builder__sub-header__menu-content">
251
+ Show Post-Filter
252
+ </MenuContentItemLabel>
253
+ </MenuContentItem>
254
+ </MenuContent>
255
+ }
256
+ menuProps={{
257
+ anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
258
+ transformOrigin: { vertical: 'top', horizontal: 'right' },
259
+ elevation: 7,
260
+ }}
334
261
  >
335
- <CogIcon />
336
- </button>
337
- </DropdownMenu>
262
+ <div className="query-builder__sub-header__custom-action__label">
263
+ Advanced
264
+ </div>
265
+ <CaretDownIcon className="query-builder__sub-header__custom-action__icon" />
266
+ </DropdownMenu>
267
+ </div>
338
268
  </div>
339
269
  <div className="query-builder__main">
340
270
  <ResizablePanelGroup orientation="horizontal">
@@ -394,8 +324,7 @@ export const QueryBuilder = observer(
394
324
  <ResizablePanel minSize={300}>
395
325
  {(!(
396
326
  queryBuilderState.fetchStructureState
397
- .implementation instanceof
398
- QueryBuilderProjectionState
327
+ .implementation instanceof QueryBuilderTDSState
399
328
  ) ||
400
329
  !queryBuilderState.fetchStructureState.implementation
401
330
  .showPostFilterPanel) && (
@@ -404,8 +333,7 @@ export const QueryBuilder = observer(
404
333
  />
405
334
  )}
406
335
  {queryBuilderState.fetchStructureState
407
- .implementation instanceof
408
- QueryBuilderProjectionState &&
336
+ .implementation instanceof QueryBuilderTDSState &&
409
337
  queryBuilderState.fetchStructureState.implementation
410
338
  .showPostFilterPanel && (
411
339
  <ResizablePanelGroup orientation="horizontal">
@@ -443,11 +371,11 @@ export const QueryBuilder = observer(
443
371
  </ResizablePanelGroup>
444
372
  </div>
445
373
  </div>
446
- <QueryBuilderStatusBar queryBuilderState={queryBuilderState} />
447
374
  {queryBuilderState.textEditorState.mode && (
448
375
  <QueryBuilderTextEditor queryBuilderState={queryBuilderState} />
449
376
  )}
450
- </GlobalHotKeys>
377
+ </div>
378
+ <QueryBuilderStatusBar queryBuilderState={queryBuilderState} />
451
379
  </div>
452
380
  );
453
381
  },
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  import {
18
+ createPassThroughOnKeyHandler,
18
19
  EDITOR_LANGUAGE,
19
20
  EDITOR_THEME,
20
21
  TAB_SIZE,
@@ -24,7 +25,6 @@ import {
24
25
  baseTextEditorSettings,
25
26
  clsx,
26
27
  Dialog,
27
- disableEditorHotKeys,
28
28
  disposeDiffEditor,
29
29
  useResizeDetector,
30
30
  } from '@finos/legend-art';
@@ -35,7 +35,6 @@ import {
35
35
  type QueryBuilderDiffViewState,
36
36
  QueryBuilderDiffViewMode,
37
37
  } from '../stores/QueryBuilderChangeDetectionState.js';
38
- import { prettyCONSTName } from '@finos/legend-shared';
39
38
  import { pruneSourceInformation } from '@finos/legend-graph';
40
39
 
41
40
  const TextDiffView = observer(
@@ -71,7 +70,7 @@ const TextDiffView = observer(
71
70
  readOnly: true,
72
71
  wordWrap: 'on',
73
72
  });
74
- disableEditorHotKeys(_editor);
73
+ _editor.getOriginalEditor().onKeyDown(createPassThroughOnKeyHandler());
75
74
  setEditor(_editor);
76
75
  }
77
76
  }, [applicationStore, editor]);
@@ -147,7 +146,7 @@ export const QueryBuilderDiffViewPanel = observer(
147
146
  })}
148
147
  key={mode}
149
148
  >
150
- {prettyCONSTName(mode)}
149
+ {mode}
151
150
  </button>
152
151
  ))}
153
152
  </div>
@@ -0,0 +1,62 @@
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
+ ActionAlertActionType,
19
+ ActionAlertType,
20
+ useApplicationStore,
21
+ } from '@finos/legend-application';
22
+ import { observer } from 'mobx-react-lite';
23
+ import { useEffect } from 'react';
24
+ import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
25
+
26
+ export const QueryBuilderNavigationBlocker = observer(
27
+ (props: { queryBuilderState: QueryBuilderState }) => {
28
+ const { queryBuilderState } = props;
29
+ const applicationStore = useApplicationStore();
30
+
31
+ useEffect(() => {
32
+ applicationStore.navigator.blockNavigation(
33
+ [(): boolean => queryBuilderState.changeDetectionState.hasChanged],
34
+ (onProceed: () => void): void => {
35
+ applicationStore.setActionAlertInfo({
36
+ // TODO?: should we make this message generic like the `BeforeUnloadEvent` message?
37
+ message:
38
+ 'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
39
+ type: ActionAlertType.CAUTION,
40
+ actions: [
41
+ {
42
+ label: 'Proceed',
43
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
44
+ handler: (): void => onProceed(),
45
+ },
46
+ {
47
+ label: 'Abort',
48
+ type: ActionAlertActionType.PROCEED,
49
+ default: true,
50
+ },
51
+ ],
52
+ });
53
+ },
54
+ );
55
+ return (): void => {
56
+ applicationStore.navigator.unblockNavigation();
57
+ };
58
+ }, [applicationStore, queryBuilderState]);
59
+
60
+ return null;
61
+ },
62
+ );