@finos/legend-lego 1.2.42 → 1.2.44

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { ChevronDownIcon, clsx, ContextMenu, DragPreviewLayer, DropdownMenu, MenuContent, MenuContentItem, PanelEntryDropZonePlaceholder, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
17
+ import { ChevronDownIcon, clsx, ContextMenu, DragPreviewLayer, ControlledDropdownMenu, MenuContent, MenuContentItem, PanelEntryDropZonePlaceholder, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { useRef, useCallback } from 'react';
20
20
  import { useDrop, useDrag } from 'react-dnd';
@@ -100,7 +100,7 @@ const Tab = observer((props) => {
100
100
  });
101
101
  const TabMenu = observer((props) => {
102
102
  const { managerTabState } = props;
103
- return (_jsx(DropdownMenu, { className: "tab-manager__menu__toggler", title: "Show All Tabs", content: _jsx(MenuContent, { className: "tab-manager__menu", children: managerTabState.tabs.map((tabState) => (_jsxs(MenuContentItem, { className: clsx('tab-manager__menu__item', {
103
+ return (_jsx(ControlledDropdownMenu, { className: "tab-manager__menu__toggler", title: "Show All Tabs", content: _jsx(MenuContent, { className: "tab-manager__menu", children: managerTabState.tabs.map((tabState) => (_jsxs(MenuContentItem, { className: clsx('tab-manager__menu__item', {
104
104
  'tab-manager__menu__item--active': tabState === managerTabState.currentTab,
105
105
  }), onClick: () => managerTabState.openTab(tabState), children: [_jsx("div", { className: "tab-manager__menu__item__label", children: tabState.label }), _jsx("div", { className: "tab-manager__menu__item__close-btn", onClick: (event) => {
106
106
  // NOTE: prevent default action of dropdown menu
@@ -1 +1 @@
1
- {"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,E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AAC,GAAG,EAAE,EAAE,CAAC,CACjC,KAAC,GAAG,IAEF,QAAQ,EAAE,GAAG,EACb,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,IAHnB,GAAG,CAAC,IAAI,CAIb,CACH,CAAC,EACF,KAAC,gBAAgB,IACf,WAAW,EAAE,CAAC,IAAmB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAC5D,KAAK,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,GAChC,IACE,EACN,KAAC,OAAO,IAAC,eAAe,EAAE,eAAe,GAAI,IACzC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v1.2.42
1
+ /** @license @finos/legend-lego v1.2.44
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "1.2.42",
3
+ "version": "1.2.44",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -63,14 +63,14 @@
63
63
  "@ag-grid-enterprise/server-side-row-model": "31.3.2",
64
64
  "@ag-grid-enterprise/side-bar": "31.3.2",
65
65
  "@ag-grid-enterprise/status-bar": "31.3.2",
66
- "@finos/legend-application": "15.1.11",
67
- "@finos/legend-art": "7.1.39",
68
- "@finos/legend-graph": "31.10.6",
69
- "@finos/legend-shared": "10.0.41",
66
+ "@finos/legend-application": "15.1.13",
67
+ "@finos/legend-art": "7.1.41",
68
+ "@finos/legend-graph": "31.10.8",
69
+ "@finos/legend-shared": "10.0.43",
70
70
  "@types/css-font-loading-module": "0.0.13",
71
71
  "@types/react": "18.3.3",
72
72
  "@types/react-dom": "18.3.0",
73
- "mobx": "6.12.4",
73
+ "mobx": "6.12.5",
74
74
  "mobx-react-lite": "4.0.7",
75
75
  "monaco-editor": "0.50.0",
76
76
  "react": "18.3.1",
@@ -78,7 +78,7 @@
78
78
  "react-dom": "18.3.1"
79
79
  },
80
80
  "devDependencies": {
81
- "@finos/legend-dev-utils": "2.1.9",
81
+ "@finos/legend-dev-utils": "2.1.11",
82
82
  "@jest/globals": "29.7.0",
83
83
  "cross-env": "7.0.3",
84
84
  "eslint": "8.57.0",
@@ -19,7 +19,7 @@ import {
19
19
  clsx,
20
20
  ContextMenu,
21
21
  DragPreviewLayer,
22
- DropdownMenu,
22
+ ControlledDropdownMenu,
23
23
  MenuContent,
24
24
  MenuContentItem,
25
25
  PanelEntryDropZonePlaceholder,
@@ -212,7 +212,7 @@ const Tab = observer(
212
212
  const TabMenu = observer((props: { managerTabState: TabManagerState }) => {
213
213
  const { managerTabState } = props;
214
214
  return (
215
- <DropdownMenu
215
+ <ControlledDropdownMenu
216
216
  className="tab-manager__menu__toggler"
217
217
  title="Show All Tabs"
218
218
  content={
@@ -251,7 +251,7 @@ const TabMenu = observer((props: { managerTabState: TabManagerState }) => {
251
251
  }}
252
252
  >
253
253
  <ChevronDownIcon />
254
- </DropdownMenu>
254
+ </ControlledDropdownMenu>
255
255
  );
256
256
  });
257
257