@finos/legend-extension-dsl-data-space-studio 0.1.340 → 0.1.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DSL_DataProduct_ElementDriver.d.ts.map +1 -1
- package/lib/components/DSL_DataProduct_ElementDriver.js +1 -10
- package/lib/components/DSL_DataProduct_ElementDriver.js.map +1 -1
- package/lib/components/DataSpaceEditor.js +9 -4
- package/lib/components/DataSpaceEditor.js.map +1 -1
- package/lib/components/DataSpaceExecutableQueryAction.d.ts +20 -0
- package/lib/components/DataSpaceExecutableQueryAction.d.ts.map +1 -0
- package/lib/components/DataSpaceExecutableQueryAction.js +85 -0
- package/lib/components/DataSpaceExecutableQueryAction.js.map +1 -0
- package/lib/components/DataSpaceExecutionContextEditor.d.ts +1 -12
- package/lib/components/DataSpaceExecutionContextEditor.d.ts.map +1 -1
- package/lib/components/DataSpaceExecutionContextEditor.js +206 -134
- package/lib/components/DataSpaceExecutionContextEditor.js.map +1 -1
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.d.ts.map +1 -1
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js +130 -26
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js.map +1 -1
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.d.ts.map +1 -1
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js +16 -75
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js.map +1 -1
- package/lib/components/DataSpaceGeneralEditor/{DataSpaceDefaultExecutionContextSection.d.ts → DataSpaceHomeTab.d.ts} +3 -3
- package/lib/components/DataSpaceGeneralEditor/DataSpaceHomeTab.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceHomeTab.js +100 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceHomeTab.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSidebar.d.ts +23 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSidebar.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSidebar.js +31 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSidebar.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceValidation.d.ts +28 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceValidation.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceValidation.js +45 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceValidation.js.map +1 -0
- package/lib/components/DataSpaceQueryAction.d.ts.map +1 -1
- package/lib/components/DataSpaceQueryAction.js +11 -8
- package/lib/components/DataSpaceQueryAction.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataSpaceEditorState.d.ts +9 -0
- package/lib/stores/DataSpaceEditorState.d.ts.map +1 -1
- package/lib/stores/DataSpaceEditorState.js +15 -0
- package/lib/stores/DataSpaceEditorState.js.map +1 -1
- package/lib/stores/DataSpaceExecutableTemplateState.d.ts +48 -0
- package/lib/stores/DataSpaceExecutableTemplateState.d.ts.map +1 -0
- package/lib/stores/DataSpaceExecutableTemplateState.js +105 -0
- package/lib/stores/DataSpaceExecutableTemplateState.js.map +1 -0
- package/lib/stores/DataSpaceExecutionContextState.d.ts +4 -9
- package/lib/stores/DataSpaceExecutionContextState.d.ts.map +1 -1
- package/lib/stores/DataSpaceExecutionContextState.js +13 -39
- package/lib/stores/DataSpaceExecutionContextState.js.map +1 -1
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts +12 -6
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js +45 -3
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js.map +1 -1
- package/package.json +9 -9
- package/src/components/DSL_DataProduct_ElementDriver.tsx +0 -14
- package/src/components/DataSpaceEditor.tsx +10 -10
- package/src/components/DataSpaceExecutableQueryAction.tsx +159 -0
- package/src/components/DataSpaceExecutionContextEditor.tsx +699 -558
- package/src/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.tsx +517 -60
- package/src/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.tsx +22 -198
- package/src/components/DataSpaceGeneralEditor/DataSpaceHomeTab.tsx +235 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceSidebar.tsx +60 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceValidation.tsx +83 -0
- package/src/components/DataSpaceQueryAction.tsx +19 -12
- package/src/stores/DataSpaceEditorState.ts +18 -0
- package/src/stores/DataSpaceExecutableTemplateState.ts +152 -0
- package/src/stores/DataSpaceExecutionContextState.ts +17 -70
- package/src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts +79 -6
- package/tsconfig.json +6 -2
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.d.ts.map +0 -1
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js +0 -138
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js.map +0 -1
- package/src/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.tsx +0 -393
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2026-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 { clsx, WarningIcon } from '@finos/legend-art';
|
|
18
|
+
export const InlineIssue = (props) => (_jsxs("div", { className: clsx('dataSpace-editor__inline-warning', {
|
|
19
|
+
'dataSpace-editor__inline-warning--error': props.issue.severity === 'error',
|
|
20
|
+
'dataSpace-editor__inline-warning--warning': props.issue.severity === 'warning',
|
|
21
|
+
}), children: [_jsx(WarningIcon, {}), _jsx("span", { children: props.issue.message })] }));
|
|
22
|
+
export const hasNoMappingSource = (executionContext) => !executionContext.mapping && !executionContext.mappingProvider;
|
|
23
|
+
export const collectExecutionContextValidationIssues = (executionContext) => {
|
|
24
|
+
const issues = [];
|
|
25
|
+
const hasMapping = Boolean(executionContext.mapping);
|
|
26
|
+
const hasMappingProvider = Boolean(executionContext.mappingProvider);
|
|
27
|
+
if (hasMapping && hasMappingProvider) {
|
|
28
|
+
issues.push({
|
|
29
|
+
severity: 'error',
|
|
30
|
+
message: `Only one of mapping and mapping provider can be set.`,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (executionContext.mappingProvider &&
|
|
34
|
+
!executionContext.mappingProvider.keys.length) {
|
|
35
|
+
issues.push({
|
|
36
|
+
severity: 'error',
|
|
37
|
+
message: `Select an access point group for the mapping provider.`,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return issues;
|
|
41
|
+
};
|
|
42
|
+
export const hasExecutionContextValidationError = (executionContext) => hasNoMappingSource(executionContext) ||
|
|
43
|
+
collectExecutionContextValidationIssues(executionContext).some((issue) => issue.severity === 'error');
|
|
44
|
+
export const dataSpaceNeedsExecutionContextOrExecutable = (dataSpace) => !dataSpace.executionContexts?.length && !dataSpace.executables?.length;
|
|
45
|
+
//# sourceMappingURL=DataSpaceValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceValidation.js","sourceRoot":"","sources":["../../../src/components/DataSpaceGeneralEditor/DataSpaceValidation.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAWtD,MAAM,CAAC,MAAM,WAAW,GAAkD,CACxE,KAAK,EACL,EAAE,CAAC,CACH,eACE,SAAS,EAAE,IAAI,CAAC,kCAAkC,EAAE;QAClD,yCAAyC,EACvC,KAAK,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO;QAClC,2CAA2C,EACzC,KAAK,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS;KACrC,CAAC,aAEF,KAAC,WAAW,KAAG,EACf,yBAAO,KAAK,CAAC,KAAK,CAAC,OAAO,GAAQ,IAC9B,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,gBAA2C,EAClC,EAAE,CAAC,CAAC,gBAAgB,CAAC,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC;AAE7E,MAAM,CAAC,MAAM,uCAAuC,GAAG,CACrD,gBAA2C,EACf,EAAE;IAC9B,MAAM,MAAM,GAA+B,EAAE,CAAC;IAC9C,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACrE,IAAI,UAAU,IAAI,kBAAkB,EAAE,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC;YACV,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,sDAAsD;SAChE,CAAC,CAAC;IACL,CAAC;IACD,IACE,gBAAgB,CAAC,eAAe;QAChC,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,EAC7C,CAAC;QACD,MAAM,CAAC,IAAI,CAAC;YACV,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,wDAAwD;SAClE,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,gBAA2C,EAClC,EAAE,CACX,kBAAkB,CAAC,gBAAgB,CAAC;IACpC,uCAAuC,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAC5D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO,CACtC,CAAC;AAEJ,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,SAAoB,EACX,EAAE,CACX,CAAC,SAAS,CAAC,iBAAiB,EAAE,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryAction.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQueryAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,SAAS,EAEV,MAAM,8CAA8C,CAAC;AAWtD,eAAO,MAAM,cAAc,GACzB,WAAW,SAAS,EACpB,aAAa,WAAW,KACvB,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryAction.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQueryAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,SAAS,EAEV,MAAM,8CAA8C,CAAC;AAWtD,eAAO,MAAM,cAAc,GACzB,WAAW,SAAS,EACpB,aAAa,WAAW,KACvB,OAAO,CAAC,IAAI,CAqFd,CAAC;AAEF,eAAO,MAAM,oBAAoB,WACvB;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE;;CAUjC,CAAC"}
|
|
@@ -18,35 +18,38 @@ import { MenuContentItem } from '@finos/legend-art';
|
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
19
|
import { useEditorStore, } from '@finos/legend-application-studio';
|
|
20
20
|
import { flowResult } from 'mobx';
|
|
21
|
-
import { guaranteeType } from '@finos/legend-shared';
|
|
21
|
+
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
|
22
22
|
import { DataSpace, resolveUsableDataSpaceClasses, } from '@finos/legend-extension-dsl-data-space/graph';
|
|
23
23
|
import { DataSpaceQueryBuilderState, } from '@finos/legend-extension-dsl-data-space/application';
|
|
24
24
|
import { QueryBuilderActionConfig, QueryBuilderAdvancedWorkflowState, } from '@finos/legend-query-builder';
|
|
25
25
|
import { RuntimePointer } from '@finos/legend-graph';
|
|
26
26
|
export const queryDataSpace = async (dataSpace, editorStore) => {
|
|
27
27
|
const embeddedQueryBuilderState = editorStore.embeddedQueryBuilderState;
|
|
28
|
+
const initialDefaultExecutionContext = guaranteeNonNullable(dataSpace.defaultExecutionContext, `Can't query data product '${dataSpace.path}': no default execution context defined`);
|
|
28
29
|
await flowResult(embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
|
|
29
30
|
setupQueryBuilderState: async () => {
|
|
30
31
|
const sourceInfo = Object.assign({}, editorStore.editorMode.getSourceInfo(), {
|
|
31
32
|
dataSpace: dataSpace.path,
|
|
32
33
|
});
|
|
33
|
-
const queryBuilderState = new DataSpaceQueryBuilderState(editorStore.applicationStore, editorStore.graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, QueryBuilderActionConfig.INSTANCE, dataSpace,
|
|
34
|
+
const queryBuilderState = new DataSpaceQueryBuilderState(editorStore.applicationStore, editorStore.graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, QueryBuilderActionConfig.INSTANCE, dataSpace, initialDefaultExecutionContext, false, undefined, async (dataSpaceInfo) => {
|
|
34
35
|
queryBuilderState.dataSpace = guaranteeType(queryBuilderState.graphManagerState.graph.getElement(dataSpaceInfo.path), DataSpace);
|
|
35
|
-
queryBuilderState.
|
|
36
|
+
const targetDefault = guaranteeNonNullable(queryBuilderState.dataSpace.defaultExecutionContext, `Can't query data product '${queryBuilderState.dataSpace.path}': no default execution context defined`);
|
|
37
|
+
queryBuilderState.setExecutionContext(targetDefault);
|
|
36
38
|
await queryBuilderState.propagateExecutionContextChange();
|
|
37
39
|
}, undefined, undefined, undefined, undefined, editorStore.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
|
38
|
-
queryBuilderState.setExecutionContext(
|
|
39
|
-
const mapping = queryBuilderState.executionContext.mapping.value;
|
|
40
|
+
queryBuilderState.setExecutionContext(initialDefaultExecutionContext);
|
|
41
|
+
const mapping = guaranteeNonNullable(queryBuilderState.executionContext.mapping, `Can't query execution context '${queryBuilderState.executionContext.name}': no mapping configured`).value;
|
|
40
42
|
queryBuilderState.changeMapping(mapping);
|
|
41
43
|
const mappingModelCoverageAnalysisResult = queryBuilderState.dataSpaceAnalysisResult?.mappingToMappingCoverageResult?.get(mapping.path);
|
|
42
44
|
if (mappingModelCoverageAnalysisResult) {
|
|
43
45
|
queryBuilderState.explorerState.mappingModelCoverageAnalysisResult =
|
|
44
46
|
mappingModelCoverageAnalysisResult;
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
const defaultRuntime = queryBuilderState.executionContext.defaultRuntime;
|
|
49
|
+
if (defaultRuntime) {
|
|
50
|
+
queryBuilderState.changeRuntime(new RuntimePointer(defaultRuntime));
|
|
51
|
+
}
|
|
47
52
|
const compatibleClasses = resolveUsableDataSpaceClasses(queryBuilderState.dataSpace, mapping, queryBuilderState.graphManagerState);
|
|
48
|
-
// if there is no chosen class or the chosen one is not compatible
|
|
49
|
-
// with the mapping then pick a compatible class if possible
|
|
50
53
|
if (!queryBuilderState.sourceClass ||
|
|
51
54
|
!compatibleClasses.includes(queryBuilderState.sourceClass)) {
|
|
52
55
|
const possibleNewClass = compatibleClasses[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryAction.js","sourceRoot":"","sources":["../../src/components/DataSpaceQueryAction.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,cAAc,GACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryAction.js","sourceRoot":"","sources":["../../src/components/DataSpaceQueryAction.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,cAAc,GACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EACL,SAAS,EACT,6BAA6B,GAC9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,SAAoB,EACpB,WAAwB,EACT,EAAE;IACjB,MAAM,yBAAyB,GAAG,WAAW,CAAC,yBAAyB,CAAC;IACxE,MAAM,8BAA8B,GAAG,oBAAoB,CACzD,SAAS,CAAC,uBAAuB,EAC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,gBAAgB,CAAC,mBAAmB,CACjE,KAAK,IAAI,EAAE;QACT,MAAM,cAAc,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC/C,CAAC,CACF,CAAC;IACF,OAAO,KAAC,eAAe,IAAC,OAAO,EAAE,UAAU,yBAA4B,CAAC;AAC1E,CAAC,CACF,CAAC"}
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-extension-dsl-data-space-studio v0.1.
|
|
1
|
+
/** @license @finos/legend-extension-dsl-data-space-studio v0.1.342
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
.template-query-promotor{height:100%;position:relative;background:var(--color-bg-app)}.template-query-promotor__body{height:calc(100% - 2.2rem);width:100%}.template-query-promotor__title{font-size:3.6rem;font-family:"Roboto Condensed",sans-serif;font-weight:700;color:var(--color-text-secondary);margin-bottom:1.8rem}.template-query-promotor__title__prompt{font-family:"Roboto Mono",monospace;font-size:1.4rem;padding-bottom:1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-text-disabled)}.template-query-promotor__content{height:100%;width:calc(100% - 5rem)}.template-query-promotor__content__main{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:60vh;width:60vw}.template-query-promotor__actions{margin-top:.5rem;width:100%;display:flex;justify-content:flex-end}.template-query-promotor__group__header{display:flex;align-items:center;justify-content:center;height:1.8rem;width:13rem;padding:0 1rem;background:var(--color-bg-selected);color:var(--color-text-primary);font-weight:500;font-size:1.2rem;border-radius:.2rem .2rem 0 0}.template-query-promotor__group__content{padding:.5rem;border:.1rem solid var(--color-border-strong);border-radius:0 .2rem .2rem}.template-query-promotor__group--workspace .template-query-promotor__group__header{background:var(--color-purple-400)}.template-query-promotor__group--workspace .template-query-promotor__group__content{border-color:var(--color-purple-400)}.template-query-promotor__group--template .template-query-promotor__group__header{background:var(--color-blue-200)}.template-query-promotor__group--template .template-query-promotor__group__content{border-color:var(--color-blue-200)}.template-query-promotor__group+.template-query-promotor__group{margin-top:1.5rem}.template-query-promotor__input{display:flex}.template-query-promotor__input__label{display:flex;align-items:center;width:11rem;background:var(--color-bg-tag);font-family:"Roboto Mono",monospace;font-size:1.4rem;padding:0 1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-text-disabled)}.template-query-promotor__input__icon{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;background:var(--color-bg-tag);border-radius:.2rem 0 0 .2rem}.template-query-promotor__input__icon svg{color:var(--color-text-disabled)}.template-query-promotor__input__icon--query,.template-query-promotor__input__icon--project,.template-query-promotor__input__icon--workspace{font-size:1.8rem}.template-query-promotor__input__input{flex:1 0}.template-query-promotor__input+.template-query-promotor__input{margin-top:.5rem}.template-query-promotor__next-btn{padding:1rem}.dataSpace-editor--dark__header{padding-left:0;background:var(--color-dark-grey-50)}.dataSpace-editor--dark__header__configs{display:flex;width:100%}.dataSpace-editor--dark__header__name{background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-300);color:var(--color-light-grey-0)}.dataSpace-editor--dark__header__name::placeholder{color:var(--color-dark-grey-300)}.dataSpace-editor .panel__content__form__section__list__item{background-color:var(--color-bg-panel);margin-bottom:.5rem;padding:.5rem;border-radius:3px;width:fit-content}.dataSpace-editor .panel__content__form__section__list__item__content__label{color:var(--color-text-secondary);font-size:1.2rem}.dataSpace-editor .panel__content__form__section__list__item__content__title{color:var(--color-text-secondary);font-size:1.2rem}.dataSpace-editor .panel__content__form__section__list__item__content__form{display:flex;flex-direction:column;width:100%;margin-right:1rem}.dataSpace-editor .panel__content__form__section__list__item__content__form .panel__content__form__section{margin-bottom:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__form .panel__content__form__section:last-child{margin-bottom:0}.dataSpace-editor .panel__content__form__section__list__item__content__actions{display:flex;align-items:center;gap:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__actions__label{color:var(--color-text-secondary);font-size:1.2rem;margin-left:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-text-secondary)}.dataSpace-editor .panel__content__form__section__list__item__content__actions__btn:hover{color:var(--color-text-primary)}.dataSpace-editor .panel__content__form__section__list__item__form{display:flex;flex-direction:column;margin-top:.5rem}.dataSpace-editor .panel__content__form__section__list__item__form .panel__content__form__section{margin-bottom:.5rem}.dataSpace-editor .panel__content__form__section__list__item__form .panel__content__form__section:last-child{margin-bottom:0}.dataSpace-editor .panel__content__form__section__list__new-item__input{height:fit-content;width:40rem;padding:0}.dataSpace-editor .panel__content__form__section__list__add{display:flex;align-items:center;margin-top:.5rem}.dataSpace-editor .panel__content__form__section__list__add__input{flex:1}.dataSpace-editor .panel__content__form__section__list__add__actions{margin-left:.5rem}.dataSpace-editor .panel__content__form__section__list__add__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-text-secondary)}.dataSpace-editor .panel__content__form__section__list__add__actions__btn:hover{color:var(--color-text-primary)}.dataSpace-editor{background-color:var(--color-bg-panel)}.dataSpace-editor .panel__content{background-color:var(--color-bg-panel)}.dataSpace-editor .panel__header{background-color:var(--color-bg-panel-header)}.dataSpace-editor .panel__header__actions{gap:.5rem}.dataSpace-editor__general .panel__content__form__section__list__item{height:fit-content}.dataSpace-editor__general .panel__content__form__section__list__item__form{flex-direction:row}.dataSpace-editor__general .panel__content__form__section__list__item__content{display:flex;align-items:center}.dataSpace-editor__general .panel__content__form__section__list__item .panel__content__form__section{margin-top:0}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__title{width:25rem}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__description{width:40rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__label{width:35rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude{display:flex;align-items:center}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude__btn{padding:0}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions__btn{margin-left:1rem}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content{flex-direction:column;align-items:start}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content__actions__btn{margin-top:2.4rem}.dataSpace-editor__general__support-info__content{margin-top:1rem}.dataSpace-editor__general__support-info__new-email{display:flex;align-items:center;margin-right:.5rem}.dataSpace-editor__general .panel__content__form{max-width:unset}.dataSpace-editor__general .selector-input--dark{max-width:40rem}.dataSpace-editor__general .textarea--ai-suggested{border-color:var(--color-category-ai-suggestion) !important;color:var(--color-category-ai-suggestion) !important}.dataSpace-editor__ai-suggest-btn{display:flex;align-items:center;display:inline-flex;gap:.4rem;height:2rem;padding:0 .6rem;font-size:1.2rem;border:none;border-radius:.2rem;background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.dataSpace-editor__ai-suggest-btn svg{font-size:1.2rem}.dataSpace-editor__ai-suggest-btn:hover{background:var(--color-accent-hover)}.dataSpace-editor__ai-suggest-btn[disabled]{opacity:.5;cursor:default}.dataSpace-editor__ai-suggestion-badge{display:flex;align-items:center;display:inline-flex;gap:.4rem;font-size:1rem;font-weight:500;color:var(--color-category-ai-suggestion)}.dataSpace-editor__ai-suggestion-badge svg{font-size:1.2rem}.dataSpace-editor__ai-suggestion__actions{display:flex;align-items:center;gap:.5rem;margin-top:.6rem}.dataSpace-editor__ai-suggestion__apply-btn{height:2.8rem;padding:0 1rem;font-size:1.2rem}.dataSpace-editor__ai-suggestion__dismiss-btn{height:2.8rem;padding:0 1rem;font-size:1.2rem;background:var(--color-dark-grey-200);color:var(--color-light-grey-200)}.dataSpace-editor__ai-suggestion__dismiss-btn:hover{background:var(--color-dark-grey-250)}.execution-context-editor__form-section{display:flex;flex-direction:column;margin-bottom:1rem}.execution-context-editor__form-section__label{font-size:1.2rem;font-weight:500;margin-bottom:.5rem;color:var(--color-light-grey-200)}.execution-context-editor__form-section__content__input,.execution-context-editor__form-section__content__textarea{width:100%;padding:.5rem;background-color:var(--color-bg-panel);color:var(--color-text-secondary);border:1px solid var(--color-border-default);border-radius:2px}.execution-context-editor__form-section__content__textarea{min-height:100px;resize:vertical}.service-execution-editor__configuration__items{background-color:var(--color-bg-panel);padding:1rem;border-radius:3px}.service-execution-editor__execution{background-color:var(--color-bg-panel)}.service-multi-execution-editor__panel{background-color:var(--color-bg-panel);overflow-y:auto}.service-execution-editor__configuration__item__dropdown{background-color:var(--color-bg-panel);color:var(--color-text-secondary)}/*# sourceMappingURL=index.css.map */
|
|
17
|
+
.template-query-promotor{height:100%;position:relative;background:var(--color-bg-app)}.template-query-promotor__body{height:calc(100% - 2.2rem);width:100%}.template-query-promotor__title{font-size:3.6rem;font-family:"Roboto Condensed",sans-serif;font-weight:700;color:var(--color-text-secondary);margin-bottom:1.8rem}.template-query-promotor__title__prompt{font-family:"Roboto Mono",monospace;font-size:1.4rem;padding-bottom:1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-text-disabled)}.template-query-promotor__content{height:100%;width:calc(100% - 5rem)}.template-query-promotor__content__main{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:60vh;width:60vw}.template-query-promotor__actions{margin-top:.5rem;width:100%;display:flex;justify-content:flex-end}.template-query-promotor__group__header{display:flex;align-items:center;justify-content:center;height:1.8rem;width:13rem;padding:0 1rem;background:var(--color-bg-selected);color:var(--color-text-primary);font-weight:500;font-size:1.2rem;border-radius:.2rem .2rem 0 0}.template-query-promotor__group__content{padding:.5rem;border:.1rem solid var(--color-border-strong);border-radius:0 .2rem .2rem}.template-query-promotor__group--workspace .template-query-promotor__group__header{background:var(--color-purple-400)}.template-query-promotor__group--workspace .template-query-promotor__group__content{border-color:var(--color-purple-400)}.template-query-promotor__group--template .template-query-promotor__group__header{background:var(--color-blue-200)}.template-query-promotor__group--template .template-query-promotor__group__content{border-color:var(--color-blue-200)}.template-query-promotor__group+.template-query-promotor__group{margin-top:1.5rem}.template-query-promotor__input{display:flex}.template-query-promotor__input__label{display:flex;align-items:center;width:11rem;background:var(--color-bg-tag);font-family:"Roboto Mono",monospace;font-size:1.4rem;padding:0 1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-text-disabled)}.template-query-promotor__input__icon{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;background:var(--color-bg-tag);border-radius:.2rem 0 0 .2rem}.template-query-promotor__input__icon svg{color:var(--color-text-disabled)}.template-query-promotor__input__icon--query,.template-query-promotor__input__icon--project,.template-query-promotor__input__icon--workspace{font-size:1.8rem}.template-query-promotor__input__input{flex:1 0}.template-query-promotor__input+.template-query-promotor__input{margin-top:.5rem}.template-query-promotor__next-btn{padding:1rem}.dataSpace-editor--dark__header{padding-left:0;background:var(--color-dark-grey-50)}.dataSpace-editor--dark__header__configs{display:flex;width:100%}.dataSpace-editor--dark__header__name{background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-300);color:var(--color-light-grey-0)}.dataSpace-editor--dark__header__name::placeholder{color:var(--color-dark-grey-300)}.dataSpace-editor .panel__content__form__section__list__item{background-color:var(--color-bg-panel);margin-bottom:.5rem;padding:.5rem;border-radius:3px;width:fit-content}.dataSpace-editor .panel__content__form__section__list__item__content__label{color:var(--color-text-secondary);font-size:1.2rem}.dataSpace-editor .panel__content__form__section__list__item__content__title{color:var(--color-text-secondary);font-size:1.2rem}.dataSpace-editor .panel__content__form__section__list__item__content__form{display:flex;flex-direction:column;width:100%;margin-right:1rem}.dataSpace-editor .panel__content__form__section__list__item__content__form .panel__content__form__section{margin-bottom:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__form .panel__content__form__section:last-child{margin-bottom:0}.dataSpace-editor .panel__content__form__section__list__item__content__actions{display:flex;align-items:center;gap:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__actions__label{color:var(--color-text-secondary);font-size:1.2rem;margin-left:.5rem}.dataSpace-editor .panel__content__form__section__list__item__content__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-text-secondary)}.dataSpace-editor .panel__content__form__section__list__item__content__actions__btn:hover{color:var(--color-text-primary)}.dataSpace-editor .panel__content__form__section__list__item__form{display:flex;flex-direction:column;margin-top:.5rem}.dataSpace-editor .panel__content__form__section__list__item__form .panel__content__form__section{margin-bottom:.5rem}.dataSpace-editor .panel__content__form__section__list__item__form .panel__content__form__section:last-child{margin-bottom:0}.dataSpace-editor .panel__content__form__section__list__new-item__input{height:fit-content;width:40rem;padding:0}.dataSpace-editor .panel__content__form__section__list__add{display:flex;align-items:center;margin-top:.5rem}.dataSpace-editor .panel__content__form__section__list__add__input{flex:1}.dataSpace-editor .panel__content__form__section__list__add__actions{margin-left:.5rem}.dataSpace-editor .panel__content__form__section__list__add__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-text-secondary)}.dataSpace-editor .panel__content__form__section__list__add__actions__btn:hover{color:var(--color-text-primary)}.dataSpace-editor{background-color:var(--color-bg-panel)}.dataSpace-editor .panel__content{background-color:var(--color-bg-panel)}.dataSpace-editor .panel__header{background-color:var(--color-bg-panel-header)}.dataSpace-editor .panel__header__actions{gap:.5rem}.dataSpace-editor__general{display:flex;flex-direction:row;height:100%;width:100%}.dataSpace-editor__general .panel__content__form__section__list__item{height:fit-content}.dataSpace-editor__general .panel__content__form__section__list__item__form{flex-direction:row}.dataSpace-editor__general .panel__content__form__section__list__item__content{display:flex;align-items:center}.dataSpace-editor__general .panel__content__form__section__list__item .panel__content__form__section{margin-top:0}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__title{width:25rem}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__description{width:40rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__label{width:35rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude{display:flex;align-items:center}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude__btn{padding:0}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions__btn{margin-left:1rem}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content{flex-direction:column;align-items:start}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content__actions__btn{margin-top:2.4rem}.dataSpace-editor__general__support-info__content{margin-top:1rem}.dataSpace-editor__general__support-info__new-email{display:flex;align-items:center;margin-right:.5rem}.dataSpace-editor__general .panel__content__form{max-width:unset}.dataSpace-editor__general .selector-input--dark{max-width:40rem}.dataSpace-editor__general .textarea--ai-suggested{border-color:var(--color-category-ai-suggestion) !important;color:var(--color-category-ai-suggestion) !important}.dataSpace-editor__ai-suggest-btn{display:flex;align-items:center;display:inline-flex;gap:.4rem;height:2rem;padding:0 .6rem;font-size:1.2rem;border:none;border-radius:.2rem;background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.dataSpace-editor__ai-suggest-btn svg{font-size:1.2rem}.dataSpace-editor__ai-suggest-btn:hover{background:var(--color-accent-hover)}.dataSpace-editor__ai-suggest-btn[disabled]{opacity:.5;cursor:default}.dataSpace-editor__ai-suggestion-badge{display:flex;align-items:center;display:inline-flex;gap:.4rem;font-size:1rem;font-weight:500;color:var(--color-category-ai-suggestion)}.dataSpace-editor__ai-suggestion-badge svg{font-size:1.2rem}.dataSpace-editor__ai-suggestion__actions{display:flex;align-items:center;gap:.5rem;margin-top:.6rem}.dataSpace-editor__ai-suggestion__apply-btn{height:2.8rem;padding:0 1rem;font-size:1.2rem}.dataSpace-editor__ai-suggestion__dismiss-btn{height:2.8rem;padding:0 1rem;font-size:1.2rem;background:var(--color-dark-grey-200);color:var(--color-light-grey-200)}.dataSpace-editor__ai-suggestion__dismiss-btn:hover{background:var(--color-dark-grey-250)}.dataSpace-editor__inline-warning{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;margin:.5rem 0;border-radius:.3rem;font-size:1.4rem;border:.1rem solid rgba(0,0,0,0)}.dataSpace-editor__inline-warning--error{background:var(--color-status-error-bg);border-color:var(--color-status-error);color:var(--color-status-error)}.dataSpace-editor__inline-warning--warning{background:var(--color-status-warning-bg);border-color:var(--color-status-warning);color:var(--color-status-warning)}.dataSpace-editor__inline-warning svg{flex-shrink:0;font-size:1.4rem}.dataSpace-editor__general__content{flex:1;min-width:0;height:100%;overflow-y:auto}.data-space__viewer__activity-bar.dataSpace-editor__sidebar{flex:0 0 auto;width:9.5rem;background:var(--color-bg-panel-header);border-right:.1rem solid var(--color-border-default);border-radius:0}.data-space__viewer__activity-bar.dataSpace-editor__sidebar .data-space__viewer__activity-bar__item{flex-direction:column;height:auto;width:100%;padding:1rem 0;gap:.4rem}.data-space__viewer__activity-bar.dataSpace-editor__sidebar .data-space__viewer__activity-bar__item svg{font-size:1.8rem}.dataSpace-editor__sidebar__item__label{font-size:1.05rem;text-align:center;line-height:1.3;white-space:normal;padding:0 .4rem}.dataSpace-editor__tab-panel{height:100%;width:100%;display:flex;flex-direction:column}.dataSpace-editor__tab{display:flex;align-items:center;gap:.5rem}.dataSpace-editor__tab__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16rem}.dataSpace-editor__tab__badge{display:inline-flex;align-items:center;padding:.1rem .5rem;border-radius:.2rem;font-size:1rem;font-weight:600;background:var(--color-dark-blue-shade-200);color:var(--color-blue-100)}.dataSpace-editor__tab__error-icon{color:var(--color-status-error);font-size:1.2rem}.dataSpace-editor__tab__close-btn{display:flex;align-items:center;justify-content:center;padding:0;background:rgba(0,0,0,0);border:none;color:var(--color-text-muted);cursor:pointer}.dataSpace-editor__tab__close-btn:hover{color:var(--color-status-error)}.dataSpace-editor__configuration{padding:1.2rem 1.4rem;display:flex;flex-direction:column;gap:1.4rem}.dataSpace-editor__configuration__section{display:flex;flex-direction:column;gap:.6rem;padding:1rem 1.2rem;border:.1rem solid var(--color-dark-grey-200);border-radius:.3rem;background:var(--color-dark-grey-80)}.dataSpace-editor__configuration__section__header{display:flex;flex-direction:column;gap:.2rem}.dataSpace-editor__configuration__section__header .dataSpace-editor__inline-warning{margin:.6rem 0 0}.dataSpace-editor__configuration__section__title{font-size:1.4rem;font-weight:600;color:var(--color-light-grey-200)}.dataSpace-editor__configuration__section__hint{font-size:1.4rem;color:var(--color-light-grey-400)}.dataSpace-editor__configuration__section__body{display:flex;flex-direction:column;gap:.8rem}.dataSpace-editor__configuration__row{display:flex;align-items:center;gap:.6rem}.dataSpace-editor__configuration__row__icon{display:flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;background:var(--color-dark-grey-200);border-radius:.2rem;color:var(--color-light-grey-200)}.dataSpace-editor__configuration__row__label{min-width:14rem;white-space:nowrap;font-size:1.4rem;color:var(--color-light-grey-200)}.dataSpace-editor__configuration__row__select{flex:1}.dataSpace-editor__configuration__row__btn{height:2.6rem;width:2.6rem;display:flex;align-items:center;justify-content:center;padding:0}.dataSpace-editor__configuration__row__placeholder{flex:1;font-size:1.4rem;color:var(--color-light-grey-400);font-style:italic}.dataSpace-editor__configuration__row--placeholder{background:rgba(0,0,0,0)}.dataSpace-editor__configuration__issues{display:flex;flex-direction:column;gap:.4rem}.dataSpace-editor__tab-toggle{display:inline-flex;padding:.2rem;border-radius:.3rem;background:var(--color-dark-grey-200);align-self:flex-start;gap:.2rem}.dataSpace-editor__tab-toggle__tab{padding:.4rem 1rem;font-size:1.4rem;background:rgba(0,0,0,0);color:var(--color-light-grey-300);border:none;border-radius:.2rem;cursor:pointer}.dataSpace-editor__tab-toggle__tab:hover:not(:disabled){background:var(--color-dark-grey-100);color:var(--color-light-grey-100)}.dataSpace-editor__tab-toggle__tab--active{background:var(--color-dark-blue-shade-100);color:var(--color-blue-100);font-weight:600}.dataSpace-editor__tab-toggle__tab:disabled{cursor:not-allowed;opacity:.6}.dataSpace-editor__mapping-provider{display:flex;flex-direction:column;gap:1.2rem}.dataSpace-editor__configuration__field{display:flex;flex-direction:column;gap:.5rem}.dataSpace-editor__configuration__field__label{font-size:1.4rem;color:var(--color-light-grey-200)}.dataSpace-editor__field--error{color:var(--color-status-error);border-color:var(--color-status-error) !important}.dataSpace-editor__executable__pointer__path{font-family:"Roboto Mono",monospace;color:var(--color-light-grey-300);font-size:1.4rem}.dataSpace-editor__executable__query{display:flex;align-items:flex-start;gap:.6rem}.dataSpace-editor__executable__query-builder-btn{display:flex;align-items:center;gap:.5rem;height:3rem;padding:0 1.2rem;white-space:nowrap;flex:0 0 auto;border:none;border-radius:.2rem;background:var(--color-accent);color:var(--color-text-on-accent);font-size:1.4rem;cursor:pointer}.dataSpace-editor__executable__query-builder-btn:hover{background:var(--color-accent-hover)}.dataSpace-editor__executable__query-builder-btn[disabled]{background:var(--color-bg-tag);color:var(--color-text-disabled);cursor:not-allowed}.dataSpace-editor__executable__lambda-editor{flex:1;min-width:0}.execution-context-editor__form-section{display:flex;flex-direction:column;margin-bottom:1rem}.execution-context-editor__form-section__label{font-size:1.2rem;font-weight:500;margin-bottom:.5rem;color:var(--color-light-grey-200)}.execution-context-editor__form-section__content__input,.execution-context-editor__form-section__content__textarea{width:100%;padding:.5rem;background-color:var(--color-bg-panel);color:var(--color-text-secondary);border:1px solid var(--color-border-default);border-radius:2px}.execution-context-editor__form-section__content__textarea{min-height:100px;resize:vertical}.service-execution-editor__configuration__items{background-color:var(--color-bg-panel);padding:1rem;border-radius:3px}.service-execution-editor__execution{background-color:var(--color-bg-panel)}.service-multi-execution-editor__panel{background-color:var(--color-bg-panel);overflow-y:auto}.service-execution-editor__configuration__item__dropdown{background-color:var(--color-bg-panel);color:var(--color-text-secondary)}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_data-space-template-query-promotor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-editor.scss","../style/components/_execution-context-editor.scss"],"names":[],"mappings":"AAkBA,yBACE,YACA,kBACA,+BAEA,+BACE,2BACA,WAGF,gCACE,iBACA,0CACA,gBACA,kCACA,qBAEA,wCACE,oCACA,iBACA,oBACA,8BACA,iCAIJ,kCACE,YACA,wBAGF,wCChCA,kBACA,QACA,SACA,gCDgCE,YACA,WAGF,kCACE,iBACA,WACA,aACA,yBAIA,wCCxCF,aACA,mBACA,uBDyCI,cACA,YACA,eACA,oCACA,gCACA,gBACA,iBACA,8BAGF,yCACE,cACA,8CACA,4BAGF,mFACE,mCAGF,oFACE,qCAGF,kFACE,iCAGF,mFACE,mCAGF,gEACE,kBAIJ,gCACE,aAEA,uCC7EF,aACA,mBD+EI,YACA,+BACA,oCACA,iBACA,eACA,8BACA,iCAGF,sCC/FF,aACA,mBACA,uBDgGI,cACA,aACA,+BACA,8BAEA,0CACE,iCAIJ,6IAGE,iBAGF,uCACE,SAGF,gEACE,iBAIJ,mCACE,aEjIF,gCACE,eACA,qCAEA,yCACE,aACA,WAGF,sCACE,sCACA,8CACA,gCAGF,mDACE,iCAUJ,6DACE,uCACA,oBACA,cACA,kBACA,kBAGE,6EACE,kCACA,iBAGF,6EACE,kCACA,iBAGF,4EACE,aACA,sBACA,WACA,kBAEA,2GACE,oBAEA,sHACE,gBAKN,+EACE,aACA,mBACA,UAEA,sFACE,kCACA,iBACA,kBAGF,oFACE,gBACA,YACA,eACA,kCAEA,0FACE,gCAMR,mEACE,aACA,sBACA,iBAEA,kGACE,oBAEA,6GACE,gBAON,wEACE,mBACA,YACA,UAIJ,4DACE,aACA,mBACA,iBAEA,mEACE,OAGF,qEACE,kBAEA,0EACE,gBACA,YACA,eACA,kCAEA,gFACE,gCAOV,kBACE,uCAEA,kCACE,uCAGF,iCACE,8CAGF,0CACE,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_data-space-template-query-promotor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-editor.scss","../style/components/_execution-context-editor.scss"],"names":[],"mappings":"AAkBA,yBACE,YACA,kBACA,+BAEA,+BACE,2BACA,WAGF,gCACE,iBACA,0CACA,gBACA,kCACA,qBAEA,wCACE,oCACA,iBACA,oBACA,8BACA,iCAIJ,kCACE,YACA,wBAGF,wCChCA,kBACA,QACA,SACA,gCDgCE,YACA,WAGF,kCACE,iBACA,WACA,aACA,yBAIA,wCCxCF,aACA,mBACA,uBDyCI,cACA,YACA,eACA,oCACA,gCACA,gBACA,iBACA,8BAGF,yCACE,cACA,8CACA,4BAGF,mFACE,mCAGF,oFACE,qCAGF,kFACE,iCAGF,mFACE,mCAGF,gEACE,kBAIJ,gCACE,aAEA,uCC7EF,aACA,mBD+EI,YACA,+BACA,oCACA,iBACA,eACA,8BACA,iCAGF,sCC/FF,aACA,mBACA,uBDgGI,cACA,aACA,+BACA,8BAEA,0CACE,iCAIJ,6IAGE,iBAGF,uCACE,SAGF,gEACE,iBAIJ,mCACE,aEjIF,gCACE,eACA,qCAEA,yCACE,aACA,WAGF,sCACE,sCACA,8CACA,gCAGF,mDACE,iCAUJ,6DACE,uCACA,oBACA,cACA,kBACA,kBAGE,6EACE,kCACA,iBAGF,6EACE,kCACA,iBAGF,4EACE,aACA,sBACA,WACA,kBAEA,2GACE,oBAEA,sHACE,gBAKN,+EACE,aACA,mBACA,UAEA,sFACE,kCACA,iBACA,kBAGF,oFACE,gBACA,YACA,eACA,kCAEA,0FACE,gCAMR,mEACE,aACA,sBACA,iBAEA,kGACE,oBAEA,6GACE,gBAON,wEACE,mBACA,YACA,UAIJ,4DACE,aACA,mBACA,iBAEA,mEACE,OAGF,qEACE,kBAEA,0EACE,gBACA,YACA,eACA,kCAEA,gFACE,gCAOV,kBACE,uCAEA,kCACE,uCAGF,iCACE,8CAGF,0CACE,UAGF,2BACE,aACA,mBACA,YACA,WAEA,sEACE,mBAEA,4EACE,mBAGF,+EACE,aACA,mBAGF,qGACE,aAGF,kHACE,YAGF,wHACE,YAKF,gGACE,YAIA,0GACE,aACA,mBAEA,+GACE,UAIJ,uGACE,iBAMJ,yFACE,sBACA,kBAEA,uGACE,kBAMJ,kDACE,gBAGF,oDACE,aACA,mBACA,mBAIJ,iDACE,gBAGF,iDACE,gBAGF,mDACE,4DACA,qDAKN,kCDlOE,aACA,mBCoOA,oBACA,UACA,YACA,gBACA,iBACA,YACA,oBACA,+BACA,kCACA,eAEA,sCACE,iBAGF,wCACE,qCAGF,4CACE,WACA,eAIJ,uCD9PE,aACA,mBCgQA,oBACA,UACA,eACA,gBACA,0CAEA,2CACE,iBAIJ,0CD5QE,aACA,mBC8QA,UACA,iBAGF,4CACE,cACA,eACA,iBAGF,8CACE,cACA,eACA,iBACA,sCACA,kCAEA,oDACE,sCAKJ,kCACE,aACA,mBACA,UACA,oBACA,eACA,oBACA,iBACA,iCAEA,yCACE,wCACA,uCACA,gCAGF,2CACE,0CACA,yCACA,kCAGF,sCACE,cACA,iBAKJ,oCACE,OACA,YACA,YACA,gBAGF,4DACE,cACA,aACA,wCACA,qDACA,gBAEA,oGACE,sBACA,YACA,WACA,eACA,UAGF,wGACE,iBAIJ,wCACE,kBACA,kBACA,gBACA,mBACA,gBAGF,6BACE,YACA,WACA,aACA,sBAGF,uBACE,aACA,mBACA,UAGF,8BACE,gBACA,uBACA,mBACA,gBAGF,8BACE,oBACA,mBACA,oBACA,oBACA,eACA,gBACA,4CACA,4BAGF,mCACE,gCACA,iBAGF,kCACE,aACA,mBACA,uBACA,UACA,yBACA,YACA,8BACA,eAEA,wCACE,gCAKJ,iCACE,sBACA,aACA,sBACA,WAGF,0CACE,aACA,sBACA,UACA,oBACA,8CACA,oBACA,qCAEA,kDACE,aACA,sBACA,UAEA,oFACE,iBAIJ,iDACE,iBACA,gBACA,kCAGF,gDACE,iBACA,kCAGF,gDACE,aACA,sBACA,UAIJ,sCACE,aACA,mBACA,UAEA,4CACE,aACA,mBACA,uBACA,aACA,cACA,sCACA,oBACA,kCAGF,6CACE,gBACA,mBACA,iBACA,kCAGF,8CACE,OAGF,2CACE,cACA,aACA,aACA,mBACA,uBACA,UAGF,mDACE,OACA,iBACA,kCACA,kBAGF,mDACE,yBAIJ,yCACE,aACA,sBACA,UAIF,8BACE,oBACA,cACA,oBACA,sCACA,sBACA,UAGF,mCACE,mBACA,iBACA,yBACA,kCACA,YACA,oBACA,eAEA,wDACE,sCACA,kCAGF,2CACE,4CACA,4BACA,gBAGF,4CACE,mBACA,WAKJ,oCACE,aACA,sBACA,WAGF,wCACE,aACA,sBACA,UAEA,+CACE,iBACA,kCAIJ,gCACE,gCACA,kDAIF,6CACE,oCACA,kCACA,iBAGF,qCACE,aACA,uBACA,UAGF,iDACE,aACA,mBACA,UACA,YACA,iBACA,mBACA,cACA,YACA,oBACA,+BACA,kCACA,iBACA,eAEA,uDACE,qCAGF,2DACE,+BACA,iCACA,mBAIJ,6CACE,OACA,YC7mBA,wCACE,aACA,sBACA,mBAEA,+CACE,iBACA,gBACA,oBACA,kCAIA,mHAEE,WACA,cACA,uCACA,kCACA,6CACA,kBAGF,2DACE,iBACA,gBAMR,gDACE,uCACA,aACA,kBAGF,qCACE,uCAGF,uCACE,uCACA,gBAWA,yDACE,uCACA","file":"index.css"}
|
package/lib/package.json
CHANGED
|
@@ -18,9 +18,18 @@ import { type PackageableElement } from '@finos/legend-graph';
|
|
|
18
18
|
import { Diagram } from '@finos/legend-extension-dsl-diagram/graph';
|
|
19
19
|
import { DataSpace, type DataSpaceElement } from '@finos/legend-extension-dsl-data-space/graph';
|
|
20
20
|
import { DataSpaceExecutionContextState } from './DataSpaceExecutionContextState.js';
|
|
21
|
+
import { DataSpaceExecutableTemplateStateCache } from './DataSpaceExecutableTemplateState.js';
|
|
22
|
+
export declare enum DATA_SPACE_TAB {
|
|
23
|
+
HOME = "Home",
|
|
24
|
+
EXECUTION_CONTEXTS = "Execution Contexts",
|
|
25
|
+
EXECUTABLES = "Executables"
|
|
26
|
+
}
|
|
21
27
|
export declare class DataSpaceEditorState extends ElementEditorState {
|
|
22
28
|
executionContextState: DataSpaceExecutionContextState;
|
|
29
|
+
readonly executableTemplateStates: DataSpaceExecutableTemplateStateCache;
|
|
30
|
+
selectedTab: DATA_SPACE_TAB;
|
|
23
31
|
constructor(editorStore: EditorStore, element: PackageableElement);
|
|
32
|
+
setSelectedTab(tab: DATA_SPACE_TAB): void;
|
|
24
33
|
isValidDataSpaceElement(element: PackageableElement): element is DataSpaceElement;
|
|
25
34
|
getDataSpaceElementOptions(): {
|
|
26
35
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,kBAAkB,EAOxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EAET,KAAK,gBAAgB,EACtB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,kBAAkB,EAOxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EAET,KAAK,gBAAgB,EACtB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,qCAAqC,EAAE,MAAM,uCAAuC,CAAC;AAE9F,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;CAC5B;AAED,qBAAa,oBAAqB,SAAQ,kBAAkB;IAC1D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,CAAC,wBAAwB,EAAE,qCAAqC,CAAC;IACzE,WAAW,iBAAuB;gBAEtB,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IAqBjE,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IAIzC,uBAAuB,CACrB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,IAAI,gBAAgB;IAS9B,0BAA0B,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,CAAA;KAAE,EAAE;IAc1E,6BAA6B,IAAI;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,kBAAkB,CAAC;KAC3B,EAAE;IAuBH,iBAAiB,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE;IAcxD,IAAI,SAAS,IAAI,SAAS,CAMzB;IAEQ,SAAS,CAChB,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
|
|
@@ -20,20 +20,35 @@ import { Diagram } from '@finos/legend-extension-dsl-diagram/graph';
|
|
|
20
20
|
import { DataSpace, DataSpacePackageableElementExecutable, } from '@finos/legend-extension-dsl-data-space/graph';
|
|
21
21
|
import { guaranteeType } from '@finos/legend-shared';
|
|
22
22
|
import { DataSpaceExecutionContextState } from './DataSpaceExecutionContextState.js';
|
|
23
|
+
import { DataSpaceExecutableTemplateStateCache } from './DataSpaceExecutableTemplateState.js';
|
|
24
|
+
export var DATA_SPACE_TAB;
|
|
25
|
+
(function (DATA_SPACE_TAB) {
|
|
26
|
+
DATA_SPACE_TAB["HOME"] = "Home";
|
|
27
|
+
DATA_SPACE_TAB["EXECUTION_CONTEXTS"] = "Execution Contexts";
|
|
28
|
+
DATA_SPACE_TAB["EXECUTABLES"] = "Executables";
|
|
29
|
+
})(DATA_SPACE_TAB || (DATA_SPACE_TAB = {}));
|
|
23
30
|
export class DataSpaceEditorState extends ElementEditorState {
|
|
24
31
|
executionContextState;
|
|
32
|
+
executableTemplateStates;
|
|
33
|
+
selectedTab = DATA_SPACE_TAB.HOME;
|
|
25
34
|
constructor(editorStore, element) {
|
|
26
35
|
super(editorStore, element);
|
|
27
36
|
makeObservable(this, {
|
|
28
37
|
executionContextState: observable,
|
|
38
|
+
selectedTab: observable,
|
|
29
39
|
dataSpace: computed,
|
|
30
40
|
reprocess: action,
|
|
31
41
|
isValidDataSpaceElement: action,
|
|
32
42
|
getDataSpaceElementOptions: action,
|
|
33
43
|
getDiagramOptions: action,
|
|
34
44
|
getDataSpaceExecutableOptions: action,
|
|
45
|
+
setSelectedTab: action,
|
|
35
46
|
});
|
|
36
47
|
this.executionContextState = new DataSpaceExecutionContextState(this);
|
|
48
|
+
this.executableTemplateStates = new DataSpaceExecutableTemplateStateCache(editorStore);
|
|
49
|
+
}
|
|
50
|
+
setSelectedTab(tab) {
|
|
51
|
+
this.selectedTab = tab;
|
|
37
52
|
}
|
|
38
53
|
isValidDataSpaceElement(element) {
|
|
39
54
|
return (element instanceof Package ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceEditorState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAEL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,OAAO,EACP,KAAK,EACL,WAAW,EACX,WAAW,EACX,OAAO,EACP,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EACT,qCAAqC,GAEtC,MAAM,8CAA8C,CA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ACT,mEAAmE,CACpE,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,UAA8B,EAC9B,WAAwB;QAExB,MAAM,QAAQ,GAAG,IAAI,oBAAoB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACnE,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026-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
|
+
import type { EditorStore } from '@finos/legend-application-studio';
|
|
17
|
+
import { RawLambda } from '@finos/legend-graph';
|
|
18
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
19
|
+
import { type GeneratorFn } from '@finos/legend-shared';
|
|
20
|
+
import type { DataSpaceExecutableTemplate } from '@finos/legend-extension-dsl-data-space/graph';
|
|
21
|
+
/**
|
|
22
|
+
* A fully empty `RawLambda` (no body, no parameters) is not valid PURE and
|
|
23
|
+
* will fail to compile once it's part of the graph — e.g. the very first
|
|
24
|
+
* `analyzeMappingModelCoverage` call made when opening Query Builder sends
|
|
25
|
+
* the full graph model to engine for compilation. A newly created inline
|
|
26
|
+
* executable therefore needs a self-contained, always-valid placeholder
|
|
27
|
+
* query (an empty string literal) rather than `stub_RawLambda()`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const stub_DataSpaceExecutableTemplateQuery: () => RawLambda;
|
|
30
|
+
export declare class DataSpaceExecutableTemplateLambdaState extends LambdaEditorState {
|
|
31
|
+
readonly editorStore: EditorStore;
|
|
32
|
+
readonly executableTemplate: DataSpaceExecutableTemplate;
|
|
33
|
+
lastComputedLambdaString: string | undefined;
|
|
34
|
+
constructor(editorStore: EditorStore, executableTemplate: DataSpaceExecutableTemplate);
|
|
35
|
+
get lambdaId(): string;
|
|
36
|
+
convertLambdaGrammarStringToObject(): GeneratorFn<void>;
|
|
37
|
+
convertLambdaObjectToGrammarString(options?: {
|
|
38
|
+
pretty?: boolean | undefined;
|
|
39
|
+
preserveCompilationError?: boolean | undefined;
|
|
40
|
+
}): GeneratorFn<void>;
|
|
41
|
+
}
|
|
42
|
+
export declare class DataSpaceExecutableTemplateStateCache {
|
|
43
|
+
readonly editorStore: EditorStore;
|
|
44
|
+
private readonly states;
|
|
45
|
+
constructor(editorStore: EditorStore);
|
|
46
|
+
getLambdaState(executableTemplate: DataSpaceExecutableTemplate): DataSpaceExecutableTemplateLambdaState;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=DataSpaceExecutableTemplateState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutableTemplateState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutableTemplateState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAKL,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAEhG;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC,QAAO,SACJ,CAAC;AAEtD,qBAAa,sCAAuC,SAAQ,iBAAiB;IAC3E,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,kBAAkB,EAAE,2BAA2B,CAAC;IACzD,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG3C,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,2BAA2B;IAOjD,IAAa,QAAQ,IAAI,MAAM,CAE9B;IAEA,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IA6BvD,kCAAkC,CAAC,OAAO,CAAC,EAAE;QAC5C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;CAgCtB;AAED,qBAAa,qCAAqC;IAChD,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAGnB;gBAEQ,WAAW,EAAE,WAAW;IAIpC,cAAc,CACZ,kBAAkB,EAAE,2BAA2B,GAC9C,sCAAsC;CAW1C"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026-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
|
+
import { GRAPH_MANAGER_EVENT, isStubbed_RawLambda, LAMBDA_PIPE, ParserError, RawLambda, } from '@finos/legend-graph';
|
|
17
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
18
|
+
import { assertErrorThrown, LogEvent, } from '@finos/legend-shared';
|
|
19
|
+
/**
|
|
20
|
+
* A fully empty `RawLambda` (no body, no parameters) is not valid PURE and
|
|
21
|
+
* will fail to compile once it's part of the graph — e.g. the very first
|
|
22
|
+
* `analyzeMappingModelCoverage` call made when opening Query Builder sends
|
|
23
|
+
* the full graph model to engine for compilation. A newly created inline
|
|
24
|
+
* executable therefore needs a self-contained, always-valid placeholder
|
|
25
|
+
* query (an empty string literal) rather than `stub_RawLambda()`.
|
|
26
|
+
*/
|
|
27
|
+
export const stub_DataSpaceExecutableTemplateQuery = () => new RawLambda([], [{ _type: 'string', value: '' }]);
|
|
28
|
+
export class DataSpaceExecutableTemplateLambdaState extends LambdaEditorState {
|
|
29
|
+
editorStore;
|
|
30
|
+
executableTemplate;
|
|
31
|
+
lastComputedLambdaString;
|
|
32
|
+
constructor(editorStore, executableTemplate) {
|
|
33
|
+
super('', LAMBDA_PIPE, { typeAheadEnabled: true });
|
|
34
|
+
this.editorStore = editorStore;
|
|
35
|
+
this.executableTemplate = executableTemplate;
|
|
36
|
+
}
|
|
37
|
+
get lambdaId() {
|
|
38
|
+
return `data-space-executable-template-${this.executableTemplate.title}`;
|
|
39
|
+
}
|
|
40
|
+
*convertLambdaGrammarStringToObject() {
|
|
41
|
+
if (this.lambdaString === this.lastComputedLambdaString) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (this.lambdaString) {
|
|
45
|
+
try {
|
|
46
|
+
const lambda = (yield this.editorStore.graphManagerState.graphManager.pureCodeToLambda(this.fullLambdaString, this.lambdaId));
|
|
47
|
+
this.setParserError(undefined);
|
|
48
|
+
this.executableTemplate.query = lambda;
|
|
49
|
+
this.lastComputedLambdaString = this.lambdaString;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
assertErrorThrown(error);
|
|
53
|
+
if (error instanceof ParserError) {
|
|
54
|
+
this.setParserError(error);
|
|
55
|
+
}
|
|
56
|
+
this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.clearErrors();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
*convertLambdaObjectToGrammarString(options) {
|
|
64
|
+
if (!isStubbed_RawLambda(this.executableTemplate.query)) {
|
|
65
|
+
try {
|
|
66
|
+
const lambdas = new Map();
|
|
67
|
+
lambdas.set(this.lambdaId, this.executableTemplate.query);
|
|
68
|
+
const isolatedLambdas = (yield this.editorStore.graphManagerState.graphManager.lambdasToPureCode(lambdas, options?.pretty));
|
|
69
|
+
const grammarText = isolatedLambdas.get(this.lambdaId);
|
|
70
|
+
const nextLambdaString = grammarText !== undefined
|
|
71
|
+
? this.extractLambdaString(grammarText)
|
|
72
|
+
: '';
|
|
73
|
+
this.setLambdaString(nextLambdaString);
|
|
74
|
+
this.lastComputedLambdaString = nextLambdaString || undefined;
|
|
75
|
+
this.clearErrors({
|
|
76
|
+
preserveCompilationError: options?.preserveCompilationError,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
assertErrorThrown(error);
|
|
81
|
+
this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.clearErrors();
|
|
86
|
+
this.setLambdaString('');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export class DataSpaceExecutableTemplateStateCache {
|
|
91
|
+
editorStore;
|
|
92
|
+
states = new Map();
|
|
93
|
+
constructor(editorStore) {
|
|
94
|
+
this.editorStore = editorStore;
|
|
95
|
+
}
|
|
96
|
+
getLambdaState(executableTemplate) {
|
|
97
|
+
let state = this.states.get(executableTemplate);
|
|
98
|
+
if (!state) {
|
|
99
|
+
state = new DataSpaceExecutableTemplateLambdaState(this.editorStore, executableTemplate);
|
|
100
|
+
this.states.set(executableTemplate, state);
|
|
101
|
+
}
|
|
102
|
+
return state;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=DataSpaceExecutableTemplateState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutableTemplateState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutableTemplateState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EACL,iBAAiB,EACjB,QAAQ,GAET,MAAM,sBAAsB,CAAC;AAG9B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAc,EAAE,CACnE,IAAI,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAEtD,MAAM,OAAO,sCAAuC,SAAQ,iBAAiB;IAClE,WAAW,CAAc;IACzB,kBAAkB,CAA8B;IACzD,wBAAwB,CAAqB;IAE7C,YACE,WAAwB,EACxB,kBAA+C;QAE/C,KAAK,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,kCAAkC,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;IAC3E,CAAC;IAED,CAAC,kC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CAAsC,CAChD,IAAI,CAAC,WAAW,EAChB,kBAAkB,CACnB,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -15,23 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { EditorStore } from '@finos/legend-application-studio';
|
|
17
17
|
import type { DataSpaceEditorState } from './DataSpaceEditorState.js';
|
|
18
|
-
import {
|
|
19
|
-
import { type Mapping } from '@finos/legend-graph';
|
|
18
|
+
import type { DataSpace, DataSpaceExecutionContext } from '@finos/legend-extension-dsl-data-space/graph';
|
|
20
19
|
export declare class DataSpaceExecutionContextState {
|
|
21
20
|
readonly dataSpaceEditorState: DataSpaceEditorState;
|
|
22
21
|
readonly editorStore: EditorStore;
|
|
23
|
-
executionContexts: DataSpaceExecutionContext[];
|
|
24
22
|
selectedExecutionContext: DataSpaceExecutionContext | undefined;
|
|
25
23
|
newExecutionContextModal: boolean;
|
|
26
|
-
executionContextToRename: DataSpaceExecutionContext | undefined;
|
|
27
24
|
constructor(dataSpaceEditorState: DataSpaceEditorState);
|
|
28
25
|
get dataSpace(): DataSpace;
|
|
29
|
-
|
|
26
|
+
get executionContexts(): DataSpaceExecutionContext[];
|
|
27
|
+
addExecutionContext(executionContext: DataSpaceExecutionContext): void;
|
|
30
28
|
removeExecutionContext(dataSpaceExecutionContext: DataSpaceExecutionContext): void;
|
|
31
|
-
|
|
32
|
-
setSelectedExecutionContext(val: DataSpaceExecutionContext): void;
|
|
33
|
-
setExecutionContextToRename(val: DataSpaceExecutionContext | undefined): void;
|
|
29
|
+
setSelectedExecutionContext(val: DataSpaceExecutionContext | undefined): void;
|
|
34
30
|
setNewExecutionContextModal(val: boolean): void;
|
|
35
|
-
autoSelectRuntimeOnMappingChange(mapping: Mapping): void;
|
|
36
31
|
}
|
|
37
32
|
//# sourceMappingURL=DataSpaceExecutionContextState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceExecutionContextState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EACV,SAAS,EACT,yBAAyB,EAC1B,MAAM,8CAA8C,CAAC;AAMtD,qBAAa,8BAA8B;IACzC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACpD,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,wBAAwB,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAChE,wBAAwB,UAAS;gBAErB,oBAAoB,EAAE,oBAAoB;IAgBtD,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,IAAI,iBAAiB,IAAI,yBAAyB,EAAE,CAEnD;IAED,mBAAmB,CAAC,gBAAgB,EAAE,yBAAyB,GAAG,IAAI;IAKtE,sBAAsB,CACpB,yBAAyB,EAAE,yBAAyB,GACnD,IAAI;IAOP,2BAA2B,CACzB,GAAG,EAAE,yBAAyB,GAAG,SAAS,GACzC,IAAI;IAIP,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAGhD"}
|
|
@@ -13,75 +13,49 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { action, makeObservable, observable } from 'mobx';
|
|
17
|
-
import {
|
|
18
|
-
import { dataSpace_addExecutionContext, dataSpace_removeExecutionContext, dataSpace_setExecutionContextDefaultRuntime, dataSpace_setExecutionContextName, } from './studio/DSL_DataSpace_GraphModifierHelper.js';
|
|
19
|
-
import { PackageableElementExplicitReference, stub_Mapping, stub_PackageableRuntime, } from '@finos/legend-graph';
|
|
16
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
17
|
+
import { dataSpace_addExecutionContext, dataSpace_removeExecutionContext, } from './studio/DSL_DataSpace_GraphModifierHelper.js';
|
|
20
18
|
export class DataSpaceExecutionContextState {
|
|
21
19
|
dataSpaceEditorState;
|
|
22
20
|
editorStore;
|
|
23
|
-
executionContexts;
|
|
24
21
|
selectedExecutionContext;
|
|
25
22
|
newExecutionContextModal = false;
|
|
26
|
-
executionContextToRename;
|
|
27
23
|
constructor(dataSpaceEditorState) {
|
|
28
24
|
makeObservable(this, {
|
|
29
|
-
executionContexts: observable,
|
|
30
25
|
selectedExecutionContext: observable,
|
|
31
|
-
executionContextToRename: observable,
|
|
32
26
|
newExecutionContextModal: observable,
|
|
27
|
+
executionContexts: computed,
|
|
33
28
|
addExecutionContext: action,
|
|
34
29
|
removeExecutionContext: action,
|
|
35
|
-
renameExecutionContext: action,
|
|
36
30
|
setSelectedExecutionContext: action,
|
|
37
|
-
setExecutionContextToRename: action,
|
|
38
31
|
setNewExecutionContextModal: action,
|
|
39
32
|
});
|
|
40
|
-
this.executionContexts = dataSpaceEditorState.dataSpace.executionContexts;
|
|
41
33
|
this.selectedExecutionContext =
|
|
42
|
-
dataSpaceEditorState.dataSpace.executionContexts[0];
|
|
34
|
+
dataSpaceEditorState.dataSpace.executionContexts?.[0];
|
|
43
35
|
this.dataSpaceEditorState = dataSpaceEditorState;
|
|
44
36
|
this.editorStore = dataSpaceEditorState.editorStore;
|
|
45
37
|
}
|
|
46
38
|
get dataSpace() {
|
|
47
39
|
return this.dataSpaceEditorState.dataSpace;
|
|
48
40
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.map((m) => m.value)
|
|
56
|
-
.includes(mapping))[0]
|
|
57
|
-
: undefined;
|
|
58
|
-
val.mapping = PackageableElementExplicitReference.create(mapping ?? stub_Mapping());
|
|
59
|
-
val.defaultRuntime = PackageableElementExplicitReference.create(runtime ?? stub_PackageableRuntime());
|
|
60
|
-
dataSpace_addExecutionContext(this.dataSpace, val);
|
|
61
|
-
this.selectedExecutionContext = val;
|
|
41
|
+
get executionContexts() {
|
|
42
|
+
return this.dataSpace.executionContexts ?? [];
|
|
43
|
+
}
|
|
44
|
+
addExecutionContext(executionContext) {
|
|
45
|
+
dataSpace_addExecutionContext(this.dataSpace, executionContext);
|
|
46
|
+
this.selectedExecutionContext = executionContext;
|
|
62
47
|
}
|
|
63
48
|
removeExecutionContext(dataSpaceExecutionContext) {
|
|
64
49
|
dataSpace_removeExecutionContext(this.dataSpace, dataSpaceExecutionContext);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
if (this.selectedExecutionContext === dataSpaceExecutionContext) {
|
|
51
|
+
this.selectedExecutionContext = this.executionContexts[0];
|
|
52
|
+
}
|
|
68
53
|
}
|
|
69
54
|
setSelectedExecutionContext(val) {
|
|
70
55
|
this.selectedExecutionContext = val;
|
|
71
56
|
}
|
|
72
|
-
setExecutionContextToRename(val) {
|
|
73
|
-
this.executionContextToRename = val;
|
|
74
|
-
}
|
|
75
57
|
setNewExecutionContextModal(val) {
|
|
76
58
|
this.newExecutionContextModal = val;
|
|
77
59
|
}
|
|
78
|
-
autoSelectRuntimeOnMappingChange(mapping) {
|
|
79
|
-
if (this.selectedExecutionContext) {
|
|
80
|
-
const runtimes = this.editorStore.graphManagerState.graph.ownRuntimes.filter((runtime) => runtime.runtimeValue.mappings.map((m) => m.value).includes(mapping));
|
|
81
|
-
if (runtimes.length) {
|
|
82
|
-
dataSpace_setExecutionContextDefaultRuntime(this.selectedExecutionContext, PackageableElementExplicitReference.create(runtimes[0]));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
60
|
}
|
|
87
61
|
//# sourceMappingURL=DataSpaceExecutionContextState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceExecutionContextState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,+CAA+C,CAAC;AAEvD,MAAM,OAAO,8BAA8B;IAChC,oBAAoB,CAAuB;IAC3C,WAAW,CAAc;IAClC,wBAAwB,CAAwC;IAChE,wBAAwB,GAAG,KAAK,CAAC;IAEjC,YAAY,oBAA0C;QACpD,cAAc,CAAC,IAAI,EAAE;YACnB,wBAAwB,EAAE,UAAU;YACpC,wBAAwB,EAAE,UAAU;YACpC,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,MAAM;YAC3B,sBAAsB,EAAE,MAAM;YAC9B,2BAA2B,EAAE,MAAM;YACnC,2BAA2B,EAAE,MAAM;SACpC,CAAC,CAAC;QACH,IAAI,CAAC,wBAAwB;YAC3B,oBAAoB,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,oBAAoB,GAAG,oBAAo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