@finos/legend-application 10.0.15 → 10.1.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/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +7 -4
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +8 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
- package/lib/components/shared/TabManager.d.ts +24 -0
- package/lib/components/shared/TabManager.d.ts.map +1 -0
- package/lib/components/shared/TabManager.js +99 -0
- package/lib/components/shared/TabManager.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/lib/stores/DocumentationService.d.ts +5 -0
- package/lib/stores/DocumentationService.d.ts.map +1 -1
- package/lib/stores/DocumentationService.js.map +1 -1
- package/lib/stores/shared/TabManagerState.d.ts +37 -0
- package/lib/stores/shared/TabManagerState.d.ts.map +1 -0
- package/lib/stores/shared/TabManagerState.js +55 -0
- package/lib/stores/shared/TabManagerState.js.map +1 -0
- package/package.json +5 -5
- package/src/application/LegendApplication.tsx +10 -3
- package/src/components/LegendApplicationComponentFrameworkProvider.tsx +8 -0
- package/src/components/shared/TabManager.tsx +268 -0
- package/src/index.ts +2 -3
- package/src/stores/DocumentationService.ts +5 -0
- package/src/stores/shared/TabManagerState.ts +77 -0
- package/tsconfig.json +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,8BAA8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,8BAA8B,CAAC,uBAAuB,CAAC,EACtE,MAAM,EAAE,uBAAuB,KAC5B,IAAI,CAAC;KACX,GAAG,iBAAiB;IAUrB,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKvE,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKvE,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKzD,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,iBAAiB;IAKnD,6BAA6B,CACjC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,uBAAuB,EAAE,2BAA2B,CAAC,CAAC;IA8C5D,6BAA6B,CACjC,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,IAAI,CAAC;IAqEhB,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CACrC,KAAK,EAAE,mCAAmC,CAAC,kCAAkC,CAAC,GAC7E,OAAO,CAAC,uBAAuB,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAE7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CA2C7B"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { configure as configureMobx } from 'mobx';
|
|
17
17
|
import { editor as monacoEditorAPI } from 'monaco-editor';
|
|
18
18
|
import { MONOSPACED_FONT_FAMILY } from '../const.js';
|
|
19
|
-
import { assertErrorThrown, LogEvent, guaranteeNonEmptyString, assertNonNullable, NetworkClient, } from '@finos/legend-shared';
|
|
19
|
+
import { assertErrorThrown, LogEvent, guaranteeNonEmptyString, assertNonNullable, NetworkClient, createRegExpPatternFromWildcardPattern, } from '@finos/legend-shared';
|
|
20
20
|
import { APPLICATION_EVENT } from '../stores/ApplicationEvent.js';
|
|
21
21
|
import { configureComponents } from '@finos/legend-art';
|
|
22
22
|
import { setupPureLanguageService } from '../stores/PureLanguageSupport.js';
|
|
@@ -162,10 +162,13 @@ export class LegendApplication {
|
|
|
162
162
|
: {});
|
|
163
163
|
const docData = await client.get(guaranteeNonEmptyString(entry.url, `Can't load documentation registry: 'url' field is missing or empty`));
|
|
164
164
|
assertNonNullable(docData.entries, `Can't load documentation registry data: 'entries' field is missing`);
|
|
165
|
+
const patterns = entry.includes?.map((filter) => createRegExpPatternFromWildcardPattern(filter));
|
|
165
166
|
Object.entries(docData.entries).forEach(([key, docEntry]) => {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
entries[key]
|
|
167
|
+
if (!patterns || patterns.some((pattern) => pattern.test(key))) {
|
|
168
|
+
// NOTE: entries will NOT override
|
|
169
|
+
if (!entries[key]) {
|
|
170
|
+
entries[key] = docEntry;
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
});
|
|
171
174
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMrD,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,
|
|
1
|
+
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMrD,OAAO,EAGL,iBAAiB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,EACrD,2BAA2B,CAC5B,CAAC;SACH;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,EAC3D,mCAAmC,CACpC,CAAC;YACF,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA8DH,eAAO,MAAM,0BAA0B,UAAW,aAAa,KAAG,IAIjE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAE7D,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAC9C;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE;;CAuEtC,CAAC"}
|
|
@@ -24,6 +24,7 @@ import { BlockingAlert } from './BlockingAlert.js';
|
|
|
24
24
|
import { NotificationManager } from './NotificationManager.js';
|
|
25
25
|
import { useEffect } from 'react';
|
|
26
26
|
import { createKeybindingsHandler, } from '@finos/legend-shared';
|
|
27
|
+
import { VirtualAssistant } from './VirtualAssistant.js';
|
|
27
28
|
const APP_CONTAINER_ID = 'app.container';
|
|
28
29
|
const APP_BACKDROP_CONTAINER_ID = 'app.backdrop-container';
|
|
29
30
|
const PLATFORM_NATIVE_KEYBOARD_SHORTCUTS = [
|
|
@@ -73,6 +74,10 @@ export const BackdropContainer = (props) => (_jsx("div", { className: "backdrop_
|
|
|
73
74
|
export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
74
75
|
const { children } = props;
|
|
75
76
|
const applicationStore = useApplicationStore();
|
|
77
|
+
const disableContextMenu = (event) => {
|
|
78
|
+
event.stopPropagation();
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
};
|
|
76
81
|
const backdropContainer = applicationStore.backdropContainerElementID
|
|
77
82
|
? document.getElementById(applicationStore.backdropContainerElementID) ??
|
|
78
83
|
document.getElementById(APP_BACKDROP_CONTAINER_ID)
|
|
@@ -105,6 +110,8 @@ export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
|
105
110
|
_jsx(Portal, { container: backdropContainer, children: _jsx(Backdrop, { className: "backdrop", open: applicationStore.showBackdrop }) })), _jsx(DndProvider, { backend: HTML5Backend, children: _jsxs("div", { className: "app__container",
|
|
106
111
|
// NOTE: this `id` is used to quickly identify this DOM node so we could manually
|
|
107
112
|
// dispatch keyboard event here in order to be captured by our global hotkeys matchers
|
|
108
|
-
id: APP_CONTAINER_ID,
|
|
113
|
+
id: APP_CONTAINER_ID,
|
|
114
|
+
// Disable global context menu so that only places in the app that supports context-menu will be effective
|
|
115
|
+
onContextMenu: disableContextMenu, children: [_jsx(BackdropContainer, { elementID: APP_BACKDROP_CONTAINER_ID }), _jsx(VirtualAssistant, {}), children] }) })] }));
|
|
109
116
|
});
|
|
110
117
|
//# sourceMappingURL=LegendApplicationComponentFrameworkProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,gBAAgB,GAAG,eAAe,CAAC;AACzC,MAAM,yBAAyB,GAAG,wBAAwB,CAAC;AAE3D,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,aAAa,KAAG,EACjB,KAAC,WAAW,KAAG,EACf,KAAC,mBAAmB,KAAG,EACtB,gBAAgB,CAAC,YAAY,IAAI;YAChC,0EAA0E;YAC1E,6EAA6E;YAC7E,kBAAkB;YAClB,8EAA8E;YAC9E,iFAAiF;YACjF,qDAAqD;YACrD,KAAC,MAAM,IAAC,SAAS,EAAE,iBAAiB,YAClC,KAAC,QAAQ,IACP,SAAS,EAAC,UAAU,EACpB,IAAI,EAAE,gBAAgB,CAAC,YAAY,GACnC,GACK,CACV,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAChC,eACE,SAAS,EAAC,gBAAgB;oBAC1B,iFAAiF;oBACjF,sFAAsF;oBACtF,EAAE,EAAE,gBAAgB;oBACpB,0GAA0G;oBAC1G,aAAa,EAAE,kBAAkB,aAEjC,KAAC,iBAAiB,IAAC,SAAS,EAAE,yBAAyB,GAAI,EAC3D,KAAC,gBAAgB,KAAG,EACnB,QAAQ,IACL,GACM,IACM,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import type { TabManagerState, TabState } from '../../stores/shared/TabManagerState.js';
|
|
18
|
+
export declare const TabManager: ((props: {
|
|
19
|
+
tabManagerState: TabManagerState;
|
|
20
|
+
tabRenderer?: ((editorState: TabState) => React.ReactNode) | undefined;
|
|
21
|
+
}) => JSX.Element) & {
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=TabManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabManager.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TabManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiBH,OAAO,KAAK,EACV,eAAe,EACf,QAAQ,EACT,MAAM,wCAAwC,CAAC;AA8MhD,eAAO,MAAM,UAAU;qBAEF,eAAe;iCACH,QAAQ,KAAK,MAAM,SAAS;;;CAwB5D,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx as _jsx, 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 { ChevronDownIcon, clsx, ContextMenu, DragPreviewLayer, DropdownMenu, MenuContent, MenuContentItem, PanelEntryDropZonePlaceholder, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { useRef, useCallback } from 'react';
|
|
20
|
+
import { useDrop, useDrag } from 'react-dnd';
|
|
21
|
+
const horizontalToVerticalScroll = (event) => {
|
|
22
|
+
// NOTE: only convert horizontal to vertical scroll when the scroll causes more horizontal than vertical displacement
|
|
23
|
+
if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
event.currentTarget.scrollBy(event.deltaY, 0);
|
|
27
|
+
};
|
|
28
|
+
const TabContextMenu = observer((props) => {
|
|
29
|
+
const { tabState, managerTabState } = props;
|
|
30
|
+
const close = () => managerTabState.closeTab(tabState);
|
|
31
|
+
const closeOthers = () => managerTabState.closeAllOtherTabs(tabState);
|
|
32
|
+
const closeAll = () => managerTabState.closeAllTabs();
|
|
33
|
+
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" })] }));
|
|
34
|
+
});
|
|
35
|
+
const Tab = observer((props) => {
|
|
36
|
+
const ref = useRef(null);
|
|
37
|
+
const { tabManagerState, tabState, tabRenderer } = props;
|
|
38
|
+
// Drag and Drop
|
|
39
|
+
const handleHover = useCallback((item, monitor) => {
|
|
40
|
+
const draggingTab = item.tab;
|
|
41
|
+
const hoveredTab = tabState;
|
|
42
|
+
const dragIndex = tabManagerState.tabs.findIndex((e) => e === draggingTab);
|
|
43
|
+
const hoverIndex = tabManagerState.tabs.findIndex((e) => e === hoveredTab);
|
|
44
|
+
const hoverBoundingReact = ref.current?.getBoundingClientRect();
|
|
45
|
+
const distanceThreshold = ((hoverBoundingReact?.left ?? 0) - (hoverBoundingReact?.right ?? 0)) /
|
|
46
|
+
2;
|
|
47
|
+
const dragDistance = (monitor.getClientOffset()?.x ?? 0) -
|
|
48
|
+
(hoverBoundingReact?.right ?? 0);
|
|
49
|
+
if (dragIndex < hoverIndex && dragDistance < distanceThreshold) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (dragIndex > hoverIndex && dragDistance > distanceThreshold) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
tabManagerState.swapTabs(draggingTab, hoveredTab);
|
|
56
|
+
}, [tabManagerState, tabState]);
|
|
57
|
+
const closeTabOnMiddleClick = (currTab) => (event) => {
|
|
58
|
+
if (event.nativeEvent.button === 1) {
|
|
59
|
+
tabManagerState.closeTab(currTab);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const [{ isBeingDraggedEditorPanel }, dropConnector] = useDrop(() => ({
|
|
63
|
+
accept: [tabManagerState.dndType],
|
|
64
|
+
hover: (item, monitor) => handleHover(item, monitor),
|
|
65
|
+
collect: (monitor) => ({
|
|
66
|
+
isBeingDraggedEditorPanel: monitor.getItem()
|
|
67
|
+
?.tab,
|
|
68
|
+
}),
|
|
69
|
+
}), [handleHover]);
|
|
70
|
+
const isBeingDragged = tabState === isBeingDraggedEditorPanel;
|
|
71
|
+
const [, dragConnector, dragPreviewConnector] = useDrag(() => ({
|
|
72
|
+
type: tabManagerState.dndType,
|
|
73
|
+
item: () => ({
|
|
74
|
+
tab: tabState,
|
|
75
|
+
}),
|
|
76
|
+
}), [tabState, tabManagerState]);
|
|
77
|
+
dragConnector(dropConnector(ref));
|
|
78
|
+
useDragPreviewLayer(dragPreviewConnector);
|
|
79
|
+
return (_jsx("div", { ref: ref, className: clsx('tab-manager__tab', {
|
|
80
|
+
'tab-manager__tab--active': tabState === tabManagerState.currentTab,
|
|
81
|
+
'tab-manager__tab--dragged': isBeingDragged,
|
|
82
|
+
}), onMouseUp: closeTabOnMiddleClick(tabState), children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: 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, {}) })] }) }) }));
|
|
83
|
+
});
|
|
84
|
+
const TabMenu = observer((props) => {
|
|
85
|
+
const { managerTabState } = props;
|
|
86
|
+
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: "tab-manager__menu__item", 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) => {
|
|
87
|
+
// NOTE: prevent default action of dropdown menu
|
|
88
|
+
event.stopPropagation();
|
|
89
|
+
managerTabState.closeTab(tabState);
|
|
90
|
+
}, tabIndex: -1, title: "Close", children: _jsx(TimesIcon, {}) })] }, tabState.uuid))) }), menuProps: {
|
|
91
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
|
92
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
93
|
+
}, children: _jsx(ChevronDownIcon, {}) }));
|
|
94
|
+
});
|
|
95
|
+
export const TabManager = observer((props) => {
|
|
96
|
+
const { tabManagerState, tabRenderer } = props;
|
|
97
|
+
return (_jsxs("div", { className: "tab-manager", onWheel: horizontalToVerticalScroll, children: [_jsxs("div", { className: "tab-manager__content", 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 })] }));
|
|
98
|
+
});
|
|
99
|
+
//# sourceMappingURL=TabManager.js.map
|
|
@@ -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,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"}
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-application v10.0
|
|
1
|
+
/** @license @finos/legend-application v10.1.0
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100);--color-data: var(--color-light-blue-50)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.color--data{color:var(--color-data)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.background--data{background:var(--color-data)}.app__container{height:100%;width:100%}.app{height:100%}.app__page{height:100%;background:var(--color-dark-grey-50)}.app__info__group{margin-top:1rem;background:var(--color-dark-grey-85);padding:1.5rem;border-radius:.2rem}.app__info__entry{display:flex;cursor:default;padding:.2rem 0;font-family:"Roboto Mono",monospace}.app__info__entry__title{margin-right:.5rem;color:var(--color-dark-grey-500)}.app__info__entry__value{color:var(--color-light-grey-200)}.app__info__entry__value a{text-decoration:none;font-weight:700;color:var(--color-blue-50)}.app__info__extensions{height:15rem;margin-top:1rem;width:70rem}.app__info__extensions__header{display:flex;align-items:center;height:2.2rem;background:var(--color-dark-grey-100);border-radius:.2rem .2rem 0 0;padding:0 1rem}.app__info__extensions__header__title{cursor:default;font-size:1.2rem;font-weight:700;color:var(--color-dark-grey-500);font-family:"Roboto Mono",monospace}.app__info__extensions__content{height:calc(100% - 2.2rem);overflow:auto;padding:1rem;background:var(--color-dark-grey-85);border-radius:0 0 .2rem .2rem}.app__info__extensions__tree__node__icon{flex-grow:0;flex-shrink:0;display:flex;width:4rem}.app__info__extensions__tree__node__icon__expand{flex-grow:0;flex-shrink:0;width:2rem}.app__info__extensions__tree__node__icon__expand svg{font-size:1.4rem}.app__info__extensions__tree__node__icon__type{flex-grow:0;flex-shrink:0;width:2rem}.app__info__extensions__tree__node__icon__type svg{font-size:1.4rem;color:var(--color-blue-100)}.app__info__extensions__tree__node__label{display:flex;flex:0 0 auto;height:2rem;line-height:2rem;min-width:0;white-space:normal;user-select:none;font-family:"Roboto Mono",monospace}.app__info__extensions__tree__node__label__title{font-size:1.2rem}.app__info__extensions__tree__node__label__version{display:flex;align-items:center;justify-content:center;height:2rem;margin-left:1rem}.app__info__extensions__tree__node__label__version__label{display:flex;align-items:center;justify-content:center;height:1.6rem;padding:.5rem;background:var(--color-dark-grey-280);font-size:1rem;border-radius:.2rem}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__container{height:0;width:0;position:absolute}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.notification__position{bottom:3rem;right:1rem}.notification__content{background:var(--color-dark-grey-200);color:var(--color-light-grey-150);border-radius:.3rem;align-items:flex-start}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400)}.notification__action:hover{color:var(--color-light-grey-400)}.virtual-assistant{position:absolute;z-index:10100;bottom:9rem;right:1rem}.virtual-assistant__context-menu{z-index:10100}.virtual-assistant__station{display:flex;align-items:center;justify-content:flex-end;height:3.4rem;width:5.1rem;border-radius:1.7rem 1.1rem .2em 1.7rem;background:var(--color-dark-grey-50);opacity:.9;border:.1rem solid var(--color-blue-50);transition:width .1s ease-in-out}.virtual-assistant__station__trigger{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:50%;background:var(--color-blue-50);margin:.3rem 0 .3rem .2rem}.virtual-assistant__station__trigger__close{font-size:2.6rem;color:var(--color-dark-shade-800);position:relative}.virtual-assistant__station__trigger__circle{font-size:2.2rem;color:var(--color-dark-grey-80);animation:opacity-pulse 1.2s infinite ease-in-out alternate-reverse}@keyframes opacity-pulse{from{opacity:.1}to{opacity:.3}}.virtual-assistant__station--hidden{display:none}.virtual-assistant__station__drag-handle{height:3.4rem;width:2rem;cursor:grab}.virtual-assistant__station__drag-handle__content{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.virtual-assistant__station__drag-handle--dragging{cursor:grabbing}.virtual-assistant__station__drag-handle svg{font-size:2rem;color:var(--color-light-shade-100)}.virtual-assistant__station--active{border-color:var(--color-yellow-100);animation:border-flash .5s;animation-iteration-count:3}.virtual-assistant__station--active .virtual-assistant__station__trigger{background:var(--color-yellow-100);animation:background-flash .5s;animation-iteration-count:3}@keyframes border-flash{from{border-color:var(--color-dark-grey-50)}to{border-color:var(--color-yellow-100)}}@keyframes background-flash{from{background:var(--color-dark-grey-50)}to{background:var(--color-yellow-100)}}.virtual-assistant__panel{height:40rem;width:30rem;border-radius:.2rem;background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-200);box-shadow:0 1.1rem 1.5rem -0.7rem,var(--color-light-shade-280),0 2.4rem 3.8rem .3rem var(--color-light-shade-280),0 .9rem 4.6rem .8rem var(--color-light-shade-280);pointer-events:all}.virtual-assistant__panel__container{z-index:10000;pointer-events:none}.virtual-assistant__panel__container__root{margin:-1rem}.virtual-assistant__panel__header{display:flex;align-items:center;justify-content:space-between;background:var(--color-dark-grey-250);height:2.8rem}.virtual-assistant__panel__header__actions{display:flex;align-items:center}.virtual-assistant__panel__header__action{display:flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem}.virtual-assistant__panel__header__action svg{color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__action:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__panel__header__tabs{display:flex;height:2.8rem;color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__tab{padding:0 1rem;border-right:.1rem solid var(--color-dark-grey-100)}.virtual-assistant__panel__header__tab:hover{background:var(--color-dark-grey-280)}.virtual-assistant__panel__header__tab__content{display:flex;align-items:center;justify-content:center;cursor:pointer;height:2.8rem;width:6rem;border-bottom:.3rem solid var(--color-dark-grey-300);padding-top:.1rem;position:relative}.virtual-assistant__panel__header__tab__content svg{font-size:1.5rem;color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__tab__indicator{position:absolute;top:.5rem;right:1rem;height:1rem;width:1rem;border-radius:50%;background:var(--color-yellow-200)}.virtual-assistant__panel__header__tab:hover .virtual-assistant__panel__header__tab__content svg{color:var(--color-dark-grey-500)}.virtual-assistant__panel__header__tab--active:hover .virtual-assistant__panel__header__tab__content,.virtual-assistant__panel__header__tab--active .virtual-assistant__panel__header__tab__content{border-bottom:.3rem solid var(--color-yellow-300)}.virtual-assistant__panel__header__tab--active:hover .virtual-assistant__panel__header__tab__content svg,.virtual-assistant__panel__header__tab--active .virtual-assistant__panel__header__tab__content svg{color:var(--color-light-grey-200)}.virtual-assistant__panel__content{height:calc(100% - 2.8rem)}.virtual-assistant__panel__icon__close{font-size:2.4rem}.virtual-assistant__panel__placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column}.virtual-assistant__panel__placeholder__icon{font-size:5rem;color:var(--color-yellow-200)}.virtual-assistant__panel__placeholder__message{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400);margin-top:1rem}.virtual-assistant__panel__placeholder__instruction{font-family:"Roboto Mono",monospace;font-size:1.3rem;font-weight:700;color:var(--color-dark-grey-300);margin-top:.5rem}.virtual-assistant__search{height:100%}.virtual-assistant__search__header{display:flex;align-items:center;justify-content:center;padding:.3rem;border-bottom:.1rem solid var(--color-dark-grey-250);height:3.4rem;position:relative}.virtual-assistant__search__input{font-size:1.3rem;height:2.8rem;padding-right:2.8rem;padding-left:1rem;width:100%;background:var(--color-dark-grey-85);border-radius:.2rem;border:.1rem solid var(--color-dark-grey-200)}.virtual-assistant__search__input--searching{padding-right:9rem}.virtual-assistant__search__input__search__count{display:flex;align-items:center;justify-content:center;position:absolute;right:5.4rem;border-radius:.8rem;height:1.6rem;padding:0 .5rem;font-size:1.1rem;font-weight:700;background:var(--color-yellow-100);color:var(--color-dark-grey-280);user-select:none;cursor:default}.virtual-assistant__search__input__search__icon{display:flex;align-items:center;justify-content:center;position:absolute;right:.3rem;height:2.8rem;width:2.8rem}.virtual-assistant__search__input__search__icon svg{color:var(--color-light-shade-100)}.virtual-assistant__search__input__clear-btn{display:flex;align-items:center;justify-content:center;position:absolute;right:.3rem;height:2.8rem;width:2.8rem}.virtual-assistant__search__input__clear-btn svg{color:var(--color-dark-grey-400)}.virtual-assistant__search__input__clear-btn:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__search__input__config__trigger{display:flex;align-items:center;justify-content:center;position:absolute;right:3.1rem;height:2.8rem;width:1.8rem;cursor:pointer}.virtual-assistant__search__input__config__trigger svg{color:var(--color-dark-grey-400)}.virtual-assistant__search__input__config__trigger--toggled svg,.virtual-assistant__search__input__config__trigger:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__search__input__config__trigger--active svg,.virtual-assistant__search__input__config__trigger--active:hover svg{color:var(--color-blue-150)}.virtual-assistant__search__input__config__panel{width:100%;height:12rem;position:absolute;z-index:1;box-shadow:var(--color-dark-shade-280) .2rem .1rem .3rem .1rem;overflow:hidden;max-height:0;transition:max-height ease-in-out 100ms}.virtual-assistant__search__input__config__panel--toggled{max-height:12rem}.virtual-assistant__search__content{height:calc(100% - 3.4rem);position:relative}.virtual-assistant__search__results{height:100%;overflow-y:auto;padding:1rem}.virtual-assistant__search__results__placeholder{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400)}.virtual-assistant__doc-entry+.virtual-assistant__doc-entry{margin-top:.5rem}.virtual-assistant__doc-entry__header{display:flex}.virtual-assistant__doc-entry__expand-icon{display:flex;align-items:flex-start;width:2rem;min-width:2rem;padding-top:.3rem}.virtual-assistant__doc-entry__expand-icon svg{color:var(--color-light-grey-50)}.virtual-assistant__doc-entry__expand-icon--disabled svg{color:var(--color-dark-grey-300)}.virtual-assistant__doc-entry__title{line-height:1.5;font-weight:500;color:var(--color-light-grey-50);cursor:pointer;user-select:none}.virtual-assistant__doc-entry__title--link{color:var(--color-blue-40);text-decoration:none}.virtual-assistant__doc-entry__content{margin-top:.5rem;padding-left:2rem}.virtual-assistant__doc-entry__content__text{color:var(--color-light-grey-50);line-height:1.5;background:var(--color-dark-grey-80);border-radius:.2rem;padding:1rem}.virtual-assistant__doc-entry__content__markdown-text{padding:1rem;border-radius:.2rem}.virtual-assistant__character{display:flex;align-items:center;justify-content:center;flex-direction:column}.virtual-assistant__character__container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.virtual-assistant__character__greeting{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400);margin-top:.6rem;cursor:default;user-select:none}.virtual-assistant__character__question{font-family:"Roboto Mono",monospace;font-size:1.3rem;font-weight:700;color:var(--color-light-grey-0);margin-top:.6rem;cursor:default;user-select:none}.virtual-assistant__character__figure{display:flex;align-items:center;justify-content:center;position:relative;width:10rem;height:20rem}.virtual-assistant__character__hat{position:absolute;font-size:8rem;color:var(--color-orange-150);top:0}.virtual-assistant__character__glasses{position:absolute;font-size:8rem;color:var(--color-dark-grey-300);top:6rem}.virtual-assistant__character__beard{position:absolute;color:var(--color-yellow-200);font-size:8rem;top:11rem}.virtual-assistant__contextual-support{height:100%}.virtual-assistant__contextual-support__content{height:100%;overflow-y:auto;padding:1.5rem}.virtual-assistant__contextual-support__title{line-height:1.5;font-weight:700;color:var(--color-light-grey-50);cursor:pointer;user-select:none;font-size:1.5rem;margin-bottom:1rem}.virtual-assistant__contextual-support__text{color:var(--color-light-grey-50);line-height:1.5;background:var(--color-dark-grey-80);border-radius:.2rem;padding:1rem;margin-bottom:1rem}.virtual-assistant__contextual-support__markdown-text{padding:1rem;border-radius:.2rem;margin-bottom:1rem}.virtual-assistant__contextual-support__relevant-entries__title{color:var(--color-dark-grey-500);font-family:"Roboto Mono",monospace;font-size:1.3rem;margin-bottom:1rem}.text-search-advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.text-search-advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default}.text-search-advanced-config__panel__header__hint{display:flex;align-items:center;justify-content:center;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-300)}.text-search-advanced-config__panel__header__hint svg{font-size:1.2rem}.documentation-link{color:var(--color-dark-grey-500);cursor:pointer}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}.packageable-element-option-label{display:flex;align-items:center;display:flex}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}.execution-plan-viewer{height:100%;width:100%}.execution-plan-viewer__content{height:100%;width:100%}.execution-plan-viewer__debug-panel{background:var(--color-dark-grey-50)}.execution-plan-viewer__debug-panel .panel__header{background:var(--color-dark-grey-250)}.execution-plan-viewer__debug-panel .panel__content{position:relative;background:var(--color-dark-grey-50)}.execution-plan-viewer__close-btn{border-color:var(--color-blue-200);background:var(--color-blue-300)}.execution-plan-viewer .panel{height:100%}.execution-plan-viewer .panel__header{color:var(--color-light-grey-400);font-weight:bold;background:var(--color-dark-grey-50)}.execution-plan-viewer .panel__header__title{max-width:calc(100% - 11rem)}.execution-plan-viewer .panel__main-header{color:var(--color-light-grey-400);font-weight:bold;background:var(--color-dark-grey-250)}.execution-plan-viewer .panel__content{position:relative;height:calc(100% - 3rem);width:100%;background:var(--color-dark-grey-50);overflow-y:hidden}.execution-plan-viewer .panel__content ::-webkit-scrollbar-thumb{background:var(--color-dark-grey-400)}.execution-plan-viewer .panel__content>div:first-child{margin-top:0}.execution-plan-viewer .panel__content__lists{height:100%;width:100%;padding:1rem;overflow:overlay}.execution-plan-viewer__tabs__header{padding-left:0}.execution-plan-viewer__tabs{height:2.8rem;z-index:1;display:flex;overflow-x:overlay;overflow-y:hidden}.execution-plan-viewer__tab{height:100%;display:inline-flex;align-items:center;justify-content:center;padding:0 1rem;border-right:.1rem solid var(--color-dark-grey-200);white-space:nowrap;cursor:pointer}.execution-plan-viewer__tab--active{color:var(--color-dark-grey-50);position:relative}.execution-plan-viewer__tab--active::after{content:"";height:.4rem;width:100%;position:absolute;bottom:0;background:var(--color-yellow-200)}.execution-plan-viewer__panel{height:100%;width:100%}.execution-plan-viewer__panel__content{overflow-y:hidden;position:relative;background:var(--color-dark-grey-50);height:calc(100% - 3.4rem)}.execution-plan-viewer__panel__header{background:var(--color-dark-grey-100);z-index:1;height:3.4rem;min-height:3.4rem;padding:0}.execution-plan-viewer__panel__header__tabs{display:flex;height:100%;overflow-x:overlay}.execution-plan-viewer__panel__header__tab{display:flex;align-items:center;padding:0 1rem;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-80)}.execution-plan-viewer__panel__header__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.execution-plan-viewer__panel__header__tab__content{display:flex;align-items:center;height:100%;width:100%}.execution-plan-viewer__panel__header__tab__icon{margin-right:.5rem}.execution-plan-viewer__panel__header__tab__label{color:inherit;padding:0 .5rem;white-space:nowrap}.execution-plan-viewer__panel__view-mode__type{display:flex;align-items:center;justify-content:center;width:15rem;background:var(--color-dark-grey-100);border-right:.1rem solid var(--color-dark-grey-50);border-left:.1rem solid var(--color-dark-grey-50);color:var(--color-light-grey-300);cursor:pointer}.execution-plan-viewer__panel__view-mode__type:hover{background:var(--color-dark-grey-200)}.execution-plan-viewer__panel__view-mode__type__label{display:flex;align-items:center;height:3.4rem;padding:0 .5rem;border-top:.3rem solid var(--color-yellow-200)}.execution-plan-viewer__panel__view-mode__options{width:15rem}.execution-plan-viewer__panel__view-mode__options--with-group{border:none;padding:0}.execution-plan-viewer__panel__view-mode__option__group__name{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:default;writing-mode:vertical-lr;transform:rotate(180deg);font-size:1.1rem;width:2.2rem;padding:.5rem 0}.execution-plan-viewer__panel__view-mode__option__group{display:flex;flex-direction:row}.execution-plan-viewer__panel__view-mode__option__group--native{background:var(--color-blue-100);border:.1rem solid var(--color-blue-100)}.execution-plan-viewer__panel__view-mode__option__group--native .execution-plan-viewer__panel__view-mode__option__group__name{background:var(--color-blue-100);color:var(--color-light-grey-50)}.execution-plan-viewer__panel__view-mode__option__group--generation{background:var(--color-pink-300);border:.1rem solid var(--color-pink-300)}.execution-plan-viewer__panel__view-mode__option__group--generation .execution-plan-viewer__panel__view-mode__option__group__name{background:var(--color-pink-300);color:var(--color-light-grey-50)}.execution-plan-viewer__panel__view-mode__option__group__separator{height:.2rem;width:100%}.execution-plan-viewer__panel__view-mode__option__group__options{width:100%;background:var(--color-dark-grey-100)}.execution-plan-viewer__panel__view-mode__option{display:flex;align-items:center;justify-content:center;height:2rem}.execution-plan-viewer__explorer{width:100%}.execution-plan-viewer__explorer__content__container{height:100%;background:var(--color-dark-grey-100)}.execution-plan-viewer__explorer-tree__node__container:hover{background:var(--color-dark-blue-shade-100)}.execution-plan-viewer__explorer-tree__node__container--selected,.execution-plan-viewer__explorer-tree__node__container--selected:hover{background:var(--color-light-blue-450)}.execution-plan-viewer__explorer-tree__node__icon{width:4rem;min-width:4rem}.execution-plan-viewer__explorer-tree__node__icon__expand,.execution-plan-viewer__explorer-tree__node__icon__type{width:2rem;display:flex;justify-content:center}.execution-plan-viewer__explorer-tree__node__icon__expand svg{font-size:1rem}.execution-plan-viewer__explorer-tree__node__label{color:inherit}.execution-plan-viewer__unsupported-view,.execution-node-viewer__unsupported-view{display:flex;align-items:center;justify-content:center;flex-direction:column}.execution-plan-viewer__unsupported-view__summary,.execution-node-viewer__unsupported-view__summary{font-weight:500;margin-bottom:1rem}.execution-plan-viewer__unsupported-view__to-text-mode__btn,.execution-node-viewer__unsupported-view__to-text-mode__btn{height:2.8rem;width:15rem}/*# sourceMappingURL=index.css.map */
|
|
17
|
+
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100);--color-data: var(--color-light-blue-50)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.color--data{color:var(--color-data)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.background--data{background:var(--color-data)}.app__container{height:100%;width:100%}.app{height:100%}.app__page{height:100%;background:var(--color-dark-grey-50)}.app__info__group{margin-top:1rem;background:var(--color-dark-grey-85);padding:1.5rem;border-radius:.2rem}.app__info__entry{display:flex;cursor:default;padding:.2rem 0;font-family:"Roboto Mono",monospace}.app__info__entry__title{margin-right:.5rem;color:var(--color-dark-grey-500)}.app__info__entry__value{color:var(--color-light-grey-200)}.app__info__entry__value a{text-decoration:none;font-weight:700;color:var(--color-blue-50)}.app__info__extensions{height:15rem;margin-top:1rem;width:70rem}.app__info__extensions__header{display:flex;align-items:center;height:2.2rem;background:var(--color-dark-grey-100);border-radius:.2rem .2rem 0 0;padding:0 1rem}.app__info__extensions__header__title{cursor:default;font-size:1.2rem;font-weight:700;color:var(--color-dark-grey-500);font-family:"Roboto Mono",monospace}.app__info__extensions__content{height:calc(100% - 2.2rem);overflow:auto;padding:1rem;background:var(--color-dark-grey-85);border-radius:0 0 .2rem .2rem}.app__info__extensions__tree__node__icon{flex-grow:0;flex-shrink:0;display:flex;width:4rem}.app__info__extensions__tree__node__icon__expand{flex-grow:0;flex-shrink:0;width:2rem}.app__info__extensions__tree__node__icon__expand svg{font-size:1.4rem}.app__info__extensions__tree__node__icon__type{flex-grow:0;flex-shrink:0;width:2rem}.app__info__extensions__tree__node__icon__type svg{font-size:1.4rem;color:var(--color-blue-100)}.app__info__extensions__tree__node__label{display:flex;flex:0 0 auto;height:2rem;line-height:2rem;min-width:0;white-space:normal;user-select:none;font-family:"Roboto Mono",monospace}.app__info__extensions__tree__node__label__title{font-size:1.2rem}.app__info__extensions__tree__node__label__version{display:flex;align-items:center;justify-content:center;height:2rem;margin-left:1rem}.app__info__extensions__tree__node__label__version__label{display:flex;align-items:center;justify-content:center;height:1.6rem;padding:.5rem;background:var(--color-dark-grey-280);font-size:1rem;border-radius:.2rem}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__container{height:0;width:0;position:absolute}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.notification__position{bottom:3rem;right:1rem}.notification__content{background:var(--color-dark-grey-200);color:var(--color-light-grey-150);border-radius:.3rem;align-items:flex-start}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400)}.notification__action:hover{color:var(--color-light-grey-400)}.virtual-assistant{position:absolute;z-index:10100;bottom:9rem;right:1rem}.virtual-assistant__context-menu{z-index:10100}.virtual-assistant__station{display:flex;align-items:center;justify-content:flex-end;height:3.4rem;width:5.1rem;border-radius:1.7rem 1.1rem .2em 1.7rem;background:var(--color-dark-grey-50);opacity:.9;border:.1rem solid var(--color-blue-50);transition:width .1s ease-in-out}.virtual-assistant__station__trigger{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:50%;background:var(--color-blue-50);margin:.3rem 0 .3rem .2rem}.virtual-assistant__station__trigger__close{font-size:2.6rem;color:var(--color-dark-shade-800);position:relative}.virtual-assistant__station__trigger__circle{font-size:2.2rem;color:var(--color-dark-grey-80);animation:opacity-pulse 1.2s infinite ease-in-out alternate-reverse}@keyframes opacity-pulse{from{opacity:.1}to{opacity:.3}}.virtual-assistant__station--hidden{display:none}.virtual-assistant__station__drag-handle{height:3.4rem;width:2rem;cursor:grab}.virtual-assistant__station__drag-handle__content{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.virtual-assistant__station__drag-handle--dragging{cursor:grabbing}.virtual-assistant__station__drag-handle svg{font-size:2rem;color:var(--color-light-shade-100)}.virtual-assistant__station--active{border-color:var(--color-yellow-100);animation:border-flash .5s;animation-iteration-count:3}.virtual-assistant__station--active .virtual-assistant__station__trigger{background:var(--color-yellow-100);animation:background-flash .5s;animation-iteration-count:3}@keyframes border-flash{from{border-color:var(--color-dark-grey-50)}to{border-color:var(--color-yellow-100)}}@keyframes background-flash{from{background:var(--color-dark-grey-50)}to{background:var(--color-yellow-100)}}.virtual-assistant__panel{height:40rem;width:30rem;border-radius:.2rem;background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-200);box-shadow:0 1.1rem 1.5rem -0.7rem,var(--color-light-shade-280),0 2.4rem 3.8rem .3rem var(--color-light-shade-280),0 .9rem 4.6rem .8rem var(--color-light-shade-280);pointer-events:all}.virtual-assistant__panel__container{z-index:10000;pointer-events:none}.virtual-assistant__panel__container__root{margin:-1rem}.virtual-assistant__panel__header{display:flex;align-items:center;justify-content:space-between;background:var(--color-dark-grey-250);height:2.8rem}.virtual-assistant__panel__header__actions{display:flex;align-items:center}.virtual-assistant__panel__header__action{display:flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem}.virtual-assistant__panel__header__action svg{color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__action:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__panel__header__tabs{display:flex;height:2.8rem;color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__tab{padding:0 1rem;border-right:.1rem solid var(--color-dark-grey-100)}.virtual-assistant__panel__header__tab:hover{background:var(--color-dark-grey-280)}.virtual-assistant__panel__header__tab__content{display:flex;align-items:center;justify-content:center;cursor:pointer;height:2.8rem;width:6rem;border-bottom:.3rem solid var(--color-dark-grey-300);padding-top:.1rem;position:relative}.virtual-assistant__panel__header__tab__content svg{font-size:1.5rem;color:var(--color-dark-grey-400)}.virtual-assistant__panel__header__tab__indicator{position:absolute;top:.5rem;right:1rem;height:1rem;width:1rem;border-radius:50%;background:var(--color-yellow-200)}.virtual-assistant__panel__header__tab:hover .virtual-assistant__panel__header__tab__content svg{color:var(--color-dark-grey-500)}.virtual-assistant__panel__header__tab--active:hover .virtual-assistant__panel__header__tab__content,.virtual-assistant__panel__header__tab--active .virtual-assistant__panel__header__tab__content{border-bottom:.3rem solid var(--color-yellow-300)}.virtual-assistant__panel__header__tab--active:hover .virtual-assistant__panel__header__tab__content svg,.virtual-assistant__panel__header__tab--active .virtual-assistant__panel__header__tab__content svg{color:var(--color-light-grey-200)}.virtual-assistant__panel__content{height:calc(100% - 2.8rem)}.virtual-assistant__panel__icon__close{font-size:2.4rem}.virtual-assistant__panel__placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column}.virtual-assistant__panel__placeholder__icon{font-size:5rem;color:var(--color-yellow-200)}.virtual-assistant__panel__placeholder__message{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400);margin-top:1rem}.virtual-assistant__panel__placeholder__instruction{font-family:"Roboto Mono",monospace;font-size:1.3rem;font-weight:700;color:var(--color-dark-grey-300);margin-top:.5rem}.virtual-assistant__search{height:100%}.virtual-assistant__search__header{display:flex;align-items:center;justify-content:center;padding:.3rem;border-bottom:.1rem solid var(--color-dark-grey-250);height:3.4rem;position:relative}.virtual-assistant__search__input{font-size:1.3rem;height:2.8rem;padding-right:2.8rem;padding-left:1rem;width:100%;background:var(--color-dark-grey-85);border-radius:.2rem;border:.1rem solid var(--color-dark-grey-200)}.virtual-assistant__search__input--searching{padding-right:9rem}.virtual-assistant__search__input__search__count{display:flex;align-items:center;justify-content:center;position:absolute;right:5.4rem;border-radius:.8rem;height:1.6rem;padding:0 .5rem;font-size:1.1rem;font-weight:700;background:var(--color-yellow-100);color:var(--color-dark-grey-280);user-select:none;cursor:default}.virtual-assistant__search__input__search__icon{display:flex;align-items:center;justify-content:center;position:absolute;right:.3rem;height:2.8rem;width:2.8rem}.virtual-assistant__search__input__search__icon svg{color:var(--color-light-shade-100)}.virtual-assistant__search__input__clear-btn{display:flex;align-items:center;justify-content:center;position:absolute;right:.3rem;height:2.8rem;width:2.8rem}.virtual-assistant__search__input__clear-btn svg{color:var(--color-dark-grey-400)}.virtual-assistant__search__input__clear-btn:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__search__input__config__trigger{display:flex;align-items:center;justify-content:center;position:absolute;right:3.1rem;height:2.8rem;width:1.8rem;cursor:pointer}.virtual-assistant__search__input__config__trigger svg{color:var(--color-dark-grey-400)}.virtual-assistant__search__input__config__trigger--toggled svg,.virtual-assistant__search__input__config__trigger:hover svg{color:var(--color-dark-grey-500)}.virtual-assistant__search__input__config__trigger--active svg,.virtual-assistant__search__input__config__trigger--active:hover svg{color:var(--color-blue-150)}.virtual-assistant__search__input__config__panel{width:100%;height:12rem;position:absolute;z-index:1;box-shadow:var(--color-dark-shade-280) .2rem .1rem .3rem .1rem;overflow:hidden;max-height:0;transition:max-height ease-in-out 100ms}.virtual-assistant__search__input__config__panel--toggled{max-height:12rem}.virtual-assistant__search__content{height:calc(100% - 3.4rem);position:relative}.virtual-assistant__search__results{height:100%;overflow-y:auto;padding:1rem}.virtual-assistant__search__results__placeholder{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400)}.virtual-assistant__doc-entry+.virtual-assistant__doc-entry{margin-top:.5rem}.virtual-assistant__doc-entry__header{display:flex}.virtual-assistant__doc-entry__expand-icon{display:flex;align-items:flex-start;width:2rem;min-width:2rem;padding-top:.3rem}.virtual-assistant__doc-entry__expand-icon svg{color:var(--color-light-grey-50)}.virtual-assistant__doc-entry__expand-icon--disabled svg{color:var(--color-dark-grey-300)}.virtual-assistant__doc-entry__title{line-height:1.5;font-weight:500;color:var(--color-light-grey-50);cursor:pointer;user-select:none}.virtual-assistant__doc-entry__title--link{color:var(--color-blue-40);text-decoration:none}.virtual-assistant__doc-entry__content{margin-top:.5rem;padding-left:2rem}.virtual-assistant__doc-entry__content__text{color:var(--color-light-grey-50);line-height:1.5;background:var(--color-dark-grey-80);border-radius:.2rem;padding:1rem}.virtual-assistant__doc-entry__content__markdown-text{padding:1rem;border-radius:.2rem}.virtual-assistant__character{display:flex;align-items:center;justify-content:center;flex-direction:column}.virtual-assistant__character__container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.virtual-assistant__character__greeting{font-family:"Roboto Mono",monospace;font-size:1.3rem;color:var(--color-light-grey-400);margin-top:.6rem;cursor:default;user-select:none}.virtual-assistant__character__question{font-family:"Roboto Mono",monospace;font-size:1.3rem;font-weight:700;color:var(--color-light-grey-0);margin-top:.6rem;cursor:default;user-select:none}.virtual-assistant__character__figure{display:flex;align-items:center;justify-content:center;position:relative;width:10rem;height:20rem}.virtual-assistant__character__hat{position:absolute;font-size:8rem;color:var(--color-orange-150);top:0}.virtual-assistant__character__glasses{position:absolute;font-size:8rem;color:var(--color-dark-grey-300);top:6rem}.virtual-assistant__character__beard{position:absolute;color:var(--color-yellow-200);font-size:8rem;top:11rem}.virtual-assistant__contextual-support{height:100%}.virtual-assistant__contextual-support__content{height:100%;overflow-y:auto;padding:1.5rem}.virtual-assistant__contextual-support__title{line-height:1.5;font-weight:700;color:var(--color-light-grey-50);cursor:pointer;user-select:none;font-size:1.5rem;margin-bottom:1rem}.virtual-assistant__contextual-support__text{color:var(--color-light-grey-50);line-height:1.5;background:var(--color-dark-grey-80);border-radius:.2rem;padding:1rem;margin-bottom:1rem}.virtual-assistant__contextual-support__markdown-text{padding:1rem;border-radius:.2rem;margin-bottom:1rem}.virtual-assistant__contextual-support__relevant-entries__title{color:var(--color-dark-grey-500);font-family:"Roboto Mono",monospace;font-size:1.3rem;margin-bottom:1rem}.text-search-advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.text-search-advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default}.text-search-advanced-config__panel__header__hint{display:flex;align-items:center;justify-content:center;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-300)}.text-search-advanced-config__panel__header__hint svg{font-size:1.2rem}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{visibility:hidden;display:flex;align-items:center}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem;margin-right:1rem}.tab-manager__tab--active svg{color:var(--color-light-grey-100)}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background-color:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.documentation-link{color:var(--color-dark-grey-500);cursor:pointer}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}.packageable-element-option-label{display:flex;align-items:center;display:flex}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}.execution-plan-viewer{height:100%;width:100%}.execution-plan-viewer__content{height:100%;width:100%}.execution-plan-viewer__debug-panel{background:var(--color-dark-grey-50)}.execution-plan-viewer__debug-panel .panel__header{background:var(--color-dark-grey-250)}.execution-plan-viewer__debug-panel .panel__content{position:relative;background:var(--color-dark-grey-50)}.execution-plan-viewer__close-btn{border-color:var(--color-blue-200);background:var(--color-blue-300)}.execution-plan-viewer .panel{height:100%}.execution-plan-viewer .panel__header{color:var(--color-light-grey-400);font-weight:bold;background:var(--color-dark-grey-50)}.execution-plan-viewer .panel__header__title{max-width:calc(100% - 11rem)}.execution-plan-viewer .panel__main-header{color:var(--color-light-grey-400);font-weight:bold;background:var(--color-dark-grey-250)}.execution-plan-viewer .panel__content{position:relative;height:calc(100% - 3rem);width:100%;background:var(--color-dark-grey-50);overflow-y:hidden}.execution-plan-viewer .panel__content ::-webkit-scrollbar-thumb{background:var(--color-dark-grey-400)}.execution-plan-viewer .panel__content>div:first-child{margin-top:0}.execution-plan-viewer .panel__content__lists{height:100%;width:100%;padding:1rem;overflow:overlay}.execution-plan-viewer__tabs__header{padding-left:0}.execution-plan-viewer__tabs{height:2.8rem;z-index:1;display:flex;overflow-x:overlay;overflow-y:hidden}.execution-plan-viewer__tab{height:100%;display:inline-flex;align-items:center;justify-content:center;padding:0 1rem;border-right:.1rem solid var(--color-dark-grey-200);white-space:nowrap;cursor:pointer}.execution-plan-viewer__tab--active{color:var(--color-dark-grey-50);position:relative}.execution-plan-viewer__tab--active::after{content:"";height:.4rem;width:100%;position:absolute;bottom:0;background:var(--color-yellow-200)}.execution-plan-viewer__panel{height:100%;width:100%}.execution-plan-viewer__panel__content{overflow-y:hidden;position:relative;background:var(--color-dark-grey-50);height:calc(100% - 3.4rem)}.execution-plan-viewer__panel__header{background:var(--color-dark-grey-100);z-index:1;height:3.4rem;min-height:3.4rem;padding:0}.execution-plan-viewer__panel__header__tabs{display:flex;height:100%;overflow-x:overlay}.execution-plan-viewer__panel__header__tab{display:flex;align-items:center;padding:0 1rem;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-80)}.execution-plan-viewer__panel__header__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.execution-plan-viewer__panel__header__tab__content{display:flex;align-items:center;height:100%;width:100%}.execution-plan-viewer__panel__header__tab__icon{margin-right:.5rem}.execution-plan-viewer__panel__header__tab__label{color:inherit;padding:0 .5rem;white-space:nowrap}.execution-plan-viewer__panel__view-mode__type{display:flex;align-items:center;justify-content:center;width:15rem;background:var(--color-dark-grey-100);border-right:.1rem solid var(--color-dark-grey-50);border-left:.1rem solid var(--color-dark-grey-50);color:var(--color-light-grey-300);cursor:pointer}.execution-plan-viewer__panel__view-mode__type:hover{background:var(--color-dark-grey-200)}.execution-plan-viewer__panel__view-mode__type__label{display:flex;align-items:center;height:3.4rem;padding:0 .5rem;border-top:.3rem solid var(--color-yellow-200)}.execution-plan-viewer__panel__view-mode__options{width:15rem}.execution-plan-viewer__panel__view-mode__options--with-group{border:none;padding:0}.execution-plan-viewer__panel__view-mode__option__group__name{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:default;writing-mode:vertical-lr;transform:rotate(180deg);font-size:1.1rem;width:2.2rem;padding:.5rem 0}.execution-plan-viewer__panel__view-mode__option__group{display:flex;flex-direction:row}.execution-plan-viewer__panel__view-mode__option__group--native{background:var(--color-blue-100);border:.1rem solid var(--color-blue-100)}.execution-plan-viewer__panel__view-mode__option__group--native .execution-plan-viewer__panel__view-mode__option__group__name{background:var(--color-blue-100);color:var(--color-light-grey-50)}.execution-plan-viewer__panel__view-mode__option__group--generation{background:var(--color-pink-300);border:.1rem solid var(--color-pink-300)}.execution-plan-viewer__panel__view-mode__option__group--generation .execution-plan-viewer__panel__view-mode__option__group__name{background:var(--color-pink-300);color:var(--color-light-grey-50)}.execution-plan-viewer__panel__view-mode__option__group__separator{height:.2rem;width:100%}.execution-plan-viewer__panel__view-mode__option__group__options{width:100%;background:var(--color-dark-grey-100)}.execution-plan-viewer__panel__view-mode__option{display:flex;align-items:center;justify-content:center;height:2rem}.execution-plan-viewer__explorer{width:100%}.execution-plan-viewer__explorer__content__container{height:100%;background:var(--color-dark-grey-100)}.execution-plan-viewer__explorer-tree__node__container:hover{background:var(--color-dark-blue-shade-100)}.execution-plan-viewer__explorer-tree__node__container--selected,.execution-plan-viewer__explorer-tree__node__container--selected:hover{background:var(--color-light-blue-450)}.execution-plan-viewer__explorer-tree__node__icon{width:4rem;min-width:4rem}.execution-plan-viewer__explorer-tree__node__icon__expand,.execution-plan-viewer__explorer-tree__node__icon__type{width:2rem;display:flex;justify-content:center}.execution-plan-viewer__explorer-tree__node__icon__expand svg{font-size:1rem}.execution-plan-viewer__explorer-tree__node__label{color:inherit}.execution-plan-viewer__unsupported-view,.execution-node-viewer__unsupported-view{display:flex;align-items:center;justify-content:center;flex-direction:column}.execution-plan-viewer__unsupported-view__summary,.execution-node-viewer__unsupported-view__summary{font-weight:500;margin-bottom:1rem}.execution-plan-viewer__unsupported-view__to-text-mode__btn,.execution-node-viewer__unsupported-view__to-text-mode__btn{height:2.8rem;width:15rem}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_backdrop.scss","../style/components/_notification.scss","../style/components/_virtual-assistant.scss","../style/components/_text-search.scss","../style/components/shared/_documentation-link.scss","../style/components/shared/_text-editor.scss","../style/components/shared/_packageable-element-option-label.scss","../style/components/shared/_execution-plan-viewer.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CACA,yCAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAGF,aACE,wBAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCAGF,kBACE,6BCvLJ,gBACE,YACA,WAGF,KACE,YAEA,WACE,YACA,qCAIA,kBACE,gBACA,qCACA,eACA,oBAGF,kBACE,aACA,eACA,gBACA,oCAGF,yBACE,mBACA,iCAGF,yBACE,kCAGF,2BACE,qBACA,gBACA,2BAGF,uBACE,aACA,gBACA,YAEA,+BCpCJ,aACA,mBDsCM,cACA,sCACA,8BACA,eAEA,sCACE,eACA,iBACA,gBACA,iCACA,oCAIJ,gCACE,2BACA,cACA,aACA,qCACA,8BAIA,yCCvCN,YACA,cDyCQ,aACA,WAGF,iDC9CN,YACA,cDgDQ,WAEA,qDACE,iBAIJ,+CCxDN,YACA,cD0DQ,WAEA,mDACE,iBACA,4BAIJ,0CACE,aACA,cACA,YACA,iBACA,YACA,mBACA,iBACA,oCAEA,iDACE,iBAGF,mDC9GR,aACA,mBACA,uBD+GU,YACA,iBAGF,0DCrHR,aACA,mBACA,uBDsHU,cACA,cACA,sCACA,eACA,oBElIZ,gBACE,UAEA,gCACE,wBAGF,2BACE,8BAGF,qBDLA,aACA,mBACA,uBCME,cACA,oBACA,YACA,iCAGF,6BACE,mBACA,eACA,mBAGF,yBACE,kBAGF,iCACE,kBACA,iBACA,4BACA,gBAGF,8BACE,kCACA,gBAGF,6BACE,2BACA,iBACA,gBACA,gBAGF,0BACE,yCAGF,yBACE,yCAEA,uCACE,iCAGF,sDACE,4BC/DN,UACE,kDACA,uBAEA,qBACE,SACA,QACA,kBAGF,mBACE,YACA,kBACA,2DCVF,wBACE,YACA,WAGF,uBACE,sCACA,kCACA,oBACA,uBAGF,gCACE,aACA,uBACA,eAEA,uCACE,sCAIJ,sCACE,kBACA,mBAGF,0CACE,iBAGF,4CACE,kCAGF,6CACE,2BAGF,+CACE,8BAGF,+CACE,6BAGF,sCH1BA,mBACA,uBACA,gBACA,sBACA,gBGyBE,iBACA,gBAEA,gDACE,cAIA,qBACA,YAIJ,uBACE,2BAGF,sBH9DA,aACA,mBACA,uBG+DE,WACA,iCAGF,4BACE,kCC5EJ,mBACE,kBAMA,cAIA,YACA,WAEA,iCAGE,cAGF,4BJRA,aACA,mBIUE,yBACA,cACA,aAEA,wCACA,qCACA,WACA,wCACA,iCAGF,qCJ5BA,aACA,mBACA,uBI6BE,cACA,aACA,kBACA,gCACA,2BAEA,4CACE,iBACA,kCACA,kBAGF,6CACE,iBACA,gCACA,oEAGF,yBACE,KACE,WAGF,GACE,YAKN,oCACE,aAGF,yCACE,cACA,WACA,YAEA,kDJrEF,aACA,mBACA,uBIsEI,YACA,WAGF,mDACE,gBAGF,6CACE,eACA,mCAIJ,oCACE,qCACA,2BACA,4BAGF,yEACE,mCACA,+BACA,4BAGF,wBACE,KACE,uCAGF,GACE,sCAIJ,4BACE,KACE,qCAGF,GACE,oCAKN,0BACE,aACA,YACA,oBACA,sCACA,8CACA,qKAMA,mBAEA,qCAGE,cAMA,oBAEA,2CACE,aAIJ,kCJ/IA,aACA,mBIiJE,8BACA,sCACA,cAEA,2CJtJF,aACA,mBIyJE,0CJhKF,aACA,mBACA,uBIiKI,aACA,cAEA,8CACE,iCAGF,oDACE,iCAKN,wCACE,aACA,cACA,iCAGF,uCACE,eACA,oDAEA,6CACE,sCAIJ,gDJ/LA,aACA,mBACA,uBIgME,eACA,cACA,WACA,qDACA,kBACA,kBAEA,oDACE,iBACA,iCAIJ,kDACE,kBACA,UACA,WACA,YACA,WACA,kBACA,mCAGF,iGACE,iCAGF,oMAEE,kDAEA,4MACE,kCAIJ,mCACE,2BAGF,uCACE,iBAGF,uCJ9OA,aACA,mBACA,uBI+OE,sBAEA,6CACE,eACA,8BAGF,gDACE,oCACA,iBACA,kCACA,gBAGF,oDACE,oCACA,iBACA,gBACA,iCACA,iBAKN,2BACE,YAEA,mCJ5QA,aACA,mBACA,uBI6QE,cACA,qDACA,cACA,kBAGF,kCACE,iBACA,cACA,qBACA,kBACA,WACA,qCACA,oBACA,8CAEA,6CACE,mBAGF,iDJnSF,aACA,mBACA,uBIoSI,kBACA,aACA,oBACA,cACA,gBACA,iBACA,gBACA,mCACA,iCACA,iBACA,eAGF,gDJnTF,aACA,mBACA,uBIoTI,kBACA,YACA,cACA,aAEA,oDACE,mCAIJ,6CJhUF,aACA,mBACA,uBIiUI,kBACA,YACA,cACA,aAEA,iDACE,iCAGF,uDACE,iCAIJ,mDJjVF,aACA,mBACA,uBIkVI,kBACA,aACA,cACA,aACA,eAEA,uDACE,iCAGF,6HAEE,iCAGF,oIAEE,4BAIJ,iDACE,WACA,aACA,kBACA,UACA,+DAGA,gBACA,aACA,wCAEA,0DACE,iBAKN,oCACE,2BACA,kBAGF,oCACE,YACA,gBACA,aAGF,iDACE,oCACA,iBACA,kCAKF,4DACE,iBAGF,sCACE,aAGF,2CACE,aACA,uBACA,WACA,eACA,kBAEA,+CACE,iCAKF,yDACE,iCAIJ,qCACE,gBACA,gBACA,iCACA,eACA,iBAGF,2CACE,2BACA,qBAGF,uCACE,iBACA,kBAGF,6CACE,iCACA,gBACA,qCACA,oBACA,aAGF,sDACE,aACA,oBAIJ,8BJxcE,aACA,mBACA,uBIycA,sBAEA,yCJ7cA,aACA,mBACA,uBI8cE,WACA,YACA,gBAGF,wCACE,oCACA,iBACA,kCACA,iBACA,eACA,iBAGF,wCACE,oCACA,iBACA,gBACA,gCACA,iBACA,eACA,iBAGF,sCJxeA,aACA,mBACA,uBIyeE,kBACA,YACA,aAGF,mCACE,kBACA,eACA,8BACA,MAGF,uCACE,kBACA,eACA,iCACA,SAGF,qCACE,kBACA,8BACA,eACA,UAIJ,uCACE,YAEA,gDACE,YACA,gBACA,eAGF,8CACE,gBACA,gBACA,iCACA,eACA,iBACA,iBACA,mBAGF,6CACE,iCACA,gBACA,qCACA,oBACA,aACA,mBAGF,sDACE,aACA,oBACA,mBAIA,gEACE,iCACA,oCACA,iBACA,mBCnjBN,oCACE,WACA,sCAEA,mDLQA,aACA,mBKNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eAGF,kDLVA,aACA,mBACA,uBKWE,oBACA,gBACA,kCAEA,sDACE,iBCxBN,oBACE,iCACA,eAGF,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_backdrop.scss","../style/components/_notification.scss","../style/components/_virtual-assistant.scss","../style/components/_text-search.scss","../style/components/shared/_tab-manager.scss","../style/components/shared/_documentation-link.scss","../style/components/shared/_text-editor.scss","../style/components/shared/_packageable-element-option-label.scss","../style/components/shared/_execution-plan-viewer.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CACA,yCAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAGF,aACE,wBAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCAGF,kBACE,6BCvLJ,gBACE,YACA,WAGF,KACE,YAEA,WACE,YACA,qCAIA,kBACE,gBACA,qCACA,eACA,oBAGF,kBACE,aACA,eACA,gBACA,oCAGF,yBACE,mBACA,iCAGF,yBACE,kCAGF,2BACE,qBACA,gBACA,2BAGF,uBACE,aACA,gBACA,YAEA,+BCpCJ,aACA,mBDsCM,cACA,sCACA,8BACA,eAEA,sCACE,eACA,iBACA,gBACA,iCACA,oCAIJ,gCACE,2BACA,cACA,aACA,qCACA,8BAIA,yCCvCN,YACA,cDyCQ,aACA,WAGF,iDC9CN,YACA,cDgDQ,WAEA,qDACE,iBAIJ,+CCxDN,YACA,cD0DQ,WAEA,mDACE,iBACA,4BAIJ,0CACE,aACA,cACA,YACA,iBACA,YACA,mBACA,iBACA,oCAEA,iDACE,iBAGF,mDC9GR,aACA,mBACA,uBD+GU,YACA,iBAGF,0DCrHR,aACA,mBACA,uBDsHU,cACA,cACA,sCACA,eACA,oBElIZ,gBACE,UAEA,gCACE,wBAGF,2BACE,8BAGF,qBDLA,aACA,mBACA,uBCME,cACA,oBACA,YACA,iCAGF,6BACE,mBACA,eACA,mBAGF,yBACE,kBAGF,iCACE,kBACA,iBACA,4BACA,gBAGF,8BACE,kCACA,gBAGF,6BACE,2BACA,iBACA,gBACA,gBAGF,0BACE,yCAGF,yBACE,yCAEA,uCACE,iCAGF,sDACE,4BC/DN,UACE,kDACA,uBAEA,qBACE,SACA,QACA,kBAGF,mBACE,YACA,kBACA,2DCVF,wBACE,YACA,WAGF,uBACE,sCACA,kCACA,oBACA,uBAGF,gCACE,aACA,uBACA,eAEA,uCACE,sCAIJ,sCACE,kBACA,mBAGF,0CACE,iBAGF,4CACE,kCAGF,6CACE,2BAGF,+CACE,8BAGF,+CACE,6BAGF,sCH1BA,mBACA,uBACA,gBACA,sBACA,gBGyBE,iBACA,gBAEA,gDACE,cAIA,qBACA,YAIJ,uBACE,2BAGF,sBH9DA,aACA,mBACA,uBG+DE,WACA,iCAGF,4BACE,kCC5EJ,mBACE,kBAMA,cAIA,YACA,WAEA,iCAGE,cAGF,4BJRA,aACA,mBIUE,yBACA,cACA,aAEA,wCACA,qCACA,WACA,wCACA,iCAGF,qCJ5BA,aACA,mBACA,uBI6BE,cACA,aACA,kBACA,gCACA,2BAEA,4CACE,iBACA,kCACA,kBAGF,6CACE,iBACA,gCACA,oEAGF,yBACE,KACE,WAGF,GACE,YAKN,oCACE,aAGF,yCACE,cACA,WACA,YAEA,kDJrEF,aACA,mBACA,uBIsEI,YACA,WAGF,mDACE,gBAGF,6CACE,eACA,mCAIJ,oCACE,qCACA,2BACA,4BAGF,yEACE,mCACA,+BACA,4BAGF,wBACE,KACE,uCAGF,GACE,sCAIJ,4BACE,KACE,qCAGF,GACE,oCAKN,0BACE,aACA,YACA,oBACA,sCACA,8CACA,qKAMA,mBAEA,qCAGE,cAMA,oBAEA,2CACE,aAIJ,kCJ/IA,aACA,mBIiJE,8BACA,sCACA,cAEA,2CJtJF,aACA,mBIyJE,0CJhKF,aACA,mBACA,uBIiKI,aACA,cAEA,8CACE,iCAGF,oDACE,iCAKN,wCACE,aACA,cACA,iCAGF,uCACE,eACA,oDAEA,6CACE,sCAIJ,gDJ/LA,aACA,mBACA,uBIgME,eACA,cACA,WACA,qDACA,kBACA,kBAEA,oDACE,iBACA,iCAIJ,kDACE,kBACA,UACA,WACA,YACA,WACA,kBACA,mCAGF,iGACE,iCAGF,oMAEE,kDAEA,4MACE,kCAIJ,mCACE,2BAGF,uCACE,iBAGF,uCJ9OA,aACA,mBACA,uBI+OE,sBAEA,6CACE,eACA,8BAGF,gDACE,oCACA,iBACA,kCACA,gBAGF,oDACE,oCACA,iBACA,gBACA,iCACA,iBAKN,2BACE,YAEA,mCJ5QA,aACA,mBACA,uBI6QE,cACA,qDACA,cACA,kBAGF,kCACE,iBACA,cACA,qBACA,kBACA,WACA,qCACA,oBACA,8CAEA,6CACE,mBAGF,iDJnSF,aACA,mBACA,uBIoSI,kBACA,aACA,oBACA,cACA,gBACA,iBACA,gBACA,mCACA,iCACA,iBACA,eAGF,gDJnTF,aACA,mBACA,uBIoTI,kBACA,YACA,cACA,aAEA,oDACE,mCAIJ,6CJhUF,aACA,mBACA,uBIiUI,kBACA,YACA,cACA,aAEA,iDACE,iCAGF,uDACE,iCAIJ,mDJjVF,aACA,mBACA,uBIkVI,kBACA,aACA,cACA,aACA,eAEA,uDACE,iCAGF,6HAEE,iCAGF,oIAEE,4BAIJ,iDACE,WACA,aACA,kBACA,UACA,+DAGA,gBACA,aACA,wCAEA,0DACE,iBAKN,oCACE,2BACA,kBAGF,oCACE,YACA,gBACA,aAGF,iDACE,oCACA,iBACA,kCAKF,4DACE,iBAGF,sCACE,aAGF,2CACE,aACA,uBACA,WACA,eACA,kBAEA,+CACE,iCAKF,yDACE,iCAIJ,qCACE,gBACA,gBACA,iCACA,eACA,iBAGF,2CACE,2BACA,qBAGF,uCACE,iBACA,kBAGF,6CACE,iCACA,gBACA,qCACA,oBACA,aAGF,sDACE,aACA,oBAIJ,8BJxcE,aACA,mBACA,uBIycA,sBAEA,yCJ7cA,aACA,mBACA,uBI8cE,WACA,YACA,gBAGF,wCACE,oCACA,iBACA,kCACA,iBACA,eACA,iBAGF,wCACE,oCACA,iBACA,gBACA,gCACA,iBACA,eACA,iBAGF,sCJxeA,aACA,mBACA,uBIyeE,kBACA,YACA,aAGF,mCACE,kBACA,eACA,8BACA,MAGF,uCACE,kBACA,eACA,iCACA,SAGF,qCACE,kBACA,8BACA,eACA,UAIJ,uCACE,YAEA,gDACE,YACA,gBACA,eAGF,8CACE,gBACA,gBACA,iCACA,eACA,iBACA,iBACA,mBAGF,6CACE,iCACA,gBACA,qCACA,oBACA,aACA,mBAGF,sDACE,aACA,oBACA,mBAIA,gEACE,iCACA,oCACA,iBACA,mBCnjBN,oCACE,WACA,sCAEA,mDLQA,aACA,mBKNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eAGF,kDLVA,aACA,mBACA,uBKWE,oBACA,gBACA,kCAEA,sDACE,iBCxBN,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BNCA,mBMEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BNjBF,aACA,mBMmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BACE,kBNlCJ,aACA,mBMqCI,iCACE,kCACA,iBACA,kBAIJ,8BACE,kCAGF,4GAEE,mBAGF,oCACE,gBACA,SACA,gBACA,4CAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BN1EF,aACA,mBACA,uBA2BA,YACA,cMgDI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCNrGF,aACA,mBACA,uBA2BA,YACA,cM2EI,cACA,kBACA,mBAEA,wCACE,aACA,cCrHR,oBACE,iCACA,eAGF,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BPDA,aACA,uBOGE,eACA,WCvBF,wBACE,YACA,WACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA,OCVJ,kCTYE,aACA,mBSVA,aAEA,uCTOA,aACA,mBSLE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCTPA,aACA,mBSSE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCTjCE,aACA,mBSmCA,aAEA,6CTtCA,aACA,mBSwCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CTnDA,aACA,mBSqDE,cClEJ,uBACE,YACA,WAEA,gCACE,YACA,WAGF,oCACE,qCAEA,mDACE,sCAGF,oDACE,kBACA,qCAIJ,kCACE,mCACA,iCAGF,8BACE,YAEA,sCACE,kCACA,iBACA,qCAEA,6CACE,6BAIJ,2CACE,kCACA,iBACA,sCAGF,uCACE,kBACA,yBACA,WACA,qCACA,kBAEA,iEACE,sCAIJ,uDACE,aAGF,8CACE,YACA,WACA,aACA,iBAIJ,qCACE,eAGF,6BACE,cACA,UACA,aACA,mBACA,kBAGF,4BACE,YACA,oBACA,mBACA,uBACA,eACA,oDACA,mBACA,eAGF,oCACE,gCACA,kBAGF,2CACE,WACA,aACA,WACA,kBACA,SACA,mCAGF,8BACE,YACA,WAEA,uCACE,kBACA,kBACA,qCACA,2BAGF,sCACE,sCACA,UACA,cACA,kBACA,UAGF,4CACE,aACA,YACA,mBAGF,2CVxHF,aACA,mBU0HI,eACA,eACA,kCACA,qCACA,mDAGF,mDACE,kCACA,qCAGF,oDVvIF,aACA,mBUyII,YACA,WAGF,iDACE,mBAGF,kDACE,cACA,gBACA,mBAIA,+CV/JJ,aACA,mBACA,uBUgKM,YACA,sCACA,mDACA,kDACA,kCACA,eAGF,qDACE,sCAGF,sDVxKJ,aACA,mBU0KM,cACA,gBACA,+CAGF,kDACE,YAGF,8DACE,YACA,UAGF,8DV/LJ,aACA,mBACA,uBUgMM,sBACA,eACA,yBACA,yBACA,iBACA,aACA,gBAGF,wDACE,aACA,mBAEA,gEACE,iCACA,yCAGF,8HACE,iCACA,iCAGF,oEACE,iCACA,yCAGF,kIACE,iCACA,iCAIJ,mEACE,aACA,WAGF,iEACE,WACA,sCAGF,iDV9OJ,aACA,mBACA,uBU+OM,YAKN,iCACE,WAEA,qDACE,YACA,sCAIJ,6DACE,4CAGF,wIAEE,uCAGF,kDACE,WACA,eAGF,kHAEE,WVpQF,aACA,uBUwQA,8DACE,eAGF,mDACE,cAMF,kFV/RA,aACA,mBACA,uBUgSE,sBAEA,oGACE,gBACA,mBAGF,wHACE,cACA","file":"index.css"}
|
package/lib/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export * from './components/useApplicationNavigationContext.js';
|
|
|
23
23
|
export * from './components/useCommands.js';
|
|
24
24
|
export * from './components/ApplicationStoreProviderTestUtils.js';
|
|
25
25
|
export * from './components/WebApplicationNavigatorProviderTestUtils.js';
|
|
26
|
-
export * from './components/VirtualAssistant.js';
|
|
27
26
|
export * from './stores/ApplicationStore.js';
|
|
28
27
|
export * from './stores/ApplicationTelemetry.js';
|
|
29
28
|
export * from './stores/ApplicationEvent.js';
|
|
@@ -43,7 +42,9 @@ export * from './stores/WebApplicationRouter.js';
|
|
|
43
42
|
export * from './components/shared/DocumentationLink.js';
|
|
44
43
|
export * from './components/shared/TextInputEditor.js';
|
|
45
44
|
export * from './components/shared/PackageableElementOptionLabel.js';
|
|
45
|
+
export * from './components/shared/TabManager.js';
|
|
46
46
|
export * from './stores/shared/PackageableElementOption.js';
|
|
47
|
+
export * from './stores/shared/TabManagerState.js';
|
|
47
48
|
/**
|
|
48
49
|
* @modularize
|
|
49
50
|
*/
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAE3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AAIjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sDAAsD,CAAC;AACrE,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AAEnD;;GAEG;AACH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -23,9 +23,6 @@ export * from './components/useApplicationNavigationContext.js';
|
|
|
23
23
|
export * from './components/useCommands.js';
|
|
24
24
|
export * from './components/ApplicationStoreProviderTestUtils.js';
|
|
25
25
|
export * from './components/WebApplicationNavigatorProviderTestUtils.js';
|
|
26
|
-
// TODO: consider moving this to `LegendApplicationComponentFrameworkProvider`
|
|
27
|
-
// once we think we can add virtual assistant support for all apps
|
|
28
|
-
export * from './components/VirtualAssistant.js';
|
|
29
26
|
export * from './stores/ApplicationStore.js';
|
|
30
27
|
export * from './stores/ApplicationTelemetry.js';
|
|
31
28
|
export * from './stores/ApplicationEvent.js';
|
|
@@ -46,7 +43,9 @@ export * from './stores/WebApplicationRouter.js';
|
|
|
46
43
|
export * from './components/shared/DocumentationLink.js';
|
|
47
44
|
export * from './components/shared/TextInputEditor.js';
|
|
48
45
|
export * from './components/shared/PackageableElementOptionLabel.js';
|
|
46
|
+
export * from './components/shared/TabManager.js';
|
|
49
47
|
export * from './stores/shared/PackageableElementOption.js';
|
|
48
|
+
export * from './stores/shared/TabManagerState.js';
|
|
50
49
|
/**
|
|
51
50
|
* @modularize
|
|
52
51
|
*/
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAE3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AAEjD,4GAA4G;AAE5G,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sDAAsD,CAAC;AACrE,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AAEnD;;GAEG;AACH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC"}
|
|
@@ -31,6 +31,11 @@ export type DocumentationRegistryEntry = {
|
|
|
31
31
|
* See https://cors-anywhere.herokuapp.com/
|
|
32
32
|
*/
|
|
33
33
|
simple?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Optional list of wildcard patterns to be matched against documentation entries' keys to
|
|
36
|
+
* narrow the scope of inclusion
|
|
37
|
+
*/
|
|
38
|
+
includes?: string[];
|
|
34
39
|
};
|
|
35
40
|
export type DocumentationRegistryData = {
|
|
36
41
|
entries: Record<string, DocumentationConfigEntry>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentationService.d.ts","sourceRoot":"","sources":["../../src/stores/DocumentationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAEhB,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentationService.d.ts","sourceRoot":"","sources":["../../src/stores/DocumentationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KA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ACrB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,WAAW,CAAC,GAAW;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED,gBAAgB;QACd,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAA6C,EAAE,CAAC;QAC5D,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACtC,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,yBAAyB;QACvB,MAAM,MAAM,GAAkC,EAAE,CAAC;QACjD,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC7C,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACxC,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
export declare abstract class TabState {
|
|
17
|
+
readonly uuid: string;
|
|
18
|
+
abstract get label(): string;
|
|
19
|
+
get description(): string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare abstract class TabManagerState {
|
|
22
|
+
currentTab?: TabState | undefined;
|
|
23
|
+
tabs: TabState[];
|
|
24
|
+
constructor();
|
|
25
|
+
setCurrentTab(val: TabState | undefined): void;
|
|
26
|
+
closeAllOtherTabs(tab: TabState): void;
|
|
27
|
+
closeAllTabs(): void;
|
|
28
|
+
swapTabs(tab1: TabState, tab2: TabState): void;
|
|
29
|
+
/**
|
|
30
|
+
* The unique drag and drop type
|
|
31
|
+
* See https://react-dnd.github.io/react-dnd/docs/overview#items-and-types
|
|
32
|
+
*/
|
|
33
|
+
abstract get dndType(): string;
|
|
34
|
+
abstract openTab(tab: TabState): void;
|
|
35
|
+
abstract closeTab(tab: TabState): void;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=TabManagerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabManagerState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/TabManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,8BAAsB,QAAQ;IAC5B,QAAQ,CAAC,IAAI,SAAU;IAEvB,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC;IAE7B,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;CACF;AAED,8BAAsB,eAAe;IACnC,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,QAAQ,EAAE,CAAM;;IAetB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI;IAI9C,iBAAiB,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAStC,YAAY,IAAI,IAAI;IAKpB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI;IAI9C;;;OAGG;IACH,QAAQ,KAAK,OAAO,IAAI,MAAM,CAAC;IAE/B,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IACrC,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;CACvC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { assertNonNullable, swapEntry, uuid } from '@finos/legend-shared';
|
|
17
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
18
|
+
export class TabState {
|
|
19
|
+
uuid = uuid();
|
|
20
|
+
get description() {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class TabManagerState {
|
|
25
|
+
currentTab;
|
|
26
|
+
tabs = [];
|
|
27
|
+
constructor() {
|
|
28
|
+
makeObservable(this, {
|
|
29
|
+
currentTab: observable,
|
|
30
|
+
tabs: observable,
|
|
31
|
+
setCurrentTab: action,
|
|
32
|
+
closeTab: action,
|
|
33
|
+
closeAllTabs: action,
|
|
34
|
+
closeAllOtherTabs: action,
|
|
35
|
+
openTab: action,
|
|
36
|
+
swapTabs: action,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
setCurrentTab(val) {
|
|
40
|
+
this.currentTab = val;
|
|
41
|
+
}
|
|
42
|
+
closeAllOtherTabs(tab) {
|
|
43
|
+
assertNonNullable(this.tabs.find((e) => e === tab), 'Specified tab should be currently opened');
|
|
44
|
+
this.setCurrentTab(tab);
|
|
45
|
+
this.tabs = [tab];
|
|
46
|
+
}
|
|
47
|
+
closeAllTabs() {
|
|
48
|
+
this.setCurrentTab(undefined);
|
|
49
|
+
this.tabs = [];
|
|
50
|
+
}
|
|
51
|
+
swapTabs(tab1, tab2) {
|
|
52
|
+
swapEntry(this.tabs, tab1, tab2);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=TabManagerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabManagerState.js","sourceRoot":"","sources":["../../../src/stores/shared/TabManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAgB,QAAQ;IACnB,IAAI,GAAG,IAAI,EAAE,CAAC;IAIvB,IAAI,WAAW;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAED,MAAM,OAAgB,eAAe;IACnC,UAAU,CAAwB;IAClC,IAAI,GAAe,EAAE,CAAC;IAEtB;QACE,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,IAAI,EAAE,UAAU;YAChB,aAAa,EAAE,MAAM;YACrB,QAAQ,EAAE,MAAM;YAChB,YAAY,EAAE,MAAM;YACpB,iBAAiB,EAAE,MAAM;YACzB,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,GAAyB;QACrC,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,iBAAiB,CAAC,GAAa;QAC7B,iBAAiB,CACf,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,EAChC,0CAA0C,CAC3C,CAAC;QACF,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,YAAY;QACV,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IACjB,CAAC;IAED,QAAQ,CAAC,IAAc,EAAE,IAAc;QACrC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;CAUF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"test:watch": "jest --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@finos/legend-art": "5.0.
|
|
47
|
-
"@finos/legend-graph": "20.1.
|
|
48
|
-
"@finos/legend-shared": "6.2.
|
|
46
|
+
"@finos/legend-art": "5.0.11",
|
|
47
|
+
"@finos/legend-graph": "20.1.7",
|
|
48
|
+
"@finos/legend-shared": "6.2.6",
|
|
49
49
|
"@types/css-font-loading-module": "0.0.7",
|
|
50
50
|
"@types/react": "18.0.25",
|
|
51
51
|
"@types/react-dom": "18.0.9",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"sql-formatter": "12.0.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@finos/legend-dev-utils": "2.0.
|
|
68
|
+
"@finos/legend-dev-utils": "2.0.30",
|
|
69
69
|
"@jest/globals": "29.3.1",
|
|
70
70
|
"cross-env": "7.0.3",
|
|
71
71
|
"eslint": "8.28.0",
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
NetworkClient,
|
|
33
33
|
type Writable,
|
|
34
34
|
type ExtensionsConfigurationData,
|
|
35
|
+
createRegExpPatternFromWildcardPattern,
|
|
35
36
|
} from '@finos/legend-shared';
|
|
36
37
|
import { APPLICATION_EVENT } from '../stores/ApplicationEvent.js';
|
|
37
38
|
import { configureComponents } from '@finos/legend-art';
|
|
@@ -297,10 +298,16 @@ export abstract class LegendApplication {
|
|
|
297
298
|
docData.entries,
|
|
298
299
|
`Can't load documentation registry data: 'entries' field is missing`,
|
|
299
300
|
);
|
|
301
|
+
|
|
302
|
+
const patterns = entry.includes?.map((filter) =>
|
|
303
|
+
createRegExpPatternFromWildcardPattern(filter),
|
|
304
|
+
);
|
|
300
305
|
Object.entries(docData.entries).forEach(([key, docEntry]) => {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
entries[key]
|
|
306
|
+
if (!patterns || patterns.some((pattern) => pattern.test(key))) {
|
|
307
|
+
// NOTE: entries will NOT override
|
|
308
|
+
if (!entries[key]) {
|
|
309
|
+
entries[key] = docEntry;
|
|
310
|
+
}
|
|
304
311
|
}
|
|
305
312
|
});
|
|
306
313
|
} catch (error) {
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
createKeybindingsHandler,
|
|
28
28
|
type KeyBindingConfig,
|
|
29
29
|
} from '@finos/legend-shared';
|
|
30
|
+
import { VirtualAssistant } from './VirtualAssistant.js';
|
|
30
31
|
|
|
31
32
|
const APP_CONTAINER_ID = 'app.container';
|
|
32
33
|
const APP_BACKDROP_CONTAINER_ID = 'app.backdrop-container';
|
|
@@ -93,6 +94,10 @@ export const LegendApplicationComponentFrameworkProvider = observer(
|
|
|
93
94
|
(props: { children: React.ReactNode }) => {
|
|
94
95
|
const { children } = props;
|
|
95
96
|
const applicationStore = useApplicationStore();
|
|
97
|
+
const disableContextMenu: React.MouseEventHandler = (event) => {
|
|
98
|
+
event.stopPropagation();
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
};
|
|
96
101
|
const backdropContainer = applicationStore.backdropContainerElementID
|
|
97
102
|
? document.getElementById(applicationStore.backdropContainerElementID) ??
|
|
98
103
|
document.getElementById(APP_BACKDROP_CONTAINER_ID)
|
|
@@ -146,8 +151,11 @@ export const LegendApplicationComponentFrameworkProvider = observer(
|
|
|
146
151
|
// NOTE: this `id` is used to quickly identify this DOM node so we could manually
|
|
147
152
|
// dispatch keyboard event here in order to be captured by our global hotkeys matchers
|
|
148
153
|
id={APP_CONTAINER_ID}
|
|
154
|
+
// Disable global context menu so that only places in the app that supports context-menu will be effective
|
|
155
|
+
onContextMenu={disableContextMenu}
|
|
149
156
|
>
|
|
150
157
|
<BackdropContainer elementID={APP_BACKDROP_CONTAINER_ID} />
|
|
158
|
+
<VirtualAssistant />
|
|
151
159
|
{children}
|
|
152
160
|
</div>
|
|
153
161
|
</DndProvider>
|
|
@@ -0,0 +1,268 @@
|
|
|
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
|
+
|
|
17
|
+
import {
|
|
18
|
+
ChevronDownIcon,
|
|
19
|
+
clsx,
|
|
20
|
+
ContextMenu,
|
|
21
|
+
DragPreviewLayer,
|
|
22
|
+
DropdownMenu,
|
|
23
|
+
MenuContent,
|
|
24
|
+
MenuContentItem,
|
|
25
|
+
PanelEntryDropZonePlaceholder,
|
|
26
|
+
TimesIcon,
|
|
27
|
+
useDragPreviewLayer,
|
|
28
|
+
} from '@finos/legend-art';
|
|
29
|
+
import { observer } from 'mobx-react-lite';
|
|
30
|
+
import { useRef, useCallback } from 'react';
|
|
31
|
+
import { type DropTargetMonitor, useDrop, useDrag } from 'react-dnd';
|
|
32
|
+
import type {
|
|
33
|
+
TabManagerState,
|
|
34
|
+
TabState,
|
|
35
|
+
} from '../../stores/shared/TabManagerState.js';
|
|
36
|
+
|
|
37
|
+
type TabDragSource = {
|
|
38
|
+
tab: TabState;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const horizontalToVerticalScroll: React.WheelEventHandler = (event) => {
|
|
42
|
+
// NOTE: only convert horizontal to vertical scroll when the scroll causes more horizontal than vertical displacement
|
|
43
|
+
if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
event.currentTarget.scrollBy(event.deltaY, 0);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const TabContextMenu = observer(
|
|
50
|
+
(props: { tabState: TabState; managerTabState: TabManagerState }) => {
|
|
51
|
+
const { tabState, managerTabState } = props;
|
|
52
|
+
const close = (): void => managerTabState.closeTab(tabState);
|
|
53
|
+
const closeOthers = (): void => managerTabState.closeAllOtherTabs(tabState);
|
|
54
|
+
const closeAll = (): void => managerTabState.closeAllTabs();
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<MenuContent>
|
|
58
|
+
<MenuContentItem onClick={close}>Close</MenuContentItem>
|
|
59
|
+
<MenuContentItem
|
|
60
|
+
disabled={managerTabState.tabs.length < 2}
|
|
61
|
+
onClick={closeOthers}
|
|
62
|
+
>
|
|
63
|
+
Close Others
|
|
64
|
+
</MenuContentItem>
|
|
65
|
+
<MenuContentItem onClick={closeAll}>Close All</MenuContentItem>
|
|
66
|
+
</MenuContent>
|
|
67
|
+
);
|
|
68
|
+
},
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const Tab = observer(
|
|
72
|
+
(props: {
|
|
73
|
+
tabState: TabState;
|
|
74
|
+
tabManagerState: TabManagerState;
|
|
75
|
+
tabRenderer?: ((editorState: TabState) => React.ReactNode) | undefined;
|
|
76
|
+
}) => {
|
|
77
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
78
|
+
const { tabManagerState, tabState, tabRenderer } = props;
|
|
79
|
+
|
|
80
|
+
// Drag and Drop
|
|
81
|
+
const handleHover = useCallback(
|
|
82
|
+
(item: TabDragSource, monitor: DropTargetMonitor): void => {
|
|
83
|
+
const draggingTab = item.tab;
|
|
84
|
+
const hoveredTab = tabState;
|
|
85
|
+
|
|
86
|
+
const dragIndex = tabManagerState.tabs.findIndex(
|
|
87
|
+
(e) => e === draggingTab,
|
|
88
|
+
);
|
|
89
|
+
const hoverIndex = tabManagerState.tabs.findIndex(
|
|
90
|
+
(e) => e === hoveredTab,
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
const hoverBoundingReact = ref.current?.getBoundingClientRect();
|
|
94
|
+
const distanceThreshold =
|
|
95
|
+
((hoverBoundingReact?.left ?? 0) - (hoverBoundingReact?.right ?? 0)) /
|
|
96
|
+
2;
|
|
97
|
+
const dragDistance =
|
|
98
|
+
(monitor.getClientOffset()?.x ?? 0) -
|
|
99
|
+
(hoverBoundingReact?.right ?? 0);
|
|
100
|
+
if (dragIndex < hoverIndex && dragDistance < distanceThreshold) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (dragIndex > hoverIndex && dragDistance > distanceThreshold) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
tabManagerState.swapTabs(draggingTab, hoveredTab);
|
|
108
|
+
},
|
|
109
|
+
[tabManagerState, tabState],
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
const closeTabOnMiddleClick =
|
|
113
|
+
(currTab: TabState): React.MouseEventHandler =>
|
|
114
|
+
(event): void => {
|
|
115
|
+
if (event.nativeEvent.button === 1) {
|
|
116
|
+
tabManagerState.closeTab(currTab);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [{ isBeingDraggedEditorPanel }, dropConnector] = useDrop<
|
|
121
|
+
TabDragSource,
|
|
122
|
+
void,
|
|
123
|
+
{ isBeingDraggedEditorPanel: TabState | undefined }
|
|
124
|
+
>(
|
|
125
|
+
() => ({
|
|
126
|
+
accept: [tabManagerState.dndType],
|
|
127
|
+
hover: (item, monitor) => handleHover(item, monitor),
|
|
128
|
+
collect: (
|
|
129
|
+
monitor,
|
|
130
|
+
): {
|
|
131
|
+
isBeingDraggedEditorPanel: TabState | undefined;
|
|
132
|
+
} => ({
|
|
133
|
+
isBeingDraggedEditorPanel: monitor.getItem<TabDragSource | null>()
|
|
134
|
+
?.tab,
|
|
135
|
+
}),
|
|
136
|
+
}),
|
|
137
|
+
[handleHover],
|
|
138
|
+
);
|
|
139
|
+
const isBeingDragged = tabState === isBeingDraggedEditorPanel;
|
|
140
|
+
|
|
141
|
+
const [, dragConnector, dragPreviewConnector] = useDrag<TabDragSource>(
|
|
142
|
+
() => ({
|
|
143
|
+
type: tabManagerState.dndType,
|
|
144
|
+
item: () => ({
|
|
145
|
+
tab: tabState,
|
|
146
|
+
}),
|
|
147
|
+
}),
|
|
148
|
+
[tabState, tabManagerState],
|
|
149
|
+
);
|
|
150
|
+
dragConnector(dropConnector(ref));
|
|
151
|
+
useDragPreviewLayer(dragPreviewConnector);
|
|
152
|
+
|
|
153
|
+
return (
|
|
154
|
+
<div
|
|
155
|
+
ref={ref}
|
|
156
|
+
className={clsx('tab-manager__tab', {
|
|
157
|
+
'tab-manager__tab--active': tabState === tabManagerState.currentTab,
|
|
158
|
+
'tab-manager__tab--dragged': isBeingDragged,
|
|
159
|
+
})}
|
|
160
|
+
onMouseUp={closeTabOnMiddleClick(tabState)}
|
|
161
|
+
>
|
|
162
|
+
<PanelEntryDropZonePlaceholder
|
|
163
|
+
showPlaceholder={false}
|
|
164
|
+
className="tab-manager__tab__dnd__placeholder"
|
|
165
|
+
>
|
|
166
|
+
<ContextMenu
|
|
167
|
+
content={
|
|
168
|
+
<TabContextMenu
|
|
169
|
+
tabState={tabState}
|
|
170
|
+
managerTabState={tabManagerState}
|
|
171
|
+
/>
|
|
172
|
+
}
|
|
173
|
+
className="tab-manager__tab__content"
|
|
174
|
+
>
|
|
175
|
+
<button
|
|
176
|
+
className="tab-manager__tab__label"
|
|
177
|
+
tabIndex={-1}
|
|
178
|
+
onClick={() => tabManagerState.openTab(tabState)}
|
|
179
|
+
title={tabState.description}
|
|
180
|
+
>
|
|
181
|
+
{tabRenderer?.(tabState) ?? tabState.label}
|
|
182
|
+
</button>
|
|
183
|
+
<button
|
|
184
|
+
className="tab-manager__tab__close-btn"
|
|
185
|
+
onClick={() => tabManagerState.closeTab(tabState)}
|
|
186
|
+
tabIndex={-1}
|
|
187
|
+
title="Close"
|
|
188
|
+
>
|
|
189
|
+
<TimesIcon />
|
|
190
|
+
</button>
|
|
191
|
+
</ContextMenu>
|
|
192
|
+
</PanelEntryDropZonePlaceholder>
|
|
193
|
+
</div>
|
|
194
|
+
);
|
|
195
|
+
},
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
const TabMenu = observer((props: { managerTabState: TabManagerState }) => {
|
|
199
|
+
const { managerTabState } = props;
|
|
200
|
+
return (
|
|
201
|
+
<DropdownMenu
|
|
202
|
+
className="tab-manager__menu__toggler"
|
|
203
|
+
title="Show All Tabs"
|
|
204
|
+
content={
|
|
205
|
+
<MenuContent className="tab-manager__menu">
|
|
206
|
+
{managerTabState.tabs.map((tabState) => (
|
|
207
|
+
<MenuContentItem
|
|
208
|
+
key={tabState.uuid}
|
|
209
|
+
className="tab-manager__menu__item"
|
|
210
|
+
onClick={() => managerTabState.openTab(tabState)}
|
|
211
|
+
>
|
|
212
|
+
<div className="tab-manager__menu__item__label">
|
|
213
|
+
{tabState.label}
|
|
214
|
+
</div>
|
|
215
|
+
<div
|
|
216
|
+
className="tab-manager__menu__item__close-btn"
|
|
217
|
+
onClick={(event) => {
|
|
218
|
+
// NOTE: prevent default action of dropdown menu
|
|
219
|
+
event.stopPropagation();
|
|
220
|
+
managerTabState.closeTab(tabState);
|
|
221
|
+
}}
|
|
222
|
+
tabIndex={-1}
|
|
223
|
+
title="Close"
|
|
224
|
+
>
|
|
225
|
+
<TimesIcon />
|
|
226
|
+
</div>
|
|
227
|
+
</MenuContentItem>
|
|
228
|
+
))}
|
|
229
|
+
</MenuContent>
|
|
230
|
+
}
|
|
231
|
+
menuProps={{
|
|
232
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
|
233
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
234
|
+
}}
|
|
235
|
+
>
|
|
236
|
+
<ChevronDownIcon />
|
|
237
|
+
</DropdownMenu>
|
|
238
|
+
);
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
export const TabManager = observer(
|
|
242
|
+
(props: {
|
|
243
|
+
tabManagerState: TabManagerState;
|
|
244
|
+
tabRenderer?: ((editorState: TabState) => React.ReactNode) | undefined;
|
|
245
|
+
}) => {
|
|
246
|
+
const { tabManagerState, tabRenderer } = props;
|
|
247
|
+
|
|
248
|
+
return (
|
|
249
|
+
<div className="tab-manager" onWheel={horizontalToVerticalScroll}>
|
|
250
|
+
<div className="tab-manager__content">
|
|
251
|
+
{tabManagerState.tabs.map((tab) => (
|
|
252
|
+
<Tab
|
|
253
|
+
key={tab.uuid}
|
|
254
|
+
tabState={tab}
|
|
255
|
+
tabManagerState={tabManagerState}
|
|
256
|
+
tabRenderer={tabRenderer}
|
|
257
|
+
/>
|
|
258
|
+
))}
|
|
259
|
+
<DragPreviewLayer
|
|
260
|
+
labelGetter={(item: TabDragSource): string => item.tab.label}
|
|
261
|
+
types={[tabManagerState.dndType]}
|
|
262
|
+
/>
|
|
263
|
+
</div>
|
|
264
|
+
<TabMenu managerTabState={tabManagerState} />
|
|
265
|
+
</div>
|
|
266
|
+
);
|
|
267
|
+
},
|
|
268
|
+
);
|
package/src/index.ts
CHANGED
|
@@ -25,9 +25,6 @@ export * from './components/useApplicationNavigationContext.js';
|
|
|
25
25
|
export * from './components/useCommands.js';
|
|
26
26
|
export * from './components/ApplicationStoreProviderTestUtils.js';
|
|
27
27
|
export * from './components/WebApplicationNavigatorProviderTestUtils.js';
|
|
28
|
-
// TODO: consider moving this to `LegendApplicationComponentFrameworkProvider`
|
|
29
|
-
// once we think we can add virtual assistant support for all apps
|
|
30
|
-
export * from './components/VirtualAssistant.js';
|
|
31
28
|
|
|
32
29
|
export * from './stores/ApplicationStore.js';
|
|
33
30
|
export * from './stores/ApplicationTelemetry.js';
|
|
@@ -53,8 +50,10 @@ export * from './stores/WebApplicationRouter.js';
|
|
|
53
50
|
export * from './components/shared/DocumentationLink.js';
|
|
54
51
|
export * from './components/shared/TextInputEditor.js';
|
|
55
52
|
export * from './components/shared/PackageableElementOptionLabel.js';
|
|
53
|
+
export * from './components/shared/TabManager.js';
|
|
56
54
|
|
|
57
55
|
export * from './stores/shared/PackageableElementOption.js';
|
|
56
|
+
export * from './stores/shared/TabManagerState.js';
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
59
|
* @modularize
|
|
@@ -48,6 +48,11 @@ export type DocumentationRegistryEntry = {
|
|
|
48
48
|
* See https://cors-anywhere.herokuapp.com/
|
|
49
49
|
*/
|
|
50
50
|
simple?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Optional list of wildcard patterns to be matched against documentation entries' keys to
|
|
53
|
+
* narrow the scope of inclusion
|
|
54
|
+
*/
|
|
55
|
+
includes?: string[];
|
|
51
56
|
};
|
|
52
57
|
|
|
53
58
|
export type DocumentationRegistryData = {
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
|
|
17
|
+
import { assertNonNullable, swapEntry, uuid } from '@finos/legend-shared';
|
|
18
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
19
|
+
|
|
20
|
+
export abstract class TabState {
|
|
21
|
+
readonly uuid = uuid();
|
|
22
|
+
|
|
23
|
+
abstract get label(): string;
|
|
24
|
+
|
|
25
|
+
get description(): string | undefined {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export abstract class TabManagerState {
|
|
31
|
+
currentTab?: TabState | undefined;
|
|
32
|
+
tabs: TabState[] = [];
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
makeObservable(this, {
|
|
36
|
+
currentTab: observable,
|
|
37
|
+
tabs: observable,
|
|
38
|
+
setCurrentTab: action,
|
|
39
|
+
closeTab: action,
|
|
40
|
+
closeAllTabs: action,
|
|
41
|
+
closeAllOtherTabs: action,
|
|
42
|
+
openTab: action,
|
|
43
|
+
swapTabs: action,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
setCurrentTab(val: TabState | undefined): void {
|
|
48
|
+
this.currentTab = val;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
closeAllOtherTabs(tab: TabState): void {
|
|
52
|
+
assertNonNullable(
|
|
53
|
+
this.tabs.find((e) => e === tab),
|
|
54
|
+
'Specified tab should be currently opened',
|
|
55
|
+
);
|
|
56
|
+
this.setCurrentTab(tab);
|
|
57
|
+
this.tabs = [tab];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
closeAllTabs(): void {
|
|
61
|
+
this.setCurrentTab(undefined);
|
|
62
|
+
this.tabs = [];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
swapTabs(tab1: TabState, tab2: TabState): void {
|
|
66
|
+
swapEntry(this.tabs, tab1, tab2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The unique drag and drop type
|
|
71
|
+
* See https://react-dnd.github.io/react-dnd/docs/overview#items-and-types
|
|
72
|
+
*/
|
|
73
|
+
abstract get dndType(): string;
|
|
74
|
+
|
|
75
|
+
abstract openTab(tab: TabState): void;
|
|
76
|
+
abstract closeTab(tab: TabState): void;
|
|
77
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"./src/stores/WebApplicationNavigator.ts",
|
|
49
49
|
"./src/stores/WebApplicationRouter.ts",
|
|
50
50
|
"./src/stores/shared/PackageableElementOption.ts",
|
|
51
|
+
"./src/stores/shared/TabManagerState.ts",
|
|
51
52
|
"./src/stores/shared/TextSearchAdvancedConfigState.ts",
|
|
52
53
|
"./src/application/LegendApplication.tsx",
|
|
53
54
|
"./src/application/LegendApplicationPluginManager.tsx",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
"./src/components/execution-plan-viewer/SQLExecutionNodeViewer.tsx",
|
|
67
68
|
"./src/components/shared/DocumentationLink.tsx",
|
|
68
69
|
"./src/components/shared/PackageableElementOptionLabel.tsx",
|
|
70
|
+
"./src/components/shared/TabManager.tsx",
|
|
69
71
|
"./src/components/shared/TextInputEditor.tsx",
|
|
70
72
|
"./src/components/shared/TextSearchAdvancedConfigMenu.tsx"
|
|
71
73
|
],
|