@finos/legend-application-query 5.2.8 → 7.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 (602) hide show
  1. package/lib/application/LegendQuery.d.ts.map +1 -1
  2. package/lib/application/LegendQuery.js +4 -7
  3. package/lib/application/LegendQuery.js.map +1 -1
  4. package/lib/components/LegendQueryApplication.d.ts +0 -1
  5. package/lib/components/LegendQueryApplication.d.ts.map +1 -1
  6. package/lib/components/LegendQueryApplication.js +2 -2
  7. package/lib/components/LegendQueryApplication.js.map +1 -1
  8. package/lib/components/QueryEditor.d.ts +2 -3
  9. package/lib/components/QueryEditor.d.ts.map +1 -1
  10. package/lib/components/QueryEditor.js +83 -32
  11. package/lib/components/QueryEditor.js.map +1 -1
  12. package/lib/components/QueryEditorComponentTestUtils.d.ts +5 -1
  13. package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
  14. package/lib/components/QueryEditorComponentTestUtils.js +21 -20
  15. package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
  16. package/lib/components/QueryEditorStoreProvider.d.ts +2 -3
  17. package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -1
  18. package/lib/components/QueryEditorStoreProvider.js +5 -5
  19. package/lib/components/QueryEditorStoreProvider.js.map +1 -1
  20. package/lib/components/QuerySetup.js +17 -17
  21. package/lib/components/QuerySetup.js.map +1 -1
  22. package/lib/index.css +2 -2
  23. package/lib/index.css.map +1 -1
  24. package/lib/index.d.ts +2 -4
  25. package/lib/index.d.ts.map +1 -1
  26. package/lib/index.js +2 -4
  27. package/lib/index.js.map +1 -1
  28. package/lib/package.json +8 -14
  29. package/lib/stores/LegendQueryApplicationPlugin.d.ts +7 -0
  30. package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
  31. package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
  32. package/lib/stores/LegendQueryRouter.d.ts +8 -12
  33. package/lib/stores/LegendQueryRouter.d.ts.map +1 -1
  34. package/lib/stores/LegendQueryRouter.js +6 -7
  35. package/lib/stores/LegendQueryRouter.js.map +1 -1
  36. package/lib/stores/QueryEditorStore.d.ts +22 -11
  37. package/lib/stores/QueryEditorStore.d.ts.map +1 -1
  38. package/lib/stores/QueryEditorStore.js +102 -67
  39. package/lib/stores/QueryEditorStore.js.map +1 -1
  40. package/lib/stores/QuerySetupStore.d.ts +4 -4
  41. package/lib/stores/QuerySetupStore.d.ts.map +1 -1
  42. package/lib/stores/QuerySetupStore.js +4 -4
  43. package/lib/stores/QuerySetupStore.js.map +1 -1
  44. package/package.json +15 -21
  45. package/src/application/LegendQuery.tsx +7 -8
  46. package/src/components/LegendQueryApplication.tsx +7 -7
  47. package/src/components/QueryEditor.tsx +371 -134
  48. package/src/components/QueryEditorComponentTestUtils.tsx +40 -29
  49. package/src/components/QueryEditorStoreProvider.tsx +7 -9
  50. package/src/components/QuerySetup.tsx +25 -25
  51. package/src/index.ts +2 -10
  52. package/src/stores/LegendQueryApplicationPlugin.ts +12 -0
  53. package/src/stores/LegendQueryRouter.ts +11 -16
  54. package/src/stores/QueryEditorStore.ts +167 -113
  55. package/src/stores/QuerySetupStore.ts +8 -6
  56. package/tsconfig.json +2 -111
  57. package/tsconfig.package.json +1 -1
  58. package/lib/QueryBuilder_Const.d.ts +0 -77
  59. package/lib/QueryBuilder_Const.d.ts.map +0 -1
  60. package/lib/QueryBuilder_Const.js +0 -85
  61. package/lib/QueryBuilder_Const.js.map +0 -1
  62. package/lib/components/QueryBuilder.d.ts +0 -23
  63. package/lib/components/QueryBuilder.d.ts.map +0 -1
  64. package/lib/components/QueryBuilder.js +0 -111
  65. package/lib/components/QueryBuilder.js.map +0 -1
  66. package/lib/components/QueryBuilderParameterPanel.d.ts +0 -30
  67. package/lib/components/QueryBuilderParameterPanel.d.ts.map +0 -1
  68. package/lib/components/QueryBuilderParameterPanel.js +0 -128
  69. package/lib/components/QueryBuilderParameterPanel.js.map +0 -1
  70. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -30
  71. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +0 -1
  72. package/lib/components/QueryBuilderPropertyExpressionEditor.js +0 -116
  73. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +0 -1
  74. package/lib/components/QueryBuilderResultPanel.d.ts +0 -23
  75. package/lib/components/QueryBuilderResultPanel.d.ts.map +0 -1
  76. package/lib/components/QueryBuilderResultPanel.js +0 -242
  77. package/lib/components/QueryBuilderResultPanel.js.map +0 -1
  78. package/lib/components/QueryBuilderSetupPanel.d.ts +0 -23
  79. package/lib/components/QueryBuilderSetupPanel.d.ts.map +0 -1
  80. package/lib/components/QueryBuilderSetupPanel.js +0 -149
  81. package/lib/components/QueryBuilderSetupPanel.js.map +0 -1
  82. package/lib/components/QueryBuilderTextEditor.d.ts +0 -23
  83. package/lib/components/QueryBuilderTextEditor.d.ts.map +0 -1
  84. package/lib/components/QueryBuilderTextEditor.js +0 -48
  85. package/lib/components/QueryBuilderTextEditor.js.map +0 -1
  86. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -23
  87. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +0 -1
  88. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +0 -37
  89. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +0 -1
  90. package/lib/components/QueryBuilder_TestID.d.ts +0 -26
  91. package/lib/components/QueryBuilder_TestID.d.ts.map +0 -1
  92. package/lib/components/QueryBuilder_TestID.js +0 -27
  93. package/lib/components/QueryBuilder_TestID.js.map +0 -1
  94. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -36
  95. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +0 -1
  96. package/lib/components/explorer/QueryBuilderExplorerPanel.js +0 -335
  97. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +0 -1
  98. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -23
  99. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
  100. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +0 -147
  101. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
  102. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +0 -24
  103. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
  104. package/lib/components/explorer/QueryBuilderMilestoneEditor.js +0 -120
  105. package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
  106. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -24
  107. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
  108. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +0 -200
  109. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +0 -1
  110. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -23
  111. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
  112. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +0 -52
  113. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +0 -1
  114. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -32
  115. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
  116. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +0 -94
  117. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +0 -1
  118. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -31
  119. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +0 -1
  120. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +0 -378
  121. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +0 -1
  122. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +0 -23
  123. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
  124. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +0 -216
  125. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
  126. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -23
  127. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +0 -1
  128. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +0 -88
  129. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +0 -1
  130. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -23
  131. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +0 -1
  132. package/lib/components/filter/QueryBuilderFilterPanel.js +0 -316
  133. package/lib/components/filter/QueryBuilderFilterPanel.js.map +0 -1
  134. package/lib/components/shared/ElementIconUtils.d.ts +0 -18
  135. package/lib/components/shared/ElementIconUtils.d.ts.map +0 -1
  136. package/lib/components/shared/ElementIconUtils.js +0 -37
  137. package/lib/components/shared/ElementIconUtils.js.map +0 -1
  138. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
  139. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
  140. package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -47
  141. package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
  142. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -20
  143. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
  144. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +0 -28
  145. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +0 -1
  146. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -26
  147. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
  148. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +0 -32
  149. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +0 -1
  150. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +0 -21
  151. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
  152. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +0 -27
  153. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
  154. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +0 -24
  155. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
  156. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +0 -32
  157. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
  158. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -21
  159. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
  160. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -20
  161. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
  162. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +0 -21
  163. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
  164. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +0 -20
  165. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
  166. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -25
  167. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  168. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -21
  169. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  170. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -18
  171. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
  172. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -20
  173. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
  174. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -22
  175. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
  176. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +0 -70
  177. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
  178. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +0 -22
  179. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +0 -1
  180. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +0 -207
  181. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +0 -1
  182. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +0 -18
  183. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +0 -1
  184. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +0 -18
  185. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +0 -1
  186. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -29
  187. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  188. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +0 -182
  189. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  190. package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +0 -22
  191. package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +0 -1
  192. package/lib/stores/QueryBuilderGroupOperationHelper.js +0 -43
  193. package/lib/stores/QueryBuilderGroupOperationHelper.js.map +0 -1
  194. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +0 -26
  195. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +0 -1
  196. package/lib/stores/QueryBuilderPreviewDataHelper.js +0 -143
  197. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +0 -1
  198. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +0 -62
  199. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +0 -1
  200. package/lib/stores/QueryBuilderPropertyEditorState.js +0 -395
  201. package/lib/stores/QueryBuilderPropertyEditorState.js.map +0 -1
  202. package/lib/stores/QueryBuilderResultState.d.ts +0 -41
  203. package/lib/stores/QueryBuilderResultState.d.ts.map +0 -1
  204. package/lib/stores/QueryBuilderResultState.js +0 -176
  205. package/lib/stores/QueryBuilderResultState.js.map +0 -1
  206. package/lib/stores/QueryBuilderSetupState.d.ts +0 -46
  207. package/lib/stores/QueryBuilderSetupState.d.ts.map +0 -1
  208. package/lib/stores/QueryBuilderSetupState.js +0 -163
  209. package/lib/stores/QueryBuilderSetupState.js.map +0 -1
  210. package/lib/stores/QueryBuilderState.d.ts +0 -100
  211. package/lib/stores/QueryBuilderState.d.ts.map +0 -1
  212. package/lib/stores/QueryBuilderState.js +0 -308
  213. package/lib/stores/QueryBuilderState.js.map +0 -1
  214. package/lib/stores/QueryBuilderStateBuilder.d.ts +0 -124
  215. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +0 -1
  216. package/lib/stores/QueryBuilderStateBuilder.js +0 -310
  217. package/lib/stores/QueryBuilderStateBuilder.js.map +0 -1
  218. package/lib/stores/QueryBuilderStateTestUtils.d.ts +0 -24
  219. package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +0 -1
  220. package/lib/stores/QueryBuilderStateTestUtils.js +0 -50
  221. package/lib/stores/QueryBuilderStateTestUtils.js.map +0 -1
  222. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +0 -24
  223. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +0 -1
  224. package/lib/stores/QueryBuilderTypeaheadHelper.js +0 -86
  225. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +0 -1
  226. package/lib/stores/QueryBuilderUnsupportedState.d.ts +0 -26
  227. package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +0 -1
  228. package/lib/stores/QueryBuilderUnsupportedState.js +0 -36
  229. package/lib/stores/QueryBuilderUnsupportedState.js.map +0 -1
  230. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +0 -20
  231. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
  232. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +0 -87
  233. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +0 -1
  234. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +0 -27
  235. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +0 -1
  236. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +0 -156
  237. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +0 -1
  238. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +0 -61
  239. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +0 -1
  240. package/lib/stores/QueryBuilderValueSpecificationHelper.js +0 -235
  241. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +0 -1
  242. package/lib/stores/QueryParametersState.d.ts +0 -28
  243. package/lib/stores/QueryParametersState.d.ts.map +0 -1
  244. package/lib/stores/QueryParametersState.js +0 -39
  245. package/lib/stores/QueryParametersState.js.map +0 -1
  246. package/lib/stores/QueryTextEditorState.d.ts +0 -49
  247. package/lib/stores/QueryTextEditorState.d.ts.map +0 -1
  248. package/lib/stores/QueryTextEditorState.js +0 -145
  249. package/lib/stores/QueryTextEditorState.js.map +0 -1
  250. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -99
  251. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +0 -1
  252. package/lib/stores/explorer/QueryBuilderExplorerState.js +0 -442
  253. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +0 -1
  254. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts +0 -46
  255. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts.map +0 -1
  256. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js +0 -242
  257. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js.map +0 -1
  258. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +0 -59
  259. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +0 -1
  260. package/lib/stores/explorer/QueryFunctionsExplorerState.js +0 -229
  261. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +0 -1
  262. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +0 -40
  263. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +0 -1
  264. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +0 -34
  265. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +0 -1
  266. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +0 -27
  267. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +0 -1
  268. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +0 -74
  269. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +0 -1
  270. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +0 -49
  271. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
  272. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +0 -157
  273. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +0 -1
  274. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +0 -20
  275. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +0 -1
  276. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +0 -62
  277. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +0 -1
  278. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +0 -42
  279. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
  280. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +0 -173
  281. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
  282. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +0 -26
  283. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
  284. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +0 -72
  285. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
  286. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +0 -73
  287. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
  288. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +0 -187
  289. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
  290. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +0 -68
  291. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
  292. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +0 -304
  293. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
  294. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -25
  295. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
  296. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +0 -186
  297. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
  298. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +0 -26
  299. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
  300. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +0 -189
  301. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
  302. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +0 -43
  303. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
  304. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +0 -77
  305. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
  306. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +0 -32
  307. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
  308. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +0 -36
  309. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
  310. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -18
  311. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
  312. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -38
  313. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
  314. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +0 -42
  315. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
  316. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +0 -103
  317. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
  318. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -20
  319. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
  320. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +0 -96
  321. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
  322. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +0 -22
  323. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
  324. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +0 -40
  325. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
  326. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +0 -27
  327. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
  328. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +0 -50
  329. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
  330. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +0 -27
  331. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
  332. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +0 -55
  333. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
  334. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +0 -26
  335. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
  336. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +0 -50
  337. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
  338. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +0 -27
  339. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
  340. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +0 -78
  341. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
  342. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +0 -27
  343. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
  344. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +0 -67
  345. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
  346. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +0 -26
  347. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
  348. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +0 -86
  349. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
  350. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +0 -26
  351. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
  352. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +0 -86
  353. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
  354. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +0 -27
  355. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
  356. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +0 -50
  357. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
  358. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +0 -27
  359. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
  360. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +0 -50
  361. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
  362. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +0 -26
  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 +0 -45
  365. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
  366. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -29
  367. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
  368. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +0 -30
  369. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
  370. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -18
  371. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
  372. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -44
  373. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
  374. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +0 -135
  375. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
  376. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +0 -586
  377. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
  378. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -22
  379. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
  380. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +0 -122
  381. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
  382. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -19
  383. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
  384. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +0 -79
  385. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
  386. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +0 -23
  387. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
  388. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +0 -74
  389. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
  390. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -32
  391. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
  392. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +0 -75
  393. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
  394. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -32
  395. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
  396. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +0 -75
  397. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
  398. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -32
  399. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
  400. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +0 -118
  401. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
  402. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -27
  403. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
  404. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +0 -81
  405. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
  406. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -24
  407. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  408. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -43
  409. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
  410. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -32
  411. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
  412. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +0 -104
  413. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
  414. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -33
  415. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
  416. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +0 -67
  417. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
  418. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -27
  419. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
  420. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +0 -81
  421. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
  422. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -24
  423. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
  424. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -43
  425. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
  426. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -32
  427. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
  428. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +0 -75
  429. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
  430. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +0 -27
  431. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +0 -1
  432. package/lib/stores/filter/QueryBuilderFilterOperator.js +0 -20
  433. package/lib/stores/filter/QueryBuilderFilterOperator.js.map +0 -1
  434. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +0 -18
  435. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +0 -1
  436. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +0 -44
  437. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +0 -1
  438. package/lib/stores/filter/QueryBuilderFilterState.d.ts +0 -123
  439. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +0 -1
  440. package/lib/stores/filter/QueryBuilderFilterState.js +0 -531
  441. package/lib/stores/filter/QueryBuilderFilterState.js.map +0 -1
  442. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +0 -19
  443. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +0 -1
  444. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +0 -74
  445. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +0 -1
  446. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +0 -19
  447. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +0 -1
  448. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +0 -78
  449. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +0 -1
  450. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +0 -21
  451. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
  452. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +0 -257
  453. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
  454. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +0 -32
  455. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
  456. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +0 -71
  457. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +0 -1
  458. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +0 -32
  459. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
  460. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +0 -71
  461. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
  462. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +0 -32
  463. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
  464. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +0 -115
  465. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +0 -1
  466. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +0 -27
  467. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
  468. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +0 -83
  469. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
  470. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +0 -27
  471. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  472. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +0 -83
  473. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
  474. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +0 -32
  475. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
  476. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +0 -103
  477. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +0 -1
  478. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +0 -32
  479. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
  480. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +0 -65
  481. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
  482. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +0 -27
  483. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
  484. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +0 -83
  485. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
  486. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +0 -27
  487. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
  488. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +0 -83
  489. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
  490. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +0 -32
  491. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
  492. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +0 -71
  493. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
  494. package/src/QueryBuilder_Const.ts +0 -88
  495. package/src/components/QueryBuilder.tsx +0 -412
  496. package/src/components/QueryBuilderParameterPanel.tsx +0 -403
  497. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +0 -374
  498. package/src/components/QueryBuilderResultPanel.tsx +0 -640
  499. package/src/components/QueryBuilderSetupPanel.tsx +0 -342
  500. package/src/components/QueryBuilderTextEditor.tsx +0 -127
  501. package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +0 -112
  502. package/src/components/QueryBuilder_TestID.ts +0 -26
  503. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +0 -927
  504. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +0 -554
  505. package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +0 -291
  506. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +0 -617
  507. package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +0 -112
  508. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +0 -276
  509. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +0 -1103
  510. package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +0 -649
  511. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +0 -254
  512. package/src/components/filter/QueryBuilderFilterPanel.tsx +0 -890
  513. package/src/components/shared/ElementIconUtils.tsx +0 -47
  514. package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
  515. package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +0 -40
  516. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +0 -87
  517. package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +0 -32
  518. package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +0 -33
  519. package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -22
  520. package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +0 -22
  521. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -47
  522. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -27
  523. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +0 -167
  524. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +0 -573
  525. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +0 -28
  526. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +0 -296
  527. package/src/stores/QueryBuilderGroupOperationHelper.ts +0 -54
  528. package/src/stores/QueryBuilderPreviewDataHelper.ts +0 -210
  529. package/src/stores/QueryBuilderPropertyEditorState.ts +0 -668
  530. package/src/stores/QueryBuilderResultState.ts +0 -281
  531. package/src/stores/QueryBuilderSetupState.ts +0 -236
  532. package/src/stores/QueryBuilderState.ts +0 -465
  533. package/src/stores/QueryBuilderStateBuilder.ts +0 -584
  534. package/src/stores/QueryBuilderStateTestUtils.ts +0 -96
  535. package/src/stores/QueryBuilderTypeaheadHelper.ts +0 -155
  536. package/src/stores/QueryBuilderUnsupportedState.ts +0 -42
  537. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +0 -179
  538. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +0 -254
  539. package/src/stores/QueryBuilderValueSpecificationHelper.ts +0 -359
  540. package/src/stores/QueryParametersState.ts +0 -52
  541. package/src/stores/QueryTextEditorState.ts +0 -203
  542. package/src/stores/explorer/QueryBuilderExplorerState.ts +0 -810
  543. package/src/stores/explorer/QueryBuilderPropertySearchPanelState.ts +0 -333
  544. package/src/stores/explorer/QueryFunctionsExplorerState.ts +0 -376
  545. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +0 -65
  546. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +0 -108
  547. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +0 -240
  548. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +0 -131
  549. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +0 -282
  550. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +0 -154
  551. package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +0 -329
  552. package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +0 -569
  553. package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +0 -426
  554. package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -416
  555. package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +0 -95
  556. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +0 -79
  557. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -41
  558. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +0 -145
  559. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +0 -228
  560. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +0 -109
  561. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +0 -98
  562. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +0 -106
  563. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +0 -96
  564. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +0 -173
  565. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +0 -155
  566. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +0 -174
  567. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +0 -174
  568. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +0 -98
  569. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +0 -98
  570. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +0 -88
  571. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +0 -66
  572. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -65
  573. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +0 -808
  574. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +0 -297
  575. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -121
  576. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +0 -129
  577. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +0 -140
  578. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +0 -135
  579. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +0 -218
  580. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +0 -143
  581. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -70
  582. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +0 -183
  583. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +0 -113
  584. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +0 -143
  585. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -70
  586. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +0 -135
  587. package/src/stores/filter/QueryBuilderFilterOperator.ts +0 -52
  588. package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +0 -65
  589. package/src/stores/filter/QueryBuilderFilterState.ts +0 -738
  590. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +0 -155
  591. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -120
  592. package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +0 -524
  593. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +0 -134
  594. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +0 -134
  595. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -211
  596. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +0 -145
  597. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +0 -145
  598. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +0 -181
  599. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +0 -125
  600. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +0 -145
  601. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +0 -145
  602. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +0 -134
@@ -1,143 +0,0 @@
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
- import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
17
- import { QueryBuilderAggregateOperator_Average } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js';
18
- import { QueryBuilderAggregateOperator_Count } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js';
19
- import { QueryBuilderAggregateOperator_DistinctCount } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js';
20
- import { QueryBuilderAggregateOperator_Max } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js';
21
- import { QueryBuilderAggregateOperator_Min } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js';
22
- import { QueryBuilderAggregateOperator_StdDev_Population } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js';
23
- import { QueryBuilderAggregateOperator_StdDev_Sample } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js';
24
- import { QueryBuilderAggregateOperator_Sum } from './fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js';
25
- import { QueryBuilderSimpleProjectionColumnState } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
26
- import { COLUMN_SORT_TYPE, SortColumnState, } from './fetch-structure/projection/QueryResultSetModifierState.js';
27
- import { QueryBuilderProjectionState } from './fetch-structure/projection/QueryBuilderProjectionState.js';
28
- const PREVIEW_DATA_TAKE_LIMIT = 10;
29
- const PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME = 'Value';
30
- const PREVIEW_DATA_NON_NUMERIC_COUNT_COLUMN_NAME = 'Count';
31
- var NUMERIC_AGG_FUNC;
32
- (function (NUMERIC_AGG_FUNC) {
33
- NUMERIC_AGG_FUNC["COUNT"] = "Count";
34
- NUMERIC_AGG_FUNC["DISTINCT_COUNT"] = "Distinct Count";
35
- NUMERIC_AGG_FUNC["SUM"] = "Sum";
36
- NUMERIC_AGG_FUNC["MIN"] = "Min";
37
- NUMERIC_AGG_FUNC["MAX"] = "Max";
38
- NUMERIC_AGG_FUNC["AVERAGE"] = "Average";
39
- NUMERIC_AGG_FUNC["STD_DEV_POPULATION"] = "Std Dev (Population)";
40
- NUMERIC_AGG_FUNC["STD_DEV_SAMPLE"] = "Std Dev (Sample)";
41
- })(NUMERIC_AGG_FUNC || (NUMERIC_AGG_FUNC = {}));
42
- const NUMERIC_AGG_FUNC_TO_AGG_OP = [
43
- [NUMERIC_AGG_FUNC.COUNT, QueryBuilderAggregateOperator_Count],
44
- [
45
- NUMERIC_AGG_FUNC.DISTINCT_COUNT,
46
- QueryBuilderAggregateOperator_DistinctCount,
47
- ],
48
- [NUMERIC_AGG_FUNC.SUM, QueryBuilderAggregateOperator_Sum],
49
- [NUMERIC_AGG_FUNC.MIN, QueryBuilderAggregateOperator_Min],
50
- [NUMERIC_AGG_FUNC.MAX, QueryBuilderAggregateOperator_Max],
51
- [NUMERIC_AGG_FUNC.AVERAGE, QueryBuilderAggregateOperator_Average],
52
- [
53
- NUMERIC_AGG_FUNC.STD_DEV_POPULATION,
54
- QueryBuilderAggregateOperator_StdDev_Population,
55
- ],
56
- [
57
- NUMERIC_AGG_FUNC.STD_DEV_SAMPLE,
58
- QueryBuilderAggregateOperator_StdDev_Sample,
59
- ],
60
- ];
61
- const createSimpleProjectionColumn = (projectionState, propertyExpression, columnName) => {
62
- const col = new QueryBuilderSimpleProjectionColumnState(projectionState, propertyExpression, false);
63
- col.setColumnName(columnName);
64
- return col;
65
- };
66
- const createQueryBuilderState = (queryBuilderState) => {
67
- const builderState = queryBuilderState.cloneQueryBuilderState();
68
- builderState.querySetupState = queryBuilderState.querySetupState;
69
- return builderState;
70
- };
71
- export const buildNumericPreviewDataQuery = (queryBuilderState, propertyExpression) => {
72
- // Build the following query
73
- //
74
- // ClassX.all()->groupBy(
75
- // [],
76
- // [
77
- // agg(x|$x.prop, x|$x->count()),
78
- // agg(x|$x.prop, x|$x->distinct()->count()),
79
- // agg(x|$x.prop, x|$x->sum()),
80
- // agg(x|$x.prop, x|$x->min()),
81
- // agg(x|$x.prop, x|$x->max()),
82
- // agg(x|$x.prop, x|$x->average()),
83
- // agg(x|$x.prop, x|$x->stdDevPopulation()),
84
- // agg(x|$x.prop, x|$x->stdDevSample())
85
- // ],
86
- // [
87
- // 'Count',
88
- // 'Distinct Count',
89
- // 'Sum',
90
- // 'Min',
91
- // 'Max',
92
- // 'Average',
93
- // 'Std Dev (Population)',
94
- // 'Std Dev (Sample)'
95
- // ]
96
- // )
97
- const builderState = createQueryBuilderState(queryBuilderState);
98
- const projectionState = guaranteeType(builderState.fetchStructureState.implementation, QueryBuilderProjectionState);
99
- const aggregationState = projectionState.aggregationState;
100
- NUMERIC_AGG_FUNC_TO_AGG_OP.forEach((val) => {
101
- const colState = createSimpleProjectionColumn(projectionState, propertyExpression, val[0]);
102
- projectionState.columns.push(colState);
103
- const valAggOp = guaranteeNonNullable(aggregationState.operators.find((t) => t instanceof val[1]));
104
- aggregationState.changeColumnAggregateOperator(valAggOp, colState);
105
- });
106
- return builderState.resultState.buildExecutionRawLambda();
107
- };
108
- export const buildNonNumericPreviewDataQuery = (queryBuilderState, propertyExpression) => {
109
- // Build the following query
110
- //
111
- // ClassX.all()->groupBy(
112
- // [
113
- // x|$x.prop
114
- // ],
115
- // [
116
- // agg(x|$x.prop, x|$x->count())
117
- // ],
118
- // [
119
- // 'Value',
120
- // 'Count'
121
- // ]
122
- // )->sort([desc('Count'), asc('Value')])->take(10)
123
- const builderState = createQueryBuilderState(queryBuilderState);
124
- const projectionState = guaranteeType(builderState.fetchStructureState.implementation, QueryBuilderProjectionState);
125
- const valueProjectionColState = createSimpleProjectionColumn(projectionState, propertyExpression, PREVIEW_DATA_NON_NUMERIC_VALUE_COLUMN_NAME);
126
- const valueCountProjectionState = createSimpleProjectionColumn(projectionState, propertyExpression, PREVIEW_DATA_NON_NUMERIC_COUNT_COLUMN_NAME);
127
- projectionState.columns = [
128
- valueProjectionColState,
129
- valueCountProjectionState,
130
- ];
131
- const distinctCountOp = guaranteeNonNullable(projectionState.aggregationState.operators.find((t) => t instanceof QueryBuilderAggregateOperator_Count));
132
- projectionState.aggregationState.changeColumnAggregateOperator(distinctCountOp, valueCountProjectionState);
133
- // result set
134
- projectionState.resultSetModifierState.limit = PREVIEW_DATA_TAKE_LIMIT;
135
- const sortValueCount = new SortColumnState(valueCountProjectionState);
136
- sortValueCount.sortType = COLUMN_SORT_TYPE.DESC;
137
- projectionState.resultSetModifierState.sortColumns = [
138
- sortValueCount,
139
- new SortColumnState(valueProjectionColState),
140
- ];
141
- return builderState.resultState.buildExecutionRawLambda();
142
- };
143
- //# sourceMappingURL=QueryBuilderPreviewDataHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderPreviewDataHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPreviewDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,6FAA6F,CAAC;AACpJ,OAAO,EAAE,mCAAmC,EAAE,MAAM,2FAA2F,CAAC;AAChJ,OAAO,EAAE,2CAA2C,EAAE,MAAM,mGAAmG,CAAC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,CACF,CAAC;IACF,eAAe,CAAC,gBAAgB,CAAC,6BAA6B,CAC5D,eAAe,EACf,yBAAyB,CAC1B,CAAC;IACF,aAAa;IACb,eAAe,CAAC,sBAAsB,CAAC,KAAK,GAAG,uBAAuB,CAAC;IACvE,MAAM,cAAc,GAAG,IAAI,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACtE,cAAc,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAChD,eAAe,CAAC,sBAAsB,CAAC,WAAW,GAAG;QACnD,cAAc;QACd,IAAI,eAAe,CAAC,uBAAuB,CAAC;KAC7C,CAAC;IACF,OAAO,YAAY,CAAC,WAAW,CAAC,uBAAuB,EAAE,CAAC;AAC5D,CAAC,CAAC"}
@@ -1,62 +0,0 @@
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
- import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression, MILESTONING_STEREOTYPE } from '@finos/legend-graph';
17
- import type { QueryBuilderState } from './QueryBuilderState.js';
18
- export declare const getDerivedPropertyMilestoningSteoreotype: (property: DerivedProperty, graph: PureModel) => MILESTONING_STEREOTYPE | undefined;
19
- export declare const prettyPropertyName: (value: string) => string;
20
- /**
21
- * Generate a parameter value for the derived property given the index if the property is milestoned.
22
- *
23
- * This method considers different scenarios for milestoning and take into account date propagation
24
- * See https://github.com/finos/legend-studio/pull/891
25
- */
26
- export declare const generateMilestonedPropertyParameterValue: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState, idx: number) => ValueSpecification | undefined;
27
- export declare const getPropertyChainName: (propertyExpression: AbstractPropertyExpression, humanizePropertyName: boolean) => string;
28
- export declare const getPropertyPath: (propertyExpression: AbstractPropertyExpression) => string;
29
- export declare const generateValueSpecificationForParameter: (parameter: VariableExpression, graph: PureModel) => ValueSpecification;
30
- export declare class QueryBuilderDerivedPropertyExpressionState {
31
- queryBuilderState: QueryBuilderState;
32
- path: string;
33
- title: string;
34
- readonly propertyExpression: AbstractPropertyExpression;
35
- readonly derivedProperty: DerivedProperty;
36
- readonly parameters: VariableExpression[];
37
- constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
38
- get property(): AbstractProperty;
39
- get parameterValues(): ValueSpecification[];
40
- get isValid(): boolean;
41
- }
42
- export declare class QueryBuilderPropertyExpressionState {
43
- queryBuilderState: QueryBuilderState;
44
- path: string;
45
- title: string;
46
- readonly propertyExpression: AbstractPropertyExpression;
47
- isEditingDerivedPropertyExpression: boolean;
48
- derivedPropertyExpressionStates: QueryBuilderDerivedPropertyExpressionState[];
49
- /**
50
- * If at least one property in the chain is of multiplicity greater than 1,
51
- * the property might have multiple values and can cause row explosions.
52
- *
53
- * In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
54
- * is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
55
- */
56
- requiresExistsHandling: boolean;
57
- constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
58
- get isValid(): boolean;
59
- setIsEditingDerivedProperty(val: boolean): void;
60
- private initDerivedPropertyExpressionStates;
61
- }
62
- //# sourceMappingURL=QueryBuilderPropertyEditorState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderPropertyEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK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AAC;IAExD,kCAAkC,UAAS;IAG3C,+BAA+B,EAAE,0CAA0C,EAAE,CACxE;IACL;;;;;;OAMG;IACH,sBAAsB,UAAS;gBAG7B,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B;IAqBhD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,mCAAmC;CA0D5C"}
@@ -1,395 +0,0 @@
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
- import { action, makeAutoObservable } from 'mobx';
17
- import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
18
- import { Class, TYPICAL_MULTIPLICITY_TYPE, CollectionInstanceValue, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, INTERNAL__PropagatedValue, Association, getGeneratedMilestonedPropertiesForAssociation, } from '@finos/legend-graph';
19
- import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
20
- import { functionExpression_setParametersValues } from '@finos/legend-application';
21
- import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js';
22
- export const getDerivedPropertyMilestoningSteoreotype = (property, graph) => {
23
- const owner = property._OWNER;
24
- if (owner instanceof Class) {
25
- return getMilestoneTemporalStereotype(owner, graph);
26
- }
27
- else if (owner instanceof Association) {
28
- const generatedMilestonedProperties = getGeneratedMilestonedPropertiesForAssociation(owner, property);
29
- if (generatedMilestonedProperties.length) {
30
- const ownerClass = generatedMilestonedProperties[0]?.genericType.value.rawType;
31
- return getMilestoneTemporalStereotype(guaranteeType(ownerClass, Class), graph);
32
- }
33
- }
34
- return undefined;
35
- };
36
- /**
37
- * Check if the parameter value of the milestoned property is
38
- * the same as those specified in global scope, so that we can
39
- * potentially replace them with propgated value.
40
- */
41
- const matchMilestoningParameterValue = (stereotype, idx, parameterValue, querySetupState) => {
42
- const checkIfEquivalent = (param1, param2) => {
43
- if (param1 instanceof VariableExpression &&
44
- param2 instanceof VariableExpression) {
45
- return param1.name === param2.name;
46
- }
47
- else if (param1 instanceof PrimitiveInstanceValue &&
48
- param2 instanceof PrimitiveInstanceValue) {
49
- if (param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
50
- param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
51
- return true;
52
- }
53
- return (param1.genericType.value.rawType.name ===
54
- param2.genericType.value.rawType.name &&
55
- param1.values[0] === param2.values[0]);
56
- }
57
- return false;
58
- };
59
- switch (stereotype) {
60
- case MILESTONING_STEREOTYPE.BITEMPORAL:
61
- return ((idx === 0 &&
62
- checkIfEquivalent(parameterValue, querySetupState.processingDate)) ||
63
- (idx === 1 &&
64
- checkIfEquivalent(parameterValue, querySetupState.businessDate)));
65
- case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
66
- return checkIfEquivalent(parameterValue, querySetupState.processingDate);
67
- case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
68
- return checkIfEquivalent(parameterValue, querySetupState.businessDate);
69
- default:
70
- }
71
- return false;
72
- };
73
- export const prettyPropertyName = (value) => isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
74
- /**
75
- * Generate a parameter value for the derived property given the index if the property is milestoned.
76
- *
77
- * This method considers different scenarios for milestoning and take into account date propagation
78
- * See https://github.com/finos/legend-studio/pull/891
79
- */
80
- export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressionState, idx) => {
81
- // Milestoning transformations should not be done on actual derived properties.
82
- if (derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(derivedPropertyExpressionState.derivedProperty)) {
83
- return undefined;
84
- }
85
- const querySetupState = derivedPropertyExpressionState.queryBuilderState.querySetupState;
86
- const temporalSource = getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph);
87
- const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.genericType.value
88
- .rawType instanceof Class &&
89
- derivedPropertyExpressionState.propertyExpression.func._OWNER
90
- ._generatedMilestonedProperties.length !== 0
91
- ? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.genericType
92
- .value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
93
- .graph)
94
- : undefined;
95
- const shouldReturnMilestoningParameter = temporalTarget &&
96
- ((idx < derivedPropertyExpressionState.parameterValues.length &&
97
- (matchMilestoningParameterValue(temporalTarget, idx, guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), derivedPropertyExpressionState.queryBuilderState.querySetupState) ||
98
- /**
99
- * Checks if the given milestoning needs to be overwritten or not.
100
- * Specially, we would need to rewrite the query if the user passes a single parameter
101
- * to the `bitemporal` property expression with `processing temporal` source.
102
- */
103
- (getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState
104
- .graph) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
105
- temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
106
- derivedPropertyExpressionState.parameterValues.length === 1))) ||
107
- idx >= derivedPropertyExpressionState.parameterValues.length);
108
- if (!shouldReturnMilestoningParameter) {
109
- return undefined;
110
- }
111
- switch (temporalTarget) {
112
- case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
113
- if (!querySetupState.businessDate) {
114
- querySetupState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
115
- }
116
- const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
117
- parameter.getValue = () => guaranteeNonNullable(querySetupState.businessDate);
118
- return parameter;
119
- }
120
- case MILESTONING_STEREOTYPE.BITEMPORAL: {
121
- if (!querySetupState.processingDate) {
122
- querySetupState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
123
- }
124
- if (!querySetupState.businessDate) {
125
- querySetupState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
126
- }
127
- if (idx === 0) {
128
- if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
129
- derivedPropertyExpressionState.parameterValues.length === 1) {
130
- return guaranteeType(derivedPropertyExpressionState.propertyExpression
131
- .parametersValues[0], AbstractPropertyExpression).parametersValues[1];
132
- }
133
- const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
134
- parameter.getValue = () => guaranteeNonNullable(querySetupState.processingDate);
135
- return parameter;
136
- }
137
- else {
138
- if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
139
- derivedPropertyExpressionState.parameterValues.length === 1) {
140
- return derivedPropertyExpressionState.parameterValues[0];
141
- }
142
- else if (temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
143
- derivedPropertyExpressionState.parameterValues.length === 1) {
144
- return guaranteeType(derivedPropertyExpressionState.propertyExpression
145
- .parametersValues[0], AbstractPropertyExpression).parametersValues[1];
146
- }
147
- const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
148
- parameter.getValue = () => guaranteeNonNullable(querySetupState.businessDate);
149
- return parameter;
150
- }
151
- }
152
- case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
153
- if (!querySetupState.processingDate) {
154
- querySetupState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
155
- }
156
- const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
157
- parameter.getValue = () => guaranteeNonNullable(querySetupState.processingDate);
158
- return parameter;
159
- }
160
- default:
161
- return undefined;
162
- }
163
- };
164
- export const getPropertyChainName = (propertyExpression, humanizePropertyName) => {
165
- const propertyNameDecorator = humanizePropertyName
166
- ? prettyPropertyName
167
- : (val) => val;
168
- const chunks = [propertyNameDecorator(propertyExpression.func.name)];
169
- let currentExpression = propertyExpression;
170
- while (currentExpression instanceof AbstractPropertyExpression) {
171
- currentExpression = getNullableFirstElement(currentExpression.parametersValues);
172
- // Take care of chain of subtypes (a pattern that is not useful, but we want to support and potentially rectify)
173
- // $x.employees->subType(@Person)->subType(@Staff).department
174
- while (currentExpression instanceof SimpleFunctionExpression &&
175
- matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
176
- const subtypeChunk = `${TYPE_CAST_TOKEN}(${propertyNameDecorator(currentExpression.parametersValues.filter((param) => param instanceof InstanceValue)[0]?.genericType?.value.rawType.name ?? '')})`;
177
- chunks.unshift(subtypeChunk);
178
- currentExpression = getNullableFirstElement(currentExpression.parametersValues);
179
- }
180
- if (currentExpression instanceof AbstractPropertyExpression) {
181
- chunks.unshift(propertyNameDecorator(currentExpression.func.name));
182
- }
183
- }
184
- const processedChunks = [];
185
- for (const chunk of chunks) {
186
- if (!processedChunks.length) {
187
- processedChunks.push(chunk);
188
- }
189
- else {
190
- const latestProcessedChunk = guaranteeNonNullable(processedChunks[processedChunks.length - 1]);
191
- if (latestProcessedChunk.startsWith(TYPE_CAST_TOKEN)) {
192
- processedChunks[processedChunks.length - 1] = `${latestProcessedChunk}${chunk}`;
193
- }
194
- else {
195
- processedChunks.push(chunk);
196
- }
197
- }
198
- }
199
- return processedChunks.join(humanizePropertyName ? '/' : '.');
200
- };
201
- export const getPropertyPath = (propertyExpression) => {
202
- const propertyNameChain = [propertyExpression.func.name];
203
- let currentExpression = propertyExpression;
204
- while (currentExpression instanceof AbstractPropertyExpression) {
205
- currentExpression = getNullableFirstElement(currentExpression.parametersValues);
206
- if (currentExpression instanceof AbstractPropertyExpression) {
207
- propertyNameChain.unshift(currentExpression.func.name);
208
- }
209
- }
210
- return propertyNameChain.join('.');
211
- };
212
- export const generateValueSpecificationForParameter = (parameter, graph) => {
213
- if (parameter.genericType) {
214
- const type = parameter.genericType.value.rawType;
215
- if ([
216
- PRIMITIVE_TYPE.STRING,
217
- PRIMITIVE_TYPE.BOOLEAN,
218
- PRIMITIVE_TYPE.NUMBER,
219
- PRIMITIVE_TYPE.FLOAT,
220
- PRIMITIVE_TYPE.DECIMAL,
221
- PRIMITIVE_TYPE.INTEGER,
222
- PRIMITIVE_TYPE.DATE,
223
- PRIMITIVE_TYPE.STRICTDATE,
224
- PRIMITIVE_TYPE.DATETIME,
225
- PRIMITIVE_TYPE.LATESTDATE,
226
- ].includes(type.name)) {
227
- const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(
228
- // NOTE: since the default generated value for type Date is a StrictDate
229
- // we need to adjust the generic type accordingly
230
- // See https://github.com/finos/legend-studio/issues/1391
231
- type.name === PRIMITIVE_TYPE.DATE
232
- ? graph.getType(PRIMITIVE_TYPE.STRICTDATE)
233
- : type)), parameter.multiplicity);
234
- if (type.name !== PRIMITIVE_TYPE.LATESTDATE) {
235
- primitiveInstanceValue.values = [
236
- generateDefaultValueForPrimitiveType(type.name),
237
- ];
238
- }
239
- return primitiveInstanceValue;
240
- }
241
- else if (type instanceof Enumeration) {
242
- const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(type)), parameter.multiplicity);
243
- if (type.values.length) {
244
- const enumValueRef = EnumValueExplicitReference.create(type.values[0]);
245
- enumValueInstanceValue.values = [enumValueRef];
246
- }
247
- return enumValueInstanceValue;
248
- }
249
- }
250
- // for arguments of types we don't support, we will fill them with `[]`
251
- // which in Pure is equivalent to `null` in other languages
252
- return new CollectionInstanceValue(graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ZERO));
253
- };
254
- const fillDerivedPropertyParameterValues = (derivedPropertyExpressionState) => {
255
- const parameterValues = derivedPropertyExpressionState.parameterValues;
256
- derivedPropertyExpressionState.parameters.forEach((parameter, idx) => {
257
- // Check if a value is already provided for a parameter
258
- if (idx < derivedPropertyExpressionState.parameterValues.length) {
259
- // Here we check if the parameter value matches with the corresponding `businessDate` or `processingDate`
260
- // NOTE: This will rewrite provided query since if people explicitly specified the parameter values,
261
- // we will overwrite them.
262
- parameterValues[idx] =
263
- generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ?? guaranteeNonNullable(parameterValues[idx]);
264
- // Otherwise, we will just skip this parameter as value is already provided
265
- return;
266
- }
267
- parameterValues.push(generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ??
268
- generateValueSpecificationForParameter(parameter, derivedPropertyExpressionState.queryBuilderState.graphManagerState
269
- .graph));
270
- });
271
- functionExpression_setParametersValues(derivedPropertyExpressionState.propertyExpression, [
272
- guaranteeNonNullable(derivedPropertyExpressionState.propertyExpression.parametersValues[0]),
273
- ...parameterValues,
274
- ], derivedPropertyExpressionState.queryBuilderState.observableContext);
275
- };
276
- export class QueryBuilderDerivedPropertyExpressionState {
277
- queryBuilderState;
278
- path;
279
- title;
280
- propertyExpression;
281
- derivedProperty;
282
- parameters = [];
283
- constructor(queryBuilderState, propertyExpression) {
284
- this.path = getPropertyPath(propertyExpression);
285
- this.title = getPropertyChainName(propertyExpression, true);
286
- this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
287
- this.queryBuilderState = queryBuilderState;
288
- this.derivedProperty = guaranteeType(propertyExpression.func, DerivedProperty);
289
- // build the parameters of the derived properties
290
- if (Array.isArray(this.derivedProperty.parameters)) {
291
- this.parameters = this.derivedProperty.parameters.map((parameter) => guaranteeType(this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(parameter, this.queryBuilderState.graphManagerState.graph), VariableExpression));
292
- }
293
- fillDerivedPropertyParameterValues(this);
294
- }
295
- get property() {
296
- return this.propertyExpression.func;
297
- }
298
- get parameterValues() {
299
- return this.propertyExpression.parametersValues.slice(1);
300
- }
301
- get isValid() {
302
- // TODO: more type matching logic here (take into account multiplicity, type, etc.)
303
- return this.parameterValues.every((paramValue) => {
304
- if (paramValue instanceof InstanceValue) {
305
- const isRequired = paramValue.multiplicity.lowerBound >= 1;
306
- // required and no values provided. LatestDate doesn't have any values so we skip that check for it.
307
- if (isRequired &&
308
- paramValue.genericType?.value.rawType.name !==
309
- PRIMITIVE_TYPE.LATESTDATE &&
310
- !paramValue.values.length) {
311
- return false;
312
- }
313
- // more values than allowed
314
- if (paramValue.multiplicity.upperBound &&
315
- paramValue.values.length > paramValue.multiplicity.upperBound) {
316
- return false;
317
- }
318
- }
319
- return true;
320
- });
321
- }
322
- }
323
- export class QueryBuilderPropertyExpressionState {
324
- queryBuilderState;
325
- path;
326
- title;
327
- propertyExpression;
328
- isEditingDerivedPropertyExpression = false;
329
- // Since this property is a chain expression, some link of the chain can be
330
- // derived property, as such, we need to keep track of the derived properties state in an array
331
- derivedPropertyExpressionStates = [];
332
- /**
333
- * If at least one property in the chain is of multiplicity greater than 1,
334
- * the property might have multiple values and can cause row explosions.
335
- *
336
- * In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
337
- * is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
338
- */
339
- requiresExistsHandling = false;
340
- constructor(queryBuilderState, propertyExpression) {
341
- makeAutoObservable(this, {
342
- queryBuilderState: false,
343
- setIsEditingDerivedProperty: action,
344
- initDerivedPropertyExpressionStates: action,
345
- });
346
- this.queryBuilderState = queryBuilderState;
347
- this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
348
- this.path = getPropertyPath(propertyExpression);
349
- this.title = getPropertyChainName(propertyExpression, true);
350
- this.initDerivedPropertyExpressionStates();
351
- }
352
- get isValid() {
353
- return this.derivedPropertyExpressionStates.every((e) => e.isValid);
354
- }
355
- setIsEditingDerivedProperty(val) {
356
- this.isEditingDerivedPropertyExpression = val;
357
- }
358
- initDerivedPropertyExpressionStates() {
359
- let requiresExistsHandling = false;
360
- const result = [];
361
- let currentExpression = this.propertyExpression;
362
- while (currentExpression instanceof AbstractPropertyExpression) {
363
- // Check if the property chain can results in column that have multiple values
364
- if (currentExpression.func.multiplicity.upperBound === undefined ||
365
- currentExpression.func.multiplicity.upperBound > 1) {
366
- requiresExistsHandling = true;
367
- }
368
- // check if the property is milestoned
369
- if (currentExpression.func.genericType.value.rawType instanceof Class &&
370
- currentExpression.func._OWNER._generatedMilestonedProperties.length !==
371
- 0) {
372
- const name = currentExpression.func.name;
373
- const func = currentExpression.func._OWNER._generatedMilestonedProperties.find((e) => e.name === name);
374
- if (func) {
375
- currentExpression.func = func;
376
- }
377
- }
378
- // Create states to hold derived properties' parameters and arguments for editing
379
- if (currentExpression.func instanceof DerivedProperty) {
380
- const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression);
381
- result.push(derivedPropertyExpressionState);
382
- }
383
- currentExpression = getNullableFirstElement(currentExpression.parametersValues);
384
- // Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
385
- // $x.employees->subType(@Person)->subType(@Staff)
386
- while (currentExpression instanceof SimpleFunctionExpression &&
387
- matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
388
- currentExpression = getNullableFirstElement(currentExpression.parametersValues);
389
- }
390
- }
391
- this.requiresExistsHandling = requiresExistsHandling;
392
- this.derivedPropertyExpressionStates = result.slice().reverse();
393
- }
394
- }
395
- //# sourceMappingURL=QueryBuilderPropertyEditorState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,WAAW,EACX,gDAAgD,EAChD,kDAAkD,EAClD,yBAAy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