@finos/legend-application-studio 28.19.117 → 28.21.0
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__/LegendStudioUserDataHelper.d.ts +4 -1
- package/lib/__lib__/LegendStudioUserDataHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioUserDataHelper.js +18 -0
- package/lib/__lib__/LegendStudioUserDataHelper.js.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.js +5 -0
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilder.d.ts +22 -0
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilder.d.ts.map +1 -0
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilder.js +43 -0
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilder.js.map +1 -0
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.d.ts.map +1 -1
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.js +8 -16
- package/lib/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.js.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +123 -80
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
- package/lib/components/editor/editor-group/database-editor/DatabaseAnnotationDisplay.d.ts +26 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseAnnotationDisplay.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseAnnotationDisplay.js +101 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseAnnotationDisplay.js.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramCanvas.d.ts +23 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramCanvas.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramCanvas.js +434 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramCanvas.js.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramHelper.d.ts +242 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramHelper.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramHelper.js +371 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseDiagramHelper.js.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseEditor.d.ts +29 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseEditor.js +78 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseEditor.js.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseSchemaTree.d.ts +30 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseSchemaTree.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseSchemaTree.js +331 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseSchemaTree.js.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseTableNode.d.ts +104 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseTableNode.d.ts.map +1 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseTableNode.js +151 -0
- package/lib/components/editor/editor-group/database-editor/DatabaseTableNode.js.map +1 -0
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js +3 -78
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.d.ts +3 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +4 -5
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +5 -3
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/DatabaseEditorState.d.ts +252 -0
- package/lib/stores/editor/editor-state/element-editor-state/DatabaseEditorState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/DatabaseEditorState.js +755 -0
- package/lib/stores/editor/editor-state/element-editor-state/DatabaseEditorState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +2 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +12 -4
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +5 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +12 -0
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
- package/package.json +12 -9
- package/src/__lib__/LegendStudioUserDataHelper.ts +30 -0
- package/src/components/editor/editor-group/EditorGroup.tsx +4 -0
- package/src/components/editor/editor-group/accessor/AccessorQueryBuilder.tsx +81 -0
- package/src/components/editor/editor-group/accessor/{AccessorQueryBuilderHelper.ts → AccessorQueryBuilderHelper.tsx} +14 -1
- package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +225 -86
- package/src/components/editor/editor-group/database-editor/DatabaseAnnotationDisplay.tsx +200 -0
- package/src/components/editor/editor-group/database-editor/DatabaseDiagramCanvas.tsx +701 -0
- package/src/components/editor/editor-group/database-editor/DatabaseDiagramHelper.ts +555 -0
- package/src/components/editor/editor-group/database-editor/DatabaseEditor.tsx +246 -0
- package/src/components/editor/editor-group/database-editor/DatabaseSchemaTree.tsx +1053 -0
- package/src/components/editor/editor-group/database-editor/DatabaseTableNode.tsx +465 -0
- package/src/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.tsx +2 -242
- package/src/components/editor/editor-group/uml-editor/ClassQueryBuilder.tsx +16 -6
- package/src/stores/editor/EditorTabManagerState.ts +4 -5
- package/src/stores/editor/editor-state/element-editor-state/DatabaseEditorState.ts +938 -0
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +14 -5
- package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +27 -0
- package/tsconfig.json +9 -1
|
@@ -15,10 +15,13 @@ import type { UserDataService } from '@finos/legend-application';
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
export declare enum LEGEND_STUDIO_USER_DATA_KEY {
|
|
18
|
-
GLOBAL_TEST_RUNNER_SHOW_DEPENDENCIES = "studio-editor.global-test-runner-showDependencyPanel"
|
|
18
|
+
GLOBAL_TEST_RUNNER_SHOW_DEPENDENCIES = "studio-editor.global-test-runner-showDependencyPanel",
|
|
19
|
+
DATABASE_EDITOR_THEME = "studio-editor.database-editor.theme"
|
|
19
20
|
}
|
|
20
21
|
export declare class LegendStudioUserDataHelper {
|
|
21
22
|
static globalTestRunner_getShowDependencyPanel(service: UserDataService): boolean | undefined;
|
|
22
23
|
static globalTestRunner_setShowDependencyPanel(service: UserDataService, val: boolean): void;
|
|
24
|
+
static databaseEditor_getTheme(service: UserDataService): 'dark' | 'light' | undefined;
|
|
25
|
+
static databaseEditor_setTheme(service: UserDataService, val: 'dark' | 'light'): void;
|
|
23
26
|
}
|
|
24
27
|
//# sourceMappingURL=LegendStudioUserDataHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioUserDataHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendStudioUserDataHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;;;;;;;;;;;;;GAcG;AACH,oBAAY,2BAA2B;IACrC,oCAAoC,yDAAyD;
|
|
1
|
+
{"version":3,"file":"LegendStudioUserDataHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendStudioUserDataHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;;;;;;;;;;;;;GAcG;AACH,oBAAY,2BAA2B;IACrC,oCAAoC,yDAAyD;IAW7F,qBAAqB,wCAAwC;CAC9D;AAED,qBAAa,0BAA0B;IACrC,MAAM,CAAC,uCAAuC,CAC5C,OAAO,EAAE,eAAe,GACvB,OAAO,GAAG,SAAS;IAQtB,MAAM,CAAC,uCAAuC,CAC5C,OAAO,EAAE,eAAe,EACxB,GAAG,EAAE,OAAO,GACX,IAAI;IAOP,MAAM,CAAC,uBAAuB,CAC5B,OAAO,EAAE,eAAe,GACvB,MAAM,GAAG,OAAO,GAAG,SAAS;IAO/B,MAAM,CAAC,uBAAuB,CAC5B,OAAO,EAAE,eAAe,EACxB,GAAG,EAAE,MAAM,GAAG,OAAO,GACpB,IAAI;CAMR"}
|
|
@@ -17,6 +17,17 @@ import { returnUndefOnError } from '@finos/legend-shared';
|
|
|
17
17
|
export var LEGEND_STUDIO_USER_DATA_KEY;
|
|
18
18
|
(function (LEGEND_STUDIO_USER_DATA_KEY) {
|
|
19
19
|
LEGEND_STUDIO_USER_DATA_KEY["GLOBAL_TEST_RUNNER_SHOW_DEPENDENCIES"] = "studio-editor.global-test-runner-showDependencyPanel";
|
|
20
|
+
// Per-user theme preference for the database editor. Scoped to this one
|
|
21
|
+
// editor since the wider Studio app is dark-mode-only today — the rest of
|
|
22
|
+
// the app does not honor this value.
|
|
23
|
+
// TODO: when Studio adopts app-wide theming via `LayoutService` (the
|
|
24
|
+
// mechanism Query already uses with setting key
|
|
25
|
+
// `application.layout.colorTheme`), retire this key and have the database
|
|
26
|
+
// editor inherit `applicationStore.layoutService.currentColorTheme`
|
|
27
|
+
// instead. Migration is mechanical: delete this key + the helper getters,
|
|
28
|
+
// drop the toggle button in the tab header, and retarget the SCSS
|
|
29
|
+
// `.database-editor--light` block at the framework's color-theme tokens.
|
|
30
|
+
LEGEND_STUDIO_USER_DATA_KEY["DATABASE_EDITOR_THEME"] = "studio-editor.database-editor.theme";
|
|
20
31
|
})(LEGEND_STUDIO_USER_DATA_KEY || (LEGEND_STUDIO_USER_DATA_KEY = {}));
|
|
21
32
|
export class LegendStudioUserDataHelper {
|
|
22
33
|
static globalTestRunner_getShowDependencyPanel(service) {
|
|
@@ -25,5 +36,12 @@ export class LegendStudioUserDataHelper {
|
|
|
25
36
|
static globalTestRunner_setShowDependencyPanel(service, val) {
|
|
26
37
|
service.persistValue(LEGEND_STUDIO_USER_DATA_KEY.GLOBAL_TEST_RUNNER_SHOW_DEPENDENCIES, val);
|
|
27
38
|
}
|
|
39
|
+
static databaseEditor_getTheme(service) {
|
|
40
|
+
const val = returnUndefOnError(() => service.getStringValue(LEGEND_STUDIO_USER_DATA_KEY.DATABASE_EDITOR_THEME));
|
|
41
|
+
return val === 'light' || val === 'dark' ? val : undefined;
|
|
42
|
+
}
|
|
43
|
+
static databaseEditor_setTheme(service, val) {
|
|
44
|
+
service.persistValue(LEGEND_STUDIO_USER_DATA_KEY.DATABASE_EDITOR_THEME, val);
|
|
45
|
+
}
|
|
28
46
|
}
|
|
29
47
|
//# sourceMappingURL=LegendStudioUserDataHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioUserDataHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendStudioUserDataHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"LegendStudioUserDataHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendStudioUserDataHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,4HAA6F,CAAA;IAC7F,wEAAwE;IACxE,0EAA0E;IAC1E,qCAAqC;IACrC,qEAAqE;IACrE,gDAAgD;IAChD,0EAA0E;IAC1E,oEAAoE;IACpE,0EAA0E;IAC1E,kEAAkE;IAClE,yEAAyE;IACzE,4FAA6D,CAAA;AAC/D,CAAC,EAbW,2BAA2B,KAA3B,2BAA2B,QAatC;AAED,MAAM,OAAO,0BAA0B;IACrC,MAAM,CAAC,uCAAuC,CAC5C,OAAwB;QAExB,OAAO,kBAAkB,CAAC,GAAG,EAAE,CAC7B,OAAO,CAAC,eAAe,CACrB,2BAA2B,CAAC,oCAAoC,CACjE,CACF,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,uCAAuC,CAC5C,OAAwB,EACxB,GAAY;QAEZ,OAAO,CAAC,YAAY,CAClB,2BAA2B,CAAC,oCAAoC,EAChE,GAAG,CACJ,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,uBAAuB,CAC5B,OAAwB;QAExB,MAAM,GAAG,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAClC,OAAO,CAAC,cAAc,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAC1E,CAAC;QACF,OAAO,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,CAAC;IAED,MAAM,CAAC,uBAAuB,CAC5B,OAAwB,EACxB,GAAqB;QAErB,OAAO,CAAC,YAAY,CAClB,2BAA2B,CAAC,qBAAqB,EACjD,GAAG,CACJ,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/EditorGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"EditorGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/EditorGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyFH,OAAO,EAAE,kCAAkC,IAAI,kCAAkC,EAAE,MAAM,mHAAmH,CAAC;AAC7M,OAAO,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AACtG,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAkCjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAoF3C,CAAC;AAEF,eAAO,MAAM,WAAW;;CAsbtB,CAAC"}
|
|
@@ -46,6 +46,8 @@ import { EntityChangeConflictEditorState } from '../../../stores/editor/editor-s
|
|
|
46
46
|
import { EntityChangeConflictEditor } from './diff-editor/EntityChangeConflictEditor.js';
|
|
47
47
|
import { UnsupportedElementEditorState } from '../../../stores/editor/editor-state/UnsupportedElementEditorState.js';
|
|
48
48
|
import { UnsupportedElementEditor } from './UnsupportedElementEditor.js';
|
|
49
|
+
import { DatabaseEditorState } from '../../../stores/editor/editor-state/element-editor-state/DatabaseEditorState.js';
|
|
50
|
+
import { DatabaseEditor } from './database-editor/DatabaseEditor.js';
|
|
49
51
|
import { getPrettyLabelForRevision } from '../../../stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
|
|
50
52
|
import { GenerationSpecificationEditorState } from '../../../stores/editor/editor-state/GenerationSpecificationEditorState.js';
|
|
51
53
|
import { GenerationSpecificationEditor } from './GenerationSpecificationEditor.js';
|
|
@@ -175,6 +177,9 @@ export const EditorGroup = observer(() => {
|
|
|
175
177
|
else if (currentTabState instanceof MemSQLFunctionActivatorEdtiorState) {
|
|
176
178
|
return _jsx(MemSQLFunctionActivatorEditor, {}, currentTabState.uuid);
|
|
177
179
|
}
|
|
180
|
+
else if (currentTabState instanceof DatabaseEditorState) {
|
|
181
|
+
return _jsx(DatabaseEditor, {}, currentTabState.uuid);
|
|
182
|
+
}
|
|
178
183
|
else if (currentTabState instanceof UnsupportedElementEditorState) {
|
|
179
184
|
return _jsx(UnsupportedElementEditor, {}, currentTabState.uuid);
|
|
180
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorGroup.js","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/EditorGroup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wFAAwF,CAAC;AAC5H,OAAO,EAAE,cAAc,EAAE,MAAM,4EAA4E,CAAC;AAC5G,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4CAA4C,EAC5C,2BAA2B,GAC5B,MAAM,gFAAgF,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,qFAAqF,CAAC;AAC7F,OAAO,EAAE,cA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,eAAe,CAAC,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,YAGjD,cAAc,CAAC,IAAI,GACJ,IACN,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;iCAC1D,YAED,cAAK,SAAS,EAAC,sCAAsC,YAClD,eAAe,CAAC,QAAQ,GACrB,GACiB,CAC1B,IACG,IACF,EACN,cAME,SAAS,EAAC,sCAAsC,iBACnC,qBAAqB,CAAC,oBAAoB,YAEtD,sBAAsB,EAAE,IAJpB,eAAe,CAAC,IAAI,CAKrB,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"EditorGroup.js","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/EditorGroup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wFAAwF,CAAC;AAC5H,OAAO,EAAE,cAAc,EAAE,MAAM,4EAA4E,CAAC;AAC5G,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4CAA4C,EAC5C,2BAA2B,GAC5B,MAAM,gFAAgF,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAy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,SAAS,EAAC,+BAA+B,EACzC,KAAK,EAAC,YAAY,EAClB,OAAO,EACL,MAAC,WAAW,mBAER,qBAAqB,CAAC,mCAAmC,EAE3D,SAAS,EAAC,kCAAkC,aAE5C,KAAC,eAAe,IACd,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,GAAS,EAAE,CAClB,eAAe,CAAC,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,YAGpD,cAAc,CAAC,OAAO,GACP,EAClB,KAAC,eAAe,IACd,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,GAAS,EAAE,CAClB,eAAe,CAAC,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,YAGjD,cAAc,CAAC,IAAI,GACJ,IACN,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;iCAC1D,YAED,cAAK,SAAS,EAAC,sCAAsC,YAClD,eAAe,CAAC,QAAQ,GACrB,GACiB,CAC1B,IACG,IACF,EACN,cAME,SAAS,EAAC,sCAAsC,iBACnC,qBAAqB,CAAC,oBAAoB,YAEtD,sBAAsB,EAAE,IAJpB,eAAe,CAAC,IAAI,CAKrB,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
17
|
+
export declare const PromoteAccessorQueryToFunctionAction: ((props: {
|
|
18
|
+
queryBuilderState: QueryBuilderState;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=AccessorQueryBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessorQueryBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/accessor/AccessorQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAOrE,eAAO,MAAM,oCAAoC,WACvC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsDjD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { observer } from 'mobx-react-lite';
|
|
18
|
+
import { useState } from 'react';
|
|
19
|
+
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
20
|
+
import { NewFunctionModal, promoteQueryToFunction, } from '../uml-editor/ClassQueryBuilder.js';
|
|
21
|
+
export const PromoteAccessorQueryToFunctionAction = observer((props) => {
|
|
22
|
+
const { queryBuilderState } = props;
|
|
23
|
+
const editorStore = useEditorStore();
|
|
24
|
+
const queryBuilderExtension = editorStore.embeddedQueryBuilderState;
|
|
25
|
+
const [showPromoteModal, setShowPromoteModal] = useState(false);
|
|
26
|
+
const accessor = queryBuilderState.sourceAccessor;
|
|
27
|
+
const allowPromotion = Boolean(accessor &&
|
|
28
|
+
queryBuilderState.executionContextState.runtimeValue &&
|
|
29
|
+
!queryBuilderState.allValidationIssues.length);
|
|
30
|
+
const renderSaveAsModal = () => {
|
|
31
|
+
if (!showPromoteModal || !accessor) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
const promoteToFunction = async (packagePath, functionName) => {
|
|
35
|
+
if (allowPromotion) {
|
|
36
|
+
await promoteQueryToFunction(packagePath, functionName, queryBuilderExtension, queryBuilderState);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return (_jsx(NewFunctionModal, { defaultFunctionName: `${accessor.accessor}_QueryFunction`, defaultPackagePath: accessor.parentElement.package?.path, close: () => setShowPromoteModal(false), showModal: true, promoteToFunction: promoteToFunction }));
|
|
40
|
+
};
|
|
41
|
+
return (_jsxs(_Fragment, { children: [_jsx("button", { className: "query-builder__dialog__header__custom-action", title: "Save query as a function", disabled: !allowPromotion, onClick: () => setShowPromoteModal(true), children: "Save As Function" }), renderSaveAsModal()] }));
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=AccessorQueryBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessorQueryBuilder.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/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BAAkB,EAAE,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EACxD,KAAK,EAAE,GAAS,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAC7C,SAAS,EAAE,IAAI,EACf,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,8BACE,iBACE,SAAS,EAAC,8CAA8C,EACxD,KAAK,EAAC,0BAA0B,EAChC,QAAQ,EAAE,CAAC,cAAc,EACzB,OAAO,EAAE,GAAS,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,iCAGvC,EACR,iBAAiB,EAAE,IACnB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessorQueryBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.
|
|
1
|
+
{"version":3,"file":"AccessorQueryBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAY5E,eAAO,MAAM,mBAAmB,GAC9B,SAAS,gBAAgB,GAAG,QAAQ,EACpC,aAAa,WAAW,KACvB,OAAO,CAAC,IAAI,CAgDd,CAAC"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
2
|
import { flowResult } from 'mobx';
|
|
17
3
|
import { AccessorQueryBuilderState, QueryBuilderActionConfig, QueryBuilderAdvancedWorkflowState, getCompatibleRuntimesFromAccessorOwner, } from '@finos/legend-query-builder';
|
|
18
4
|
import { assertErrorThrown, guaranteeNonNullable } from '@finos/legend-shared';
|
|
5
|
+
import { PromoteAccessorQueryToFunctionAction } from './AccessorQueryBuilder.js';
|
|
19
6
|
export const queryAccessorSource = async (element, editorStore) => {
|
|
20
7
|
try {
|
|
21
8
|
const embeddedQueryBuilderState = editorStore.embeddedQueryBuilderState;
|
|
@@ -30,7 +17,12 @@ export const queryAccessorSource = async (element, editorStore) => {
|
|
|
30
17
|
return queryBuilderState;
|
|
31
18
|
},
|
|
32
19
|
disableCompile: true,
|
|
33
|
-
actionConfigs: [
|
|
20
|
+
actionConfigs: [
|
|
21
|
+
{
|
|
22
|
+
key: 'promote-accessor-query-to-function-btn',
|
|
23
|
+
renderer: (queryBuilderState) => (_jsx(PromoteAccessorQueryToFunctionAction, { queryBuilderState: queryBuilderState })),
|
|
24
|
+
},
|
|
25
|
+
],
|
|
34
26
|
}));
|
|
35
27
|
}
|
|
36
28
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessorQueryBuilderHelper.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.
|
|
1
|
+
{"version":3,"file":"AccessorQueryBuilderHelper.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/accessor/AccessorQueryBuilderHelper.ts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C;oBAC7C,QAAQ,EAAE,CACR,iBAAoC,EACnB,EAAE,CAAC,CACpB,KAAC,oCAAoC,IACnC,iBAAiB,EAAE,iBAAiB,GACpC,CACH;iBACF;aACF;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACzB,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC1D,iCAAiC,KAAK,CAAC,OAAO,EAAE,CACjD,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataProductEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/dataProduct/DataProductEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DataProductEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/dataProduct/DataProductEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EAIrB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,mGAAmG,CAAC;AAiL3G,oBAAY,qBAAqB;IAC/B,gBAAgB,wBAAwB;IACxC,iBAAiB,8BAA8B;IAC/C,uBAAuB,+BAA+B;IACtD,aAAa,+BAA+B;IAC5C,cAAc,qCAAqC;IACnD,oBAAoB,sCAAsC;CAC3D;AAED,eAAO,MAAM,qBAAqB,+DAC4B,CAAC;AAK/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,qBAAqB,CAAC;CACnC,CAAC;AAodF,eAAO,MAAM,qCAAqC,WACxC;IACN,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,UAAU,EAAE,OAAO,CAAC;CACrB;;CAujBF,CAAC;AA0FF,eAAO,MAAM,wBAAwB,WAC3B;IAAE,UAAU,EAAE,0BAA0B,CAAA;CAAE;;CAuKnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB;IAAE,UAAU,EAAE,0BAA0B,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAkGxE,CAAC;AA2rDF,eAAO,MAAM,iBAAiB;;CA+J5B,CAAC"}
|
|
@@ -16,17 +16,16 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
16
16
|
*/
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
18
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
19
|
-
import { DATA_PRODUCT_TAB, DATA_PRODUCT_TYPE, DataProductEditorState,
|
|
20
|
-
import { BugIcon, BuildingIcon, CaretDownIcon, Checkbox, CloseEyeIcon, clsx, compressImage, ControlledDropdownMenu, CustomSelectorInput, Dialog, DragPreviewLayer, ErrorWarnIcon, EyeIcon, GroupWorkIcon, HomeIcon, IconSelectorGrid, IconSelectorIcons, InfoCircleIcon, ListEditor, LockIcon, MenuContent, MenuContentItem, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, ModalTitle, PanelContent, PanelDnDEntry, PanelEntryDragHandle, PanelFormTextField, PanelHeader, PanelHeaderActionItem, PanelHeaderActions, PencilEditIcon, PlusIcon, QuestionCircleIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter,
|
|
19
|
+
import { DATA_PRODUCT_TAB, DATA_PRODUCT_TYPE, DataProductEditorState, LakehouseAccessPointState, ModelAccessPointGroupState, } from '../../../../stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js';
|
|
20
|
+
import { BugIcon, BuildingIcon, CaretDownIcon, Checkbox, CloseEyeIcon, clsx, compressImage, ControlledDropdownMenu, CustomSelectorInput, Dialog, DragPreviewLayer, ErrorWarnIcon, EyeIcon, GroupWorkIcon, HomeIcon, IconSelectorGrid, IconSelectorIcons, InfoCircleIcon, ListEditor, LockIcon, MenuContent, MenuContentItem, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, ModalTitle, PanelContent, PanelDnDEntry, PanelEntryDragHandle, PanelFormTextField, PanelHeader, PanelHeaderActionItem, PanelHeaderActions, PencilEditIcon, PlusIcon, QuestionCircleIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, Switch, TimesIcon, Tooltip, UploadIcon, useDragPreviewLayer, WarningIcon, LongArrowRightIcon, PURE_MappingIcon, GitBranchIcon, ListIcon, PanelLoadingIndicator, GearSuggestIcon, } from '@finos/legend-art';
|
|
21
21
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState, } from 'react';
|
|
22
|
-
import { filterByType, guaranteeType, UserSearchService, } from '@finos/legend-shared';
|
|
23
|
-
import { InlineLambdaEditor, LineageViewer } from '@finos/legend-query-builder';
|
|
22
|
+
import { assertErrorThrown, filterByType, guaranteeNonNullable, guaranteeType, isNonNullable, UserSearchService, } from '@finos/legend-shared';
|
|
23
|
+
import { AccessorQueryBuilderState, getCompatibleRuntimesFromAccessorOwner, InlineLambdaEditor, LineageViewer, QueryBuilderActionConfig, QueryBuilderAdvancedWorkflowState, } from '@finos/legend-query-builder';
|
|
24
24
|
import { action, autorun, flowResult } from 'mobx';
|
|
25
|
-
import { useAuth } from 'react-oidc-context';
|
|
26
25
|
import { CODE_EDITOR_LANGUAGE } from '@finos/legend-code-editor';
|
|
27
26
|
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
28
|
-
import { DataProductEmbeddedImageIcon, DataProductLibraryIcon, Email, LakehouseTargetEnv, StereotypeExplicitReference, V1_DataProduct, V1_DataProductIconLibraryId, V1_PureGraphManager, V1_RemoteEngine, validate_PureExecutionMapping, InternalDataProductType, ExternalDataProductType, DataProductLink, observer_DataProductLink, DataProduct_Region, DataProduct_DeliveryFrequency, } from '@finos/legend-graph';
|
|
29
|
-
import { accessPoint_setClassification, accessPoint_setReproducible, accessPointGroup_setDescription, accessPointGroup_setName, dataProduct_setDescription, dataProduct_setIcon, dataProduct_setSupportInfoIfAbsent, dataProduct_setTitle, supportInfo_addEmail, supportInfo_deleteEmail, supportInfo_setDocumentationUrl, supportInfo_setFaqUrl, supportInfo_setLinkLabel, supportInfo_setSupportUrl, supportInfo_setWebsite, dataProduct_setType, expertise_setDescription, expertise_addId, expertise_deleteId, supportInfo_deleteExpertise, externalType_setLinkURL, externalType_setLinkLabel, accessPointGroup_setTitle, accessPoint_setDescription, accessPoint_setTitle, dataProduct_setOperationalMetadataIfAbsent, operationalMetadata_deleteCoverageRegion, operationalMetadata_addCoverageRegion, dataProductDiagram_setTitle, dataProductDiagram_setDescription, operationalMetadata_setUpdateFrequency, } from '../../../../stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js';
|
|
27
|
+
import { DataProductEmbeddedImageIcon, DataProductLibraryIcon, Email, LakehouseTargetEnv, StereotypeExplicitReference, V1_DataProduct, V1_DataProductIconLibraryId, V1_PureGraphManager, V1_RemoteEngine, validate_PureExecutionMapping, InternalDataProductType, ExternalDataProductType, DataProductLink, observer_DataProductLink, DataProduct_Region, DataProduct_DeliveryFrequency, AppDirOwner, AppDirNode, observe_AppDirOwner, observe_AppDirNode, AppDirLevel, } from '@finos/legend-graph';
|
|
28
|
+
import { accessPoint_setClassification, accessPoint_setReproducible, accessPointGroup_setDescription, accessPointGroup_setName, dataProduct_setDescription, dataProduct_setIcon, dataProduct_setSupportInfoIfAbsent, dataProduct_setTitle, supportInfo_addEmail, supportInfo_deleteEmail, supportInfo_setDocumentationUrl, supportInfo_setFaqUrl, supportInfo_setLinkLabel, supportInfo_setSupportUrl, supportInfo_setWebsite, dataProduct_setType, expertise_setDescription, expertise_addId, expertise_deleteId, supportInfo_deleteExpertise, externalType_setLinkURL, externalType_setLinkLabel, accessPointGroup_setTitle, accessPoint_setDescription, accessPoint_setTitle, dataProduct_setOperationalMetadataIfAbsent, operationalMetadata_deleteCoverageRegion, operationalMetadata_addCoverageRegion, dataProductDiagram_setTitle, dataProductDiagram_setDescription, operationalMetadata_setUpdateFrequency, dataProduct_setOwner, appDirOwner_setProduction, appDirOwner_setProdParallel, appDirNode_setAppDirId, } from '../../../../stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js';
|
|
30
29
|
import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
|
|
31
30
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../__lib__/LegendStudioApplicationNavigationContext.js';
|
|
32
31
|
import { ActionAlertActionType, ActionAlertType, useApplicationNavigationContext, } from '@finos/legend-application';
|
|
@@ -333,6 +332,50 @@ export const LakehouseDataProductAccessPointEditor = observer((props) => {
|
|
|
333
332
|
dropConnector(ref);
|
|
334
333
|
useDragPreviewLayer(dragPreviewConnector);
|
|
335
334
|
const generateLineage = editorStore.applicationStore.guardUnhandledError(() => flowResult(accessPointState.generateLineage()));
|
|
335
|
+
const editLambdaInQueryBuilder = editorStore.applicationStore.guardUnhandledError(async () => {
|
|
336
|
+
const embeddedQueryBuilderState = editorStore.embeddedQueryBuilderState;
|
|
337
|
+
const applicationStore = editorStore.applicationStore;
|
|
338
|
+
const ingestDefinition = editorStore.graphManagerState.graph.ownIngests.find(isNonNullable);
|
|
339
|
+
if (!ingestDefinition) {
|
|
340
|
+
applicationStore.notificationService.notifyError('No ingest definition found in this project');
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
await flowResult(embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
|
|
344
|
+
setupQueryBuilderState: async () => {
|
|
345
|
+
const queryBuilderState = new AccessorQueryBuilderState(applicationStore, undefined, editorStore.graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, QueryBuilderActionConfig.INSTANCE, applicationStore.config.options.queryBuilderConfig, editorStore.editorMode.getSourceInfo());
|
|
346
|
+
queryBuilderState.changeAccessorOwner(ingestDefinition);
|
|
347
|
+
const compatibleRuntimes = getCompatibleRuntimesFromAccessorOwner(ingestDefinition, editorStore.graphManagerState);
|
|
348
|
+
if (compatibleRuntimes.length > 0) {
|
|
349
|
+
queryBuilderState.changeSelectedRuntime(guaranteeNonNullable(compatibleRuntimes[0]));
|
|
350
|
+
}
|
|
351
|
+
queryBuilderState.initializeWithQuery(accessPoint.func);
|
|
352
|
+
return queryBuilderState;
|
|
353
|
+
},
|
|
354
|
+
actionConfigs: [
|
|
355
|
+
{
|
|
356
|
+
key: 'save-query-btn',
|
|
357
|
+
renderer: (queryBuilderState) => {
|
|
358
|
+
const save = applicationStore.guardUnhandledError(async () => {
|
|
359
|
+
try {
|
|
360
|
+
const rawLambda = queryBuilderState.buildQueryForPersistence();
|
|
361
|
+
accessPoint.func = rawLambda;
|
|
362
|
+
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(undefined);
|
|
363
|
+
await flowResult(lambdaEditorState.convertLambdaObjectToGrammarString({
|
|
364
|
+
pretty: true,
|
|
365
|
+
}));
|
|
366
|
+
}
|
|
367
|
+
catch (error) {
|
|
368
|
+
assertErrorThrown(error);
|
|
369
|
+
applicationStore.notificationService.notifyError(`Can't save access point lambda: ${error.message}`);
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
return (_jsx("button", { className: "query-builder__dialog__header__custom-action", tabIndex: -1, disabled: props.isReadOnly, onClick: save, children: "Save Lambda" }));
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
disableCompile: true,
|
|
377
|
+
}));
|
|
378
|
+
});
|
|
336
379
|
return (_jsx(PanelDnDEntry, { ref: ref, placeholder: _jsx("div", { className: "dnd__placeholder--light" }), showPlaceholder: isBeingDragged, children: _jsxs("div", { className: clsx('access-point-editor', {
|
|
337
380
|
backdrop__element: propertyHasParserError,
|
|
338
381
|
}), children: [_jsx(PanelEntryDragHandle, { dragSourceConnector: ref, isDragging: isBeingDragged, title: 'Drag this Access Point to another group', className: "access-point-editor__dnd-handle" }), _jsxs("div", { style: { flex: 1 }, children: [_jsxs("div", { className: "access-point-editor__metadata", children: [_jsx(AccessPointTitle, { accessPointState: accessPointState }), _jsxs("div", { className: "access-point-editor__info", children: [_jsxs("div", { className: "access-point-editor__reproducible", children: [_jsx(Checkbox, { disabled: groupState.state.isReadOnly, checked: accessPoint.reproducible ?? false, onChange: () => accessPoint_setReproducible(accessPoint, !accessPoint.reproducible), size: "small", style: { padding: 0, margin: 0 } }), _jsx(Tooltip, { title: _jsx("div", { style: {
|
|
@@ -341,45 +384,16 @@ export const LakehouseDataProductAccessPointEditor = observer((props) => {
|
|
|
341
384
|
wordWrap: 'break-word',
|
|
342
385
|
}, children: "Marking as \"reproducible\" means consumers can consistently retrieve the exact historical data as it existed at any specific Lakehouse batch." }), arrow: true, placement: 'top', children: _jsx("div", { children: "Reproducible" }) })] }), accessPointState.relationElementExistsinDataElementReference() !==
|
|
343
386
|
undefined ? (_jsxs("button", { className: "access-point-editor__sample-values-btn", onClick: () => accessPointState.setShowSampleValuesModal(true), disabled: props.isReadOnly, title: "Edit sample values", style: {
|
|
344
|
-
border: '1px solid var(--color-blue-200)',
|
|
345
|
-
borderRadius: '4px',
|
|
346
|
-
padding: '0.5rem 0.75rem',
|
|
347
|
-
background: 'var(--color-blue-200)',
|
|
348
387
|
cursor: props.isReadOnly ? 'not-allowed' : 'pointer',
|
|
349
|
-
display: 'flex',
|
|
350
|
-
alignItems: 'center',
|
|
351
|
-
gap: '0.5rem',
|
|
352
|
-
color: 'white',
|
|
353
|
-
fontSize: '1.2rem',
|
|
354
|
-
whiteSpace: 'nowrap',
|
|
355
388
|
}, children: [_jsx(PencilEditIcon, {}), _jsx("span", { children: "Sample Values" })] })) : accessPointState.relationElementState !== undefined ? (_jsxs("button", { className: "access-point-editor__sample-values-btn", onClick: () => accessPointState.setShowSampleValuesModal(true), disabled: props.isReadOnly, title: "Edit sample values", style: {
|
|
356
389
|
border: accessPointState.hasRelationElementMismatch
|
|
357
390
|
? '2px solid var(--color-red-300)'
|
|
358
391
|
: '1px solid var(--color-blue-200)',
|
|
359
|
-
borderRadius: '4px',
|
|
360
|
-
padding: '0.5rem 0.75rem',
|
|
361
|
-
background: 'var(--color-blue-200)',
|
|
362
392
|
cursor: props.isReadOnly ? 'not-allowed' : 'pointer',
|
|
363
|
-
display: 'flex',
|
|
364
|
-
alignItems: 'center',
|
|
365
|
-
gap: '0.5rem',
|
|
366
|
-
color: 'white',
|
|
367
|
-
fontSize: '1.2rem',
|
|
368
|
-
whiteSpace: 'nowrap',
|
|
369
393
|
}, children: [_jsx(PencilEditIcon, {}), _jsx("span", { children: "Sample Values" })] })) : (_jsxs("button", { className: "access-point-editor__sample-values-btn", onClick: () => {
|
|
370
394
|
accessPointState.createAndaddRelationElement();
|
|
371
395
|
}, disabled: props.isReadOnly, title: "Add sample values", style: {
|
|
372
|
-
border: '1px solid var(--color-blue-200)',
|
|
373
|
-
borderRadius: '4px',
|
|
374
|
-
padding: '0.5rem 0.75rem',
|
|
375
|
-
background: 'var(--color-blue-200)',
|
|
376
396
|
cursor: props.isReadOnly ? 'not-allowed' : 'pointer',
|
|
377
|
-
display: 'flex',
|
|
378
|
-
alignItems: 'center',
|
|
379
|
-
gap: '0.5rem',
|
|
380
|
-
color: 'white',
|
|
381
|
-
fontSize: '1.2rem',
|
|
382
|
-
whiteSpace: 'nowrap',
|
|
383
397
|
}, children: [_jsx(PlusIcon, {}), _jsx("span", { children: "Sample Values" })] })), editorStore.applicationStore.config.options
|
|
384
398
|
.dataProductConfig && (_jsx(AccessPointClassification, { accessPoint: accessPoint, groupState: groupState })), _jsxs("div", { className: clsx('access-point-editor__type'), title: 'Change target environment', children: [_jsx("div", { className: "access-point-editor__type__label", children: accessPoint.targetEnvironment }), _jsx(ControlledDropdownMenu, { className: "access-point-editor__dropdown", content: _jsx(MenuContent, { children: Object.values(LakehouseTargetEnv).map((environment) => (_jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: () => updateAccessPointTargetEnvironment(environment), children: environment }, environment))) }), menuProps: {
|
|
385
399
|
anchorOrigin: {
|
|
@@ -422,8 +436,8 @@ export const LakehouseDataProductAccessPointEditor = observer((props) => {
|
|
|
422
436
|
marginLeft: '0.5rem',
|
|
423
437
|
marginTop: '0.5rem',
|
|
424
438
|
height: 'auto',
|
|
425
|
-
} })) : (_jsxs("div", { onClick: handleDescriptionEdit, title: "Click to edit access point description", className: "access-point-editor__description-container", children: [accessPoint.description ? (_jsx(HoverTextArea, { text: accessPoint.description, handleMouseOver: handleMouseOverDesc, handleMouseOut: handleMouseOutDesc })) : (_jsxs("div", { className: "access-point-editor__group-container__description--warning", onMouseOver: handleMouseOverDesc, onMouseOut: handleMouseOutDesc, children: [_jsx(ErrorWarnIcon, {}), AP_EMPTY_DESC_WARNING] })), isHoveringDesc && hoverIcon()] })), _jsx("div", { className: "access-point-editor__content", children: _jsx("div", { className: "access-point-editor__generic-entry", children: _jsx("div", { className: "access-point-editor__entry__container", children:
|
|
426
|
-
|
|
439
|
+
} })) : (_jsxs("div", { onClick: handleDescriptionEdit, title: "Click to edit access point description", className: "access-point-editor__description-container", children: [accessPoint.description ? (_jsx(HoverTextArea, { text: accessPoint.description, handleMouseOver: handleMouseOverDesc, handleMouseOut: handleMouseOutDesc })) : (_jsxs("div", { className: "access-point-editor__group-container__description--warning", onMouseOver: handleMouseOverDesc, onMouseOut: handleMouseOutDesc, children: [_jsx(ErrorWarnIcon, {}), AP_EMPTY_DESC_WARNING] })), isHoveringDesc && hoverIcon()] })), _jsx("div", { className: "access-point-editor__content", children: _jsx("div", { className: "access-point-editor__generic-entry", children: _jsx("div", { className: "access-point-editor__entry__container", children: _jsxs("div", { className: "access-point-editor__entry", children: [_jsxs("button", { className: "access-point-editor__query-builder-btn", onClick: editLambdaInQueryBuilder, disabled: props.isReadOnly, title: "Edit lambda with query builder", children: [_jsx(PencilEditIcon, {}), _jsx("span", { children: "Query Builder" })] }), _jsx(InlineLambdaEditor, { className: 'access-point-editor__lambda-editor', disabled: lambdaEditorState.val.state.state
|
|
440
|
+
.isConvertingTransformLambdaObjects, lambdaEditorState: lambdaEditorState, forceBackdrop: Boolean(lambdaEditorState.parserError), onEditorBlur: handleEditorBlur })] }) }) }) }), _jsx(LineageViewer, { lineageState: accessPointState.lineageState })] }), _jsx("button", { className: "access-point-editor__generic-entry__remove-btn", onClick: () => {
|
|
427
441
|
handleRemoveAccessPoint();
|
|
428
442
|
}, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) }), accessPointState.artifactGenerationContent && (_jsx(AccessPointGenerationViewer, { accessPointState: accessPointState, generationOutput: accessPointState.artifactGenerationContent })), accessPointState.showSampleValuesModal && (_jsx(SampleValuesEditorModal, { accessPointState: accessPointState, isReadOnly: props.isReadOnly }))] }) }));
|
|
429
443
|
});
|
|
@@ -862,6 +876,65 @@ const DataProductIconEditor = observer((props) => {
|
|
|
862
876
|
const { product, isReadOnly } = props;
|
|
863
877
|
return (_jsxs("div", { className: "panel__content__form__section data-product-editor__icon-editor", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Icon/Image" }), _jsx(IconPreviewComponent, { dataProduct: product }), _jsx(IconSelectorComponent, { dataProduct: product, isReadOnly: isReadOnly }), _jsx("div", { className: "panel__content__form__section__header__prompt", style: { marginBottom: 0 }, children: _jsx("b", { children: "or" }) }), _jsx(ImageSelectorComponent, { dataProduct: product, isReadOnly: isReadOnly })] }));
|
|
864
878
|
});
|
|
879
|
+
const DataProductOwnershipEditor = observer((props) => {
|
|
880
|
+
const { product, isReadOnly } = props;
|
|
881
|
+
const owner = product.owner instanceof AppDirOwner ? product.owner : undefined;
|
|
882
|
+
const ensureOwner = () => {
|
|
883
|
+
if (owner) {
|
|
884
|
+
return owner;
|
|
885
|
+
}
|
|
886
|
+
const newOwner = observe_AppDirOwner(new AppDirOwner());
|
|
887
|
+
dataProduct_setOwner(product, newOwner);
|
|
888
|
+
return newOwner;
|
|
889
|
+
};
|
|
890
|
+
const handleProductionChange = (event) => {
|
|
891
|
+
const currentOwner = ensureOwner();
|
|
892
|
+
const val = event.target.value;
|
|
893
|
+
if (val === '') {
|
|
894
|
+
appDirOwner_setProduction(currentOwner, undefined);
|
|
895
|
+
if (!currentOwner.prodParallel) {
|
|
896
|
+
dataProduct_setOwner(product, undefined);
|
|
897
|
+
}
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
const num = Number(val);
|
|
901
|
+
if (Number.isNaN(num)) {
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
if (currentOwner.production) {
|
|
905
|
+
appDirNode_setAppDirId(currentOwner.production, num);
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
const node = observe_AppDirNode(new AppDirNode());
|
|
909
|
+
node.appDirId = num;
|
|
910
|
+
node.level = AppDirLevel.DEPLOYMENT;
|
|
911
|
+
appDirOwner_setProduction(currentOwner, node);
|
|
912
|
+
};
|
|
913
|
+
const handleProdParallelChange = (event) => {
|
|
914
|
+
const currentOwner = ensureOwner();
|
|
915
|
+
const val = event.target.value;
|
|
916
|
+
if (val === '') {
|
|
917
|
+
appDirOwner_setProdParallel(currentOwner, undefined);
|
|
918
|
+
if (!currentOwner.production) {
|
|
919
|
+
dataProduct_setOwner(product, undefined);
|
|
920
|
+
}
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
const num = Number(val);
|
|
924
|
+
if (Number.isNaN(num)) {
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
if (currentOwner.prodParallel) {
|
|
928
|
+
appDirNode_setAppDirId(currentOwner.prodParallel, num);
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
const node = observe_AppDirNode(new AppDirNode());
|
|
932
|
+
node.appDirId = num;
|
|
933
|
+
node.level = AppDirLevel.DEPLOYMENT;
|
|
934
|
+
appDirOwner_setProdParallel(currentOwner, node);
|
|
935
|
+
};
|
|
936
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Set the AppDir ownership for this Data Product." }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Production AppDir ID" }), _jsx("input", { className: "input input-group__input panel__content__form__section__input input--dark input--small", type: "number", disabled: isReadOnly, value: owner?.production?.appDirId ?? '', onChange: handleProductionChange, placeholder: "Enter production AppDir ID" })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__prompt", children: "Prod Parallel AppDir ID" }), _jsx("input", { className: "input input-group__input panel__content__form__section__input input--dark input--small", type: "number", disabled: isReadOnly, value: owner?.prodParallel?.appDirId ?? '', onChange: handleProdParallelChange, placeholder: "Enter prod parallel AppDir ID" })] })] }));
|
|
937
|
+
});
|
|
865
938
|
const HomeTab = observer((props) => {
|
|
866
939
|
const { dataProductEditorState, isReadOnly } = props;
|
|
867
940
|
const product = dataProductEditorState.product;
|
|
@@ -925,7 +998,7 @@ const HomeTab = observer((props) => {
|
|
|
925
998
|
} }), _jsx("textarea", { className: "input input-group__input panel__content__form__section__input input--dark input--small", spellCheck: false, disabled: isReadOnly, placeholder: "External Link Label", value: product.type.link.label ?? '', onChange: handleExternalLabelChange, style: {
|
|
926
999
|
resize: 'none',
|
|
927
1000
|
padding: '0.25rem 0.5rem',
|
|
928
|
-
} })] }))] }), _jsx(DataProductIconEditor, { product: product, isReadOnly: isReadOnly })] }) }));
|
|
1001
|
+
} })] }))] }), _jsx(DataProductIconEditor, { product: product, isReadOnly: isReadOnly }), _jsx(DataProductOwnershipEditor, { product: product, isReadOnly: isReadOnly })] }) }));
|
|
929
1002
|
});
|
|
930
1003
|
const ExpertiseEditor = observer((props) => {
|
|
931
1004
|
const { dataProductEditorState } = props;
|
|
@@ -1129,29 +1202,8 @@ export const DataProductEditor = observer(() => {
|
|
|
1129
1202
|
const dataProductEditorState = editorStore.tabManagerState.getCurrentEditorState(DataProductEditorState);
|
|
1130
1203
|
const product = dataProductEditorState.product;
|
|
1131
1204
|
const isReadOnly = dataProductEditorState.isReadOnly;
|
|
1132
|
-
const auth = useAuth();
|
|
1133
1205
|
const [showPreview, setShowPreview] = useState(false);
|
|
1134
1206
|
const [dataProductViewerState, setDataProductViewerState] = useState();
|
|
1135
|
-
const deployDataProduct = () => {
|
|
1136
|
-
// Trigger OAuth flow if not authenticated
|
|
1137
|
-
if (!auth.isAuthenticated) {
|
|
1138
|
-
// remove this redirect if we move to do oauth at the beginning of opening studio
|
|
1139
|
-
auth
|
|
1140
|
-
.signinRedirect({
|
|
1141
|
-
state: generateUrlToDeployOnOpen(dataProductEditorState),
|
|
1142
|
-
})
|
|
1143
|
-
.catch(editorStore.applicationStore.alertUnhandledError);
|
|
1144
|
-
return;
|
|
1145
|
-
}
|
|
1146
|
-
// Use the token for deployment
|
|
1147
|
-
const token = auth.user?.access_token;
|
|
1148
|
-
if (token) {
|
|
1149
|
-
flowResult(dataProductEditorState.deploy(token)).catch(editorStore.applicationStore.alertUnhandledError);
|
|
1150
|
-
}
|
|
1151
|
-
else {
|
|
1152
|
-
editorStore.applicationStore.notificationService.notifyError('Authentication failed. No token available.');
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
1207
|
const selectedActivity = dataProductEditorState.selectedTab;
|
|
1156
1208
|
const renderActivivtyBarTab = () => {
|
|
1157
1209
|
switch (selectedActivity) {
|
|
@@ -1171,15 +1223,6 @@ export const DataProductEditor = observer(() => {
|
|
|
1171
1223
|
useEffect(() => {
|
|
1172
1224
|
flowResult(dataProductEditorState.convertAccessPointsFuncObjects()).catch(dataProductEditorState.editorStore.applicationStore.alertUnhandledError);
|
|
1173
1225
|
}, [dataProductEditorState]);
|
|
1174
|
-
useEffect(() => {
|
|
1175
|
-
if (dataProductEditorState.deployOnOpen) {
|
|
1176
|
-
flowResult(dataProductEditorState.deploy(auth.user?.access_token)).catch(editorStore.applicationStore.alertUnhandledError);
|
|
1177
|
-
}
|
|
1178
|
-
}, [
|
|
1179
|
-
auth,
|
|
1180
|
-
editorStore.applicationStore.alertUnhandledError,
|
|
1181
|
-
dataProductEditorState,
|
|
1182
|
-
]);
|
|
1183
1226
|
useEffect(() => autorun(() => {
|
|
1184
1227
|
if (showPreview) {
|
|
1185
1228
|
setDataProductViewerState(getDataProductViewerState(product, editorStore.graphManagerState, editorStore.applicationStore, editorStore.depotServerClient));
|
|
@@ -1191,16 +1234,16 @@ export const DataProductEditor = observer(() => {
|
|
|
1191
1234
|
product,
|
|
1192
1235
|
showPreview,
|
|
1193
1236
|
]);
|
|
1194
|
-
return (_jsx("div", { className: "data-product-editor", children: _jsxs("div", { className: "panel", children: [_jsxs("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: "data product" })] }),
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1237
|
+
return (_jsx("div", { className: "data-product-editor", children: _jsxs("div", { className: "panel", children: [_jsxs("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: "data product" })] }), _jsx(PanelHeaderActions, { children: _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: _jsx("button", { className: "btn__dropdown-combo__label", onClick: () => {
|
|
1238
|
+
setShowPreview((prev) => {
|
|
1239
|
+
if (!prev) {
|
|
1240
|
+
setDataProductViewerState(getDataProductViewerState(product, editorStore.graphManagerState, editorStore.applicationStore, editorStore.depotServerClient));
|
|
1241
|
+
}
|
|
1242
|
+
return !prev;
|
|
1243
|
+
});
|
|
1244
|
+
}, title: showPreview ? 'Hide Preview' : 'Preview Description', tabIndex: -1, style: {
|
|
1245
|
+
width: '12rem',
|
|
1246
|
+
justifyContent: 'center',
|
|
1247
|
+
}, children: showPreview ? (_jsxs(_Fragment, { children: [_jsx(CloseEyeIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Hide Preview" })] })) : (_jsxs(_Fragment, { children: [_jsx(EyeIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Preview" })] })) }) }) })] }), _jsxs("div", { className: "panel data-product-editor__content-panel", children: [_jsx(DataProductSidebar, { dataProductEditorState: dataProductEditorState }), _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { children: renderActivivtyBarTab() }), showPreview && dataProductViewerState && (_jsx(ResizablePanelSplitter, {})), showPreview && dataProductViewerState && (_jsx(ResizablePanel, { children: _jsx("div", { className: "data-product-editor__preview-container theme__hc-light", children: _jsx(ProductViewer, { productViewerState: dataProductViewerState }) }) }))] })] })] }) }));
|
|
1205
1248
|
});
|
|
1206
1249
|
//# sourceMappingURL=DataProductEditor.js.map
|