@finos/legend-query-builder 3.0.7 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. package/lib/__lib__/QueryBuilderDocumentation.d.ts +0 -1
  2. package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderDocumentation.js +0 -1
  4. package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
  5. package/lib/__lib__/QueryBuilderEvent.d.ts +18 -0
  6. package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
  7. package/lib/__lib__/QueryBuilderEvent.js +20 -0
  8. package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
  9. package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts +14 -0
  10. package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -1
  11. package/lib/__lib__/QueryBuilderTelemetryHelper.js +43 -1
  12. package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -1
  13. package/lib/components/QueryBuilder.d.ts +0 -1
  14. package/lib/components/QueryBuilder.d.ts.map +1 -1
  15. package/lib/components/QueryBuilder.js +74 -36
  16. package/lib/components/QueryBuilder.js.map +1 -1
  17. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +0 -1
  18. package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
  19. package/lib/components/QueryBuilderDiffPanel.d.ts +0 -1
  20. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  21. package/lib/components/QueryBuilderParametersPanel.d.ts +0 -1
  22. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  23. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -1
  24. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  25. package/lib/components/QueryBuilderResultPanel.d.ts +0 -1
  26. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  27. package/lib/components/QueryBuilderSideBar.d.ts +0 -1
  28. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  29. package/lib/components/QueryBuilderTextEditor.d.ts +0 -1
  30. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  31. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -1
  32. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
  33. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -1
  34. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  35. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -1
  36. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  37. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -1
  38. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  39. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -1
  40. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
  41. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
  42. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  43. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -1
  44. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  45. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +13 -3
  46. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  47. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +0 -1
  48. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
  49. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -1
  50. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +17 -0
  52. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +152 -15
  54. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  55. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +0 -1
  56. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +2 -2
  58. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  59. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -1
  60. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  61. package/lib/components/filter/QueryBuilderFilterPanel.js +14 -3
  62. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  63. package/lib/components/shared/LambdaEditor.d.ts +0 -1
  64. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  65. package/lib/components/shared/LambdaParameterValuesEditor.d.ts +0 -1
  66. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  67. package/lib/components/shared/LambdaParameterValuesEditor.js +2 -1
  68. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  69. package/lib/components/shared/QueryBuilderVariableSelector.d.ts +0 -1
  70. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  71. package/lib/components/watermark/QueryBuilderWatermark.d.ts +0 -1
  72. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  73. package/lib/graph/QueryBuilderMetaModelConst.d.ts +33 -0
  74. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  75. package/lib/graph/QueryBuilderMetaModelConst.js +34 -0
  76. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  77. package/lib/graph-manager/QueryBuilderConst.d.ts +20 -0
  78. package/lib/graph-manager/QueryBuilderConst.d.ts.map +1 -0
  79. package/lib/graph-manager/QueryBuilderConst.js +21 -0
  80. package/lib/graph-manager/QueryBuilderConst.js.map +1 -0
  81. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
  82. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +3 -2
  83. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  84. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  85. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +27 -14
  86. package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  87. package/lib/index.css +2 -2
  88. package/lib/index.css.map +1 -1
  89. package/lib/package.json +4 -4
  90. package/lib/stores/QueryBuilderState.d.ts +3 -2
  91. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  92. package/lib/stores/QueryBuilderState.js +12 -6
  93. package/lib/stores/QueryBuilderState.js.map +1 -1
  94. package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
  95. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  96. package/lib/stores/QueryBuilderStateBuilder.js +11 -2
  97. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  98. package/lib/stores/QueryBuilderStateHashUtils.d.ts +32 -1
  99. package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
  100. package/lib/stores/QueryBuilderStateHashUtils.js +32 -0
  101. package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
  102. package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
  103. package/lib/stores/QueryBuilderTextEditorState.js +12 -6
  104. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  105. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +1 -1
  106. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  107. package/lib/stores/explorer/QueryBuilderExplorerState.js +2 -2
  108. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  109. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
  110. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +1 -0
  111. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
  112. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
  113. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  114. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +14 -4
  115. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  116. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts +38 -0
  117. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts.map +1 -0
  118. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js +54 -0
  119. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -0
  120. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts +18 -0
  121. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts.map +1 -0
  122. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js +80 -0
  123. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js.map +1 -0
  124. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +8 -1
  125. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
  126. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +24 -1
  127. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  128. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
  129. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +23 -0
  130. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
  131. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts +22 -0
  132. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +1 -0
  133. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js +61 -0
  134. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -0
  135. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts +28 -0
  136. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts.map +1 -0
  137. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js +55 -0
  138. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js.map +1 -0
  139. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts +28 -0
  140. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts.map +1 -0
  141. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js +55 -0
  142. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js.map +1 -0
  143. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts +28 -0
  144. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts.map +1 -0
  145. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js +55 -0
  146. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js.map +1 -0
  147. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts +28 -0
  148. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts.map +1 -0
  149. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js +55 -0
  150. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js.map +1 -0
  151. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts +28 -0
  152. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts.map +1 -0
  153. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js +55 -0
  154. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js.map +1 -0
  155. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts +28 -0
  156. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts.map +1 -0
  157. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js +55 -0
  158. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js.map +1 -0
  159. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts +28 -0
  160. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts.map +1 -0
  161. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js +55 -0
  162. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js.map +1 -0
  163. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts +28 -0
  164. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts.map +1 -0
  165. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js +55 -0
  166. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js.map +1 -0
  167. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts +28 -0
  168. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts.map +1 -0
  169. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js +55 -0
  170. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js.map +1 -0
  171. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts +28 -0
  172. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts.map +1 -0
  173. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js +55 -0
  174. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js.map +1 -0
  175. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts +28 -0
  176. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts.map +1 -0
  177. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js +55 -0
  178. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js.map +1 -0
  179. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts +28 -0
  180. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts.map +1 -0
  181. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js +55 -0
  182. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js.map +1 -0
  183. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts +28 -0
  184. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts.map +1 -0
  185. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js +55 -0
  186. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js.map +1 -0
  187. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts +28 -0
  188. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts.map +1 -0
  189. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js +55 -0
  190. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js.map +1 -0
  191. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts +28 -0
  192. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts.map +1 -0
  193. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js +55 -0
  194. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js.map +1 -0
  195. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts +28 -0
  196. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts.map +1 -0
  197. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js +55 -0
  198. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js.map +1 -0
  199. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts +28 -0
  200. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts.map +1 -0
  201. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js +55 -0
  202. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js.map +1 -0
  203. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts +28 -0
  204. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts.map +1 -0
  205. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js +55 -0
  206. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js.map +1 -0
  207. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts +28 -0
  208. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts.map +1 -0
  209. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js +55 -0
  210. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js.map +1 -0
  211. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts +28 -0
  212. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts.map +1 -0
  213. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js +55 -0
  214. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js.map +1 -0
  215. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts +28 -0
  216. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts.map +1 -0
  217. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js +55 -0
  218. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js.map +1 -0
  219. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts +28 -0
  220. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts.map +1 -0
  221. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js +55 -0
  222. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js.map +1 -0
  223. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts +28 -0
  224. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts.map +1 -0
  225. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js +55 -0
  226. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js.map +1 -0
  227. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts +28 -0
  228. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts.map +1 -0
  229. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js +55 -0
  230. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js.map +1 -0
  231. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts +28 -0
  232. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts.map +1 -0
  233. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js +55 -0
  234. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js.map +1 -0
  235. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts +28 -0
  236. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts.map +1 -0
  237. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js +55 -0
  238. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js.map +1 -0
  239. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts +28 -0
  240. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts.map +1 -0
  241. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js +55 -0
  242. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js.map +1 -0
  243. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts +28 -0
  244. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts.map +1 -0
  245. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js +55 -0
  246. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js.map +1 -0
  247. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts +28 -0
  248. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts.map +1 -0
  249. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js +55 -0
  250. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js.map +1 -0
  251. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts +28 -0
  252. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts.map +1 -0
  253. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js +55 -0
  254. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js.map +1 -0
  255. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts +28 -0
  256. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts.map +1 -0
  257. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js +55 -0
  258. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js.map +1 -0
  259. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  260. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +9 -1
  261. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  262. package/package.json +10 -10
  263. package/src/__lib__/QueryBuilderDocumentation.ts +0 -2
  264. package/src/__lib__/QueryBuilderEvent.ts +20 -0
  265. package/src/__lib__/QueryBuilderTelemetryHelper.ts +131 -1
  266. package/src/components/QueryBuilder.tsx +226 -188
  267. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +96 -60
  268. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +456 -94
  269. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +2 -4
  270. package/src/components/filter/QueryBuilderFilterPanel.tsx +102 -60
  271. package/src/components/shared/LambdaParameterValuesEditor.tsx +2 -1
  272. package/src/graph/QueryBuilderMetaModelConst.ts +34 -0
  273. package/src/graph-manager/QueryBuilderConst.ts +20 -0
  274. package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +10 -1
  275. package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +73 -28
  276. package/src/stores/QueryBuilderState.ts +12 -9
  277. package/src/stores/QueryBuilderStateBuilder.ts +33 -2
  278. package/src/stores/QueryBuilderStateHashUtils.ts +33 -0
  279. package/src/stores/QueryBuilderTextEditorState.ts +21 -14
  280. package/src/stores/explorer/QueryBuilderExplorerState.ts +2 -1
  281. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +1 -0
  282. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +22 -3
  283. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.ts +98 -0
  284. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.ts +83 -0
  285. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +31 -0
  286. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +41 -0
  287. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts +175 -0
  288. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts +98 -0
  289. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts +98 -0
  290. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts +98 -0
  291. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts +99 -0
  292. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts +98 -0
  293. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.ts +98 -0
  294. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.ts +98 -0
  295. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.ts +98 -0
  296. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.ts +98 -0
  297. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.ts +98 -0
  298. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.ts +98 -0
  299. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.ts +98 -0
  300. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.ts +98 -0
  301. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.ts +98 -0
  302. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.ts +98 -0
  303. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.ts +98 -0
  304. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.ts +98 -0
  305. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.ts +98 -0
  306. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.ts +98 -0
  307. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.ts +98 -0
  308. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.ts +98 -0
  309. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.ts +98 -0
  310. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.ts +98 -0
  311. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.ts +98 -0
  312. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.ts +98 -0
  313. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.ts +98 -0
  314. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.ts +98 -0
  315. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.ts +98 -0
  316. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.ts +98 -0
  317. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.ts +98 -0
  318. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.ts +98 -0
  319. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +18 -1
  320. package/tsconfig.json +35 -0
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFunctionsExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA+CH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAgV3E,eAAO,MAAM,kCAAkC,WACrC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmKjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFunctionsExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA+CH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAgV3E,eAAO,MAAM,kCAAkC,WACrC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmKjD,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
17
  export declare const MilestoningParametersEditor: ((props: {
19
18
  queryBuilderState: QueryBuilderState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningEditor.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkO3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA8CjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderMilestoningEditor.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkO3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA8CjD,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
17
  export declare const QueryBuilderPropertySearchPanel: ((props: {
19
18
  queryBuilderState: QueryBuilderState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertySearchPanel.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderPropertySearchPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA0CH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAuM3E,eAAO,MAAM,+BAA+B,WAClC;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,WAAW,GAAG,IAAI,CAAC;CACpC;;CAmXF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertySearchPanel.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderPropertySearchPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0CH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAuM3E,eAAO,MAAM,+BAA+B,WAClC;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,WAAW,GAAG,IAAI,CAAC;CACpC;;CAmXF,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
17
  export declare const QueryBuilderFetchStructurePanel: ((props: {
19
18
  queryBuilderState: QueryBuilderState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwC3E,eAAO,MAAM,+BAA+B,WAClC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsDjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwC3E,eAAO,MAAM,+BAA+B,WAClC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsDjD,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { type QueryBuilderGraphFetchTreeData } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
18
17
  import { type GraphFetchSerializationState, GraphFetchExternalFormatSerializationState, type QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
19
18
  import { Binding } from '@finos/legend-graph';
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA4CH,OAAO,EACL,KAAK,8BAA8B,EAIpC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,KAAK,4BAA4B,EACjC,0CAA0C,EAI1C,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAErF,OAAO,EAEL,OAAO,EAGR,MAAM,qBAAqB,CAAC;AAiQ7B,eAAO,MAAM,oCAAoC,WACvC;IACN,eAAe,EAAE,+BAA+B,CAAC;IACjD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoFF,CAAC;AAEF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;wBAC5B,4BAA4B;cACtC,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CA4QtB,CAAC;AAoFF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAwCjE,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4CH,OAAO,EACL,KAAK,8BAA8B,EAIpC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,KAAK,4BAA4B,EACjC,0CAA0C,EAI1C,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAErF,OAAO,EAEL,OAAO,EAGR,MAAM,qBAAqB,CAAC;AAiQ7B,eAAO,MAAM,oCAAoC,WACvC;IACN,eAAe,EAAE,+BAA+B,CAAC;IACjD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoFF,CAAC;AAEF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;wBAC5B,4BAA4B;cACtC,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CA4QtB,CAAC;AAoFF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAwCjE,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { PostFilterConditionState } from '../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
18
17
  import { type QueryBuilderProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
19
18
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAkDH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAqH3E,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAyErB,CAAC;AAssBF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqDH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAsH3E,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAyErB,CAAC;AAsuBF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
@@ -15,7 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
15
15
  * limitations under the License.
16
16
  */
17
17
  import { useApplicationStore } from '@finos/legend-application';
18
- import { BlankPanelPlaceholder, CaretDownIcon, ChevronDownIcon, ChevronRightIcon, ClickAwayListener, clsx, ContextMenu, DropdownMenu, FilledTriangleIcon, MenuContent, MenuContentItem, TimesIcon, PlusIcon, ExpandIcon, CompressIcon, CircleIcon, TrashIcon, NewFolderIcon, PlusCircleIcon, InfoCircleIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, BlankPanelContent, PanelContent, } from '@finos/legend-art';
18
+ import { BlankPanelPlaceholder, CaretDownIcon, ChevronDownIcon, ChevronRightIcon, ClickAwayListener, clsx, ContextMenu, DropdownMenu, FilledTriangleIcon, MenuContent, MenuContentItem, TimesIcon, PlusIcon, ExpandIcon, CompressIcon, CircleIcon, TrashIcon, NewFolderIcon, PlusCircleIcon, InfoCircleIcon, PanelDropZone, DragPreviewLayer, PanelEntryDropZonePlaceholder, useDragPreviewLayer, BlankPanelContent, PanelContent, MoreVerticalIcon, MenuContentItemIcon, MenuContentItemLabel, } from '@finos/legend-art';
19
19
  import { Class, Enumeration, PrimitiveType, } from '@finos/legend-graph';
20
20
  import { assertErrorThrown, guaranteeNonNullable, debounce, } from '@finos/legend-shared';
21
21
  import { flowResult } from 'mobx';
@@ -32,6 +32,7 @@ import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuil
32
32
  import { BasicValueSpecificationEditor, QUERY_BUILDER_VARIABLE_DND_TYPE, } from '../shared/BasicValueSpecificationEditor.js';
33
33
  import { QueryBuilderColumnInfoTooltip, renderPropertyTypeIcon, } from './QueryBuilderTDSComponentHelper.js';
34
34
  import { QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
35
+ import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
35
36
  const QueryBuilderPostFilterConditionContextMenu = observer(forwardRef(function QueryBuilderPostFilterConditionContextMenu(props, ref) {
36
37
  const { tdsState, node } = props;
37
38
  const postFilterState = tdsState.postFilterState;
@@ -257,22 +258,27 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
257
258
  const rootNode = postFilterState.getRootNode();
258
259
  // actions
259
260
  const collapseTree = () => {
261
+ QueryBuilderTelemetryHelper.logEvent_PostFilterCollapseTreeLaunched(applicationStore.telemetryService);
260
262
  postFilterState.setSelectedNode(undefined);
261
263
  postFilterState.collapseTree();
262
264
  };
263
265
  const expandTree = () => {
266
+ QueryBuilderTelemetryHelper.logEvent_PostFilterExpandTreeLaunched(applicationStore.telemetryService);
264
267
  postFilterState.setSelectedNode(undefined);
265
268
  postFilterState.expandTree();
266
269
  };
267
270
  const pruneTree = () => {
271
+ QueryBuilderTelemetryHelper.logEvent_PostFilterCleanupTreeLaunched(applicationStore.telemetryService);
268
272
  postFilterState.suppressClickawayEventListener();
269
273
  postFilterState.pruneTree();
270
274
  };
271
275
  const simplifyTree = () => {
276
+ QueryBuilderTelemetryHelper.logEvent_PostFilterSimplifyTreeLaunched(applicationStore.telemetryService);
272
277
  postFilterState.suppressClickawayEventListener();
273
278
  postFilterState.simplifyTree();
274
279
  };
275
280
  const createCondition = () => {
281
+ QueryBuilderTelemetryHelper.logEvent_PostFilterCreateConditionLaunched(applicationStore.telemetryService);
276
282
  postFilterState.suppressClickawayEventListener();
277
283
  postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeBlankConditionNodeData(undefined), postFilterState.selectedNode);
278
284
  };
@@ -281,12 +287,14 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
281
287
  (postFilterState.selectedNode !== rootNode || // either not a root node
282
288
  rootNode instanceof QueryBuilderPostFilterTreeGroupNodeData)); // or if it is the root note, it has to be a group node
283
289
  const createGroupCondition = () => {
290
+ QueryBuilderTelemetryHelper.logEvent_PostFilterCreateLogicalGroupLaunched(applicationStore.telemetryService);
284
291
  postFilterState.suppressClickawayEventListener();
285
292
  if (allowGroupCreation) {
286
293
  postFilterState.addGroupConditionNodeFromNode(postFilterState.selectedNode);
287
294
  }
288
295
  };
289
296
  const newGroupWithCondition = () => {
297
+ QueryBuilderTelemetryHelper.logEvent_PostFilterCreateGroupFromConditionLaunched(applicationStore.telemetryService);
290
298
  postFilterState.suppressClickawayEventListener();
291
299
  if (postFilterState.selectedNode instanceof
292
300
  QueryBuilderPostFilterTreeConditionNodeData) {
@@ -330,8 +338,10 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
330
338
  isDragOver: monitor.isOver({ shallow: true }),
331
339
  }),
332
340
  }), [applicationStore, handleDrop]);
333
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER, className: "panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action", onClick: createCondition, tabIndex: -1, title: "Create Condition", children: _jsx(PlusIcon, {}) }), _jsx("button", { className: "panel__header__action", disabled: !(postFilterState.selectedNode instanceof
334
- QueryBuilderPostFilterTreeConditionNodeData), onClick: newGroupWithCondition, tabIndex: -1, title: "Create Group From Condition", children: _jsx(PlusCircleIcon, {}) }), _jsx("button", { className: "panel__header__action", disabled: !allowGroupCreation, onClick: createGroupCondition, tabIndex: -1, title: "Create Logical Group", children: _jsx(NewFolderIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: pruneTree, tabIndex: -1, title: "Cleanup Tree", children: _jsx(TrashIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: simplifyTree, tabIndex: -1, title: "Simplify Tree", children: _jsx(CircleIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: collapseTree, tabIndex: -1, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx("button", { className: "panel__header__action", onClick: expandTree, tabIndex: -1, title: "Expand Tree", children: _jsx(ExpandIcon, {}) })] })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, children: [postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] }))] }) })] }));
341
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_POST_FILTER, className: "panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Filter Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: createCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Condition" })] }), _jsxs(MenuContentItem, { disabled: !(postFilterState.selectedNode instanceof
342
+ QueryBuilderPostFilterTreeConditionNodeData), onClick: newGroupWithCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusCircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Group From Condition" })] }), _jsxs(MenuContentItem, { disabled: !allowGroupCreation, title: !allowGroupCreation
343
+ ? 'Please select a filter node first to create logical group'
344
+ : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, children: [postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] }))] }) })] }));
335
345
  });
336
346
  export const QueryBuilderPostFilterPanel = observer((props) => {
337
347
  const { queryBuilderState } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAGL,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB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YAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,4BAAkB,GAC1D,GACF,EACN,KAAC,YAAY,cACX,KAAC,iBAAiB,+EAEE,GACP,IACd,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAGL,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,EACL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,gCAAgC,EAAE,MAAM,8EA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B,4BAAkB,GAC1D,GACF,EACN,KAAC,YAAY,cACX,KAAC,iBAAiB,+EAEE,GACP,IACd,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
18
17
  export declare const QueryBuilderPostTDSPanel: ((props: {
19
18
  tdsState: QueryBuilderTDSState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAsC3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAsC3C,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
18
17
  export declare const QueryResultModifierModal: ((props: {
19
18
  tdsState: QueryBuilderTDSState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAyBH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAuJrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiF3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyBH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAuJrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiF3C,CAAC"}
@@ -14,7 +14,24 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
+ import { AbstractPropertyExpression, Property, VariableExpression } from '@finos/legend-graph';
17
18
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
19
+ import { type QueryBuilderAggregateCalendarFunction } from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js';
20
+ import { QUERY_BUILDER_CALENDAR_TYPE } from '../../graph-manager/QueryBuilderConst.js';
21
+ export type CalendarFunctionOption = {
22
+ label: string | React.ReactNode;
23
+ value: QueryBuilderAggregateCalendarFunction;
24
+ };
25
+ export declare const buildCalendarFunctionOption: (calendarFunction: QueryBuilderAggregateCalendarFunction) => CalendarFunctionOption;
26
+ export type CalendarFunctionDateColumnOption = {
27
+ label: string;
28
+ value: AbstractPropertyExpression;
29
+ };
30
+ export declare const buildCalendarFunctionDateColumnOption: (dateColumn: Property | AbstractPropertyExpression, parameter: VariableExpression, humanizeLabel: boolean) => CalendarFunctionDateColumnOption;
31
+ export type CalendarTypeOption = {
32
+ label: string;
33
+ value: QUERY_BUILDER_CALENDAR_TYPE;
34
+ };
18
35
  export declare const QueryBuilderTDSPanel: ((props: {
19
36
  tdsState: QueryBuilderTDSState;
20
37
  }) => JSX.Element) & {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAwDH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAkZrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAqK3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiDH,OAAO,EAKL,0BAA0B,EAE1B,QAAQ,EAER,kBAAkB,EAQnB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAOrG,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,uFAAuF,CAAC;AAQnJ,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,KAAK,EAAE,qCAAqC,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,2BAA2B,qBACpB,qCAAqC,KACtD,sBAaD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,0BAA0B,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,qCAAqC,eACpC,QAAQ,GAAG,0BAA0B,aACtC,kBAAkB,iBACd,OAAO,KACrB,gCAkBF,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,2BAA2B,CAAC;CACpC,CAAC;AAoqBF,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAqK3C,CAAC"}
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  */
17
17
  import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelDnDEntryDragHandle, } from '@finos/legend-art';
19
+ import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelDnDEntryDragHandle, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PURE_FunctionIcon, PanelEntryDropZonePlaceholder, } from '@finos/legend-art';
20
20
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
21
21
  import { useDrag, useDrop } from 'react-dnd';
22
22
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
@@ -25,11 +25,38 @@ import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel.js';
25
25
  import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
26
26
  import { flowResult } from 'mobx';
27
27
  import { useApplicationStore } from '@finos/legend-application';
28
- import { generateFunctionCallString, LAMBDA_PIPE, VARIABLE_REFERENCE_TOKEN, } from '@finos/legend-graph';
28
+ import { generateFunctionCallString, LAMBDA_PIPE, VARIABLE_REFERENCE_TOKEN, AbstractPropertyExpression, PRIMITIVE_TYPE, Property, PropertyExplicitReference, VariableExpression, Multiplicity, PrimitiveType, GenericType, GenericTypeExplicitReference, observe_PrimitiveInstanceValue, PrimitiveInstanceValue, } from '@finos/legend-graph';
29
29
  import { QUERY_BUILDER_FUNCTION_DND_TYPE, } from '../../stores/explorer/QueryFunctionsExplorerState.js';
30
30
  import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../stores/QueryBuilderConfig.js';
31
31
  import { LambdaEditor } from '../shared/LambdaEditor.js';
32
- import { QUERY_BUILDER_VARIABLE_DND_TYPE, } from '../shared/BasicValueSpecificationEditor.js';
32
+ import { QUERY_BUILDER_VARIABLE_DND_TYPE, BasicValueSpecificationEditor, } from '../shared/BasicValueSpecificationEditor.js';
33
+ import {} from '../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js';
34
+ import { instanceValue_setValues, propertyExpression_setFunc, } from '../../stores/shared/ValueSpecificationModifierHelper.js';
35
+ import { guaranteeNonNullable } from '@finos/legend-shared';
36
+ import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorState.js';
37
+ import { generateDefaultValueForPrimitiveType } from '../../stores/QueryBuilderValueSpecificationHelper.js';
38
+ import { QUERY_BUILDER_CALENDAR_TYPE } from '../../graph-manager/QueryBuilderConst.js';
39
+ export const buildCalendarFunctionOption = (calendarFunction) => ({
40
+ label: (_jsxs("div", { className: "query-builder__projection__calendar__function__label", title: calendarFunction.getLabel(), children: [_jsx(PURE_FunctionIcon, {}), _jsx("div", { className: "query-builder__projection__calendar__function__label__title", children: calendarFunction.getLabel() })] })),
41
+ value: calendarFunction,
42
+ });
43
+ export const buildCalendarFunctionDateColumnOption = (dateColumn, parameter, humanizeLabel) => {
44
+ if (dateColumn instanceof Property) {
45
+ const propertyExpression = new AbstractPropertyExpression('');
46
+ propertyExpression_setFunc(propertyExpression, PropertyExplicitReference.create(guaranteeNonNullable(dateColumn)));
47
+ propertyExpression.parametersValues = [parameter];
48
+ return {
49
+ label: getPropertyChainName(propertyExpression, humanizeLabel),
50
+ value: propertyExpression,
51
+ };
52
+ }
53
+ else {
54
+ return {
55
+ label: getPropertyChainName(dateColumn, humanizeLabel),
56
+ value: dateColumn,
57
+ };
58
+ }
59
+ };
33
60
  const QueryBuilderProjectionColumnContextMenu = observer(forwardRef(function QueryBuilderProjectionColumnContextMenu(props, ref) {
34
61
  const { projectionColumnState } = props;
35
62
  const removeColumn = () => projectionColumnState.tdsState.removeColumn(projectionColumnState);
@@ -82,12 +109,14 @@ const QueryBuilderDerivationProjectionColumnEditor = observer((props) => {
82
109
  });
83
110
  const QueryBuilderProjectionColumnEditor = observer((props) => {
84
111
  const handleRef = useRef(null);
112
+ const applicationStore = useApplicationStore();
85
113
  const ref = useRef(null);
86
114
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
87
115
  const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
88
116
  const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
89
117
  const { projectionColumnState } = props;
90
118
  const tdsState = projectionColumnState.tdsState;
119
+ const isCalendarEnabled = tdsState.queryBuilderState.isCalendarEnabled;
91
120
  const isRemovalDisabled = tdsState.isColumnInUse(projectionColumnState);
92
121
  const removeColumn = () => tdsState.removeColumn(projectionColumnState);
93
122
  // name
@@ -97,6 +126,64 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
97
126
  const aggregateColumnState = tdsState.aggregationState.columns.find((column) => column.projectionColumnState === projectionColumnState);
98
127
  const aggreateOperators = tdsState.aggregationState.operators.filter((op) => op.isCompatibleWithColumn(projectionColumnState));
99
128
  const changeOperator = (val) => () => tdsState.aggregationState.changeColumnAggregateOperator(val, projectionColumnState);
129
+ // calendar
130
+ const aggregateCalendarFunctionDateColumns = tdsState.queryBuilderState.class?.properties.filter((p) => {
131
+ const _type = p.genericType.value.rawType.name;
132
+ if (_type === PRIMITIVE_TYPE.DATE ||
133
+ _type === PRIMITIVE_TYPE.STRICTDATE) {
134
+ return true;
135
+ }
136
+ return false;
137
+ }) ?? [];
138
+ const calendarFunctionDateColumnOptions = aggregateCalendarFunctionDateColumns.map((option) => buildCalendarFunctionDateColumnOption(option, new VariableExpression(aggregateColumnState?.calendarFunction?.lambdaParameterName ??
139
+ DEFAULT_LAMBDA_VARIABLE_NAME, Multiplicity.ONE), tdsState.queryBuilderState.explorerState.humanizePropertyName));
140
+ const calendarTypeOptions = Object.values(QUERY_BUILDER_CALENDAR_TYPE).map((ct) => ({
141
+ label: (_jsxs("div", { className: "query-builder__projection__calendar__type__option", children: [_jsx(CalendarIcon, {}), _jsx("div", { className: "query-builder__projection__calendar__type__option__title", children: ct })] })),
142
+ value: ct,
143
+ }));
144
+ const selectedCalendarTypeOption = aggregateColumnState?.calendarFunction
145
+ ?.calendarType
146
+ ? {
147
+ label: (_jsxs("div", { className: "query-builder__projection__calendar__type__option", children: [_jsx(CalendarIcon, {}), _jsx("div", { className: "query-builder__projection__calendar__type__option__title", children: aggregateColumnState.calendarFunction.calendarType })] })),
148
+ value: aggregateColumnState.calendarFunction.calendarType,
149
+ }
150
+ : null;
151
+ const onCalendarTypeOptionChange = (option) => {
152
+ if (option.value !== aggregateColumnState?.calendarFunction?.calendarType) {
153
+ aggregateColumnState?.calendarFunction?.setCalendarType(option.value);
154
+ }
155
+ };
156
+ const defaultEndDate = observe_PrimitiveInstanceValue(new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRICTDATE))), tdsState.queryBuilderState.observerContext);
157
+ instanceValue_setValues(defaultEndDate, [generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE)], tdsState.queryBuilderState.observerContext);
158
+ const resetEndDate = () => {
159
+ if (aggregateColumnState?.calendarFunction) {
160
+ aggregateColumnState.calendarFunction.setEndDate(defaultEndDate);
161
+ }
162
+ };
163
+ const aggregateCalendarFunctions = tdsState.aggregationState.calendarFunctions.filter((cf) => cf.isCompatibleWithColumn(projectionColumnState));
164
+ const calendarFunctionOptions = aggregateCalendarFunctions.map(buildCalendarFunctionOption);
165
+ const selectedCalendarFunctionOption = aggregateColumnState?.calendarFunction
166
+ ? buildCalendarFunctionOption(aggregateColumnState.calendarFunction)
167
+ : null;
168
+ const onCalendarFunctionOptionChange = (option) => {
169
+ if (option?.value !== aggregateColumnState?.calendarFunction) {
170
+ const lambdaParameterName = aggregateColumnState?.calendarFunction?.lambdaParameterName;
171
+ aggregateColumnState?.setCalendarFunction(option?.value ?? undefined);
172
+ if (lambdaParameterName && aggregateColumnState.calendarFunction) {
173
+ aggregateColumnState.calendarFunction.setLambdaParameterName(lambdaParameterName);
174
+ }
175
+ if (aggregateColumnState?.calendarFunction) {
176
+ if (calendarFunctionDateColumnOptions[0]) {
177
+ aggregateColumnState.calendarFunction.setDateColumn(guaranteeNonNullable(calendarFunctionDateColumnOptions[0]).value);
178
+ }
179
+ else {
180
+ applicationStore.notificationService.notifyWarning('Please provide the date column field for the calendar function');
181
+ }
182
+ aggregateColumnState.calendarFunction.setCalendarType(guaranteeNonNullable(calendarTypeOptions[0]).value);
183
+ aggregateColumnState.calendarFunction.setEndDate(defaultEndDate);
184
+ }
185
+ }
186
+ };
100
187
  // Drag and Drop
101
188
  const handleHover = useCallback((item, monitor) => {
102
189
  const dragIndex = tdsState.projectionColumns.findIndex((e) => e === item.columnState);
@@ -140,21 +227,71 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
140
227
  dragConnector(handleRef);
141
228
  dropConnector(ref);
142
229
  useDragPreviewLayer(dragPreviewConnector);
230
+ const toggleHideCalendarColumnState = () => {
231
+ if (aggregateColumnState) {
232
+ aggregateColumnState.setHideCalendarColumnState(!aggregateColumnState.hideCalendarColumnState);
233
+ }
234
+ };
235
+ // Drag and Drop on calendar function date column
236
+ const handleDrop = useCallback((item, type) => {
237
+ if (type === QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY) {
238
+ if (item.node.type.name === PRIMITIVE_TYPE.DATE ||
239
+ item.node.type.name === PRIMITIVE_TYPE.STRICTDATE) {
240
+ aggregateColumnState?.calendarFunction?.setDateColumn(buildPropertyExpressionFromExplorerTreeNodeData(item.node, tdsState.queryBuilderState.explorerState, aggregateColumnState.calendarFunction.lambdaParameterName));
241
+ }
242
+ else {
243
+ applicationStore.notificationService.notifyWarning(`${item.node.type.name} type is not compaible with calendar function date column`);
244
+ }
245
+ }
246
+ }, [
247
+ aggregateColumnState?.calendarFunction,
248
+ applicationStore.notificationService,
249
+ tdsState.queryBuilderState.explorerState,
250
+ ]);
251
+ const [{ isDragOver }, dropTargetConnector] = useDrop(() => ({
252
+ accept: [QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY],
253
+ drop: (item, monitor) => {
254
+ if (!monitor.didDrop()) {
255
+ handleDrop(item, monitor.getItemType());
256
+ } // prevent drop event propagation to accomondate for nested DnD
257
+ },
258
+ collect: (monitor) => ({
259
+ isDragOver: monitor.isOver({ shallow: true }),
260
+ }),
261
+ }), [handleDrop]);
143
262
  return (_jsx(PanelDnDEntry, { ref: ref, showPlaceholder: isBeingDragged, className: "query-builder__projection__column", children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderProjectionColumnContextMenu, { projectionColumnState: projectionColumnState }), disabled: !(projectionColumnState instanceof
144
263
  QueryBuilderSimpleProjectionColumnState), className: clsx('query-builder__projection__column__context-menu', {
145
264
  'query-builder__projection__column--selected-from-context-menu': isSelectedFromContextMenu,
146
- }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(PanelDnDEntryDragHandle, { isBeingDragged: isBeingDragged, dropTargetConnector: handleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, validationErrorMessage: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
147
- QueryBuilderSimpleProjectionColumnState && (_jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState })), projectionColumnState instanceof
148
- QueryBuilderDerivationProjectionColumnState && (_jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState }))] }), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), _jsxs(DropdownMenu, { className: "query-builder__projection__column__aggregate__operator__dropdown", title: "Choose Aggregate Operator...", disabled: !aggreateOperators.length, content: _jsxs(MenuContent, { children: [aggregateColumnState && (_jsx(MenuContentItem, { className: "query-builder__projection__column__aggregate__operator__dropdown__option", onClick: changeOperator(undefined), children: "(none)" })), aggreateOperators.map((op) => (_jsx(MenuContentItem, { className: "query-builder__projection__column__aggregate__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(projectionColumnState) }, op.uuid)))] }), menuProps: {
149
- anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
150
- transformOrigin: { vertical: 'top', horizontal: 'left' },
151
- elevation: 7,
152
- }, children: [_jsx("div", { className: clsx('query-builder__projection__column__aggregate__operator__badge', {
153
- 'query-builder__projection__column__aggregate__operator__badge--activated': Boolean(aggregateColumnState),
154
- }), children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__projection__column__aggregate__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsx("div", { className: "query-builder__projection__column__actions", children: _jsx("button", { className: "query-builder__projection__column__action", tabIndex: -1, onClick: removeColumn, disabled: isRemovalDisabled, title: isRemovalDisabled
155
- ? // TODO: We may want to provide a list of all places where column is in use
156
- "This column is used and can't be removed"
157
- : 'Remove', children: _jsx(TimesIcon, {}) }) })] }) }));
265
+ }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxs("div", { className: "query-builder__projection__column__container", children: [_jsx(PanelDnDEntryDragHandle, { isBeingDragged: isBeingDragged, dropTargetConnector: handleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
266
+ QueryBuilderSimpleProjectionColumnState && (_jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState })), projectionColumnState instanceof
267
+ QueryBuilderDerivationProjectionColumnState && (_jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState }))] }), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), isCalendarEnabled &&
268
+ aggregateColumnState &&
269
+ aggregateCalendarFunctions.length > 0 && (_jsx("div", { className: aggregateColumnState.hideCalendarColumnState
270
+ ? 'query-builder__projection__column__aggregate__calendar--clock--icon__hidden'
271
+ : 'query-builder__projection__column__aggregate__calendar--clock--icon', onClick: toggleHideCalendarColumnState, title: "Click to select calendar function", children: _jsx(CalendarClockIcon, {}) })), _jsxs(DropdownMenu, { className: "query-builder__projection__column__aggregate__operator__dropdown", title: "Choose Aggregate Operator...", disabled: !aggreateOperators.length, content: _jsxs(MenuContent, { children: [aggregateColumnState && (_jsx(MenuContentItem, { className: "query-builder__projection__column__aggregate__operator__dropdown__option", onClick: changeOperator(undefined), children: "(none)" })), aggreateOperators.map((op) => (_jsx(MenuContentItem, { className: "query-builder__projection__column__aggregate__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(projectionColumnState) }, op.uuid)))] }), menuProps: {
272
+ anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
273
+ transformOrigin: { vertical: 'top', horizontal: 'left' },
274
+ elevation: 7,
275
+ }, children: [_jsx("div", { className: clsx('query-builder__projection__column__aggregate__operator__badge', {
276
+ 'query-builder__projection__column__aggregate__operator__badge--activated': Boolean(aggregateColumnState),
277
+ }), children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__projection__column__aggregate__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsx("div", { className: "query-builder__projection__column__actions", children: _jsx("button", { className: "query-builder__projection__column__action", tabIndex: -1, onClick: removeColumn, disabled: isRemovalDisabled, title: isRemovalDisabled
278
+ ? // TODO: We may want to provide a list of all places where column is in use
279
+ "This column is used and can't be removed"
280
+ : 'Remove', children: _jsx(TimesIcon, {}) }) })] }), isCalendarEnabled &&
281
+ aggregateColumnState &&
282
+ aggregateCalendarFunctions.length > 0 && (_jsxs("div", { className: clsx('query-builder__projection__calendar__container', {
283
+ 'query-builder__projection__calendar__container--hidden': aggregateColumnState.hideCalendarColumnState,
284
+ }), children: [_jsx("div", { "data-testid": "test", children: _jsx(CustomSelectorInput, { className: "query-builder__projection__calendar__function", options: calendarFunctionOptions, onChange: onCalendarFunctionOptionChange, value: selectedCalendarFunctionOption, placeholder: 'Select Calendar Function', isClearable: true, escapeClearsValue: true, darkMode: !applicationStore.layoutService
285
+ .TEMPORARY__isLightColorThemeEnabled }) }), _jsx("div", { className: "query-builder__projection__calendar__value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: aggregateColumnState.calendarFunction?.endDate ??
286
+ defaultEndDate, setValueSpecification: (val) => {
287
+ if (val instanceof PrimitiveInstanceValue) {
288
+ aggregateColumnState.calendarFunction?.setEndDate(val);
289
+ }
290
+ }, graph: tdsState.queryBuilderState.graphManagerState.graph, obseverContext: tdsState.queryBuilderState.observerContext, typeCheckOption: {
291
+ expectedType: PrimitiveType.STRICTDATE,
292
+ }, className: "query-builder__parameters__value__editor", resetValue: resetEndDate }) }), _jsx("div", { className: "query-builder__projection__calendar__date__column", ref: dropTargetConnector, children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Date Column", className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: aggregateColumnState.calendarFunction?.dateColumn ? (_jsxs("div", { className: "query-builder__projection__calendar__date__column__label__box", children: [_jsx("div", { className: "query-builder__projection__calendar__date__column__prefix", children: "on" }), _jsx("div", { className: "query-builder__projection__calendar__date__column__label", children: getPropertyChainName(aggregateColumnState.calendarFunction.dateColumn, tdsState.queryBuilderState.explorerState
293
+ .humanizePropertyName) })] })) : (_jsx("div", { className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: "Drag and drop date column here" })) }) }), _jsx(CustomSelectorInput, { className: "query-builder__projection__calendar__type", options: calendarTypeOptions, onChange: onCalendarTypeOptionChange, value: selectedCalendarTypeOption ?? calendarTypeOptions[0], placeholder: 'Select calendar type', darkMode: !applicationStore.layoutService
294
+ .TEMPORARY__isLightColorThemeEnabled })] }))] }) }));
158
295
  });
159
296
  export const QueryBuilderTDSPanel = observer((props) => {
160
297
  const applicationStore = useApplicationStore();