@dexteel/mesf-core 4.26.3 → 4.26.5
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +27 -0
- package/dist/controls/filters/filters.d.ts +4 -5
- package/dist/index.esm.js +25 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [4.26.5](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.4...@dexteel/mesf-core-v4.26.5) (2025-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **SelectorControl:** Improve styles for selector control using only mui v4 ([59f0091](https://github.com/dexteel/mesf-core-frontend/commit/59f0091af05faba0f58a594ee361f673fd26aa0d))
|
|
9
|
+
* **SelectorsssControl:** Improve styles for selector control using only mui v4 ([cd09ecc](https://github.com/dexteel/mesf-core-frontend/commit/cd09ecc117c678d839f508eefbba90b6e1cb7120))
|
|
10
|
+
|
|
11
|
+
## [4.26.4] - 2025-03-19
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# Changelog
|
|
16
|
+
|
|
17
|
+
## [4.26.4](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.3...@dexteel/mesf-core-v4.26.4) (2025-03-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **API Service:** truncate content of query param if needed ([caba7b4](https://github.com/dexteel/mesf-core-frontend/commit/caba7b40c605805693760219ac2c6e683785dda4))
|
|
23
|
+
|
|
24
|
+
## [4.26.3] - 2025-03-17
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
1
28
|
# Changelog
|
|
2
29
|
|
|
3
30
|
## [4.26.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.2...@dexteel/mesf-core-v4.26.3) (2025-03-17)
|
|
@@ -25,15 +25,14 @@ export declare class SimpleTextAreaControl extends Component<any> {
|
|
|
25
25
|
}
|
|
26
26
|
interface SimpleSelectorControlProps {
|
|
27
27
|
title?: string;
|
|
28
|
-
dataSource?: any;
|
|
28
|
+
dataSource?: any[];
|
|
29
29
|
selectedValue?: any;
|
|
30
|
-
onChange?: any;
|
|
30
|
+
onChange?: (value: any) => void;
|
|
31
31
|
showColor?: boolean;
|
|
32
|
-
|
|
33
|
-
styleList?: any;
|
|
32
|
+
styleList?: React.CSSProperties;
|
|
34
33
|
hasChoose?: boolean;
|
|
35
34
|
}
|
|
36
|
-
export declare function SimpleSelectorControl({ title, dataSource, selectedValue, onChange, showColor,
|
|
35
|
+
export declare function SimpleSelectorControl({ title, dataSource, selectedValue, onChange, showColor, styleList, hasChoose, }: SimpleSelectorControlProps): React.JSX.Element;
|
|
37
36
|
export declare const MultipleSelectorControl: (props: any) => React.JSX.Element;
|
|
38
37
|
export declare const CheckBoxControl: (props: any) => React.JSX.Element;
|
|
39
38
|
export declare const UploadFileControl: (props: any) => React.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { LicenseManager } from 'ag-grid-enterprise';
|
|
2
|
-
import { withStyles, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, DialogActions as DialogActions$1, createStyles, Grid, Button, alpha, makeStyles, Dialog as Dialog$1, SvgIcon, Collapse, Typography as Typography$1, Checkbox, TextField, InputAdornment, IconButton as IconButton$1, MenuItem,
|
|
2
|
+
import { withStyles, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, DialogActions as DialogActions$1, createStyles, Grid, Button, alpha, makeStyles, Dialog as Dialog$1, SvgIcon, Collapse, Typography as Typography$1, Checkbox, TextField, InputAdornment, IconButton as IconButton$1, MenuItem, Card, CardContent, CardActions, Snackbar, CircularProgress, Paper, InputLabel, Select, FormHelperText, DialogContentText, FormControlLabel, Badge, useTheme, FormControl, Input, Chip, Tooltip, ListItemIcon, Box, List, ListItem, ListItemText, MenuList, Divider, debounce } from '@material-ui/core';
|
|
3
3
|
import { get as get$1, isNil as isNil$1, isEmpty, values, round, isNaN, isNumber } from 'lodash-es';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useRef, useEffect, useMemo, Component, createContext, useContext, useCallback, lazy, Suspense } from 'react';
|
|
@@ -858,19 +858,20 @@ var SimpleTextAreaControl = /** @class */ (function (_super) {
|
|
|
858
858
|
return SimpleTextAreaControl;
|
|
859
859
|
}(Component));
|
|
860
860
|
function SimpleSelectorControl(_a) {
|
|
861
|
-
var title = _a.title,
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
React__default.createElement(
|
|
867
|
-
React__default.createElement("
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
861
|
+
var title = _a.title, _b = _a.dataSource, dataSource = _b === void 0 ? [] : _b, selectedValue = _a.selectedValue, onChange = _a.onChange, showColor = _a.showColor, styleList = _a.styleList, hasChoose = _a.hasChoose;
|
|
862
|
+
return (React__default.createElement(TextField, { select: true, label: title, variant: "outlined", value: selectedValue || "DEFAULT", onChange: function (e) {
|
|
863
|
+
return onChange && onChange(e.target.value === "DEFAULT" ? "" : e.target.value);
|
|
864
|
+
}, style: styleList, size: "small" },
|
|
865
|
+
hasChoose && React__default.createElement(MenuItem, { value: "DEFAULT" }, "Choose ".concat(title)),
|
|
866
|
+
dataSource.map(function (item, index) { return (React__default.createElement(MenuItem, { value: item.id.toString(), key: index },
|
|
867
|
+
showColor && (React__default.createElement("span", { style: {
|
|
868
|
+
display: "inline-block",
|
|
869
|
+
width: 12,
|
|
870
|
+
height: 12,
|
|
871
|
+
marginRight: 8,
|
|
872
|
+
backgroundColor: item.color || "#FFFFFF"
|
|
873
|
+
} })),
|
|
874
|
+
item.description)); })));
|
|
874
875
|
}
|
|
875
876
|
var MultipleSelectorControl = function (props) {
|
|
876
877
|
var options = (props.dataSource || []).map(function (item, index) { return (React__default.createElement("option", { value: item[props.valueField], key: index, className: "p-1" }, item[props.textField])); });
|
|
@@ -7584,10 +7585,16 @@ var MESApiService = /** @class */ (function () {
|
|
|
7584
7585
|
_a.trys.push([1, 3, , 4]);
|
|
7585
7586
|
return [4 /*yield*/, axiosInstance.post("/action/".concat(curatedMethod), data, {
|
|
7586
7587
|
params: data.parameters.map(function (param) {
|
|
7587
|
-
var _a;
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
_a
|
|
7588
|
+
var _a, _b;
|
|
7589
|
+
var mapKey = param.name.replace("@", "");
|
|
7590
|
+
if (typeof param.value == "string" && param.value.length > 100) {
|
|
7591
|
+
return _a = {},
|
|
7592
|
+
_a[mapKey] = "__truncated__",
|
|
7593
|
+
_a;
|
|
7594
|
+
}
|
|
7595
|
+
return _b = {},
|
|
7596
|
+
_b[mapKey] = param.value,
|
|
7597
|
+
_b;
|
|
7591
7598
|
})
|
|
7592
7599
|
})];
|
|
7593
7600
|
case 2:
|