@finos/legend-application-studio 28.13.2 → 28.13.3
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/__lib__/LegendStudioApplicationNavigationContext.d.ts +1 -0
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -0
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts +5 -9
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +6 -10
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +2 -2
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +46 -95
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +3 -3
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts +22 -0
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +231 -0
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -0
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +1 -25
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/{FunctionActivatorPromoteState.d.ts → FunctionActivatorState.d.ts} +9 -9
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/{FunctionActivatorPromoteState.js → FunctionActivatorState.js} +24 -24
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts +6 -5
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +6 -5
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/{FunctionActivatorBuilderState.d.ts → ToDelete_FunctionActivatorBuilderState.d.ts} +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ToDelete_FunctionActivatorBuilderState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/{FunctionActivatorBuilderState.js → ToDelete_FunctionActivatorBuilderState.js} +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ToDelete_FunctionActivatorBuilderState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts +81 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +286 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts +3 -17
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +8 -69
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts +26 -3
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js +72 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/graph-modifier/DomainGraphModifierHelper.d.ts +3 -1
- package/lib/stores/graph-modifier/DomainGraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DomainGraphModifierHelper.js +7 -1
- package/lib/stores/graph-modifier/DomainGraphModifierHelper.js.map +1 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.d.ts +3 -2
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.js +3 -0
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.js.map +1 -1
- package/package.json +4 -4
- package/src/__lib__/LegendStudioApplicationNavigationContext.ts +1 -0
- package/src/application/LegendStudioApplicationConfig.ts +7 -12
- package/src/components/editor/ActivityBar.tsx +3 -2
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +59 -276
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +3 -10
- package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +748 -0
- package/src/components/editor/side-bar/Explorer.tsx +0 -59
- package/src/stores/editor/editor-state/element-editor-state/{FunctionActivatorPromoteState.ts → FunctionActivatorState.ts} +23 -23
- package/src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts +7 -6
- package/src/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts +2 -2
- package/src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts +414 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +1 -4
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +16 -96
- package/src/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.ts +105 -3
- package/src/stores/graph-modifier/DomainGraphModifierHelper.ts +23 -2
- package/src/stores/graph-modifier/Testable_GraphModifierHelper.ts +9 -1
- package/tsconfig.json +4 -2
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorBuilderState.d.ts.map +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorBuilderState.js.map +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorPromoteState.d.ts.map +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorPromoteState.js.map +0 -1
- /package/src/stores/editor/editor-state/element-editor-state/{FunctionActivatorBuilderState.ts → ToDelete_FunctionActivatorBuilderState.ts} +0 -0
@@ -39,6 +39,7 @@ export declare enum LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY {
|
|
39
39
|
MAPPING_EXECUTION_EDITOR = "studio.editor.mapping-editor.execution-editor",
|
40
40
|
DEPRECATED_MAPPING_TEST_EDITOR = "studio.editor.mapping-editor.deprecated-test-editor",
|
41
41
|
MAPPING_EDITOR_TEST = "studio.editor.mapping-editor.test",
|
42
|
+
FUNCTION_EDITOR_TEST = "studio.editor.function-editor.test",
|
42
43
|
RUNTIME_EDITOR = "studio.editor.runtime-editor",
|
43
44
|
CONNECTION_EDITOR = "studio.editor.connection-editor",
|
44
45
|
DATABASE_BUILDER = "studio.editor.connection-editor.database-builder",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationNavigationContext.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,gDAAgD;IAE1D,KAAK,iBAAiB;IACtB,2BAA2B,uCAAuC;IAGlE,MAAM,kBAAkB;IAExB,YAAY,+BAA+B;IAC3C,qCAAqC,wDAAwD;IAC7F,gBAAgB,mCAAmC;IACnD,sBAAsB,yCAAyC;IAE/D,YAAY,+BAA+B;IAC3C,uBAAuB,0CAA0C;IACjE,+BAA+B,kDAAkD;IACjF,wBAAwB,2CAA2C;IACnE,uBAAuB,0CAA0C;IACjE,oCAAoC,gEAAgE;IACpG,6BAA6B,yDAAyD;IAEtF,cAAc,iCAAiC;IAC/C,kBAAkB,qCAAqC;IACvD,kBAAkB,qCAAqC;IACvD,eAAe,kCAAkC;IAEjD,cAAc,iCAAiC;IAC/C,oBAAoB,sDAAsD;IAC1E,8BAA8B,gEAAgE;IAC9F,0BAA0B,4DAA4D;IACtF,wBAAwB,kDAAkD;IAC1E,8BAA8B,wDAAwD;IACtF,mBAAmB,sCAAsC;
|
1
|
+
{"version":3,"file":"LegendStudioApplicationNavigationContext.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,gDAAgD;IAE1D,KAAK,iBAAiB;IACtB,2BAA2B,uCAAuC;IAGlE,MAAM,kBAAkB;IAExB,YAAY,+BAA+B;IAC3C,qCAAqC,wDAAwD;IAC7F,gBAAgB,mCAAmC;IACnD,sBAAsB,yCAAyC;IAE/D,YAAY,+BAA+B;IAC3C,uBAAuB,0CAA0C;IACjE,+BAA+B,kDAAkD;IACjF,wBAAwB,2CAA2C;IACnE,uBAAuB,0CAA0C;IACjE,oCAAoC,gEAAgE;IACpG,6BAA6B,yDAAyD;IAEtF,cAAc,iCAAiC;IAC/C,kBAAkB,qCAAqC;IACvD,kBAAkB,qCAAqC;IACvD,eAAe,kCAAkC;IAEjD,cAAc,iCAAiC;IAC/C,oBAAoB,sDAAsD;IAC1E,8BAA8B,gEAAgE;IAC9F,0BAA0B,4DAA4D;IACtF,wBAAwB,kDAAkD;IAC1E,8BAA8B,wDAAwD;IACtF,mBAAmB,sCAAsC;IACzD,oBAAoB,uCAAuC;IAE3D,cAAc,iCAAiC;IAE/C,iBAAiB,oCAAoC;IACrD,gBAAgB,qDAAqD;IACrE,sBAAsB,gDAAgD;IAEtE,cAAc,iCAAiC;IAC/C,wBAAwB,2CAA2C;IACnE,mBAAmB,sCAAsC;IAEzD,cAAc,6CAA6C;IAG3D,mBAAmB,sCAAsC;IACzD,+BAA+B,kDAAkD;IACjF,oCAAoC,uDAAuD;IAC3F,2CAA2C,8DAA8D;IACzG,gCAAgC,mDAAmD;IAGnF,iBAAiB,wDAAwD;IACzE,2BAA2B,kEAAkE;IAC7F,cAAc,qDAAqD;CACpE"}
|
@@ -42,6 +42,7 @@ export var LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY;
|
|
42
42
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["MAPPING_EXECUTION_EDITOR"] = "studio.editor.mapping-editor.execution-editor";
|
43
43
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["DEPRECATED_MAPPING_TEST_EDITOR"] = "studio.editor.mapping-editor.deprecated-test-editor";
|
44
44
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["MAPPING_EDITOR_TEST"] = "studio.editor.mapping-editor.test";
|
45
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["FUNCTION_EDITOR_TEST"] = "studio.editor.function-editor.test";
|
45
46
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["RUNTIME_EDITOR"] = "studio.editor.runtime-editor";
|
46
47
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["CONNECTION_EDITOR"] = "studio.editor.connection-editor";
|
47
48
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY["DATABASE_BUILDER"] = "studio.editor.connection-editor.database-builder";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationNavigationContext.js","sourceRoot":"","sources":["../../src/__lib__/LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"LegendStudioApplicationNavigationContext.js","sourceRoot":"","sources":["../../src/__lib__/LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,gDA0DX;AA1DD,WAAY,gDAAgD;IAC1D,QAAQ;IACR,0EAAsB,CAAA;IACtB,sHAAkE,CAAA;IAElE,SAAS;IACT,4EAAwB,CAAA;IAExB,+FAA2C,CAAA;IAC3C,iJAA6F,CAAA;IAC7F,uGAAmD,CAAA;IACnD,mHAA+D,CAAA;IAE/D,+FAA2C,CAAA;IAC3C,qHAAiE,CAAA;IACjE,qIAAiF,CAAA;IACjF,uHAAmE,CAAA;IACnE,qHAAiE,CAAA;IACjE,wJAAoG,CAAA;IACpG,0IAAsF,CAAA;IAEtF,mGAA+C,CAAA;IAC/C,2GAAuD,CAAA;IACvD,2GAAuD,CAAA;IACvD,qGAAiD,CAAA;IAEjD,mGAA+C,CAAA;IAC/C,8HAA0E,CAAA;IAC1E,kJAA8F,CAAA;IAC9F,0IAAsF,CAAA;IACtF,8HAA0E,CAAA;IAC1E,0IAAsF,CAAA;IACtF,6GAAyD,CAAA;IACzD,+GAA2D,CAAA;IAE3D,mGAA+C,CAAA;IAE/C,yGAAqD,CAAA;IACrD,yHAAqE,CAAA;IACrE,0HAAsE,CAAA;IAEtE,mGAA+C,CAAA;IAC/C,uHAAmE,CAAA;IACnE,6GAAyD,CAAA;IAEzD,+GAA2D,CAAA;IAE3D,4BAA4B;IAC5B,6GAAyD,CAAA;IACzD,qIAAiF,CAAA;IACjF,+IAA2F,CAAA;IAC3F,6JAAyG,CAAA;IACzG,uIAAmF,CAAA;IAEnF,kBAAkB;IAClB,6HAAyE,CAAA;IACzE,iJAA6F,CAAA;IAC7F,uHAAmE,CAAA;AACrE,CAAC,EA1DW,gDAAgD,KAAhD,gDAAgD,QA0D3D"}
|
@@ -31,6 +31,11 @@ declare class LegendStudioApplicationCoreOptions {
|
|
31
31
|
*/
|
32
32
|
enableGraphBuilderStrictMode: boolean;
|
33
33
|
projectCreationGroupIdSuggestion: string;
|
34
|
+
/**
|
35
|
+
* This flag is for any feature that is not production ready.
|
36
|
+
* Used to iterate over features until they are ready for production.
|
37
|
+
*/
|
38
|
+
NonProductionFeatureFlag: boolean;
|
34
39
|
/**
|
35
40
|
* Indicates if we should keep section index and do not rewrite/flatten the paths shortened by section
|
36
41
|
* imports.
|
@@ -39,11 +44,6 @@ declare class LegendStudioApplicationCoreOptions {
|
|
39
44
|
* See https://github.com/finos/legend-studio/issues/1067
|
40
45
|
*/
|
41
46
|
TEMPORARY__preserveSectionIndex: boolean;
|
42
|
-
/**
|
43
|
-
* This flag can be removed when the support for function activator is official
|
44
|
-
* See https://github.com/finos/legend-engine/pull/1815
|
45
|
-
*/
|
46
|
-
TEMPORARY__enableFunctionActivatorSupport: boolean;
|
47
47
|
/**
|
48
48
|
* This flag can be removed when the support for local connection is official
|
49
49
|
* Right now it's done to support the SnowflakeApp creation demo
|
@@ -60,10 +60,6 @@ declare class LegendStudioApplicationCoreOptions {
|
|
60
60
|
* See https://github.com/finos/legend-studio/issues/65
|
61
61
|
*/
|
62
62
|
TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[];
|
63
|
-
/**
|
64
|
-
* This flag can be removed when the support for end-to-end workflow is official
|
65
|
-
*/
|
66
|
-
TEMPORARY__enableEndtoEndWorkflow: boolean;
|
67
63
|
/**
|
68
64
|
* Config specific to query builder
|
69
65
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EAGnB,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBAAa,oCAAoC;IAC/C,GAAG,EAAG,MAAM,CAAC;IACb,YAAY,EAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACrB,aAAa,EAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH;AAED,cAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,UAAS;IACrC,gCAAgC,SAAwB;IAExD;;;;;;OAMG;IACH,+BAA+B,UAAS;IAExC
|
1
|
+
{"version":3,"file":"LegendStudioAppl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,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,QAAQ,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5B;AAED,qBAAa,6BAA8B,SAAQ,uBAAuB;IACxE,QAAQ,CAAC,OAAO,qCAA4C;IAE5D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG9C,KAAK,EAAE,mCAAmC,CAAC,wCAAwC,CAAC;IAkE7E,+BAA+B,IAAI,MAAM;CAGnD"}
|
@@ -37,6 +37,11 @@ class LegendStudioApplicationCoreOptions {
|
|
37
37
|
*/
|
38
38
|
enableGraphBuilderStrictMode = false;
|
39
39
|
projectCreationGroupIdSuggestion = 'org.finos.legend.*';
|
40
|
+
/**
|
41
|
+
* This flag is for any feature that is not production ready.
|
42
|
+
* Used to iterate over features until they are ready for production.
|
43
|
+
*/
|
44
|
+
NonProductionFeatureFlag = false;
|
40
45
|
/**
|
41
46
|
* Indicates if we should keep section index and do not rewrite/flatten the paths shortened by section
|
42
47
|
* imports.
|
@@ -45,11 +50,6 @@ class LegendStudioApplicationCoreOptions {
|
|
45
50
|
* See https://github.com/finos/legend-studio/issues/1067
|
46
51
|
*/
|
47
52
|
TEMPORARY__preserveSectionIndex = false;
|
48
|
-
/**
|
49
|
-
* This flag can be removed when the support for function activator is official
|
50
|
-
* See https://github.com/finos/legend-engine/pull/1815
|
51
|
-
*/
|
52
|
-
TEMPORARY__enableFunctionActivatorSupport = false;
|
53
53
|
/**
|
54
54
|
* This flag can be removed when the support for local connection is official
|
55
55
|
* Right now it's done to support the SnowflakeApp creation demo
|
@@ -66,10 +66,6 @@ class LegendStudioApplicationCoreOptions {
|
|
66
66
|
* See https://github.com/finos/legend-studio/issues/65
|
67
67
|
*/
|
68
68
|
TEMPORARY__serviceRegistrationConfig = [];
|
69
|
-
/**
|
70
|
-
* This flag can be removed when the support for end-to-end workflow is official
|
71
|
-
*/
|
72
|
-
TEMPORARY__enableEndtoEndWorkflow = true;
|
73
69
|
/**
|
74
70
|
* Config specific to query builder
|
75
71
|
*/
|
@@ -78,8 +74,8 @@ class LegendStudioApplicationCoreOptions {
|
|
78
74
|
enableGraphBuilderStrictMode: optional(primitive()),
|
79
75
|
projectCreationGroupIdSuggestion: optional(primitive()),
|
80
76
|
TEMPORARY__preserveSectionIndex: optional(primitive()),
|
81
|
-
TEMPORARY__enableFunctionActivatorSupport: optional(primitive()),
|
82
77
|
TEMPORARY__enableLocalConnectionBuilder: optional(primitive()),
|
78
|
+
NonProductionFeatureFlag: optional(primitive()),
|
83
79
|
TEMPORARY__serviceRegistrationConfig: list(object(ServiceRegistrationEnvironmentConfig)),
|
84
80
|
queryBuilderConfig: optional(usingModelSchema(QueryBuilderConfig.serialization.schema)),
|
85
81
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,OAAO,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,SAAS,EAAE;QACzB,aAAa,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,GAAG,KAAK,CAAC;IACrC,gCAAgC,GAAG,oBAAoB,CAAC;IAExD
|
1
|
+
{"version":3,"file":"LegendStudioApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,OAAO,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY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uB,CAAC,kBAAkB,CACnE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAC3B,CAAC;SACH;QAED,WAAW;QACX,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,GAAG,EAAE;YAClC,IAAI,CAAC,iBAAiB,GAAG,uBAAuB,CAAC,kBAAkB,CACjE,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAC9B,CAAC;SACH;QAED,UAAU;QACV,IAAI,CAAC,OAAO,GAAG,kCAAkC,CAAC,MAAM,CACtD,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,IAAI,EAAE,CACxC,CAAC;IACJ,CAAC;IAEQ,+BAA+B;QACtC,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActivityBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/ActivityBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgEH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAmFnC,CAAC;AAEF,eAAO,MAAM,WAAW;;
|
1
|
+
{"version":3,"file":"ActivityBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/ActivityBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgEH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAmFnC,CAAC;AAEF,eAAO,MAAM,WAAW;;CAqRtB,CAAC"}
|
@@ -160,10 +160,10 @@ export const ActivityBar = observer(() => {
|
|
160
160
|
icon: (_jsxs(_Fragment, { children: [_jsx(RobotIcon, { className: "activity-bar__icon--service-registrar" }), _jsx(ActivityBarItemExperimentalBadge, {})] })),
|
161
161
|
},
|
162
162
|
].filter((activity) => Boolean(activity));
|
163
|
+
const enableEndtoEndWorkflow = editorStore.applicationStore.config.options.NonProductionFeatureFlag;
|
163
164
|
const userJourneys = [
|
164
165
|
!editorStore.isInConflictResolutionMode &&
|
165
|
-
|
166
|
-
.TEMPORARY__enableEndtoEndWorkflow && {
|
166
|
+
enableEndtoEndWorkflow && {
|
167
167
|
mode: USER_JOURNEYS.END_TO_END_WORKFLOWS,
|
168
168
|
title: 'End to End Workflows (Beta)',
|
169
169
|
icon: (_jsxs("div", { children: [_jsx(WorkflowIcon, { className: "activity-bar__icon--service-registrar" }), _jsx(ActivityBarItemExperimentalBadge, {})] })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActivityBar.js","sourceRoot":"","sources":["../../../src/components/editor/ActivityBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EACL,gCAAgC,GAEjC,MAAM,gCAAgC,CAA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4BACpC,4BAA4B,EAC1B,WAAW,CAAC,mBAAmB,CAAC,MAAM;gCACtC,WAAW,CAAC,cAAc,KAAK,QAAQ,CAAC,IAAI;yBAC/C,CAAC,EACF,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,EACtC,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,QAAQ,CAAC,KAAK,YAEpB,QAAQ,CAAC,IAAI,IAVT,QAAQ,CAAC,IAAI,CAWX,CACV,CAAC,IACE,EACN,iBACE,SAAS,EAAE,IAAI,CAAC,oBAAoB,CAAC,EACrC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAChE,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,gBAAgB,YAEvB,KAAC,UAAU,KAAG,GACP,EACT,KAAC,YAAY,IACX,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,KAAC,YAAY,KAAG,EACzB,SAAS,EAAE;oBACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oBACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE;oBAC3D,SAAS,EAAE,CAAC;iBACb,YAED,KAAC,OAAO,KAAG,GACE,IACX,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
export declare enum
|
16
|
+
export declare enum FUNCTION_ACTIVATE_TYPE {
|
17
17
|
SNOWFLAKE_NATIVE_APP = "Snowflake Native App",
|
18
18
|
REST_SERVICE = "REST Service",
|
19
19
|
SERVICE_JAR = "Service JAR",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FunctionEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/FunctionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"FunctionEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/FunctionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiJH,oBAAY,sBAAsB;IAChC,oBAAoB,yBAAyB;IAC7C,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,oBAAoB,wBAAwB;CAC7C;AA03BD,eAAO,MAAM,cAAc;;CAsbzB,CAAC"}
|
@@ -20,13 +20,13 @@ import { FunctionEditorState, FUNCTION_EDITOR_TAB, } from '../../../../stores/ed
|
|
20
20
|
import { CORE_DND_TYPE, } from '../../../../stores/editor/utils/DnDUtils.js';
|
21
21
|
import { assertErrorThrown, assertTrue, prettyCONSTName, returnUndefOnError, UnsupportedOperationError, } from '@finos/legend-shared';
|
22
22
|
import { useDrag, useDrop } from 'react-dnd';
|
23
|
-
import { clsx, CustomSelectorInput, createFilter, LockIcon, PlusIcon, TimesIcon, ArrowCircleRightIcon, PanelEntryDragHandle, DragPreviewLayer, useDragPreviewLayer, Panel, PanelContent, PanelDnDEntry, Dialog,
|
23
|
+
import { clsx, CustomSelectorInput, createFilter, LockIcon, PlusIcon, TimesIcon, ArrowCircleRightIcon, PanelEntryDragHandle, DragPreviewLayer, useDragPreviewLayer, Panel, PanelContent, PanelDnDEntry, Dialog, ModalBody, ModalFooter, CaretDownIcon, DropdownMenu, BlankPanelContent, MenuContent, MenuContentItem, Modal, PauseCircleIcon, PlayIcon, PanelLoadingIndicator, PencilIcon, RocketIcon, ModalFooterButton, BaseCard, Snowflake_BrandIcon, InputWithInlineValidation, } from '@finos/legend-art';
|
24
24
|
import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
|
25
25
|
import { StereotypeDragPreviewLayer, StereotypeSelector, } from '../uml-editor/StereotypeSelector.js';
|
26
26
|
import { TaggedValueDragPreviewLayer, TaggedValueEditor, } from '../uml-editor/TaggedValueEditor.js';
|
27
27
|
import { flowResult } from 'mobx';
|
28
28
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
29
|
-
import { Profile, MULTIPLICITY_INFINITE, Unit, Type, Enumeration, Class, PrimitiveType, StereotypeExplicitReference, stub_Tag, stub_Profile, stub_TaggedValue, stub_Stereotype, stub_RawVariableExpression, getFunctionNameWithPath, getFunctionSignature,
|
29
|
+
import { Profile, MULTIPLICITY_INFINITE, Unit, Type, Enumeration, Class, PrimitiveType, StereotypeExplicitReference, stub_Tag, stub_Profile, stub_TaggedValue, stub_Stereotype, stub_RawVariableExpression, getFunctionNameWithPath, getFunctionSignature, RawExecutionResult, extractExecutionResultValues, RawLambda, DatabaseType, RelationalDatabaseConnection, } from '@finos/legend-graph';
|
30
30
|
import { useApplicationNavigationContext, useApplicationStore, DEFAULT_TAB_SIZE, } from '@finos/legend-application';
|
31
31
|
import { buildElementOption, } from '@finos/legend-lego/graph-editor';
|
32
32
|
import { getElementIcon } from '../../../ElementIconUtils.js';
|
@@ -35,23 +35,23 @@ import { rawVariableExpression_setMultiplicity, rawVariableExpression_setName, r
|
|
35
35
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../__lib__/LegendStudioApplicationNavigationContext.js';
|
36
36
|
import { ExecutionPlanViewer, FunctionQueryBuilderState, LambdaEditor, LambdaParameterValuesEditor, } from '@finos/legend-query-builder';
|
37
37
|
import { graph_renameElement } from '../../../../stores/graph-modifier/GraphModifierHelper.js';
|
38
|
-
import { ProtocolValueBuilder } from '../ProtocolValueBuilder.js';
|
39
38
|
import { CODE_EDITOR_LANGUAGE, CodeEditor, } from '@finos/legend-lego/code-editor';
|
40
39
|
import { PanelGroupItemExperimentalBadge } from '../../panel-group/PanelGroup.js';
|
40
|
+
import { FunctionTestableEditor } from './testable/FunctionTestableEditor.js';
|
41
41
|
var FUNCTION_PARAMETER_TYPE;
|
42
42
|
(function (FUNCTION_PARAMETER_TYPE) {
|
43
43
|
FUNCTION_PARAMETER_TYPE["CLASS"] = "CLASS";
|
44
44
|
FUNCTION_PARAMETER_TYPE["ENUMERATION"] = "ENUMERATION";
|
45
45
|
FUNCTION_PARAMETER_TYPE["PRIMITIVE"] = "PRIMITIVE";
|
46
46
|
})(FUNCTION_PARAMETER_TYPE || (FUNCTION_PARAMETER_TYPE = {}));
|
47
|
-
export var
|
48
|
-
(function (
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
})(
|
47
|
+
export var FUNCTION_ACTIVATE_TYPE;
|
48
|
+
(function (FUNCTION_ACTIVATE_TYPE) {
|
49
|
+
FUNCTION_ACTIVATE_TYPE["SNOWFLAKE_NATIVE_APP"] = "Snowflake Native App";
|
50
|
+
FUNCTION_ACTIVATE_TYPE["REST_SERVICE"] = "REST Service";
|
51
|
+
FUNCTION_ACTIVATE_TYPE["SERVICE_JAR"] = "Service JAR";
|
52
|
+
FUNCTION_ACTIVATE_TYPE["REFINER"] = "Refiner";
|
53
|
+
FUNCTION_ACTIVATE_TYPE["BIG_QUERY_NATIVE_APP"] = "BigQuery Native App";
|
54
|
+
})(FUNCTION_ACTIVATE_TYPE || (FUNCTION_ACTIVATE_TYPE = {}));
|
55
55
|
const getFunctionParameterType = (type) => {
|
56
56
|
if (type instanceof PrimitiveType) {
|
57
57
|
return FUNCTION_PARAMETER_TYPE.PRIMITIVE;
|
@@ -227,13 +227,13 @@ const FunctionPromoteEditor = observer((props) => {
|
|
227
227
|
: undefined;
|
228
228
|
let validationMessage = '';
|
229
229
|
const closeModal = () => {
|
230
|
-
activatorPromoteState.
|
231
|
-
activatorPromoteState.
|
230
|
+
activatorPromoteState.closeFunctionActivateModal();
|
231
|
+
activatorPromoteState.setAcitvateType(undefined);
|
232
232
|
};
|
233
233
|
const promoteFunction = () => {
|
234
|
-
flowResult(activatorPromoteState.
|
234
|
+
flowResult(activatorPromoteState.activate(functionElement))
|
235
235
|
.then(() => {
|
236
|
-
activatorPromoteState.
|
236
|
+
activatorPromoteState.closeFunctionActivateModal();
|
237
237
|
})
|
238
238
|
.catch(applicationStore.alertUnhandledError);
|
239
239
|
};
|
@@ -242,7 +242,7 @@ const FunctionPromoteEditor = observer((props) => {
|
|
242
242
|
};
|
243
243
|
const validateFunctionActivator = (type) => {
|
244
244
|
switch (type) {
|
245
|
-
case
|
245
|
+
case FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP: {
|
246
246
|
const availableConnections = activatorPromoteState.functionEditorState.editorStore.graphManagerState.usableConnections.filter((connection) => connection.connectionValue instanceof
|
247
247
|
RelationalDatabaseConnection &&
|
248
248
|
connection.connectionValue.type === DatabaseType.Snowflake);
|
@@ -261,32 +261,32 @@ const FunctionPromoteEditor = observer((props) => {
|
|
261
261
|
};
|
262
262
|
const renderFunctionPromoteTypes = (type) => {
|
263
263
|
switch (type) {
|
264
|
-
case
|
265
|
-
return (_jsx(BaseCard, { cardMedia: _jsx(Snowflake_BrandIcon, { className: "function-promote-editor__type-icon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in snowflake", isActive: activatorPromoteState.
|
266
|
-
|
267
|
-
activatorPromoteState.
|
268
|
-
} },
|
269
|
-
case
|
270
|
-
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Create a HostedService that will be deployed to a server environment and executed with a pattern", isDisable: true, isActive: activatorPromoteState.
|
271
|
-
|
272
|
-
case
|
273
|
-
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function in the definition of a Store persistence", isDisable: true, isActive: activatorPromoteState.
|
274
|
-
|
275
|
-
case
|
276
|
-
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Use the service in a refiner context", isDisable: true, isActive: activatorPromoteState.
|
277
|
-
|
278
|
-
case
|
279
|
-
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in BigQuery", isDisable: true, isActive: activatorPromoteState.
|
280
|
-
|
264
|
+
case FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP:
|
265
|
+
return (_jsx(BaseCard, { cardMedia: _jsx(Snowflake_BrandIcon, { className: "function-promote-editor__type-icon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in snowflake", isActive: activatorPromoteState.activateType ===
|
266
|
+
FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP, onClick: () => {
|
267
|
+
activatorPromoteState.setAcitvateType(type);
|
268
|
+
} }, FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP));
|
269
|
+
case FUNCTION_ACTIVATE_TYPE.REST_SERVICE:
|
270
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Create a HostedService that will be deployed to a server environment and executed with a pattern", isDisable: true, isActive: activatorPromoteState.activateType ===
|
271
|
+
FUNCTION_ACTIVATE_TYPE.REST_SERVICE }, FUNCTION_ACTIVATE_TYPE.REST_SERVICE));
|
272
|
+
case FUNCTION_ACTIVATE_TYPE.SERVICE_JAR:
|
273
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function in the definition of a Store persistence", isDisable: true, isActive: activatorPromoteState.activateType ===
|
274
|
+
FUNCTION_ACTIVATE_TYPE.SERVICE_JAR }, FUNCTION_ACTIVATE_TYPE.SERVICE_JAR));
|
275
|
+
case FUNCTION_ACTIVATE_TYPE.REFINER:
|
276
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Use the service in a refiner context", isDisable: true, isActive: activatorPromoteState.activateType ===
|
277
|
+
FUNCTION_ACTIVATE_TYPE.REFINER }, FUNCTION_ACTIVATE_TYPE.REFINER));
|
278
|
+
case FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP:
|
279
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in BigQuery", isDisable: true, isActive: activatorPromoteState.activateType ===
|
280
|
+
FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP }, FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP));
|
281
281
|
default:
|
282
282
|
return _jsx(_Fragment, {});
|
283
283
|
}
|
284
284
|
};
|
285
|
-
return (_jsx(Dialog, { open: activatorPromoteState.
|
286
|
-
!validateFunctionActivator(activatorPromoteState.
|
287
|
-
validateFunctionActivator(activatorPromoteState.
|
285
|
+
return (_jsx(Dialog, { open: activatorPromoteState.isActivatingFunction, onClose: closeModal, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: true, className: "function-promote-editor", children: [_jsxs(ModalBody, { className: "function-promote-editor__content", children: [_jsx("div", { className: "function-promote-editor__content__prompt", children: "Select any one of the following activator types to continue" }), _jsx("div", { className: "function-promote-editor__content__activator-types", children: Object.values(FUNCTION_ACTIVATE_TYPE).map((type) => renderFunctionPromoteTypes(type)) }), _jsx("div", { className: "function-promote-editor__content__prompt", children: "Target Path" }), _jsx(InputWithInlineValidation, { className: "panel__content__form__section__input", spellCheck: false, onChange: onTargetPathChange, value: activatorPromoteState.activatorPath, error: elementAlreadyExistsMessage, showEditableIcon: true })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { className: "function-promote-editor__action-btn", onClick: closeModal, title: "Close", children: "Cancel" }), _jsx(ModalFooterButton, { className: " function-promote-editor__action-btn function-promote-editor__action-btn--primitive", disabled: !activatorPromoteState.activateType ||
|
286
|
+
!validateFunctionActivator(activatorPromoteState.activateType), title: activatorPromoteState.activateType &&
|
287
|
+
validateFunctionActivator(activatorPromoteState.activateType)
|
288
288
|
? ''
|
289
|
-
: validationMessage, onClick: promoteFunction, children: "
|
289
|
+
: validationMessage, onClick: promoteFunction, children: "Activate" })] })] }) }));
|
290
290
|
});
|
291
291
|
const FunctionDefinitionEditor = observer((props) => {
|
292
292
|
const { functionEditorState, isReadOnly } = props;
|
@@ -339,30 +339,6 @@ const FunctionDefinitionEditor = observer((props) => {
|
|
339
339
|
}), children: _jsx(LambdaEditor, { className: "function-editor__definition__lambda-editor lambda-editor--dark", disabled: lambdaEditorState.isConvertingFunctionBodyToString ||
|
340
340
|
isReadOnly, lambdaEditorState: lambdaEditorState, forceBackdrop: false, autoFocus: true }) })] }), _jsxs("div", { className: "function-editor__definition__item", children: [_jsx("div", { className: "function-editor__definition__item__header", children: _jsxs("div", { className: "function-editor__definition__item__header__title", children: ["RESULT", _jsx(PanelGroupItemExperimentalBadge, {})] }) }), _jsx("div", { className: "function-editor__definition__item__content", children: _jsx("div", { className: "function-editor__definition__result-viewer", children: renderFuncResult() }) })] })] })] }));
|
341
341
|
});
|
342
|
-
const FunctionActivatorContentBuilder = observer((props) => {
|
343
|
-
const { functionEditorState, valueBuilderState } = props;
|
344
|
-
const builderState = functionEditorState.activatorBuilderState;
|
345
|
-
// name
|
346
|
-
const nameInputRef = useRef(null);
|
347
|
-
const nameValidationErrorMessage = builderState.activatorName.length === 0
|
348
|
-
? 'Element name cannot be empty'
|
349
|
-
: builderState.isDuplicated
|
350
|
-
? `Element of the same path already existed`
|
351
|
-
: undefined;
|
352
|
-
useEffect(() => {
|
353
|
-
nameInputRef.current?.focus();
|
354
|
-
nameInputRef.current?.select();
|
355
|
-
}, [valueBuilderState]);
|
356
|
-
// function
|
357
|
-
const functionFieldProperty = returnUndefOnError(() => getClassProperty(valueBuilderState.type, 'function'));
|
358
|
-
const functionFieldDocumentation = functionFieldProperty
|
359
|
-
? extractAnnotatedElementDocumentation(functionFieldProperty)
|
360
|
-
: undefined;
|
361
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__content__form", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Name" }), _jsxs("div", { className: "input-group", children: [_jsx("input", { className: "panel__content__form__section__input", spellCheck: false, ref: nameInputRef, value: builderState.activatorName, onChange: (event) => builderState.setActivatorName(event.target.value) }), nameValidationErrorMessage && (_jsx("div", { className: "input-group__error-message", children: nameValidationErrorMessage }))] })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }), functionFieldDocumentation && (_jsx("div", { className: "panel__content__form__section__header__prompt", children: functionFieldDocumentation })), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(functionEditorState.functionElement, {
|
362
|
-
fullPath: true,
|
363
|
-
spacing: false,
|
364
|
-
}) })] }), _jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__divider" }) })] }), _jsx(ProtocolValueBuilder, { builderState: valueBuilderState })] }));
|
365
|
-
});
|
366
342
|
export const FunctionEditor = observer(() => {
|
367
343
|
const editorStore = useEditorStore();
|
368
344
|
const applicationStore = useApplicationStore();
|
@@ -419,9 +395,6 @@ export const FunctionEditor = observer(() => {
|
|
419
395
|
const _deleteStereotype = (val) => () => annotatedElement_deleteStereotype(functionElement, val);
|
420
396
|
const _deleteTaggedValue = (val) => () => annotatedElement_deleteTaggedValue(functionElement, val);
|
421
397
|
const changeTab = (tab) => () => functionEditorState.setSelectedTab(tab);
|
422
|
-
const activate = () => {
|
423
|
-
flowResult(functionEditorState.activatorBuilderState.activate()).catch(applicationStore.alertUnhandledError);
|
424
|
-
};
|
425
398
|
const runFunc = applicationStore.guardUnhandledError(() => flowResult(functionEditorState.handleRunFunc()));
|
426
399
|
const executionIsRunning = functionEditorState.isRunningFunc || functionEditorState.isGeneratingPlan;
|
427
400
|
const cancelQuery = applicationStore.guardUnhandledError(() => flowResult(functionEditorState.cancelFuncRun()));
|
@@ -471,10 +444,13 @@ export const FunctionEditor = observer(() => {
|
|
471
444
|
applicationStore.notificationService.notifyError(`Unable to edit via query builder: ${error.message}`);
|
472
445
|
}
|
473
446
|
});
|
474
|
-
const
|
475
|
-
functionEditorState.activatorPromoteState.
|
447
|
+
const openFunctionActivateModal = () => {
|
448
|
+
functionEditorState.activatorPromoteState.showFunctionActivateModal();
|
476
449
|
};
|
477
|
-
|
450
|
+
// tabs
|
451
|
+
const functionTabs = Object.values(FUNCTION_EDITOR_TAB).filter((val) => val !== FUNCTION_EDITOR_TAB.TEST_SUITES ||
|
452
|
+
editorStore.applicationStore.config.options.NonProductionFeatureFlag);
|
453
|
+
return (_jsx("div", { "data-testid": LEGEND_STUDIO_TEST_ID.FUNCTION_EDITOR, className: "function-editor uml-editor uml-editor--dark", children: _jsxs(Panel, { children: [_jsx("div", { className: "panel__header", children: _jsxs("div", { className: "panel__header__title", children: [isReadOnly && (_jsx("div", { className: "uml-element-editor__header__lock", children: _jsx(LockIcon, {}) })), _jsx("div", { className: "panel__header__title__label", children: "function" }), _jsx("div", { className: "panel__header__title__content", children: functionElement.functionName })] }) }), _jsxs("div", { className: "panel__header function-editor__tabs__header", children: [_jsx("div", { className: "function-editor__tabs", children: functionTabs.map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('function-editor__tab', {
|
478
454
|
'function-editor__tab--active': tab === selectedTab,
|
479
455
|
}), children: prettyCONSTName(tab) }, tab))) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: _jsxs("button", { className: "btn__dropdown-combo__label", onClick: editWithQueryBuilder(), title: "Edit Query", tabIndex: -1, children: [_jsx(PencilIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Edit" })] }) }), _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: functionEditorState.isRunningFunc ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runFunc, title: "Run Function", disabled: executionIsRunning, tabIndex: -1, children: [_jsx(PlayIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Run" })] }), _jsx(DropdownMenu, { className: "btn__dropdown-combo__dropdown-btn", disabled: executionIsRunning, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: generatePlan, children: "Generate Plan" }), _jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: debugPlanGeneration, children: "Debug" })] }), menuProps: {
|
480
456
|
anchorOrigin: {
|
@@ -485,37 +461,12 @@ export const FunctionEditor = observer(() => {
|
|
485
461
|
vertical: 'top',
|
486
462
|
horizontal: 'right',
|
487
463
|
},
|
488
|
-
}, children: _jsx(CaretDownIcon, {}) })] })) }), _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: _jsxs("button", { className: "btn__dropdown-combo__label", onClick:
|
489
|
-
.TEMPORARY__enableFunctionActivatorSupport && (_jsxs(_Fragment, { children: [_jsxs(DropdownMenu, { className: "btn__dropdown-combo", disabled: !editorStore.graphState.functionActivatorConfigurations
|
490
|
-
.length, content: _jsx(MenuContent, { children: editorStore.graphState.functionActivatorConfigurations.map((config) => (_jsxs(MenuContentItem, { className: "function-editor__activator__selector__option", onClick: () => functionEditorState.activatorBuilderState.setCurrentActivatorConfiguration(config), title: config.description, children: [_jsx("div", { className: "function-editor__activator__selector__option__name", children: config.name }), _jsx("div", { className: "function-editor__activator__selector__option__description", children: config.description })] }, config.uuid))) }), menuProps: {
|
491
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
492
|
-
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
493
|
-
}, children: [_jsxs("div", { className: "btn__dropdown-combo__label", children: [_jsx("div", { className: "btn__dropdown-combo__label__icon", children: _jsx(LaunchIcon, {}) }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Activate" })] }), _jsx("div", { className: "btn__dropdown-combo__dropdown-btn", children: _jsx(CaretDownIcon, {}) })] }), functionEditorState.activatorBuilderState
|
494
|
-
.currentActivatorConfiguration && (_jsx(Dialog, { open: Boolean(functionEditorState.activatorBuilderState
|
495
|
-
.currentActivatorConfiguration), onClose: () => functionEditorState.activatorBuilderState.setCurrentActivatorConfiguration(undefined), classes: {
|
496
|
-
root: 'editor-modal__root-container',
|
497
|
-
container: 'editor-modal__container',
|
498
|
-
paper: 'editor-modal__content',
|
499
|
-
},
|
500
|
-
// NOTE: this is a safer way compared to using <form> as it will not trigger click event
|
501
|
-
// on nested button
|
502
|
-
// See https://stackoverflow.com/questions/11353105/why-browser-trigger-a-click-event-instead-of-a-submit-in-a-form
|
503
|
-
// See https://stackoverflow.com/questions/3350247/how-to-prevent-form-from-being-submitted
|
504
|
-
// See https://gomakethings.com/how-to-prevent-buttons-from-causing-a-form-to-submit-with-html/
|
505
|
-
onKeyDown: (event) => {
|
506
|
-
if (event.code === 'Enter' && !event.shiftKey) {
|
507
|
-
event.preventDefault();
|
508
|
-
activate();
|
509
|
-
}
|
510
|
-
}, children: _jsxs(Modal, { darkMode: true, className: "editor-modal", children: [_jsx(ModalHeader, { children: _jsx(ModalTitle, { title: `Function Activator: ${functionEditorState.activatorBuilderState.currentActivatorConfiguration.name}` }) }), _jsx(ModalBody, { children: _jsxs("div", { className: "function-editor__activator-builder", children: [functionEditorState.activatorBuilderState
|
511
|
-
.functionActivatorProtocolValueBuilderState && (_jsx(FunctionActivatorContentBuilder, { functionEditorState: functionEditorState, valueBuilderState: functionEditorState.activatorBuilderState
|
512
|
-
.functionActivatorProtocolValueBuilderState })), !functionEditorState.activatorBuilderState
|
513
|
-
.functionActivatorProtocolValueBuilderState && (_jsx(BlankPanelContent, { children: "No activator chosen" }))] }) }), _jsxs(ModalFooter, { children: [_jsx("button", { className: "btn btn--dark function-editor__activator__btn", type: "submit", disabled: !functionEditorState.activatorBuilderState.isValid, onClick: activate, children: "Activate" }), _jsx("button", { className: "btn btn--dark", onClick: () => functionEditorState.activatorBuilderState.setCurrentActivatorConfiguration(undefined), children: "Close" })] })] }) }))] })), _jsx("button", { className: "panel__header__action", disabled: isReadOnly || selectedTab === FUNCTION_EDITOR_TAB.DEFINITION, onClick: add, tabIndex: -1, title: addButtonTitle, children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [selectedTab === FUNCTION_EDITOR_TAB.DEFINITION && (_jsx(FunctionDefinitionEditor, { functionEditorState: functionEditorState, isReadOnly: isReadOnly })), selectedTab === FUNCTION_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
|
464
|
+
}, children: _jsx(CaretDownIcon, {}) })] })) }), _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: _jsxs("button", { className: "btn__dropdown-combo__label", onClick: openFunctionActivateModal, title: "Activate function", tabIndex: -1, children: [_jsx(RocketIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Activate" })] }) }), _jsx("button", { className: "panel__header__action", disabled: isReadOnly || selectedTab === FUNCTION_EDITOR_TAB.DEFINITION, onClick: add, tabIndex: -1, title: addButtonTitle, children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [selectedTab === FUNCTION_EDITOR_TAB.DEFINITION && (_jsx(FunctionDefinitionEditor, { functionEditorState: functionEditorState, isReadOnly: isReadOnly })), selectedTab === FUNCTION_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
|
514
465
|
'panel__content__lists--dnd-over': isTaggedValueDragOver && !isReadOnly,
|
515
466
|
}), children: [_jsx(TaggedValueDragPreviewLayer, {}), functionElement.taggedValues.map((taggedValue) => (_jsx(TaggedValueEditor, { annotatedElement: functionElement, taggedValue: taggedValue, deleteValue: _deleteTaggedValue(taggedValue), isReadOnly: isReadOnly, darkTheme: true }, taggedValue._UUID)))] })), selectedTab === FUNCTION_EDITOR_TAB.STEREOTYPES && (_jsxs("div", { ref: dropStereotypeRef, className: clsx('panel__content__lists', {
|
516
467
|
'panel__content__lists--dnd-over': isStereotypeDragOver && !isReadOnly,
|
517
|
-
}), children: [_jsx(StereotypeDragPreviewLayer, {}), functionElement.stereotypes.map((stereotype) => (_jsx(StereotypeSelector, { annotatedElement: functionElement, stereotype: stereotype, deleteStereotype: _deleteStereotype(stereotype), isReadOnly: isReadOnly, darkTheme: true }, stereotype.value._UUID)))] })), _jsx(ExecutionPlanViewer, { executionPlanState: functionEditorState.executionPlanState }), functionEditorState.parametersState.parameterValuesEditorState
|
468
|
+
}), children: [_jsx(StereotypeDragPreviewLayer, {}), functionElement.stereotypes.map((stereotype) => (_jsx(StereotypeSelector, { annotatedElement: functionElement, stereotype: stereotype, deleteStereotype: _deleteStereotype(stereotype), isReadOnly: isReadOnly, darkTheme: true }, stereotype.value._UUID)))] })), selectedTab === FUNCTION_EDITOR_TAB.TEST_SUITES && (_jsx(FunctionTestableEditor, { functionTestableState: functionEditorState.functionTestableEditorState })), _jsx(ExecutionPlanViewer, { executionPlanState: functionEditorState.executionPlanState }), functionEditorState.parametersState.parameterValuesEditorState
|
518
469
|
.showModal && (_jsx(LambdaParameterValuesEditor, { graph: functionEditorState.editorStore.graphManagerState.graph, observerContext: functionEditorState.editorStore.changeDetectionState
|
519
|
-
.observerContext, lambdaParametersState: functionEditorState.parametersState }))] }), functionEditorState.activatorPromoteState.
|
470
|
+
.observerContext, lambdaParametersState: functionEditorState.parametersState }))] }), functionEditorState.activatorPromoteState.isActivatingFunction && (_jsx(FunctionPromoteEditor, { functionElement: functionElement, activatorPromoteState: functionEditorState.activatorPromoteState }))] }) }));
|
520
471
|
});
|
521
472
|
//# sourceMappingURL=FunctionEditor.js.map
|