@daoyi/nmtl-ui 2.0.1-beta.59 → 2.0.1-beta.60

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.
Files changed (59) hide show
  1. package/lib/components/{Autocomplete-ed66ea1e.js → Autocomplete-d826e57f.js} +64 -69
  2. package/lib/components/Autocomplete.js +4 -4
  3. package/lib/components/Avatar.js +5 -3
  4. package/lib/components/BackTop.js +4 -4
  5. package/lib/components/BarChart.js +1 -1
  6. package/lib/components/Breadcrumbs.js +1 -1
  7. package/lib/components/{Button-3d002693.js → Button-433372aa.js} +1 -1
  8. package/lib/components/Button.js +2 -2
  9. package/lib/components/Carousel.js +2 -2
  10. package/lib/components/Checkbox.js +1 -1
  11. package/lib/components/CollapseContent.js +3 -3
  12. package/lib/components/{ContactModal-5af70002.js → ContactModal-aabf02d5.js} +5 -5
  13. package/lib/components/ContactModal.js +10 -10
  14. package/lib/components/{Drawer-47f9967c.js → Drawer-bfcfd292.js} +2 -2
  15. package/lib/components/Drawer.js +5 -5
  16. package/lib/components/Dropdown.js +2 -2
  17. package/lib/components/{Empty-b674a51e.js → Empty-7318f658.js} +1 -1
  18. package/lib/components/Empty.js +2 -2
  19. package/lib/components/ExportButton.js +3 -3
  20. package/lib/components/{ExtraTools-97665703.js → ExtraTools-aa5bc12d.js} +4 -4
  21. package/lib/components/ExtraTools.js +5 -5
  22. package/lib/components/Filter.js +3 -3
  23. package/lib/components/Footer.js +10 -10
  24. package/lib/components/{ForwardLink-02ae24fb.js → ForwardLink-2912e106.js} +2 -2
  25. package/lib/components/ForwardLink.js +3 -3
  26. package/lib/components/Header.js +7 -7
  27. package/lib/components/Image.js +2 -2
  28. package/lib/components/Input.js +1 -1
  29. package/lib/components/InputMethod.js +2 -2
  30. package/lib/components/{KeywordSearch-52526414.js → KeywordSearch-4b7ace9c.js} +3 -3
  31. package/lib/components/KeywordSearch.js +5 -5
  32. package/lib/components/KeywordTicker.js +4 -4
  33. package/lib/components/Keywords.js +7 -7
  34. package/lib/components/Loading.js +1 -1
  35. package/lib/components/MUITheme.js +3 -6
  36. package/lib/components/{Modal-1e6d1b61.js → Modal-64c4ab0d.js} +3 -3
  37. package/lib/components/Modal.js +4 -4
  38. package/lib/components/{MoreButton-a001648b.js → MoreButton-6654cc5b.js} +1 -1
  39. package/lib/components/MoreButton.js +2 -2
  40. package/lib/components/NmtlPagination.js +3702 -0
  41. package/lib/components/Radio.js +1 -1
  42. package/lib/components/SNA.js +5 -5
  43. package/lib/components/{Select-a607a0d4.js → Select-f3014e5a.js} +3 -3
  44. package/lib/components/Select.js +4 -4
  45. package/lib/components/{Spin-a5ff6ede.js → Spin-8a5a600d.js} +1 -1
  46. package/lib/components/Spin.js +2 -2
  47. package/lib/components/Table.js +1 -1
  48. package/lib/components/{Tooltip-f1cd39ef.js → Tooltip-fdee6235.js} +2 -2
  49. package/lib/components/Tooltip.js +3 -3
  50. package/lib/components/{_rollupPluginBabelHelpers-7eb4ffba.js → _rollupPluginBabelHelpers-a52356f6.js} +1 -1
  51. package/lib/components/{createSvgIcon-b7f70edc.js → createSvgIcon-db8e8306.js} +2 -2
  52. package/lib/components/{dataExport-04b77185.js → dataExport-d55d6fa3.js} +30 -31
  53. package/lib/components/{defaultTheme-19a14721.js → defaultTheme-5839b9b3.js} +21 -1
  54. package/lib/components/withTheme-4417822c.js +6 -0
  55. package/lib/index.d.ts +1 -0
  56. package/lib/index.js +1 -0
  57. package/package.json +1 -1
  58. /package/lib/components/{index-8aa477f6.js → index-66babe67.js} +0 -0
  59. /package/lib/components/{index-b1cfc87c.js → index-fdcc884e.js} +0 -0
@@ -1,30 +1,28 @@
1
- import { _ as _typeof, a as _extends, b as _objectSpread2, c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ import { _ as _extends, 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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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
9
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
10
- import { E as Empty } from './Empty-b674a51e.js';
10
+ import { E as Empty } from './Empty-7318f658.js';
11
11
 
12
- var useAutocomplete = (function (_ref) {
13
- var options = _ref.options,
14
- placeholder = _ref.placeholder,
15
- loading = _ref.loading,
16
- searchIcon = _ref.searchIcon,
17
- labelInValue = _ref.labelInValue,
18
- onEnter = _ref.onEnter,
19
- currentResult = _ref.currentResult,
20
- setCurrentDefaultValue = _ref.setCurrentDefaultValue;
21
- var getValue = useCallback(function (data) {
22
- return _typeof(data) === 'object' ? data.value : data;
23
- }, []);
24
- var getLabel = useCallback(function (value) {
25
- var finder = (Array.isArray(options) ? options : []).find(function (item) {
26
- return getValue(item) === getValue(value);
27
- }
12
+ var useAutocomplete = (_ref => {
13
+ let {
14
+ options,
15
+ placeholder,
16
+ loading,
17
+ searchIcon,
18
+ labelInValue,
19
+ onEnter,
20
+ currentResult,
21
+ setCurrentDefaultValue
22
+ } = _ref;
23
+ const getValue = useCallback(data => typeof data === 'object' ? data.value : data, []);
24
+ const getLabel = useCallback(value => {
25
+ const finder = (Array.isArray(options) ? options : []).find(item => getValue(item) === getValue(value)
28
26
  // typeof item === 'object' ? item.label === value : item === value
29
27
  );
30
28
 
@@ -32,30 +30,32 @@ var useAutocomplete = (function (_ref) {
32
30
  // console.log('value', value);
33
31
  // console.log('finder', finder);
34
32
  if (finder) {
35
- return _typeof(finder) === 'object' ? finder.label : finder;
33
+ return typeof finder === 'object' ? finder.label : finder;
36
34
  }
37
- return _typeof(value) === 'object' ? value.label : value;
35
+ return typeof value === 'object' ? value.label : value;
38
36
  }, [options]);
39
37
 
40
38
  /* 若MUI的Autocomplete下方的options列表要勾選已選的項目 必須從options取出才可 */
41
- var getValueFromOptions = useCallback(function (defaultValue) {
39
+ const getValueFromOptions = useCallback(defaultValue => {
42
40
  if (Array.isArray(options)) {
43
41
  if (Array.isArray(defaultValue)) {
44
42
  return defaultValue.map(
45
43
  // item有可能為 object({ label, value }) 或 string(value)
46
- function (item) {
47
- return options.find(function (_ref2) {
48
- var value = _ref2.value;
49
- return item === value || item.value === value;
50
- }) || item;
51
- }
44
+ item => options.find(_ref2 => {
45
+ let {
46
+ value
47
+ } = _ref2;
48
+ return item === value || item.value === value;
49
+ }) || item
52
50
  // if (typeof item === 'object') return options.find(({ value }) => item.value === value) || item;
53
51
  // return item;
54
52
  );
55
53
  }
56
54
 
57
- var result = options.find(function (_ref3) {
58
- var value = _ref3.value;
55
+ const result = options.find(_ref3 => {
56
+ let {
57
+ value
58
+ } = _ref3;
59
59
  return defaultValue === value;
60
60
  });
61
61
  return labelInValue ? defaultValue : result || {
@@ -65,46 +65,41 @@ var useAutocomplete = (function (_ref) {
65
65
  }
66
66
  return defaultValue;
67
67
  }, [options, labelInValue]);
68
- var defaultTag = useCallback(function (tagValue, getTagProps) {
69
- return tagValue.map(function (option, index) {
70
- return /*#__PURE__*/React__default.createElement(Chip, _extends({
71
- label: getLabel(option),
72
- deleteIcon: /*#__PURE__*/React__default.createElement(Close, null)
73
- }, getTagProps({
74
- index: index
75
- })));
76
- });
77
- }, [options]);
78
- var defaultRenderInput = useCallback(function (params) {
79
- return /*#__PURE__*/React__default.createElement(TextField, _extends({}, params, {
80
- variant: "outlined",
81
- placeholder: placeholder,
82
- InputProps: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
83
- endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
84
- className: "autocomplete__icon",
85
- color: "inherit",
86
- size: 20
87
- }), searchIcon && /*#__PURE__*/React__default.createElement(SearchOutlined, {
88
- className: "autocomplete__icon",
89
- onClick: function onClick(event) {
90
- setCurrentDefaultValue({
91
- label: currentResult,
92
- value: currentResult
93
- });
94
- return onEnter(event, {
95
- label: currentResult,
96
- value: currentResult
97
- });
98
- }
99
- }), params.InputProps.endAdornment)
100
- })
101
- }));
102
- }, [loading, searchIcon]);
68
+ const defaultTag = useCallback((tagValue, getTagProps) => tagValue.map((option, index) => /*#__PURE__*/React__default.createElement(Chip, _extends({
69
+ label: getLabel(option),
70
+ deleteIcon: /*#__PURE__*/React__default.createElement(Close, null)
71
+ }, getTagProps({
72
+ index
73
+ })))), [options]);
74
+ const defaultRenderInput = useCallback(params => /*#__PURE__*/React__default.createElement(TextField, _extends({}, params, {
75
+ variant: "outlined",
76
+ placeholder: placeholder,
77
+ InputProps: {
78
+ ...params.InputProps,
79
+ endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
80
+ className: "autocomplete__icon",
81
+ color: "inherit",
82
+ size: 20
83
+ }), searchIcon && /*#__PURE__*/React__default.createElement(SearchOutlined, {
84
+ className: "autocomplete__icon",
85
+ onClick: event => {
86
+ setCurrentDefaultValue({
87
+ label: currentResult,
88
+ value: currentResult
89
+ });
90
+ return onEnter(event, {
91
+ label: currentResult,
92
+ value: currentResult
93
+ });
94
+ }
95
+ }), params.InputProps.endAdornment)
96
+ }
97
+ })), [loading, searchIcon]);
103
98
  return {
104
- getValue: getValue,
105
- getValueFromOptions: getValueFromOptions,
106
- defaultTag: defaultTag,
107
- defaultRenderInput: defaultRenderInput
99
+ getValue,
100
+ getValueFromOptions,
101
+ defaultTag,
102
+ defaultRenderInput
108
103
  };
109
104
  });
110
105
 
@@ -1,8 +1,8 @@
1
- export { A as default } from './Autocomplete-ed66ea1e.js';
2
- import './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ export { A as default } from './Autocomplete-d826e57f.js';
2
+ import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './index-8aa477f6.js';
5
+ import './index-66babe67.js';
6
6
  import './debounce-127da66c.js';
7
7
  import './isObjectLike-e111475d.js';
8
8
  import './_commonjsHelpers-70de2c37.js';
@@ -10,4 +10,4 @@ import '@material-ui/lab';
10
10
  import '@material-ui/core';
11
11
  import '@material-ui/icons';
12
12
  import './style-inject.es-1f59c1d0.js';
13
- import './Empty-b674a51e.js';
13
+ import './Empty-7318f658.js';
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { c as classNames } from './index-8aa477f6.js';
2
+ import { c as classNames } from './index-66babe67.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';
@@ -33,7 +33,8 @@ Avatar.defaultProps = {
33
33
  className: undefined,
34
34
  shape: 'circular',
35
35
  src: undefined,
36
- onError: undefined
36
+ onError: undefined,
37
+ defaultImg: undefined
37
38
  };
38
39
 
39
40
  /* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
@@ -45,7 +46,8 @@ Avatar.propTypes = {
45
46
  /** 圖片來源 */
46
47
  src: PropTypes.string,
47
48
  /** 圖片有錯誤則callback */
48
- onError: PropTypes.func
49
+ onError: PropTypes.func,
50
+ defaultImg: PropTypes.string
49
51
  };
50
52
 
51
53
  export { Avatar as default };
@@ -1,14 +1,14 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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-b7f70edc.js';
7
+ import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-db8e8306.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';
11
- import './defaultTheme-19a14721.js';
11
+ import './defaultTheme-5839b9b3.js';
12
12
  import 'react-is';
13
13
  import '@material-ui/styles';
14
14
  import 'react-dom';
@@ -1,5 +1,5 @@
1
1
  import React__default, { useEffect } from 'react';
2
- import { c as classNames } from './index-8aa477f6.js';
2
+ import { c as classNames } from './index-66babe67.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-8aa477f6.js';
2
+ import { c as classNames } from './index-66babe67.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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.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
 
@@ -1,6 +1,6 @@
1
- export { B as default } from './Button-3d002693.js';
1
+ export { B as default } from './Button-433372aa.js';
2
2
  import 'react';
3
3
  import 'prop-types';
4
- import './index-8aa477f6.js';
4
+ import './index-66babe67.js';
5
5
  import '@material-ui/core';
6
6
  import './style-inject.es-1f59c1d0.js';
@@ -1,6 +1,6 @@
1
- import { d as _objectWithoutProperties$1, b as _objectSpread2, a as _extends$3 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
3
+ import { a as classnames, c as classNames } from './index-66babe67.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 { d as _objectWithoutProperties, a as _extends } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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 { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.js';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Typography } from '@material-ui/core';
6
- import { M as MoreButton } from './MoreButton-a001648b.js';
6
+ import { M as MoreButton } from './MoreButton-6654cc5b.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 { a as _extends$1, c as _slicedToArray$2, b as _objectSpread2, e as _defineProperty$1 } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-1e6d1b61.js';
6
+ import { M as Modal } from './Modal-64c4ab0d.js';
7
7
  import { c as commonjsGlobal, a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
8
- import { c as classNames } from './index-8aa477f6.js';
8
+ import { c as classNames } from './index-66babe67.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-a607a0d4.js';
10
+ import { S as Select } from './Select-f3014e5a.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-b7f70edc.js';
12
+ import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-db8e8306.js';
13
13
  import { getIntl } from './globalConfig';
14
14
 
15
15
  var isArray$1 = Array.isArray;
@@ -1,22 +1,22 @@
1
- export { C as default } from './ContactModal-5af70002.js';
2
- import './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ export { C as default } from './ContactModal-aabf02d5.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-1e6d1b61.js';
9
- import './index-8aa477f6.js';
8
+ import './Modal-64c4ab0d.js';
9
+ import './index-66babe67.js';
10
10
  import '@material-ui/core';
11
11
  import '@material-ui/icons';
12
- import './Button-3d002693.js';
12
+ import './Button-433372aa.js';
13
13
  import './style-inject.es-1f59c1d0.js';
14
- import './Spin-a5ff6ede.js';
14
+ import './Spin-8a5a600d.js';
15
15
  import './_commonjsHelpers-70de2c37.js';
16
- import './Select-a607a0d4.js';
17
- import './Empty-b674a51e.js';
18
- import './createSvgIcon-b7f70edc.js';
19
- import './defaultTheme-19a14721.js';
16
+ import './Select-f3014e5a.js';
17
+ import './Empty-7318f658.js';
18
+ import './createSvgIcon-db8e8306.js';
19
+ import './defaultTheme-5839b9b3.js';
20
20
  import '@material-ui/styles';
21
21
  import 'react-dom';
22
22
  import './globalConfig';
@@ -1,9 +1,9 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-a607a0d4.js';
6
+ import { S as Select } from './Select-f3014e5a.js';
7
7
  import { useHistory, useRouteMatch } from 'react-router-dom';
8
8
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
9
9
 
@@ -1,11 +1,11 @@
1
- export { D as default } from './Drawer-47f9967c.js';
2
- import './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ export { D as default } from './Drawer-bfcfd292.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-a607a0d4.js';
8
- import './index-8aa477f6.js';
9
- import './Empty-b674a51e.js';
7
+ import './Select-f3014e5a.js';
8
+ import './index-66babe67.js';
9
+ import './Empty-7318f658.js';
10
10
  import './style-inject.es-1f59c1d0.js';
11
11
  import 'react-router-dom';
@@ -1,6 +1,6 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.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";
@@ -1,5 +1,5 @@
1
- export { E as default } from './Empty-b674a51e.js';
1
+ export { E as default } from './Empty-7318f658.js';
2
2
  import 'react';
3
3
  import 'prop-types';
4
- import './index-8aa477f6.js';
4
+ import './index-66babe67.js';
5
5
  import './style-inject.es-1f59c1d0.js';
@@ -1,10 +1,10 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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-04b77185.js';
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 { a as _extends } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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-f1cd39ef.js';
9
- import { s as snaToExcel, f as fileDownload$1, a as jsonExcel } from './dataExport-04b77185.js';
8
+ import { T as Tooltip } from './Tooltip-fdee6235.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-97665703.js';
2
- import './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ export { E as default } from './ExtraTools-aa5bc12d.js';
2
+ import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
- import './index-8aa477f6.js';
4
+ import './index-66babe67.js';
5
5
  import 'prop-types';
6
6
  import './_commonjsHelpers-70de2c37.js';
7
7
  import '@material-ui/core';
8
- import './Tooltip-f1cd39ef.js';
8
+ import './Tooltip-fdee6235.js';
9
9
  import './style-inject.es-1f59c1d0.js';
10
- import './dataExport-04b77185.js';
10
+ import './dataExport-d55d6fa3.js';
@@ -1,8 +1,8 @@
1
- import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ import { f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default, { useContext, createElement } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { c as classNames } from './index-8aa477f6.js';
5
- import { q as queryString } from './index-b1cfc87c.js';
4
+ import { c as classNames } from './index-66babe67.js';
5
+ import { q as queryString } from './index-fdcc884e.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';
@@ -1,22 +1,22 @@
1
- import { c as _slicedToArray, _ as _typeof } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.js';
4
4
  import PropTypes from 'prop-types';
5
5
  import axios from 'axios';
6
- import { C as ContactModal } from './ContactModal-5af70002.js';
7
- import { S as Spin } from './Spin-a5ff6ede.js';
6
+ import { C as ContactModal } from './ContactModal-aabf02d5.js';
7
+ import { S as Spin } from './Spin-8a5a600d.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-1e6d1b61.js';
11
+ import './Modal-64c4ab0d.js';
12
12
  import '@material-ui/core';
13
13
  import '@material-ui/icons';
14
- import './Button-3d002693.js';
14
+ import './Button-433372aa.js';
15
15
  import './_commonjsHelpers-70de2c37.js';
16
- import './Select-a607a0d4.js';
17
- import './Empty-b674a51e.js';
18
- import './createSvgIcon-b7f70edc.js';
19
- import './defaultTheme-19a14721.js';
16
+ import './Select-f3014e5a.js';
17
+ import './Empty-7318f658.js';
18
+ import './createSvgIcon-db8e8306.js';
19
+ import './defaultTheme-5839b9b3.js';
20
20
  import '@material-ui/styles';
21
21
  import 'react-dom';
22
22
  import './globalConfig';
@@ -1,7 +1,7 @@
1
- import { d as _objectWithoutProperties } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-b1cfc87c.js';
4
+ import { q as queryString } from './index-fdcc884e.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-02ae24fb.js';
2
- import './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ export { F as default } from './ForwardLink-2912e106.js';
2
+ import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './index-b1cfc87c.js';
5
+ import './index-fdcc884e.js';
6
6
  import 'react-router-dom';
7
7
  import '@material-ui/core';
8
8
  import './style-inject.es-1f59c1d0.js';
@@ -1,21 +1,21 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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-52526414.js';
10
- import { S as Select } from './Select-a607a0d4.js';
11
- import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-47f9967c.js';
9
+ import { K as KeywordSearch } from './KeywordSearch-4b7ace9c.js';
10
+ import { S as Select } from './Select-f3014e5a.js';
11
+ import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-bfcfd292.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-ed66ea1e.js';
16
+ import './Autocomplete-d826e57f.js';
17
17
  import '@material-ui/lab';
18
- import './Empty-b674a51e.js';
18
+ import './Empty-7318f658.js';
19
19
 
20
20
  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 -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px); }\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";
21
21
  styleInject(css_248z);
@@ -1,6 +1,6 @@
1
- import { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default, { useState } from 'react';
3
- import { c as classNames } from './index-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.js';
4
4
  import PropTypes from 'prop-types';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
@@ -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-8aa477f6.js';
3
+ import { c as classNames } from './index-66babe67.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 { c as _slicedToArray } from './_rollupPluginBabelHelpers-7eb4ffba.js';
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-8aa477f6.js';
4
+ import { c as classNames } from './index-66babe67.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';