@daoyi/nmtl-ui 2.0.1-beta.77 → 2.0.1-beta.78
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-6f14f9ae.js → Autocomplete-cf913b25.js} +70 -75
- package/lib/components/Autocomplete.js +5 -5
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +3 -3
- package/lib/components/BarChart.js +1 -1
- package/lib/components/Breadcrumbs.js +1 -1
- package/lib/components/{Button-3d002693.js → Button-611f1770.js} +1 -1
- package/lib/components/Button.js +2 -2
- package/lib/components/Carousel.js +2 -2
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CollapseContent.js +3 -3
- package/lib/components/{ContactModal-6877182a.js → ContactModal-0a4c67b8.js} +5 -5
- package/lib/components/ContactModal.js +9 -9
- package/lib/components/{Drawer-47f9967c.js → Drawer-d1dd8ffb.js} +2 -2
- package/lib/components/Drawer.js +5 -5
- package/lib/components/Dropdown.js +2 -2
- package/lib/components/{Empty-b674a51e.js → Empty-67b4d7d7.js} +1 -1
- package/lib/components/Empty.js +2 -2
- package/lib/components/ExportButton.js +3 -3
- package/lib/components/{ExtraTools-97665703.js → ExtraTools-66e79794.js} +4 -4
- package/lib/components/ExtraTools.js +5 -5
- package/lib/components/Filter.js +3 -3
- package/lib/components/Footer.js +9 -9
- package/lib/components/{ForwardLink-17f61eb0.js → ForwardLink-edab5061.js} +2 -2
- package/lib/components/ForwardLink.js +3 -3
- package/lib/components/Header.js +10 -9
- package/lib/components/Image.js +2 -2
- package/lib/components/Input.js +1 -1
- package/lib/components/InputMethod.js +2 -2
- package/lib/components/{KeywordSearch-85e5e07b.js → KeywordSearch-0b5681d9.js} +3 -3
- package/lib/components/KeywordSearch.js +6 -6
- package/lib/components/KeywordTicker.js +4 -4
- package/lib/components/Keywords.js +6 -6
- package/lib/components/Loading.js +1 -1
- package/lib/components/{Modal-1e6d1b61.js → Modal-c33b7a7f.js} +3 -3
- package/lib/components/Modal.js +4 -4
- package/lib/components/{MoreButton-a001648b.js → MoreButton-b2306abb.js} +1 -1
- package/lib/components/MoreButton.js +2 -2
- package/lib/components/Pagination.js +3 -3
- package/lib/components/Radio.js +1 -1
- package/lib/components/SNA.js +5 -5
- package/lib/components/{Select-a607a0d4.js → Select-9a745e5c.js} +3 -3
- package/lib/components/Select.js +4 -4
- package/lib/components/{Spin-a5ff6ede.js → Spin-96bc2c76.js} +1 -1
- package/lib/components/Spin.js +2 -2
- package/lib/components/Table.js +1 -1
- package/lib/components/{Tooltip-f1cd39ef.js → Tooltip-123cc349.js} +2 -2
- package/lib/components/Tooltip.js +3 -3
- package/lib/components/{_rollupPluginBabelHelpers-7eb4ffba.js → _rollupPluginBabelHelpers-a52356f6.js} +1 -1
- package/lib/components/{dataExport-04b77185.js → dataExport-d55d6fa3.js} +30 -31
- package/package.json +1 -1
- /package/lib/components/{createSvgIcon-b2072aa6.js → createSvgIcon-ad1104bb.js} +0 -0
- /package/lib/components/{index-8aa477f6.js → index-848f4409.js} +0 -0
- /package/lib/components/{index-b1cfc87c.js → index-983dcd15.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends$1, a as _slicedToArray, b as _objectSpread2 } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useCallback, useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import { d as debounce_1 } from './debounce-127da66c.js';
|
|
6
6
|
import { Autocomplete as Autocomplete$1 } from '@material-ui/lab';
|
|
7
7
|
import { Chip, TextField, CircularProgress } from '@material-ui/core';
|
|
8
8
|
import { Close, SearchOutlined } from '@material-ui/icons';
|
|
9
|
-
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
9
|
+
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
10
10
|
import { _ as _extends, m as merge, d as defaultTheme, c as compose, b as borders, a as display, f as flexbox, g as grid, p as positions, e as palette, h as boxShadow, s as sizing, i as spacing, t as typography } from './defaultTheme-ed7746fe.js';
|
|
11
11
|
import 'react-is';
|
|
12
12
|
import { _ as _toConsumableArray } from './toConsumableArray-dbe8af76.js';
|
|
13
13
|
import { styled as styled$1 } from '@material-ui/styles';
|
|
14
14
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
15
|
-
import { E as Empty } from './Empty-
|
|
15
|
+
import { E as Empty } from './Empty-67b4d7d7.js';
|
|
16
16
|
|
|
17
17
|
var ArrowDropDown = {};
|
|
18
18
|
|
|
@@ -87,23 +87,21 @@ var Box = styled('div')(styleFunction, {
|
|
|
87
87
|
name: 'MuiBox'
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
var useAutocomplete = (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return getValue(item) === getValue(value);
|
|
106
|
-
}
|
|
90
|
+
var useAutocomplete = (_ref => {
|
|
91
|
+
let {
|
|
92
|
+
options,
|
|
93
|
+
placeholder,
|
|
94
|
+
loading,
|
|
95
|
+
searchIcon,
|
|
96
|
+
labelInValue,
|
|
97
|
+
onEnter,
|
|
98
|
+
currentResult,
|
|
99
|
+
setCurrentDefaultValue,
|
|
100
|
+
arrowIcon
|
|
101
|
+
} = _ref;
|
|
102
|
+
const getValue = useCallback(data => typeof data === 'object' ? data.value : data, []);
|
|
103
|
+
const getLabel = useCallback(value => {
|
|
104
|
+
const finder = (Array.isArray(options) ? options : []).find(item => getValue(item) === getValue(value)
|
|
107
105
|
// typeof item === 'object' ? item.label === value : item === value
|
|
108
106
|
);
|
|
109
107
|
|
|
@@ -111,30 +109,32 @@ var useAutocomplete = (function (_ref) {
|
|
|
111
109
|
// console.log('value', value);
|
|
112
110
|
// console.log('finder', finder);
|
|
113
111
|
if (finder) {
|
|
114
|
-
return
|
|
112
|
+
return typeof finder === 'object' ? finder.label : finder;
|
|
115
113
|
}
|
|
116
|
-
return
|
|
114
|
+
return typeof value === 'object' ? value.label : value;
|
|
117
115
|
}, [options]);
|
|
118
116
|
|
|
119
117
|
/* 若MUI的Autocomplete下方的options列表要勾選已選的項目 必須從options取出才可 */
|
|
120
|
-
|
|
118
|
+
const getValueFromOptions = useCallback(defaultValue => {
|
|
121
119
|
if (Array.isArray(options)) {
|
|
122
120
|
if (Array.isArray(defaultValue)) {
|
|
123
121
|
return defaultValue.map(
|
|
124
122
|
// item有可能為 object({ label, value }) 或 string(value)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
123
|
+
item => options.find(_ref2 => {
|
|
124
|
+
let {
|
|
125
|
+
value
|
|
126
|
+
} = _ref2;
|
|
127
|
+
return item === value || item.value === value;
|
|
128
|
+
}) || item
|
|
131
129
|
// if (typeof item === 'object') return options.find(({ value }) => item.value === value) || item;
|
|
132
130
|
// return item;
|
|
133
131
|
);
|
|
134
132
|
}
|
|
135
133
|
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
const result = options.find(_ref3 => {
|
|
135
|
+
let {
|
|
136
|
+
value
|
|
137
|
+
} = _ref3;
|
|
138
138
|
return defaultValue === value;
|
|
139
139
|
});
|
|
140
140
|
return labelInValue ? defaultValue : result || {
|
|
@@ -144,50 +144,45 @@ var useAutocomplete = (function (_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
|
-
|
|
181
|
-
}
|
|
182
|
-
}, /*#__PURE__*/React__default.createElement(default_1, null)), params.InputProps.endAdornment)
|
|
183
|
-
})
|
|
184
|
-
}));
|
|
185
|
-
}, [loading, searchIcon, arrowIcon]);
|
|
147
|
+
const defaultTag = useCallback((tagValue, getTagProps) => tagValue.map((option, index) => /*#__PURE__*/React__default.createElement(Chip, _extends$1({
|
|
148
|
+
label: getLabel(option),
|
|
149
|
+
deleteIcon: /*#__PURE__*/React__default.createElement(Close, null)
|
|
150
|
+
}, getTagProps({
|
|
151
|
+
index
|
|
152
|
+
})))), [options]);
|
|
153
|
+
const defaultRenderInput = useCallback(params => /*#__PURE__*/React__default.createElement(TextField, _extends$1({}, params, {
|
|
154
|
+
variant: "outlined",
|
|
155
|
+
placeholder: placeholder,
|
|
156
|
+
InputProps: {
|
|
157
|
+
...params.InputProps,
|
|
158
|
+
endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
159
|
+
className: "autocomplete__icon",
|
|
160
|
+
color: "inherit",
|
|
161
|
+
size: 20
|
|
162
|
+
}), searchIcon && /*#__PURE__*/React__default.createElement(SearchOutlined, {
|
|
163
|
+
className: "autocomplete__icon",
|
|
164
|
+
onClick: event => {
|
|
165
|
+
const tmpObj = {
|
|
166
|
+
labels: currentResult || '',
|
|
167
|
+
value: currentResult || ''
|
|
168
|
+
};
|
|
169
|
+
setCurrentDefaultValue(tmpObj);
|
|
170
|
+
return onEnter(event, tmpObj);
|
|
171
|
+
}
|
|
172
|
+
}), !searchIcon && !loading && arrowIcon && /*#__PURE__*/React__default.createElement(Box, {
|
|
173
|
+
style: {
|
|
174
|
+
top: 'calc(50% - 14px)',
|
|
175
|
+
right: '12px',
|
|
176
|
+
position: 'absolute'
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/React__default.createElement(default_1, null)), params.InputProps.endAdornment)
|
|
179
|
+
}
|
|
180
|
+
})), [loading, searchIcon, arrowIcon]);
|
|
186
181
|
return {
|
|
187
|
-
getValue
|
|
188
|
-
getValueFromOptions
|
|
189
|
-
defaultTag
|
|
190
|
-
defaultRenderInput
|
|
182
|
+
getValue,
|
|
183
|
+
getValueFromOptions,
|
|
184
|
+
defaultTag,
|
|
185
|
+
defaultRenderInput
|
|
191
186
|
};
|
|
192
187
|
});
|
|
193
188
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { A as default } from './Autocomplete-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { A as default } from './Autocomplete-cf913b25.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-848f4409.js';
|
|
6
6
|
import './debounce-127da66c.js';
|
|
7
7
|
import './isObjectLike-e111475d.js';
|
|
8
8
|
import './_commonjsHelpers-70de2c37.js';
|
|
9
9
|
import '@material-ui/lab';
|
|
10
10
|
import '@material-ui/core';
|
|
11
11
|
import '@material-ui/icons';
|
|
12
|
-
import './createSvgIcon-
|
|
12
|
+
import './createSvgIcon-ad1104bb.js';
|
|
13
13
|
import './defaultTheme-ed7746fe.js';
|
|
14
14
|
import 'react-is';
|
|
15
15
|
import '@material-ui/styles';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import './toConsumableArray-dbe8af76.js';
|
|
18
18
|
import './style-inject.es-1f59c1d0.js';
|
|
19
|
-
import './Empty-
|
|
19
|
+
import './Empty-67b4d7d7.js';
|
package/lib/components/Avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as classNames } from './index-
|
|
2
|
+
import { c as classNames } from './index-848f4409.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Avatar as Avatar$1 } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import { d as debounce_1 } from './debounce-127da66c.js';
|
|
6
6
|
import { Fade, NoSsr, Box } from '@material-ui/core';
|
|
7
|
-
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
7
|
+
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
import './isObjectLike-e111475d.js';
|
|
10
10
|
import './_commonjsHelpers-70de2c37.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useEffect } from 'react';
|
|
2
|
-
import { c as classNames } from './index-
|
|
2
|
+
import { c as classNames } from './index-848f4409.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { g as constant$1, h as interpolateNumber, j as color, k as interpolateRgb, l as interpolateString, n as exponent, o as ordinal, p as initRange, r as map, s as slice$1, u as bisectRight, v as formatSpecifier, w as formatPrefix, x as format, d as d3Select } from './transform-3a04288b.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as classNames } from './index-
|
|
2
|
+
import { c as classNames } from './index-848f4409.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { NavLink } from 'react-router-dom';
|
|
5
5
|
import { Typography, Breadcrumbs as Breadcrumbs$1 } from '@material-ui/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { Button as Button$1, CircularProgress } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as default } from './Button-
|
|
1
|
+
export { B as default } from './Button-611f1770.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-848f4409.js';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _objectWithoutProperties$1, b as _objectSpread2, _ as _extends$3 } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { forwardRef, useRef, useImperativeHandle } from 'react';
|
|
3
|
-
import { a as classnames, c as classNames } from './index-
|
|
3
|
+
import { a as classnames, c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { c as commonjsGlobal, g as getAugmentedNamespace, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _objectWithoutProperties, _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Typography } from '@material-ui/core';
|
|
6
|
-
import { M as MoreButton } from './MoreButton-
|
|
6
|
+
import { M as MoreButton } from './MoreButton-b2306abb.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
8
|
import '@material-ui/icons';
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _extends$1, a as _slicedToArray$2, b as _objectSpread2, e as _defineProperty$1 } from './_rollupPluginBabelHelpers-a52356f6.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';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { M as Modal } from './Modal-
|
|
6
|
+
import { M as Modal } from './Modal-c33b7a7f.js';
|
|
7
7
|
import { c as commonjsGlobal, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
8
|
-
import { c as classNames } from './index-
|
|
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-9a745e5c.js';
|
|
11
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
12
|
-
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
12
|
+
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
13
13
|
import { getIntl } from './globalConfig';
|
|
14
14
|
|
|
15
15
|
var isArray$1 = Array.isArray;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { C as default } from './ContactModal-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { C as default } from './ContactModal-0a4c67b8.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
6
6
|
import 'react-is';
|
|
7
7
|
import 'axios';
|
|
8
|
-
import './Modal-
|
|
9
|
-
import './index-
|
|
8
|
+
import './Modal-c33b7a7f.js';
|
|
9
|
+
import './index-848f4409.js';
|
|
10
10
|
import '@material-ui/core';
|
|
11
11
|
import '@material-ui/icons';
|
|
12
|
-
import './Button-
|
|
12
|
+
import './Button-611f1770.js';
|
|
13
13
|
import './style-inject.es-1f59c1d0.js';
|
|
14
|
-
import './Spin-
|
|
14
|
+
import './Spin-96bc2c76.js';
|
|
15
15
|
import './_commonjsHelpers-70de2c37.js';
|
|
16
|
-
import './Select-
|
|
17
|
-
import './Empty-
|
|
18
|
-
import './createSvgIcon-
|
|
16
|
+
import './Select-9a745e5c.js';
|
|
17
|
+
import './Empty-67b4d7d7.js';
|
|
18
|
+
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
20
20
|
import '@material-ui/styles';
|
|
21
21
|
import 'react-dom';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.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-9a745e5c.js';
|
|
7
7
|
import { useHistory, useRouteMatch } from 'react-router-dom';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
|
package/lib/components/Drawer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { D as default } from './Drawer-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { D as default } from './Drawer-d1dd8ffb.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.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-
|
|
8
|
-
import './index-
|
|
9
|
-
import './Empty-
|
|
7
|
+
import './Select-9a745e5c.js';
|
|
8
|
+
import './index-848f4409.js';
|
|
9
|
+
import './Empty-67b4d7d7.js';
|
|
10
10
|
import './style-inject.es-1f59c1d0.js';
|
|
11
11
|
import 'react-router-dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useRef, useState } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Button, Menu, Divider, MenuItem, ListItemIcon, ListItemText } from '@material-ui/core';
|
|
6
6
|
import { makeStyles } from '@material-ui/styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
5
|
|
|
6
6
|
var img = "data:image/svg+xml,%3csvg class='ant-empty-img-default' width='184' height='152' viewBox='0 0 184 152' xmlns='http://www.w3.org/2000/svg'%3e %3cg fill='none' fill-rule='evenodd'%3e %3cg transform='translate(24 31.67)'%3e %3cellipse fill='%23f5f5f5' fill-opacity='0.8' cx='67.797' cy='106.89' rx='67.797' ry='12.668'%3e%3c/ellipse%3e %3cpath fill='%23aeb8c2' d='M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z'%3e%3c/path%3e %3cpath fill='url(%23linearGradient-1)' d='M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z' transform='translate(13.56)'%3e%3c/path%3e %3cpath fill='%23f5f5f7' d='M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z'%3e%3c/path%3e %3cpath fill='%23dce0e6' d='M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z'%3e%3c/path%3e %3c/g%3e %3cpath fill='%23dce0e6' d='M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z'%3e%3c/path%3e %3cg fill='white' transform='translate(149.65 15.383)'%3e %3cellipse cx='20.654' cy='3.167' rx='2.849' ry='2.815'%3e%3c/ellipse%3e %3cpath d='M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
package/lib/components/Empty.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
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-d55d6fa3.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 { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { Component, forwardRef, useState } from 'react';
|
|
4
|
-
import { c as classNames } from './index-
|
|
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-123cc349.js';
|
|
9
|
+
import { s as snaToExcel, f as fileDownload$1, a as jsonExcel } from './dataExport-d55d6fa3.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-66e79794.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './index-
|
|
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-123cc349.js';
|
|
9
9
|
import './style-inject.es-1f59c1d0.js';
|
|
10
|
-
import './dataExport-
|
|
10
|
+
import './dataExport-d55d6fa3.js';
|
package/lib/components/Filter.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useContext, createElement, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
5
|
-
import { q as queryString } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
|
+
import { q as queryString } from './index-983dcd15.js';
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import { isValidElementType, typeOf } from 'react-is';
|
|
8
8
|
import { h as hoistNonReactStatics_cjs } from './hoist-non-react-statics.cjs-3f408ad2.js';
|
package/lib/components/Footer.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
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-
|
|
7
|
-
import { S as Spin } from './Spin-
|
|
6
|
+
import { C as ContactModal } from './ContactModal-0a4c67b8.js';
|
|
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';
|
|
10
10
|
import 'react-is';
|
|
11
|
-
import './Modal-
|
|
11
|
+
import './Modal-c33b7a7f.js';
|
|
12
12
|
import '@material-ui/core';
|
|
13
13
|
import '@material-ui/icons';
|
|
14
|
-
import './Button-
|
|
14
|
+
import './Button-611f1770.js';
|
|
15
15
|
import './_commonjsHelpers-70de2c37.js';
|
|
16
|
-
import './Select-
|
|
17
|
-
import './Empty-
|
|
18
|
-
import './createSvgIcon-
|
|
16
|
+
import './Select-9a745e5c.js';
|
|
17
|
+
import './Empty-67b4d7d7.js';
|
|
18
|
+
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
20
20
|
import '@material-ui/styles';
|
|
21
21
|
import 'react-dom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _objectWithoutProperties } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useMemo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { q as queryString } from './index-
|
|
4
|
+
import { q as queryString } from './index-983dcd15.js';
|
|
5
5
|
import { useHistory, Link } from 'react-router-dom';
|
|
6
6
|
import { Tooltip } from '@material-ui/core';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { F as default } from './ForwardLink-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { F as default } from './ForwardLink-edab5061.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-983dcd15.js';
|
|
6
6
|
import 'react-router-dom';
|
|
7
7
|
import '@material-ui/core';
|
|
8
8
|
import './style-inject.es-1f59c1d0.js';
|
package/lib/components/Header.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
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-0b5681d9.js';
|
|
10
|
+
import { S as Select } from './Select-9a745e5c.js';
|
|
11
|
+
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-d1dd8ffb.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-cf913b25.js';
|
|
17
17
|
import '@material-ui/lab';
|
|
18
|
-
import './createSvgIcon-
|
|
18
|
+
import './createSvgIcon-ad1104bb.js';
|
|
19
19
|
import './defaultTheme-ed7746fe.js';
|
|
20
20
|
import 'react-is';
|
|
21
21
|
import '@material-ui/styles';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import './toConsumableArray-dbe8af76.js';
|
|
24
|
-
import './Empty-
|
|
24
|
+
import './Empty-67b4d7d7.js';
|
|
25
25
|
|
|
26
26
|
var css_248z = "@charset \"UTF-8\";\n.header {\n display: flex;\n align-items: center;\n background: rgba(255, 255, 255, 0.6);\n background-color: rgba(255, 255, 255, 0.6);\n padding: 12px 36px !important;\n position: fixed;\n top: 0;\n z-index: 10;\n width: 100% !important;\n transition: top 0.3s ease-in-out;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); }\n .header__logo {\n display: flex;\n width: -moz-fit-content !important;\n width: fit-content !important;\n margin-right: 30px !important;\n cursor: pointer; }\n .header__logo__img {\n display: flex;\n align-items: center; }\n .header__logo__title {\n white-space: nowrap;\n margin-left: 1rem !important;\n font-size: 1.5rem !important;\n font-weight: 700 !important;\n font-family: 'Noto Sans TC' !important; }\n .header__links {\n display: flex;\n justify-content: flex-end;\n padding-right: 14px; }\n .header__links a {\n text-decoration: none; }\n .header__links--full {\n flex: 1; }\n .header__links__item {\n color: rgba(0, 0, 0, 0.85);\n font-size: 1.125rem !important;\n font-weight: 500 !important;\n white-space: nowrap;\n padding: 6px 14px;\n font-family: 'Noto Sans TC' !important; }\n .header__links__item--active .header__links__item {\n font-weight: 800 !important;\n background: transparent;\n border-radius: 45px; }\n .header__links__item:hover {\n font-weight: 800 !important; }\n .header__language {\n min-width: 100px !important; }\n .header__searchIcon {\n display: none !important; }\n @media screen and (max-width: 768px) {\n .header--smallUseSearchIcon .header__searchIcon {\n display: flex !important;\n margin-right: 10px !important; }\n .header--smallUseSearchIcon .keywordSearch {\n visibility: hidden;\n flex: 1;\n width: 0; } }\n .header--hide {\n top: -100px; }\n .header--focus .header__links {\n display: none; }\n .header .MuiTypography-root {\n width: 100%;\n display: flex;\n align-items: center; }\n .header .autocomplete {\n float: right; }\n .header .autocomplete .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n padding: 1px 8px !important; }\n .header .keywordSearch {\n margin-right: 8px; }\n .header .keywordSearch--focus .autocomplete {\n width: 100% !important; }\n .header .keywordSearch--animation .autocomplete {\n width: 240px;\n transition: width 0.3s ease-in-out; }\n\n/* 避免寬度460以下炸版 */\n@media screen and (max-width: 460px) {\n .header .keywordSearch--animation .autocomplete {\n width: 100%; } }\n\n@media screen and (max-width: 768px) {\n .header {\n padding: 12px 15px !important; }\n .header__logo {\n margin-right: 16px !important; }\n .header__logo__title {\n display: none !important; }\n .header__links {\n display: none; }\n .header__links__item {\n font-size: 1rem !important; }\n .header__language {\n display: none !important; }\n .header--focus .header__logo {\n display: none !important; }\n .autocomplete__icon {\n display: none !important; } }\n";
|
|
27
27
|
styleInject(css_248z);
|
|
@@ -138,7 +138,8 @@ var Header = function Header(props) {
|
|
|
138
138
|
title: title,
|
|
139
139
|
logo: logo,
|
|
140
140
|
drawerList: pages,
|
|
141
|
-
supportLanguages: supportLanguages
|
|
141
|
+
supportLanguages: supportLanguages,
|
|
142
|
+
onLanguageChange: onLanguageChange
|
|
142
143
|
}));
|
|
143
144
|
};
|
|
144
145
|
Header.defaultProps = {
|
package/lib/components/Image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { OutlinedInput } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import { ExpandMore, ExpandLess, Search } from '@material-ui/icons';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import { c as commonjsGlobal } from './_commonjsHelpers-70de2c37.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
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-cf913b25.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,21 +1,21 @@
|
|
|
1
|
-
export { K as default } from './KeywordSearch-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { K as default } from './KeywordSearch-0b5681d9.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-848f4409.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import './style-inject.es-1f59c1d0.js';
|
|
8
|
-
import './Autocomplete-
|
|
8
|
+
import './Autocomplete-cf913b25.js';
|
|
9
9
|
import './debounce-127da66c.js';
|
|
10
10
|
import './isObjectLike-e111475d.js';
|
|
11
11
|
import './_commonjsHelpers-70de2c37.js';
|
|
12
12
|
import '@material-ui/lab';
|
|
13
13
|
import '@material-ui/core';
|
|
14
14
|
import '@material-ui/icons';
|
|
15
|
-
import './createSvgIcon-
|
|
15
|
+
import './createSvgIcon-ad1104bb.js';
|
|
16
16
|
import './defaultTheme-ed7746fe.js';
|
|
17
17
|
import 'react-is';
|
|
18
18
|
import '@material-ui/styles';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import './toConsumableArray-dbe8af76.js';
|
|
21
|
-
import './Empty-
|
|
21
|
+
import './Empty-67b4d7d7.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
5
|
-
import { F as ForwardLink } from './ForwardLink-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
|
+
import { F as ForwardLink } from './ForwardLink-edab5061.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-983dcd15.js';
|
|
8
8
|
import 'react-router-dom';
|
|
9
9
|
import '@material-ui/core';
|
|
10
10
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
5
|
-
import { M as Modal } from './Modal-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
|
+
import { M as Modal } from './Modal-c33b7a7f.js';
|
|
6
6
|
import { Typography } from '@material-ui/core';
|
|
7
|
-
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
7
|
+
import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
import '@material-ui/icons';
|
|
10
|
-
import './Button-
|
|
11
|
-
import './Spin-
|
|
10
|
+
import './Button-611f1770.js';
|
|
11
|
+
import './Spin-96bc2c76.js';
|
|
12
12
|
import './_commonjsHelpers-70de2c37.js';
|
|
13
13
|
import './defaultTheme-ed7746fe.js';
|
|
14
14
|
import 'react-is';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as classNames } from './index-
|
|
2
|
+
import { c as classNames } from './index-848f4409.js';
|
|
3
3
|
import { CircularProgress } from '@material-ui/core';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as classNames } from './index-
|
|
2
|
+
import { c as classNames } from './index-848f4409.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Dialog, DialogTitle, IconButton, DialogContent, DialogActions, CircularProgress } from '@material-ui/core';
|
|
5
5
|
import { CloseSharp } from '@material-ui/icons';
|
|
6
|
-
import { B as Button } from './Button-
|
|
7
|
-
import { S as Spin } from './Spin-
|
|
6
|
+
import { B as Button } from './Button-611f1770.js';
|
|
7
|
+
import { S as Spin } from './Spin-96bc2c76.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
9
9
|
|
|
10
10
|
var css_248z = ".modal__title h2 {\n display: flex;\n align-items: center; }\n\n.modal__title__text {\n flex: 1;\n font-size: 16px;\n padding: 8px 0;\n color: white; }\n\n.modal__title__close {\n cursor: pointer;\n color: white; }\n\n.modal--transparent .MuiPaper-root {\n background: transparent !important;\n box-shadow: none; }\n\n.modal--transparent .modal__title {\n background: transparent !important; }\n";
|
package/lib/components/Modal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { M as default } from './Modal-
|
|
1
|
+
export { M as default } from './Modal-c33b7a7f.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-848f4409.js';
|
|
4
4
|
import 'prop-types';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import '@material-ui/icons';
|
|
7
|
-
import './Button-
|
|
7
|
+
import './Button-611f1770.js';
|
|
8
8
|
import './style-inject.es-1f59c1d0.js';
|
|
9
|
-
import './Spin-
|
|
9
|
+
import './Spin-96bc2c76.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { ExpandLess, ExpandMore } from '@material-ui/icons';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as default } from './MoreButton-
|
|
1
|
+
export { M as default } from './MoreButton-b2306abb.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-848f4409.js';
|
|
5
5
|
import '@material-ui/icons';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _objectWithoutProperties$1 } from './_rollupPluginBabelHelpers-a52356f6.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';
|
|
5
5
|
import { d as defaultTheme, k as _objectWithoutProperties, o as _slicedToArray, _ as _extends, q as _objectWithoutPropertiesLoose, r as alpha, j as formatMuiErrorMessage } from './defaultTheme-ed7746fe.js';
|
|
6
|
-
import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-
|
|
6
|
+
import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ad1104bb.js';
|
|
7
7
|
import 'react-is';
|
|
8
8
|
import { useTheme as useTheme$1 } from '@material-ui/styles';
|
|
9
9
|
import './withTheme-2d778133.js';
|
|
10
10
|
import { _ as _toConsumableArray } from './toConsumableArray-dbe8af76.js';
|
|
11
11
|
import * as ReactDOM from 'react-dom';
|
|
12
12
|
import ReactDOM__default from 'react-dom';
|
|
13
|
-
import { c as classNames } from './index-
|
|
13
|
+
import { c as classNames } from './index-848f4409.js';
|
|
14
14
|
import { IconButton } from '@material-ui/core';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
16
|
import './_commonjsHelpers-70de2c37.js';
|
package/lib/components/Radio.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-a52356f6.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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React__default, { useMemo, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
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-66e79794.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import './_rollupPluginBabelHelpers-
|
|
7
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
8
8
|
import './_commonjsHelpers-70de2c37.js';
|
|
9
9
|
import '@material-ui/core';
|
|
10
|
-
import './Tooltip-
|
|
11
|
-
import './dataExport-
|
|
10
|
+
import './Tooltip-123cc349.js';
|
|
11
|
+
import './dataExport-d55d6fa3.js';
|
|
12
12
|
|
|
13
13
|
function sourceEvent() {
|
|
14
14
|
var current = event, source;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as _objectSpread2,
|
|
1
|
+
import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-848f4409.js';
|
|
5
5
|
import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
|
|
6
|
-
import { E as Empty } from './Empty-
|
|
6
|
+
import { E as Empty } from './Empty-67b4d7d7.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
8
8
|
|
|
9
9
|
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";
|
package/lib/components/Select.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { S as default } from './Select-9a745e5c.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-848f4409.js';
|
|
6
6
|
import '@material-ui/core';
|
|
7
|
-
import './Empty-
|
|
7
|
+
import './Empty-67b4d7d7.js';
|
|
8
8
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-848f4409.js';
|
|
4
4
|
import { Fade, CircularProgress } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Spin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as default } from './Spin-
|
|
1
|
+
export { S as default } from './Spin-96bc2c76.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-848f4409.js';
|
|
5
5
|
import '@material-ui/core';
|
|
6
6
|
import './style-inject.es-1f59c1d0.js';
|
package/lib/components/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _objectWithoutProperties } from './_rollupPluginBabelHelpers-a52356f6.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,8 +1,8 @@
|
|
|
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 {
|
|
5
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
5
|
+
import { c as classNames } from './index-848f4409.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
|
|
8
8
|
const TooltipContent = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { T as default, p as placements } from './Tooltip-
|
|
1
|
+
export { T as default, p as placements } from './Tooltip-123cc349.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import '@material-ui/core';
|
|
5
|
-
import './_rollupPluginBabelHelpers-
|
|
6
|
-
import './index-
|
|
5
|
+
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
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 { _extends as _, _slicedToArray as a, _objectSpread2 as b, _objectWithoutProperties as c, _typeof as d, _defineProperty as e, _taggedTemplateLiteral as f };
|
|
@@ -34,57 +34,56 @@ var fileDownload = function(data, filename, mime, bom) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const jsonExcel = json => {
|
|
38
|
+
let output = '';
|
|
39
39
|
if (Array.isArray(json) && json.length > 0) {
|
|
40
|
-
|
|
41
|
-
output +=
|
|
42
|
-
json.forEach(
|
|
43
|
-
keys.forEach(
|
|
44
|
-
output +=
|
|
40
|
+
const keys = Object.keys(json[0]);
|
|
41
|
+
output += `${keys.toString()}\n`;
|
|
42
|
+
json.forEach(item => {
|
|
43
|
+
keys.forEach(key => {
|
|
44
|
+
output += `${item[key]},`;
|
|
45
45
|
});
|
|
46
46
|
output += '\n';
|
|
47
47
|
});
|
|
48
48
|
} else {
|
|
49
|
-
|
|
50
|
-
output +=
|
|
51
|
-
|
|
52
|
-
output +=
|
|
49
|
+
const keys = Object.keys(json);
|
|
50
|
+
output += `${keys.toString()}\n`;
|
|
51
|
+
keys.forEach(key => {
|
|
52
|
+
output += `${json[key]},`;
|
|
53
53
|
});
|
|
54
54
|
output += '\n';
|
|
55
55
|
}
|
|
56
56
|
return output;
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
const jsonTxt = json => {
|
|
59
|
+
let output = '';
|
|
60
60
|
if (Array.isArray(json) && json.length > 0) {
|
|
61
|
-
|
|
62
|
-
json.forEach(
|
|
63
|
-
output +=
|
|
64
|
-
keys.forEach(
|
|
65
|
-
output +=
|
|
61
|
+
const keys = Object.keys(json[0]);
|
|
62
|
+
json.forEach((item, index) => {
|
|
63
|
+
output += `(${index + 1})\n`;
|
|
64
|
+
keys.forEach(key => {
|
|
65
|
+
output += `${key}: ${item[key]}\n`;
|
|
66
66
|
});
|
|
67
67
|
output += '\n';
|
|
68
68
|
});
|
|
69
69
|
} else {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
output +=
|
|
70
|
+
const keys = Object.keys(json);
|
|
71
|
+
keys.forEach(key => {
|
|
72
|
+
output += `${key}: ${json[key]}\n`;
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
return output;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
links
|
|
80
|
-
nodes
|
|
77
|
+
const snaToExcel = data => {
|
|
78
|
+
const {
|
|
79
|
+
links,
|
|
80
|
+
nodes
|
|
81
|
+
} = data || {};
|
|
81
82
|
if (links && links.length > 0) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
};
|
|
87
|
-
});
|
|
83
|
+
const result = links.map(link => ({
|
|
84
|
+
From: nodes[link.source].name,
|
|
85
|
+
To: nodes[link.target].name
|
|
86
|
+
}));
|
|
88
87
|
return result;
|
|
89
88
|
}
|
|
90
89
|
return [];
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|