@finos/legend-query-builder 0.6.23 → 0.6.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +8 -5
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
  5. package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
  6. package/lib/components/QueryBuilderParametersPanel.js +1 -1
  7. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  8. package/lib/components/QueryBuilderSideBar.js +2 -2
  9. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  10. package/lib/components/QueryBuilder_TestID.d.ts +1 -1
  11. package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
  12. package/lib/components/QueryBuilder_TestID.js +1 -1
  13. package/lib/components/QueryBuilder_TestID.js.map +1 -1
  14. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  15. package/lib/components/explorer/QueryBuilderExplorerPanel.js +21 -3
  16. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  17. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +7 -7
  18. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  19. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
  20. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -3
  21. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  22. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  23. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +9 -7
  24. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  25. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +2 -2
  26. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.d.ts → QueryBuilderTDSWindowPanel.d.ts} +4 -4
  27. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -0
  28. package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.js → QueryBuilderTDSWindowPanel.js} +94 -94
  29. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -0
  30. package/lib/components/filter/QueryBuilderFilterPanel.js +2 -2
  31. package/lib/components/workflows/ClassQueryBuilder.js +1 -1
  32. package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
  33. package/lib/components/workflows/MappingQueryBuilder.js +1 -1
  34. package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
  35. package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -14
  36. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  37. package/lib/graphManager/QueryBuilderHashUtils.js +14 -14
  38. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  39. package/lib/index.css +2 -2
  40. package/lib/index.css.map +1 -1
  41. package/lib/package.json +6 -6
  42. package/lib/stores/QueryBuilderStateBuilder.js +1 -1
  43. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  44. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  45. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +2 -1
  46. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  47. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  48. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +2 -1
  49. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  50. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +6 -6
  51. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  52. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +13 -13
  53. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  54. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
  55. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  56. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +2 -2
  57. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  58. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts → window/QueryBuilderWindowGroupByOperatorLoader.d.ts} +3 -3
  59. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.d.ts.map +1 -0
  60. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js +36 -0
  61. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js.map +1 -0
  62. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +91 -0
  63. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -0
  64. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.js → window/QueryBuilderWindowState.js} +55 -53
  65. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -0
  66. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts → window/QueryBuilderWindowStateBuilder.d.ts} +1 -1
  67. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.d.ts.map +1 -0
  68. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js → window/QueryBuilderWindowStateBuilder.js} +10 -10
  69. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -0
  70. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts → window/QueryBuilderWindowValueSpecificationBuilder.d.ts} +3 -3
  71. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.d.ts.map +1 -0
  72. package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js → window/QueryBuilderWindowValueSpecificationBuilder.js} +5 -5
  73. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -0
  74. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts → window/operators/QueryBuilderTDS_WindowOperator.d.ts} +2 -2
  75. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts.map +1 -0
  76. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js → window/operators/QueryBuilderTDS_WindowOperator.js} +2 -2
  77. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.js.map +1 -0
  78. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts +25 -0
  79. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts.map +1 -0
  80. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js → window/operators/QueryBuilderTDS_WindowOperator_Average.js} +6 -4
  81. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -0
  82. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts} +3 -3
  83. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts.map +1 -0
  84. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js → window/operators/QueryBuilderTDS_WindowOperator_Count.js} +4 -4
  85. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -0
  86. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts} +3 -3
  87. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map +1 -0
  88. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js → window/operators/QueryBuilderTDS_WindowOperator_Max.js} +4 -4
  89. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -0
  90. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts} +3 -3
  91. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts.map +1 -0
  92. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js → window/operators/QueryBuilderTDS_WindowOperator_Min.js} +4 -4
  93. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -0
  94. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts} +3 -3
  95. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts.map +1 -0
  96. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js → window/operators/QueryBuilderTDS_WindowOperator_Sum.js} +4 -4
  97. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -0
  98. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts} +3 -3
  99. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts.map +1 -0
  100. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js} +4 -4
  101. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -0
  102. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts} +3 -3
  103. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts.map +1 -0
  104. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js} +4 -4
  105. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -0
  106. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts} +3 -3
  107. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts.map +1 -0
  108. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js} +4 -4
  109. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -0
  110. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts} +3 -3
  111. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts.map +1 -0
  112. package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js} +4 -4
  113. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -0
  114. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  115. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  116. package/package.json +13 -13
  117. package/src/components/QueryBuilder.tsx +16 -6
  118. package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
  119. package/src/components/QueryBuilderParametersPanel.tsx +1 -1
  120. package/src/components/QueryBuilderSideBar.tsx +2 -2
  121. package/src/components/QueryBuilder_TestID.ts +1 -1
  122. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +37 -2
  123. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +10 -10
  124. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +6 -8
  125. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +34 -14
  126. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +2 -2
  127. package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.tsx → QueryBuilderTDSWindowPanel.tsx} +166 -166
  128. package/src/components/filter/QueryBuilderFilterPanel.tsx +2 -2
  129. package/src/components/workflows/ClassQueryBuilder.tsx +1 -1
  130. package/src/components/workflows/MappingQueryBuilder.tsx +1 -1
  131. package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
  132. package/src/stores/QueryBuilderStateBuilder.ts +1 -1
  133. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +4 -2
  134. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +3 -1
  135. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +16 -16
  136. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
  137. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +2 -2
  138. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.ts +39 -0
  139. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.ts → window/QueryBuilderWindowState.ts} +83 -76
  140. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.ts → window/QueryBuilderWindowStateBuilder.ts} +19 -19
  141. package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.ts → window/QueryBuilderWindowValueSpecificationBuilder.ts} +9 -9
  142. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.ts → window/operators/QueryBuilderTDS_WindowOperator.ts} +1 -1
  143. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.ts → window/operators/QueryBuilderTDS_WindowOperator_Average.ts} +5 -3
  144. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.ts} +3 -3
  145. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.ts} +3 -3
  146. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.ts} +3 -3
  147. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.ts} +3 -3
  148. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.ts} +3 -3
  149. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.ts} +3 -3
  150. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.ts} +3 -3
  151. package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts} +3 -3
  152. package/src/stores/shared/LambdaParameterState.ts +1 -0
  153. package/tsconfig.json +15 -15
  154. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +0 -1
  155. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +0 -1
  156. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +0 -1
  157. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js +0 -36
  158. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +0 -1
  159. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts +0 -91
  160. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +0 -1
  161. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +0 -1
  162. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +0 -1
  163. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +0 -1
  164. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +0 -1
  165. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +0 -1
  166. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts.map +0 -1
  167. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +0 -1
  168. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +0 -1
  169. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +0 -1
  170. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +0 -1
  171. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +0 -1
  172. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +0 -1
  173. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +0 -1
  174. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +0 -1
  175. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +0 -1
  176. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts +0 -25
  177. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +0 -1
  178. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +0 -1
  179. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +0 -1
  180. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map +0 -1
  181. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +0 -1
  182. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map +0 -1
  183. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +0 -1
  184. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js.map +0 -1
  185. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +0 -1
  186. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map +0 -1
  187. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.ts +0 -39
@@ -34,7 +34,7 @@ import {
34
34
  ExpandIcon,
35
35
  CompressIcon,
36
36
  CircleIcon,
37
- BrushIcon,
37
+ TrashIcon,
38
38
  NewFolderIcon,
39
39
  PlusCircleIcon,
40
40
  InfoCircleIcon,
@@ -93,9 +93,9 @@ import {
93
93
  renderPropertyTypeIcon,
94
94
  } from './QueryBuilderTDSComponentHelper.js';
95
95
  import {
96
- type QueryBuilderOLAPColumnDragSource,
97
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
98
- } from '../../stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js';
96
+ type QueryBuilderWindowColumnDragSource,
97
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
98
+ } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
99
99
  import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
100
100
 
101
101
  const QueryBuilderPostFilterConditionContextMenu = observer(
@@ -218,7 +218,7 @@ export const QueryBuilderColumnBadge = observer(
218
218
  () => ({
219
219
  accept: [
220
220
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
221
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
221
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
222
222
  ],
223
223
  drop: (item, monitor): void => {
224
224
  if (!monitor.didDrop()) {
@@ -486,12 +486,12 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
486
486
  (item: QueryBuilderPostFilterDropTarget, type: string): void => {
487
487
  if (
488
488
  type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
489
- type === QUERY_BUILDER_OLAP_COLUMN_DND_TYPE
489
+ type === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE
490
490
  ) {
491
491
  const columnState = (
492
492
  item as
493
493
  | QueryBuilderProjectionColumnDragSource
494
- | QueryBuilderOLAPColumnDragSource
494
+ | QueryBuilderWindowColumnDragSource
495
495
  ).columnState as QueryBuilderTDSColumnState;
496
496
  let conditionState: PostFilterConditionState;
497
497
  try {
@@ -553,7 +553,7 @@ const QueryBuilderPostFilterTreeNodeContainer = observer(
553
553
  accept: [
554
554
  ...Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE),
555
555
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
556
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
556
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
557
557
  ],
558
558
  drop: (item, monitor): void => {
559
559
  if (!monitor.didDrop()) {
@@ -865,7 +865,7 @@ const QueryBuilderPostFilterPanelContent = observer(
865
865
  () => ({
866
866
  accept: [
867
867
  QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
868
- QUERY_BUILDER_OLAP_COLUMN_DND_TYPE,
868
+ QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE,
869
869
  ],
870
870
  drop: (item, monitor): void => {
871
871
  if (!monitor.didDrop()) {
@@ -926,7 +926,7 @@ const QueryBuilderPostFilterPanelContent = observer(
926
926
  tabIndex={-1}
927
927
  title="Cleanup Tree"
928
928
  >
929
- <BrushIcon />
929
+ <TrashIcon />
930
930
  </button>
931
931
  <button
932
932
  className="panel__header__action"
@@ -21,7 +21,7 @@ import {
21
21
  ResizablePanelSplitter,
22
22
  } from '@finos/legend-art';
23
23
  import { QueryBuilderFilterPanel } from '../filter/QueryBuilderFilterPanel.js';
24
- import { QueryBuilderOlapGroupByPanel } from './QueryBuilderOLAPGroupByPanel.js';
24
+ import { QueryBuilderTDSWindowPanel } from './QueryBuilderTDSWindowPanel.js';
25
25
  import { QueryBuilderPostFilterPanel } from './QueryBuilderPostFilterPanel.js';
26
26
  import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
27
27
 
@@ -29,7 +29,7 @@ export const QueryBuilderPostTDSPanel = observer(
29
29
  (props: { tdsState: QueryBuilderTDSState }) => {
30
30
  const { tdsState } = props;
31
31
  const showFilterPanel = tdsState.queryBuilderState.filterState.showPanel;
32
- const showOLAPGroupByPanel = tdsState.showOlapGroupByPanel;
32
+ const showWindowFuncPanel = tdsState.showWindowFuncPanel;
33
33
  const showPostFilterPanel = tdsState.showPostFilterPanel;
34
34
  if (!tdsState.TEMPORARY__showPostFetchStructurePanel) {
35
35
  return null;
@@ -43,17 +43,15 @@ export const QueryBuilderPostTDSPanel = observer(
43
43
  />
44
44
  </ResizablePanel>
45
45
  )}
46
- {showFilterPanel && (showOLAPGroupByPanel || showPostFilterPanel) && (
46
+ {showFilterPanel && (showWindowFuncPanel || showPostFilterPanel) && (
47
47
  <ResizablePanelSplitter />
48
48
  )}
49
- {showOLAPGroupByPanel && (
49
+ {showWindowFuncPanel && (
50
50
  <ResizablePanel minSize={40}>
51
- <QueryBuilderOlapGroupByPanel
52
- olapGroupByState={tdsState.olapGroupByState}
53
- />
51
+ <QueryBuilderTDSWindowPanel tdsWindowState={tdsState.windowState} />
54
52
  </ResizablePanel>
55
53
  )}
56
- {showOLAPGroupByPanel && showPostFilterPanel && (
54
+ {showWindowFuncPanel && showPostFilterPanel && (
57
55
  <ResizablePanelSplitter />
58
56
  )}
59
57
  {showPostFilterPanel && (
@@ -27,6 +27,9 @@ import {
27
27
  ModalFooter,
28
28
  ModalHeader,
29
29
  SortIcon,
30
+ DropdownMenu,
31
+ MenuContent,
32
+ MenuContentItem,
30
33
  } from '@finos/legend-art';
31
34
  import {
32
35
  COLUMN_SORT_TYPE,
@@ -64,16 +67,12 @@ const ColumnSortEditor = observer(
64
67
  }
65
68
  };
66
69
  const sortType = sortState.sortType;
67
- const toggleSortType = (): void => {
68
- sortState.setSortType(
69
- sortType === COLUMN_SORT_TYPE.ASC
70
- ? COLUMN_SORT_TYPE.DESC
71
- : COLUMN_SORT_TYPE.ASC,
72
- );
73
- };
70
+
74
71
  const deleteColumnSort = (): void =>
75
72
  tdsState.resultSetModifierState.deleteSortColumn(sortState);
76
-
73
+ const changeSortBy = (sortOp: COLUMN_SORT_TYPE) => (): void => {
74
+ sortState.setSortType(sortOp);
75
+ };
77
76
  return (
78
77
  <div className="panel__content__form__section__list__item query-builder__projection__options__sort">
79
78
  <CustomSelectorInput
@@ -87,13 +86,34 @@ const ColumnSortEditor = observer(
87
86
  value={value}
88
87
  darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
89
88
  />
90
- <button
91
- className="btn--dark btn--sm query-builder__projection__options__sort__type-btn"
92
- tabIndex={-1}
93
- onClick={toggleSortType}
89
+ <div className="query-builder__projection__options__sort__sortby">
90
+ {sortType.toLowerCase()}
91
+ </div>
92
+ <DropdownMenu
93
+ content={
94
+ <MenuContent>
95
+ {Object.values(COLUMN_SORT_TYPE).map((op) => (
96
+ <MenuContentItem key={op} onClick={changeSortBy(op)}>
97
+ {op.toLowerCase()}
98
+ </MenuContentItem>
99
+ ))}
100
+ </MenuContent>
101
+ }
102
+ menuProps={{
103
+ anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
104
+ transformOrigin: { vertical: 'top', horizontal: 'left' },
105
+ elevation: 7,
106
+ }}
94
107
  >
95
- <SortIcon />
96
- </button>
108
+ <div
109
+ className="query-builder__projection__options__sort__sortby--btn"
110
+ tabIndex={-1}
111
+ title="Choose SortBy Operator..."
112
+ >
113
+ <SortIcon />
114
+ </div>
115
+ </DropdownMenu>
116
+
97
117
  <button
98
118
  className="query-builder__projection__options__sort__remove-btn btn--dark btn--caution"
99
119
  onClick={deleteColumnSort}
@@ -35,7 +35,7 @@ import {
35
35
  OptionsIcon,
36
36
  PlusIcon,
37
37
  PanelContent,
38
- BrushIcon,
38
+ TrashIcon,
39
39
  } from '@finos/legend-art';
40
40
  import {
41
41
  type QueryBuilderExplorerTreeDragSource,
@@ -583,7 +583,7 @@ export const QueryBuilderTDSPanel = observer(
583
583
  : 'Clear all projection columns'
584
584
  }
585
585
  >
586
- <BrushIcon className="query-builder__icon query-builder__icon__query-option--small" />
586
+ <TrashIcon className="query-builder__icon query-builder__icon__query-option--small" />
587
587
  </button>
588
588
  <button
589
589
  className="panel__header__action"