@finos/legend-query-builder 4.1.2 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
  3. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  4. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderResultPanel.js +91 -24
  6. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +23 -0
  8. package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -0
  9. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +32 -0
  10. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -0
  11. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +23 -0
  12. package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -0
  13. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +35 -0
  14. package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -0
  15. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +21 -0
  16. package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -0
  17. package/lib/components/execution-plan/DataTypeResultTypeViewer.js +31 -0
  18. package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -0
  19. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +10 -4
  20. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  21. package/lib/components/execution-plan/ExecutionPlanViewer.js +74 -62
  22. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  23. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts +25 -0
  24. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -0
  25. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +47 -0
  26. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -0
  27. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +23 -0
  28. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -0
  29. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +31 -0
  30. package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -0
  31. package/lib/components/execution-plan/ResultTypeViewer.d.ts +21 -0
  32. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -0
  33. package/lib/components/execution-plan/ResultTypeViewer.js +33 -0
  34. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -0
  35. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +9 -1
  36. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  37. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +12 -6
  38. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  39. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +23 -0
  40. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -0
  41. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +38 -0
  42. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -0
  43. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +21 -0
  44. package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -0
  45. package/lib/components/execution-plan/TDSResultTypeViewer.js +25 -0
  46. package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -0
  47. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  48. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -3
  49. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  50. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  51. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +24 -34
  52. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  54. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +44 -11
  55. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  56. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  57. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +4 -4
  58. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  59. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  60. package/lib/components/filter/QueryBuilderFilterPanel.js +20 -32
  61. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  62. package/lib/index.css +2 -2
  63. package/lib/index.css.map +1 -1
  64. package/lib/package.json +1 -1
  65. package/lib/stores/QueryBuilderResultState.d.ts +0 -3
  66. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  67. package/lib/stores/QueryBuilderResultState.js +2 -25
  68. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  69. package/lib/stores/execution-plan/ExecutionPlanState.d.ts +14 -1
  70. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  71. package/lib/stores/execution-plan/ExecutionPlanState.js +86 -3
  72. package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +3 -0
  74. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  75. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +11 -0
  76. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  77. package/package.json +5 -5
  78. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -2
  79. package/src/components/QueryBuilderResultPanel.tsx +146 -30
  80. package/src/components/execution-plan/AllocationExecutionNodeViewer.tsx +77 -0
  81. package/src/components/execution-plan/ConstantExecutionNodeViewer.tsx +82 -0
  82. package/src/components/execution-plan/DataTypeResultTypeViewer.tsx +52 -0
  83. package/src/components/execution-plan/ExecutionPlanViewer.tsx +205 -195
  84. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +118 -0
  85. package/src/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.tsx +68 -0
  86. package/src/components/execution-plan/ResultTypeViewer.tsx +37 -0
  87. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +50 -19
  88. package/src/components/execution-plan/SequenceExecutionNodeViewer.tsx +95 -0
  89. package/src/components/execution-plan/TDSResultTypeViewer.tsx +59 -0
  90. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +5 -8
  91. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +32 -61
  92. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +77 -14
  93. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +6 -8
  94. package/src/components/filter/QueryBuilderFilterPanel.tsx +45 -73
  95. package/src/stores/QueryBuilderResultState.ts +1 -42
  96. package/src/stores/execution-plan/ExecutionPlanState.ts +142 -4
  97. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +16 -0
  98. package/tsconfig.json +8 -0
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { generateExecutionNodeLabel } from './ExecutionPlanViewer.js';
19
+ import { EXECUTION_PLAN_VIEW_MODE, ExecutionPlanViewTreeNodeData, ExecutionNodeTreeNodeData, } from '../../stores/execution-plan/ExecutionPlanState.js';
20
+ import { PanelListItem, PanelDivider, Button, PanelContent, } from '@finos/legend-art';
21
+ import { ResultTypeViewer } from './ResultTypeViewer.js';
22
+ export const SequenceExecutionNodeViewer = observer((props) => {
23
+ const { node, executionPlanState } = props;
24
+ const resultType = node.resultType;
25
+ const applicationStore = executionPlanState.applicationStore;
26
+ const openExecutionNode = (child) => {
27
+ const newNode = executionPlanState.treeData?.nodes.get(child._UUID);
28
+ if (newNode instanceof ExecutionPlanViewTreeNodeData) {
29
+ executionPlanState.transformMetadataToProtocolJson(newNode.executionPlan);
30
+ }
31
+ else if (newNode instanceof ExecutionNodeTreeNodeData) {
32
+ executionPlanState.transformMetadataToProtocolJson(newNode.executionNode);
33
+ }
34
+ executionPlanState.setSelectedNode(newNode);
35
+ };
36
+ return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsx("div", { className: "query-builder__sequence__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__sequence__container__item__label", children: "Execution Nodes" }), _jsx(PanelDivider, {}), node.executionNodes.map((child, index) => (_jsx("div", { className: "query-builder__sequence__container__item", children: _jsx("button", { className: "query-builder__sequence__container__item__btn", onClick: () => openExecutionNode(child), tabIndex: -1, title: `Go to ${generateExecutionNodeLabel(child)}`, children: `${index + 1}: ${generateExecutionNodeLabel(child)}` }) }, child._UUID)))] }) }), _jsx(PanelDivider, {}), _jsx(ResultTypeViewer, { resultType: resultType }), _jsx("div", { className: "query-builder__execution__container", children: _jsx(Button, { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), text: "View JSON" }) }), _jsx(PanelDivider, {})] }));
37
+ });
38
+ //# sourceMappingURL=SequenceExecutionNodeViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SequenceExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAEL,wBAAwB,EACxB,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,2BAA2B,GAGnC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,MAAM,iBAAiB,GAAG,CAAC,KAAoB,EAAQ,EAAE;QACvD,MAAM,OAAO,GAAG,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpE,IAAI,OAAO,YAAY,6BAA6B,EAAE;YACpD,kBAAkB,CAAC,+BAA+B,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC3E;aAAM,IAAI,OAAO,YAAY,yBAAyB,EAAE;YACvD,kBAAkB,CAAC,+BAA+B,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC3E;QACD,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,cAAK,SAAS,EAAC,oCAAoC,YACjD,0BACE,KAAC,aAAa,IAAC,SAAS,EAAC,iDAAiD,gCAE1D,EAChB,KAAC,YAAY,KAAG,EACf,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACzC,cACE,SAAS,EAAC,0CAA0C,YAGpD,iBACE,SAAS,EAAC,+CAA+C,EACzD,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EACvC,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,SAAS,0BAA0B,CAAC,KAAK,CAAC,EAAE,YAElD,GAAG,KAAK,GAAG,CAAC,KAAK,0BAA0B,CAAC,KAAK,CAAC,EAAE,GAC9C,IATJ,KAAK,CAAC,KAAK,CAUZ,CACP,CAAC,IACE,GACF,EACN,KAAC,YAAY,KAAG,EAChB,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,cAAK,SAAS,EAAC,qCAAqC,YAClD,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAE/D,IAAI,EAAC,WAAW,GAChB,GACE,EACN,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type TDSResultType } from '@finos/legend-graph';
18
+ export declare const TDSResultTypeViewer: React.FC<{
19
+ resultType: TDSResultType;
20
+ }>;
21
+ //# sourceMappingURL=TDSResultTypeViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TDSResultTypeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/TDSResultTypeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,UAAU,EAAE,aAAa,CAAC;CAC3B,CAiCC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { PanelListItem, PanelDivider } from '@finos/legend-art';
19
+ import { PackageableElementImplicitReference, } from '@finos/legend-graph';
20
+ export const TDSResultTypeViewer = observer((props) => {
21
+ const { resultType } = props;
22
+ return (_jsxs("div", { className: "query-builder__result__container", children: [_jsx(PanelListItem, { className: "query-builder__result__container__item__tds", children: "Result type: TDS" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__result__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Label" }), _jsx("th", { className: "table__cell--left", children: "Result DataType" })] }) }), _jsx("tbody", { children: resultType.tdsColumns.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.name }), _jsx("td", { className: "table__cell--left", children: column.type instanceof PackageableElementImplicitReference &&
23
+ (column.type.input ?? '') })] }, column.name))) })] }), _jsx(PanelDivider, {})] }));
24
+ });
25
+ //# sourceMappingURL=TDSResultTypeViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TDSResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TDSResultTypeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,mCAAmC,GAEpC,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,mBAAmB,GAE3B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,KAAC,aAAa,IAAC,SAAS,EAAC,6CAA6C,iCAEtD,EAChB,KAAC,YAAY,KAAG,EAEd,iBAAO,SAAS,EAAC,+CAA+C,aAC9D,0BACE,yBACE,aAAI,SAAS,EAAC,mBAAmB,sBAAW,EAC5C,aAAI,SAAS,EAAC,mBAAmB,gCAAqB,IACnD,GACC,EACR,0BACG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrC,yBACE,aAAI,SAAS,EAAC,mBAAmB,YAAE,MAAM,CAAC,IAAI,GAAM,EACpD,aAAI,SAAS,EAAC,mBAAmB,YAC9B,MAAM,CAAC,IAAI,YAAY,mCAAmC;wCACzD,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,GACxB,KALE,MAAM,CAAC,IAAI,CAMf,CACN,CAAC,GACI,IACF,EAEV,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningEditor.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAkO3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgDjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderMilestoningEditor.d.ts","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA+N3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgDjD,CAAC"}
@@ -34,7 +34,7 @@ const MilestoningParameterEditor = observer((props) => {
34
34
  queryBuilderState.milestoningState.setProcessingDate(item.variable);
35
35
  }
36
36
  }, [queryBuilderState, stereotype]);
37
- const [{ isMilestoningParameterValueDragOver }, dropConnector] = useDrop(() => ({
37
+ const [{ isDragOver }, dropConnector] = useDrop(() => ({
38
38
  accept: [QUERY_BUILDER_VARIABLE_DND_TYPE],
39
39
  drop: (item, monitor) => {
40
40
  if (!monitor.didDrop()) {
@@ -42,7 +42,7 @@ const MilestoningParameterEditor = observer((props) => {
42
42
  }
43
43
  },
44
44
  collect: (monitor) => ({
45
- isMilestoningParameterValueDragOver: monitor.isOver({
45
+ isDragOver: monitor.isOver({
46
46
  shallow: true,
47
47
  }),
48
48
  }),
@@ -64,7 +64,7 @@ const MilestoningParameterEditor = observer((props) => {
64
64
  queryBuilderState.milestoningState.setProcessingDate(parameter);
65
65
  }
66
66
  };
67
- return (_jsx("div", { ref: dropConnector, className: "query-builder__variable-editor", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isMilestoningParameterValueDragOver, label: "Change Milestoning Parameter Value", className: "query-builder__dnd__placeholder", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: milestoningParameter, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, setValueSpecification: (val) => stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL
67
+ return (_jsx("div", { ref: dropConnector, className: "query-builder__variable-editor", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Milestoning Parameter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: milestoningParameter, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, setValueSpecification: (val) => stereotype === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL
68
68
  ? queryBuilderState.milestoningState.setBusinessDate(val)
69
69
  : queryBuilderState.milestoningState.setProcessingDate(val), typeCheckOption: {
70
70
  expectedType: PrimitiveType.DATE,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderMilestoningEditor.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,cAAc,EACd,aAAa,GACd,MAAM,qB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I,GACtC,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderMilestoningEditor.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oCAAoC,EAAE,MAAM,sDAAsD,CAAC;AAC5G,OAAO,EACL,6BAA6B,EAE7B,+BAA+B,GAChC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,MAAM,0BAA0B,GAAG,QAAQ,CACzC,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,IAAoC,EAAQ,EAAE;QAC7C,IAAI,UAAU,KAAK,sBAAsB,CAAC,iBAAiB,EAAE;YAC3D,iBAAiB,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACnE;aAAM;YACL,iBA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,MAAC,SAAS,IAAC,SAAS,EAAC,uCAAuC,aAC1D,KAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,EACnE,KAAC,gBAAgB,cACf,cAAK,SAAS,EAAC,8CAA8C,0DAEvD,GACW,EACnB,cAAK,SAAS,EAAC,4CAA4C,YACzD,KAAC,gBAAgB,IACf,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,gCAAgC,GAC1C,GACE,IACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,KAAK,GAAI,GACtC,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoDH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA2H3E,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAyErB,CAAC;AAizBF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoDH,OAAO,EAGL,wBAAwB,EAMzB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,KAAK,iCAAiC,EAIvC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAoH3E,eAAO,MAAM,uBAAuB;8BAEN,wBAAwB;kCAEnC,iCAAiC,KAC3C,QAAQ,IAAI,CAAC;;;CAwErB,CAAC;AA4xBF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgCjD,CAAC"}
@@ -49,19 +49,17 @@ const QueryBuilderPostFilterConditionContextMenu = observer(forwardRef(function
49
49
  return (_jsxs(MenuContent, { ref: ref, children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(MenuContentItem, { onClick: createCondition, children: "Add New Condition" })), node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(MenuContentItem, { onClick: createGroupCondition, children: "Add New Logical Group" })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(MenuContentItem, { onClick: newGroupWithCondition, children: "Form a New Logical Group" })), _jsx(MenuContentItem, { onClick: removeNode, children: "Remove" })] }));
50
50
  }));
51
51
  const QueryBuilderPostFilterGroupConditionEditor = observer((props) => {
52
- const { node, isDragOver, showDroppableSuggestion } = props;
52
+ const { node, isDragOver, isDroppable: isDroppable } = props;
53
53
  const switchOperation = (event) => {
54
54
  event.stopPropagation(); // prevent triggering selecting the node
55
55
  node.setGroupOperation(node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND
56
56
  ? QUERY_BUILDER_GROUP_OPERATION.OR
57
57
  : QUERY_BUILDER_GROUP_OPERATION.AND);
58
58
  };
59
- return (_jsxs("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: [showDroppableSuggestion && (_jsx("div", { className: clsx('dnd__entry--droppable__indicator ', {
60
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
61
- }) })), _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Add to Logical Group", className: "query-builder__dnd__placeholder", children: _jsxs("div", { className: clsx('query-builder-post-filter-tree__group-node', {
62
- 'query-builder-post-filter-tree__group-node--and': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
63
- 'query-builder-post-filter-tree__group-node--or': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
64
- }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-post-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-post-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] }) })] }));
59
+ return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Add to Logical Group", children: _jsxs("div", { className: clsx('query-builder-post-filter-tree__group-node', {
60
+ 'query-builder-post-filter-tree__group-node--and': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.AND,
61
+ 'query-builder-post-filter-tree__group-node--or': node.groupOperation === QUERY_BUILDER_GROUP_OPERATION.OR,
62
+ }), title: "Switch Operation", onClick: switchOperation, children: [_jsx("div", { className: "query-builder-post-filter-tree__group-node__label", children: node.groupOperation }), _jsx("button", { className: "query-builder-post-filter-tree__group-node__action", children: _jsx(FilledTriangleIcon, {}) })] }) }) }));
65
63
  });
66
64
  export const QueryBuilderColumnBadge = observer((props) => {
67
65
  const { postFilterConditionState, onColumnChange } = props;
@@ -82,7 +80,7 @@ export const QueryBuilderColumnBadge = observer((props) => {
82
80
  isDragOver: monitor.isOver({ shallow: true }),
83
81
  }),
84
82
  }), [applicationStore, handleDrop]);
85
- return (_jsx("div", { ref: dropConnector, className: "query-builder-column-badge", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Property", className: "query-builder__dnd__placeholder", children: _jsxs("div", { className: "query-builder-column-badge__content", children: [type && (_jsx("div", { className: clsx('query-builder-column-badge__type', {
83
+ return (_jsx("div", { ref: dropConnector, className: "query-builder-column-badge", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Property", children: _jsxs("div", { className: "query-builder-column-badge__content", children: [type && (_jsx("div", { className: clsx('query-builder-column-badge__type', {
86
84
  'query-builder-column-badge__type--class': type instanceof Class,
87
85
  'query-builder-column-badge__type--enumeration': type instanceof Enumeration,
88
86
  'query-builder-column-badge__type--primitive': type instanceof PrimitiveType,
@@ -141,26 +139,22 @@ const QueryBuilderPostFilterConditionEditor = observer((props) => {
141
139
  reloadValues: debouncedTypeaheadSearch,
142
140
  cleanUpReloadValues,
143
141
  };
144
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
145
- showDroppableSuggestion: monitor.isDragging() &&
142
+ const { isDroppable } = useDragLayer((monitor) => ({
143
+ isDroppable: monitor.isDragging() &&
146
144
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
147
145
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
148
146
  }));
149
- return (_jsxs("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: [showDroppableSuggestion && (_jsx("div", { className: clsx('dnd__entry--droppable__indicator query-builder-post-filter-tree__droppable--full', {
150
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
151
- }) })), _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Add New Logical Group", className: "query-builder__dnd__placeholder", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { postFilterConditionState: node.condition, onColumnChange: changeColumn }) }), _jsxs(DropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
152
- anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
153
- transformOrigin: { vertical: 'top', horizontal: 'left' },
154
- elevation: 7,
155
- }, children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel() }), _jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), node.condition.value && (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isFilterValueDragOver, label: "Change Filter Value", className: "query-builder__dnd__placeholder", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: node.condition.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
156
- expectedType: guaranteeNonNullable(node.condition.columnState.getColumnType()),
157
- }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(node.condition.value) }) }) }))] }) })] }));
147
+ return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-post-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__property", children: _jsx(QueryBuilderColumnBadge, { postFilterConditionState: node.condition, onColumnChange: changeColumn }) }), _jsxs(DropdownMenu, { className: "query-builder-post-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
148
+ anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
149
+ transformOrigin: { vertical: 'top', horizontal: 'left' },
150
+ elevation: 7,
151
+ }, children: [_jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__label", children: node.condition.operator.getLabel() }), _jsx("div", { className: "query-builder-post-filter-tree__condition-node__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), node.condition.value && (_jsx("div", { ref: dropConnector, className: "query-builder-post-filter-tree__condition-node__value", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isFilterValueDragOver, label: "Change Filter Value", children: _jsx(BasicValueSpecificationEditor, { valueSpecification: node.condition.value, setValueSpecification: changeValueSpecification, graph: graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
152
+ expectedType: guaranteeNonNullable(node.condition.columnState.getColumnType()),
153
+ }, resetValue: resetNode, selectorConfig: selectorConfig, isConstant: queryBuilderState.constantState.isValueSpecConstant(node.condition.value) }) }) }))] }) }) }));
158
154
  });
159
155
  const QueryBuilderPostFilterBlankConditionEditor = observer((props) => {
160
- const { isDragOver, showDroppableSuggestion } = props;
161
- return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content", children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Create Condition", className: "query-builder__dnd__placeholder", children: _jsx("div", { className: clsx('query-builder-post-filter-tree__blank-node', {
162
- 'query-builder-post-filter-tree__blank-node--droppable': showDroppableSuggestion,
163
- }), children: "blank" }) }) }));
156
+ const { isDragOver, isDroppable } = props;
157
+ return (_jsx("div", { className: "query-builder-post-filter-tree__node__label__content", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, label: "Create Condition", children: _jsx("div", { className: "query-builder-post-filter-tree__blank-node", children: "blank" }) }) }));
164
158
  });
165
159
  const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
166
160
  const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
@@ -243,8 +237,8 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
243
237
  // context menu
244
238
  const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
245
239
  const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
246
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
247
- showDroppableSuggestion: monitor.isDragging() &&
240
+ const { isDroppable } = useDragLayer((monitor) => ({
241
+ isDroppable: monitor.isDragging() &&
248
242
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
249
243
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
250
244
  }));
@@ -255,10 +249,8 @@ const QueryBuilderPostFilterTreeNodeContainer = observer((props) => {
255
249
  }), children: [_jsxs("div", { className: "query-builder-post-filter-tree__node__content", style: {
256
250
  paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2) + 1.5}rem`,
257
251
  display: 'flex',
258
- }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-post-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-post-filter-tree__node__label', {
259
- 'query-builder-post-filter-tree__node__label--expandable': isExpandable,
260
- }), children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, showDroppableSuggestion: showDroppableSuggestion, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof
261
- QueryBuilderPostFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderPostFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, showDroppableSuggestion: showDroppableSuggestion }))] })] }), _jsx("div", { className: "query-builder-post-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-post-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
252
+ }, onClick: selectNode, children: [isExpandable && (_jsx("div", { className: "query-builder-post-filter-tree__expand-icon", onClick: toggleExpandNode, children: node.isOpen ? _jsx(ChevronDownIcon, {}) : _jsx(ChevronRightIcon, {}) })), _jsxs("div", { className: clsx('tree-view__node__label query-builder-post-filter-tree__node__label'), children: [node instanceof QueryBuilderPostFilterTreeGroupNodeData && (_jsx(QueryBuilderPostFilterGroupConditionEditor, { node: node, isDroppable: isDroppable, isDragOver: isDragOver })), node instanceof QueryBuilderPostFilterTreeConditionNodeData && (_jsx(QueryBuilderPostFilterConditionEditor, { node: node, isDragOver: isDragOver })), node instanceof
253
+ QueryBuilderPostFilterTreeBlankConditionNodeData && (_jsx(QueryBuilderPostFilterBlankConditionEditor, { node: node, isDragOver: isDragOver, isDroppable: isDroppable }))] })] }), _jsx("div", { className: "query-builder-post-filter-tree__node__actions", children: _jsx("button", { className: "query-builder-post-filter-tree__node__action", tabIndex: -1, title: "Remove", onClick: removeNode, children: _jsx(TimesIcon, {}) }) })] }) }));
262
254
  });
263
255
  const QueryBuilderPostFilterTreeNodeView = observer((props) => {
264
256
  const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
@@ -361,17 +353,15 @@ const QueryBuilderPostFilterPanelContent = observer((props) => {
361
353
  }), [applicationStore, handleDrop]);
362
354
  const addPostFilterRef = useRef(null);
363
355
  dropTargetConnector(addPostFilterRef);
364
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
365
- showDroppableSuggestion: monitor.isDragging() &&
356
+ const { isDroppable } = useDragLayer((monitor) => ({
357
+ isDroppable: monitor.isDragging() &&
366
358
  (monitor.getItemType() === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE ||
367
359
  monitor.getItemType() === QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE),
368
360
  }));
369
361
  return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "post-filter" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Filter Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: createCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Condition" })] }), _jsxs(MenuContentItem, { disabled: !(postFilterState.selectedNode instanceof
370
362
  QueryBuilderPostFilterTreeConditionNodeData), onClick: newGroupWithCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(PlusCircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Group From Condition" })] }), _jsxs(MenuContentItem, { disabled: !allowGroupCreation, title: !allowGroupCreation
371
363
  ? 'Please select a filter node first to create logical group'
372
- : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver && postFilterState.isEmpty, showDroppableSuggestion: showDroppableSuggestion && postFilterState.isEmpty, className: "query-builder__panel--droppable", dropTargetConnector: dropTargetConnector, children: [postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] })), showDroppableSuggestion && !postFilterState.isEmpty && (_jsx("div", { ref: addPostFilterRef, className: clsx('query-builder-post-filter-tree__blank-node--droppable--tall', {
373
- 'dnd__entry--droppable__indicator--dragover': isDragOver,
374
- }), children: "Add post-filter to main group" }))] }) })] }));
364
+ : '', onClick: createGroupCondition, children: [_jsx(MenuContentItemIcon, { children: _jsx(NewFolderIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Create Logical Group" })] }), _jsxs(MenuContentItem, { onClick: pruneTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(TrashIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Cleanup Tree" })] }), _jsxs(MenuContentItem, { onClick: simplifyTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CircleIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Simplify Tree" })] }), _jsxs(MenuContentItem, { onClick: collapseTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(CompressIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Collapse Tree" })] }), _jsxs(MenuContentItem, { onClick: expandTree, children: [_jsx(MenuContentItemIcon, { children: _jsx(ExpandIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Expand Tree" })] })] }), children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) })] }), _jsx(PanelContent, { children: _jsxs(PanelDropZone, { isDragOver: isDragOver && postFilterState.isEmpty, isDroppable: isDroppable && postFilterState.isEmpty, dropTargetConnector: dropTargetConnector, children: [postFilterState.isEmpty && (_jsx(BlankPanelPlaceholder, { text: "Add a post-filter condition", tooltipText: "Drag and drop properties here" })), !postFilterState.isEmpty && (_jsxs(_Fragment, { children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.node.dragPreviewLabel, types: Object.values(QUERY_BUILDER_POST_FILTER_DND_TYPE) }), _jsx(QueryBuilderPostFilterTree, { tdsState: tdsState })] })), isDroppable && !postFilterState.isEmpty && (_jsx("div", { ref: addPostFilterRef, className: "query-builder-post-filter-tree__free-drop-zone__container", children: _jsxs(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, isDroppable: isDroppable, className: "query-builder-post-filter-tree__free-drop-zone", label: "Add post-filter to main group", children: [_jsx(_Fragment, {}), ' '] }) }))] }) })] }));
375
365
  });
376
366
  export const QueryBuilderPostFilterPanel = observer((props) => {
377
367
  const { queryBuilderState } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPostFilterPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAGL,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,EACL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAA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GAAI,IACjD,CACJ,EACA,uBAAuB,IAAI,CAAC,eAAe,CAAC,OAAO,IAAI,CACtD,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,IAAI,CACb,6DAA6D,EAC7D;gCACE,4CAA4C,EAAE,UAAU;6BACzD,CACF,8CAGG,CACP,IACa,GACH,IACd,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,4BAA4B,GAChC,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC;IAEvD,OAAO,CACL,8BACe,qBAAqB,CAAC,yBAAyB,EAC5D,SAAS,EAAC,OAAO,aAEhB,4BAA4B,YAAY,oBAAoB,IAAI,CAC/D,KAAC,kCAAkC,IACjC,QAAQ,EAAE,4BAA4B,GACtC,CACH,EACA,CAAC,CAAC,4BAA4B,YAAY,oBAAoB,CAAC,IAAI,CAClE,8BACE,cAAK,SAAS,EAAC,eAAe,YAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,4BAAkB,GAC1D,GACF,EACN,KAAC,YAAY,cACX,KAAC,iBAAiB,+EAEE,GACP,IACd,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPostFilterPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAGL,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR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,EAAE,MAAM,CAAC,MAAM,CAAC,kCAAkC,CAAC,GACxD,EACF,KAAC,0BAA0B,IAAC,QAAQ,EAAE,QAAQ,GAAI,IACjD,CACJ,EACA,WAAW,IAAI,CAAC,eAAe,CAAC,OAAO,IAAI,CAC1C,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,2DAA2D,YAErE,MAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,gDAAgD,EAC1D,KAAK,EAAC,+BAA+B,aAErC,mBAAK,EAAC,GAAG,IACqB,GAC5B,CACP,IACa,GACH,IACd,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,4BAA4B,GAChC,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC;IAEvD,OAAO,CACL,8BACe,qBAAqB,CAAC,yBAAyB,EAC5D,SAAS,EAAC,OAAO,aAEhB,4BAA4B,YAAY,oBAAoB,IAAI,CAC/D,KAAC,kCAAkC,IACjC,QAAQ,EAAE,4BAA4B,GACtC,CACH,EACA,CAAC,CAAC,4BAA4B,YAAY,oBAAoB,CAAC,IAAI,CAClE,8BACE,cAAK,SAAS,EAAC,eAAe,YAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,4BAAkB,GAC1D,GACF,EACN,KAAC,YAAY,cACX,KAAC,iBAAiB,+EAEE,GACP,IACd,CACJ,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8EH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAwvBrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiL3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8EH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAyyBrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CA+L3C,CAAC"}
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  */
17
17
  import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
- import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelDnDEntryDragHandle, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, } from '@finos/legend-art';
19
+ import { clsx, BlankPanelPlaceholder, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, InputWithInlineValidation, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, OptionsIcon, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, PanelEntryDragHandle, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, } from '@finos/legend-art';
20
20
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
21
21
  import { useDrag, useDrop, useDragLayer, } from 'react-dnd';
22
22
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
@@ -112,13 +112,14 @@ const buildCalendarTypeOption = (val) => ({
112
112
  value: val,
113
113
  });
114
114
  const QueryBuilderProjectionColumnEditor = observer((props) => {
115
+ const { projectionColumnState } = props;
116
+ const columnIdx = projectionColumnState.tdsState.tdsColumns.indexOf(projectionColumnState);
115
117
  const handleRef = useRef(null);
116
118
  const applicationStore = useApplicationStore();
117
119
  const ref = useRef(null);
118
120
  const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
119
121
  const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
120
122
  const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
121
- const { projectionColumnState } = props;
122
123
  const tdsState = projectionColumnState.tdsState;
123
124
  const isCalendarEnabled = tdsState.queryBuilderState.isCalendarEnabled;
124
125
  const isRemovalDisabled = tdsState.isColumnInUse(projectionColumnState);
@@ -202,10 +203,21 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
202
203
  }
203
204
  }
204
205
  };
206
+ const handleDroppingColumn = useCallback((type) => {
207
+ if (type === QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE &&
208
+ tdsState.draggedColumnIndex !== undefined &&
209
+ tdsState.hoveredColumnIndex !== undefined) {
210
+ tdsState.moveColumn(tdsState.draggedColumnIndex, tdsState.hoveredColumnIndex);
211
+ }
212
+ tdsState.setRearrangeColumnsIndex(undefined, undefined);
213
+ }, [tdsState]);
205
214
  // Drag and Drop
206
215
  const handleHover = useCallback((item, monitor) => {
207
216
  const dragIndex = tdsState.projectionColumns.findIndex((e) => e === item.columnState);
208
217
  const hoverIndex = tdsState.projectionColumns.findIndex((e) => e === projectionColumnState);
218
+ if (dragIndex === hoverIndex) {
219
+ tdsState.setRearrangeColumnsIndex(undefined, hoverIndex);
220
+ }
209
221
  if (dragIndex === -1 || hoverIndex === -1 || dragIndex === hoverIndex) {
210
222
  return;
211
223
  }
@@ -220,12 +232,17 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
220
232
  if (dragIndex > hoverIndex && dragDistance > distanceThreshold) {
221
233
  return;
222
234
  }
223
- tdsState.moveColumn(dragIndex, hoverIndex);
235
+ tdsState.setRearrangeColumnsIndex(dragIndex, hoverIndex);
224
236
  }, [projectionColumnState, tdsState]);
225
237
  const [, dropConnector] = useDrop(() => ({
226
238
  accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
227
239
  hover: (item, monitor) => handleHover(item, monitor),
228
- }), [handleHover]);
240
+ drop: (item, monitor) => {
241
+ if (!monitor.didDrop()) {
242
+ handleDroppingColumn(monitor.getItemType());
243
+ }
244
+ },
245
+ }), [handleHover, handleDroppingColumn]);
229
246
  const [{ projectionColumnBeingDragged }, dragConnector, dragPreviewConnector,] = useDrag(() => ({
230
247
  type: QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE,
231
248
  item: () => ({
@@ -241,7 +258,8 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
241
258
  ?.columnState,
242
259
  }),
243
260
  }), [projectionColumnState]);
244
- const isBeingDragged = projectionColumnState === projectionColumnBeingDragged;
261
+ const isBeingDragged = columnIdx === tdsState.hoveredColumnIndex &&
262
+ projectionColumnBeingDragged !== undefined;
245
263
  dragConnector(handleRef);
246
264
  dropConnector(ref);
247
265
  useDragPreviewLayer(dragPreviewConnector);
@@ -277,10 +295,19 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
277
295
  isDragOver: monitor.isOver({ shallow: true }),
278
296
  }),
279
297
  }), [handleDrop]);
280
- return (_jsx(PanelDnDEntry, { ref: ref, showPlaceholder: isBeingDragged, className: "query-builder__projection__column", children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderProjectionColumnContextMenu, { projectionColumnState: projectionColumnState }), disabled: !(projectionColumnState instanceof
298
+ return (_jsx(PanelDnDEntry, { ref: ref,
299
+ // TODO: this is the more appropriate solution than what we did
300
+ // before and in other places for rearrange because it does no
301
+ // rearrange while on hovering, but on drop, there's some work to
302
+ // do about the drop location indicator though
303
+ // See https://github.com/finos/legend-studio/pull/2330
304
+ placeholder: _jsx("div", { className: (tdsState.hoveredColumnIndex ?? 0) >
305
+ (tdsState.draggedColumnIndex ?? 0)
306
+ ? 'query-builder__projection__column__placeholder--bottom'
307
+ : 'query-builder__projection__column__placeholder--top' }), showPlaceholder: isBeingDragged, className: "query-builder__projection__column", children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderProjectionColumnContextMenu, { projectionColumnState: projectionColumnState }), disabled: !(projectionColumnState instanceof
281
308
  QueryBuilderSimpleProjectionColumnState), className: clsx('query-builder__projection__column__context-menu', {
282
309
  'query-builder__projection__column--selected-from-context-menu': isSelectedFromContextMenu,
283
- }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxs("div", { className: "query-builder__projection__column__container", children: [_jsx(PanelDnDEntryDragHandle, { isBeingDragged: isBeingDragged, dropTargetConnector: handleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
310
+ }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxs("div", { className: "query-builder__projection__column__container", children: [_jsx(PanelEntryDragHandle, { isDragging: isBeingDragged, dragSourceConnector: handleRef, className: "query-builder__projection__column__drag-handle__container" }), _jsx("div", { className: "query-builder__projection__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__projection__column__name__input input-group__input", spellCheck: false, value: projectionColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [projectionColumnState instanceof
284
311
  QueryBuilderSimpleProjectionColumnState && (_jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState })), projectionColumnState instanceof
285
312
  QueryBuilderDerivationProjectionColumnState && (_jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState }))] }), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), isCalendarEnabled &&
286
313
  aggregateColumnState &&
@@ -307,7 +334,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
307
334
  }
308
335
  }, graph: tdsState.queryBuilderState.graphManagerState.graph, obseverContext: tdsState.queryBuilderState.observerContext, typeCheckOption: {
309
336
  expectedType: PrimitiveType.STRICTDATE,
310
- }, className: "query-builder__parameters__value__editor", resetValue: resetEndDate }) }), _jsx("div", { className: "query-builder__projection__calendar__date__column", ref: dropTargetConnector, children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Date Column", className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: aggregateColumnState.calendarFunction?.dateColumn ? (_jsxs("div", { className: "query-builder__projection__calendar__date__column__label__box", children: [_jsx("div", { className: "query-builder__projection__calendar__date__column__prefix", children: "on" }), _jsx("div", { className: "query-builder__projection__calendar__date__column__label", children: getPropertyChainName(aggregateColumnState.calendarFunction.dateColumn, tdsState.queryBuilderState.explorerState
337
+ }, className: "query-builder__parameters__value__editor", resetValue: resetEndDate }) }), _jsx("div", { className: "query-builder__projection__calendar__date__column", ref: dropTargetConnector, children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Date Column", className: "query-builder__projection__calendar__date__column__dnd__placeholder", children: aggregateColumnState.calendarFunction?.dateColumn ? (_jsxs("div", { className: "query-builder__projection__calendar__date__column__label__box", children: [_jsx("div", { className: "query-builder__projection__calendar__date__column__prefix", children: "on" }), _jsx("div", { className: "query-builder__projection__calendar__date__column__label", children: getPropertyChainName(aggregateColumnState.calendarFunction.dateColumn, tdsState.queryBuilderState.explorerState
311
338
  .humanizePropertyName) })] })) : (_jsx("div", { className: "query-builder__projection__calendar__date__column__placeholder", children: "Drag and drop date column here" })) }) }), _jsx(CustomSelectorInput, { className: "query-builder__projection__calendar__type", options: calendarTypeOptions, onChange: onCalendarTypeOptionChange, value: selectedCalendarTypeOption ?? calendarTypeOptions[0], placeholder: "Select calendar type", disabled: !aggregateColumnState.calendarFunction, darkMode: !applicationStore.layoutService
312
339
  .TEMPORARY__isLightColorThemeEnabled })] }))] }) }));
313
340
  });
@@ -356,8 +383,14 @@ export const QueryBuilderTDSPanel = observer((props) => {
356
383
  isDragOver: monitor.isOver({ shallow: true }),
357
384
  }),
358
385
  }), [handleDrop]);
359
- const { showDroppableSuggestion } = useDragLayer((monitor) => ({
360
- showDroppableSuggestion: monitor.isDragging() &&
386
+ const [, projectionColumnDropConnector] = useDrop(() => ({
387
+ accept: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE],
388
+ collect: (monitor) => ({
389
+ isOverProjectionColumns: monitor.isOver({ shallow: false }),
390
+ }),
391
+ }), []);
392
+ const { isDroppable } = useDragLayer((monitor) => ({
393
+ isDroppable: monitor.isDragging() &&
361
394
  [
362
395
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
363
396
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
@@ -369,7 +402,7 @@ export const QueryBuilderTDSPanel = observer((props) => {
369
402
  }, [applicationStore, tdsState]);
370
403
  return (_jsxs(PanelContent, { children: [_jsxs("div", { className: "query-builder__projection__toolbar", children: [_jsx("button", { className: "panel__header__action", onClick: openResultSetModifierEditor, tabIndex: -1, title: "Configure result set modifiers...", children: _jsx(OptionsIcon, { className: "query-builder__icon query-builder__icon__query-option" }) }), _jsx("button", { className: "panel__header__action", disabled: tdsState.projectionColumns.length < 1, onClick: clearAllProjectionColumns, tabIndex: -1, title: tdsState.projectionColumns.length < 1
371
404
  ? 'No projection columns to clear'
372
- : 'Clear all projection columns', children: _jsx(TrashIcon, { className: "query-builder__icon query-builder__icon__query-option--small" }) }), _jsx("button", { className: "panel__header__action", onClick: addNewBlankDerivation, tabIndex: -1, title: "Add a new derivation", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "query-builder__projection__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, showDroppableSuggestion: showDroppableSuggestion, className: "query-builder__panel--droppable", dropTargetConnector: dropTargetConnector, children: [!projectionColumns.length && (_jsx(BlankPanelPlaceholder, { text: "Add a projection column", tooltipText: "Drag and drop properties here" })), Boolean(projectionColumns.length) && (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TDS, className: "query-builder__projection__columns", children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.columnState.columnName === ''
405
+ : 'Clear all projection columns', children: _jsx(TrashIcon, { className: "query-builder__icon query-builder__icon__query-option--small" }) }), _jsx("button", { className: "panel__header__action", onClick: addNewBlankDerivation, tabIndex: -1, title: "Add a new derivation", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "query-builder__projection__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, isDroppable: isDroppable, dropTargetConnector: dropTargetConnector, children: [!projectionColumns.length && (_jsx(BlankPanelPlaceholder, { text: "Add a projection column", tooltipText: "Drag and drop properties here" })), Boolean(projectionColumns.length) && (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TDS, className: "query-builder__projection__columns", ref: projectionColumnDropConnector, children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.columnState.columnName === ''
373
406
  ? '(unknown)'
374
407
  : item.columnState.columnName, types: [QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE] }), projectionColumns.map((projectionColumnState) => (_jsx(QueryBuilderProjectionColumnEditor, { projectionColumnState: projectionColumnState }, projectionColumnState.uuid)))] })), _jsx(QueryResultModifierModal, { tdsState: tdsState })] }) })] }));
375
408
  });