@finos/legend-application-query 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (553) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/lib/LegendQueryAppEvent.d.ts +19 -0
  4. package/lib/LegendQueryAppEvent.d.ts.map +1 -0
  5. package/lib/LegendQueryAppEvent.js +21 -0
  6. package/lib/LegendQueryAppEvent.js.map +1 -0
  7. package/lib/QueryBuilder_Const.d.ts +77 -0
  8. package/lib/QueryBuilder_Const.d.ts.map +1 -0
  9. package/lib/QueryBuilder_Const.js +85 -0
  10. package/lib/QueryBuilder_Const.js.map +1 -0
  11. package/lib/application/LegendQuery.d.ts +27 -0
  12. package/lib/application/LegendQuery.d.ts.map +1 -0
  13. package/lib/application/LegendQuery.js +58 -0
  14. package/lib/application/LegendQuery.js.map +1 -0
  15. package/lib/application/LegendQueryApplicationConfig.d.ts +46 -0
  16. package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -0
  17. package/lib/application/LegendQueryApplicationConfig.js +35 -0
  18. package/lib/application/LegendQueryApplicationConfig.js.map +1 -0
  19. package/lib/application/LegendQueryPluginManager.d.ts +32 -0
  20. package/lib/application/LegendQueryPluginManager.d.ts.map +1 -0
  21. package/lib/application/LegendQueryPluginManager.js +46 -0
  22. package/lib/application/LegendQueryPluginManager.js.map +1 -0
  23. package/lib/components/LegendQueryApplication.d.ts +25 -0
  24. package/lib/components/LegendQueryApplication.d.ts.map +1 -0
  25. package/lib/components/LegendQueryApplication.js +39 -0
  26. package/lib/components/LegendQueryApplication.js.map +1 -0
  27. package/lib/components/LegendQueryBaseStoreProvider.d.ts +28 -0
  28. package/lib/components/LegendQueryBaseStoreProvider.d.ts.map +1 -0
  29. package/lib/components/LegendQueryBaseStoreProvider.js +32 -0
  30. package/lib/components/LegendQueryBaseStoreProvider.js.map +1 -0
  31. package/lib/components/QueryBuilder.d.ts +23 -0
  32. package/lib/components/QueryBuilder.d.ts.map +1 -0
  33. package/lib/components/QueryBuilder.js +91 -0
  34. package/lib/components/QueryBuilder.js.map +1 -0
  35. package/lib/components/QueryBuilderExplorerPanel.d.ts +34 -0
  36. package/lib/components/QueryBuilderExplorerPanel.d.ts.map +1 -0
  37. package/lib/components/QueryBuilderExplorerPanel.js +379 -0
  38. package/lib/components/QueryBuilderExplorerPanel.js.map +1 -0
  39. package/lib/components/QueryBuilderFetchStructurePanel.d.ts +23 -0
  40. package/lib/components/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
  41. package/lib/components/QueryBuilderFetchStructurePanel.js +89 -0
  42. package/lib/components/QueryBuilderFetchStructurePanel.js.map +1 -0
  43. package/lib/components/QueryBuilderFilterPanel.d.ts +23 -0
  44. package/lib/components/QueryBuilderFilterPanel.d.ts.map +1 -0
  45. package/lib/components/QueryBuilderFilterPanel.js +301 -0
  46. package/lib/components/QueryBuilderFilterPanel.js.map +1 -0
  47. package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts +23 -0
  48. package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
  49. package/lib/components/QueryBuilderFunctionsExplorerPanel.js +177 -0
  50. package/lib/components/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
  51. package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts +33 -0
  52. package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
  53. package/lib/components/QueryBuilderGraphFetchTreePanel.js +96 -0
  54. package/lib/components/QueryBuilderGraphFetchTreePanel.js.map +1 -0
  55. package/lib/components/QueryBuilderLambdaEditor.d.ts +42 -0
  56. package/lib/components/QueryBuilderLambdaEditor.d.ts.map +1 -0
  57. package/lib/components/QueryBuilderLambdaEditor.js +47 -0
  58. package/lib/components/QueryBuilderLambdaEditor.js.map +1 -0
  59. package/lib/components/QueryBuilderMilestoneEditor.d.ts +24 -0
  60. package/lib/components/QueryBuilderMilestoneEditor.d.ts.map +1 -0
  61. package/lib/components/QueryBuilderMilestoneEditor.js +120 -0
  62. package/lib/components/QueryBuilderMilestoneEditor.js.map +1 -0
  63. package/lib/components/QueryBuilderParameterPanel.d.ts +30 -0
  64. package/lib/components/QueryBuilderParameterPanel.d.ts.map +1 -0
  65. package/lib/components/QueryBuilderParameterPanel.js +148 -0
  66. package/lib/components/QueryBuilderParameterPanel.js.map +1 -0
  67. package/lib/components/QueryBuilderPostFilterPanel.d.ts +31 -0
  68. package/lib/components/QueryBuilderPostFilterPanel.d.ts.map +1 -0
  69. package/lib/components/QueryBuilderPostFilterPanel.js +373 -0
  70. package/lib/components/QueryBuilderPostFilterPanel.js.map +1 -0
  71. package/lib/components/QueryBuilderProjectionPanel.d.ts +23 -0
  72. package/lib/components/QueryBuilderProjectionPanel.d.ts.map +1 -0
  73. package/lib/components/QueryBuilderProjectionPanel.js +229 -0
  74. package/lib/components/QueryBuilderProjectionPanel.js.map +1 -0
  75. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +30 -0
  76. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -0
  77. package/lib/components/QueryBuilderPropertyExpressionEditor.js +116 -0
  78. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -0
  79. package/lib/components/QueryBuilderPropertyInfoTooltip.d.ts +26 -0
  80. package/lib/components/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
  81. package/lib/components/QueryBuilderPropertyInfoTooltip.js +32 -0
  82. package/lib/components/QueryBuilderPropertyInfoTooltip.js.map +1 -0
  83. package/lib/components/QueryBuilderPropertySearchPanel.d.ts +24 -0
  84. package/lib/components/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
  85. package/lib/components/QueryBuilderPropertySearchPanel.js +202 -0
  86. package/lib/components/QueryBuilderPropertySearchPanel.js.map +1 -0
  87. package/lib/components/QueryBuilderResultModifierPanel.d.ts +23 -0
  88. package/lib/components/QueryBuilderResultModifierPanel.d.ts.map +1 -0
  89. package/lib/components/QueryBuilderResultModifierPanel.js +88 -0
  90. package/lib/components/QueryBuilderResultModifierPanel.js.map +1 -0
  91. package/lib/components/QueryBuilderResultPanel.d.ts +23 -0
  92. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -0
  93. package/lib/components/QueryBuilderResultPanel.js +223 -0
  94. package/lib/components/QueryBuilderResultPanel.js.map +1 -0
  95. package/lib/components/QueryBuilderSetupPanel.d.ts +23 -0
  96. package/lib/components/QueryBuilderSetupPanel.d.ts.map +1 -0
  97. package/lib/components/QueryBuilderSetupPanel.js +148 -0
  98. package/lib/components/QueryBuilderSetupPanel.js.map +1 -0
  99. package/lib/components/QueryBuilderTextEditor.d.ts +23 -0
  100. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -0
  101. package/lib/components/QueryBuilderTextEditor.js +48 -0
  102. package/lib/components/QueryBuilderTextEditor.js.map +1 -0
  103. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +23 -0
  104. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
  105. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +35 -0
  106. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -0
  107. package/lib/components/QueryBuilder_TestID.d.ts +26 -0
  108. package/lib/components/QueryBuilder_TestID.d.ts.map +1 -0
  109. package/lib/components/QueryBuilder_TestID.js +27 -0
  110. package/lib/components/QueryBuilder_TestID.js.map +1 -0
  111. package/lib/components/QueryEditor.d.ts +29 -0
  112. package/lib/components/QueryEditor.d.ts.map +1 -0
  113. package/lib/components/QueryEditor.js +130 -0
  114. package/lib/components/QueryEditor.js.map +1 -0
  115. package/lib/components/QueryEditorComponentTestUtils.d.ts +35 -0
  116. package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -0
  117. package/lib/components/QueryEditorComponentTestUtils.js +108 -0
  118. package/lib/components/QueryEditorComponentTestUtils.js.map +1 -0
  119. package/lib/components/QueryEditorStoreProvider.d.ts +37 -0
  120. package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -0
  121. package/lib/components/QueryEditorStoreProvider.js +48 -0
  122. package/lib/components/QueryEditorStoreProvider.js.map +1 -0
  123. package/lib/components/QuerySetup.d.ts +18 -0
  124. package/lib/components/QuerySetup.d.ts.map +1 -0
  125. package/lib/components/QuerySetup.js +388 -0
  126. package/lib/components/QuerySetup.js.map +1 -0
  127. package/lib/components/QuerySetupStoreProvider.d.ts +23 -0
  128. package/lib/components/QuerySetupStoreProvider.d.ts.map +1 -0
  129. package/lib/components/QuerySetupStoreProvider.js +35 -0
  130. package/lib/components/QuerySetupStoreProvider.js.map +1 -0
  131. package/lib/components/shared/ElementIconUtils.d.ts +18 -0
  132. package/lib/components/shared/ElementIconUtils.d.ts.map +1 -0
  133. package/lib/components/shared/ElementIconUtils.js +37 -0
  134. package/lib/components/shared/ElementIconUtils.js.map +1 -0
  135. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +21 -0
  136. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +1 -0
  137. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +27 -0
  138. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +1 -0
  139. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +24 -0
  140. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +1 -0
  141. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +32 -0
  142. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +1 -0
  143. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +21 -0
  144. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +1 -0
  145. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +20 -0
  146. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +1 -0
  147. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +21 -0
  148. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +1 -0
  149. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +20 -0
  150. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +1 -0
  151. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +25 -0
  152. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
  153. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +21 -0
  154. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -0
  155. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +18 -0
  156. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
  157. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +20 -0
  158. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +1 -0
  159. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +22 -0
  160. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -0
  161. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +68 -0
  162. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -0
  163. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +22 -0
  164. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +1 -0
  165. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +207 -0
  166. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +1 -0
  167. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +18 -0
  168. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +1 -0
  169. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +18 -0
  170. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +1 -0
  171. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +29 -0
  172. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
  173. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +182 -0
  174. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -0
  175. package/lib/index.css +17 -0
  176. package/lib/index.css.map +1 -0
  177. package/lib/index.d.ts +36 -0
  178. package/lib/index.d.ts.map +1 -0
  179. package/lib/index.js +36 -0
  180. package/lib/index.js.map +1 -0
  181. package/lib/package.json +99 -0
  182. package/lib/stores/LegendQueryApplicationPlugin.d.ts +47 -0
  183. package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -0
  184. package/lib/stores/LegendQueryApplicationPlugin.js +27 -0
  185. package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -0
  186. package/lib/stores/LegendQueryBaseStore.d.ts +28 -0
  187. package/lib/stores/LegendQueryBaseStore.d.ts.map +1 -0
  188. package/lib/stores/LegendQueryBaseStore.js +28 -0
  189. package/lib/stores/LegendQueryBaseStore.js.map +1 -0
  190. package/lib/stores/LegendQueryEventService.d.ts +27 -0
  191. package/lib/stores/LegendQueryEventService.d.ts.map +1 -0
  192. package/lib/stores/LegendQueryEventService.js +29 -0
  193. package/lib/stores/LegendQueryEventService.js.map +1 -0
  194. package/lib/stores/LegendQueryRouter.d.ts +55 -0
  195. package/lib/stores/LegendQueryRouter.d.ts.map +1 -0
  196. package/lib/stores/LegendQueryRouter.js +50 -0
  197. package/lib/stores/LegendQueryRouter.js.map +1 -0
  198. package/lib/stores/QueryBuilderAggregationState.d.ts +53 -0
  199. package/lib/stores/QueryBuilderAggregationState.d.ts.map +1 -0
  200. package/lib/stores/QueryBuilderAggregationState.js +122 -0
  201. package/lib/stores/QueryBuilderAggregationState.js.map +1 -0
  202. package/lib/stores/QueryBuilderExplorerState.d.ts +93 -0
  203. package/lib/stores/QueryBuilderExplorerState.d.ts.map +1 -0
  204. package/lib/stores/QueryBuilderExplorerState.js +310 -0
  205. package/lib/stores/QueryBuilderExplorerState.js.map +1 -0
  206. package/lib/stores/QueryBuilderFetchStructureState.d.ts +33 -0
  207. package/lib/stores/QueryBuilderFetchStructureState.d.ts.map +1 -0
  208. package/lib/stores/QueryBuilderFetchStructureState.js +50 -0
  209. package/lib/stores/QueryBuilderFetchStructureState.js.map +1 -0
  210. package/lib/stores/QueryBuilderFilterState.d.ts +127 -0
  211. package/lib/stores/QueryBuilderFilterState.d.ts.map +1 -0
  212. package/lib/stores/QueryBuilderFilterState.js +566 -0
  213. package/lib/stores/QueryBuilderFilterState.js.map +1 -0
  214. package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts +35 -0
  215. package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
  216. package/lib/stores/QueryBuilderGraphFetchTreeState.js +65 -0
  217. package/lib/stores/QueryBuilderGraphFetchTreeState.js.map +1 -0
  218. package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts +41 -0
  219. package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
  220. package/lib/stores/QueryBuilderGraphFetchTreeUtil.js +173 -0
  221. package/lib/stores/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
  222. package/lib/stores/QueryBuilderLambdaBuilder.d.ts +30 -0
  223. package/lib/stores/QueryBuilderLambdaBuilder.d.ts.map +1 -0
  224. package/lib/stores/QueryBuilderLambdaBuilder.js +407 -0
  225. package/lib/stores/QueryBuilderLambdaBuilder.js.map +1 -0
  226. package/lib/stores/QueryBuilderLambdaProcessor.d.ts +56 -0
  227. package/lib/stores/QueryBuilderLambdaProcessor.d.ts.map +1 -0
  228. package/lib/stores/QueryBuilderLambdaProcessor.js +544 -0
  229. package/lib/stores/QueryBuilderLambdaProcessor.js.map +1 -0
  230. package/lib/stores/QueryBuilderOperatorsHelper.d.ts +28 -0
  231. package/lib/stores/QueryBuilderOperatorsHelper.d.ts.map +1 -0
  232. package/lib/stores/QueryBuilderOperatorsHelper.js +123 -0
  233. package/lib/stores/QueryBuilderOperatorsHelper.js.map +1 -0
  234. package/lib/stores/QueryBuilderPostFilterOperator.d.ts +29 -0
  235. package/lib/stores/QueryBuilderPostFilterOperator.d.ts.map +1 -0
  236. package/lib/stores/QueryBuilderPostFilterOperator.js +30 -0
  237. package/lib/stores/QueryBuilderPostFilterOperator.js.map +1 -0
  238. package/lib/stores/QueryBuilderPostFilterProcessor.d.ts +24 -0
  239. package/lib/stores/QueryBuilderPostFilterProcessor.d.ts.map +1 -0
  240. package/lib/stores/QueryBuilderPostFilterProcessor.js +111 -0
  241. package/lib/stores/QueryBuilderPostFilterProcessor.js.map +1 -0
  242. package/lib/stores/QueryBuilderPostFilterState.d.ts +132 -0
  243. package/lib/stores/QueryBuilderPostFilterState.d.ts.map +1 -0
  244. package/lib/stores/QueryBuilderPostFilterState.js +559 -0
  245. package/lib/stores/QueryBuilderPostFilterState.js.map +1 -0
  246. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +25 -0
  247. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
  248. package/lib/stores/QueryBuilderPreviewDataHelper.js +161 -0
  249. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -0
  250. package/lib/stores/QueryBuilderProjectionState.d.ts +104 -0
  251. package/lib/stores/QueryBuilderProjectionState.d.ts.map +1 -0
  252. package/lib/stores/QueryBuilderProjectionState.js +432 -0
  253. package/lib/stores/QueryBuilderProjectionState.js.map +1 -0
  254. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +62 -0
  255. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -0
  256. package/lib/stores/QueryBuilderPropertyEditorState.js +384 -0
  257. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -0
  258. package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts +46 -0
  259. package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts.map +1 -0
  260. package/lib/stores/QueryBuilderPropertySearchPanelState.js +240 -0
  261. package/lib/stores/QueryBuilderPropertySearchPanelState.js.map +1 -0
  262. package/lib/stores/QueryBuilderResultState.d.ts +38 -0
  263. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -0
  264. package/lib/stores/QueryBuilderResultState.js +164 -0
  265. package/lib/stores/QueryBuilderResultState.js.map +1 -0
  266. package/lib/stores/QueryBuilderSetupState.d.ts +46 -0
  267. package/lib/stores/QueryBuilderSetupState.d.ts.map +1 -0
  268. package/lib/stores/QueryBuilderSetupState.js +163 -0
  269. package/lib/stores/QueryBuilderSetupState.js.map +1 -0
  270. package/lib/stores/QueryBuilderState.d.ts +101 -0
  271. package/lib/stores/QueryBuilderState.d.ts.map +1 -0
  272. package/lib/stores/QueryBuilderState.js +371 -0
  273. package/lib/stores/QueryBuilderState.js.map +1 -0
  274. package/lib/stores/QueryBuilderUnsupportedState.d.ts +26 -0
  275. package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +1 -0
  276. package/lib/stores/QueryBuilderUnsupportedState.js +36 -0
  277. package/lib/stores/QueryBuilderUnsupportedState.js.map +1 -0
  278. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +19 -0
  279. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
  280. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +50 -0
  281. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
  282. package/lib/stores/QueryEditorStore.d.ts +98 -0
  283. package/lib/stores/QueryEditorStore.d.ts.map +1 -0
  284. package/lib/stores/QueryEditorStore.js +370 -0
  285. package/lib/stores/QueryEditorStore.js.map +1 -0
  286. package/lib/stores/QueryEditorStoreTestUtils.d.ts +18 -0
  287. package/lib/stores/QueryEditorStoreTestUtils.d.ts.map +1 -0
  288. package/lib/stores/QueryEditorStoreTestUtils.js +42 -0
  289. package/lib/stores/QueryEditorStoreTestUtils.js.map +1 -0
  290. package/lib/stores/QueryFunctionsExplorerState.d.ts +63 -0
  291. package/lib/stores/QueryFunctionsExplorerState.d.ts.map +1 -0
  292. package/lib/stores/QueryFunctionsExplorerState.js +238 -0
  293. package/lib/stores/QueryFunctionsExplorerState.js.map +1 -0
  294. package/lib/stores/QueryParametersState.d.ts +30 -0
  295. package/lib/stores/QueryParametersState.d.ts.map +1 -0
  296. package/lib/stores/QueryParametersState.js +42 -0
  297. package/lib/stores/QueryParametersState.js.map +1 -0
  298. package/lib/stores/QueryResultSetModifierState.d.ts +52 -0
  299. package/lib/stores/QueryResultSetModifierState.d.ts.map +1 -0
  300. package/lib/stores/QueryResultSetModifierState.js +165 -0
  301. package/lib/stores/QueryResultSetModifierState.js.map +1 -0
  302. package/lib/stores/QuerySetupStore.d.ts +86 -0
  303. package/lib/stores/QuerySetupStore.d.ts.map +1 -0
  304. package/lib/stores/QuerySetupStore.js +297 -0
  305. package/lib/stores/QuerySetupStore.js.map +1 -0
  306. package/lib/stores/QueryTextEditorState.d.ts +49 -0
  307. package/lib/stores/QueryTextEditorState.d.ts.map +1 -0
  308. package/lib/stores/QueryTextEditorState.js +145 -0
  309. package/lib/stores/QueryTextEditorState.js.map +1 -0
  310. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts +21 -0
  311. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
  312. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js +40 -0
  313. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
  314. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts +26 -0
  315. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
  316. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js +50 -0
  317. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js.map +1 -0
  318. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts +26 -0
  319. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
  320. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js +55 -0
  321. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js.map +1 -0
  322. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts +25 -0
  323. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
  324. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js +50 -0
  325. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
  326. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts +26 -0
  327. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
  328. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js +77 -0
  329. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
  330. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts +26 -0
  331. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
  332. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js +66 -0
  333. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
  334. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts +25 -0
  335. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
  336. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js +86 -0
  337. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js.map +1 -0
  338. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts +25 -0
  339. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
  340. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js +86 -0
  341. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js.map +1 -0
  342. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +26 -0
  343. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
  344. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
  345. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
  346. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +26 -0
  347. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
  348. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
  349. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
  350. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts +25 -0
  351. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
  352. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js +45 -0
  353. package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
  354. package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts +20 -0
  355. package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
  356. package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js +257 -0
  357. package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js.map +1 -0
  358. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts +31 -0
  359. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
  360. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js +72 -0
  361. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js.map +1 -0
  362. package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts +31 -0
  363. package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
  364. package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js +72 -0
  365. package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
  366. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts +31 -0
  367. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
  368. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js +139 -0
  369. package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js.map +1 -0
  370. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts +26 -0
  371. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
  372. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js +107 -0
  373. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
  374. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +26 -0
  375. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
  376. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js +107 -0
  377. package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
  378. package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts +31 -0
  379. package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
  380. package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js +103 -0
  381. package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js.map +1 -0
  382. package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts +31 -0
  383. package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
  384. package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
  385. package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
  386. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts +26 -0
  387. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
  388. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js +108 -0
  389. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
  390. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts +26 -0
  391. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
  392. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js +107 -0
  393. package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
  394. package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts +31 -0
  395. package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
  396. package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js +72 -0
  397. package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
  398. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts +23 -0
  399. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
  400. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js +74 -0
  401. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
  402. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts +32 -0
  403. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
  404. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js +76 -0
  405. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
  406. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts +32 -0
  407. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
  408. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js +76 -0
  409. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
  410. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts +32 -0
  411. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
  412. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js +142 -0
  413. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
  414. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +27 -0
  415. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
  416. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js +105 -0
  417. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
  418. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +24 -0
  419. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
  420. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
  421. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
  422. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts +32 -0
  423. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
  424. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js +104 -0
  425. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js.map +1 -0
  426. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +33 -0
  427. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
  428. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
  429. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
  430. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts +27 -0
  431. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
  432. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js +105 -0
  433. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
  434. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +24 -0
  435. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
  436. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
  437. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
  438. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts +32 -0
  439. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
  440. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js +76 -0
  441. package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
  442. package/package.json +99 -0
  443. package/src/LegendQueryAppEvent.ts +20 -0
  444. package/src/QueryBuilder_Const.ts +88 -0
  445. package/src/application/LegendQuery.tsx +92 -0
  446. package/src/application/LegendQueryApplicationConfig.ts +77 -0
  447. package/src/application/LegendQueryPluginManager.ts +67 -0
  448. package/src/components/LegendQueryApplication.tsx +104 -0
  449. package/src/components/LegendQueryBaseStoreProvider.tsx +68 -0
  450. package/src/components/QueryBuilder.tsx +375 -0
  451. package/src/components/QueryBuilderExplorerPanel.tsx +998 -0
  452. package/src/components/QueryBuilderFetchStructurePanel.tsx +184 -0
  453. package/src/components/QueryBuilderFilterPanel.tsx +858 -0
  454. package/src/components/QueryBuilderFunctionsExplorerPanel.tsx +598 -0
  455. package/src/components/QueryBuilderGraphFetchTreePanel.tsx +270 -0
  456. package/src/components/QueryBuilderLambdaEditor.tsx +117 -0
  457. package/src/components/QueryBuilderMilestoneEditor.tsx +291 -0
  458. package/src/components/QueryBuilderParameterPanel.tsx +434 -0
  459. package/src/components/QueryBuilderPostFilterPanel.tsx +1061 -0
  460. package/src/components/QueryBuilderProjectionPanel.tsx +652 -0
  461. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +370 -0
  462. package/src/components/QueryBuilderPropertyInfoTooltip.tsx +87 -0
  463. package/src/components/QueryBuilderPropertySearchPanel.tsx +617 -0
  464. package/src/components/QueryBuilderResultModifierPanel.tsx +252 -0
  465. package/src/components/QueryBuilderResultPanel.tsx +582 -0
  466. package/src/components/QueryBuilderSetupPanel.tsx +341 -0
  467. package/src/components/QueryBuilderTextEditor.tsx +127 -0
  468. package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +110 -0
  469. package/src/components/QueryBuilder_TestID.ts +26 -0
  470. package/src/components/QueryEditor.tsx +345 -0
  471. package/src/components/QueryEditorComponentTestUtils.tsx +200 -0
  472. package/src/components/QueryEditorStoreProvider.tsx +128 -0
  473. package/src/components/QuerySetup.tsx +907 -0
  474. package/src/components/QuerySetupStoreProvider.tsx +65 -0
  475. package/src/components/shared/ElementIconUtils.tsx +47 -0
  476. package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +32 -0
  477. package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +33 -0
  478. package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +22 -0
  479. package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +22 -0
  480. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +47 -0
  481. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +27 -0
  482. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +170 -0
  483. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +573 -0
  484. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +28 -0
  485. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +296 -0
  486. package/src/index.ts +57 -0
  487. package/src/stores/LegendQueryApplicationPlugin.ts +61 -0
  488. package/src/stores/LegendQueryBaseStore.ts +47 -0
  489. package/src/stores/LegendQueryEventService.ts +38 -0
  490. package/src/stores/LegendQueryRouter.ts +114 -0
  491. package/src/stores/QueryBuilderAggregationState.ts +208 -0
  492. package/src/stores/QueryBuilderExplorerState.ts +590 -0
  493. package/src/stores/QueryBuilderFetchStructureState.ts +59 -0
  494. package/src/stores/QueryBuilderFilterState.ts +815 -0
  495. package/src/stores/QueryBuilderGraphFetchTreeState.ts +90 -0
  496. package/src/stores/QueryBuilderGraphFetchTreeUtil.ts +281 -0
  497. package/src/stores/QueryBuilderLambdaBuilder.ts +755 -0
  498. package/src/stores/QueryBuilderLambdaProcessor.ts +1239 -0
  499. package/src/stores/QueryBuilderOperatorsHelper.ts +191 -0
  500. package/src/stores/QueryBuilderPostFilterOperator.ts +66 -0
  501. package/src/stores/QueryBuilderPostFilterProcessor.ts +275 -0
  502. package/src/stores/QueryBuilderPostFilterState.ts +762 -0
  503. package/src/stores/QueryBuilderPreviewDataHelper.ts +300 -0
  504. package/src/stores/QueryBuilderProjectionState.ts +796 -0
  505. package/src/stores/QueryBuilderPropertyEditorState.ts +656 -0
  506. package/src/stores/QueryBuilderPropertySearchPanelState.ts +331 -0
  507. package/src/stores/QueryBuilderResultState.ts +263 -0
  508. package/src/stores/QueryBuilderSetupState.ts +236 -0
  509. package/src/stores/QueryBuilderState.ts +561 -0
  510. package/src/stores/QueryBuilderUnsupportedState.ts +42 -0
  511. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +76 -0
  512. package/src/stores/QueryEditorStore.ts +648 -0
  513. package/src/stores/QueryEditorStoreTestUtils.ts +46 -0
  514. package/src/stores/QueryFunctionsExplorerState.ts +386 -0
  515. package/src/stores/QueryParametersState.ts +54 -0
  516. package/src/stores/QueryResultSetModifierState.ts +307 -0
  517. package/src/stores/QuerySetupStore.ts +430 -0
  518. package/src/stores/QueryTextEditorState.ts +203 -0
  519. package/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts +111 -0
  520. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts +100 -0
  521. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts +108 -0
  522. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts +98 -0
  523. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts +175 -0
  524. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts +157 -0
  525. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts +176 -0
  526. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts +176 -0
  527. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts +100 -0
  528. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts +100 -0
  529. package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts +90 -0
  530. package/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts +524 -0
  531. package/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts +134 -0
  532. package/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts +134 -0
  533. package/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts +233 -0
  534. package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts +164 -0
  535. package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts +164 -0
  536. package/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts +181 -0
  537. package/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
  538. package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts +165 -0
  539. package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts +164 -0
  540. package/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts +134 -0
  541. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
  542. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
  543. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
  544. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts +238 -0
  545. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts +161 -0
  546. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
  547. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts +183 -0
  548. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
  549. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts +161 -0
  550. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
  551. package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
  552. package/tsconfig.json +155 -0
  553. package/tsconfig.package.json +38 -0
@@ -0,0 +1,379 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { forwardRef, useEffect, useRef, useState } from 'react';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { Tooltip, clsx, Dialog, TreeView, BlankPanelContent, DropdownMenu, ContextMenu, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, StringTypeIcon, ToggleIcon, HashtagIcon, ClockIcon, ChevronDownIcon, ChevronRightIcon, MoreVerticalIcon, CompressIcon, EyeIcon, InfoCircleIcon, PURE_ClassIcon, CheckIcon, SearchIcon, PanelLoadingIndicator, } from '@finos/legend-art';
20
+ import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, QueryBuilderExplorerTreeRootNodeData, QueryBuilderExplorerTreePropertyNodeData, buildPropertyExpressionFromExplorerTreeNodeData, QueryBuilderExplorerTreeSubTypeNodeData, getQueryBuilderPropertyNodeData, getQueryBuilderSubTypeNodeData, } from '../stores/QueryBuilderExplorerState.js';
21
+ import { useDrag, useDragLayer } from 'react-dnd';
22
+ import { QueryBuilderPropertyInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js';
23
+ import { getEmptyImage } from 'react-dnd-html5-backend';
24
+ import { addQueryBuilderPropertyNode } from '../stores/QueryBuilderGraphFetchTreeUtil.js';
25
+ import { QueryBuilderSimpleProjectionColumnState } from '../stores/QueryBuilderProjectionState.js';
26
+ import { flowResult } from 'mobx';
27
+ import { prettyPropertyName } from '../stores/QueryBuilderPropertyEditorState.js';
28
+ import { Class, DerivedProperty, PrimitiveType, PRIMITIVE_TYPE, Enumeration, TYPE_CAST_TOKEN, getAllClassDerivedProperties, getMultiplicityDescription, getAllClassProperties, getAllOwnClassProperties, isElementDeprecated, } from '@finos/legend-graph';
29
+ import { useApplicationStore } from '@finos/legend-application';
30
+ import { getClassPropertyIcon } from './shared/ElementIconUtils.js';
31
+ import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js';
32
+ import { filterByType, guaranteeNonNullable } from '@finos/legend-shared';
33
+ import { QueryBuilderPropertySearchPanel } from './QueryBuilderPropertySearchPanel.js';
34
+ const checkForDeprecatedNode = (node, graph, treeData) => {
35
+ if (node.type instanceof Class && isElementDeprecated(node.type, graph)) {
36
+ return true;
37
+ }
38
+ if (node instanceof QueryBuilderExplorerTreePropertyNodeData) {
39
+ if (isElementDeprecated(node.property, graph)) {
40
+ return true;
41
+ }
42
+ }
43
+ if (node instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
44
+ const parentNode = treeData.nodes.get(node.parentId);
45
+ if (parentNode?.type instanceof Class &&
46
+ isElementDeprecated(parentNode.type, graph)) {
47
+ return true;
48
+ }
49
+ }
50
+ return false;
51
+ };
52
+ export const QueryBuilderSubclassInfoTooltip = (props) => {
53
+ const { subclass, path, isMapped, children, placement, multiplicity } = props;
54
+ return (_jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
55
+ tooltip: 'query-builder__tooltip',
56
+ arrow: 'query-builder__tooltip__arrow',
57
+ tooltipPlacementRight: 'query-builder__tooltip--right',
58
+ }, TransitionProps: {
59
+ // disable transition
60
+ // NOTE: somehow, this is the only workaround we have, if for example
61
+ // we set `appear = true`, the tooltip will jump out of position
62
+ timeout: 0,
63
+ }, title: _jsxs("div", { className: "query-builder__tooltip__content", children: [_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Type" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: subclass.path })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Path" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: path })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Multiplicity" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: getMultiplicityDescription(multiplicity) })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Mapped" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: isMapped ? 'Yes' : 'No' })] })] }), children: children }));
64
+ };
65
+ const QueryBuilderExplorerPreviewDataModal = observer((props) => {
66
+ const { queryBuilderState } = props;
67
+ const previewDataState = queryBuilderState.explorerState.previewDataState;
68
+ const close = () => previewDataState.setPreviewData(undefined);
69
+ return (_jsx(Dialog, { open: Boolean(previewDataState.previewData), onClose: close, classes: {
70
+ root: 'editor-modal__root-container',
71
+ container: 'editor-modal__container',
72
+ paper: 'editor-modal__content',
73
+ }, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder__explorer__preview-data-modal", children: [_jsx("div", { className: "modal__header", children: _jsx("div", { className: "modal__title", children: prettyPropertyName(previewDataState.propertyName) }) }), _jsx("div", { className: "modal__body query-builder__explorer__preview-data-modal__body", children: previewDataState.previewData && (_jsxs("table", { className: "table", children: [_jsx("thead", { children: _jsx("tr", { children: previewDataState.previewData.columns.map((column, idx) => (
74
+ // eslint-disable-next-line react/no-array-index-key
75
+ _jsx("th", { className: "table__cell--left", children: column }, idx))) }) }), _jsx("tbody", { children: previewDataState.previewData.rows.map((row, rowIdx) => (
76
+ // eslint-disable-next-line react/no-array-index-key
77
+ _jsx("tr", { children: row.values.map((value, idx) => (
78
+ // eslint-disable-next-line react/no-array-index-key
79
+ _jsx("td", { className: "table__cell--left", children: value }, idx))) }, rowIdx))) })] })) }), _jsx("div", { className: "modal__footer", children: _jsx("button", { className: "btn modal__footer__close-btn", onClick: close, children: "Close" }) })] }) }));
80
+ });
81
+ const QueryBuilderExplorerPropertyDragLayer = observer((props) => {
82
+ const { queryBuilderState } = props;
83
+ const explorerState = queryBuilderState.explorerState;
84
+ const { itemType, item, isDragging, currentPosition } = useDragLayer((monitor) => ({
85
+ itemType: monitor.getItemType(),
86
+ item: monitor.getItem(),
87
+ isDragging: monitor.isDragging(),
88
+ initialOffset: monitor.getInitialSourceClientOffset(),
89
+ currentPosition: monitor.getClientOffset(),
90
+ }));
91
+ if (!isDragging ||
92
+ !item ||
93
+ !Object.values(QUERY_BUILDER_EXPLORER_TREE_DND_TYPE).includes(itemType)) {
94
+ return null;
95
+ }
96
+ return (_jsx("div", { className: "query-builder-explorer-tree__drag-preview-layer", children: _jsx("div", { className: "query-builder-explorer-tree__drag-preview",
97
+ // added some offset so the mouse doesn't overlap the label too much
98
+ style: !currentPosition
99
+ ? { display: 'none' }
100
+ : {
101
+ transform: `translate(${currentPosition.x + 20}px, ${currentPosition.y + 10}px)`,
102
+ }, children: explorerState.humanizePropertyName
103
+ ? prettyPropertyName(item.node.label)
104
+ : item.node.label }) }));
105
+ });
106
+ const QueryBuilderExplorerContextMenu = observer(forwardRef(function QueryBuilderExplorerContextMenu(props, ref) {
107
+ const { queryBuilderState, openNode, node } = props;
108
+ const applicationStore = useApplicationStore();
109
+ const viewType = () => applicationStore.notifyUnsupportedFeature('View Type');
110
+ const addNodeToFetchStructure = () => {
111
+ if (node instanceof QueryBuilderExplorerTreePropertyNodeData &&
112
+ !(node.type instanceof Class)) {
113
+ if (queryBuilderState.fetchStructureState.isGraphFetchMode()) {
114
+ queryBuilderState.fetchStructureState.graphFetchTreeState.addProperty(node);
115
+ }
116
+ else if (queryBuilderState.fetchStructureState.isProjectionMode()) {
117
+ const projectionState = queryBuilderState.fetchStructureState.projectionState;
118
+ projectionState.addColumn(new QueryBuilderSimpleProjectionColumnState(projectionState, buildPropertyExpressionFromExplorerTreeNodeData(queryBuilderState.explorerState.nonNullableTreeData, node, projectionState.queryBuilderState.graphManagerState.graph, queryBuilderState.explorerState.propertySearchPanelState
119
+ .allMappedPropertyNodes), projectionState.queryBuilderState.explorerState.humanizePropertyName));
120
+ }
121
+ }
122
+ };
123
+ const addAllChildrenToFetchStructure = () => {
124
+ openNode();
125
+ if (node.type instanceof Class) {
126
+ // NOTE: here we require the node to already been expanded so the child nodes are generated
127
+ // we don't allow adding unopened node. Maybe if it helps, we can show a warning.
128
+ const nodesToAdd = node.childrenIds
129
+ .map((childId) => queryBuilderState.explorerState.nonNullableTreeData.nodes.get(childId))
130
+ .filter(filterByType(QueryBuilderExplorerTreePropertyNodeData))
131
+ .filter((childNode) => !(childNode.type instanceof Class) &&
132
+ childNode.mappingData.mapped);
133
+ if (queryBuilderState.fetchStructureState.isGraphFetchMode()) {
134
+ const graphFetchTreeData = queryBuilderState.fetchStructureState.graphFetchTreeState.treeData;
135
+ if (graphFetchTreeData) {
136
+ nodesToAdd.forEach((nodeToAdd) => addQueryBuilderPropertyNode(graphFetchTreeData, queryBuilderState.explorerState.nonNullableTreeData, nodeToAdd, queryBuilderState));
137
+ queryBuilderState.fetchStructureState.graphFetchTreeState.setGraphFetchTree({
138
+ ...graphFetchTreeData,
139
+ });
140
+ }
141
+ }
142
+ else if (queryBuilderState.fetchStructureState.isProjectionMode()) {
143
+ nodesToAdd.forEach((nodeToAdd) => {
144
+ const projectionState = queryBuilderState.fetchStructureState.projectionState;
145
+ projectionState.addColumn(new QueryBuilderSimpleProjectionColumnState(projectionState, buildPropertyExpressionFromExplorerTreeNodeData(queryBuilderState.explorerState.nonNullableTreeData, nodeToAdd, projectionState.queryBuilderState.graphManagerState.graph, queryBuilderState.explorerState.propertySearchPanelState
146
+ .allMappedPropertyNodes), projectionState.queryBuilderState.explorerState.humanizePropertyName));
147
+ });
148
+ }
149
+ }
150
+ };
151
+ return (_jsxs(MenuContent, { ref: ref, children: [node instanceof QueryBuilderExplorerTreePropertyNodeData &&
152
+ !(node.type instanceof Class) && (_jsx(MenuContentItem, { onClick: addNodeToFetchStructure, children: "Add Property to Fetch Structure" })), node.type instanceof Class && (_jsx(MenuContentItem, { onClick: addAllChildrenToFetchStructure, children: "Add Properties to Fetch Structure" })), _jsx(MenuContentItem, { onClick: viewType, children: "View Type" })] }));
153
+ }));
154
+ export const renderPropertyTypeIcon = (type) => {
155
+ if (type instanceof PrimitiveType) {
156
+ if (type.name === PRIMITIVE_TYPE.STRING) {
157
+ return (_jsx(StringTypeIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__string" }));
158
+ }
159
+ else if (type.name === PRIMITIVE_TYPE.BOOLEAN) {
160
+ return (_jsx(ToggleIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__boolean" }));
161
+ }
162
+ else if (type.name === PRIMITIVE_TYPE.NUMBER ||
163
+ type.name === PRIMITIVE_TYPE.INTEGER ||
164
+ type.name === PRIMITIVE_TYPE.FLOAT ||
165
+ type.name === PRIMITIVE_TYPE.DECIMAL) {
166
+ return (_jsx(HashtagIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__number" }));
167
+ }
168
+ else if (type.name === PRIMITIVE_TYPE.DATE ||
169
+ type.name === PRIMITIVE_TYPE.DATETIME ||
170
+ type.name === PRIMITIVE_TYPE.STRICTDATE) {
171
+ return (_jsx(ClockIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__time" }));
172
+ }
173
+ }
174
+ return getClassPropertyIcon(type);
175
+ };
176
+ const QueryBuilderExplorerTreeNodeContainer = observer((props) => {
177
+ const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
178
+ const { queryBuilderState } = innerProps;
179
+ const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
180
+ const applicationStore = useApplicationStore();
181
+ const explorerState = queryBuilderState.explorerState;
182
+ const [, dragConnector, dragPreviewConnector] = useDrag(() => ({
183
+ type: node instanceof QueryBuilderExplorerTreePropertyNodeData
184
+ ? node.type instanceof Enumeration
185
+ ? QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY
186
+ : node.type instanceof Class
187
+ ? QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.CLASS_PROPERTY
188
+ : QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY
189
+ : QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ROOT,
190
+ item: () => node instanceof QueryBuilderExplorerTreePropertyNodeData
191
+ ? { node }
192
+ : {},
193
+ }), [node]);
194
+ const isExpandable = Boolean(node.childrenIds.length);
195
+ const isDerivedProperty = node instanceof QueryBuilderExplorerTreePropertyNodeData &&
196
+ node.property instanceof DerivedProperty;
197
+ const isMultiple = (node instanceof QueryBuilderExplorerTreePropertyNodeData &&
198
+ (node.property.multiplicity.upperBound === undefined ||
199
+ node.property.multiplicity.upperBound > 1)) ||
200
+ (node instanceof QueryBuilderExplorerTreeSubTypeNodeData &&
201
+ (node.multiplicity.upperBound === undefined ||
202
+ node.multiplicity.upperBound > 1));
203
+ const allowPreview = node.mappingData.mapped &&
204
+ node instanceof QueryBuilderExplorerTreePropertyNodeData &&
205
+ node.type instanceof PrimitiveType &&
206
+ !node.isPartOfDerivedPropertyBranch;
207
+ const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
208
+ const selectNode = () => onNodeSelect?.(node);
209
+ const openNode = () => {
210
+ if (!node.isOpen) {
211
+ onNodeSelect?.(node);
212
+ }
213
+ };
214
+ // context menu
215
+ const showContextMenu = node instanceof QueryBuilderExplorerTreeRootNodeData ||
216
+ (node instanceof QueryBuilderExplorerTreePropertyNodeData &&
217
+ !(node.type instanceof PrimitiveType));
218
+ const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
219
+ const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
220
+ const previewData = () => {
221
+ if (node instanceof QueryBuilderExplorerTreePropertyNodeData) {
222
+ flowResult(queryBuilderState.fetchStructureState.projectionState.previewData(node)).catch(applicationStore.alertUnhandledError);
223
+ }
224
+ };
225
+ // hide default HTML5 preview image
226
+ useEffect(() => {
227
+ dragPreviewConnector(getEmptyImage(), { captureDraggingState: true });
228
+ }, [dragPreviewConnector]);
229
+ if (!node.mappingData.mapped && !explorerState.showUnmappedProperties) {
230
+ return null;
231
+ }
232
+ return (_jsx(ContextMenu, { content: _jsx(QueryBuilderExplorerContextMenu, { queryBuilderState: queryBuilderState, openNode: openNode, node: node }), disabled: !showContextMenu ||
233
+ // NOTE: this might make it hard to modularize
234
+ // See https://github.com/finos/legend-studio/issues/731
235
+ queryBuilderState.fetchStructureState.projectionState.hasParserError, menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { className: clsx('tree-view__node__container query-builder-explorer-tree__node__container', {
236
+ 'query-builder-explorer-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
237
+ 'query-builder-explorer-tree__node__container--unmapped': !node.mappingData.mapped,
238
+ 'query-builder-explorer-tree__node__container--selected': node.isSelected,
239
+ }), title: !node.mappingData.mapped ? 'Property is not mapped' : undefined, onClick: selectNode, ref: node.mappingData.mapped && !isExpandable ? dragConnector : undefined, style: {
240
+ paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1) + 0.5}rem`,
241
+ display: 'flex',
242
+ }, children: [node instanceof QueryBuilderExplorerTreeRootNodeData && (
243
+ // NOTE: since the root of the tree is the class, not the property, we want to display it differently
244
+ _jsxs(_Fragment, { children: [_jsx("div", { className: "query-builder-explorer-tree__expand-icon", children: nodeExpandIcon }), _jsxs("div", { className: "tree-view__node__label query-builder-explorer-tree__root-node__label", children: [_jsx("div", { className: "query-builder-explorer-tree__root-node__label__icon", children: _jsx(PURE_ClassIcon, {}) }), _jsx("div", { className: "query-builder-explorer-tree__root-node__label__text", children: node.label })] })] })), (node instanceof QueryBuilderExplorerTreePropertyNodeData ||
245
+ node instanceof QueryBuilderExplorerTreeSubTypeNodeData) && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "tree-view__node__icon query-builder-explorer-tree__node__icon", children: [_jsx("div", { className: "query-builder-explorer-tree__expand-icon", children: nodeExpandIcon }), _jsx("div", { className: "query-builder-explorer-tree__type-icon", children: renderPropertyTypeIcon(node.type) })] }), _jsxs("div", { className: clsx('tree-view__node__label query-builder-explorer-tree__node__label query-builder-explorer-tree__node__label--with-action', {
246
+ 'query-builder-explorer-tree__node__label--with-preview': allowPreview,
247
+ }), children: [_jsx("div", { className: clsx('query-builder-explorer-tree__node__label--property--name', {
248
+ 'query-builder-explorer-tree__node__label--deprecated': checkForDeprecatedNode(node, explorerState.queryBuilderState.graphManagerState
249
+ .graph, explorerState.nonNullableTreeData),
250
+ }), children: explorerState.humanizePropertyName
251
+ ? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
252
+ ? TYPE_CAST_TOKEN + prettyPropertyName(node.label)
253
+ : prettyPropertyName(node.label)
254
+ : node instanceof QueryBuilderExplorerTreeSubTypeNodeData
255
+ ? TYPE_CAST_TOKEN + node.label
256
+ : node.label }), isDerivedProperty && (_jsx("div", { className: "query-builder-explorer-tree__node__label__derived-property", title: "Property is derived and may require user to specify parameter values", children: "(...)" })), isMultiple && (_jsx("div", { className: "query-builder-explorer-tree__node__label__multiple", title: "Multiple values of this property can cause row explosion", children: "*" }))] }), _jsxs("div", { className: "query-builder-explorer-tree__node__actions", children: [allowPreview && (_jsx("button", { className: "query-builder-explorer-tree__node__action", disabled: explorerState.previewDataState.isGeneratingPreviewData, tabIndex: -1, title: "Preview Data", onClick: previewData, children: _jsx(EyeIcon, {}) })), node instanceof QueryBuilderExplorerTreePropertyNodeData && (_jsx(QueryBuilderPropertyInfoTooltip, { property: node.property, path: node.id, isMapped: node.mappingData.mapped, children: _jsx("div", { className: "query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info", children: _jsx(InfoCircleIcon, {}) }) })), node instanceof QueryBuilderExplorerTreeSubTypeNodeData && (_jsx(QueryBuilderSubclassInfoTooltip, { subclass: node.subclass, path: node.id, isMapped: node.mappingData.mapped, multiplicity: node.multiplicity, children: _jsx("div", { className: "query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info", children: _jsx(InfoCircleIcon, {}) }) }))] })] }))] }) }));
257
+ });
258
+ const QueryBuilderExplorerTreeNodeView = observer((props) => {
259
+ const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
260
+ const { queryBuilderState } = innerProps;
261
+ if (!node.mappingData.mapped &&
262
+ !queryBuilderState.explorerState.showUnmappedProperties) {
263
+ return null;
264
+ }
265
+ return (_jsxs("div", { className: "tree-view__node__block", children: [_jsx(QueryBuilderExplorerTreeNodeContainer, { node: node, level: level + 1, stepPaddingInRem: stepPaddingInRem, onNodeSelect: onNodeSelect, innerProps: innerProps }), node.isOpen &&
266
+ getChildNodes(node).map((childNode) => (_jsx(QueryBuilderExplorerTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id)))] }));
267
+ });
268
+ /**
269
+ * Sort order for Query Builder tree nodes will be ranked by return type as followed:
270
+ * 1. Primitive
271
+ * 2. Enumeration
272
+ * 3. Class
273
+ * 4. Class Subtypes
274
+ * Note: Derived property nodes will be ranked lower for each relevant return type
275
+ */
276
+ const getQueryBuilderExplorerTreeNodeSortRank = (node) => {
277
+ if (node instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
278
+ return 0;
279
+ }
280
+ else if (node.type instanceof Class) {
281
+ return node.isPartOfDerivedPropertyBranch ? 1 : 2;
282
+ }
283
+ else if (node.type instanceof Enumeration) {
284
+ return node.isPartOfDerivedPropertyBranch ? 3 : 4;
285
+ }
286
+ else {
287
+ return node.isPartOfDerivedPropertyBranch ? 5 : 6;
288
+ }
289
+ };
290
+ const QueryBuilderExplorerTree = observer((props) => {
291
+ const { queryBuilderState } = props;
292
+ const explorerState = queryBuilderState.explorerState;
293
+ const treeData = explorerState.nonNullableTreeData;
294
+ const onNodeSelect = (node) => {
295
+ if (node.childrenIds.length) {
296
+ node.isOpen = !node.isOpen;
297
+ if (node.isOpen &&
298
+ (node instanceof QueryBuilderExplorerTreePropertyNodeData ||
299
+ node instanceof QueryBuilderExplorerTreeSubTypeNodeData) &&
300
+ node.type instanceof Class) {
301
+ (node instanceof QueryBuilderExplorerTreeSubTypeNodeData
302
+ ? getAllOwnClassProperties(node.type)
303
+ : getAllClassProperties(node.type).concat(getAllClassDerivedProperties(node.type))).forEach((property) => {
304
+ const propertyTreeNodeData = getQueryBuilderPropertyNodeData(property, node, guaranteeNonNullable(explorerState.mappingModelCoverageAnalysisResult));
305
+ treeData.nodes.set(propertyTreeNodeData.id, propertyTreeNodeData);
306
+ });
307
+ node.type._subclasses.forEach((subclass) => {
308
+ const subTypeTreeNodeData = getQueryBuilderSubTypeNodeData(subclass, node, guaranteeNonNullable(explorerState.mappingModelCoverageAnalysisResult));
309
+ treeData.nodes.set(subTypeTreeNodeData.id, subTypeTreeNodeData);
310
+ });
311
+ }
312
+ }
313
+ explorerState.refreshTree();
314
+ };
315
+ const getChildNodes = (node) => node.childrenIds
316
+ .map((id) => treeData.nodes.get(id))
317
+ .filter((childNode) => childNode instanceof QueryBuilderExplorerTreeSubTypeNodeData ||
318
+ childNode instanceof QueryBuilderExplorerTreePropertyNodeData)
319
+ // simple properties come first
320
+ .sort((a, b) => a.label.localeCompare(b.label))
321
+ .sort((a, b) => getQueryBuilderExplorerTreeNodeSortRank(b) -
322
+ getQueryBuilderExplorerTreeNodeSortRank(a));
323
+ return (_jsx(TreeView, { components: {
324
+ TreeNodeContainer: QueryBuilderExplorerTreeNodeContainer,
325
+ TreeNodeView: QueryBuilderExplorerTreeNodeView,
326
+ }, className: "query-builder-explorer-tree__root", treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
327
+ queryBuilderState,
328
+ } }));
329
+ });
330
+ export const QueryBuilderExplorerPanel = observer((props) => {
331
+ const { queryBuilderState } = props;
332
+ const searchButtonRef = useRef(null);
333
+ const explorerState = queryBuilderState.explorerState;
334
+ const propertySearchPanelState = explorerState.propertySearchPanelState;
335
+ const applicationStore = useApplicationStore();
336
+ const collapseTree = () => {
337
+ if (explorerState.treeData) {
338
+ Array.from(explorerState.treeData.nodes.values()).forEach((node) => {
339
+ node.isOpen = false;
340
+ });
341
+ explorerState.refreshTree();
342
+ }
343
+ };
344
+ const toggleShowUnmappedProperties = () => explorerState.setShowUnmappedProperties(!explorerState.showUnmappedProperties);
345
+ const toggleHumanizePropertyName = () => explorerState.setHumanizePropertyName(!explorerState.humanizePropertyName);
346
+ const togglePropertySearch = () => {
347
+ if (explorerState.treeData) {
348
+ if (!propertySearchPanelState.isSearchPanelOpen) {
349
+ propertySearchPanelState.setIsSearchPanelOpen(true);
350
+ if (!propertySearchPanelState.allMappedPropertyNodes.length) {
351
+ propertySearchPanelState.fetchAllPropertyNodes();
352
+ }
353
+ }
354
+ else {
355
+ propertySearchPanelState.setIsSearchPanelOpen(false);
356
+ }
357
+ }
358
+ };
359
+ useEffect(() => {
360
+ flowResult(explorerState.analyzeMappingModelCoverage()).catch(applicationStore.alertUnhandledError);
361
+ }, [
362
+ applicationStore,
363
+ explorerState,
364
+ queryBuilderState.querySetupState.mapping,
365
+ ]);
366
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER, className: clsx('panel query-builder__explorer', {
367
+ // NOTE: this might make it hard to modularize
368
+ // See https://github.com/finos/legend-studio/issues/731
369
+ backdrop__element: queryBuilderState.fetchStructureState.projectionState
370
+ .hasParserError,
371
+ }), children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "explorer" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { ref: searchButtonRef, className: clsx('panel__header__action', {
372
+ 'query-builder__explorer__header__action--active': propertySearchPanelState.isSearchPanelOpen,
373
+ }), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children: _jsx(SearchIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: collapseTree, tabIndex: -1, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx(DropdownMenu, { className: "panel__header__action", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowUnmappedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.showUnmappedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Unmapped Properties" })] }), _jsxs(MenuContentItem, { onClick: toggleHumanizePropertyName, children: [_jsx(MenuContentItemIcon, { children: explorerState.humanizePropertyName ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Humanize Property Name" })] })] }), menuProps: {
374
+ anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
375
+ transformOrigin: { vertical: 'top', horizontal: 'left' },
376
+ elevation: 7,
377
+ }, children: _jsx(MoreVerticalIcon, { title: "Show Options Menu...", className: "query-builder__icon__more-options" }) })] }), propertySearchPanelState.isSearchPanelOpen && (_jsx(QueryBuilderPropertySearchPanel, { queryBuilderState: queryBuilderState, triggerElement: searchButtonRef.current }))] }), _jsxs("div", { className: "panel__content query-builder-explorer-tree__content", children: [_jsx(PanelLoadingIndicator, { isLoading: explorerState.mappingModelCoverageAnalysisState.isInProgress }), _jsx(QueryBuilderExplorerPropertyDragLayer, { queryBuilderState: queryBuilderState }), explorerState.mappingModelCoverageAnalysisState.isInProgress ? (_jsx(BlankPanelContent, { children: explorerState.mappingModelCoverageAnalysisState.message })) : (_jsxs(_Fragment, { children: [!explorerState.treeData && (_jsx(BlankPanelContent, { children: "Specify the class, mapping, and runtime to start building query" })), explorerState.treeData && (_jsx(QueryBuilderExplorerTree, { queryBuilderState: queryBuilderState }))] })), _jsx(QueryBuilderExplorerPreviewDataModal, { queryBuilderState: queryBuilderState })] })] }));
378
+ });
379
+ //# sourceMappingURL=QueryBuilderExplorerPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderExplorerPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderExplorerPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAKL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,+CAA+C,EAC/C,uCAAuC,EACvC,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CA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D,KAAC,oCAAoC,IACnC,iBAAiB,EAAE,iBAAiB,GACpC,IACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
18
+ export declare const QueryBuilderFetchStructurePanel: ((props: {
19
+ queryBuilderState: QueryBuilderState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=QueryBuilderFetchStructurePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8BxE,eAAO,MAAM,+BAA+B,WAClC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAiIjD,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { clsx, BlankPanelContent, PlusIcon, OptionsIcon, } from '@finos/legend-art';
19
+ import { prettyCONSTName } from '@finos/legend-shared';
20
+ import { QueryBuilderProjectionPanel } from './QueryBuilderProjectionPanel.js';
21
+ import { QueryBuilderGraphFetchTreePanel } from './QueryBuilderGraphFetchTreePanel.js';
22
+ import { FETCH_STRUCTURE_MODE } from '../stores/QueryBuilderFetchStructureState.js';
23
+ import { QueryBuilderPostFilterState } from '../stores/QueryBuilderPostFilterState.js';
24
+ import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
25
+ const QueryBuilderUnsupportedFetchStructure = observer((props) => {
26
+ const { mode } = props;
27
+ return (_jsx("div", { className: "panel__content", children: _jsx(BlankPanelContent, { children: _jsx("div", { className: "query-builder__unsupported-view__main", children: _jsx("div", { className: "query-builder__unsupported-view__summary", children: `Unsupported fetch structure mode ${prettyCONSTName(mode)}` }) }) }) }));
28
+ });
29
+ export const QueryBuilderFetchStructurePanel = observer((props) => {
30
+ const { queryBuilderState } = props;
31
+ const fetchStructureState = queryBuilderState.fetchStructureState;
32
+ const fetchStructureStateMode = fetchStructureState.fetchStructureMode;
33
+ const applicationStore = useApplicationStore();
34
+ const openResultSetModifierEditor = () => queryBuilderState.resultSetModifierState.setShowModal(true);
35
+ const addNewBlankDerivation = () => fetchStructureState.projectionState.addNewBlankDerivation();
36
+ const renderFetchMode = () => {
37
+ switch (fetchStructureStateMode) {
38
+ case FETCH_STRUCTURE_MODE.PROJECTION:
39
+ return (_jsx(QueryBuilderProjectionPanel, { queryBuilderState: queryBuilderState }));
40
+ case FETCH_STRUCTURE_MODE.GRAPH_FETCH:
41
+ return (_jsx(QueryBuilderGraphFetchTreePanel, { queryBuilderState: queryBuilderState }));
42
+ default:
43
+ return (_jsx(QueryBuilderUnsupportedFetchStructure, { mode: fetchStructureStateMode }));
44
+ }
45
+ };
46
+ const onChangeFetchStructureMode = (fetchMode) => () => {
47
+ if (fetchStructureState.fetchStructureMode !== fetchMode) {
48
+ // TODO: might want to add alert modal to alert user changing fetch structure resets state
49
+ if (fetchMode === FETCH_STRUCTURE_MODE.GRAPH_FETCH &&
50
+ queryBuilderState.showPostFilterPanel &&
51
+ queryBuilderState.postFilterState.nodes.size > 0) {
52
+ applicationStore.setActionAlertInfo({
53
+ message: 'With graph fetch, post filter is not supported. Current post filters will be lost when switching to the graph fetch panel. Do you still want to proceed?',
54
+ type: ActionAlertType.CAUTION,
55
+ actions: [
56
+ {
57
+ label: 'Proceed',
58
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
59
+ handler: applicationStore.guardUnhandledError(async () => {
60
+ fetchStructureState.setFetchStructureMode(fetchMode);
61
+ queryBuilderState.changeFetchStructure();
62
+ queryBuilderState.postFilterState =
63
+ new QueryBuilderPostFilterState(queryBuilderState, queryBuilderState.postFilterOperators);
64
+ queryBuilderState.setShowPostFilterPanel(false);
65
+ }),
66
+ },
67
+ {
68
+ label: 'Cancel',
69
+ type: ActionAlertActionType.PROCEED,
70
+ default: true,
71
+ },
72
+ ],
73
+ });
74
+ }
75
+ else {
76
+ fetchStructureState.setFetchStructureMode(fetchMode);
77
+ queryBuilderState.changeFetchStructure();
78
+ queryBuilderState.postFilterState = new QueryBuilderPostFilterState(queryBuilderState, queryBuilderState.postFilterOperators);
79
+ if (fetchMode === FETCH_STRUCTURE_MODE.GRAPH_FETCH) {
80
+ queryBuilderState.setShowPostFilterPanel(false);
81
+ }
82
+ }
83
+ }
84
+ };
85
+ return (_jsxs("div", { className: "panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "fetch structure" }) }), _jsxs("div", { className: "panel__header__actions", children: [fetchStructureStateMode === FETCH_STRUCTURE_MODE.PROJECTION && (_jsxs(_Fragment, { children: [_jsx("button", { className: "panel__header__action", onClick: openResultSetModifierEditor, tabIndex: -1, title: "Configure result set modifiers...", children: _jsx(OptionsIcon, { className: "query-builder__icon query-builder__icon__query-option" }) }), _jsx("button", { className: "panel__header__action", onClick: addNewBlankDerivation, tabIndex: -1, title: "Add a new derivation", children: _jsx(PlusIcon, {}) })] })), _jsx("div", { className: "query-builder__fetch__structure__modes", children: Object.values(FETCH_STRUCTURE_MODE).map((fetchMode) => (_jsx("button", { onClick: onChangeFetchStructureMode(fetchMode), className: clsx('query-builder__fetch__structure__mode', {
86
+ 'query-builder__fetch__structure__mode--selected': fetchMode === fetchStructureState.fetchStructureMode,
87
+ }), children: prettyCONSTName(fetchMode) }, fetchMode))) })] })] }), renderFetchMode()] }));
88
+ });
89
+ //# sourceMappingURL=QueryBuilderFetchStructurePanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,QAAQ,EACR,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAA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AsB,CAAC,KAAK,CAAC,CAAC;iBACjD;aACF;SACF;IACH,CAAC,CAAC;IAEJ,OAAO,CACL,eAAK,SAAS,EAAC,OAAO,aACpB,eAAK,SAAS,EAAC,eAAe,aAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,gCAAsB,GAC9D,EACN,eAAK,SAAS,EAAC,wBAAwB,aACpC,uBAAuB,KAAK,oBAAoB,CAAC,UAAU,IAAI,CAC9D,8BACE,iBACE,SAAS,EAAC,uBAAuB,EACjC,OAAO,EAAE,2BAA2B,EACpC,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,mCAAmC,YAEzC,KAAC,WAAW,IAAC,SAAS,EAAC,uDAAuD,GAAG,GAC1E,EACT,iBACE,SAAS,EAAC,uBAAuB,EACjC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,sBAAsB,YAE5B,KAAC,QAAQ,KAAG,GACL,IACR,CACJ,EACD,cAAK,SAAS,EAAC,wCAAwC,YACpD,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CACtD,iBACE,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,EAC9C,SAAS,EAAE,IAAI,CAAC,uCAAuC,EAAE;wCACvD,iDAAiD,EAC/C,SAAS,KAAK,mBAAmB,CAAC,kBAAkB;qCACvD,CAAC,YAGD,eAAe,CAAC,SAAS,CAAC,IAFtB,SAAS,CAGP,CACV,CAAC,GACE,IACF,IACF,EACL,eAAe,EAAE,IACd,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
18
+ export declare const QueryBuilderFilterPanel: ((props: {
19
+ queryBuilderState: QueryBuilderState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=QueryBuilderFilterPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAoDH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8kBxE,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAwMjD,CAAC"}