@daoyi/nmtl-ui 2.0.1-beta.13 → 2.0.1-beta.130

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 (104) hide show
  1. package/lib/components/Autocomplete-3b418e5f.js +494 -0
  2. package/lib/components/Autocomplete.js +20 -1
  3. package/lib/components/Avatar.js +59 -1
  4. package/lib/components/BackTop.js +124 -1
  5. package/lib/components/BarChart.js +764 -1
  6. package/lib/components/Breadcrumbs.js +122 -1
  7. package/lib/components/Button-7bd5aa09.js +114 -0
  8. package/lib/components/Button.js +7 -1
  9. package/lib/components/Carousel.js +4654 -1
  10. package/lib/components/Checkbox.js +37 -1
  11. package/lib/components/CollapseContent.js +180 -1
  12. package/lib/components/ContactModal-7e5b14e8.js +12188 -0
  13. package/lib/components/ContactModal.js +24 -3
  14. package/lib/components/Drawer-629e59c7.js +176 -0
  15. package/lib/components/Drawer.js +17 -1
  16. package/lib/components/Dropdown.js +134 -1
  17. package/lib/components/Empty-c6a44967.js +46 -0
  18. package/lib/components/Empty.js +5 -1
  19. package/lib/components/ExportButton.js +128 -1
  20. package/lib/components/ExtraTools-2691c13e.js +3676 -0
  21. package/lib/components/ExtraTools.js +11 -22
  22. package/lib/components/Filter.js +821 -12
  23. package/lib/components/Footer.js +317 -1
  24. package/lib/components/ForwardLink-5fbd2705.js +184 -0
  25. package/lib/components/ForwardLink.js +10 -0
  26. package/lib/components/Header.js +233 -1
  27. package/lib/components/Image.js +61 -1
  28. package/lib/components/Input.js +89 -1
  29. package/lib/components/InputMethod.js +33949 -12
  30. package/lib/components/KeywordSearch-fec33a2c.js +156 -0
  31. package/lib/components/KeywordSearch.js +22 -1
  32. package/lib/components/KeywordTicker.js +224 -1
  33. package/lib/components/Keywords.js +383 -1
  34. package/lib/components/Loading.js +32 -1
  35. package/lib/components/MUITheme.js +2657 -1
  36. package/lib/components/Modal-e04532fa.js +127 -0
  37. package/lib/components/Modal.js +11 -1
  38. package/lib/components/MoreButton-19055e07.js +148 -0
  39. package/lib/components/MoreButton.js +8 -1
  40. package/lib/components/Pagination.js +3702 -0
  41. package/lib/components/Radio.js +83 -1
  42. package/lib/components/SNA.js +1755 -22
  43. package/lib/components/Select-cb3e1ba1.js +189 -0
  44. package/lib/components/Select.js +14 -1
  45. package/lib/components/Spin-8f87eadc.js +79 -0
  46. package/lib/components/Spin.js +7 -1
  47. package/lib/components/Table.js +51 -1
  48. package/lib/components/Tooltip-6ebfa9c1.js +70 -0
  49. package/lib/components/Tooltip.js +7 -1
  50. package/lib/components/_commonjsHelpers-70de2c37.js +28 -0
  51. package/lib/components/_rollupPluginBabelHelpers-a52356f6.js +142 -0
  52. package/lib/components/createSvgIcon-e3803ee1.js +576 -0
  53. package/lib/components/dataExport-a9e3fae1.js +91 -0
  54. package/lib/components/debounce-127da66c.js +355 -0
  55. package/lib/components/defaultTheme-ed7746fe.js +1661 -0
  56. package/lib/components/globalConfig.js +423 -0
  57. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  58. package/lib/components/index-b47819f3.js +481 -0
  59. package/lib/components/index-b76a85f4.js +61 -0
  60. package/lib/components/isObjectLike-e111475d.js +190 -0
  61. package/lib/components/style-inject.es-1f59c1d0.js +28 -1
  62. package/lib/components/toConsumableArray-dbe8af76.js +19 -0
  63. package/lib/components/transform-849a452c.js +5475 -0
  64. package/lib/components/useTheme-d16d02d9.js +11 -0
  65. package/lib/components/withTheme-2d778133.js +6 -0
  66. package/lib/configs/config.selector.js +151 -0
  67. package/lib/configs/index.d.ts +1 -0
  68. package/lib/configs/index.js +1 -0
  69. package/lib/index.d.ts +5 -1
  70. package/lib/index.js +5 -1
  71. package/lib/utils/_rollupPluginBabelHelpers-9802e640.js +121 -0
  72. package/lib/utils/arrayMerge.js +4953 -1
  73. package/lib/utils/chunkArray.js +15 -1
  74. package/lib/utils/convert2HtmlEntities.js +42 -1
  75. package/lib/utils/domToImage.js +802 -1
  76. package/lib/utils/downloadGephi.js +106 -1
  77. package/lib/utils/exportXlsx.js +221 -1
  78. package/lib/utils/historyAppendSearch.js +502 -1
  79. package/lib/utils/isDevelopMode.js +5 -1
  80. package/lib/utils/parseYMD.js +36 -1
  81. package/lib/utils/removeDuplicateItem.js +11 -1
  82. package/lib/utils/sendEmail.js +39 -1
  83. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  84. package/lib/utils/snaDefine.js +1 -1
  85. package/lib/utils/snaPreProcess.js +84 -1
  86. package/package.json +134 -128
  87. package/lib/components/Empty-54b79907.js +0 -1
  88. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  89. package/lib/components/Select-f2441b83.js +0 -1
  90. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  91. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  92. package/lib/components/createSvgIcon-62b64929.js +0 -1
  93. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  94. package/lib/components/createTheme-7fffa109.js +0 -1
  95. package/lib/components/dataExport-9fccd4f0.js +0 -1
  96. package/lib/components/debounce-c993109b.js +0 -1
  97. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  98. package/lib/components/index-11391ca3.js +0 -7
  99. package/lib/components/index-b2745105.js +0 -7
  100. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  101. package/lib/components/style-inject.es-c875d022.js +0 -1
  102. package/lib/components/transform-95ae0119.js +0 -1
  103. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  104. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -0,0 +1,11 @@
1
+ import { useTheme as useTheme$1 } from '@material-ui/styles';
2
+ import 'react';
3
+ import { d as defaultTheme } from './defaultTheme-ed7746fe.js';
4
+
5
+ function useTheme() {
6
+ var theme = useTheme$1() || defaultTheme;
7
+
8
+ return theme;
9
+ }
10
+
11
+ export { useTheme as u };
@@ -0,0 +1,6 @@
1
+ import { withThemeCreator } from '@material-ui/styles';
2
+ import { d as defaultTheme } from './defaultTheme-ed7746fe.js';
3
+
4
+ withThemeCreator({
5
+ defaultTheme: defaultTheme
6
+ });
@@ -0,0 +1,151 @@
1
+ //
2
+ const AvatarSelectors = {
3
+ // title: 'example-info-title',
4
+ };
5
+ const AutocompleteSelectors = {
6
+ // title: 'example-info-title',
7
+ };
8
+
9
+ // please add more selectors if needed
10
+ const ButtonSelectors = {
11
+ // title: 'example-info-title',
12
+ };
13
+ const BackTopSelectors = {
14
+ // title: 'example-info-title',
15
+ };
16
+ const CarouselSelectors = {
17
+ // title: 'example-info-title',
18
+ };
19
+ const CheckboxSelectors = {
20
+ // title: 'example-info-title',
21
+ };
22
+ const DrawerSelectors = {
23
+ // title: 'example-info-title',
24
+ };
25
+ const EmptySelectors = {
26
+ // title: 'example-info-title',
27
+ };
28
+ const ImageSelectors = {
29
+ // title: 'example-info-title',
30
+ };
31
+ const InputMethodSelectors = {
32
+ // title: 'example-info-title',
33
+ };
34
+ const LoadingSelectors = {
35
+ // title: 'example-info-title',
36
+ };
37
+ const ModalSelectors = {
38
+ // title: 'example-info-title',
39
+ };
40
+ const RadioSelectors = {
41
+ // title: 'example-info-title',
42
+ };
43
+ const SelectSelectors = {
44
+ // title: 'example-info-title',
45
+ };
46
+ const SpinSelectors = {
47
+ // title: 'example-info-title',
48
+ };
49
+ const TableSelectors = {
50
+ // title: 'example-info-title',
51
+ };
52
+ const TooltipSelectors = {
53
+ // title: 'example-info-title',
54
+ };
55
+ const InputSelectors = {
56
+ // title: 'example-info-title',
57
+ };
58
+ const DropdownSelectors = {
59
+ // title: 'example-info-title',
60
+ };
61
+ const BreadcrumbsSelectors = {
62
+ // title: 'example-info-title',
63
+ };
64
+ const ExportButtonSelectors = {
65
+ // title: 'example-info-title',
66
+ };
67
+ const SNASelectors = {
68
+ // title: 'example-info-title',
69
+ };
70
+ const BarChartSelectors = {
71
+ // title: 'example-info-title',
72
+ };
73
+ const ForwardLinkSelectors = {
74
+ // title: 'example-info-title',
75
+ };
76
+ const PaginationSelectors = {
77
+ // title: 'example-info-title',
78
+ };
79
+ const ContactModalSelectors = {
80
+ // title: 'example-info-title',
81
+ };
82
+ const KeywordSearchSelectors = {
83
+ // title: 'example-info-title',
84
+ };
85
+ const MUIThemeSelectors = {
86
+ // title: 'example-info-title',
87
+ };
88
+ const HeaderSelectors = {
89
+ // title: 'example-info-title',
90
+ };
91
+ const FooterSelectors = {
92
+ // title: 'example-info-title',
93
+ };
94
+ const KeywordsSelectors = {
95
+ // title: 'example-info-title',
96
+ };
97
+ const CollapseContentSelectors = {
98
+ // title: 'example-info-title',
99
+ };
100
+ const MoreButtonSelectors = {
101
+ // title: 'example-info-title',
102
+ };
103
+ const KeywordTickerSelectors = {
104
+ // title: 'example-info-title',
105
+ };
106
+ const ExtraToolsSelectors = {
107
+ // title: 'example-info-title',
108
+ };
109
+ const FilterSelectors = {
110
+ // title: 'example-info-title',
111
+ };
112
+ const SELECTORS = {
113
+ avatar: AvatarSelectors,
114
+ autocomplete: AutocompleteSelectors,
115
+ button: ButtonSelectors,
116
+ backTop: BackTopSelectors,
117
+ carousel: CarouselSelectors,
118
+ checkbox: CheckboxSelectors,
119
+ drawer: DrawerSelectors,
120
+ empty: EmptySelectors,
121
+ image: ImageSelectors,
122
+ inputMethod: InputMethodSelectors,
123
+ loading: LoadingSelectors,
124
+ modal: ModalSelectors,
125
+ radio: RadioSelectors,
126
+ select: SelectSelectors,
127
+ spin: SpinSelectors,
128
+ table: TableSelectors,
129
+ tooltip: TooltipSelectors,
130
+ input: InputSelectors,
131
+ dropdown: DropdownSelectors,
132
+ breadcrumbs: BreadcrumbsSelectors,
133
+ exportButton: ExportButtonSelectors,
134
+ sna: SNASelectors,
135
+ barChart: BarChartSelectors,
136
+ forwardLink: ForwardLinkSelectors,
137
+ pagination: PaginationSelectors,
138
+ contactModal: ContactModalSelectors,
139
+ keywordSearch: KeywordSearchSelectors,
140
+ muiTheme: MUIThemeSelectors,
141
+ header: HeaderSelectors,
142
+ footer: FooterSelectors,
143
+ keywords: KeywordsSelectors,
144
+ collapseContent: CollapseContentSelectors,
145
+ moreButton: MoreButtonSelectors,
146
+ keywordTicker: KeywordTickerSelectors,
147
+ extraTools: ExtraToolsSelectors,
148
+ filter: FilterSelectors
149
+ };
150
+
151
+ export { AutocompleteSelectors, AvatarSelectors, BackTopSelectors, BarChartSelectors, BreadcrumbsSelectors, ButtonSelectors, CarouselSelectors, CheckboxSelectors, CollapseContentSelectors, ContactModalSelectors, DrawerSelectors, DropdownSelectors, EmptySelectors, ExportButtonSelectors, ExtraToolsSelectors, FilterSelectors, FooterSelectors, ForwardLinkSelectors, HeaderSelectors, ImageSelectors, InputMethodSelectors, InputSelectors, KeywordSearchSelectors, KeywordTickerSelectors, KeywordsSelectors, LoadingSelectors, MUIThemeSelectors, ModalSelectors, MoreButtonSelectors, PaginationSelectors, RadioSelectors, SELECTORS, SNASelectors, SelectSelectors, SpinSelectors, TableSelectors, TooltipSelectors, SELECTORS as default };
@@ -0,0 +1 @@
1
+ export { default as muiSelectorConfig } from './muiSelectorConfig';
@@ -0,0 +1 @@
1
+ export { default as muiSelectorConfig } from './muiSelectorConfig';
package/lib/index.d.ts CHANGED
@@ -21,6 +21,8 @@ export { default as Breadcrumbs } from './components/Breadcrumbs';
21
21
  export { default as ExportButton } from './components/ExportButton';
22
22
  export { default as SNA } from './components/SNA';
23
23
  export { default as BarChart } from './components/BarChart';
24
+ export { default as ForwardLink } from './components/ForwardLink';
25
+ export { default as Pagination } from './components/Pagination';
24
26
 
25
27
  export { default as ContactModal } from './components/ContactModal';
26
28
  export { default as KeywordSearch } from './components/KeywordSearch';
@@ -32,4 +34,6 @@ export { default as CollapseContent } from './components/CollapseContent';
32
34
  export { default as MoreButton } from './components/MoreButton';
33
35
  export { default as KeywordTicker } from './components/KeywordTicker';
34
36
  export { default as ExtraTools } from './components/ExtraTools';
35
- export { default as Filter } from './components/Filter';
37
+ export { default as Filter } from './components/Filter';
38
+
39
+ export { getIntl } from './components/globalConfig';
package/lib/index.js CHANGED
@@ -21,6 +21,8 @@ export { default as Breadcrumbs } from './components/Breadcrumbs';
21
21
  export { default as ExportButton } from './components/ExportButton';
22
22
  export { default as SNA } from './components/SNA';
23
23
  export { default as BarChart } from './components/BarChart';
24
+ export { default as ForwardLink } from './components/ForwardLink';
25
+ export { default as Pagination } from './components/Pagination';
24
26
 
25
27
  export { default as ContactModal } from './components/ContactModal';
26
28
  export { default as KeywordSearch } from './components/KeywordSearch';
@@ -32,4 +34,6 @@ export { default as CollapseContent } from './components/CollapseContent';
32
34
  export { default as MoreButton } from './components/MoreButton';
33
35
  export { default as KeywordTicker } from './components/KeywordTicker';
34
36
  export { default as ExtraTools } from './components/ExtraTools';
35
- export { default as Filter } from './components/Filter';
37
+ export { default as Filter } from './components/Filter';
38
+
39
+ export { getIntl } from './components/globalConfig';
@@ -0,0 +1,121 @@
1
+ function ownKeys(object, enumerableOnly) {
2
+ var keys = Object.keys(object);
3
+ if (Object.getOwnPropertySymbols) {
4
+ var symbols = Object.getOwnPropertySymbols(object);
5
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7
+ })), keys.push.apply(keys, symbols);
8
+ }
9
+ return keys;
10
+ }
11
+ function _objectSpread2(target) {
12
+ for (var i = 1; i < arguments.length; i++) {
13
+ var source = null != arguments[i] ? arguments[i] : {};
14
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
15
+ _defineProperty(target, key, source[key]);
16
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
17
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18
+ });
19
+ }
20
+ return target;
21
+ }
22
+ function _defineProperty(obj, key, value) {
23
+ if (key in obj) {
24
+ Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true
29
+ });
30
+ } else {
31
+ obj[key] = value;
32
+ }
33
+ return obj;
34
+ }
35
+ function _objectWithoutPropertiesLoose(source, excluded) {
36
+ if (source == null) return {};
37
+ var target = {};
38
+ var sourceKeys = Object.keys(source);
39
+ var key, i;
40
+ for (i = 0; i < sourceKeys.length; i++) {
41
+ key = sourceKeys[i];
42
+ if (excluded.indexOf(key) >= 0) continue;
43
+ target[key] = source[key];
44
+ }
45
+ return target;
46
+ }
47
+ function _objectWithoutProperties(source, excluded) {
48
+ if (source == null) return {};
49
+ var target = _objectWithoutPropertiesLoose(source, excluded);
50
+ var key, i;
51
+ if (Object.getOwnPropertySymbols) {
52
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
53
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
54
+ key = sourceSymbolKeys[i];
55
+ if (excluded.indexOf(key) >= 0) continue;
56
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
57
+ target[key] = source[key];
58
+ }
59
+ }
60
+ return target;
61
+ }
62
+ function _slicedToArray(arr, i) {
63
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
64
+ }
65
+ function _toConsumableArray(arr) {
66
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
67
+ }
68
+ function _arrayWithoutHoles(arr) {
69
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
70
+ }
71
+ function _arrayWithHoles(arr) {
72
+ if (Array.isArray(arr)) return arr;
73
+ }
74
+ function _iterableToArray(iter) {
75
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
76
+ }
77
+ function _iterableToArrayLimit(arr, i) {
78
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
79
+ if (_i == null) return;
80
+ var _arr = [];
81
+ var _n = true;
82
+ var _d = false;
83
+ var _s, _e;
84
+ try {
85
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
86
+ _arr.push(_s.value);
87
+ if (i && _arr.length === i) break;
88
+ }
89
+ } catch (err) {
90
+ _d = true;
91
+ _e = err;
92
+ } finally {
93
+ try {
94
+ if (!_n && _i["return"] != null) _i["return"]();
95
+ } finally {
96
+ if (_d) throw _e;
97
+ }
98
+ }
99
+ return _arr;
100
+ }
101
+ function _unsupportedIterableToArray(o, minLen) {
102
+ if (!o) return;
103
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
104
+ var n = Object.prototype.toString.call(o).slice(8, -1);
105
+ if (n === "Object" && o.constructor) n = o.constructor.name;
106
+ if (n === "Map" || n === "Set") return Array.from(o);
107
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
108
+ }
109
+ function _arrayLikeToArray(arr, len) {
110
+ if (len == null || len > arr.length) len = arr.length;
111
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
112
+ return arr2;
113
+ }
114
+ function _nonIterableSpread() {
115
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
+ }
117
+ function _nonIterableRest() {
118
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
119
+ }
120
+
121
+ export { _toConsumableArray as _, _defineProperty as a, _slicedToArray as b, _objectWithoutProperties as c, _objectSpread2 as d };