@daoyi/nmtl-ui 2.0.1-beta.46 → 2.0.1-beta.47
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/components/{Autocomplete-aa4a8d6c.js → Autocomplete-5439ff22.js} +2 -4
- package/lib/components/Autocomplete.js +6 -7
- package/lib/components/Avatar.js +4 -2
- package/lib/components/BackTop.js +1 -28
- package/lib/components/BarChart.js +4 -634
- package/lib/components/Breadcrumbs.js +4 -2
- package/lib/components/{Button-2f8f0493.js → Button-63c7e9f3.js} +1 -2
- package/lib/components/Button.js +5 -3
- package/lib/components/Carousel.js +7 -4659
- package/lib/components/CollapseContent.js +5 -3
- package/lib/components/ContactModal-a59bc808.js +924 -0
- package/lib/components/ContactModal.js +10 -15
- package/lib/components/{Drawer-dd8942f1.js → Drawer-af3ed21a.js} +2 -2
- package/lib/components/Drawer.js +7 -5
- package/lib/components/Dropdown.js +3 -2
- package/lib/components/{Empty-3637b766.js → Empty-70f040a9.js} +1 -2
- package/lib/components/Empty.js +5 -3
- package/lib/components/ExportButton.js +6 -4
- package/lib/components/ExtraTools-f10a66a8.js +818 -0
- package/lib/components/ExtraTools.js +7 -6
- package/lib/components/Filter.js +5 -691
- package/lib/components/Footer.js +10 -15
- package/lib/components/ForwardLink.js +4 -3
- package/lib/components/Header.js +9 -10
- package/lib/components/Image.js +4 -7
- package/lib/components/Input.js +4 -2
- package/lib/components/InputMethod.js +4 -10861
- package/lib/components/{KeywordSearch-2d01266e.js → KeywordSearch-224f84c1.js} +2 -3
- package/lib/components/KeywordSearch.js +7 -8
- package/lib/components/KeywordTicker.js +4 -2
- package/lib/components/Keywords.js +5 -30
- package/lib/components/Loading.js +4 -2
- package/lib/components/MUITheme.js +3 -2375
- package/lib/components/{Modal-572e17ea.js → Modal-a7591b98.js} +3 -4
- package/lib/components/Modal.js +7 -5
- package/lib/components/{MoreButton-80996b5f.js → MoreButton-f15ca38e.js} +1 -2
- package/lib/components/MoreButton.js +5 -3
- package/lib/components/Radio.js +4 -1
- package/lib/components/SNA.js +5 -1416
- package/lib/components/{Select-5533b506.js → Select-98a8e973.js} +2 -3
- package/lib/components/Select.js +6 -4
- package/lib/components/{Spin-ebf79c17.js → Spin-690a3597.js} +1 -2
- package/lib/components/Spin.js +5 -3
- package/lib/components/{Tooltip-907eaa2e.js → Tooltip-b7eb966d.js} +1 -2
- package/lib/components/Tooltip.js +5 -3
- package/lib/components/dataExport-f418e6fe.js +56 -0
- package/lib/components/vendor-851c6356.js +41940 -0
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- package/lib/utils/domToImage.js +1 -771
- package/lib/utils/exportXlsx.js +1 -36
- package/lib/utils/historyAppendSearch.js +1 -480
- package/lib/utils/vendor-3ec75cc9.js +1289 -0
- package/package.json +1 -1
- package/lib/components/ContactModal-c8240b19.js +0 -10759
- package/lib/components/ExtraTools-55dad795.js +0 -3479
- package/lib/components/_commonjsHelpers-70de2c37.js +0 -28
- package/lib/components/createSvgIcon-48da8b6e.js +0 -576
- package/lib/components/dataExport-d55d6fa3.js +0 -92
- package/lib/components/debounce-127da66c.js +0 -355
- package/lib/components/defaultTheme-19a14721.js +0 -1485
- package/lib/components/globalConfig-40069b54.js +0 -158
- package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +0 -105
- package/lib/components/index-7b60a97d.js +0 -481
- package/lib/components/index-f491ebce.js +0 -61
- package/lib/components/isObjectLike-e111475d.js +0 -190
- package/lib/components/style-inject.es-1f59c1d0.js +0 -28
- package/lib/components/transform-3a04288b.js +0 -5475
- /package/lib/{globalConfig.js → components/globalConfig.js} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-fde6d1c6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './
|
|
4
|
+
import { s as styleInject, c as classNames } from './vendor-851c6356.js';
|
|
5
5
|
import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
|
|
6
|
-
import { E as Empty } from './Empty-
|
|
7
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
+
import { E as Empty } from './Empty-70f040a9.js';
|
|
8
7
|
|
|
9
8
|
var css_248z = ".select__placeholder {\n color: #999; }\n\n.select--small {\n width: 100%; }\n .select--small .MuiSelect-root {\n padding: 0.5rem 1.5rem 0.25rem;\n color: white; }\n .select--small .MuiSelect-root .select__placeholder {\n color: white; }\n .select--small .MuiSelect-root:hover, .select--small .MuiSelect-root:focus {\n background: transparent; }\n .select--small .MuiSvgIcon-root {\n color: white; }\n .select--small .MuiOutlinedInput-root {\n border-radius: 45px; }\n";
|
|
10
9
|
styleInject(css_248z);
|
package/lib/components/Select.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
1
|
+
export { S as default } from './Select-98a8e973.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-fde6d1c6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './
|
|
5
|
+
import './vendor-851c6356.js';
|
|
6
|
+
import 'react-is';
|
|
7
|
+
import '@material-ui/styles';
|
|
8
|
+
import 'react-dom';
|
|
6
9
|
import '@material-ui/core';
|
|
7
|
-
import './Empty-
|
|
8
|
-
import './style-inject.es-1f59c1d0.js';
|
|
10
|
+
import './Empty-70f040a9.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React__default, { useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './
|
|
3
|
+
import { s as styleInject, c as classNames } from './vendor-851c6356.js';
|
|
4
4
|
import { Fade, CircularProgress } from '@material-ui/core';
|
|
5
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
5
|
|
|
7
6
|
var css_248z = ".customSpin {\n width: 100%;\n min-height: 100px;\n position: relative; }\n .customSpin__spin {\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 2;\n display: flex;\n justify-content: center;\n align-items: center; }\n";
|
|
8
7
|
styleInject(css_248z);
|
package/lib/components/Spin.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { S as default } from './Spin-
|
|
1
|
+
export { S as default } from './Spin-690a3597.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './
|
|
4
|
+
import './vendor-851c6356.js';
|
|
5
|
+
import 'react-is';
|
|
6
|
+
import '@material-ui/styles';
|
|
7
|
+
import 'react-dom';
|
|
5
8
|
import '@material-ui/core';
|
|
6
|
-
import './style-inject.es-1f59c1d0.js';
|
|
@@ -2,8 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from '@material-ui/core';
|
|
4
4
|
import { _ as _extends } from './_rollupPluginBabelHelpers-fde6d1c6.js';
|
|
5
|
-
import { c as classNames } from './
|
|
6
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
|
+
import { c as classNames, s as styleInject } from './vendor-851c6356.js';
|
|
7
6
|
|
|
8
7
|
const TooltipContent = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9
8
|
className: classNames('tooltip', props.className),
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { T as default, p as placements } from './Tooltip-
|
|
1
|
+
export { T as default, p as placements } from './Tooltip-b7eb966d.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import '@material-ui/core';
|
|
5
5
|
import './_rollupPluginBabelHelpers-fde6d1c6.js';
|
|
6
|
-
import './
|
|
7
|
-
import '
|
|
6
|
+
import './vendor-851c6356.js';
|
|
7
|
+
import 'react-is';
|
|
8
|
+
import '@material-ui/styles';
|
|
9
|
+
import 'react-dom';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const jsonExcel = json => {
|
|
2
|
+
let output = '';
|
|
3
|
+
if (Array.isArray(json) && json.length > 0) {
|
|
4
|
+
const keys = Object.keys(json[0]);
|
|
5
|
+
output += `${keys.toString()}\n`;
|
|
6
|
+
json.forEach(item => {
|
|
7
|
+
keys.forEach(key => {
|
|
8
|
+
output += `${item[key]},`;
|
|
9
|
+
});
|
|
10
|
+
output += '\n';
|
|
11
|
+
});
|
|
12
|
+
} else {
|
|
13
|
+
const keys = Object.keys(json);
|
|
14
|
+
output += `${keys.toString()}\n`;
|
|
15
|
+
keys.forEach(key => {
|
|
16
|
+
output += `${json[key]},`;
|
|
17
|
+
});
|
|
18
|
+
output += '\n';
|
|
19
|
+
}
|
|
20
|
+
return output;
|
|
21
|
+
};
|
|
22
|
+
const jsonTxt = json => {
|
|
23
|
+
let output = '';
|
|
24
|
+
if (Array.isArray(json) && json.length > 0) {
|
|
25
|
+
const keys = Object.keys(json[0]);
|
|
26
|
+
json.forEach((item, index) => {
|
|
27
|
+
output += `(${index + 1})\n`;
|
|
28
|
+
keys.forEach(key => {
|
|
29
|
+
output += `${key}: ${item[key]}\n`;
|
|
30
|
+
});
|
|
31
|
+
output += '\n';
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
const keys = Object.keys(json);
|
|
35
|
+
keys.forEach(key => {
|
|
36
|
+
output += `${key}: ${json[key]}\n`;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return output;
|
|
40
|
+
};
|
|
41
|
+
const snaToExcel = data => {
|
|
42
|
+
const {
|
|
43
|
+
links,
|
|
44
|
+
nodes
|
|
45
|
+
} = data || {};
|
|
46
|
+
if (links && links.length > 0) {
|
|
47
|
+
const result = links.map(link => ({
|
|
48
|
+
From: nodes[link.source].name,
|
|
49
|
+
To: nodes[link.target].name
|
|
50
|
+
}));
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
return [];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { jsonExcel as a, jsonTxt as j, snaToExcel as s };
|