@finos/legend-lego 1.2.37 → 1.2.39
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/ActivityBar.js +3 -2
- package/lib/application/ActivityBar.js.map +1 -1
- package/lib/application/DocumentationLink.js +5 -4
- package/lib/application/DocumentationLink.js.map +1 -1
- package/lib/application/FuzzySearchAdvancedConfigMenu.d.ts +1 -1
- package/lib/application/FuzzySearchAdvancedConfigMenu.js +4 -3
- package/lib/application/FuzzySearchAdvancedConfigMenu.js.map +1 -1
- package/lib/application/RedoButton.js +3 -2
- package/lib/application/RedoButton.js.map +1 -1
- package/lib/application/TabManager.d.ts +1 -1
- package/lib/application/TabManager.js +10 -9
- package/lib/application/TabManager.js.map +1 -1
- package/lib/application/UndoButton.js +3 -2
- package/lib/application/UndoButton.js.map +1 -1
- package/lib/code-editor/CodeDiffView.d.ts +2 -2
- package/lib/code-editor/CodeDiffView.js +4 -3
- package/lib/code-editor/CodeDiffView.js.map +1 -1
- package/lib/code-editor/CodeEditor.js +5 -4
- package/lib/code-editor/CodeEditor.js.map +1 -1
- package/lib/data-grid/DataGrid.js +4 -3
- package/lib/data-grid/DataGrid.js.map +1 -1
- package/lib/graph-editor/ElementIconUtils.js +8 -7
- package/lib/graph-editor/ElementIconUtils.js.map +1 -1
- package/lib/graph-editor/PackageableElementOption.js +4 -3
- package/lib/graph-editor/PackageableElementOption.js.map +1 -1
- package/lib/index.css +1 -1
- package/package.json +3 -3
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/ActivityBar.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -15,5 +16,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
* limitations under the License.
|
16
17
|
*/
|
17
18
|
import { SparkleIcon } from '@finos/legend-art';
|
18
|
-
export const ActivityBarItemExperimentalBadge = () => (
|
19
|
+
export const ActivityBarItemExperimentalBadge = () => (_jsxDEV("div", { className: "activity-bar__item__experimental-badge", title: "This is an experimental feature", children: _jsxDEV(SparkleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 31, columnNumber: 5 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 26, columnNumber: 66 }, this));
|
19
20
|
//# 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,iBACE,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAC,iCAAiC,YAEvC,QAAC,WAAW,uFAAG,sFACX,CACP,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/DocumentationLink.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -29,9 +30,9 @@ export const DocumentationLink = ({ documentationKey, title, className, inline =
|
|
29
30
|
!shouldDisplayVirtualAssistantDocumentationEntry(documentationEntry))) {
|
30
31
|
return null;
|
31
32
|
}
|
32
|
-
return (
|
33
|
+
return (_jsxDEV("div", { onClick: openDocLink, title: title ?? 'Click to see documentation', className: clsx('documentation-link', className, {
|
33
34
|
'documentation-link--inline': inline,
|
34
|
-
}), children:
|
35
|
+
}), children: _jsxDEV(QuestionCircleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 57, columnNumber: 7 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 49, columnNumber: 11 }, this));
|
35
36
|
};
|
36
37
|
export const DocumentationPreview = (props) => {
|
37
38
|
const { documentationKey, text, className } = props;
|
@@ -41,6 +42,6 @@ export const DocumentationPreview = (props) => {
|
|
41
42
|
if (!textContent) {
|
42
43
|
return null;
|
43
44
|
}
|
44
|
-
return (
|
45
|
+
return (_jsxDEV("div", { className: clsx('documentation-preview', className), children: [_jsxDEV("div", { className: "documentation-preview__text", children: textContent }, void 0, false, { fileName: _jsxFileName, lineNumber: 78, columnNumber: 7 }, this), _jsxDEV("div", { className: "documentation-preview__hint", children: documentationEntry && (_jsxDEV(DocumentationLink, { documentationKey: documentationKey }, void 0, false, { fileName: _jsxFileName, lineNumber: 80, columnNumber: 33 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 79, columnNumber: 7 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 76, columnNumber: 11 }, this));
|
45
46
|
};
|
46
47
|
//# 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/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AK,SAAS,EAAC,6BAA6B,YACzC,kBAAkB,IAAI,CACrB,QAAC,iBAAiB,IAAC,gBAAgB,EAAE,gBAAgB,sFAAI,CAC1D,qFACG,sFACF,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-runtime").JSX.Element) & {
|
19
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
20
20
|
displayName: string;
|
21
21
|
};
|
22
22
|
//# sourceMappingURL=FuzzySearchAdvancedConfigMenu.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/FuzzySearchAdvancedConfigMenu.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -25,11 +26,11 @@ export const FuzzySearchAdvancedConfigMenu = observer((props) => {
|
|
25
26
|
const searchMode = event.target.value;
|
26
27
|
configState.setCurrentMode(searchMode);
|
27
28
|
};
|
28
|
-
return (
|
29
|
+
return (_jsxDEV("div", { className: "fuzzy-search__advanced-config__panel", children: [_jsxDEV("div", { className: "fuzzy-search__advanced-config__panel__header__label", children: ["search config", _jsxDEV(DocumentationLink, { documentationKey: LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX }, void 0, false, { fileName: _jsxFileName, lineNumber: 41, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 39, columnNumber: 9 }, this), _jsxDEV("div", { children: _jsxDEV(BaseRadioGroup, { className: "text-search-advanced-config__options", value: configState.currentMode, onChange: handleSearchMode, row: false, options: [
|
29
30
|
ADVANCED_FUZZY_SEARCH_MODE.STANDARD,
|
30
31
|
ADVANCED_FUZZY_SEARCH_MODE.INCLUDE,
|
31
32
|
ADVANCED_FUZZY_SEARCH_MODE.EXACT,
|
32
33
|
ADVANCED_FUZZY_SEARCH_MODE.INVERSE,
|
33
|
-
], size: 1 }) })] }));
|
34
|
+
], size: 1 }, void 0, false, { fileName: _jsxFileName, lineNumber: 48, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 47, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 37, columnNumber: 13 }, this));
|
34
35
|
});
|
35
36
|
//# 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,iBAAK,SAAS,EAAC,sCAAsC,aACnD,iBAAK,SAAS,EAAC,qDAAqD,8BAElE,QAAC,iBAAiB,IAChB,gBAAgB,EACd,oCAAoC,CAAC,0CAA0C,sFAEjF,qFACE,EACN,2BACE,QAAC,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,sFACP,qFACE,sFACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/RedoButton.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -39,6 +40,6 @@ export const RedoButton = (props) => {
|
|
39
40
|
document.removeEventListener('keydown', onCtrlY);
|
40
41
|
};
|
41
42
|
}, [parent, redo]);
|
42
|
-
return (
|
43
|
+
return (_jsxDEV("div", { className: "undo-redo", children: _jsxDEV("button", { className: "undo-redo__button", onClick: redo, tabIndex: -1, title: 'Redo(ctrl + y)', disabled: !canRedo, children: [_jsxDEV(RedoIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 60, columnNumber: 9 }, this), _jsxDEV("div", { className: "undo-redo__button__label", children: "Redo" }, void 0, false, { fileName: _jsxFileName, lineNumber: 61, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 53, columnNumber: 7 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 51, columnNumber: 11 }, this));
|
43
44
|
};
|
44
45
|
//# 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,iBAAK,SAAS,EAAC,WAAW,YACxB,oBACE,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,CAAC,OAAO,aAElB,QAAC,QAAQ,uFAAG,EACZ,iBAAK,SAAS,EAAC,0BAA0B,uGAAW,qFAC7C,sFACL,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-runtime").JSX.Element) & {
|
21
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
22
22
|
displayName: string;
|
23
23
|
};
|
24
24
|
//# sourceMappingURL=TabManager.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/TabManager.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -47,7 +48,7 @@ const TabContextMenu = observer((props) => {
|
|
47
48
|
const close = () => managerTabState.closeTab(tabState);
|
48
49
|
const closeOthers = () => managerTabState.closeAllOtherTabs(tabState);
|
49
50
|
const closeAll = () => managerTabState.closeAllTabs();
|
50
|
-
return (
|
51
|
+
return (_jsxDEV(MenuContent, { children: [_jsxDEV(MenuContentItem, { onClick: close, children: "Close" }, void 0, false, { fileName: _jsxFileName, lineNumber: 71, columnNumber: 9 }, this), _jsxDEV(MenuContentItem, { disabled: managerTabState.tabs.length < 2, onClick: closeOthers, children: "Close Others" }, void 0, false, { fileName: _jsxFileName, lineNumber: 72, columnNumber: 9 }, this), _jsxDEV(MenuContentItem, { onClick: closeAll, children: "Close All" }, void 0, false, { fileName: _jsxFileName, lineNumber: 78, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 69, columnNumber: 13 }, this));
|
51
52
|
});
|
52
53
|
const Tab = observer((props) => {
|
53
54
|
const ref = useRef(null);
|
@@ -93,26 +94,26 @@ const Tab = observer((props) => {
|
|
93
94
|
}), [tabState, tabManagerState]);
|
94
95
|
dragConnector(dropConnector(ref));
|
95
96
|
useDragPreviewLayer(dragPreviewConnector);
|
96
|
-
return (
|
97
|
+
return (_jsxDEV("div", { ref: ref, "data-testid": TAB_MANAGER__TAB_TEST_ID, className: clsx('tab-manager__tab', {
|
97
98
|
'tab-manager__tab--active': tabState === tabManagerState.currentTab,
|
98
99
|
'tab-manager__tab--dragged': isBeingDragged,
|
99
|
-
}), onMouseUp: closeTabOnMiddleClick(tabState), children:
|
100
|
+
}), onMouseUp: closeTabOnMiddleClick(tabState), children: _jsxDEV(PanelEntryDropZonePlaceholder, { isDragOver: false, className: "tab-manager__tab__dnd__placeholder", children: _jsxDEV(ContextMenu, { content: _jsxDEV(TabContextMenu, { tabState: tabState, managerTabState: tabManagerState }, void 0, false, { fileName: _jsxFileName, lineNumber: 181, columnNumber: 22 }, this), className: "tab-manager__tab__content", children: [_jsxDEV("button", { className: "tab-manager__tab__label", tabIndex: -1, onClick: () => tabManagerState.openTab(tabState), title: tabState.description, children: tabRenderer?.(tabState) ?? tabState.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 189, columnNumber: 13 }, this), _jsxDEV("button", { className: "tab-manager__tab__close-btn", onClick: () => tabManagerState.closeTab(tabState), tabIndex: -1, title: "Close", children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 203, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 197, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 180, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 176, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 166, columnNumber: 13 }, this));
|
100
101
|
});
|
101
102
|
const TabMenu = observer((props) => {
|
102
103
|
const { managerTabState } = props;
|
103
|
-
return (
|
104
|
+
return (_jsxDEV(DropdownMenu, { className: "tab-manager__menu__toggler", title: "Show All Tabs", content: _jsxDEV(MenuContent, { className: "tab-manager__menu", children: managerTabState.tabs.map((tabState) => (_jsxDEV(MenuContentItem, { className: clsx('tab-manager__menu__item', {
|
104
105
|
'tab-manager__menu__item--active': tabState === managerTabState.currentTab,
|
105
|
-
}), onClick: () => managerTabState.openTab(tabState), children: [
|
106
|
+
}), onClick: () => managerTabState.openTab(tabState), children: [_jsxDEV("div", { className: "tab-manager__menu__item__label", children: tabState.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 229, columnNumber: 15 }, this), _jsxDEV("div", { className: "tab-manager__menu__item__close-btn", onClick: (event) => {
|
106
107
|
// NOTE: prevent default action of dropdown menu
|
107
108
|
event.stopPropagation();
|
108
109
|
managerTabState.closeTab(tabState);
|
109
|
-
}, tabIndex: -1, title: "Close", children:
|
110
|
+
}, tabIndex: -1, title: "Close", children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 242, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 232, columnNumber: 15 }, this)] }, tabState.uuid, true, { fileName: _jsxFileName, lineNumber: 220, columnNumber: 52 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 218, columnNumber: 16 }, this), menuProps: {
|
110
111
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
111
112
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
112
|
-
}, children:
|
113
|
+
}, children: _jsxDEV(ChevronDownIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 253, columnNumber: 7 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 214, columnNumber: 11 }, this));
|
113
114
|
});
|
114
115
|
export const TabManager = observer((props) => {
|
115
116
|
const { tabManagerState, tabRenderer } = props;
|
116
|
-
return (
|
117
|
+
return (_jsxDEV("div", { className: "tab-manager", children: [_jsxDEV("div", { className: "tab-manager__content", onWheel: horizontalToVerticalScroll, children: [tabManagerState.tabs.map((tab) => (_jsxDEV(Tab, { tabState: tab, tabManagerState: tabManagerState, tabRenderer: tabRenderer }, tab.uuid, false, { fileName: _jsxFileName, lineNumber: 271, columnNumber: 47 }, this))), _jsxDEV(DragPreviewLayer, { labelGetter: (item) => item.tab.label, types: [tabManagerState.dndType] }, void 0, false, { fileName: _jsxFileName, lineNumber: 279, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 267, columnNumber: 9 }, this), _jsxDEV(TabMenu, { managerTabState: tabManagerState }, void 0, false, { fileName: _jsxFileName, lineNumber: 284, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 265, columnNumber: 13 }, this));
|
117
118
|
});
|
118
119
|
//# sourceMappingURL=TabManager.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,6BAA6B,EAC7B,SAAS,EACT,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAi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,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE/C,OAAO,CACL,iBAAK,SAAS,EAAC,aAAa,aAC1B,iBACE,SAAS,EAAC,sBAAsB,EAChC,OAAO,EAAE,0BAA0B,aAElC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjC,QAAC,GAAG,IAEF,QAAQ,EAAE,GAAG,EACb,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,IAHnB,GAAG,CAAC,IAAI,6EAIb,CACH,CAAC,EACF,QAAC,gBAAgB,IACf,WAAW,EAAE,CAAC,IAAmB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAC5D,KAAK,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,uFAChC,sFACE,EACN,QAAC,OAAO,IAAC,eAAe,EAAE,eAAe,sFAAI,uFACzC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/application/UndoButton.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -39,6 +40,6 @@ export const UndoButton = (props) => {
|
|
39
40
|
document.removeEventListener('keydown', onCtrlZ);
|
40
41
|
};
|
41
42
|
}, [parent, undo]);
|
42
|
-
return (
|
43
|
+
return (_jsxDEV("div", { className: "undo-redo", children: _jsxDEV("button", { className: "undo-redo__button", onClick: undo, tabIndex: -1, title: 'Undo(ctrl + z)', disabled: !canUndo, children: [_jsxDEV(UndoIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 60, columnNumber: 9 }, this), _jsxDEV("div", { className: "undo-redo__button__label", children: "Undo" }, void 0, false, { fileName: _jsxFileName, lineNumber: 61, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 53, columnNumber: 7 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 51, columnNumber: 11 }, this));
|
43
44
|
};
|
44
45
|
//# 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,iBAAK,SAAS,EAAC,WAAW,YACxB,oBACE,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,CAAC,OAAO,aAElB,QAAC,QAAQ,uFAAG,EACZ,iBAAK,SAAS,EAAC,0BAA0B,uGAAW,qFAC7C,sFACL,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-runtime").JSX.Element) & {
|
21
|
+
}) => import("react/jsx-dev-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-runtime").JSX.Element) & {
|
31
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
32
32
|
displayName: string;
|
33
33
|
};
|
34
34
|
//# sourceMappingURL=CodeDiffView.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/code-editor/CodeDiffView.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -56,7 +57,7 @@ export const CodeDiffView = observer((props) => {
|
|
56
57
|
disposeDiffCodeEditor(editor);
|
57
58
|
}
|
58
59
|
}, [editor]);
|
59
|
-
return (
|
60
|
+
return (_jsxDEV("div", { className: "code-editor__container", children: _jsxDEV("div", { className: "code-editor__body", ref: editorRef }, void 0, false, { fileName: _jsxFileName, lineNumber: 87, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 85, columnNumber: 13 }, this));
|
60
61
|
});
|
61
62
|
const formatJSONLikeValue = (value, lossless) => value
|
62
63
|
? isString(value)
|
@@ -69,6 +70,6 @@ const formatJSONLikeValue = (value, lossless) => value
|
|
69
70
|
: '';
|
70
71
|
export const JSONDiffView = observer((props) => {
|
71
72
|
const { from, to, lossless } = props;
|
72
|
-
return (
|
73
|
+
return (_jsxDEV(CodeDiffView, { language: CODE_EDITOR_LANGUAGE.JSON, from: formatJSONLikeValue(from, Boolean(lossless)), to: formatJSONLikeValue(to, Boolean(lossless)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 115, columnNumber: 13 }, this));
|
73
74
|
});
|
74
75
|
//# 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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AC,CAAC,EAClD,EAAE,EAAE,mBAAmB,CAAC,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,uFAC9C,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/code-editor/CodeEditor.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -132,11 +133,11 @@ export const CodeEditor = (props) => {
|
|
132
133
|
onDidChangeModelContentEventDisposer.current?.dispose();
|
133
134
|
}
|
134
135
|
}, [editor]);
|
135
|
-
return (
|
136
|
+
return (_jsxDEV("div", { className: "code-editor", children: [!hideActionBar && (_jsxDEV("div", { className: "code-editor__header", children: _jsxDEV("button", { tabIndex: -1, className: clsx('code-editor__header__action', {
|
136
137
|
'code-editor__header__action--active': isWordWrap,
|
137
|
-
}), onClick: toggleWordWrap, title: `[${isWordWrap ? 'on' : 'off'}] Toggle word wrap`, children:
|
138
|
+
}), onClick: toggleWordWrap, title: `[${isWordWrap ? 'on' : 'off'}] Toggle word wrap`, children: _jsxDEV(WordWrapIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 207, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 199, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 197, columnNumber: 27 }, this)), _jsxDEV("div", { className: clsx('code-editor__content', {
|
138
139
|
'code-editor__content--padding': !hidePadding,
|
139
140
|
'code-editor__content--with__header': !hideActionBar,
|
140
|
-
}), children:
|
141
|
+
}), children: _jsxDEV("div", { className: "code-editor__body", ref: textInputRef }, void 0, false, { fileName: _jsxFileName, lineNumber: 217, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 211, columnNumber: 7 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 195, columnNumber: 11 }, this));
|
141
142
|
};
|
142
143
|
//# 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,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EAEnB,eAAe,EACf,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGvD,MAAM,CAAC,MAAM,UAAU,GAelB,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EACJ,UAAU,EACV,WAAW,EACX,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,KAAK,GACN,GAAG,KAAK,CAAC;IACV,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,EAEjC,CAAC;IACJ,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,oCAAoC,GAAG,MAAM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EAAE;wBAC7C,qCAAqC,EAAE,UAAU;qBAClD,CAAC,EACF,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,oBAAoB,YAExD,QAAC,YAAY,yFAAG,uFACT,uFACL,CACP,EACD,iBACE,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE;oBACtC,+BAA+B,EAAE,CAAC,WAAW;oBAC7C,oCAAoC,EAAE,CAAC,aAAa;iBACrD,CAAC,YAEF,iBAAK,SAAS,EAAC,mBAAmB,EAAC,GAAG,EAAE,YAAY,sFAAI,sFACpD,uFACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/data-grid/DataGrid.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -47,7 +48,7 @@ export function DataGrid(props) {
|
|
47
48
|
if (AG_GRID_LICENSE) {
|
48
49
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
49
50
|
}
|
50
|
-
return (
|
51
|
+
return (_jsxDEV(AgGridReact
|
51
52
|
// Temporarily disable usage the browser's ResizeObserver as sometimes, this causes the error
|
52
53
|
// `ResizeObserver loop limit exceeded` when we zoom in too much, in our cases, the problem
|
53
54
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
@@ -59,7 +60,7 @@ export function DataGrid(props) {
|
|
59
60
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
60
61
|
// one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
|
61
62
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
62
|
-
suppressBrowserResizeObserver: true, ...props, modules: AG_GRID_LICENSE ? allModules : communityModules }));
|
63
|
+
suppressBrowserResizeObserver: true, ...props, modules: AG_GRID_LICENSE ? allModules : communityModules }, void 0, false, { fileName: _jsxFileName, lineNumber: 76, columnNumber: 11 }, this));
|
63
64
|
}
|
64
65
|
export const configureDataGridComponent = () => {
|
65
66
|
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,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAaL,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,eAAe;IACf,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;IACtB,UAAU;IACV,oBAAoB;IACpB,iBAAiB;IACjB,wBAAwB;IACxB,aAAa;IACb,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAIrE,MAAM,UAAU,QAAQ,CACtB,KAAsD;IAEtD,IAAI,eAAe,EAAE,CAAC;QACpB,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CACL,QAAC,WAAW;IACV,6FAA6F;IAC7F,2FAA2F;IAC3F,oFAAoF;IACpF,8EAA8E;IAC9E,qDAAqD;;QAJrD,6FAA6F;QAC7F,2FAA2F;QAC3F,oFAAoF;QACpF,8EAA8E;QAC9E,qDAAqD;QACrD,6BAA6B,EAAE,IAAI,KAC/B,KAAK,EACT,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB,sFACxD,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,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/graph-editor/ElementIconUtils.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -18,20 +19,20 @@ import { Class, Enumeration, Measure, Unit, PrimitiveType, } from '@finos/legend
|
|
18
19
|
import { PURE_ClassIcon, PURE_PrimitiveTypeIcon, PURE_EnumerationIcon, PURE_MeasureIcon, PURE_UnknownElementTypeIcon, PURE_UnitIcon, } from '@finos/legend-art';
|
19
20
|
export const getClassPropertyIcon = (type) => {
|
20
21
|
if (type instanceof PrimitiveType) {
|
21
|
-
return
|
22
|
+
return _jsxDEV(PURE_PrimitiveTypeIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 36, columnNumber: 11 }, this);
|
22
23
|
}
|
23
24
|
else if (type instanceof Class) {
|
24
|
-
return
|
25
|
+
return _jsxDEV(PURE_ClassIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 38, columnNumber: 11 }, this);
|
25
26
|
}
|
26
27
|
else if (type instanceof Enumeration) {
|
27
|
-
return
|
28
|
+
return _jsxDEV(PURE_EnumerationIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 40, columnNumber: 11 }, this);
|
28
29
|
}
|
29
30
|
else if (type instanceof Measure) {
|
30
|
-
return
|
31
|
+
return _jsxDEV(PURE_MeasureIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 42, columnNumber: 11 }, this);
|
31
32
|
}
|
32
33
|
else if (type instanceof Unit) {
|
33
|
-
return
|
34
|
+
return _jsxDEV(PURE_UnitIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 44, columnNumber: 11 }, this);
|
34
35
|
}
|
35
|
-
return
|
36
|
+
return _jsxDEV(PURE_UnknownElementTypeIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 46, columnNumber: 9 }, this);
|
36
37
|
};
|
37
38
|
//# 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,QAAC,sBAAsB,wFAAG,CAAC;IACpC,CAAC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,QAAC,cAAc,wFAAG,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QACvC,OAAO,QAAC,oBAAoB,wFAAG,CAAC;IAClC,CAAC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QACnC,OAAO,QAAC,gBAAgB,wFAAG,CAAC;IAC9B,CAAC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QAChC,OAAO,QAAC,aAAa,wFAAG,CAAC;IAC3B,CAAC;IACD,OAAO,QAAC,2BAA2B,uFAAG,CAAC;AACzC,CAAC,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-lego/src/graph-editor/PackageableElementOption.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -39,8 +40,8 @@ export const getPackageableElementOptionFormatter = (props) => function Packagea
|
|
39
40
|
? 'packageable-element-option-label--dark'
|
40
41
|
: 'packageable-element-option-label';
|
41
42
|
const colorCode = getElementColorCode(option.value);
|
42
|
-
return (
|
43
|
+
return (_jsxDEV("div", { className: className, children: [_jsxDEV("div", { title: generateOptionTooltipText(option.value), className: `packageable-element-option-label__type ${colorCode
|
43
44
|
? `packageable-element-option-label__type--${colorCode}`
|
44
|
-
: ''} ` }),
|
45
|
+
: ''} ` }, void 0, false, { fileName: _jsxFileName, lineNumber: 72, columnNumber: 9 }, this), _jsxDEV("div", { className: `${className}__name`, children: option.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 80, columnNumber: 9 }, this), option.value.package && (_jsxDEV("div", { className: `${className}__tag`, children: option.value.path }, void 0, false, { fileName: _jsxFileName, lineNumber: 81, columnNumber: 35 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 70, columnNumber: 13 }, this));
|
45
46
|
};
|
46
47
|
//# 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;YAC5B,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,EAAE,CAAC;AAEb,MAAM,yBAAyB,GAAG,CAChC,OAA2B,EACP,EAAE,CACtB,eAAe,CAAC,OAAO,CAAC;IACtB,CAAC,CAAC,gBAAgB;IAClB,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC;QAC3B,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC;YAC5B,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC,SAAS,CAAC;AAEpB,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,KAEpD,EAEqB,EAAE,CACtB,SAAS,6BAA6B,CACpC,MAAoD;IAEpD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,SAAS,GAAG,QAAQ;QACxB,CAAC,CAAC,wCAAwC;QAC1C,CAAC,CAAC,kCAAkC,CAAC;IACvC,MAAM,SAAS,GAAG,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,iBAAK,SAAS,EAAE,SAAS,aACvB,iBACE,KAAK,EAAE,yBAAyB,CAAC,MAAM,CAAC,KAAK,CAAC,EAC9C,SAAS,EAAE,0CACT,SAAS;oBACP,CAAC,CAAC,2CAA2C,SAAS,EAAE;oBACxD,CAAC,CAAC,EACN,GAAG,qFACE,EACP,iBAAK,SAAS,EAAE,GAAG,SAAS,QAAQ,YAAG,MAAM,CAAC,KAAK,qFAAO,EACzD,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,CACvB,iBAAK,SAAS,EAAE,GAAG,SAAS,OAAO,YAAG,MAAM,CAAC,KAAK,CAAC,IAAI,sFAAO,CAC/D,sFACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-lego",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.39",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -63,8 +63,8 @@
|
|
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.
|
66
|
+
"@finos/legend-application": "15.1.9",
|
67
|
+
"@finos/legend-art": "7.1.37",
|
68
68
|
"@finos/legend-graph": "31.10.3",
|
69
69
|
"@finos/legend-shared": "10.0.39",
|
70
70
|
"@types/css-font-loading-module": "0.0.13",
|