mazey 3.6.0 → 3.6.2
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/README.md +148 -148
- package/lib/index.cjs.js +39 -2
- package/lib/index.d.ts +34 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +39 -3
- package/lib/mazey.min.js +2 -2
- package/package.json +1 -1
- package/README_CN.md +0 -361
- package/examples/index.html +0 -21
- package/examples/index.ts +0 -121
- package/images/mazey-v1.4.39.svg +0 -1
- package/src/index.ts +0 -2543
- package/src/preview.js +0 -3
package/README.md
CHANGED
|
@@ -63,20 +63,16 @@ There ara some examples maintained by hand below. For more information, please c
|
|
|
63
63
|
* [windowLoaded](#windowloaded)
|
|
64
64
|
- [Util](#util)
|
|
65
65
|
* [isNumber](#isnumber)
|
|
66
|
-
* [generateRndNum](#generaterndnum)
|
|
67
66
|
* [isJsonString](#isjsonstring)
|
|
67
|
+
* [isValidData](#isvaliddata)
|
|
68
|
+
* [generateRndNum](#generaterndnum)
|
|
68
69
|
* [formatDate](#formatdate)
|
|
69
70
|
* [debounce](#debounce)
|
|
70
71
|
* [throttle](#throttle)
|
|
71
72
|
* [camelCaseToKebabCase](#camelcasetokebabcase)
|
|
72
73
|
* [camelCase2Underscore](#camelcase2underscore)
|
|
73
|
-
* [mTrim](#mtrim)
|
|
74
74
|
* [deepCopyObject](#deepcopyobject)
|
|
75
|
-
* [
|
|
76
|
-
- [DOM](#dom)
|
|
77
|
-
* [addStyle](#addstyle)
|
|
78
|
-
* [newLine](#newline)
|
|
79
|
-
* [Class](#class)
|
|
75
|
+
* [mTrim](#mtrim)
|
|
80
76
|
- [URL](#url)
|
|
81
77
|
* [getQueryParam](#getqueryparam)
|
|
82
78
|
* [getUrlParam](#geturlparam)
|
|
@@ -84,8 +80,12 @@ There ara some examples maintained by hand below. For more information, please c
|
|
|
84
80
|
* [getDomain](#getdomain)
|
|
85
81
|
* [updateQueryParam](#updatequeryparam)
|
|
86
82
|
- [Cache Data](#cache-data)
|
|
87
|
-
* [Storage](#storage)
|
|
88
83
|
* [Cookie](#cookie)
|
|
84
|
+
* [Storage](#storage)
|
|
85
|
+
- [DOM](#dom)
|
|
86
|
+
* [addStyle](#addstyle)
|
|
87
|
+
* [Class](#class)
|
|
88
|
+
* [newLine](#newline)
|
|
89
89
|
- [Calculate and Formula](#calculate-and-formula)
|
|
90
90
|
* [inRate](#inrate)
|
|
91
91
|
* [calLongestCommonSubstring](#callongestcommonsubstring)
|
|
@@ -210,19 +210,6 @@ isNumber(NaN, { isNaNAsNumber: true, isUnFiniteAsNumber: true }); // true
|
|
|
210
210
|
@returns {boolean} true 是数字
|
|
211
211
|
@category Util -->
|
|
212
212
|
|
|
213
|
-
#### generateRndNum
|
|
214
|
-
|
|
215
|
-
Produce a random string of number, `generateRndNum(7)` => '7658495'.
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
generateRndNum(4); // '9730'
|
|
219
|
-
generateRndNum(7); // '2262490'
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
<!-- @param {number} n Length
|
|
223
|
-
@returns {string} Return the random string.
|
|
224
|
-
@category Util -->
|
|
225
|
-
|
|
226
213
|
#### isJsonString
|
|
227
214
|
|
|
228
215
|
Check whether it is a valid JSON string.
|
|
@@ -245,6 +232,57 @@ true
|
|
|
245
232
|
@returns {boolean} Return the result of checking.
|
|
246
233
|
@category Util -->
|
|
247
234
|
|
|
235
|
+
#### isValidData
|
|
236
|
+
|
|
237
|
+
Determine the validity of the data.
|
|
238
|
+
|
|
239
|
+
Usage:
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
const validData = {
|
|
243
|
+
a: {
|
|
244
|
+
b: {
|
|
245
|
+
c: 413
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const isValidDataResA = isValidData(validData, ['a', 'b', 'c'], 2333);
|
|
251
|
+
const isValidDataResB = isValidData(validData, ['a', 'b', 'c'], 413);
|
|
252
|
+
const isValidDataResC = isValidData(validData, ['d', 'd'], 413);
|
|
253
|
+
|
|
254
|
+
console.log('isValidDataResA:', isValidDataResA);
|
|
255
|
+
console.log('isValidDataResB:', isValidDataResB);
|
|
256
|
+
console.log('isValidDataResC:', isValidDataResC);
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
Output:
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
isValidDataResA: false
|
|
263
|
+
isValidDataResB: true
|
|
264
|
+
isValidDataResC: false
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
<!-- @param {any} data Original Data
|
|
268
|
+
@param {string[]} attributes Data Attributes
|
|
269
|
+
@param {any} validValue Given Value for verifying.
|
|
270
|
+
@returns {boolean} Return TRUE if the data is valid.
|
|
271
|
+
@category Util -->
|
|
272
|
+
|
|
273
|
+
#### generateRndNum
|
|
274
|
+
|
|
275
|
+
Produce a random string of number, `generateRndNum(7)` => '7658495'.
|
|
276
|
+
|
|
277
|
+
```
|
|
278
|
+
generateRndNum(4); // '9730'
|
|
279
|
+
generateRndNum(7); // '2262490'
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
<!-- @param {number} n Length
|
|
283
|
+
@returns {string} Return the random string.
|
|
284
|
+
@category Util -->
|
|
285
|
+
|
|
248
286
|
#### formatDate
|
|
249
287
|
|
|
250
288
|
Return the formatted date string in the given format.
|
|
@@ -328,19 +366,6 @@ camelCase2Underscore('aBC'); // a_b_c
|
|
|
328
366
|
@returns {string} 'a_b_c'
|
|
329
367
|
@category Util -->
|
|
330
368
|
|
|
331
|
-
#### mTrim
|
|
332
|
-
|
|
333
|
-
Remove leading and trailing whitespace or specified characters from string.
|
|
334
|
-
|
|
335
|
-
```
|
|
336
|
-
mTrim(' 1 2 3 '); // '1 2 3'
|
|
337
|
-
mTrim('abc '); // 'abc'
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
<!-- @param {string} str The string to trim.
|
|
341
|
-
@returns {string} Trimmed string.
|
|
342
|
-
@category Util -->
|
|
343
|
-
|
|
344
369
|
#### deepCopyObject
|
|
345
370
|
|
|
346
371
|
Clone Object deeply.
|
|
@@ -363,121 +388,19 @@ Output:
|
|
|
363
388
|
@returns {object} Returns the deep cloned value.
|
|
364
389
|
@category Util -->
|
|
365
390
|
|
|
366
|
-
####
|
|
367
|
-
|
|
368
|
-
Determine the validity of the data.
|
|
369
|
-
|
|
370
|
-
Usage:
|
|
371
|
-
|
|
372
|
-
```
|
|
373
|
-
const validData = {
|
|
374
|
-
a: {
|
|
375
|
-
b: {
|
|
376
|
-
c: 413
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
const isValidDataResA = isValidData(validData, ['a', 'b', 'c'], 2333);
|
|
382
|
-
const isValidDataResB = isValidData(validData, ['a', 'b', 'c'], 413);
|
|
383
|
-
const isValidDataResC = isValidData(validData, ['d', 'd'], 413);
|
|
384
|
-
|
|
385
|
-
console.log('isValidDataResA:', isValidDataResA);
|
|
386
|
-
console.log('isValidDataResB:', isValidDataResB);
|
|
387
|
-
console.log('isValidDataResC:', isValidDataResC);
|
|
388
|
-
```
|
|
391
|
+
#### mTrim
|
|
389
392
|
|
|
390
|
-
|
|
393
|
+
Remove leading and trailing whitespace or specified characters from string.
|
|
391
394
|
|
|
392
395
|
```
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
isValidDataResC: false
|
|
396
|
+
mTrim(' 1 2 3 '); // '1 2 3'
|
|
397
|
+
mTrim('abc '); // 'abc'
|
|
396
398
|
```
|
|
397
399
|
|
|
398
|
-
<!-- @param {
|
|
399
|
-
@
|
|
400
|
-
@param {any} validValue Given Value for verifying.
|
|
401
|
-
@returns {boolean} Return TRUE if the data is valid.
|
|
400
|
+
<!-- @param {string} str The string to trim.
|
|
401
|
+
@returns {string} Trimmed string.
|
|
402
402
|
@category Util -->
|
|
403
403
|
|
|
404
|
-
### DOM
|
|
405
|
-
|
|
406
|
-
#### addStyle
|
|
407
|
-
|
|
408
|
-
Add `<style>` in `<head>`.
|
|
409
|
-
|
|
410
|
-
<!-- ZH: 添加样式标签; style: 样式标签内的字符串; id: `<style>` 标签的 `id`; 返回: 添加成功/失败 -->
|
|
411
|
-
|
|
412
|
-
Example 1: Add the `<style>` with `id`, and repeated invoking will update the content instead of adding a new one.
|
|
413
|
-
|
|
414
|
-
```
|
|
415
|
-
addStyle(
|
|
416
|
-
`
|
|
417
|
-
body {
|
|
418
|
-
background-color: #333;
|
|
419
|
-
}
|
|
420
|
-
`,
|
|
421
|
-
{
|
|
422
|
-
id: 'test',
|
|
423
|
-
}
|
|
424
|
-
);
|
|
425
|
-
// <style id="test">
|
|
426
|
-
// body {
|
|
427
|
-
// background-color: #333;
|
|
428
|
-
// }
|
|
429
|
-
// </style>
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
Example 2: Add the `<style>` without `id`, and repeated invoking will adding a new one.
|
|
433
|
-
|
|
434
|
-
```
|
|
435
|
-
addStyle(
|
|
436
|
-
`
|
|
437
|
-
body {
|
|
438
|
-
background-color: #444;
|
|
439
|
-
}
|
|
440
|
-
`
|
|
441
|
-
);
|
|
442
|
-
// <style>
|
|
443
|
-
// body {
|
|
444
|
-
// background-color: #444;
|
|
445
|
-
// }
|
|
446
|
-
// </style>
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
<!-- @category DOM -->
|
|
450
|
-
|
|
451
|
-
#### newLine
|
|
452
|
-
|
|
453
|
-
Make a newline of HTML.
|
|
454
|
-
|
|
455
|
-
```
|
|
456
|
-
newLine('a\nb\nc'); // 'a<br />b<br />c'
|
|
457
|
-
newLine('a\n\nbc'); // 'a<br /><br />bc'
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
<!-- @param {string} str The string to make a newline.
|
|
461
|
-
@returns {string} A newline with `br`.
|
|
462
|
-
@category DOM -->
|
|
463
|
-
|
|
464
|
-
#### Class
|
|
465
|
-
|
|
466
|
-
Modify `class`.
|
|
467
|
-
|
|
468
|
-
```
|
|
469
|
-
const dom = document.querySelector('#box');
|
|
470
|
-
|
|
471
|
-
// Determine `class`
|
|
472
|
-
hasClass(dom, 'test');
|
|
473
|
-
// Add `class`
|
|
474
|
-
addClass(dom, 'test');
|
|
475
|
-
// Remove `class`
|
|
476
|
-
removeClass(dom, 'test');
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
<!-- @category DOM -->
|
|
480
|
-
|
|
481
404
|
### URL
|
|
482
405
|
|
|
483
406
|
#### getQueryParam
|
|
@@ -581,6 +504,19 @@ http://example.com/?t1=1&t2=2&t3=3&t4=four
|
|
|
581
504
|
|
|
582
505
|
### Cache Data
|
|
583
506
|
|
|
507
|
+
#### Cookie
|
|
508
|
+
|
|
509
|
+
Handle Cookie.
|
|
510
|
+
|
|
511
|
+
<!-- ZH: 设置/获取 Cookie -->
|
|
512
|
+
|
|
513
|
+
```
|
|
514
|
+
setCookie('test', '123', 30, 'example.com'); // key value day domain
|
|
515
|
+
getCookie('test'); // 123
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
<!-- @category Cache Data -->
|
|
519
|
+
|
|
584
520
|
#### Storage
|
|
585
521
|
|
|
586
522
|
Handle Storage (Keep fit for JSON, it can tansfer format automatically).
|
|
@@ -608,18 +544,82 @@ function mGetLocalStorage (key) {
|
|
|
608
544
|
@returns {any} 返回值
|
|
609
545
|
@category Cache Data -->
|
|
610
546
|
|
|
611
|
-
|
|
547
|
+
### DOM
|
|
612
548
|
|
|
613
|
-
|
|
549
|
+
#### addStyle
|
|
614
550
|
|
|
615
|
-
|
|
551
|
+
Add `<style>` in `<head>`.
|
|
552
|
+
|
|
553
|
+
<!-- ZH: 添加样式标签; style: 样式标签内的字符串; id: `<style>` 标签的 `id`; 返回: 添加成功/失败 -->
|
|
554
|
+
|
|
555
|
+
Example 1: Add the `<style>` with `id`, and repeated invoking will update the content instead of adding a new one.
|
|
616
556
|
|
|
617
557
|
```
|
|
618
|
-
|
|
619
|
-
|
|
558
|
+
addStyle(
|
|
559
|
+
`
|
|
560
|
+
body {
|
|
561
|
+
background-color: #333;
|
|
562
|
+
}
|
|
563
|
+
`,
|
|
564
|
+
{
|
|
565
|
+
id: 'test',
|
|
566
|
+
}
|
|
567
|
+
);
|
|
568
|
+
// <style id="test">
|
|
569
|
+
// body {
|
|
570
|
+
// background-color: #333;
|
|
571
|
+
// }
|
|
572
|
+
// </style>
|
|
620
573
|
```
|
|
621
574
|
|
|
622
|
-
|
|
575
|
+
Example 2: Add the `<style>` without `id`, and repeated invoking will adding a new one.
|
|
576
|
+
|
|
577
|
+
```
|
|
578
|
+
addStyle(
|
|
579
|
+
`
|
|
580
|
+
body {
|
|
581
|
+
background-color: #444;
|
|
582
|
+
}
|
|
583
|
+
`
|
|
584
|
+
);
|
|
585
|
+
// <style>
|
|
586
|
+
// body {
|
|
587
|
+
// background-color: #444;
|
|
588
|
+
// }
|
|
589
|
+
// </style>
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
<!-- @category DOM -->
|
|
593
|
+
|
|
594
|
+
#### Class
|
|
595
|
+
|
|
596
|
+
Modify `class`.
|
|
597
|
+
|
|
598
|
+
```
|
|
599
|
+
const dom = document.querySelector('#box');
|
|
600
|
+
|
|
601
|
+
// Determine `class`
|
|
602
|
+
hasClass(dom, 'test');
|
|
603
|
+
// Add `class`
|
|
604
|
+
addClass(dom, 'test');
|
|
605
|
+
// Remove `class`
|
|
606
|
+
removeClass(dom, 'test');
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
<!-- @category DOM -->
|
|
610
|
+
|
|
611
|
+
#### newLine
|
|
612
|
+
|
|
613
|
+
Make a newline of HTML.
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
newLine('a\nb\nc'); // 'a<br />b<br />c'
|
|
617
|
+
newLine('a\n\nbc'); // 'a<br /><br />bc'
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
<!-- @param {string} str The string to make a newline.
|
|
621
|
+
@returns {string} A newline with `br`.
|
|
622
|
+
@category DOM -->
|
|
623
623
|
|
|
624
624
|
### Calculate and Formula
|
|
625
625
|
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey v3.6.
|
|
2
|
+
* mazey v3.6.2
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4401,6 +4401,7 @@ function generateRndNum(n) {
|
|
|
4401
4401
|
* @method generateUniqueNum
|
|
4402
4402
|
* @description 根据时间生成唯一标志的数字 mGenerateUniqueNum() => 1538324722364123。
|
|
4403
4403
|
* @param {number} n 随机数的长度
|
|
4404
|
+
* @category Util
|
|
4404
4405
|
*/
|
|
4405
4406
|
function generateUniqueNum(n) {
|
|
4406
4407
|
if (n === void 0) {
|
|
@@ -4416,6 +4417,7 @@ function generateUniqueNum(n) {
|
|
|
4416
4417
|
* @description 浮点数转为百分比 0.2 => 20%。
|
|
4417
4418
|
* @param {number} num 浮点数
|
|
4418
4419
|
* @param {number} fixSize 保留几位浮点数
|
|
4420
|
+
* @category Util
|
|
4419
4421
|
*/
|
|
4420
4422
|
function floatToPercent(num, fixSize) {
|
|
4421
4423
|
if (fixSize === void 0) {
|
|
@@ -4432,6 +4434,7 @@ function floatToPercent(num, fixSize) {
|
|
|
4432
4434
|
/**
|
|
4433
4435
|
* @method floatFixed
|
|
4434
4436
|
* @description 浮点数保留指定位。
|
|
4437
|
+
* @category Util
|
|
4435
4438
|
*/
|
|
4436
4439
|
function floatFixed(num, size) {
|
|
4437
4440
|
if (size === void 0) {
|
|
@@ -4442,6 +4445,7 @@ function floatFixed(num, size) {
|
|
|
4442
4445
|
/**
|
|
4443
4446
|
* @method cancelBubble
|
|
4444
4447
|
* @description 阻止冒泡。
|
|
4448
|
+
* @category Util
|
|
4445
4449
|
*/
|
|
4446
4450
|
function cancelBubble(e) {
|
|
4447
4451
|
var ev = e || window.event;
|
|
@@ -4655,6 +4659,7 @@ function debounce(func, wait, immediate) {
|
|
|
4655
4659
|
* @param {number/Date} end 结束时间戳 1585325367122
|
|
4656
4660
|
* @param {string} options.type 返回类型 d: 2(天) text: 2 天 4 时...
|
|
4657
4661
|
* @returns {string/number} 取决于 type
|
|
4662
|
+
* @category Util
|
|
4658
4663
|
*/
|
|
4659
4664
|
function friendlyInterval(start, end, options) {
|
|
4660
4665
|
if (start === void 0) {
|
|
@@ -4755,6 +4760,7 @@ function isNumber(num, options) {
|
|
|
4755
4760
|
* @method doFn
|
|
4756
4761
|
* @description 执行有效函数
|
|
4757
4762
|
* @param {function} fn 等待被执行的未知是否有效的函数
|
|
4763
|
+
* @category Util
|
|
4758
4764
|
*/
|
|
4759
4765
|
function doFn(fn) {
|
|
4760
4766
|
var params = [];
|
|
@@ -5141,6 +5147,7 @@ function loadScript(url, options) {
|
|
|
5141
5147
|
/**
|
|
5142
5148
|
* @method mNow
|
|
5143
5149
|
* @description 获取时间戳
|
|
5150
|
+
* @category Util
|
|
5144
5151
|
*/
|
|
5145
5152
|
function mNow() {
|
|
5146
5153
|
var ret = 0;
|
|
@@ -5789,6 +5796,7 @@ function getBrowserInfo() {
|
|
|
5789
5796
|
* @description 去除HTML标签
|
|
5790
5797
|
* @param {string} str 带html标签的字符串
|
|
5791
5798
|
* @returns {string} 字符串
|
|
5799
|
+
* @category Util
|
|
5792
5800
|
*/
|
|
5793
5801
|
function clearHtml(str) {
|
|
5794
5802
|
return str.replace(/<\/?.+?>/g, '').replace(/[\r\n]/g, '');
|
|
@@ -5799,7 +5807,8 @@ function clearHtml(str) {
|
|
|
5799
5807
|
* @param {string} str 要截取的字符串
|
|
5800
5808
|
* @param {number} len
|
|
5801
5809
|
* @param {boolean} hasDot
|
|
5802
|
-
* @
|
|
5810
|
+
* @returns {string} 返回截取后的字符串
|
|
5811
|
+
* @category Util
|
|
5803
5812
|
*/
|
|
5804
5813
|
function cutCHSString(str, len, hasDot) {
|
|
5805
5814
|
if (hasDot === void 0) {
|
|
@@ -6101,6 +6110,9 @@ function genCustomConsole(prefix, options) {
|
|
|
6101
6110
|
* Verify the validity of axios response.
|
|
6102
6111
|
*
|
|
6103
6112
|
* Reference: [Handling Errors](https://axios-http.com/docs/handling_errors)
|
|
6113
|
+
*
|
|
6114
|
+
* @category Util
|
|
6115
|
+
* @hidden
|
|
6104
6116
|
*/
|
|
6105
6117
|
function zAxiosIsValidRes(res, options) {
|
|
6106
6118
|
if (options === void 0) {
|
|
@@ -6129,6 +6141,8 @@ function zAxiosIsValidRes(res, options) {
|
|
|
6129
6141
|
}
|
|
6130
6142
|
/**
|
|
6131
6143
|
* Verify the validity of a non-empty array.
|
|
6144
|
+
*
|
|
6145
|
+
* @category Util
|
|
6132
6146
|
*/
|
|
6133
6147
|
function isNonEmptyArray(arr) {
|
|
6134
6148
|
var ret = false;
|
|
@@ -6193,6 +6207,8 @@ function isValidData(data, attributes, validValue) {
|
|
|
6193
6207
|
}
|
|
6194
6208
|
/**
|
|
6195
6209
|
* 语义化文件大小, 把字节转换成正常文件大小.
|
|
6210
|
+
*
|
|
6211
|
+
* @category Util
|
|
6196
6212
|
*/
|
|
6197
6213
|
function getFileSize(size) {
|
|
6198
6214
|
var toCeilStr = function toCeilStr(n) {
|
|
@@ -6218,6 +6234,8 @@ function getFileSize(size) {
|
|
|
6218
6234
|
* Detect webp support.
|
|
6219
6235
|
*
|
|
6220
6236
|
* Reference: [Detect WEBP Support with JavaScript](https://davidwalsh.name/detect-webp)
|
|
6237
|
+
*
|
|
6238
|
+
* @category Browser Information
|
|
6221
6239
|
*/
|
|
6222
6240
|
function isSupportWebp() {
|
|
6223
6241
|
var fn = function fn(resolve) {
|
|
@@ -6236,6 +6254,8 @@ function isSupportWebp() {
|
|
|
6236
6254
|
* Generate a Hash Code from a string.
|
|
6237
6255
|
*
|
|
6238
6256
|
* Reference: [Generate a Hash from string in Javascript](https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery)
|
|
6257
|
+
*
|
|
6258
|
+
* @category Util
|
|
6239
6259
|
*/
|
|
6240
6260
|
function genHashCode(str) {
|
|
6241
6261
|
var hash = 0,
|
|
@@ -6414,6 +6434,22 @@ function isValidPhoneNumber(mobile) {
|
|
|
6414
6434
|
var reg = /^1[3456789]\d{9}$/;
|
|
6415
6435
|
return reg.test(mobile);
|
|
6416
6436
|
}
|
|
6437
|
+
/**
|
|
6438
|
+
* Check if the given string is a valid email.
|
|
6439
|
+
*
|
|
6440
|
+
* @example
|
|
6441
|
+
* ```js
|
|
6442
|
+
* console.log(isValidEmail('mazeyqian@gmail.com')); // true
|
|
6443
|
+
* ```
|
|
6444
|
+
*
|
|
6445
|
+
* @param email
|
|
6446
|
+
* @returns {boolean} Return true if the given string is a valid email.
|
|
6447
|
+
* @category Util
|
|
6448
|
+
*/
|
|
6449
|
+
function isValidEmail(email) {
|
|
6450
|
+
var reg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
6451
|
+
return reg.test(email);
|
|
6452
|
+
}
|
|
6417
6453
|
|
|
6418
6454
|
exports.addClass = addClass;
|
|
6419
6455
|
exports.addEvent = addEvent;
|
|
@@ -6456,6 +6492,7 @@ exports.isNumber = isNumber;
|
|
|
6456
6492
|
exports.isSafePWAEnv = isSafePWAEnv;
|
|
6457
6493
|
exports.isSupportWebp = isSupportWebp;
|
|
6458
6494
|
exports.isValidData = isValidData;
|
|
6495
|
+
exports.isValidEmail = isValidEmail;
|
|
6459
6496
|
exports.isValidPhoneNumber = isValidPhoneNumber;
|
|
6460
6497
|
exports.isValidUrl = isValidUrl;
|
|
6461
6498
|
exports.loadCSS = loadCSS;
|
package/lib/index.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ export declare function generateRndNum(n?: number): string;
|
|
|
259
259
|
* @method generateUniqueNum
|
|
260
260
|
* @description 根据时间生成唯一标志的数字 mGenerateUniqueNum() => 1538324722364123。
|
|
261
261
|
* @param {number} n 随机数的长度
|
|
262
|
+
* @category Util
|
|
262
263
|
*/
|
|
263
264
|
export declare function generateUniqueNum(n?: number): string;
|
|
264
265
|
/**
|
|
@@ -266,16 +267,19 @@ export declare function generateUniqueNum(n?: number): string;
|
|
|
266
267
|
* @description 浮点数转为百分比 0.2 => 20%。
|
|
267
268
|
* @param {number} num 浮点数
|
|
268
269
|
* @param {number} fixSize 保留几位浮点数
|
|
270
|
+
* @category Util
|
|
269
271
|
*/
|
|
270
272
|
export declare function floatToPercent(num: number, fixSize?: number): string;
|
|
271
273
|
/**
|
|
272
274
|
* @method floatFixed
|
|
273
275
|
* @description 浮点数保留指定位。
|
|
276
|
+
* @category Util
|
|
274
277
|
*/
|
|
275
278
|
export declare function floatFixed(num: string, size?: number): string;
|
|
276
279
|
/**
|
|
277
280
|
* @method cancelBubble
|
|
278
281
|
* @description 阻止冒泡。
|
|
282
|
+
* @category Util
|
|
279
283
|
*/
|
|
280
284
|
export declare function cancelBubble(e: any): void;
|
|
281
285
|
/**
|
|
@@ -369,6 +373,7 @@ export declare function debounce(func: any, wait: number, immediate?: any): any;
|
|
|
369
373
|
* @param {number/Date} end 结束时间戳 1585325367122
|
|
370
374
|
* @param {string} options.type 返回类型 d: 2(天) text: 2 天 4 时...
|
|
371
375
|
* @returns {string/number} 取决于 type
|
|
376
|
+
* @category Util
|
|
372
377
|
*/
|
|
373
378
|
export declare function friendlyInterval(start?: number, end?: number, options?: {
|
|
374
379
|
type?: string;
|
|
@@ -402,6 +407,7 @@ export declare function isNumber(num: any, options?: {
|
|
|
402
407
|
* @method doFn
|
|
403
408
|
* @description 执行有效函数
|
|
404
409
|
* @param {function} fn 等待被执行的未知是否有效的函数
|
|
410
|
+
* @category Util
|
|
405
411
|
*/
|
|
406
412
|
export declare function doFn(fn: any, ...params: any[]): any;
|
|
407
413
|
/**
|
|
@@ -587,6 +593,7 @@ export declare function loadScript(url: string, options?: {
|
|
|
587
593
|
/**
|
|
588
594
|
* @method mNow
|
|
589
595
|
* @description 获取时间戳
|
|
596
|
+
* @category Util
|
|
590
597
|
*/
|
|
591
598
|
export declare function mNow(): number;
|
|
592
599
|
/**
|
|
@@ -783,6 +790,7 @@ export declare function getBrowserInfo(): {
|
|
|
783
790
|
* @description 去除HTML标签
|
|
784
791
|
* @param {string} str 带html标签的字符串
|
|
785
792
|
* @returns {string} 字符串
|
|
793
|
+
* @category Util
|
|
786
794
|
*/
|
|
787
795
|
export declare function clearHtml(str: string): string;
|
|
788
796
|
/**
|
|
@@ -791,7 +799,8 @@ export declare function clearHtml(str: string): string;
|
|
|
791
799
|
* @param {string} str 要截取的字符串
|
|
792
800
|
* @param {number} len
|
|
793
801
|
* @param {boolean} hasDot
|
|
794
|
-
* @
|
|
802
|
+
* @returns {string} 返回截取后的字符串
|
|
803
|
+
* @category Util
|
|
795
804
|
*/
|
|
796
805
|
export declare function cutCHSString(str: string, len: number, hasDot?: boolean): string;
|
|
797
806
|
/**
|
|
@@ -904,6 +913,9 @@ export declare function genCustomConsole(prefix?: string, options?: {
|
|
|
904
913
|
* Verify the validity of axios response.
|
|
905
914
|
*
|
|
906
915
|
* Reference: [Handling Errors](https://axios-http.com/docs/handling_errors)
|
|
916
|
+
*
|
|
917
|
+
* @category Util
|
|
918
|
+
* @hidden
|
|
907
919
|
*/
|
|
908
920
|
export declare function zAxiosIsValidRes(res: any, options?: {
|
|
909
921
|
validStatusRange?: number[];
|
|
@@ -911,6 +923,8 @@ export declare function zAxiosIsValidRes(res: any, options?: {
|
|
|
911
923
|
}): boolean;
|
|
912
924
|
/**
|
|
913
925
|
* Verify the validity of a non-empty array.
|
|
926
|
+
*
|
|
927
|
+
* @category Util
|
|
914
928
|
*/
|
|
915
929
|
export declare function isNonEmptyArray(arr: any[]): boolean;
|
|
916
930
|
/**
|
|
@@ -953,18 +967,24 @@ export declare function isNonEmptyArray(arr: any[]): boolean;
|
|
|
953
967
|
export declare function isValidData(data: any, attributes: string[], validValue: any): boolean;
|
|
954
968
|
/**
|
|
955
969
|
* 语义化文件大小, 把字节转换成正常文件大小.
|
|
970
|
+
*
|
|
971
|
+
* @category Util
|
|
956
972
|
*/
|
|
957
973
|
export declare function getFileSize(size: number): string;
|
|
958
974
|
/**
|
|
959
975
|
* Detect webp support.
|
|
960
976
|
*
|
|
961
977
|
* Reference: [Detect WEBP Support with JavaScript](https://davidwalsh.name/detect-webp)
|
|
978
|
+
*
|
|
979
|
+
* @category Browser Information
|
|
962
980
|
*/
|
|
963
981
|
export declare function isSupportWebp(): Promise<boolean>;
|
|
964
982
|
/**
|
|
965
983
|
* Generate a Hash Code from a string.
|
|
966
984
|
*
|
|
967
985
|
* Reference: [Generate a Hash from string in Javascript](https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery)
|
|
986
|
+
*
|
|
987
|
+
* @category Util
|
|
968
988
|
*/
|
|
969
989
|
export declare function genHashCode(str: string): number;
|
|
970
990
|
/**
|
|
@@ -1060,5 +1080,18 @@ export declare function isValidUrl(url: string): boolean;
|
|
|
1060
1080
|
* @category Util
|
|
1061
1081
|
*/
|
|
1062
1082
|
export declare function isValidPhoneNumber(mobile: string): boolean;
|
|
1083
|
+
/**
|
|
1084
|
+
* Check if the given string is a valid email.
|
|
1085
|
+
*
|
|
1086
|
+
* @example
|
|
1087
|
+
* ```js
|
|
1088
|
+
* console.log(isValidEmail('mazeyqian@gmail.com')); // true
|
|
1089
|
+
* ```
|
|
1090
|
+
*
|
|
1091
|
+
* @param email
|
|
1092
|
+
* @returns {boolean} Return true if the given string is a valid email.
|
|
1093
|
+
* @category Util
|
|
1094
|
+
*/
|
|
1095
|
+
export declare function isValidEmail(email: string): boolean;
|
|
1063
1096
|
export {};
|
|
1064
1097
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
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