@daoyi/nmtl-ui 2.0.1-beta.7 → 2.0.1-beta.71

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 (99) hide show
  1. package/lib/components/Autocomplete-e62927dc.js +334 -0
  2. package/lib/components/Autocomplete.js +13 -1
  3. package/lib/components/Avatar.js +53 -1
  4. package/lib/components/BackTop.js +109 -1
  5. package/lib/components/BarChart.js +762 -1
  6. package/lib/components/Breadcrumbs.js +122 -1
  7. package/lib/components/Button-4fddcd2f.js +92 -0
  8. package/lib/components/Button.js +6 -1
  9. package/lib/components/Carousel.js +4654 -1
  10. package/lib/components/Checkbox.js +37 -1
  11. package/lib/components/CollapseContent.js +179 -1
  12. package/lib/components/ContactModal-33f4e605.js +12020 -0
  13. package/lib/components/ContactModal.js +22 -3
  14. package/lib/components/Drawer-fb5bc1ec.js +157 -0
  15. package/lib/components/Drawer.js +11 -1
  16. package/lib/components/Dropdown.js +134 -1
  17. package/lib/components/Empty-e50b760e.js +45 -0
  18. package/lib/components/Empty.js +5 -1
  19. package/lib/components/ExportButton.js +112 -1
  20. package/lib/components/ExtraTools-a49a1d2f.js +3537 -0
  21. package/lib/components/ExtraTools.js +10 -22
  22. package/lib/components/Filter.js +782 -12
  23. package/lib/components/Footer.js +271 -1
  24. package/lib/components/ForwardLink-6a82c19d.js +106 -0
  25. package/lib/components/ForwardLink.js +8 -0
  26. package/lib/components/Header.js +187 -1
  27. package/lib/components/Image.js +61 -1
  28. package/lib/components/Input.js +82 -1
  29. package/lib/components/InputMethod.js +33949 -12
  30. package/lib/components/KeywordSearch-3af0c402.js +140 -0
  31. package/lib/components/KeywordSearch.js +15 -1
  32. package/lib/components/KeywordTicker.js +190 -1
  33. package/lib/components/Keywords.js +317 -1
  34. package/lib/components/Loading.js +28 -1
  35. package/lib/components/MUITheme.js +2624 -1
  36. package/lib/components/Modal-2c39d5b8.js +108 -0
  37. package/lib/components/Modal.js +9 -1
  38. package/lib/components/MoreButton-6b323fe4.js +110 -0
  39. package/lib/components/MoreButton.js +6 -1
  40. package/lib/components/Pagination.js +3706 -0
  41. package/lib/components/Radio.js +78 -1
  42. package/lib/components/SNA.js +1691 -22
  43. package/lib/components/Select-0f131640.js +115 -0
  44. package/lib/components/Select.js +8 -1
  45. package/lib/components/Spin-1741f625.js +75 -0
  46. package/lib/components/Spin.js +6 -1
  47. package/lib/components/Table.js +51 -1
  48. package/lib/components/Tooltip-65a21a86.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-d9801fb7.js +576 -0
  53. package/lib/components/dataExport-d55d6fa3.js +92 -0
  54. package/lib/components/debounce-127da66c.js +355 -0
  55. package/lib/components/defaultTheme-5839b9b3.js +1505 -0
  56. package/lib/components/globalConfig.js +175 -0
  57. package/lib/components/hoist-non-react-statics.cjs-3f408ad2.js +105 -0
  58. package/lib/components/index-0be0afec.js +481 -0
  59. package/lib/components/index-ef96775f.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/transform-3a04288b.js +5475 -0
  63. package/lib/components/withTheme-4417822c.js +6 -0
  64. package/lib/index.d.ts +2 -0
  65. package/lib/index.js +2 -0
  66. package/lib/utils/_rollupPluginBabelHelpers-8dd26e1a.js +121 -0
  67. package/lib/utils/arrayMerge.js +4953 -1
  68. package/lib/utils/chunkArray.js +15 -1
  69. package/lib/utils/convert2HtmlEntities.js +42 -1
  70. package/lib/utils/domToImage.js +802 -1
  71. package/lib/utils/downloadGephi.js +106 -1
  72. package/lib/utils/exportXlsx.js +219 -1
  73. package/lib/utils/historyAppendSearch.js +502 -1
  74. package/lib/utils/isDevelopMode.js +5 -1
  75. package/lib/utils/parseYMD.js +36 -1
  76. package/lib/utils/removeDuplicateItem.js +11 -1
  77. package/lib/utils/sendEmail.js +39 -1
  78. package/lib/utils/snaDefine-6a2bcd94.js +5 -0
  79. package/lib/utils/snaDefine.js +1 -1
  80. package/lib/utils/snaPreProcess.js +84 -1
  81. package/package.json +17 -21
  82. package/lib/components/Empty-54b79907.js +0 -1
  83. package/lib/components/KeywordSearch-5a393f12.js +0 -1
  84. package/lib/components/Select-f2441b83.js +0 -1
  85. package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
  86. package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
  87. package/lib/components/createSvgIcon-62b64929.js +0 -1
  88. package/lib/components/createSvgIcon-e24792d4.js +0 -1
  89. package/lib/components/createTheme-7fffa109.js +0 -1
  90. package/lib/components/dataExport-9fccd4f0.js +0 -1
  91. package/lib/components/debounce-c993109b.js +0 -1
  92. package/lib/components/hoist-non-react-statics.cjs-d6a9befd.js +0 -1
  93. package/lib/components/index-11391ca3.js +0 -7
  94. package/lib/components/index-b2745105.js +0 -7
  95. package/lib/components/isObjectLike-2f1983fe.js +0 -1
  96. package/lib/components/style-inject.es-c875d022.js +0 -1
  97. package/lib/components/transform-0eb2d36e.js +0 -1
  98. package/lib/utils/_commonjsHelpers-e2cda605.js +0 -1
  99. package/lib/utils/_rollupPluginBabelHelpers-928a52ce.js +0 -1
@@ -0,0 +1,355 @@
1
+ import { _ as _root, a as _baseGetTag, i as isObjectLike_1, b as isObject_1 } from './isObjectLike-e111475d.js';
2
+
3
+ var root = _root;
4
+
5
+ /**
6
+ * Gets the timestamp of the number of milliseconds that have elapsed since
7
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
8
+ *
9
+ * @static
10
+ * @memberOf _
11
+ * @since 2.4.0
12
+ * @category Date
13
+ * @returns {number} Returns the timestamp.
14
+ * @example
15
+ *
16
+ * _.defer(function(stamp) {
17
+ * console.log(_.now() - stamp);
18
+ * }, _.now());
19
+ * // => Logs the number of milliseconds it took for the deferred invocation.
20
+ */
21
+ var now$1 = function() {
22
+ return root.Date.now();
23
+ };
24
+
25
+ var now_1 = now$1;
26
+
27
+ /** Used to match a single whitespace character. */
28
+
29
+ var reWhitespace = /\s/;
30
+
31
+ /**
32
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
33
+ * character of `string`.
34
+ *
35
+ * @private
36
+ * @param {string} string The string to inspect.
37
+ * @returns {number} Returns the index of the last non-whitespace character.
38
+ */
39
+ function trimmedEndIndex$1(string) {
40
+ var index = string.length;
41
+
42
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
43
+ return index;
44
+ }
45
+
46
+ var _trimmedEndIndex = trimmedEndIndex$1;
47
+
48
+ var trimmedEndIndex = _trimmedEndIndex;
49
+
50
+ /** Used to match leading whitespace. */
51
+ var reTrimStart = /^\s+/;
52
+
53
+ /**
54
+ * The base implementation of `_.trim`.
55
+ *
56
+ * @private
57
+ * @param {string} string The string to trim.
58
+ * @returns {string} Returns the trimmed string.
59
+ */
60
+ function baseTrim$1(string) {
61
+ return string
62
+ ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
63
+ : string;
64
+ }
65
+
66
+ var _baseTrim = baseTrim$1;
67
+
68
+ var baseGetTag = _baseGetTag,
69
+ isObjectLike = isObjectLike_1;
70
+
71
+ /** `Object#toString` result references. */
72
+ var symbolTag = '[object Symbol]';
73
+
74
+ /**
75
+ * Checks if `value` is classified as a `Symbol` primitive or object.
76
+ *
77
+ * @static
78
+ * @memberOf _
79
+ * @since 4.0.0
80
+ * @category Lang
81
+ * @param {*} value The value to check.
82
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
83
+ * @example
84
+ *
85
+ * _.isSymbol(Symbol.iterator);
86
+ * // => true
87
+ *
88
+ * _.isSymbol('abc');
89
+ * // => false
90
+ */
91
+ function isSymbol$1(value) {
92
+ return typeof value == 'symbol' ||
93
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
94
+ }
95
+
96
+ var isSymbol_1 = isSymbol$1;
97
+
98
+ var baseTrim = _baseTrim,
99
+ isObject$1 = isObject_1,
100
+ isSymbol = isSymbol_1;
101
+
102
+ /** Used as references for various `Number` constants. */
103
+ var NAN = 0 / 0;
104
+
105
+ /** Used to detect bad signed hexadecimal string values. */
106
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
107
+
108
+ /** Used to detect binary string values. */
109
+ var reIsBinary = /^0b[01]+$/i;
110
+
111
+ /** Used to detect octal string values. */
112
+ var reIsOctal = /^0o[0-7]+$/i;
113
+
114
+ /** Built-in method references without a dependency on `root`. */
115
+ var freeParseInt = parseInt;
116
+
117
+ /**
118
+ * Converts `value` to a number.
119
+ *
120
+ * @static
121
+ * @memberOf _
122
+ * @since 4.0.0
123
+ * @category Lang
124
+ * @param {*} value The value to process.
125
+ * @returns {number} Returns the number.
126
+ * @example
127
+ *
128
+ * _.toNumber(3.2);
129
+ * // => 3.2
130
+ *
131
+ * _.toNumber(Number.MIN_VALUE);
132
+ * // => 5e-324
133
+ *
134
+ * _.toNumber(Infinity);
135
+ * // => Infinity
136
+ *
137
+ * _.toNumber('3.2');
138
+ * // => 3.2
139
+ */
140
+ function toNumber$1(value) {
141
+ if (typeof value == 'number') {
142
+ return value;
143
+ }
144
+ if (isSymbol(value)) {
145
+ return NAN;
146
+ }
147
+ if (isObject$1(value)) {
148
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
149
+ value = isObject$1(other) ? (other + '') : other;
150
+ }
151
+ if (typeof value != 'string') {
152
+ return value === 0 ? value : +value;
153
+ }
154
+ value = baseTrim(value);
155
+ var isBinary = reIsBinary.test(value);
156
+ return (isBinary || reIsOctal.test(value))
157
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
158
+ : (reIsBadHex.test(value) ? NAN : +value);
159
+ }
160
+
161
+ var toNumber_1 = toNumber$1;
162
+
163
+ var isObject = isObject_1,
164
+ now = now_1,
165
+ toNumber = toNumber_1;
166
+
167
+ /** Error message constants. */
168
+ var FUNC_ERROR_TEXT = 'Expected a function';
169
+
170
+ /* Built-in method references for those with the same name as other `lodash` methods. */
171
+ var nativeMax = Math.max,
172
+ nativeMin = Math.min;
173
+
174
+ /**
175
+ * Creates a debounced function that delays invoking `func` until after `wait`
176
+ * milliseconds have elapsed since the last time the debounced function was
177
+ * invoked. The debounced function comes with a `cancel` method to cancel
178
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
179
+ * Provide `options` to indicate whether `func` should be invoked on the
180
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
181
+ * with the last arguments provided to the debounced function. Subsequent
182
+ * calls to the debounced function return the result of the last `func`
183
+ * invocation.
184
+ *
185
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
186
+ * invoked on the trailing edge of the timeout only if the debounced function
187
+ * is invoked more than once during the `wait` timeout.
188
+ *
189
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
190
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
191
+ *
192
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
193
+ * for details over the differences between `_.debounce` and `_.throttle`.
194
+ *
195
+ * @static
196
+ * @memberOf _
197
+ * @since 0.1.0
198
+ * @category Function
199
+ * @param {Function} func The function to debounce.
200
+ * @param {number} [wait=0] The number of milliseconds to delay.
201
+ * @param {Object} [options={}] The options object.
202
+ * @param {boolean} [options.leading=false]
203
+ * Specify invoking on the leading edge of the timeout.
204
+ * @param {number} [options.maxWait]
205
+ * The maximum time `func` is allowed to be delayed before it's invoked.
206
+ * @param {boolean} [options.trailing=true]
207
+ * Specify invoking on the trailing edge of the timeout.
208
+ * @returns {Function} Returns the new debounced function.
209
+ * @example
210
+ *
211
+ * // Avoid costly calculations while the window size is in flux.
212
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
213
+ *
214
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
215
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
216
+ * 'leading': true,
217
+ * 'trailing': false
218
+ * }));
219
+ *
220
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
221
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
222
+ * var source = new EventSource('/stream');
223
+ * jQuery(source).on('message', debounced);
224
+ *
225
+ * // Cancel the trailing debounced invocation.
226
+ * jQuery(window).on('popstate', debounced.cancel);
227
+ */
228
+ function debounce(func, wait, options) {
229
+ var lastArgs,
230
+ lastThis,
231
+ maxWait,
232
+ result,
233
+ timerId,
234
+ lastCallTime,
235
+ lastInvokeTime = 0,
236
+ leading = false,
237
+ maxing = false,
238
+ trailing = true;
239
+
240
+ if (typeof func != 'function') {
241
+ throw new TypeError(FUNC_ERROR_TEXT);
242
+ }
243
+ wait = toNumber(wait) || 0;
244
+ if (isObject(options)) {
245
+ leading = !!options.leading;
246
+ maxing = 'maxWait' in options;
247
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
248
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
249
+ }
250
+
251
+ function invokeFunc(time) {
252
+ var args = lastArgs,
253
+ thisArg = lastThis;
254
+
255
+ lastArgs = lastThis = undefined;
256
+ lastInvokeTime = time;
257
+ result = func.apply(thisArg, args);
258
+ return result;
259
+ }
260
+
261
+ function leadingEdge(time) {
262
+ // Reset any `maxWait` timer.
263
+ lastInvokeTime = time;
264
+ // Start the timer for the trailing edge.
265
+ timerId = setTimeout(timerExpired, wait);
266
+ // Invoke the leading edge.
267
+ return leading ? invokeFunc(time) : result;
268
+ }
269
+
270
+ function remainingWait(time) {
271
+ var timeSinceLastCall = time - lastCallTime,
272
+ timeSinceLastInvoke = time - lastInvokeTime,
273
+ timeWaiting = wait - timeSinceLastCall;
274
+
275
+ return maxing
276
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
277
+ : timeWaiting;
278
+ }
279
+
280
+ function shouldInvoke(time) {
281
+ var timeSinceLastCall = time - lastCallTime,
282
+ timeSinceLastInvoke = time - lastInvokeTime;
283
+
284
+ // Either this is the first call, activity has stopped and we're at the
285
+ // trailing edge, the system time has gone backwards and we're treating
286
+ // it as the trailing edge, or we've hit the `maxWait` limit.
287
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
288
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
289
+ }
290
+
291
+ function timerExpired() {
292
+ var time = now();
293
+ if (shouldInvoke(time)) {
294
+ return trailingEdge(time);
295
+ }
296
+ // Restart the timer.
297
+ timerId = setTimeout(timerExpired, remainingWait(time));
298
+ }
299
+
300
+ function trailingEdge(time) {
301
+ timerId = undefined;
302
+
303
+ // Only invoke if we have `lastArgs` which means `func` has been
304
+ // debounced at least once.
305
+ if (trailing && lastArgs) {
306
+ return invokeFunc(time);
307
+ }
308
+ lastArgs = lastThis = undefined;
309
+ return result;
310
+ }
311
+
312
+ function cancel() {
313
+ if (timerId !== undefined) {
314
+ clearTimeout(timerId);
315
+ }
316
+ lastInvokeTime = 0;
317
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
318
+ }
319
+
320
+ function flush() {
321
+ return timerId === undefined ? result : trailingEdge(now());
322
+ }
323
+
324
+ function debounced() {
325
+ var time = now(),
326
+ isInvoking = shouldInvoke(time);
327
+
328
+ lastArgs = arguments;
329
+ lastThis = this;
330
+ lastCallTime = time;
331
+
332
+ if (isInvoking) {
333
+ if (timerId === undefined) {
334
+ return leadingEdge(lastCallTime);
335
+ }
336
+ if (maxing) {
337
+ // Handle invocations in a tight loop.
338
+ clearTimeout(timerId);
339
+ timerId = setTimeout(timerExpired, wait);
340
+ return invokeFunc(lastCallTime);
341
+ }
342
+ }
343
+ if (timerId === undefined) {
344
+ timerId = setTimeout(timerExpired, wait);
345
+ }
346
+ return result;
347
+ }
348
+ debounced.cancel = cancel;
349
+ debounced.flush = flush;
350
+ return debounced;
351
+ }
352
+
353
+ var debounce_1 = debounce;
354
+
355
+ export { debounce_1 as d };