@daoyi/nmtl-ui 2.0.1-beta.78 → 2.0.1-beta.79
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-cf913b25.js → Autocomplete-b3373e8e.js} +72 -67
- package/lib/components/Autocomplete.js +2 -2
- package/lib/components/BackTop.js +1 -1
- package/lib/components/Carousel.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CollapseContent.js +1 -1
- package/lib/components/{ContactModal-0a4c67b8.js → ContactModal-87190477.js} +2 -2
- package/lib/components/ContactModal.js +3 -3
- package/lib/components/{Drawer-d1dd8ffb.js → Drawer-0721e957.js} +9 -10
- package/lib/components/Drawer.js +3 -3
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/ExportButton.js +2 -2
- package/lib/components/{ExtraTools-66e79794.js → ExtraTools-6d6ed69b.js} +3 -3
- package/lib/components/ExtraTools.js +4 -4
- package/lib/components/Filter.js +1 -1
- package/lib/components/Footer.js +3 -3
- package/lib/components/{ForwardLink-edab5061.js → ForwardLink-725ebcdc.js} +1 -1
- package/lib/components/ForwardLink.js +2 -2
- package/lib/components/Header.js +5 -5
- package/lib/components/Image.js +1 -1
- package/lib/components/InputMethod.js +1 -1
- package/lib/components/{KeywordSearch-0b5681d9.js → KeywordSearch-cbf84504.js} +2 -2
- package/lib/components/KeywordSearch.js +3 -3
- package/lib/components/KeywordTicker.js +2 -2
- package/lib/components/Keywords.js +1 -1
- package/lib/components/Pagination.js +1 -1
- package/lib/components/Radio.js +1 -1
- package/lib/components/SNA.js +4 -4
- package/lib/components/{Select-9a745e5c.js → Select-65193230.js} +1 -1
- package/lib/components/Select.js +2 -2
- package/lib/components/Table.js +1 -1
- package/lib/components/{Tooltip-123cc349.js → Tooltip-04e31fce.js} +1 -1
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/{_rollupPluginBabelHelpers-a52356f6.js → _rollupPluginBabelHelpers-7eb4ffba.js} +1 -1
- package/lib/components/{dataExport-d55d6fa3.js → dataExport-04b77185.js} +31 -30
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof, a as _extends$1, b as _objectSpread2, c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useCallback, useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
@@ -87,21 +87,23 @@ var Box = styled('div')(styleFunction, {
|
|
|
87
87
|
name: 'MuiBox'
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
var useAutocomplete = (_ref
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
90
|
+
var useAutocomplete = (function (_ref) {
|
|
91
|
+
var options = _ref.options,
|
|
92
|
+
placeholder = _ref.placeholder,
|
|
93
|
+
loading = _ref.loading,
|
|
94
|
+
searchIcon = _ref.searchIcon,
|
|
95
|
+
labelInValue = _ref.labelInValue,
|
|
96
|
+
onEnter = _ref.onEnter,
|
|
97
|
+
currentResult = _ref.currentResult,
|
|
98
|
+
setCurrentDefaultValue = _ref.setCurrentDefaultValue,
|
|
99
|
+
arrowIcon = _ref.arrowIcon;
|
|
100
|
+
var getValue = useCallback(function (data) {
|
|
101
|
+
return _typeof(data) === 'object' ? data.value : data;
|
|
102
|
+
}, []);
|
|
103
|
+
var getLabel = useCallback(function (value) {
|
|
104
|
+
var finder = (Array.isArray(options) ? options : []).find(function (item) {
|
|
105
|
+
return getValue(item) === getValue(value);
|
|
106
|
+
}
|
|
105
107
|
// typeof item === 'object' ? item.label === value : item === value
|
|
106
108
|
);
|
|
107
109
|
|
|
@@ -109,32 +111,30 @@ var useAutocomplete = (_ref => {
|
|
|
109
111
|
// console.log('value', value);
|
|
110
112
|
// console.log('finder', finder);
|
|
111
113
|
if (finder) {
|
|
112
|
-
return
|
|
114
|
+
return _typeof(finder) === 'object' ? finder.label : finder;
|
|
113
115
|
}
|
|
114
|
-
return
|
|
116
|
+
return _typeof(value) === 'object' ? value.label : value;
|
|
115
117
|
}, [options]);
|
|
116
118
|
|
|
117
119
|
/* 若MUI的Autocomplete下方的options列表要勾選已選的項目 必須從options取出才可 */
|
|
118
|
-
|
|
120
|
+
var getValueFromOptions = useCallback(function (defaultValue) {
|
|
119
121
|
if (Array.isArray(options)) {
|
|
120
122
|
if (Array.isArray(defaultValue)) {
|
|
121
123
|
return defaultValue.map(
|
|
122
124
|
// item有可能為 object({ label, value }) 或 string(value)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
value
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
125
|
+
function (item) {
|
|
126
|
+
return options.find(function (_ref2) {
|
|
127
|
+
var value = _ref2.value;
|
|
128
|
+
return item === value || item.value === value;
|
|
129
|
+
}) || item;
|
|
130
|
+
}
|
|
129
131
|
// if (typeof item === 'object') return options.find(({ value }) => item.value === value) || item;
|
|
130
132
|
// return item;
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
value
|
|
137
|
-
} = _ref3;
|
|
136
|
+
var result = options.find(function (_ref3) {
|
|
137
|
+
var value = _ref3.value;
|
|
138
138
|
return defaultValue === value;
|
|
139
139
|
});
|
|
140
140
|
return labelInValue ? defaultValue : result || {
|
|
@@ -144,45 +144,50 @@ var useAutocomplete = (_ref => {
|
|
|
144
144
|
}
|
|
145
145
|
return defaultValue;
|
|
146
146
|
}, [options, labelInValue]);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
147
|
+
var defaultTag = useCallback(function (tagValue, getTagProps) {
|
|
148
|
+
return tagValue.map(function (option, index) {
|
|
149
|
+
return /*#__PURE__*/React__default.createElement(Chip, _extends$1({
|
|
150
|
+
label: getLabel(option),
|
|
151
|
+
deleteIcon: /*#__PURE__*/React__default.createElement(Close, null)
|
|
152
|
+
}, getTagProps({
|
|
153
|
+
index: index
|
|
154
|
+
})));
|
|
155
|
+
});
|
|
156
|
+
}, [options]);
|
|
157
|
+
var defaultRenderInput = useCallback(function (params) {
|
|
158
|
+
return /*#__PURE__*/React__default.createElement(TextField, _extends$1({}, params, {
|
|
159
|
+
variant: "outlined",
|
|
160
|
+
placeholder: placeholder,
|
|
161
|
+
InputProps: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
|
|
162
|
+
endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
163
|
+
className: "autocomplete__icon",
|
|
164
|
+
color: "inherit",
|
|
165
|
+
size: 20
|
|
166
|
+
}), searchIcon && /*#__PURE__*/React__default.createElement(SearchOutlined, {
|
|
167
|
+
className: "autocomplete__icon",
|
|
168
|
+
onClick: function onClick(event) {
|
|
169
|
+
var tmpObj = {
|
|
170
|
+
labels: currentResult || '',
|
|
171
|
+
value: currentResult || ''
|
|
172
|
+
};
|
|
173
|
+
setCurrentDefaultValue(tmpObj);
|
|
174
|
+
return onEnter(event, tmpObj);
|
|
175
|
+
}
|
|
176
|
+
}), !searchIcon && !loading && arrowIcon && /*#__PURE__*/React__default.createElement(Box, {
|
|
177
|
+
style: {
|
|
178
|
+
top: 'calc(50% - 14px)',
|
|
179
|
+
right: '12px',
|
|
180
|
+
position: 'absolute'
|
|
181
|
+
}
|
|
182
|
+
}, /*#__PURE__*/React__default.createElement(default_1, null)), params.InputProps.endAdornment)
|
|
183
|
+
})
|
|
184
|
+
}));
|
|
185
|
+
}, [loading, searchIcon, arrowIcon]);
|
|
181
186
|
return {
|
|
182
|
-
getValue,
|
|
183
|
-
getValueFromOptions,
|
|
184
|
-
defaultTag,
|
|
185
|
-
defaultRenderInput
|
|
187
|
+
getValue: getValue,
|
|
188
|
+
getValueFromOptions: getValueFromOptions,
|
|
189
|
+
defaultTag: defaultTag,
|
|
190
|
+
defaultRenderInput: defaultRenderInput
|
|
186
191
|
};
|
|
187
192
|
});
|
|
188
193
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as default } from './Autocomplete-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { A as default } from './Autocomplete-b3373e8e.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './index-848f4409.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectWithoutProperties$1, b as _objectSpread2, a as _extends$3 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { forwardRef, useRef, useImperativeHandle } from 'react';
|
|
3
3
|
import { a as classnames, c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectWithoutProperties, a as _extends } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { FormControlLabel, Checkbox as Checkbox$1 } from '@material-ui/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _extends$1, c as _slicedToArray$2, b as _objectSpread2, e as _defineProperty$1 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { createContext, forwardRef, createElement, useContext, useRef, useEffect, useReducer, useCallback, useMemo, useLayoutEffect, Component, useState, useImperativeHandle, Fragment } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { h as hoistNonReactStatics_cjs } from './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
@@ -7,7 +7,7 @@ import { M as Modal } from './Modal-c33b7a7f.js';
|
|
|
7
7
|
import { c as commonjsGlobal, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
8
8
|
import { c as classNames } from './index-848f4409.js';
|
|
9
9
|
import { Input, Button, Box, Typography, FormControl, RadioGroup, FormControlLabel, Radio, TextField, TextareaAutosize } from '@material-ui/core';
|
|
10
|
-
import { S as Select } from './Select-
|
|
10
|
+
import { S as Select } from './Select-65193230.js';
|
|
11
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
12
12
|
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
13
13
|
import { getIntl } from './globalConfig';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as default } from './ContactModal-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { C as default } from './ContactModal-87190477.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
@@ -13,7 +13,7 @@ import './Button-611f1770.js';
|
|
|
13
13
|
import './style-inject.es-1f59c1d0.js';
|
|
14
14
|
import './Spin-96bc2c76.js';
|
|
15
15
|
import './_commonjsHelpers-70de2c37.js';
|
|
16
|
-
import './Select-
|
|
16
|
+
import './Select-65193230.js';
|
|
17
17
|
import './Empty-67b4d7d7.js';
|
|
18
18
|
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { List, ListItem, ListItemIcon, ListItemText, IconButton, Drawer as Drawer$1, Divider } from '@material-ui/core';
|
|
5
5
|
import { DehazeRounded } from '@material-ui/icons';
|
|
6
|
-
import { S as Select } from './Select-
|
|
6
|
+
import { S as Select } from './Select-65193230.js';
|
|
7
7
|
import { useHistory, useRouteMatch } from 'react-router-dom';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
|
|
@@ -132,16 +132,15 @@ Drawer.defaultProps = {
|
|
|
132
132
|
title: undefined,
|
|
133
133
|
logo: undefined,
|
|
134
134
|
locale: undefined,
|
|
135
|
-
supportLanguages: [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, {
|
|
135
|
+
supportLanguages: [
|
|
136
|
+
// { value: 'en', label: 'English' },
|
|
137
|
+
{
|
|
139
138
|
value: 'zh-tw',
|
|
140
139
|
label: '繁體中文'
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
}
|
|
141
|
+
// { value: 'zh-cn', label: '簡體中文' },
|
|
142
|
+
],
|
|
143
|
+
|
|
145
144
|
drawerList: undefined,
|
|
146
145
|
onLanguageChange: function onLanguageChange() {}
|
|
147
146
|
};
|
package/lib/components/Drawer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as default } from './Drawer-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { D as default } from './Drawer-0721e957.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import '@material-ui/icons';
|
|
7
|
-
import './Select-
|
|
7
|
+
import './Select-65193230.js';
|
|
8
8
|
import './index-848f4409.js';
|
|
9
9
|
import './Empty-67b4d7d7.js';
|
|
10
10
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useRef, useState } from 'react';
|
|
3
3
|
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import { ExitToApp } from '@material-ui/icons';
|
|
6
6
|
import { Dialog, DialogContent, DialogContentText, DialogActions, Button } from '@material-ui/core';
|
|
7
|
-
import { f as fileDownload, j as jsonTxt, a as jsonExcel } from './dataExport-
|
|
7
|
+
import { f as fileDownload, j as jsonTxt, a as jsonExcel } from './dataExport-04b77185.js';
|
|
8
8
|
import { getIntl } from './globalConfig';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { Component, forwardRef, useState } from 'react';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
7
7
|
import { Menu, MenuItem, useMediaQuery, IconButton } from '@material-ui/core';
|
|
8
|
-
import { T as Tooltip } from './Tooltip-
|
|
9
|
-
import { s as snaToExcel, f as fileDownload$1, a as jsonExcel } from './dataExport-
|
|
8
|
+
import { T as Tooltip } from './Tooltip-04e31fce.js';
|
|
9
|
+
import { s as snaToExcel, f as fileDownload$1, a as jsonExcel } from './dataExport-04b77185.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
11
|
|
|
12
12
|
var __assign$3 = (undefined && undefined.__assign) || function () {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { E as default } from './ExtraTools-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { E as default } from './ExtraTools-6d6ed69b.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './index-848f4409.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import './_commonjsHelpers-70de2c37.js';
|
|
7
7
|
import '@material-ui/core';
|
|
8
|
-
import './Tooltip-
|
|
8
|
+
import './Tooltip-04e31fce.js';
|
|
9
9
|
import './style-inject.es-1f59c1d0.js';
|
|
10
|
-
import './dataExport-
|
|
10
|
+
import './dataExport-04b77185.js';
|
package/lib/components/Filter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useContext, createElement, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
package/lib/components/Footer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray, _ as _typeof } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { C as ContactModal } from './ContactModal-
|
|
6
|
+
import { C as ContactModal } from './ContactModal-87190477.js';
|
|
7
7
|
import { S as Spin } from './Spin-96bc2c76.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
import './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
@@ -13,7 +13,7 @@ import '@material-ui/core';
|
|
|
13
13
|
import '@material-ui/icons';
|
|
14
14
|
import './Button-611f1770.js';
|
|
15
15
|
import './_commonjsHelpers-70de2c37.js';
|
|
16
|
-
import './Select-
|
|
16
|
+
import './Select-65193230.js';
|
|
17
17
|
import './Empty-67b4d7d7.js';
|
|
18
18
|
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectWithoutProperties } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useMemo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { q as queryString } from './index-983dcd15.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { F as default } from './ForwardLink-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { F as default } from './ForwardLink-725ebcdc.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './index-983dcd15.js';
|
package/lib/components/Header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
@@ -6,14 +6,14 @@ import { d as debounce_1 } from './debounce-127da66c.js';
|
|
|
6
6
|
import { useHistory, useRouteMatch, NavLink } from 'react-router-dom';
|
|
7
7
|
import { Typography, IconButton } from '@material-ui/core';
|
|
8
8
|
import { SearchOutlined } from '@material-ui/icons';
|
|
9
|
-
import { K as KeywordSearch } from './KeywordSearch-
|
|
10
|
-
import { S as Select } from './Select-
|
|
11
|
-
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-
|
|
9
|
+
import { K as KeywordSearch } from './KeywordSearch-cbf84504.js';
|
|
10
|
+
import { S as Select } from './Select-65193230.js';
|
|
11
|
+
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-0721e957.js';
|
|
12
12
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
13
13
|
import './isObjectLike-e111475d.js';
|
|
14
14
|
import './_commonjsHelpers-70de2c37.js';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import './Autocomplete-
|
|
16
|
+
import './Autocomplete-b3373e8e.js';
|
|
17
17
|
import '@material-ui/lab';
|
|
18
18
|
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
package/lib/components/Image.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import { A as Autocomplete } from './Autocomplete-
|
|
7
|
+
import { A as Autocomplete } from './Autocomplete-b3373e8e.js';
|
|
8
8
|
|
|
9
9
|
var css_248z = ".keywordSearch {\n border-radius: 4px;\n width: 100%;\n margin-right: 14px; }\n .keywordSearch--animation .autocomplete {\n transition: max-width 0.3s ease-out;\n max-width: 240px; }\n .keywordSearch--focus {\n flex: 1; }\n .keywordSearch--focus .autocomplete {\n max-width: 100%; }\n .keywordSearch .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n border-radius: 10px;\n background-color: #ffffff66; }\n";
|
|
10
10
|
styleInject(css_248z);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { K as default } from './KeywordSearch-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { K as default } from './KeywordSearch-cbf84504.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './index-848f4409.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
8
|
-
import './Autocomplete-
|
|
8
|
+
import './Autocomplete-b3373e8e.js';
|
|
9
9
|
import './debounce-127da66c.js';
|
|
10
10
|
import './isObjectLike-e111475d.js';
|
|
11
11
|
import './_commonjsHelpers-70de2c37.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
5
|
-
import { F as ForwardLink } from './ForwardLink-
|
|
5
|
+
import { F as ForwardLink } from './ForwardLink-725ebcdc.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import './index-983dcd15.js';
|
|
8
8
|
import 'react-router-dom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectWithoutProperties$1 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import * as React$2 from 'react';
|
|
3
3
|
import React__default, { Children, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
package/lib/components/Radio.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { RadioGroup, FormControlLabel, Radio as Radio$1 } from '@material-ui/core';
|
package/lib/components/SNA.js
CHANGED
|
@@ -2,13 +2,13 @@ import React__default, { useMemo, useEffect } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { e as event, d as d3Select, a as dispatch, c as customEvent, D as DragEvent, q as quadtree, m as map, t as timer, T as Transform, i as identity, b as interrupt, o as ordinal, f as category10 } from './transform-3a04288b.js';
|
|
5
|
-
import { E as ExtraTools } from './ExtraTools-
|
|
5
|
+
import { E as ExtraTools } from './ExtraTools-6d6ed69b.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import './_rollupPluginBabelHelpers-
|
|
7
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
8
8
|
import './_commonjsHelpers-70de2c37.js';
|
|
9
9
|
import '@material-ui/core';
|
|
10
|
-
import './Tooltip-
|
|
11
|
-
import './dataExport-
|
|
10
|
+
import './Tooltip-04e31fce.js';
|
|
11
|
+
import './dataExport-04b77185.js';
|
|
12
12
|
|
|
13
13
|
function sourceEvent() {
|
|
14
14
|
var current = event, source;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as _objectSpread2,
|
|
1
|
+
import { b as _objectSpread2, _ as _typeof } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-848f4409.js';
|
package/lib/components/Select.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { S as default } from './Select-65193230.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './index-848f4409.js';
|
package/lib/components/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectWithoutProperties } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { TableContainer, Paper, Table as Table$1, TableHead, TableRow, TableCell, TableBody } from '@material-ui/core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from '@material-ui/core';
|
|
4
|
-
import {
|
|
4
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
5
5
|
import { c as classNames } from './index-848f4409.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { T as default, p as placements } from './Tooltip-
|
|
1
|
+
export { T as default, p as placements } from './Tooltip-04e31fce.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import '@material-ui/core';
|
|
5
|
-
import './_rollupPluginBabelHelpers-
|
|
5
|
+
import './_rollupPluginBabelHelpers-7eb4ffba.js';
|
|
6
6
|
import './index-848f4409.js';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -139,4 +139,4 @@ function _nonIterableRest() {
|
|
|
139
139
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export {
|
|
142
|
+
export { _typeof as _, _extends as a, _objectSpread2 as b, _slicedToArray as c, _objectWithoutProperties as d, _defineProperty as e, _taggedTemplateLiteral as f };
|
|
@@ -34,56 +34,57 @@ var fileDownload = function(data, filename, mime, bom) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
var jsonExcel = function jsonExcel(json) {
|
|
38
|
+
var output = '';
|
|
39
39
|
if (Array.isArray(json) && json.length > 0) {
|
|
40
|
-
|
|
41
|
-
output +=
|
|
42
|
-
json.forEach(item
|
|
43
|
-
keys.forEach(key
|
|
44
|
-
output +=
|
|
40
|
+
var keys = Object.keys(json[0]);
|
|
41
|
+
output += "".concat(keys.toString(), "\n");
|
|
42
|
+
json.forEach(function (item) {
|
|
43
|
+
keys.forEach(function (key) {
|
|
44
|
+
output += "".concat(item[key], ",");
|
|
45
45
|
});
|
|
46
46
|
output += '\n';
|
|
47
47
|
});
|
|
48
48
|
} else {
|
|
49
|
-
|
|
50
|
-
output +=
|
|
51
|
-
|
|
52
|
-
output +=
|
|
49
|
+
var _keys = Object.keys(json);
|
|
50
|
+
output += "".concat(_keys.toString(), "\n");
|
|
51
|
+
_keys.forEach(function (key) {
|
|
52
|
+
output += "".concat(json[key], ",");
|
|
53
53
|
});
|
|
54
54
|
output += '\n';
|
|
55
55
|
}
|
|
56
56
|
return output;
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
var jsonTxt = function jsonTxt(json) {
|
|
59
|
+
var output = '';
|
|
60
60
|
if (Array.isArray(json) && json.length > 0) {
|
|
61
|
-
|
|
62
|
-
json.forEach((item, index)
|
|
63
|
-
output +=
|
|
64
|
-
keys.forEach(key
|
|
65
|
-
output +=
|
|
61
|
+
var keys = Object.keys(json[0]);
|
|
62
|
+
json.forEach(function (item, index) {
|
|
63
|
+
output += "(".concat(index + 1, ")\n");
|
|
64
|
+
keys.forEach(function (key) {
|
|
65
|
+
output += "".concat(key, ": ").concat(item[key], "\n");
|
|
66
66
|
});
|
|
67
67
|
output += '\n';
|
|
68
68
|
});
|
|
69
69
|
} else {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
output +=
|
|
70
|
+
var _keys2 = Object.keys(json);
|
|
71
|
+
_keys2.forEach(function (key) {
|
|
72
|
+
output += "".concat(key, ": ").concat(json[key], "\n");
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
return output;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
links,
|
|
80
|
-
nodes
|
|
81
|
-
} = data || {};
|
|
77
|
+
var snaToExcel = function snaToExcel(data) {
|
|
78
|
+
var _ref = data || {},
|
|
79
|
+
links = _ref.links,
|
|
80
|
+
nodes = _ref.nodes;
|
|
82
81
|
if (links && links.length > 0) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
var result = links.map(function (link) {
|
|
83
|
+
return {
|
|
84
|
+
From: nodes[link.source].name,
|
|
85
|
+
To: nodes[link.target].name
|
|
86
|
+
};
|
|
87
|
+
});
|
|
87
88
|
return result;
|
|
88
89
|
}
|
|
89
90
|
return [];
|
package/package.json
CHANGED