@finos/legend-query-builder 4.1.3 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderTextEditor.js +3 -1
  3. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  4. package/lib/components/QueryBuilder_LegendApplicationPlugin.js +1 -1
  5. package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -1
  6. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
  7. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +2 -1
  8. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
  9. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  10. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +2 -1
  11. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  12. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  13. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +51 -38
  14. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  15. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  16. package/lib/components/filter/QueryBuilderFilterPanel.js +2 -1
  17. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  18. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  19. package/lib/components/shared/CustomDatePicker.js +1 -2
  20. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  21. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  22. package/lib/components/shared/LambdaEditor.js +10 -3
  23. package/lib/components/shared/LambdaEditor.js.map +1 -1
  24. package/lib/graph-manager/QueryBuilder_GraphManagerPreset.js +1 -1
  25. package/lib/graph-manager/QueryBuilder_GraphManagerPreset.js.map +1 -1
  26. package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.js +1 -1
  27. package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.js.map +1 -1
  28. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +1 -1
  29. package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  30. package/lib/index.css +2 -2
  31. package/lib/index.css.map +1 -1
  32. package/lib/package.json +6 -6
  33. package/lib/stores/QueryBuilderTextEditorState.d.ts +3 -1
  34. package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
  35. package/lib/stores/QueryBuilderTextEditorState.js +2 -2
  36. package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
  37. package/lib/stores/QueryLoaderState.d.ts +2 -0
  38. package/lib/stores/QueryLoaderState.d.ts.map +1 -1
  39. package/lib/stores/QueryLoaderState.js +7 -3
  40. package/lib/stores/QueryLoaderState.js.map +1 -1
  41. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +0 -3
  42. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  43. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -12
  44. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  45. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  46. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  47. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
  48. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
  49. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
  50. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
  51. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  52. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  53. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +4 -1
  54. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  55. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +5 -3
  56. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  57. package/lib/stores/shared/LambdaEditorState.d.ts +7 -2
  58. package/lib/stores/shared/LambdaEditorState.d.ts.map +1 -1
  59. package/lib/stores/shared/LambdaEditorState.js +7 -2
  60. package/lib/stores/shared/LambdaEditorState.js.map +1 -1
  61. package/package.json +14 -14
  62. package/src/components/QueryBuilderTextEditor.tsx +3 -1
  63. package/src/components/QueryBuilder_LegendApplicationPlugin.ts +1 -1
  64. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +2 -3
  65. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +5 -1
  66. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +117 -64
  67. package/src/components/filter/QueryBuilderFilterPanel.tsx +5 -1
  68. package/src/components/shared/CustomDatePicker.tsx +3 -4
  69. package/src/components/shared/LambdaEditor.tsx +10 -3
  70. package/src/graph-manager/QueryBuilder_GraphManagerPreset.ts +1 -1
  71. package/src/graph-manager/QueryBuilder_PureGraphManagerPlugin.ts +1 -1
  72. package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +1 -1
  73. package/src/stores/QueryBuilderTextEditorState.ts +4 -2
  74. package/src/stores/QueryLoaderState.ts +11 -1
  75. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +3 -17
  76. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +1 -3
  77. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +1 -3
  78. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +1 -3
  79. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +1 -3
  80. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +8 -3
  81. package/src/stores/shared/LambdaEditorState.ts +12 -5
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionColumnState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAMhB,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,mCAAmC,EACpC,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,IAAI,EACT,KAAK,kBAAkB,EAOvB,SAAS,EAIV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,eAAO,MAAM,wCAAwC,sBAAsB,CAAC;AAE5E,MAAM,WAAW,sCAAsC;IACrD,WAAW,EAAE,iCAAiC,CAAC;CAChD;AAED,8BAAsB,iCACpB,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;gBAEP,QAAQ,EAAE,oBAAoB,EAAE,UAAU,EAA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E,IAAI,GAAG,SAAS,GAAG,IAAI;IAI1C;;;;OAIG;IACF,+BAA+B,IAAI,WAAW,CAAC,IAAI,CAAC;IAqC5C,aAAa,IAAI,IAAI,GAAG,SAAS;IAI1C,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderProjectionColumnState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAMhB,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,wCAAwC,EAE9C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,mCAAmC,EACpC,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,IAAI,EACT,KAAK,kBAAkB,EAOvB,SAAS,EAIV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,eAAO,MAAM,wCAAwC,sBAAsB,CAAC;AAE5E,MAAM,WAAW,sCAAsC;IACrD,WAAW,EAAE,iCAAiC,CAAC;CAChD;AAED,8BAAsB,iCACpB,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;gBAEP,QAAQ,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM;IAa9D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC;AAED,qBAAa,uCACX,SAAQ,iCACR,YAAW,QAAQ;IA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AI,GAAG,SAAS,GAAG,IAAI;IAI1C;;;;OAIG;IACF,+BAA+B,IAAI,WAAW,CAAC,IAAI,CAAC;IAqC5C,aAAa,IAAI,IAAI,GAAG,SAAS;IAI1C,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
@@ -125,17 +125,19 @@ class QueryBuilderDerivationProjectionLambdaState extends LambdaEditorState {
125
125
  this.derivationProjectionColumnState.setLambda(emptyLambda);
126
126
  }
127
127
  }
128
- *convertLambdaObjectToGrammarString(pretty) {
128
+ *convertLambdaObjectToGrammarString(options) {
129
129
  if (this.derivationProjectionColumnState.lambda.body) {
130
130
  try {
131
131
  const lambdas = new Map();
132
132
  lambdas.set(this.lambdaId, new RawLambda(this.derivationProjectionColumnState.lambda.parameters, this.derivationProjectionColumnState.lambda.body));
133
- const isolatedLambdas = (yield this.queryBuilderState.graphManagerState.graphManager.lambdasToPureCode(lambdas, pretty));
133
+ const isolatedLambdas = (yield this.queryBuilderState.graphManagerState.graphManager.lambdasToPureCode(lambdas, options?.pretty));
134
134
  const grammarText = isolatedLambdas.get(this.lambdaId);
135
135
  this.setLambdaString(grammarText !== undefined
136
136
  ? this.extractLambdaString(grammarText)
137
137
  : '');
138
- this.clearErrors();
138
+ this.clearErrors({
139
+ preserveCompilationError: options?.preserveCompilationError,
140
+ });
139
141
  }
140
142
  catch (error) {
141
143
  assertErrorThrown(error);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionColumnState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC1E,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EAEpB,SAAS,GACV,MAAM,sBAAsB,CAAC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C,gFAAgF,CACjF,CAAC;QACF,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;IAEQ,aAAa;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,kCAAkC;YACrE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -29,12 +29,17 @@ export declare abstract class LambdaEditorState {
29
29
  abstract get lambdaId(): string;
30
30
  get fullLambdaString(): string;
31
31
  setLambdaString(val: string): void;
32
- clearErrors(): void;
32
+ clearErrors(options?: {
33
+ preserveCompilationError?: boolean | undefined;
34
+ }): void;
33
35
  setCompilationError(compilationError: CompilationError | undefined): void;
34
36
  setParserError(parserError: ParserError | undefined): void;
35
37
  processSourceInformation(sourceInformation: SourceInformation): SourceInformation;
36
38
  extractLambdaString(fullLambdaString: string): string;
37
39
  abstract convertLambdaGrammarStringToObject(): GeneratorFn<void>;
38
- abstract convertLambdaObjectToGrammarString(pretty: boolean): GeneratorFn<void>;
40
+ abstract convertLambdaObjectToGrammarString(options?: {
41
+ pretty?: boolean | undefined;
42
+ preserveCompilationError?: boolean | undefined;
43
+ }): GeneratorFn<void>;
39
44
  }
40
45
  //# sourceMappingURL=LambdaEditorState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,WAAW,EAAQ,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,8BAAsB,iBAAiB;IACrC,QAAQ,CA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gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;gBAEpC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IAmBtD,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAGhC,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,WAAW,CAAC,OAAO,CAAC,EAAE;QACpB,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,IAAI;IASR,mBAAmB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,GAAG,IAAI;IAUzE,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAU1D,wBAAwB,CACtB,iBAAiB,EAAE,iBAAiB,GACnC,iBAAiB;IAcpB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM;IAOrD,QAAQ,CAAC,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IAChE,QAAQ,CAAC,kCAAkC,CAAC,OAAO,CAAC,EAAE;QACpD,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;CACtB"}
@@ -50,9 +50,14 @@ export class LambdaEditorState {
50
50
  setLambdaString(val) {
51
51
  this.lambdaString = val;
52
52
  }
53
- clearErrors() {
54
- this.setCompilationError(undefined);
53
+ clearErrors(options) {
55
54
  this.setParserError(undefined);
55
+ if (options?.preserveCompilationError && this.compilationError) {
56
+ this.compilationError.sourceInformation = undefined;
57
+ }
58
+ else {
59
+ this.setCompilationError(undefined);
60
+ }
56
61
  }
57
62
  setCompilationError(compilationError) {
58
63
  // account for the lambda prefix offset in source information
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaEditorState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaEditorState.ts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B,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EACtE,gBAAgB,CAAC,MAAM,CACxB,CAAC;IACJ,CAAC;CAOF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,15 +42,15 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.27",
46
- "@finos/legend-art": "7.0.27",
47
- "@finos/legend-graph": "30.0.12",
48
- "@finos/legend-lego": "1.1.4",
49
- "@finos/legend-server-depot": "6.0.16",
50
- "@finos/legend-shared": "10.0.15",
51
- "@finos/legend-storage": "3.0.65",
45
+ "@finos/legend-application": "15.0.29",
46
+ "@finos/legend-art": "7.0.29",
47
+ "@finos/legend-graph": "30.0.14",
48
+ "@finos/legend-lego": "1.1.6",
49
+ "@finos/legend-server-depot": "6.0.18",
50
+ "@finos/legend-shared": "10.0.17",
51
+ "@finos/legend-storage": "3.0.67",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.13",
53
+ "@types/react": "18.2.14",
54
54
  "@types/react-dom": "18.2.6",
55
55
  "chart.js": "4.3.0",
56
56
  "mathjs": "11.8.2",
@@ -65,15 +65,15 @@
65
65
  "sql-formatter": "12.2.3"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.70",
69
- "@jest/globals": "29.5.0",
68
+ "@finos/legend-dev-utils": "2.0.72",
69
+ "@jest/globals": "29.6.1",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.43.0",
72
- "jest": "29.5.0",
71
+ "eslint": "8.44.0",
72
+ "jest": "29.6.1",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.1",
75
75
  "sass": "1.63.6",
76
- "typescript": "5.1.3"
76
+ "typescript": "5.1.6"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0"
@@ -54,7 +54,9 @@ export const QueryBuilderTextEditor = observer(
54
54
  const mode = queryTextEditorState.mode;
55
55
  useEffect(() => {
56
56
  flowResult(
57
- queryTextEditorState.convertLambdaObjectToGrammarString(true),
57
+ queryTextEditorState.convertLambdaObjectToGrammarString({
58
+ pretty: true,
59
+ }),
58
60
  ).catch(applicationStore.alertUnhandledError);
59
61
  }, [applicationStore, queryTextEditorState]);
60
62
 
@@ -23,7 +23,7 @@ import {
23
23
  type LegendApplicationPluginManager,
24
24
  type LegendApplicationSetup,
25
25
  } from '@finos/legend-application';
26
- import packageJson from '../../package.json';
26
+ import packageJson from '../../package.json' assert { type: 'json' };
27
27
  import { QUERY_BUILDER_SETTING_CONFIG } from '../__lib__/QueryBuilderSetting.js';
28
28
  import { QUERY_BUILDER_COMMAND_CONFIG } from '../stores/QueryBuilderCommand.js';
29
29
  import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
@@ -90,9 +90,8 @@ export const FunctionParametersValidationNodeViewer: React.FC<{
90
90
  <tr>
91
91
  <td className="table__cell--left">{parameter.name}</td>
92
92
  <td className="table__cell--left">
93
- {`${
94
- parameter.genericType?.value.rawType.name
95
- } ${showMultiplicity(parameter.multiplicity)}`}
93
+ {`${parameter.genericType?.value.rawType
94
+ .name} ${showMultiplicity(parameter.multiplicity)}`}
96
95
  </td>
97
96
  </tr>
98
97
  </React.Fragment>
@@ -166,12 +166,16 @@ const QueryBuilderPostFilterGroupConditionEditor = observer(
166
166
  : QUERY_BUILDER_GROUP_OPERATION.AND,
167
167
  );
168
168
  };
169
+
170
+ const operationName =
171
+ node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND ? 'AND' : 'OR';
172
+
169
173
  return (
170
174
  <div className="query-builder-post-filter-tree__node__label__content dnd__entry__container">
171
175
  <PanelEntryDropZonePlaceholder
172
176
  isDragOver={isDragOver}
173
177
  isDroppable={isDroppable}
174
- label="Add to Logical Group"
178
+ label={`Add to Logical Group '${operationName}'`}
175
179
  >
176
180
  <div
177
181
  className={clsx('query-builder-post-filter-tree__group-node', {
@@ -324,12 +324,25 @@ const buildCalendarTypeOption = (
324
324
  });
325
325
 
326
326
  const QueryBuilderProjectionColumnEditor = observer(
327
- (props: { projectionColumnState: QueryBuilderProjectionColumnState }) => {
328
- const { projectionColumnState } = props;
329
- const columnIdx = projectionColumnState.tdsState.tdsColumns.indexOf(
327
+ (props: {
328
+ projectionColumnState: QueryBuilderProjectionColumnState;
329
+ isRearrangeActive: boolean;
330
+ currentRearrangeDraggedColumnIndex: number | undefined;
331
+ setCurrentRearrangeDraggedColumnIndex: (val: number | undefined) => void;
332
+ currentRearrangeDropGapIndex: number | undefined;
333
+ setCurrentRearrangeDropGapIndex: (val: number | undefined) => void;
334
+ columnIdx: number;
335
+ }) => {
336
+ const {
337
+ isRearrangeActive,
330
338
  projectionColumnState,
331
- );
332
- const handleRef = useRef<HTMLDivElement>(null);
339
+ columnIdx,
340
+ currentRearrangeDraggedColumnIndex,
341
+ setCurrentRearrangeDraggedColumnIndex,
342
+ currentRearrangeDropGapIndex,
343
+ setCurrentRearrangeDropGapIndex,
344
+ } = props;
345
+ const dragHandleRef = useRef<HTMLDivElement>(null);
333
346
  const applicationStore = useApplicationStore();
334
347
  const ref = useRef<HTMLDivElement>(null);
335
348
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
@@ -405,6 +418,7 @@ const QueryBuilderProjectionColumnEditor = observer(
405
418
  aggregateColumnState?.calendarFunction?.setCalendarType(option.value);
406
419
  }
407
420
  };
421
+
408
422
  const defaultEndDate = observe_PrimitiveInstanceValue(
409
423
  new PrimitiveInstanceValue(
410
424
  GenericTypeExplicitReference.create(
@@ -484,17 +498,26 @@ const QueryBuilderProjectionColumnEditor = observer(
484
498
  (type: string): void => {
485
499
  if (
486
500
  type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE &&
487
- tdsState.draggedColumnIndex !== undefined &&
488
- tdsState.hoveredColumnIndex !== undefined
501
+ currentRearrangeDropGapIndex !== undefined &&
502
+ currentRearrangeDraggedColumnIndex !== undefined
489
503
  ) {
490
504
  tdsState.moveColumn(
491
- tdsState.draggedColumnIndex,
492
- tdsState.hoveredColumnIndex,
505
+ currentRearrangeDraggedColumnIndex,
506
+ currentRearrangeDropGapIndex === tdsState.projectionColumns.length
507
+ ? tdsState.projectionColumns.length - 1
508
+ : currentRearrangeDropGapIndex,
493
509
  );
494
510
  }
495
- tdsState.setRearrangeColumnsIndex(undefined, undefined);
511
+ setCurrentRearrangeDraggedColumnIndex(undefined);
512
+ setCurrentRearrangeDropGapIndex(undefined);
496
513
  },
497
- [tdsState],
514
+ [
515
+ tdsState,
516
+ currentRearrangeDropGapIndex,
517
+ currentRearrangeDraggedColumnIndex,
518
+ setCurrentRearrangeDraggedColumnIndex,
519
+ setCurrentRearrangeDropGapIndex,
520
+ ],
498
521
  );
499
522
 
500
523
  // Drag and Drop
@@ -506,36 +529,47 @@ const QueryBuilderProjectionColumnEditor = observer(
506
529
  const dragIndex = tdsState.projectionColumns.findIndex(
507
530
  (e) => e === item.columnState,
508
531
  );
509
- const hoverIndex = tdsState.projectionColumns.findIndex(
510
- (e) => e === projectionColumnState,
511
- );
532
+ const hoveredRectangle = ref.current?.getBoundingClientRect();
533
+ const hoveredRectangleMiddle =
534
+ hoveredRectangle?.top && hoveredRectangle.bottom
535
+ ? (hoveredRectangle.top + hoveredRectangle.bottom) / 2
536
+ : undefined;
537
+ const yCoordinate = monitor.getClientOffset()?.y ?? 0;
512
538
 
513
- if (dragIndex === hoverIndex) {
514
- tdsState.setRearrangeColumnsIndex(undefined, hoverIndex);
539
+ if (yCoordinate && hoveredRectangleMiddle) {
540
+ setCurrentRearrangeDropGapIndex(
541
+ yCoordinate < hoveredRectangleMiddle ? columnIdx : columnIdx + 1,
542
+ );
515
543
  }
516
544
 
517
- if (dragIndex === -1 || hoverIndex === -1 || dragIndex === hoverIndex) {
518
- return;
519
- }
520
545
  // move the item being hovered on when the dragged item position is beyond the its middle point
521
546
  const hoverBoundingReact = ref.current?.getBoundingClientRect();
522
-
523
547
  const distanceThreshold =
524
548
  ((hoverBoundingReact?.bottom ?? 0) - (hoverBoundingReact?.top ?? 0)) /
525
549
  2;
526
- const dragDistance =
527
- (monitor.getClientOffset()?.y ?? 0) - (hoverBoundingReact?.top ?? 0);
528
- if (dragIndex < hoverIndex && dragDistance < distanceThreshold) {
550
+ const dragDistance = yCoordinate - (hoverBoundingReact?.top ?? 0);
551
+
552
+ if (dragIndex === -1 || columnIdx === -1 || dragIndex === columnIdx) {
553
+ return;
554
+ }
555
+
556
+ if (dragIndex < columnIdx && dragDistance < distanceThreshold) {
529
557
  return;
530
558
  }
531
- if (dragIndex > hoverIndex && dragDistance > distanceThreshold) {
559
+ if (dragIndex > columnIdx && dragDistance > distanceThreshold) {
532
560
  return;
533
561
  }
534
562
 
535
- tdsState.setRearrangeColumnsIndex(dragIndex, hoverIndex);
563
+ setCurrentRearrangeDraggedColumnIndex(dragIndex);
536
564
  },
537
- [projectionColumnState, tdsState],
565
+ [
566
+ tdsState,
567
+ columnIdx,
568
+ setCurrentRearrangeDropGapIndex,
569
+ setCurrentRearrangeDraggedColumnIndex,
570
+ ],
538
571
  );
572
+
539
573
  const [, dropConnector] = useDrop<QueryBuilderProjectionColumnDragSource>(
540
574
  () => ({
541
575
  accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
@@ -580,11 +614,7 @@ const QueryBuilderProjectionColumnEditor = observer(
580
614
  [projectionColumnState],
581
615
  );
582
616
 
583
- const isBeingDragged =
584
- columnIdx === tdsState.hoveredColumnIndex &&
585
- projectionColumnBeingDragged !== undefined;
586
-
587
- dragConnector(handleRef);
617
+ dragConnector(dragHandleRef);
588
618
  dropConnector(ref);
589
619
 
590
620
  useDragPreviewLayer(dragPreviewConnector);
@@ -647,22 +677,24 @@ const QueryBuilderProjectionColumnEditor = observer(
647
677
  return (
648
678
  <PanelDnDEntry
649
679
  ref={ref}
650
- // TODO: this is the more appropriate solution than what we did
651
- // before and in other places for rearrange because it does no
652
- // rearrange while on hovering, but on drop, there's some work to
653
- // do about the drop location indicator though
654
- // See https://github.com/finos/legend-studio/pull/2330
655
680
  placeholder={
656
681
  <div
657
- className={
658
- (tdsState.hoveredColumnIndex ?? 0) >
659
- (tdsState.draggedColumnIndex ?? 0)
660
- ? 'query-builder__projection__column__placeholder--bottom'
661
- : 'query-builder__projection__column__placeholder--top'
662
- }
682
+ className={clsx(
683
+ {
684
+ 'query-builder__projection__column__placeholder--bottom':
685
+ currentRearrangeDropGapIndex === columnIdx + 1 &&
686
+ columnIdx === tdsState.projectionColumns.length - 1,
687
+ },
688
+ {
689
+ 'query-builder__projection__column__placeholder--top':
690
+ currentRearrangeDropGapIndex === columnIdx,
691
+ },
692
+ )}
663
693
  />
664
694
  }
665
- showPlaceholder={isBeingDragged}
695
+ showPlaceholder={
696
+ projectionColumnBeingDragged !== undefined && isRearrangeActive
697
+ }
666
698
  className="query-builder__projection__column"
667
699
  >
668
700
  <ContextMenu
@@ -687,8 +719,8 @@ const QueryBuilderProjectionColumnEditor = observer(
687
719
  >
688
720
  <div className="query-builder__projection__column__container">
689
721
  <PanelEntryDragHandle
690
- isDragging={isBeingDragged}
691
- dragSourceConnector={handleRef}
722
+ isDragging={false}
723
+ dragSourceConnector={dragHandleRef}
692
724
  className="query-builder__projection__column__drag-handle__container"
693
725
  />
694
726
  <div className="query-builder__projection__column__name">
@@ -904,6 +936,12 @@ export const QueryBuilderTDSPanel = observer(
904
936
  const applicationStore = useApplicationStore();
905
937
  const { tdsState } = props;
906
938
  const projectionColumns = tdsState.projectionColumns;
939
+ const [
940
+ currentRearrangeDraggedColumnIndex,
941
+ setCurrentRearrangeDraggedColumnIndex,
942
+ ] = useState<number | undefined>();
943
+ const [currentRearrangeDropGapIndex, setCurrentRearrangeDropGapIndex] =
944
+ useState<number | undefined>();
907
945
 
908
946
  // Toolbar
909
947
  const openResultSetModifierEditor = (): void =>
@@ -986,15 +1024,15 @@ export const QueryBuilderTDSPanel = observer(
986
1024
  [handleDrop],
987
1025
  );
988
1026
 
989
- const [, projectionColumnDropConnector] = useDrop<
1027
+ const [{ isRearrangeActive }, rearrangeColumnDropConnector] = useDrop<
990
1028
  QueryBuilderProjectionColumnDragSource,
991
1029
  void,
992
- { isOverProjectionColumns: boolean }
1030
+ { isRearrangeActive: boolean }
993
1031
  >(
994
1032
  () => ({
995
1033
  accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
996
1034
  collect: (monitor) => ({
997
- isOverProjectionColumns: monitor.isOver({ shallow: false }),
1035
+ isRearrangeActive: monitor.isOver({ shallow: false }),
998
1036
  }),
999
1037
  }),
1000
1038
  [],
@@ -1065,24 +1103,39 @@ export const QueryBuilderTDSPanel = observer(
1065
1103
  <div
1066
1104
  data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TDS}
1067
1105
  className="query-builder__projection__columns"
1068
- ref={projectionColumnDropConnector}
1069
1106
  >
1070
- <DragPreviewLayer
1071
- labelGetter={(
1072
- item: QueryBuilderProjectionColumnDragSource,
1073
- ): string =>
1074
- item.columnState.columnName === ''
1075
- ? '(unknown)'
1076
- : item.columnState.columnName
1077
- }
1078
- types={[QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE]}
1079
- />
1080
- {projectionColumns.map((projectionColumnState) => (
1081
- <QueryBuilderProjectionColumnEditor
1082
- key={projectionColumnState.uuid}
1083
- projectionColumnState={projectionColumnState}
1107
+ <div ref={rearrangeColumnDropConnector}>
1108
+ <DragPreviewLayer
1109
+ labelGetter={(
1110
+ item: QueryBuilderProjectionColumnDragSource,
1111
+ ): string =>
1112
+ item.columnState.columnName === ''
1113
+ ? '(unknown)'
1114
+ : item.columnState.columnName
1115
+ }
1116
+ types={[QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE]}
1084
1117
  />
1085
- ))}
1118
+ {projectionColumns.map((projectionColumnState, columnIdx) => (
1119
+ <QueryBuilderProjectionColumnEditor
1120
+ key={projectionColumnState.uuid}
1121
+ projectionColumnState={projectionColumnState}
1122
+ isRearrangeActive={isRearrangeActive}
1123
+ currentRearrangeDraggedColumnIndex={
1124
+ currentRearrangeDraggedColumnIndex
1125
+ }
1126
+ currentRearrangeDropGapIndex={
1127
+ currentRearrangeDropGapIndex
1128
+ }
1129
+ setCurrentRearrangeDraggedColumnIndex={
1130
+ setCurrentRearrangeDraggedColumnIndex
1131
+ }
1132
+ setCurrentRearrangeDropGapIndex={
1133
+ setCurrentRearrangeDropGapIndex
1134
+ }
1135
+ columnIdx={columnIdx}
1136
+ />
1137
+ ))}
1138
+ </div>
1086
1139
  </div>
1087
1140
  )}
1088
1141
  <QueryResultModifierModal tdsState={tdsState} />
@@ -118,12 +118,16 @@ const QueryBuilderFilterGroupConditionEditor = observer(
118
118
  : QUERY_BUILDER_GROUP_OPERATION.AND,
119
119
  );
120
120
  };
121
+
122
+ const operationName =
123
+ node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND ? 'AND' : 'OR';
124
+
121
125
  return (
122
126
  <div className="query-builder-filter-tree__node__label__content dnd__entry__container">
123
127
  <PanelEntryDropZonePlaceholder
124
128
  isDragOver={isDragOver}
125
129
  isDroppable={isDroppable}
126
- label="Add to Logical Group"
130
+ label={`Add to Logical Group '${operationName}'`}
127
131
  >
128
132
  <div
129
133
  className={clsx('query-builder-filter-tree__group-node', {
@@ -687,10 +687,9 @@ export const buildDatePickerOption = (
687
687
  );
688
688
  case QUERY_BUILDER_SUPPORTED_FUNCTIONS.PREVIOUS_DAY_OF_WEEK:
689
689
  return new CustomPreviousDayOfWeekOption(
690
- `Previous ${
691
- (valueSpecification.parametersValues[0] as EnumValueInstanceValue)
692
- .values[0]?.value.name
693
- }`,
690
+ `Previous ${(
691
+ valueSpecification.parametersValues[0] as EnumValueInstanceValue
692
+ ).values[0]?.value.name}`,
694
693
  (valueSpecification.parametersValues[0] as EnumValueInstanceValue)
695
694
  .values[0]?.value.name as CUSTOM_DATE_DAY_OF_WEEK,
696
695
  );
@@ -140,7 +140,9 @@ const LambdaEditor_Inner = observer(
140
140
  const transformLambdaToString = async (pretty: boolean): Promise<void> => {
141
141
  transformStringToLambda?.cancel();
142
142
  return flowResult(
143
- lambdaEditorState.convertLambdaObjectToGrammarString(pretty),
143
+ lambdaEditorState.convertLambdaObjectToGrammarString({
144
+ pretty: pretty,
145
+ }),
144
146
  ).catch(applicationStore.alertUnhandledError);
145
147
  };
146
148
  const discardChanges = applicationStore.guardUnhandledError(() =>
@@ -447,7 +449,9 @@ const LambdaEditor_PopUp = observer(
447
449
  const transformLambdaToString = async (pretty: boolean): Promise<void> => {
448
450
  transformStringToLambda?.cancel();
449
451
  return flowResult(
450
- lambdaEditorState.convertLambdaObjectToGrammarString(pretty),
452
+ lambdaEditorState.convertLambdaObjectToGrammarString({
453
+ pretty: pretty,
454
+ }),
451
455
  ).catch(applicationStore.alertUnhandledError);
452
456
  };
453
457
  const discardChanges = applicationStore.guardUnhandledError(() =>
@@ -554,7 +558,10 @@ const LambdaEditor_PopUp = observer(
554
558
 
555
559
  useEffect(() => {
556
560
  flowResult(
557
- lambdaEditorState.convertLambdaObjectToGrammarString(true),
561
+ lambdaEditorState.convertLambdaObjectToGrammarString({
562
+ pretty: true,
563
+ preserveCompilationError: true,
564
+ }),
558
565
  ).catch(applicationStore.alertUnhandledError);
559
566
  }, [applicationStore, lambdaEditorState]);
560
567
 
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import packageJson from '../../package.json';
17
+ import packageJson from '../../package.json' assert { type: 'json' };
18
18
  import { AbstractPreset } from '@finos/legend-shared';
19
19
  import { QueryBuilder_PureProtocolProcessorPlugin } from './protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js';
20
20
  import { QueryBuilder_PureGraphManagerPlugin } from './QueryBuilder_PureGraphManagerPlugin.js';
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import packageJson from '../../package.json';
17
+ import packageJson from '../../package.json' assert { type: 'json' };
18
18
  import {
19
19
  PureGraphManagerPlugin,
20
20
  type PureGraphManagerExtensionBuilder,
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import packageJson from '../../../../package.json';
17
+ import packageJson from '../../../../package.json' assert { type: 'json' };
18
18
  import {
19
19
  V1_buildExistsFunctionExpression,
20
20
  V1_buildFilterFunctionExpression,
@@ -129,7 +129,9 @@ export class QueryBuilderTextEditorState extends LambdaEditorState {
129
129
  }
130
130
  }
131
131
 
132
- *convertLambdaObjectToGrammarString(pretty: boolean): GeneratorFn<void> {
132
+ *convertLambdaObjectToGrammarString(options: {
133
+ pretty?: boolean | undefined;
134
+ }): GeneratorFn<void> {
133
135
  if (this.rawLambdaState.lambda.body) {
134
136
  this.isConvertingLambdaToString = true;
135
137
  try {
@@ -144,7 +146,7 @@ export class QueryBuilderTextEditorState extends LambdaEditorState {
144
146
  const isolatedLambdas =
145
147
  (yield this.queryBuilderState.graphManagerState.graphManager.lambdasToPureCode(
146
148
  lambdas,
147
- pretty,
149
+ options.pretty,
148
150
  )) as Map<string, string>;
149
151
  const grammarText = isolatedLambdas.get(this.lambdaId);
150
152
  this.setLambdaString(