@finos/legend-lego 1.2.39 → 1.2.41
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/ActivityBar.js +2 -3
- package/lib/application/ActivityBar.js.map +1 -1
- package/lib/application/DocumentationLink.js +4 -5
- package/lib/application/DocumentationLink.js.map +1 -1
- package/lib/application/FuzzySearchAdvancedConfigMenu.d.ts +1 -1
- package/lib/application/FuzzySearchAdvancedConfigMenu.js +3 -4
- package/lib/application/FuzzySearchAdvancedConfigMenu.js.map +1 -1
- package/lib/application/RedoButton.js +2 -3
- package/lib/application/RedoButton.js.map +1 -1
- package/lib/application/TabManager.d.ts +1 -1
- package/lib/application/TabManager.js +9 -10
- package/lib/application/TabManager.js.map +1 -1
- package/lib/application/UndoButton.js +2 -3
- package/lib/application/UndoButton.js.map +1 -1
- package/lib/code-editor/CodeDiffView.d.ts +2 -2
- package/lib/code-editor/CodeDiffView.js +3 -4
- package/lib/code-editor/CodeDiffView.js.map +1 -1
- package/lib/code-editor/CodeEditor.js +4 -5
- package/lib/code-editor/CodeEditor.js.map +1 -1
- package/lib/data-grid/DataGrid.js +3 -4
- package/lib/data-grid/DataGrid.js.map +1 -1
- package/lib/graph-editor/ElementIconUtils.js +7 -8
- package/lib/graph-editor/ElementIconUtils.js.map +1 -1
- package/lib/graph-editor/PackageableElementOption.js +3 -4
- package/lib/graph-editor/PackageableElementOption.js.map +1 -1
- package/lib/index.css +1 -1
- package/package.json +6 -6
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/ActivityBar.tsx";
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -16,5 +15,5 @@ const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/leg
|
|
16
15
|
* limitations under the License.
|
17
16
|
*/
|
18
17
|
import { SparkleIcon } from '@finos/legend-art';
|
19
|
-
export const ActivityBarItemExperimentalBadge = () => (
|
18
|
+
export const ActivityBarItemExperimentalBadge = () => (_jsx("div", { className: "activity-bar__item__experimental-badge", title: "This is an experimental feature", children: _jsx(SparkleIcon, {}) }));
|
20
19
|
//# sourceMappingURL=ActivityBar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActivityBar.js","sourceRoot":"","sources":["../../src/application/ActivityBar.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ActivityBar.js","sourceRoot":"","sources":["../../src/application/ActivityBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAShD,MAAM,CAAC,MAAM,gCAAgC,GAAa,GAAG,EAAE,CAAC,CAC9D,cACE,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAC,iCAAiC,YAEvC,KAAC,WAAW,KAAG,GACX,CACP,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/DocumentationLink.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -30,9 +29,9 @@ export const DocumentationLink = ({ documentationKey, title, className, inline =
|
|
30
29
|
!shouldDisplayVirtualAssistantDocumentationEntry(documentationEntry))) {
|
31
30
|
return null;
|
32
31
|
}
|
33
|
-
return (
|
32
|
+
return (_jsx("div", { onClick: openDocLink, title: title ?? 'Click to see documentation', className: clsx('documentation-link', className, {
|
34
33
|
'documentation-link--inline': inline,
|
35
|
-
}), children:
|
34
|
+
}), children: _jsx(QuestionCircleIcon, {}) }));
|
36
35
|
};
|
37
36
|
export const DocumentationPreview = (props) => {
|
38
37
|
const { documentationKey, text, className } = props;
|
@@ -42,6 +41,6 @@ export const DocumentationPreview = (props) => {
|
|
42
41
|
if (!textContent) {
|
43
42
|
return null;
|
44
43
|
}
|
45
|
-
return (
|
44
|
+
return (_jsxs("div", { className: clsx('documentation-preview', className), children: [_jsx("div", { className: "documentation-preview__text", children: textContent }), _jsx("div", { className: "documentation-preview__hint", children: documentationEntry && (_jsx(DocumentationLink, { documentationKey: documentationKey })) })] }));
|
46
45
|
};
|
47
46
|
//# sourceMappingURL=DocumentationLink.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DocumentationLink.js","sourceRoot":"","sources":["../../src/application/DocumentationLink.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,+CAA+C,EAC/C,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAKzB,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GACtB,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtE,MAAM,WAAW,GAA4C,CAC3D,KAAK,EACC,EAAE;QACR,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,gBAAgB,CAAC,gBAAgB,CAAC,0BAA0B,CAC1D,gBAAgB,CACjB,CAAC;IACJ,CAAC,CAAC;IAEF,IACE,CAAC,kBAAkB;QACnB,CAAC,CAAC,kBAAkB,CAAC,GAAG;YACtB,CAAC,+CAA+C,CAAC,kBAAkB,CAAC,CAAC,EACvE,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,cACE,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,IAAI,4BAA4B,EAC5C,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,EAAE;YAC/C,4BAA4B,EAAE,MAAM;SACrC,CAAC,YAEF,KAAC,kBAAkB,KAAG,GAClB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAI5B,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACpD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GACtB,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtE,MAAM,WAAW,GAAG,IAAI,IAAI,kBAAkB,EAAE,IAAI,CAAC;IAErD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,eAAK,SAAS,EAAE,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,aACtD,cAAK,SAAS,EAAC,6BAA6B,YAAE,WAAW,GAAO,EAChE,cAAK,SAAS,EAAC,6BAA6B,YACzC,kBAAkB,IAAI,CACrB,KAAC,iBAAiB,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,CAC1D,GACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { type FuzzySearchAdvancedConfigState } from '@finos/legend-shared';
|
17
17
|
export declare const FuzzySearchAdvancedConfigMenu: ((props: {
|
18
18
|
configState: FuzzySearchAdvancedConfigState;
|
19
|
-
}) => import("react/jsx-
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
20
20
|
displayName: string;
|
21
21
|
};
|
22
22
|
//# sourceMappingURL=FuzzySearchAdvancedConfigMenu.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/FuzzySearchAdvancedConfigMenu.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -26,11 +25,11 @@ export const FuzzySearchAdvancedConfigMenu = observer((props) => {
|
|
26
25
|
const searchMode = event.target.value;
|
27
26
|
configState.setCurrentMode(searchMode);
|
28
27
|
};
|
29
|
-
return (
|
28
|
+
return (_jsxs("div", { className: "fuzzy-search__advanced-config__panel", children: [_jsxs("div", { className: "fuzzy-search__advanced-config__panel__header__label", children: ["search config", _jsx(DocumentationLink, { documentationKey: LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX })] }), _jsx("div", { children: _jsx(BaseRadioGroup, { className: "text-search-advanced-config__options", value: configState.currentMode, onChange: handleSearchMode, row: false, options: [
|
30
29
|
ADVANCED_FUZZY_SEARCH_MODE.STANDARD,
|
31
30
|
ADVANCED_FUZZY_SEARCH_MODE.INCLUDE,
|
32
31
|
ADVANCED_FUZZY_SEARCH_MODE.EXACT,
|
33
32
|
ADVANCED_FUZZY_SEARCH_MODE.INVERSE,
|
34
|
-
], size: 1 }
|
33
|
+
], size: 1 }) })] }));
|
35
34
|
});
|
36
35
|
//# sourceMappingURL=FuzzySearchAdvancedConfigMenu.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FuzzySearchAdvancedConfigMenu.js","sourceRoot":"","sources":["../../src/application/FuzzySearchAdvancedConfigMenu.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"FuzzySearchAdvancedConfigMenu.js","sourceRoot":"","sources":["../../src/application/FuzzySearchAdvancedConfigMenu.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,0BAA0B,GAE3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,2BAA2B,CAAC;AAEjF,MAAM,CAAC,MAAM,6BAA6B,GAAG,QAAQ,CACnD,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,gBAAgB,GAA+C,CACnE,KAAK,EACC,EAAE;QACR,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,KAAmC,CAAC;QACpE,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,sCAAsC,aACnD,eAAK,SAAS,EAAC,qDAAqD,8BAElE,KAAC,iBAAiB,IAChB,gBAAgB,EACd,oCAAoC,CAAC,0CAA0C,GAEjF,IACE,EACN,wBACE,KAAC,cAAc,IACb,SAAS,EAAC,sCAAsC,EAChD,KAAK,EAAE,WAAW,CAAC,WAAW,EAC9B,QAAQ,EAAE,gBAAgB,EAC1B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE;wBACP,0BAA0B,CAAC,QAAQ;wBACnC,0BAA0B,CAAC,OAAO;wBAClC,0BAA0B,CAAC,KAAK;wBAChC,0BAA0B,CAAC,OAAO;qBACnC,EACD,IAAI,EAAE,CAAC,GACP,GACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/RedoButton.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -40,6 +39,6 @@ export const RedoButton = (props) => {
|
|
40
39
|
document.removeEventListener('keydown', onCtrlY);
|
41
40
|
};
|
42
41
|
}, [parent, redo]);
|
43
|
-
return (
|
42
|
+
return (_jsx("div", { className: "undo-redo", children: _jsxs("button", { className: "undo-redo__button", onClick: redo, tabIndex: -1, title: 'Redo(ctrl + y)', disabled: !canRedo, children: [_jsx(RedoIcon, {}), _jsx("div", { className: "undo-redo__button__label", children: "Redo" })] }) }));
|
44
43
|
};
|
45
44
|
//# sourceMappingURL=RedoButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RedoButton.js","sourceRoot":"","sources":["../../src/application/RedoButton.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"RedoButton.js","sourceRoot":"","sources":["../../src/application/RedoButton.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAIlB,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,CAAC,KAAoB,EAAQ,EAAE;YAC7C,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;YAC3C,IACE,KAAK,CAAC,OAAO;gBACb,KAAK,CAAC,GAAG,KAAK,GAAG;gBACjB,MAAM,KAAK,IAAI;gBACf,MAAM,CAAC,OAAO,KAAK,IAAI;gBACvB,wHAAwH;gBACxH,wIAAwI;gBACxI,uGAAuG;gBACvG,uGAAuG;gBACvG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EACpE,CAAC;gBACD,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,IAAI,EAAE,CAAC;YACT,CAAC;QACH,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,cAAK,SAAS,EAAC,WAAW,YACxB,kBACE,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,CAAC,OAAO,aAElB,KAAC,QAAQ,KAAG,EACZ,cAAK,SAAS,EAAC,0BAA0B,qBAAW,IAC7C,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -18,7 +18,7 @@ export declare const TAB_MANAGER__TAB_TEST_ID = "tab-manager__tab";
|
|
18
18
|
export declare const TabManager: ((props: {
|
19
19
|
tabManagerState: TabManagerState;
|
20
20
|
tabRenderer?: ((editorState: TabState) => React.ReactNode) | undefined;
|
21
|
-
}) => import("react/jsx-
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
22
22
|
displayName: string;
|
23
23
|
};
|
24
24
|
//# sourceMappingURL=TabManager.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/TabManager.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -48,7 +47,7 @@ const TabContextMenu = observer((props) => {
|
|
48
47
|
const close = () => managerTabState.closeTab(tabState);
|
49
48
|
const closeOthers = () => managerTabState.closeAllOtherTabs(tabState);
|
50
49
|
const closeAll = () => managerTabState.closeAllTabs();
|
51
|
-
return (
|
50
|
+
return (_jsxs(MenuContent, { children: [_jsx(MenuContentItem, { onClick: close, children: "Close" }), _jsx(MenuContentItem, { disabled: managerTabState.tabs.length < 2, onClick: closeOthers, children: "Close Others" }), _jsx(MenuContentItem, { onClick: closeAll, children: "Close All" })] }));
|
52
51
|
});
|
53
52
|
const Tab = observer((props) => {
|
54
53
|
const ref = useRef(null);
|
@@ -94,26 +93,26 @@ const Tab = observer((props) => {
|
|
94
93
|
}), [tabState, tabManagerState]);
|
95
94
|
dragConnector(dropConnector(ref));
|
96
95
|
useDragPreviewLayer(dragPreviewConnector);
|
97
|
-
return (
|
96
|
+
return (_jsx("div", { ref: ref, "data-testid": TAB_MANAGER__TAB_TEST_ID, className: clsx('tab-manager__tab', {
|
98
97
|
'tab-manager__tab--active': tabState === tabManagerState.currentTab,
|
99
98
|
'tab-manager__tab--dragged': isBeingDragged,
|
100
|
-
}), onMouseUp: closeTabOnMiddleClick(tabState), children:
|
99
|
+
}), onMouseUp: closeTabOnMiddleClick(tabState), children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: false, className: "tab-manager__tab__dnd__placeholder", children: _jsxs(ContextMenu, { content: _jsx(TabContextMenu, { tabState: tabState, managerTabState: tabManagerState }), className: "tab-manager__tab__content", children: [_jsx("button", { className: "tab-manager__tab__label", tabIndex: -1, onClick: () => tabManagerState.openTab(tabState), title: tabState.description, children: tabRenderer?.(tabState) ?? tabState.label }), _jsx("button", { className: "tab-manager__tab__close-btn", onClick: () => tabManagerState.closeTab(tabState), tabIndex: -1, title: "Close", children: _jsx(TimesIcon, {}) })] }) }) }));
|
101
100
|
});
|
102
101
|
const TabMenu = observer((props) => {
|
103
102
|
const { managerTabState } = props;
|
104
|
-
return (
|
103
|
+
return (_jsx(DropdownMenu, { className: "tab-manager__menu__toggler", title: "Show All Tabs", content: _jsx(MenuContent, { className: "tab-manager__menu", children: managerTabState.tabs.map((tabState) => (_jsxs(MenuContentItem, { className: clsx('tab-manager__menu__item', {
|
105
104
|
'tab-manager__menu__item--active': tabState === managerTabState.currentTab,
|
106
|
-
}), onClick: () => managerTabState.openTab(tabState), children: [
|
105
|
+
}), onClick: () => managerTabState.openTab(tabState), children: [_jsx("div", { className: "tab-manager__menu__item__label", children: tabState.label }), _jsx("div", { className: "tab-manager__menu__item__close-btn", onClick: (event) => {
|
107
106
|
// NOTE: prevent default action of dropdown menu
|
108
107
|
event.stopPropagation();
|
109
108
|
managerTabState.closeTab(tabState);
|
110
|
-
}, tabIndex: -1, title: "Close", children:
|
109
|
+
}, tabIndex: -1, title: "Close", children: _jsx(TimesIcon, {}) })] }, tabState.uuid))) }), menuProps: {
|
111
110
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
112
111
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
113
|
-
}, children:
|
112
|
+
}, children: _jsx(ChevronDownIcon, {}) }));
|
114
113
|
});
|
115
114
|
export const TabManager = observer((props) => {
|
116
115
|
const { tabManagerState, tabRenderer } = props;
|
117
|
-
return (
|
116
|
+
return (_jsxs("div", { className: "tab-manager", children: [_jsxs("div", { className: "tab-manager__content", onWheel: horizontalToVerticalScroll, children: [tabManagerState.tabs.map((tab) => (_jsx(Tab, { tabState: tab, tabManagerState: tabManagerState, tabRenderer: tabRenderer }, tab.uuid))), _jsx(DragPreviewLayer, { labelGetter: (item) => item.tab.label, types: [tabManagerState.dndType] })] }), _jsx(TabMenu, { managerTabState: tabManagerState })] }));
|
118
117
|
});
|
119
118
|
//# sourceMappingURL=TabManager.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"T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E,UAAU,EAAE,OAAO,EAAE;YACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;SAC1D,YAED,KAAC,eAAe,KAAG,GACN,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAChC,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE/C,OAAO,CACL,eAAK,SAAS,EAAC,aAAa,aAC1B,eACE,SAAS,EAAC,sBAAsB,EAChC,OAAO,EAAE,0BAA0B,aAElC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjC,KAAC,GAAG,IAEF,QAAQ,EAAE,GAAG,EACb,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,IAHnB,GAAG,CAAC,IAAI,CAIb,CACH,CAAC,EACF,KAAC,gBAAgB,IACf,WAAW,EAAE,CAAC,IAAmB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAC5D,KAAK,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,GAChC,IACE,EACN,KAAC,OAAO,IAAC,eAAe,EAAE,eAAe,GAAI,IACzC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/UndoButton.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -40,6 +39,6 @@ export const UndoButton = (props) => {
|
|
40
39
|
document.removeEventListener('keydown', onCtrlZ);
|
41
40
|
};
|
42
41
|
}, [parent, undo]);
|
43
|
-
return (
|
42
|
+
return (_jsx("div", { className: "undo-redo", children: _jsxs("button", { className: "undo-redo__button", onClick: undo, tabIndex: -1, title: 'Undo(ctrl + z)', disabled: !canUndo, children: [_jsx(UndoIcon, {}), _jsx("div", { className: "undo-redo__button__label", children: "Undo" })] }) }));
|
44
43
|
};
|
45
44
|
//# sourceMappingURL=UndoButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UndoButton.js","sourceRoot":"","sources":["../../src/application/UndoButton.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"UndoButton.js","sourceRoot":"","sources":["../../src/application/UndoButton.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAIlB,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,CAAC,KAAoB,EAAQ,EAAE;YAC7C,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;YAC3C,IACE,KAAK,CAAC,OAAO;gBACb,KAAK,CAAC,GAAG,KAAK,GAAG;gBACjB,MAAM,KAAK,IAAI;gBACf,MAAM,CAAC,OAAO,KAAK,IAAI;gBACvB,wHAAwH;gBACxH,wIAAwI;gBACxI,uGAAuG;gBACvG,uGAAuG;gBACvG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EACpE,CAAC;gBACD,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,IAAI,EAAE,CAAC;YACT,CAAC;QACH,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,cAAK,SAAS,EAAC,WAAW,YACxB,kBACE,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,CAAC,OAAO,aAElB,KAAC,QAAQ,KAAG,EACZ,cAAK,SAAS,EAAC,0BAA0B,qBAAW,IAC7C,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -18,7 +18,7 @@ export declare const CodeDiffView: ((props: {
|
|
18
18
|
language: CODE_EDITOR_LANGUAGE;
|
19
19
|
from?: string | undefined;
|
20
20
|
to?: string | undefined;
|
21
|
-
}) => import("react/jsx-
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
22
22
|
displayName: string;
|
23
23
|
};
|
24
24
|
export declare const JSONDiffView: ((props: {
|
@@ -28,7 +28,7 @@ export declare const JSONDiffView: ((props: {
|
|
28
28
|
* Use lossless algorithm while parsing/stringifying JSON-like value
|
29
29
|
*/
|
30
30
|
lossless?: boolean;
|
31
|
-
}) => import("react/jsx-
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
32
32
|
displayName: string;
|
33
33
|
};
|
34
34
|
//# sourceMappingURL=CodeDiffView.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/code-editor/CodeDiffView.tsx";
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -57,7 +56,7 @@ export const CodeDiffView = observer((props) => {
|
|
57
56
|
disposeDiffCodeEditor(editor);
|
58
57
|
}
|
59
58
|
}, [editor]);
|
60
|
-
return (
|
59
|
+
return (_jsx("div", { className: "code-editor__container", children: _jsx("div", { className: "code-editor__body", ref: editorRef }) }));
|
61
60
|
});
|
62
61
|
const formatJSONLikeValue = (value, lossless) => value
|
63
62
|
? isString(value)
|
@@ -70,6 +69,6 @@ const formatJSONLikeValue = (value, lossless) => value
|
|
70
69
|
: '';
|
71
70
|
export const JSONDiffView = observer((props) => {
|
72
71
|
const { from, to, lossless } = props;
|
73
|
-
return (
|
72
|
+
return (_jsx(CodeDiffView, { language: CODE_EDITOR_LANGUAGE.JSON, from: formatJSONLikeValue(from, Boolean(lossless)), to: formatJSONLikeValue(to, Boolean(lossless)) }));
|
74
73
|
});
|
75
74
|
//# sourceMappingURL=CodeDiffView.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CodeDiffView.js","sourceRoot":"","sources":["../../src/code-editor/CodeDiffView.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CodeDiffView.js","sourceRoot":"","sources":["../../src/code-editor/CodeDiffView.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBA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-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/code-editor/CodeEditor.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -133,11 +132,11 @@ export const CodeEditor = (props) => {
|
|
133
132
|
onDidChangeModelContentEventDisposer.current?.dispose();
|
134
133
|
}
|
135
134
|
}, [editor]);
|
136
|
-
return (
|
135
|
+
return (_jsxs("div", { className: "code-editor", children: [!hideActionBar && (_jsx("div", { className: "code-editor__header", children: _jsx("button", { tabIndex: -1, className: clsx('code-editor__header__action', {
|
137
136
|
'code-editor__header__action--active': isWordWrap,
|
138
|
-
}), onClick: toggleWordWrap, title: `[${isWordWrap ? 'on' : 'off'}] Toggle word wrap`, children:
|
137
|
+
}), onClick: toggleWordWrap, title: `[${isWordWrap ? 'on' : 'off'}] Toggle word wrap`, children: _jsx(WordWrapIcon, {}) }) })), _jsx("div", { className: clsx('code-editor__content', {
|
139
138
|
'code-editor__content--padding': !hidePadding,
|
140
139
|
'code-editor__content--with__header': !hideActionBar,
|
141
|
-
}), children:
|
140
|
+
}), children: _jsx("div", { className: "code-editor__body", ref: textInputRef }) })] }));
|
142
141
|
};
|
143
142
|
//# sourceMappingURL=CodeEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CodeEditor.js","sourceRoot":"","sources":["../../src/code-editor/CodeEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CodeEditor.js","sourceRoot":"","sources":["../../src/code-editor/CodeEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAoB,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EACL,iBAAiB,EACjB,wBA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ner/work/legend-studio/legend-studio/packages/legend-lego/src/data-grid/DataGrid.tsx";
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -48,7 +47,7 @@ export function DataGrid(props) {
|
|
48
47
|
if (AG_GRID_LICENSE) {
|
49
48
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
50
49
|
}
|
51
|
-
return (
|
50
|
+
return (_jsx(AgGridReact
|
52
51
|
// Temporarily disable usage the browser's ResizeObserver as sometimes, this causes the error
|
53
52
|
// `ResizeObserver loop limit exceeded` when we zoom in too much, in our cases, the problem
|
54
53
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
@@ -60,7 +59,7 @@ export function DataGrid(props) {
|
|
60
59
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
61
60
|
// one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
|
62
61
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
63
|
-
suppressBrowserResizeObserver: true, ...props, modules: AG_GRID_LICENSE ? allModules : communityModules }
|
62
|
+
suppressBrowserResizeObserver: true, ...props, modules: AG_GRID_LICENSE ? allModules : communityModules }));
|
64
63
|
}
|
65
64
|
export const configureDataGridComponent = () => {
|
66
65
|
ModuleRegistry.registerModules([ClientSideRowModelModule]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,GAGZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,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FAAoF;QACpF,8EAA8E;QAC9E,qDAAqD;QACrD,6BAA6B,EAAE,IAAI,KAC/B,KAAK,EACT,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB,GACxD,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAS,EAAE;IACnD,cAAc,CAAC,eAAe,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/graph-editor/ElementIconUtils.tsx";
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -19,20 +18,20 @@ import { Class, Enumeration, Measure, Unit, PrimitiveType, } from '@finos/legend
|
|
19
18
|
import { PURE_ClassIcon, PURE_PrimitiveTypeIcon, PURE_EnumerationIcon, PURE_MeasureIcon, PURE_UnknownElementTypeIcon, PURE_UnitIcon, } from '@finos/legend-art';
|
20
19
|
export const getClassPropertyIcon = (type) => {
|
21
20
|
if (type instanceof PrimitiveType) {
|
22
|
-
return
|
21
|
+
return _jsx(PURE_PrimitiveTypeIcon, {});
|
23
22
|
}
|
24
23
|
else if (type instanceof Class) {
|
25
|
-
return
|
24
|
+
return _jsx(PURE_ClassIcon, {});
|
26
25
|
}
|
27
26
|
else if (type instanceof Enumeration) {
|
28
|
-
return
|
27
|
+
return _jsx(PURE_EnumerationIcon, {});
|
29
28
|
}
|
30
29
|
else if (type instanceof Measure) {
|
31
|
-
return
|
30
|
+
return _jsx(PURE_MeasureIcon, {});
|
32
31
|
}
|
33
32
|
else if (type instanceof Unit) {
|
34
|
-
return
|
33
|
+
return _jsx(PURE_UnitIcon, {});
|
35
34
|
}
|
36
|
-
return
|
35
|
+
return _jsx(PURE_UnknownElementTypeIcon, {});
|
37
36
|
};
|
38
37
|
//# sourceMappingURL=ElementIconUtils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementIconUtils.js","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ElementIconUtils.js","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,OAAO,EACP,IAAI,EACJ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAClE,IAAI,IAAI,YAAY,aAAa,EAAE,CAAC;QAClC,OAAO,KAAC,sBAAsB,KAAG,CAAC;IACpC,CAAC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,KAAC,cAAc,KAAG,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QACvC,OAAO,KAAC,oBAAoB,KAAG,CAAC;IAClC,CAAC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QACnC,OAAO,KAAC,gBAAgB,KAAG,CAAC;IAC9B,CAAC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QAChC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC3B,CAAC;IACD,OAAO,KAAC,2BAA2B,KAAG,CAAC;AACzC,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/graph-editor/PackageableElementOption.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -40,8 +39,8 @@ export const getPackageableElementOptionFormatter = (props) => function Packagea
|
|
40
39
|
? 'packageable-element-option-label--dark'
|
41
40
|
: 'packageable-element-option-label';
|
42
41
|
const colorCode = getElementColorCode(option.value);
|
43
|
-
return (
|
42
|
+
return (_jsxs("div", { className: className, children: [_jsx("div", { title: generateOptionTooltipText(option.value), className: `packageable-element-option-label__type ${colorCode
|
44
43
|
? `packageable-element-option-label__type--${colorCode}`
|
45
|
-
: ''} ` }
|
44
|
+
: ''} ` }), _jsx("div", { className: `${className}__name`, children: option.label }), option.value.package && (_jsx("div", { className: `${className}__tag`, children: option.value.path }))] }));
|
46
45
|
};
|
47
46
|
//# sourceMappingURL=PackageableElementOption.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PackageableElementOption.js","sourceRoot":"","sources":["../../src/graph-editor/PackageableElementOption.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PackageableElementOption.js","sourceRoot":"","sources":["../../src/graph-editor/PackageableElementOption.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,eAAe,EACf,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAO7B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,OAAU,EACmB,EAAE,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC,IAAI;IACnB,KAAK,EAAE,OAAO;CACf,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,OAA2B,EAAU,EAAE,CAClE,eAAe,CAAC,OAAO,CAAC;IACtB,CAAC,CAAC,QAAQ;IACV,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC;QAC3B,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC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2.41",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -63,10 +63,10 @@
|
|
63
63
|
"@ag-grid-enterprise/server-side-row-model": "31.3.2",
|
64
64
|
"@ag-grid-enterprise/side-bar": "31.3.2",
|
65
65
|
"@ag-grid-enterprise/status-bar": "31.3.2",
|
66
|
-
"@finos/legend-application": "15.1.
|
67
|
-
"@finos/legend-art": "7.1.
|
68
|
-
"@finos/legend-graph": "31.10.
|
69
|
-
"@finos/legend-shared": "10.0.
|
66
|
+
"@finos/legend-application": "15.1.10",
|
67
|
+
"@finos/legend-art": "7.1.38",
|
68
|
+
"@finos/legend-graph": "31.10.5",
|
69
|
+
"@finos/legend-shared": "10.0.40",
|
70
70
|
"@types/css-font-loading-module": "0.0.13",
|
71
71
|
"@types/react": "18.3.3",
|
72
72
|
"@types/react-dom": "18.3.0",
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"react-dom": "18.3.1"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"@finos/legend-dev-utils": "2.1.
|
81
|
+
"@finos/legend-dev-utils": "2.1.8",
|
82
82
|
"@jest/globals": "29.7.0",
|
83
83
|
"cross-env": "7.0.3",
|
84
84
|
"eslint": "8.57.0",
|