@dexteel/mesf-core 4.7.1 → 4.7.2
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/CHANGELOG.md +3 -0
- package/dist/index.esm.js +15 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
|
+
## 4.7.2
|
|
3
|
+
- Trending: Fix repeated tags bug. When you select a tag that was already in the view, you get an error message
|
|
4
|
+
- MESF: Add a button in the navbar to go to /trendings
|
|
2
5
|
## 4.7.1
|
|
3
6
|
- Trending: fix error when removing a tag and saving the view & fix load view
|
|
4
7
|
## 4.7.0
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { LicenseManager } from 'ag-grid-enterprise';
|
|
2
|
-
import { Typography, TextField, makeStyles as makeStyles$1, Button as Button$1, Grid as Grid$1, Dialog as Dialog$1, DialogTitle as DialogTitle$2, DialogContent as DialogContent$2, DialogContentText, DialogActions as DialogActions$2, FormHelperText, CircularProgress as CircularProgress$1, Badge, FormControlLabel, Checkbox, Snackbar as Snackbar$1, Paper as Paper$1, MenuItem as MenuItem$1, useTheme as useTheme$1, createStyles as createStyles$1, FormControl as FormControl$1, Select as Select$1, Box, Divider,
|
|
2
|
+
import { Typography, TextField, makeStyles as makeStyles$1, Button as Button$1, Grid as Grid$1, Dialog as Dialog$1, DialogTitle as DialogTitle$2, DialogContent as DialogContent$2, DialogContentText, DialogActions as DialogActions$2, FormHelperText, CircularProgress as CircularProgress$1, Badge, FormControlLabel, Checkbox, Snackbar as Snackbar$1, Paper as Paper$1, MenuItem as MenuItem$1, useTheme as useTheme$1, Tooltip, createStyles as createStyles$1, FormControl as FormControl$1, Select as Select$1, Box, Divider, IconButton as IconButton$1, debounce, List, ListItem, ListItemText } from '@material-ui/core';
|
|
3
3
|
import { values, get, isNil as isNil$1, isEmpty, isNaN } from 'lodash-es';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useRef, useEffect, Component, createContext, useContext, useMemo, useCallback, lazy, Suspense } from 'react';
|
|
@@ -14,6 +14,7 @@ import { useMsal, MsalProvider } from '@azure/msal-react';
|
|
|
14
14
|
import { LogLevel, PublicClientApplication } from '@azure/msal-browser';
|
|
15
15
|
import { useComplexState } from 'use-complex-state';
|
|
16
16
|
import { createSlice } from '@reduxjs/toolkit';
|
|
17
|
+
import ShowChartIcon from '@material-ui/icons/ShowChart';
|
|
17
18
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
18
19
|
import MenuList from '@material-ui/core/MenuList';
|
|
19
20
|
import Paper from '@material-ui/core/Paper';
|
|
@@ -8190,6 +8191,10 @@ function Header$1(_a) {
|
|
|
8190
8191
|
React__default.createElement(Nav, { className: "me-auto" },
|
|
8191
8192
|
React__default.createElement(CustomNavbar, null)),
|
|
8192
8193
|
React__default.createElement(Nav, { className: "ml-auto", style: { alignItems: "baseline" } },
|
|
8194
|
+
React__default.createElement(Nav, { className: "mx-2" },
|
|
8195
|
+
React__default.createElement(Nav.Link, { as: Link, to: "/trendings" },
|
|
8196
|
+
React__default.createElement(Tooltip, { title: 'Trendings', placement: "top", arrow: true, interactive: true, enterDelay: 1500 },
|
|
8197
|
+
React__default.createElement(ShowChartIcon, null)))),
|
|
8193
8198
|
React__default.createElement(Nav, null,
|
|
8194
8199
|
React__default.createElement("span", { className: "navbar-text" }, date.toLocaleTimeString())),
|
|
8195
8200
|
React__default.createElement(Nav, { className: "mx-2" },
|
|
@@ -9942,6 +9947,7 @@ var TagSelectionModal = function (_a) {
|
|
|
9942
9947
|
var _c = useState(''), error = _c[0], setError = _c[1];
|
|
9943
9948
|
var _d = useState([]), treeData = _d[0], setTreeData = _d[1];
|
|
9944
9949
|
var _e = useState([]), expanded = _e[0], setExpanded = _e[1];
|
|
9950
|
+
var viewTags = useTrendingContext().state.viewTags;
|
|
9945
9951
|
var currentColorIndex = useRef(0);
|
|
9946
9952
|
useEffect(function () {
|
|
9947
9953
|
var loadData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -10041,17 +10047,22 @@ var TagSelectionModal = function (_a) {
|
|
|
10041
10047
|
/* I have to get the grandchildren because the toggle action would not be triggered if no children */
|
|
10042
10048
|
var handleNodeToggle = function (event, nodeIds) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10043
10049
|
return __generator(this, function (_a) {
|
|
10044
|
-
// console.log("Toggle:", nodeIds);
|
|
10045
10050
|
setExpanded(nodeIds);
|
|
10046
10051
|
return [2 /*return*/];
|
|
10047
10052
|
});
|
|
10048
10053
|
}); };
|
|
10049
10054
|
var handleNodeSelect = function (event, nodeId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10050
|
-
var node;
|
|
10055
|
+
var node, alreadySelected;
|
|
10051
10056
|
return __generator(this, function (_a) {
|
|
10052
10057
|
node = findNode(treeData, nodeId);
|
|
10053
10058
|
if (node === null || node === void 0 ? void 0 : node.TagId) {
|
|
10054
|
-
|
|
10059
|
+
alreadySelected = viewTags.find(function (vt) { return vt.TagId === node.TagId; });
|
|
10060
|
+
if (!alreadySelected) {
|
|
10061
|
+
onTagSelect(node.tag);
|
|
10062
|
+
}
|
|
10063
|
+
else {
|
|
10064
|
+
setError("".concat(node.TagName, " is already added to the view"));
|
|
10065
|
+
}
|
|
10055
10066
|
}
|
|
10056
10067
|
return [2 /*return*/];
|
|
10057
10068
|
});
|