@finos/legend-query-builder 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderResultPanel.js +8 -2
  3. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  4. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +1 -1
  5. package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
  6. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +7 -0
  7. package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
  8. package/lib/components/execution-plan/ExecutionPlanViewer.js +109 -27
  9. package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
  10. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
  11. package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
  12. package/lib/components/execution-plan/ImplementationViewer.d.ts +23 -0
  13. package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -0
  14. package/lib/components/execution-plan/ImplementationViewer.js +35 -0
  15. package/lib/components/execution-plan/ImplementationViewer.js.map +1 -0
  16. package/lib/components/execution-plan/PartialClassResultViewer.d.ts +21 -0
  17. package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -0
  18. package/lib/components/execution-plan/PartialClassResultViewer.js +24 -0
  19. package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -0
  20. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  21. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  22. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
  23. package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  24. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  25. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  26. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +47 -0
  27. package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  28. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
  29. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  30. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
  31. package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
  32. package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
  33. package/lib/components/execution-plan/ResultTypeViewer.js +5 -1
  34. package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
  35. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +1 -1
  36. package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
  37. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +16 -3
  38. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  39. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +6 -0
  40. package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
  41. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +34 -12
  42. package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
  43. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +23 -0
  44. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -0
  45. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +57 -0
  46. package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -0
  47. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +28 -0
  48. package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -0
  49. package/lib/components/execution-plan/TempTableStrategyViewer.js +42 -0
  50. package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -0
  51. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +7 -1
  52. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  53. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +16 -10
  54. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  55. package/lib/components/shared/CustomDatePicker.d.ts +2 -1
  56. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  57. package/lib/components/shared/CustomDatePicker.js +31 -19
  58. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  59. package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
  60. package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
  61. package/lib/components/shared/QueryBuilderVariableSelector.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/execution-plan/ExecutionPlanState.d.ts +15 -1
  66. package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
  67. package/lib/stores/execution-plan/ExecutionPlanState.js +50 -3
  68. package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
  69. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  70. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +16 -4
  71. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  72. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +6 -4
  73. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
  74. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +43 -9
  75. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
  76. package/package.json +5 -5
  77. package/src/components/QueryBuilderResultPanel.tsx +7 -2
  78. package/src/components/execution-plan/AllocationExecutionNodeViewer.tsx +1 -1
  79. package/src/components/execution-plan/ExecutionPlanViewer.tsx +233 -57
  80. package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -0
  81. package/src/components/execution-plan/ImplementationViewer.tsx +76 -0
  82. package/src/components/execution-plan/PartialClassResultViewer.tsx +55 -0
  83. package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +190 -0
  84. package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +219 -0
  85. package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +204 -0
  86. package/src/components/execution-plan/ResultTypeViewer.tsx +4 -0
  87. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +66 -44
  88. package/src/components/execution-plan/SequenceExecutionNodeViewer.tsx +79 -15
  89. package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +264 -0
  90. package/src/components/execution-plan/TempTableStrategyViewer.tsx +97 -0
  91. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +23 -9
  92. package/src/components/shared/CustomDatePicker.tsx +65 -27
  93. package/src/components/shared/QueryBuilderVariableSelector.tsx +4 -1
  94. package/src/stores/execution-plan/ExecutionPlanState.ts +64 -1
  95. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +17 -7
  96. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +73 -9
  97. package/tsconfig.json +7 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAIL,KAAK,yCAAyC,EAC/C,MAAM,qBAAqB,CAAC;AAkB7B,eAAO,MAAM,+CAA+C,EAAE,KAAK,CAAC,EAAE,CAAC;IACrE,gBAAgB,EAAE,yCAAyC,CAAC;IAC5D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAwNC,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
19
+ import { PartialClassResultType, PropertyGraphFetchTree, RootGraphFetchTree, } from '@finos/legend-graph';
20
+ import { PanelListItem, PanelDivider, Button, PanelContent, TreeView, } from '@finos/legend-art';
21
+ import { guaranteeType, isNonNullable } from '@finos/legend-shared';
22
+ import { buildGraphFetchTreeData, buildPropertyGraphFetchTreeData, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
23
+ import { QueryBuilderGraphFetchTreeNodeContainer } from '../fetch-structure/QueryBuilderGraphFetchTreePanel.js';
24
+ import { PartialClassResultTypeViewer } from './PartialClassResultViewer.js';
25
+ export const StoreMappingGlobalGraphFetchExecutionNodeViewer = observer((props) => {
26
+ const { storeMappingNode, executionPlanState } = props;
27
+ let treeData = undefined;
28
+ try {
29
+ if (storeMappingNode.graphFetchTree instanceof RootGraphFetchTree) {
30
+ treeData = buildGraphFetchTreeData(guaranteeType(storeMappingNode.graphFetchTree, RootGraphFetchTree), true);
31
+ }
32
+ else if (storeMappingNode.graphFetchTree instanceof PropertyGraphFetchTree) {
33
+ treeData = buildPropertyGraphFetchTreeData(storeMappingNode.graphFetchTree);
34
+ }
35
+ }
36
+ catch {
37
+ //do nothing
38
+ }
39
+ const getChildNodes = (node) => node.childrenIds
40
+ .map((id) => {
41
+ if (treeData) {
42
+ return treeData.nodes.get(id);
43
+ }
44
+ return null;
45
+ })
46
+ .filter(isNonNullable);
47
+ const isReadOnly = true;
48
+ const applicationStore = executionPlanState.applicationStore;
49
+ return (_jsx(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: _jsxs("div", { className: "query-builder__store-mapping-global-graph-fetch__container", children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label", children: "Store Mapping Global Graph Fetch Execution Node Details" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__store-mapping-global-graph-fetch__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Details" })] }) }), _jsxs("tbody", { children: [storeMappingNode.parentIndex !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " ParentIndex" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.parentIndex })] })), storeMappingNode.enableConstraints !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "EnableConstraints" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.enableConstraints.toString() })] })), storeMappingNode.checked !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Checked" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.checked.toString() })] })), storeMappingNode.authDependent !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "AuthDependent" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.authDependent.toString() })] })), storeMappingNode.store && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Store" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.store })] })), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "LocalTreeIndices" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.localTreeIndices.toString()}]` })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "DependencyIndices" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.dependencyIndices.toString()}]` })] })] })] }), _jsx(PanelDivider, {}), treeData && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label2", children: "Graph Fetch Tree" }), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__config-group__content", children: _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__config-group__item", children: _jsx(TreeView, { components: {
50
+ TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
51
+ }, className: "query-builder-graph-fetch-tree__container__tree", treeData: treeData, getChildNodes: getChildNodes, innerProps: {
52
+ isReadOnly,
53
+ } }) }) }), _jsx(PanelDivider, {})] })), storeMappingNode.xStorePropertyFetchDetails && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__xstore", children: "xStorePropertyFetchDetails" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__store-mapping-global-graph-fetch__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Details" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " propertyPath " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.propertyPath })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " sourceMappingId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails
54
+ .sourceMappingId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " sourceSetId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.sourceSetId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " subTree " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.subTree })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " supportsCaching " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.supportsCaching.toString() })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " targetMappingId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails
55
+ .targetMappingId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " targetSetId" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.targetSetId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "targetPropertiesOrdered" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.xStorePropertyFetchDetails.targetPropertiesOrdered.toString()}]` })] })] })] })] })), storeMappingNode.resultType instanceof PartialClassResultType && (_jsx(PartialClassResultTypeViewer, { resultType: storeMappingNode.resultType })), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__btn", 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, {})] }) }));
56
+ });
57
+ //# sourceMappingURL=StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreMappingGlobalGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,+BAA+B,GAGhC,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,uCAAuC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,MAAM,CAAC,MAAM,+CAA+C,GAGvD,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEvD,IAAI,QAAQ,GAA+C,SAAS,CAAC;IACrE,IAAI;QACF,IAAI,gBAAgB,CAAC,cAAc,YAAY,kBAAkB,EAAE;YACjE,QAAQ,GAAG,uBAAuB,CAChC,aAAa,CAAC,gBAAgB,CAAC,cAAc,EAAE,kBAAkB,CAAC,EAClE,IAAI,CACL,CAAC;SACH;aAAM,IACL,gBAAgB,CAAC,cAAc,YAAY,sBAAsB,EACjE;YACA,QAAQ,GAAG,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I,gBAAgB,CAAC,0BAA0B,CAAC,uBAAuB,CAAC,QAAQ,EAAE,GAAG,GAAM,IAC3H,IACC,IACF,IACP,CACJ,EACA,gBAAgB,CAAC,UAAU,YAAY,sBAAsB,IAAI,CAChE,KAAC,4BAA4B,IAC3B,UAAU,EAAE,gBAAgB,CAAC,UAAU,GACvC,CACH,EACD,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,iEAAiE,YAC9E,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,IACZ,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,28 @@
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 TempTableStrategy } from '@finos/legend-graph';
18
+ import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
19
+ export declare enum TEMP_TABLE_STRATEGY_TYPES {
20
+ RESULT_SET = "resultSet",
21
+ TEMP_FILE = "tempFile",
22
+ SUB_QUERY = "subQuery"
23
+ }
24
+ export declare const TempTableStrategyViewer: React.FC<{
25
+ tempTableStrategy: TempTableStrategy;
26
+ executionPlanState: ExecutionPlanState;
27
+ }>;
28
+ //# sourceMappingURL=TempTableStrategyViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TempTableStrategyViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/TempTableStrategyViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAE5F,oBAAY,yBAAyB;IACnC,UAAU,cAAc;IACxB,SAAS,aAAa;IACtB,SAAS,aAAa;CACvB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAyDC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } 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 { PanelDivider, PanelListItem } from '@finos/legend-art';
18
+ import { LoadFromResultSetAsValueTuplesTempTableStrategy, LoadFromSubQueryTempTableStrategy, LoadFromTempFileTempTableStrategy, } from '@finos/legend-graph';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { ExecutionNodeViewer, generateExecutionNodeLabel, } from './ExecutionPlanViewer.js';
21
+ import {} from '../../stores/execution-plan/ExecutionPlanState.js';
22
+ export var TEMP_TABLE_STRATEGY_TYPES;
23
+ (function (TEMP_TABLE_STRATEGY_TYPES) {
24
+ TEMP_TABLE_STRATEGY_TYPES["RESULT_SET"] = "resultSet";
25
+ TEMP_TABLE_STRATEGY_TYPES["TEMP_FILE"] = "tempFile";
26
+ TEMP_TABLE_STRATEGY_TYPES["SUB_QUERY"] = "subQuery";
27
+ })(TEMP_TABLE_STRATEGY_TYPES || (TEMP_TABLE_STRATEGY_TYPES = {}));
28
+ export const TempTableStrategyViewer = observer((props) => {
29
+ const { tempTableStrategy, executionPlanState } = props;
30
+ let _type = '';
31
+ if (tempTableStrategy instanceof LoadFromResultSetAsValueTuplesTempTableStrategy) {
32
+ _type = TEMP_TABLE_STRATEGY_TYPES.RESULT_SET;
33
+ }
34
+ else if (tempTableStrategy instanceof LoadFromTempFileTempTableStrategy) {
35
+ _type = TEMP_TABLE_STRATEGY_TYPES.TEMP_FILE;
36
+ }
37
+ if (tempTableStrategy instanceof LoadFromSubQueryTempTableStrategy) {
38
+ _type = TEMP_TABLE_STRATEGY_TYPES.SUB_QUERY;
39
+ }
40
+ return (_jsxs("div", { className: "query-builder__temp-table-strategy__container", children: [_type && (_jsxs(PanelListItem, { className: "query-builder__temp-table-strategy__container__item", children: ["Type: ", _type] })), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Create Temp Table (${generateExecutionNodeLabel(tempTableStrategy.createTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.createTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {}), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Load Temp Table (${generateExecutionNodeLabel(tempTableStrategy.loadTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.loadTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {}), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Drop Temp Table (${generateExecutionNodeLabel(tempTableStrategy.dropTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.dropTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {})] }));
41
+ });
42
+ //# sourceMappingURL=TempTableStrategyViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TempTableStrategyViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TempTableStrategyViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,+CAA+C,EAC/C,iCAAiC,EACjC,iCAAiC,GAElC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAA2B,MAAM,mDAAmD,CAAC;AAE5F,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,qDAAwB,CAAA;IACxB,mDAAsB,CAAA;IACtB,mDAAsB,CAAA;AACxB,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAG/B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACxD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IACE,iBAAiB,YAAY,+CAA+C,EAC5E;QACA,KAAK,GAAG,yBAAyB,CAAC,UAAU,CAAC;KAC9C;SAAM,IAAI,iBAAiB,YAAY,iCAAiC,EAAE;QACzE,KAAK,GAAG,yBAAyB,CAAC,SAAS,CAAC;KAC7C;IACD,IAAI,iBAAiB,YAAY,iCAAiC,EAAE;QAClE,KAAK,GAAG,yBAAyB,CAAC,SAAS,CAAC;KAC7C;IACD,OAAO,CACL,eAAK,SAAS,EAAC,+CAA+C,aAC3D,KAAK,IAAI,CACR,MAAC,aAAa,IAAC,SAAS,EAAC,qDAAqD,uBACrE,KAAK,IACE,CACjB,EACD,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,sBAAsB,0BAA0B,CAC/C,iBAAiB,CAAC,mBAAmB,CACtC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,mBAAmB,EACpD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,EAEhB,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,oBAAoB,0BAA0B,CAC7C,iBAAiB,CAAC,iBAAiB,CACpC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,EAClD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,EAEhB,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,oBAAoB,0BAA0B,CAC7C,iBAAiB,CAAC,iBAAiB,CACpC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,EAClD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,9 +13,15 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type QueryBuilderGraphFetchTreeData } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type TreeNodeContainerProps } from '@finos/legend-art';
18
+ import { type QueryBuilderGraphFetchTreeData, type QueryBuilderGraphFetchTreeNodeData } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
17
19
  import { type GraphFetchSerializationState, GraphFetchExternalFormatSerializationState, type QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
18
20
  import { Binding } from '@finos/legend-graph';
21
+ export declare const QueryBuilderGraphFetchTreeNodeContainer: React.FC<TreeNodeContainerProps<QueryBuilderGraphFetchTreeNodeData, {
22
+ isReadOnly: boolean;
23
+ removeNode?: (node: QueryBuilderGraphFetchTreeNodeData) => void;
24
+ }>>;
19
25
  export declare const QueryBuilderGraphFetchExternalConfig: ((props: {
20
26
  graphFetchState: QueryBuilderGraphFetchTreeState;
21
27
  serializationState: GraphFetchExternalFormatSerializationState;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4CH,OAAO,EACL,KAAK,8BAA8B,EAIpC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,KAAK,4BAA4B,EACjC,0CAA0C,EAI1C,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAErF,OAAO,EAEL,OAAO,EAGR,MAAM,qBAAqB,CAAC;AAyQ7B,eAAO,MAAM,oCAAoC,WACvC;IACN,eAAe,EAAE,+BAA+B,CAAC;IACjD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoFF,CAAC;AAEF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;wBAC5B,4BAA4B;cACtC,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CA2QtB,CAAC;AAoFF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAwCjE,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EACL,KAAK,sBAAsB,EA8B5B,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAGxC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,KAAK,4BAA4B,EACjC,0CAA0C,EAI1C,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAErF,OAAO,EAEL,OAAO,EAKR,MAAM,qBAAqB,CAAC;AAmC7B,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAC5D,sBAAsB,CACpB,kCAAkC,EAClC;IACE,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,kCAAkC,KAAK,IAAI,CAAC;CACjE,CACF,CA2FF,CAAC;AA+IF,eAAO,MAAM,oCAAoC,WACvC;IACN,eAAe,EAAE,+BAA+B,CAAC;IACjD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoFF,CAAC;AAEF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;wBAC5B,4BAA4B;cACtC,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CA2QtB,CAAC;AAoFF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAwCjE,CAAC"}
@@ -17,14 +17,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  import { useCallback } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { useDrop } from 'react-dnd';
20
- import { clsx, TreeView, BlankPanelPlaceholder, ChevronDownIcon, ChevronRightIcon, TimesIcon, CheckSquareIcon, SquareIcon, InfoCircleIcon, PanelDropZone, BlankPanelContent, Dialog, ModalHeader, Modal, ModalBody, Panel, PanelForm, PanelFormTextField, PanelFormBooleanField, ModalFooterButton, ModalFooter, SerializeIcon, ResizablePanel, ResizablePanelSplitter, ResizablePanelGroup, BufferIcon, CustomSelectorInput, FolderIcon, } from '@finos/legend-art';
20
+ import { clsx, TreeView, BlankPanelPlaceholder, ChevronDownIcon, ChevronRightIcon, TimesIcon, CheckSquareIcon, SquareIcon, InfoCircleIcon, PanelDropZone, BlankPanelContent, Dialog, ModalHeader, Modal, ModalBody, Panel, PanelForm, PanelFormTextField, PanelFormBooleanField, ModalFooterButton, ModalFooter, SerializeIcon, ResizablePanel, ResizablePanelSplitter, ResizablePanelGroup, BufferIcon, CustomSelectorInput, FolderIcon, PURE_UnknownElementTypeIcon, } from '@finos/legend-art';
21
21
  import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
22
22
  import { deepClone, filterByType, guaranteeNonNullable, isNonNullable, prettyCONSTName, } from '@finos/legend-shared';
23
23
  import { removeNodeRecursively, isGraphFetchTreeDataEmpty, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
24
24
  import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
25
25
  import { GraphFetchExternalFormatSerializationState, GraphFetchPureSerializationState, PureSerializationConfig, SERIALIZATION_TYPE, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
26
26
  import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
27
- import { Binding, Package, getDescendantsOfPackage, } from '@finos/legend-graph';
27
+ import { Binding, Package, getDescendantsOfPackage, PropertyGraphFetchTree, RootGraphFetchTree, } from '@finos/legend-graph';
28
28
  import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
29
29
  import { buildElementOption, getClassPropertyIcon, } from '@finos/legend-lego/graph-editor';
30
30
  const getBindingFormatter = (props) => function BindingLabel(option) {
@@ -33,21 +33,27 @@ const getBindingFormatter = (props) => function BindingLabel(option) {
33
33
  : 'packageable-element-option-label';
34
34
  return (_jsxs("div", { className: className, children: [_jsx("div", { className: `${className}__name`, children: option.label }), option.value.package && (_jsx("div", { className: `${className}__tag`, children: option.value.path })), _jsx("div", { className: `${className}__tag`, children: option.value.contentType })] }));
35
35
  };
36
- const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
36
+ export const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
37
37
  const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
38
- const { removeNode } = innerProps;
39
- const property = node.tree.property.value;
40
- const type = property.genericType.value.rawType;
41
- const subType = node.tree.subType?.value;
38
+ const { isReadOnly, removeNode } = innerProps;
39
+ let property, type, subType;
40
+ if (node.tree instanceof PropertyGraphFetchTree) {
41
+ property = node.tree.property.value;
42
+ type = property.genericType.value.rawType;
43
+ subType = node.tree.subType?.value;
44
+ }
45
+ else if (node.tree instanceof RootGraphFetchTree) {
46
+ type = node.tree.class.value;
47
+ }
42
48
  const isExpandable = Boolean(node.childrenIds.length);
43
49
  const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
44
- const nodeTypeIcon = getClassPropertyIcon(type);
50
+ const nodeTypeIcon = type ? (getClassPropertyIcon(type)) : (_jsx(PURE_UnknownElementTypeIcon, {}));
45
51
  const toggleExpandNode = () => onNodeSelect?.(node);
46
- const deleteNode = () => removeNode(node);
52
+ const deleteNode = () => removeNode?.(node);
47
53
  return (_jsxs("div", { className: "tree-view__node__container query-builder-graph-fetch-tree__node__container", style: {
48
54
  paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2)}rem`,
49
55
  display: 'flex',
50
- }, children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__node__content", children: [_jsxs("div", { className: "tree-view__node__icon query-builder-graph-fetch-tree__node__icon", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }), _jsx("div", { className: "query-builder-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label query-builder-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, subType && (_jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type__label", children: subType.name }) })), _jsx("div", { className: "query-builder-graph-fetch-tree__node__type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__type__label", children: type.name }) })] })] }), _jsx("div", { className: "query-builder-graph-fetch-tree__node__actions", children: _jsx("button", { className: "query-builder-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, children: _jsx(TimesIcon, {}) }) })] }));
56
+ }, children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__node__content", children: [_jsxs("div", { className: "tree-view__node__icon query-builder-graph-fetch-tree__node__icon", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }), _jsx("div", { className: "query-builder-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label query-builder-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, subType && (_jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type__label", children: subType.name }) })), _jsx("div", { className: "query-builder-graph-fetch-tree__node__type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__type__label", children: type?.name }) })] })] }), _jsx("div", { className: "query-builder-graph-fetch-tree__node__actions", children: _jsx("button", { className: "query-builder-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, disabled: isReadOnly, children: _jsx(TimesIcon, {}) }) })] }));
51
57
  };
52
58
  const PureSerializationConfigModal = observer((props) => {
53
59
  const { pureSerializationState, graphFetchState, config } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAEL,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACnB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAEL,oCAAoC,GACrC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,0CAA0C,EAC1C,gCAAgC,EAChC,uBAAuB,EACvB,kBAAkB,GAEnB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EAAE,0B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AC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAEL,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACnB,UAAU,EACV,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAEL,oCAAoC,GACrC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,0CAA0C,EAC1C,gCAAgC,EAChC,uBAAuB,EACvB,kBAAkB,GAEnB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAEL,OAAO,EACP,OAAO,EACP,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,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ACH;IACD,OAAO,CACL,6BACe,qBAAqB,CAAC,yBAAyB,EAC5D,SAAS,EAAC,gBAAgB,YAE1B,KAAC,iBAAiB,cAChB,eAAK,SAAS,EAAC,kCAAkC,aAC/C,cAAK,SAAS,EAAC,qCAAqC,2DAE9C,EAEN,iBACE,SAAS,EAAC,yDAAyD,EACnE,OAAO,EAAE,mBAAmB,kCAGrB,IACL,GACY,GAChB,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
17
  import { type PureModel, type Type, type ValueSpecification, SimpleFunctionExpression, PrimitiveInstanceValue, type ObserverContext } from '@finos/legend-graph';
18
+ import { type ApplicationStore, type LegendApplicationConfig, type LegendApplicationPlugin, type LegendApplicationPluginManager } from '@finos/legend-application';
18
19
  export declare enum CUSTOM_DATE_PICKER_OPTION {
19
20
  ABSOLUTE_DATE = "Absolute Date",
20
21
  ABSOLUTE_TIME = "Absolute Time",
@@ -46,7 +47,7 @@ declare class DatePickerOption {
46
47
  /**
47
48
  * Build DatePickerOption from pure date functions or PrimitiveInstanceValue
48
49
  */
49
- export declare const buildDatePickerOption: (valueSpecification: SimpleFunctionExpression | PrimitiveInstanceValue) => DatePickerOption;
50
+ export declare const buildDatePickerOption: (valueSpecification: SimpleFunctionExpression | PrimitiveInstanceValue, applicationStore: ApplicationStore<LegendApplicationConfig, LegendApplicationPluginManager<LegendApplicationPlugin>>) => DatePickerOption;
50
51
  export declare const CustomDatePicker: React.FC<{
51
52
  valueSpecification: PrimitiveInstanceValue | SimpleFunctionExpression;
52
53
  graph: PureModel;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/shared/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAQH,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,wBAAwB,EA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AAC;AAuB7B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,yBAAyB;IACnC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,YAAY,oBAAoB;IAChC,WAAW,gBAAgB;CAC5B;AAyCD;;GAEG;AACH,cAAM,gBAAgB;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;gBAEF,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIzC;AAmhBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,uBACZ,wBAAwB,GAAG,sBAAsB,oBACnD,iBAChB,uBAAuB,EACvB,+BAA+B,uBAAuB,CAAC,CACxD,KACA,gBA6DF,CAAC;AAqdF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,kBAAkB,EAAE,sBAAsB,GAAG,wBAAwB,CAAC;IACtE,KAAK,EAAE,SAAS,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE;QACf,YAAY,EAAE,IAAI,CAAC;QACnB;;;;;;;;;;WAUG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,qBAAqB,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC1D,CAqMA,CAAC"}
@@ -16,11 +16,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
16
16
  */
17
17
  import { BasePopover, BaseRadioGroup, CustomSelectorInput, } from '@finos/legend-art';
18
18
  import { PRIMITIVE_TYPE, SimpleFunctionExpression, InstanceValue, GenericType, PrimitiveInstanceValue, GenericTypeExplicitReference, EnumValueExplicitReference, EnumValueInstanceValue, matchFunctionName, PrimitiveType, } from '@finos/legend-graph';
19
- import { guaranteeNonNullable, parseNumber, returnUndefOnError, UnsupportedOperationError, } from '@finos/legend-shared';
19
+ import { assertErrorThrown, guaranteeNonNullable, parseNumber, returnUndefOnError, UnsupportedOperationError, } from '@finos/legend-shared';
20
20
  import { useEffect, useRef, useState } from 'react';
21
21
  import { buildPrimitiveInstanceValue, createSupportedFunctionExpression, } from '../../stores/shared/ValueSpecificationEditorHelper.js';
22
22
  import { functionExpression_addParameterValue, instanceValue_setValue, instanceValue_setValues, valueSpecification_setGenericType, } from '../../stores/shared/ValueSpecificationModifierHelper.js';
23
23
  import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, } from '../../graph/QueryBuilderMetaModelConst.js';
24
+ import { useApplicationStore, } from '@finos/legend-application';
24
25
  export var CUSTOM_DATE_PICKER_OPTION;
25
26
  (function (CUSTOM_DATE_PICKER_OPTION) {
26
27
  CUSTOM_DATE_PICKER_OPTION["ABSOLUTE_DATE"] = "Absolute Date";
@@ -73,6 +74,7 @@ var CUSTOM_DATE_OPTION_REFERENCE_MOMENT;
73
74
  CUSTOM_DATE_OPTION_REFERENCE_MOMENT["FIRST_DAY_OF_QUARTER"] = "Start of Quarter";
74
75
  CUSTOM_DATE_OPTION_REFERENCE_MOMENT["FIRST_DAY_OF_MONTH"] = "Start of Month";
75
76
  CUSTOM_DATE_OPTION_REFERENCE_MOMENT["FIRST_DAY_OF_WEEK"] = "Start of Week";
77
+ CUSTOM_DATE_OPTION_REFERENCE_MOMENT["PERVIOUS_DAY_OF_WEEK"] = "Previous Day of Week";
76
78
  })(CUSTOM_DATE_OPTION_REFERENCE_MOMENT || (CUSTOM_DATE_OPTION_REFERENCE_MOMENT = {}));
77
79
  /**
78
80
  * DatePickerOption is the base class being used to display and generate the corresponding pure date function.
@@ -311,6 +313,8 @@ const buildCustomDateOptionReferenceMomentValue = (pureDateAjustFunction) => {
311
313
  return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_MONTH;
312
314
  case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK:
313
315
  return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_WEEK;
316
+ case QUERY_BUILDER_SUPPORTED_FUNCTIONS.PREVIOUS_DAY_OF_WEEK:
317
+ return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.PERVIOUS_DAY_OF_WEEK;
314
318
  default:
315
319
  throw new UnsupportedOperationError(`Can't build custom date option reference moment '${funcName}'`);
316
320
  }
@@ -319,25 +323,32 @@ const buildCustomDateOptionReferenceMomentValue = (pureDateAjustFunction) => {
319
323
  * Build CustomDateOption based on the pure date adjust() function.
320
324
  * Transform CustomDateOption if it matches any preserved custom adjust date functions. e.g. One Month Ago..
321
325
  */
322
- const buildCustomDateOption = (valueSpecification) => {
326
+ const buildCustomDateOption = (valueSpecification, applicationStore) => {
323
327
  if (valueSpecification instanceof SimpleFunctionExpression &&
324
328
  matchFunctionName(valueSpecification.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.ADJUST)) {
325
- const customDateOption = new CustomDateOption('', CUSTOM_DATE_PICKER_OPTION.CUSTOM_DATE, buildCustomDateOptionDurationValue(valueSpecification), buildCustomDateOptionUnitValue(valueSpecification), buildCustomDateOptionDirectionValue(valueSpecification), buildCustomDateOptionReferenceMomentValue(valueSpecification));
326
- const matchedPreservedCustomAdjustDates = reservedCustomDateOptions.filter((t) => t.generateDisplayLabel() === customDateOption.generateDisplayLabel());
327
- if (matchedPreservedCustomAdjustDates.length > 0) {
328
- customDateOption.label = guaranteeNonNullable(matchedPreservedCustomAdjustDates[0]?.label);
329
- customDateOption.value = guaranteeNonNullable(matchedPreservedCustomAdjustDates[0]?.value);
329
+ try {
330
+ const customDateOption = new CustomDateOption('', CUSTOM_DATE_PICKER_OPTION.CUSTOM_DATE, buildCustomDateOptionDurationValue(valueSpecification), buildCustomDateOptionUnitValue(valueSpecification), buildCustomDateOptionDirectionValue(valueSpecification), buildCustomDateOptionReferenceMomentValue(valueSpecification));
331
+ const matchedPreservedCustomAdjustDates = reservedCustomDateOptions.filter((t) => t.generateDisplayLabel() ===
332
+ customDateOption.generateDisplayLabel());
333
+ if (matchedPreservedCustomAdjustDates.length > 0) {
334
+ customDateOption.label = guaranteeNonNullable(matchedPreservedCustomAdjustDates[0]?.label);
335
+ customDateOption.value = guaranteeNonNullable(matchedPreservedCustomAdjustDates[0]?.value);
336
+ return customDateOption;
337
+ }
338
+ customDateOption.updateLabel();
330
339
  return customDateOption;
331
340
  }
332
- customDateOption.updateLabel();
333
- return customDateOption;
341
+ catch (error) {
342
+ assertErrorThrown(error);
343
+ applicationStore.notificationService.notifyError(error);
344
+ }
334
345
  }
335
346
  return new CustomDateOption('', '', 0, undefined, undefined, undefined);
336
347
  };
337
348
  /**
338
349
  * Build DatePickerOption from pure date functions or PrimitiveInstanceValue
339
350
  */
340
- export const buildDatePickerOption = (valueSpecification) => {
351
+ export const buildDatePickerOption = (valueSpecification, applicationStore) => {
341
352
  if (valueSpecification instanceof SimpleFunctionExpression) {
342
353
  switch (getSupportedDateFunctionFullPath(valueSpecification.functionName)) {
343
354
  case QUERY_BUILDER_SUPPORTED_FUNCTIONS.TODAY:
@@ -356,7 +367,7 @@ export const buildDatePickerOption = (valueSpecification) => {
356
367
  return new CustomPreviousDayOfWeekOption(`Previous ${valueSpecification.parametersValues[0].values[0]?.value.name}`, valueSpecification.parametersValues[0]
357
368
  .values[0]?.value.name);
358
369
  case QUERY_BUILDER_SUPPORTED_FUNCTIONS.ADJUST:
359
- return buildCustomDateOption(valueSpecification);
370
+ return buildCustomDateOption(valueSpecification, applicationStore);
360
371
  default:
361
372
  return new DatePickerOption('', '');
362
373
  }
@@ -542,6 +553,7 @@ const CustomPreviousDayOfWeekValueSpecificationEditor = (props) => {
542
553
  };
543
554
  export const CustomDatePicker = (props) => {
544
555
  const { valueSpecification, setValueSpecification, graph, observerContext, typeCheckOption, } = props;
556
+ const applicationStore = useApplicationStore();
545
557
  // For some cases where types need to be matched strictly.
546
558
  // Some options need to be filtered out for DateTime.
547
559
  const targetDateOptionsEnum = typeCheckOption.match
@@ -550,16 +562,16 @@ export const CustomDatePicker = (props) => {
550
562
  CUSTOM_DATE_PICKER_OPTION.NOW,
551
563
  ])
552
564
  : Object.values(CUSTOM_DATE_PICKER_OPTION);
553
- const [datePickerOption, setDatePickerOption] = useState(buildDatePickerOption(valueSpecification));
565
+ const [datePickerOption, setDatePickerOption] = useState(buildDatePickerOption(valueSpecification, applicationStore));
554
566
  const [anchorEl, setAnchorEl] = useState(null);
555
567
  const openCustomDatePickerPopover = (event) => {
556
568
  setAnchorEl(event.currentTarget);
557
569
  };
558
570
  const handleEnter = () => {
559
- setDatePickerOption(buildDatePickerOption(valueSpecification));
571
+ setDatePickerOption(buildDatePickerOption(valueSpecification, applicationStore));
560
572
  };
561
573
  const closeCustomDatePickerPopover = () => {
562
- setDatePickerOption(buildDatePickerOption(valueSpecification));
574
+ setDatePickerOption(buildDatePickerOption(valueSpecification, applicationStore));
563
575
  setAnchorEl(null);
564
576
  };
565
577
  const handleDatePickerOptionChange = (event) => {
@@ -590,19 +602,19 @@ export const CustomDatePicker = (props) => {
590
602
  case CUSTOM_DATE_PICKER_OPTION.ABSOLUTE_TIME:
591
603
  return (_jsx(AbsoluteTimeValueSpecificationEditor, { graph: graph, valueSpecification: valueSpecification, setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption, observerContext: observerContext }));
592
604
  case CUSTOM_DATE_PICKER_OPTION.CUSTOM_DATE:
593
- return (_jsx(CustomDateInstanceValueEditor, { graph: graph, observerContext: observerContext, customDateOptionValue: buildCustomDateOption(valueSpecification), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
605
+ return (_jsx(CustomDateInstanceValueEditor, { graph: graph, observerContext: observerContext, customDateOptionValue: buildCustomDateOption(valueSpecification, applicationStore), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
594
606
  case CUSTOM_DATE_PICKER_OPTION.FIRST_DAY_OF:
595
- return (_jsx(CustomFirstDayOfValueSpecificationEditor, { graph: graph, observerContext: observerContext, customDateAdjustOptionValue: buildDatePickerOption(valueSpecification), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
607
+ return (_jsx(CustomFirstDayOfValueSpecificationEditor, { graph: graph, observerContext: observerContext, customDateAdjustOptionValue: buildDatePickerOption(valueSpecification, applicationStore), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
596
608
  case CUSTOM_DATE_PICKER_OPTION.PREVIOUS_DAY_OF_WEEK:
597
- return (_jsx(CustomPreviousDayOfWeekValueSpecificationEditor, { graph: graph, observerContext: observerContext, customDateAdjustOptionValue: buildDatePickerOption(valueSpecification), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
609
+ return (_jsx(CustomPreviousDayOfWeekValueSpecificationEditor, { graph: graph, observerContext: observerContext, customDateAdjustOptionValue: buildDatePickerOption(valueSpecification, applicationStore), setValueSpecification: setValueSpecification, setDatePickerOption: setDatePickerOption }));
598
610
  default:
599
611
  return null;
600
612
  }
601
613
  };
602
614
  // make sure the date picker label is updated when the value is reset or changed somehow
603
615
  useEffect(() => {
604
- setDatePickerOption(buildDatePickerOption(valueSpecification));
605
- }, [valueSpecification]);
616
+ setDatePickerOption(buildDatePickerOption(valueSpecification, applicationStore));
617
+ }, [applicationStore, valueSpecification]);
606
618
  return (_jsxs(_Fragment, { children: [_jsx("button", { className: "value-spec-editor__date-picker__trigger", title: "Click to edit and pick from more date options", onClick: openCustomDatePickerPopover, children: datePickerOption.label }), _jsxs(BasePopover, { open: Boolean(anchorEl), TransitionProps: {
607
619
  onEnter: handleEnter,
608
620
  }, anchorEl: anchorEl, onClose: closeCustomDatePickerPopover, anchorOrigin: {