@daoyi/nmtl-ui 2.0.1-beta.47 → 2.0.1-beta.49

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 (66) hide show
  1. package/lib/components/{Autocomplete-5439ff22.js → Autocomplete-aa4a8d6c.js} +4 -2
  2. package/lib/components/Autocomplete.js +7 -6
  3. package/lib/components/Avatar.js +2 -4
  4. package/lib/components/BackTop.js +28 -1
  5. package/lib/components/BarChart.js +634 -4
  6. package/lib/components/Breadcrumbs.js +2 -4
  7. package/lib/components/{Button-63c7e9f3.js → Button-2f8f0493.js} +2 -1
  8. package/lib/components/Button.js +3 -5
  9. package/lib/components/Carousel.js +4659 -7
  10. package/lib/components/CollapseContent.js +3 -5
  11. package/lib/components/ContactModal-a44e2a42.js +10759 -0
  12. package/lib/components/ContactModal.js +14 -9
  13. package/lib/components/{Drawer-af3ed21a.js → Drawer-dd8942f1.js} +2 -2
  14. package/lib/components/Drawer.js +5 -7
  15. package/lib/components/Dropdown.js +2 -3
  16. package/lib/components/{Empty-70f040a9.js → Empty-3637b766.js} +2 -1
  17. package/lib/components/Empty.js +3 -5
  18. package/lib/components/ExportButton.js +3 -5
  19. package/lib/components/ExtraTools-55dad795.js +3479 -0
  20. package/lib/components/ExtraTools.js +6 -7
  21. package/lib/components/Filter.js +691 -5
  22. package/lib/components/Footer.js +14 -9
  23. package/lib/components/ForwardLink-4759cf99.js +105 -0
  24. package/lib/components/ForwardLink.js +9 -106
  25. package/lib/components/Header.js +10 -9
  26. package/lib/components/Image.js +7 -4
  27. package/lib/components/Input.js +2 -4
  28. package/lib/components/InputMethod.js +10861 -4
  29. package/lib/components/{KeywordSearch-224f84c1.js → KeywordSearch-2d01266e.js} +3 -2
  30. package/lib/components/KeywordSearch.js +8 -7
  31. package/lib/components/KeywordTicker.js +24 -16
  32. package/lib/components/Keywords.js +30 -5
  33. package/lib/components/Loading.js +2 -4
  34. package/lib/components/MUITheme.js +2375 -3
  35. package/lib/components/{Modal-a7591b98.js → Modal-572e17ea.js} +4 -3
  36. package/lib/components/Modal.js +5 -7
  37. package/lib/components/{MoreButton-f15ca38e.js → MoreButton-80996b5f.js} +2 -1
  38. package/lib/components/MoreButton.js +3 -5
  39. package/lib/components/Radio.js +1 -4
  40. package/lib/components/SNA.js +1416 -5
  41. package/lib/components/{Select-98a8e973.js → Select-5533b506.js} +3 -2
  42. package/lib/components/Select.js +4 -6
  43. package/lib/components/{Spin-690a3597.js → Spin-ebf79c17.js} +2 -1
  44. package/lib/components/Spin.js +3 -5
  45. package/lib/components/{Tooltip-b7eb966d.js → Tooltip-907eaa2e.js} +2 -1
  46. package/lib/components/Tooltip.js +3 -5
  47. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  48. package/lib/components/createSvgIcon-48da8b6e.js +576 -0
  49. package/lib/components/dataExport-d55d6fa3.js +92 -0
  50. package/lib/components/debounce-127da66c.js +355 -0
  51. package/lib/components/defaultTheme-19a14721.js +1485 -0
  52. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  53. package/lib/components/index-7b60a97d.js +481 -0
  54. package/lib/components/index-f491ebce.js +61 -0
  55. package/lib/components/isObjectLike-e111475d.js +190 -0
  56. package/lib/components/style-inject.es-1f59c1d0.js +28 -0
  57. package/lib/components/transform-3a04288b.js +5475 -0
  58. package/lib/utils/domToImage.js +771 -1
  59. package/lib/utils/exportXlsx.js +36 -1
  60. package/lib/utils/historyAppendSearch.js +480 -1
  61. package/package.json +1 -1
  62. package/lib/components/ContactModal-a59bc808.js +0 -924
  63. package/lib/components/ExtraTools-f10a66a8.js +0 -818
  64. package/lib/components/dataExport-f418e6fe.js +0 -56
  65. package/lib/components/vendor-851c6356.js +0 -41940
  66. package/lib/utils/vendor-3ec75cc9.js +0 -1289
@@ -1,9 +1,10 @@
1
1
  import { a as _slicedToArray } from './_rollupPluginBabelHelpers-fde6d1c6.js';
2
2
  import React__default, { useState, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { s as styleInject, c as classNames } from './vendor-851c6356.js';
4
+ import { c as classNames } from './index-f491ebce.js';
5
5
  import axios from 'axios';
6
- import { A as Autocomplete } from './Autocomplete-5439ff22.js';
6
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
+ import { A as Autocomplete } from './Autocomplete-aa4a8d6c.js';
7
8
 
8
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";
9
10
  styleInject(css_248z);
@@ -1,14 +1,15 @@
1
- export { K as default } from './KeywordSearch-224f84c1.js';
1
+ export { K as default } from './KeywordSearch-2d01266e.js';
2
2
  import './_rollupPluginBabelHelpers-fde6d1c6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './vendor-851c6356.js';
6
- import 'react-is';
7
- import '@material-ui/styles';
8
- import 'react-dom';
5
+ import './index-f491ebce.js';
9
6
  import 'axios';
10
- import './Autocomplete-5439ff22.js';
7
+ import './style-inject.es-1f59c1d0.js';
8
+ import './Autocomplete-aa4a8d6c.js';
9
+ import './debounce-127da66c.js';
10
+ import './isObjectLike-e111475d.js';
11
+ import './_commonjsHelpers-70de2c37.js';
11
12
  import '@material-ui/lab';
12
13
  import '@material-ui/core';
13
14
  import '@material-ui/icons';
14
- import './Empty-70f040a9.js';
15
+ import './Empty-3637b766.js';
@@ -1,10 +1,12 @@
1
1
  import { a as _slicedToArray } from './_rollupPluginBabelHelpers-fde6d1c6.js';
2
2
  import React__default, { useState, useRef, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { s as styleInject, c as classNames } from './vendor-851c6356.js';
5
- import 'react-is';
6
- import '@material-ui/styles';
7
- import 'react-dom';
4
+ import { c as classNames } from './index-f491ebce.js';
5
+ import { F as ForwardLink } from './ForwardLink-4759cf99.js';
6
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
+ import './index-7b60a97d.js';
8
+ import 'react-router-dom';
9
+ import '@material-ui/core';
8
10
 
9
11
  var css_248z = ".keywordTicker {\n width: 100%;\n display: flex;\n justify-content: flex-start;\n align-items: center; }\n .keywordTicker__track {\n display: flex;\n width: 100%;\n padding: 20px 0px;\n background-color: #ece8c0;\n overflow: hidden;\n margin-left: -80px;\n padding-left: 100px;\n z-index: 1;\n position: relative; }\n .keywordTicker__items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: nowrap;\n position: relative; }\n .keywordTicker-item {\n width: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n white-space: nowrap;\n cursor: pointer; }\n .keywordTicker-text {\n font-size: 1.5rem;\n z-index: 2;\n font-weight: bold;\n color: #825c0d;\n border-left: 2px solid #fff;\n padding: 0px 40px; }\n .keywordTicker__img {\n z-index: 2;\n position: relative;\n display: flex; }\n .keywordTicker__img img {\n height: 100%;\n max-height: 195px;\n image-rendering: -webkit-optimize-contrast;\n position: relative; }\n .keywordTicker--fake {\n position: absolute;\n opacity: 0;\n width: 100%; }\n\n@media only screen and (max-width: 768px) {\n .keywordTicker-text {\n font-size: 1.5rem;\n padding: 0px 15px; }\n .keywordTicker__img img {\n max-height: 104px;\n left: -60px; }\n .keywordTicker__track {\n padding: 10px 0px;\n margin-left: -100px; } }\n\n@media only screen and (max-width: 484px) {\n .keywordTicker-text {\n font-size: 14px; } }\n";
10
12
  styleInject(css_248z);
@@ -101,14 +103,15 @@ var KeywordTicker = function KeywordTicker(_ref) {
101
103
  // 固定移動速度並計算動畫時間
102
104
  var distance = startLine + wordsWidth - step; // 減掉單次畫面溢出的長度
103
105
  var duration = distance / speed;
104
- var initTracking = words.current.animate([
106
+ var initTracking = words.current.animate(
105
107
  // keyframes
106
- {
108
+ [{
107
109
  left: "".concat(start, "px")
108
110
  }, {
109
111
  left: "-".concat(end, "px")
110
- }], {
111
- // timing options
112
+ }],
113
+ // timing options
114
+ {
112
115
  duration: duration,
113
116
  iterations: Infinity
114
117
  });
@@ -131,27 +134,32 @@ var KeywordTicker = function KeywordTicker(_ref) {
131
134
  backgroundColor: backgroundColor
132
135
  },
133
136
  onMouseEnter: function onMouseEnter() {
134
- if (tracking) tracking.pause();
137
+ return tracking === null || tracking === void 0 ? void 0 : tracking.pause();
135
138
  },
136
139
  onMouseLeave: function onMouseLeave() {
137
- if (tracking) tracking.play();
140
+ return tracking === null || tracking === void 0 ? void 0 : tracking.play();
138
141
  }
139
142
  }, /*#__PURE__*/React__default.createElement("div", {
140
143
  className: "keywordTicker__items",
141
144
  ref: words
142
145
  }, (result || []).map(function (_ref4, index) {
143
146
  var keyword = _ref4.keyword;
144
- return /*#__PURE__*/React__default.createElement("div", {
145
- className: "keywordTicker-item",
147
+ return /*#__PURE__*/React__default.createElement(ForwardLink, {
146
148
  key: index.toString(),
147
- onClick: function onClick() {
148
- if (_onClick) _onClick(keyword);
149
- }
149
+ className: "keywordTicker-item",
150
+ pathname: "/knowledge/keyword",
151
+ search: {
152
+ keyword: keyword
153
+ },
154
+ disabled: _onClick
150
155
  }, /*#__PURE__*/React__default.createElement("div", {
151
156
  className: "keywordTicker-text",
152
157
  style: {
153
158
  color: fontColor,
154
159
  borderColor: borderColor
160
+ },
161
+ onClick: function onClick() {
162
+ return _onClick === null || _onClick === void 0 ? void 0 : _onClick(keyword);
155
163
  }
156
164
  }, keyword));
157
165
  }))));
@@ -162,7 +170,7 @@ KeywordTicker.defaultProps = {
162
170
  tickerStyles: undefined,
163
171
  tickerAttribute: undefined,
164
172
  setTickerAttribute: function setTickerAttribute() {},
165
- onClick: function onClick() {}
173
+ onClick: undefined
166
174
  };
167
175
  KeywordTicker.propTypes = {
168
176
  /** Css Name */
@@ -1,15 +1,19 @@
1
1
  import { a as _slicedToArray } from './_rollupPluginBabelHelpers-fde6d1c6.js';
2
2
  import React__default, { useState, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { s as styleInject, c as classNames, T as default_1 } from './vendor-851c6356.js';
5
- import { M as Modal } from './Modal-a7591b98.js';
4
+ import { c as classNames } from './index-f491ebce.js';
5
+ import { M as Modal } from './Modal-572e17ea.js';
6
6
  import { Typography } from '@material-ui/core';
7
+ import { r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-48da8b6e.js';
8
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
9
+ import '@material-ui/icons';
10
+ import './Button-2f8f0493.js';
11
+ import './Spin-ebf79c17.js';
12
+ import './_commonjsHelpers-70de2c37.js';
13
+ import './defaultTheme-19a14721.js';
7
14
  import 'react-is';
8
15
  import '@material-ui/styles';
9
16
  import 'react-dom';
10
- import '@material-ui/icons';
11
- import './Button-63c7e9f3.js';
12
- import './Spin-690a3597.js';
13
17
 
14
18
  const useRWD = () => {
15
19
  const [device, setDevice] = useState('PC');
@@ -26,6 +30,27 @@ const useRWD = () => {
26
30
  return device;
27
31
  };
28
32
 
33
+ var MoreHoriz = {};
34
+
35
+ var _interopRequireDefault = interopRequireDefault.exports;
36
+
37
+ var _interopRequireWildcard = interopRequireWildcard.exports;
38
+
39
+ Object.defineProperty(MoreHoriz, "__esModule", {
40
+ value: true
41
+ });
42
+ var default_1 = MoreHoriz.default = void 0;
43
+
44
+ var React = _interopRequireWildcard(React__default);
45
+
46
+ var _createSvgIcon = _interopRequireDefault(requireCreateSvgIcon());
47
+
48
+ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
49
+ d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
50
+ }), 'MoreHoriz');
51
+
52
+ default_1 = MoreHoriz.default = _default;
53
+
29
54
  var css_248z$2 = ".keywordList {\n display: flex;\n flex-wrap: wrap;\n margin-top: 0.8rem; }\n .keywordList__item {\n font-size: 1.125rem !important;\n border-radius: 5px;\n margin-right: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n cursor: pointer; }\n .keywordList__item__hover {\n border-radius: 5px;\n line-height: normal;\n padding: 0.125rem 0.625rem;\n background: transparent;\n transition: 0.3s background ease-in-out; }\n .keywordList__item__hover:hover {\n background: rgba(0, 0, 0, 0.1); }\n .keywordList__icon svg {\n font-size: 1rem;\n line-height: 1rem; }\n .keywordList__icon .keywordList__item__hover {\n display: flex;\n align-items: center;\n height: 100%;\n padding: 0.125rem 0.875rem; }\n\n@media screen and (max-width: 484px) {\n .keywordList__item {\n font-size: 0.75rem !important; } }\n";
30
55
  styleInject(css_248z$2);
31
56
 
@@ -1,10 +1,8 @@
1
1
  import React__default from 'react';
2
- import { s as styleInject, c as classNames } from './vendor-851c6356.js';
2
+ import { c as classNames } from './index-f491ebce.js';
3
3
  import { CircularProgress } from '@material-ui/core';
4
4
  import PropTypes from 'prop-types';
5
- import 'react-is';
6
- import '@material-ui/styles';
7
- import 'react-dom';
5
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
8
6
 
9
7
  var css_248z = ".loadingPage {\n padding: 4rem 0;\n color: #0087dc;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center; }\n";
10
8
  styleInject(css_248z);