@finos/legend-query-builder 4.10.1 → 4.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. package/lib/__lib__/QueryBuilderDocumentation.d.ts +2 -1
  2. package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderDocumentation.js +1 -0
  4. package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
  5. package/lib/__lib__/QueryBuilderEvent.d.ts +2 -1
  6. package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
  7. package/lib/__lib__/QueryBuilderEvent.js +1 -0
  8. package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
  9. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  10. package/lib/components/QueryBuilderResultPanel.js +165 -57
  11. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  12. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  13. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +2 -1
  14. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  15. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +1 -1
  16. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  17. package/lib/graph/QueryBuilderMetaModelConst.d.ts +22 -1
  18. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  19. package/lib/graph/QueryBuilderMetaModelConst.js +24 -0
  20. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  21. package/lib/index.css +2 -2
  22. package/lib/index.css.map +1 -1
  23. package/lib/index.d.ts +2 -1
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +2 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib/package.json +1 -1
  28. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
  29. package/lib/stores/QueryBuilderPreviewDataHelper.js +2 -1
  30. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
  31. package/lib/stores/QueryBuilderResultState.d.ts +8 -3
  32. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  33. package/lib/stores/QueryBuilderResultState.js +11 -30
  34. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  35. package/lib/stores/QueryBuilderState.d.ts +2 -0
  36. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  37. package/lib/stores/QueryBuilderState.js +8 -0
  38. package/lib/stores/QueryBuilderState.js.map +1 -1
  39. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
  40. package/lib/stores/QueryBuilderTypeaheadHelper.js +1 -1
  41. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
  42. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +4 -1
  43. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
  44. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +37 -3
  45. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
  46. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +1 -4
  47. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
  48. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +1 -5
  49. package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
  50. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
  51. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -1
  52. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js +2 -2
  53. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -1
  54. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +3 -2
  55. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
  56. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +9 -0
  57. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  58. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
  59. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +2 -4
  60. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
  61. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +2 -1
  62. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -1
  63. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -15
  64. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  65. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +3 -44
  66. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  67. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
  68. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +13 -3
  69. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
  70. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  71. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +3 -2
  72. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -1
  74. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
  75. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +2 -1
  76. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  77. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  78. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -2
  79. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  80. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  81. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +3 -10
  82. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  83. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +1 -1
  84. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -1
  85. package/package.json +5 -5
  86. package/src/__lib__/QueryBuilderDocumentation.ts +1 -0
  87. package/src/__lib__/QueryBuilderEvent.ts +1 -0
  88. package/src/components/QueryBuilderResultPanel.tsx +269 -90
  89. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +2 -4
  90. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +1 -1
  91. package/src/graph/QueryBuilderMetaModelConst.ts +25 -0
  92. package/src/index.ts +9 -2
  93. package/src/stores/QueryBuilderPreviewDataHelper.ts +2 -4
  94. package/src/stores/QueryBuilderResultState.ts +17 -34
  95. package/src/stores/QueryBuilderState.ts +12 -0
  96. package/src/stores/QueryBuilderTypeaheadHelper.ts +2 -4
  97. package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +58 -2
  98. package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +1 -5
  99. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts +5 -9
  100. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +16 -2
  101. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -4
  102. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +1 -1
  103. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +1 -50
  104. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +22 -4
  105. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
  106. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
  107. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +5 -5
  108. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +5 -15
  109. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +1 -1
@@ -15,6 +15,7 @@
15
15
  */
16
16
  export declare enum QUERY_BUILDER_DOCUMENTATION_KEY {
17
17
  QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY = "question.how-to-add-parameters-to-query",
18
- QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = "question.how-to-add-constants-to-query"
18
+ QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = "question.how-to-add-constants-to-query",
19
+ QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE = "question.how-to-use-advanced-grid-mode"
19
20
  }
20
21
  //# sourceMappingURL=QueryBuilderDocumentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IAEzC,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;CAClF"}
1
+ {"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IAEzC,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;IACjF,sCAAsC,2CAA2C;CAClF"}
@@ -18,5 +18,6 @@ export var QUERY_BUILDER_DOCUMENTATION_KEY;
18
18
  // questions
19
19
  QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY"] = "question.how-to-add-parameters-to-query";
20
20
  QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY"] = "question.how-to-add-constants-to-query";
21
+ QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE"] = "question.how-to-use-advanced-grid-mode";
21
22
  })(QUERY_BUILDER_DOCUMENTATION_KEY || (QUERY_BUILDER_DOCUMENTATION_KEY = {}));
22
23
  //# sourceMappingURL=QueryBuilderDocumentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACzC,YAAY;IACZ,sHAAmF,CAAA;IACnF,oHAAiF,CAAA;AACnF,CAAC,EAJW,+BAA+B,KAA/B,+BAA+B,QAI1C"}
1
+ {"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,YAAY;IACZ,sHAAmF,CAAA;IACnF,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;AACnF,CAAC,EALW,+BAA+B,KAA/B,+BAA+B,QAK1C"}
@@ -22,7 +22,8 @@ export declare enum QUERY_BUILDER_EVENT {
22
22
  DEBUG_EXECUTION_PLAN__SUCCESS = "query-builder.debug-plan.success",
23
23
  BUILD_EXECUTION_PLAN__SUCCESS = "query-builder.build-plan.success",
24
24
  MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH = "query-builder.mapping-model-coverage-analysis.launch",
25
- MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS = "query-builder.mapping-model-coverage-analysis.success"
25
+ MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS = "query-builder.mapping-model-coverage-analysis.success",
26
+ UNSUPPORTED_QUERY_LAUNCH = "query-builder.unsupported-query.lanuch"
26
27
  }
27
28
  export declare enum QUERY_BUILDER_FILTER_EVENT {
28
29
  FILTER__CREATE__CONDITION__LAUNCH = "query-builder.filter.create-condition.launch",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAEhE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;IAElE,uCAAuC,yDAAyD;IAChG,wCAAwC,0DAA0D;CACnG;AAED,oBAAY,0BAA0B;IACpC,iCAAiC,iDAAiD;IAClF,8CAA8C,4DAA4D;IAC1G,sCAAsC,qDAAqD;IAC3F,6BAA6B,6CAA6C;IAC1E,8BAA8B,8CAA8C;IAC5E,8BAA8B,8CAA8C;IAC5E,4BAA4B,4CAA4C;CACzE;AAED,oBAAY,+BAA+B;IACzC,iCAAiC,sDAAsD;IACvF,8CAA8C,iEAAiE;IAC/G,sCAAsC,0DAA0D;IAChG,6BAA6B,kDAAkD;IAC/E,8BAA8B,mDAAmD;IACjF,8BAA8B,mDAAmD;IACjF,4BAA4B,iDAAiD;CAC9E"}
1
+ {"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAEhE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;IAElE,uCAAuC,yDAAyD;IAChG,wCAAwC,0DAA0D;IAClG,wBAAwB,2CAA2C;CACpE;AAED,oBAAY,0BAA0B;IACpC,iCAAiC,iDAAiD;IAClF,8CAA8C,4DAA4D;IAC1G,sCAAsC,qDAAqD;IAC3F,6BAA6B,6CAA6C;IAC1E,8BAA8B,8CAA8C;IAC5E,8BAA8B,8CAA8C;IAC5E,4BAA4B,4CAA4C;CACzE;AAED,oBAAY,+BAA+B;IACzC,iCAAiC,sDAAsD;IACvF,8CAA8C,iEAAiE;IAC/G,sCAAsC,0DAA0D;IAChG,6BAA6B,kDAAkD;IAC/E,8BAA8B,mDAAmD;IACjF,8BAA8B,mDAAmD;IACjF,4BAA4B,iDAAiD;CAC9E"}
@@ -24,6 +24,7 @@ export var QUERY_BUILDER_EVENT;
24
24
  QUERY_BUILDER_EVENT["BUILD_EXECUTION_PLAN__SUCCESS"] = "query-builder.build-plan.success";
25
25
  QUERY_BUILDER_EVENT["MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH"] = "query-builder.mapping-model-coverage-analysis.launch";
26
26
  QUERY_BUILDER_EVENT["MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS"] = "query-builder.mapping-model-coverage-analysis.success";
27
+ QUERY_BUILDER_EVENT["UNSUPPORTED_QUERY_LAUNCH"] = "query-builder.unsupported-query.lanuch";
27
28
  })(QUERY_BUILDER_EVENT || (QUERY_BUILDER_EVENT = {}));
28
29
  export var QUERY_BUILDER_FILTER_EVENT;
29
30
  (function (QUERY_BUILDER_FILTER_EVENT) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAYX;AAZD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAEhE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;IAElE,uHAAgG,CAAA;IAChG,yHAAkG,CAAA;AACpG,CAAC,EAZW,mBAAmB,KAAnB,mBAAmB,QAY9B;AAED,MAAM,CAAN,IAAY,0BAQX;AARD,WAAY,0BAA0B;IACpC,gHAAkF,CAAA;IAClF,wIAA0G,CAAA;IAC1G,yHAA2F,CAAA;IAC3F,wGAA0E,CAAA;IAC1E,0GAA4E,CAAA;IAC5E,0GAA4E,CAAA;IAC5E,sGAAwE,CAAA;AAC1E,CAAC,EARW,0BAA0B,KAA1B,0BAA0B,QAQrC;AAED,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,0HAAuF,CAAA;IACvF,kJAA+G,CAAA;IAC/G,mIAAgG,CAAA;IAChG,kHAA+E,CAAA;IAC/E,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;IACjF,gHAA6E,CAAA;AAC/E,CAAC,EARW,+BAA+B,KAA/B,+BAA+B,QAQ1C"}
1
+ {"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAEhE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;IAElE,uHAAgG,CAAA;IAChG,yHAAkG,CAAA;IAClG,0FAAmE,CAAA;AACrE,CAAC,EAbW,mBAAmB,KAAnB,mBAAmB,QAa9B;AAED,MAAM,CAAN,IAAY,0BAQX;AARD,WAAY,0BAA0B;IACpC,gHAAkF,CAAA;IAClF,wIAA0G,CAAA;IAC1G,yHAA2F,CAAA;IAC3F,wGAA0E,CAAA;IAC1E,0GAA4E,CAAA;IAC5E,0GAA4E,CAAA;IAC5E,sGAAwE,CAAA;AAC1E,CAAC,EARW,0BAA0B,KAA1B,0BAA0B,QAQrC;AAED,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,0HAAuF,CAAA;IACvF,kJAA+G,CAAA;IAC/G,mIAAgG,CAAA;IAChG,kHAA+E,CAAA;IAC/E,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;IACjF,gHAA6E,CAAA;AAC/E,CAAC,EARW,+BAA+B,KAA/B,+BAA+B,QAQ1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA4ExE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAsrBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsZjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA+BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAmFxE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAmzBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmcjD,CAAC"}
@@ -14,13 +14,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, clsx, PauseCircleIcon, ExclamationTriangleIcon, PanelContent, MenuContentDivider, Button, SQLIcon, Dialog, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelDivider, } from '@finos/legend-art';
17
+ import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, clsx, PauseCircleIcon, ExclamationTriangleIcon, PanelContent, MenuContentDivider, Button, SQLIcon, Dialog, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelDivider, SquareIcon, CheckSquareIcon, } from '@finos/legend-art';
18
18
  import { format as formatSQL } from 'sql-formatter';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import { flowResult } from 'mobx';
21
- import { InstanceValue, extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, EnumValueInstanceValue, EnumValueExplicitReference, RelationalExecutionActivities, } from '@finos/legend-graph';
21
+ import { InstanceValue, extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, EnumValueInstanceValue, EnumValueExplicitReference, RelationalExecutionActivities, getTDSRowRankByColumnInAsc, PRIMITIVE_TYPE, } from '@finos/legend-graph';
22
22
  import { ActionAlertActionType, ActionAlertType, DEFAULT_TAB_SIZE, useApplicationStore, } from '@finos/legend-application';
23
- import { assertErrorThrown, guaranteeNonNullable, prettyDuration, filterByType, isValidURL, isString, isNumber, } from '@finos/legend-shared';
23
+ import { assertErrorThrown, guaranteeNonNullable, isBoolean, prettyDuration, filterByType, isValidURL, isString, isNumber, } from '@finos/legend-shared';
24
24
  import { forwardRef, useRef, useState } from 'react';
25
25
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
26
26
  import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, PostFilterValueSpecConditionValueState, } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
@@ -36,6 +36,8 @@ import { ExecutionPlanViewer } from './execution-plan/ExecutionPlanViewer.js';
36
36
  import { QueryBuilderPostFilterOperator_IsEmpty, QueryBuilderPostFilterOperator_IsNotEmpty, } from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js';
37
37
  import { QueryUsageViewer } from './QueryUsageViewer.js';
38
38
  import { DEFAULT_LOCALE } from '../graph-manager/QueryBuilderConst.js';
39
+ import { DocumentationLink } from '@finos/legend-lego/application';
40
+ import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
39
41
  export const tryToFormatSql = (sql) => {
40
42
  try {
41
43
  const formattedSql = formatSQL(sql, { language: 'mysql' });
@@ -193,29 +195,16 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
193
195
  });
194
196
  };
195
197
  const handleCopyCellValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(data?.value?.toString() ?? ''));
196
- const findSelectedCellRowData = () => {
198
+ const findRowFromRowIndex = (rowIndex) => {
197
199
  if (!tdsState.queryBuilderState.resultState.executionResult ||
198
200
  !(tdsState.queryBuilderState.resultState.executionResult instanceof
199
201
  TDSExecutionResult)) {
200
- return '';
202
+ return [''];
201
203
  }
202
- const rowData = tdsState.queryBuilderState.resultState.rowData.find((rData) => rData.rowNumber ===
203
- tdsState.queryBuilderState.resultState.selectedCells[0]?.coordinates
204
- .rowIndex);
205
- // try to get the entire row value separated by comma
206
- // rowData is in format of {columnName: value, columnName1: value, ...., rowNumber:value}
207
- const valueArr = [];
208
- if (rowData) {
209
- Object.entries(rowData).forEach((entry) => {
210
- if (entry[0] !== 'rowNumber') {
211
- valueArr.push(entry[1]);
212
- }
213
- });
214
- return valueArr.join(',');
215
- }
216
- return '';
204
+ return (tdsState.queryBuilderState.resultState.executionResult.result.rows[rowIndex]?.values ?? ['']);
217
205
  };
218
- const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(findSelectedCellRowData()));
206
+ const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(findRowFromRowIndex(tdsState.queryBuilderState.resultState.selectedCells[0]?.coordinates
207
+ .rowIndex ?? 0).toString()));
219
208
  return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
220
209
  filterByOrOutValues(true);
221
210
  }, children: "Filter By" }), _jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
@@ -237,28 +226,45 @@ const QueryResultCellRenderer = observer((params) => {
237
226
  };
238
227
  const cellValueUrlLink = isString(cellValue) && isValidURL(cellValue) ? cellValue : undefined;
239
228
  const columnName = params.column?.getColId() ?? '';
240
- const findCoordinatesFromResultValue = (colName, rowNumber) => {
241
- const colIndex = tdsExecutionResult.result.columns.findIndex((col) => col === colName);
229
+ const findCoordinatesFromResultValue = (colId, rowNumber) => {
230
+ const colIndex = tdsExecutionResult.result.columns.findIndex((col) => col === colId);
242
231
  return { rowIndex: rowNumber, colIndex: colIndex };
243
232
  };
244
- const currentCellCoordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
233
+ const currentCellCoordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
245
234
  const cellInFilteredResults = resultState.selectedCells.some((result) => result.coordinates.colIndex === currentCellCoordinates.colIndex &&
246
235
  result.coordinates.rowIndex === currentCellCoordinates.rowIndex);
247
- const findColumnNameFromColumnIndex = (colIndex) => {
236
+ const findColumnFromCoordinates = (colIndex) => {
248
237
  if (!resultState.executionResult ||
249
238
  !(resultState.executionResult instanceof TDSExecutionResult)) {
250
239
  return undefined;
251
240
  }
252
241
  return resultState.executionResult.result.columns[colIndex];
253
242
  };
254
- const findResultValueFromCoordinates = (rowIndex, colName) => resultState.rowData.find((data) => data.rowNumber === rowIndex)[colName];
243
+ const findResultValueFromCoordinates = (resultCoordinate) => {
244
+ const rowIndex = resultCoordinate[0];
245
+ const colIndex = resultCoordinate[1];
246
+ if (!resultState.executionResult ||
247
+ !(resultState.executionResult instanceof TDSExecutionResult)) {
248
+ return undefined;
249
+ }
250
+ if (params.columnApi.getColumnState()[colIndex]?.sort === 'asc') {
251
+ resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(a, b, colIndex));
252
+ }
253
+ else if (params.columnApi.getColumnState()[colIndex]?.sort === 'desc') {
254
+ resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(b, a, colIndex));
255
+ }
256
+ return resultState.executionResult.result.rows[rowIndex]?.values[colIndex];
257
+ };
255
258
  const isCoordinatesSelected = (resultCoordinate) => resultState.selectedCells.some((cell) => cell.coordinates.rowIndex === resultCoordinate.rowIndex &&
256
259
  cell.coordinates.colIndex === resultCoordinate.colIndex);
257
260
  const mouseDown = (event) => {
258
261
  event.preventDefault();
259
262
  if (event.shiftKey) {
260
- const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
261
- const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
263
+ const coordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
264
+ const actualValue = findResultValueFromCoordinates([
265
+ coordinates.rowIndex,
266
+ coordinates.colIndex,
267
+ ]);
262
268
  resultState.addSelectedCell({
263
269
  value: actualValue,
264
270
  columnName: columnName,
@@ -269,8 +275,11 @@ const QueryResultCellRenderer = observer((params) => {
269
275
  if (event.button === 0) {
270
276
  resultState.setIsSelectingCells(true);
271
277
  resultState.setSelectedCells([]);
272
- const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
273
- const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
278
+ const coordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
279
+ const actualValue = findResultValueFromCoordinates([
280
+ coordinates.rowIndex,
281
+ coordinates.colIndex,
282
+ ]);
274
283
  resultState.setSelectedCells([
275
284
  {
276
285
  value: actualValue,
@@ -281,10 +290,13 @@ const QueryResultCellRenderer = observer((params) => {
281
290
  resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
282
291
  }
283
292
  if (event.button === 2) {
284
- const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
293
+ const coordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
285
294
  const isInSelected = isCoordinatesSelected(coordinates);
286
295
  if (!isInSelected) {
287
- const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
296
+ const actualValue = findResultValueFromCoordinates([
297
+ coordinates.rowIndex,
298
+ coordinates.colIndex,
299
+ ]);
288
300
  resultState.setSelectedCells([
289
301
  {
290
302
  value: actualValue,
@@ -309,7 +321,7 @@ const QueryResultCellRenderer = observer((params) => {
309
321
  return;
310
322
  }
311
323
  const firstCorner = results.coordinates;
312
- const secondCorner = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
324
+ const secondCorner = findCoordinatesFromResultValue(columnName, params.rowIndex);
313
325
  resultState.setSelectedCells([results]);
314
326
  const minRow = Math.min(firstCorner.rowIndex, secondCorner.rowIndex);
315
327
  const minCol = Math.min(firstCorner.colIndex, secondCorner.colIndex);
@@ -317,10 +329,10 @@ const QueryResultCellRenderer = observer((params) => {
317
329
  const maxCol = Math.max(firstCorner.colIndex, secondCorner.colIndex);
318
330
  for (let x = minRow; x <= maxRow; x++) {
319
331
  for (let y = minCol; y <= maxCol; y++) {
320
- const actualValue = findResultValueFromCoordinates(x, findColumnNameFromColumnIndex(y));
332
+ const actualValue = findResultValueFromCoordinates([x, y]);
321
333
  const valueAndColumnId = {
322
334
  value: actualValue,
323
- columnName: findColumnNameFromColumnIndex(y),
335
+ columnName: findColumnFromCoordinates(y),
324
336
  coordinates: {
325
337
  rowIndex: x,
326
338
  colIndex: y,
@@ -344,38 +356,124 @@ const QueryResultCellRenderer = observer((params) => {
344
356
  'query-builder__result__values__table__cell--active': cellInFilteredResults,
345
357
  }), onMouseDown: (event) => mouseDown(event), onMouseUp: (event) => mouseUp(event), onMouseOver: (event) => mouseOver(event), children: cellValueUrlLink ? (_jsx("a", { href: cellValueUrlLink, target: "_blank", rel: "noreferrer", children: cellValueUrlLink })) : (_jsx("span", { children: formattedCellValue() })) }) }));
346
358
  });
359
+ const getColumnCustomizations = (result, columnName) => {
360
+ const columnType = result.builder.columns.find((col) => col.name === columnName)?.type;
361
+ switch (columnType) {
362
+ case PRIMITIVE_TYPE.STRING:
363
+ return {
364
+ filter: 'agTextColumnFilter',
365
+ allowedAggFuncs: ['count'],
366
+ };
367
+ case PRIMITIVE_TYPE.DATE:
368
+ case PRIMITIVE_TYPE.DATETIME:
369
+ case PRIMITIVE_TYPE.STRICTDATE:
370
+ return {
371
+ filter: 'agDateColumnFilter',
372
+ allowedAggFuncs: ['count'],
373
+ };
374
+ case PRIMITIVE_TYPE.DECIMAL:
375
+ case PRIMITIVE_TYPE.INTEGER:
376
+ case PRIMITIVE_TYPE.FLOAT:
377
+ return {
378
+ filter: 'agNumberColumnFilter',
379
+ allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
380
+ };
381
+ default:
382
+ return {
383
+ allowedAggFuncs: ['count'],
384
+ };
385
+ }
386
+ };
347
387
  const QueryBuilderGridResult = observer((props) => {
348
388
  const { executionResult, queryBuilderState } = props;
389
+ const [columnAPi, setColumnApi] = useState(undefined);
349
390
  const resultState = queryBuilderState.resultState;
350
- return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: _jsx(DataGrid, { rowData: queryBuilderState.resultState.getRowData(), onSortChanged: (params) => {
351
- const sortedData = [];
352
- params.api.forEachNodeAfterFilterAndSort((node, index) => {
353
- node.rowIndex = index;
354
- // rowNumber has to be manually updated after sorting the column
355
- node.data.rowNumber = index;
356
- sortedData.push(node.data);
357
- });
358
- queryBuilderState.resultState.setRowData(sortedData);
391
+ const isAdvancedModeEnabled = queryBuilderState.isAdvancedModeEnabled;
392
+ const colDefs = isAdvancedModeEnabled
393
+ ? executionResult.result.columns.map((colName) => {
394
+ const col = {
395
+ minWidth: 50,
396
+ sortable: true,
397
+ resizable: true,
398
+ field: colName,
399
+ flex: 1,
400
+ enablePivot: true,
401
+ enableRowGroup: true,
402
+ enableValue: true,
403
+ ...getColumnCustomizations(executionResult, colName),
404
+ };
405
+ const persistedColumn = resultState.gridConfig.columns.find((c) => c.colId === colName);
406
+ if (persistedColumn) {
407
+ if (persistedColumn.width) {
408
+ col.width = persistedColumn.width;
409
+ }
410
+ col.pinned = persistedColumn.pinned ?? null;
411
+ col.rowGroup = persistedColumn.rowGroup ?? false;
412
+ col.rowGroupIndex = persistedColumn.rowGroupIndex ?? null;
413
+ col.aggFunc = persistedColumn.aggFunc ?? null;
414
+ col.pivot = persistedColumn.pivot ?? false;
415
+ col.hide = persistedColumn.hide ?? false;
416
+ }
417
+ return col;
418
+ })
419
+ : executionResult.result.columns.map((colName) => ({
420
+ minWidth: 50,
421
+ sortable: true,
422
+ resizable: true,
423
+ field: colName,
424
+ flex: 1,
425
+ cellRenderer: QueryResultCellRenderer,
426
+ cellRendererParams: {
427
+ resultState: resultState,
428
+ tdsExecutionResult: executionResult,
429
+ },
430
+ }));
431
+ const sideBar = isAdvancedModeEnabled ? ['columns', 'filters'] : null;
432
+ const rowData = executionResult.result.rows.map((_row, rowIdx) => {
433
+ const row = {};
434
+ const cols = executionResult.result.columns;
435
+ _row.values.forEach((value, colIdx) => {
436
+ // `ag-grid` shows `false` value as empty string so we have
437
+ // call `.toString()` to avoid this behavior.
438
+ // See https://github.com/finos/legend-studio/issues/1008
439
+ row[cols[colIdx]] = isBoolean(value) ? String(value) : value;
440
+ });
441
+ row.rowNumber = rowIdx;
442
+ return row;
443
+ });
444
+ const onSaveGridColumnState = () => {
445
+ if (!columnAPi) {
446
+ return;
447
+ }
448
+ resultState.setGridConfig({
449
+ columns: columnAPi.getColumnState(),
450
+ isPivotModeEnabled: columnAPi.isPivotMode(),
451
+ });
452
+ };
453
+ return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: isAdvancedModeEnabled ? (_jsx(DataGrid, { rowData: rowData, onGridReady: (params) => {
454
+ setColumnApi(params.columnApi);
455
+ params.columnApi.setPivotMode(resultState.gridConfig.isPivotModeEnabled);
359
456
  }, gridOptions: {
360
457
  suppressScrollOnNewData: true,
361
458
  getRowId: (data) => data.data.rowNumber,
459
+ rowSelection: 'multiple',
460
+ pivotPanelShow: 'always',
461
+ rowGroupPanelShow: 'always',
362
462
  },
363
463
  // NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
364
464
  // See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
365
465
  onRowDataUpdated: (params) => {
366
466
  params.api.refreshCells({ force: true });
367
- }, suppressFieldDotNotation: true, columnDefs: executionResult.result.columns.map((colName) => ({
368
- minWidth: 50,
369
- sortable: true,
370
- resizable: true,
371
- field: colName,
372
- flex: 1,
373
- cellRenderer: QueryResultCellRenderer,
374
- cellRendererParams: {
375
- resultState: resultState,
376
- tdsExecutionResult: executionResult,
377
- },
378
- })) }) }) }));
467
+ }, suppressFieldDotNotation: true, suppressContextMenu: !isAdvancedModeEnabled, columnDefs: colDefs, sideBar: sideBar, onColumnVisible: onSaveGridColumnState, onColumnPinned: onSaveGridColumnState, onColumnResized: onSaveGridColumnState, onColumnRowGroupChanged: onSaveGridColumnState, onColumnValueChanged: onSaveGridColumnState, onColumnPivotChanged: onSaveGridColumnState, onColumnPivotModeChanged: onSaveGridColumnState })) : (_jsx(DataGrid, { rowData: rowData, gridOptions: {
468
+ suppressScrollOnNewData: true,
469
+ getRowId: (data) => data.data.rowNumber,
470
+ rowSelection: 'multiple',
471
+ },
472
+ // NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
473
+ // See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
474
+ onRowDataUpdated: (params) => {
475
+ params.api.refreshCells({ force: true });
476
+ }, suppressFieldDotNotation: true, suppressContextMenu: !isAdvancedModeEnabled, columnDefs: colDefs })) }) }));
379
477
  });
380
478
  const QueryBuilderResultValues = observer((props) => {
381
479
  const { executionResult, queryBuilderState } = props;
@@ -442,6 +540,9 @@ export const QueryBuilderResultPanel = observer((props) => {
442
540
  const allValidationIssues = queryBuilderState.allValidationIssues;
443
541
  const isSupportedQueryValid = allValidationIssues.length === 0;
444
542
  const isQueryValid = !queryBuilderState.isQuerySupported || isSupportedQueryValid;
543
+ const isQueryValidForAdvancedMode = isQueryValid &&
544
+ queryBuilderState.fetchStructureState.implementation instanceof
545
+ QueryBuilderTDSState;
445
546
  const runQuery = () => {
446
547
  resultState.setSelectedCells([]);
447
548
  resultState.pressedRunQuery.inProgress();
@@ -457,6 +558,7 @@ export const QueryBuilderResultPanel = observer((props) => {
457
558
  const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
458
559
  const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
459
560
  const allowSettingPreviewLimit = queryBuilderState.isQuerySupported;
561
+ const allowSettingAdvancedMode = queryBuilderState.isQuerySupported;
460
562
  const copyExpression = (value) => {
461
563
  applicationStore.clipboardService
462
564
  .copyTextToClipboard(value)
@@ -507,7 +609,13 @@ export const QueryBuilderResultPanel = observer((props) => {
507
609
  inputRef.current?.select();
508
610
  }
509
611
  };
510
- return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSqls && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSqls && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS, className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { ref: inputRef, className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown, disabled: !isQueryValid })] })), _jsx("div", { className: "query-builder__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
612
+ const toggleIsAdvancedModeEnabled = () => {
613
+ resultState.setExecutionResult(undefined);
614
+ queryBuilderState.setIsAdvancedModeEnabled(!queryBuilderState.isAdvancedModeEnabled);
615
+ };
616
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSqls && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSqls && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS, className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingAdvancedMode && (_jsxs("div", { className: "query-builder__result__advanced__mode", children: [_jsxs("div", { className: "query-builder__result__advanced__mode__label", children: ["Advanced Mode", _jsx(DocumentationLink, { title: "The grid in advanced mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory", documentationKey: QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE })] }), _jsx("button", { className: clsx('query-builder__result__advanced__mode__toggler__btn', {
617
+ 'query-builder__result__advanced__mode__toggler__btn--toggled': queryBuilderState.isAdvancedModeEnabled,
618
+ }), disabled: !isQueryValidForAdvancedMode, onClick: toggleIsAdvancedModeEnabled, tabIndex: -1, children: queryBuilderState.isAdvancedModeEnabled ? (_jsx(CheckSquareIcon, {})) : (_jsx(SquareIcon, {})) })] })), allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { ref: inputRef, className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown, disabled: !isQueryValid })] })), _jsx("div", { className: "query-builder__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
511
619
  ? `Query is not valid:\n${allValidationIssues
512
620
  .map((issue) => `\u2022 ${issue}`)
513
621
  .join('\n')}`
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,sBA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AAC,qDAAqD,EAC/D,OAAO,EAAE,GAAS,EAAE,CAClB,WAAW,CAAC,2BAA2B,CAAC,IAAI,CAAC,EAE/C,QAAQ,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,UAAU,oCAG3C,IACN,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,EACd,WAAW,CAAC,wBAAwB,IAAI,CACvC,KAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI,CAC/C,IACG,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa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C,WAAW,EAAE,WAAW,GAAI,CAC/C,IACG,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0BH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAuJrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CA+E3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultModifierPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAwJrG,eAAO,MAAM,wBAAwB,WAC3B;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CA+E3C,CAAC"}
@@ -16,9 +16,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  */
17
17
  import { observer } from 'mobx-react-lite';
18
18
  import { clsx, Dialog, CustomSelectorInput, CheckSquareIcon, SquareIcon, TimesIcon, Modal, ModalBody, ModalFooter, ModalHeader, SortIcon, DropdownMenu, MenuContent, MenuContentItem, ModalFooterButton, } from '@finos/legend-art';
19
- import { COLUMN_SORT_TYPE, SortColumnState, } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
19
+ import { SortColumnState } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
20
20
  import { guaranteeNonNullable } from '@finos/legend-shared';
21
21
  import { useApplicationStore } from '@finos/legend-application';
22
+ import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
22
23
  const ColumnSortEditor = observer((props) => {
23
24
  const { tdsState, sortState } = props;
24
25
  const applicationStore = useApplicationStore();
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultModifierPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,eAAe,GAChB,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIhE,MAAM,gBAAgB,GAAG,QAAQ,CAC/B,CAAC,KAAqE,EAAE,EAAE;IACxE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,Q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,EAAE,cAAc,aAEvB,iBACE,SAAS,EAAE,IAAI,CACb,6CAA6C,EAC7C;oDACE,sDAAsD,EACpD,QAAQ;iDACX,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,YAEX,QAAQ,CAAC,CAAC,CAAC,KAAC,eAAe,KAAG,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG,GACzC,EACT,cAAK,SAAS,EAAC,gDAAgD,uDAEzD,IACF,IACF,EACN,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cAAK,SAAS,EAAC,8CAA8C,8BAEvD,EACN,cAAK,SAAS,EAAC,+CAA+C,iFAGxD,EACN,gBACE,SAAS,EAAC,kFAAkF,EAC5F,UAAU,EAAE,KAAK,EACjB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,YAAY,IAAI,EAAE,EACzB,QAAQ,EAAE,WAAW,GACrB,IACE,IACF,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,GAAG,GACtC,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultModifierPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,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