@vft/constants 0.0.71 → 0.0.74
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/dist/index.cjs +1 -0
- package/dist/index.d.cts +54 -0
- package/dist/index.d.ts +54 -5
- package/dist/index.js +1 -0
- package/package.json +7 -6
- package/dist/cjs/event-code.cjs +0 -1
- package/dist/cjs/event.cjs +0 -1
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/mime.cjs +0 -1
- package/dist/cjs/regular.cjs +0 -1
- package/dist/cjs/urls.cjs +0 -1
- package/dist/es/event-code.js +0 -30
- package/dist/es/event.js +0 -6
- package/dist/es/index.js +0 -33
- package/dist/es/mime.js +0 -16
- package/dist/es/regular.js +0 -17
- package/dist/es/urls.js +0 -4
- package/dist/event-code.d.ts +0 -18
- package/dist/event.d.ts +0 -3
- package/dist/mime.d.ts +0 -7
- package/dist/regular.d.ts +0 -14
- package/dist/urls.d.ts +0 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[`image/*`],t=[`audio/*`],n=[`video/*`],r=[`application/pdf`],i=[`.doc`,`.docx`,`application/msword`],a=[`.xls`,`.xlsx`,`.csv`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.ms-excel`],o=[`.ppt`,`.pptx`,`application/vnd.ms-powerpoint`],s=/^1[3-9]\d{9}$/,c=/^1\d{10}$/,l=/^[\u4e00-\u9fa5]{2,6}$/,u=/^\d{4}$/,d=/^\d{6}$/,f=/(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,p=/^\w{4}$/,m=/[\\\t\n]/g,h=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,g=/^\w+[^\s]+(\.[^\s]+)+$/,_=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,v=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,y=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,b=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,x={tab:`Tab`,enter:`Enter`,space:`Space`,left:`ArrowLeft`,up:`ArrowUp`,right:`ArrowRight`,down:`ArrowDown`,esc:`Escape`,delete:`Delete`,backspace:`Backspace`,numpadEnter:`NumpadEnter`,pageUp:`PageUp`,pageDown:`PageDown`,home:`Home`,end:`End`,metaLeft:`MetaLeft`},S=`update:modelValue`,C=`change`,w=`input`,T=`https://view.officeapps.live.com/op/view.aspx?src=`;exports.AUDIO_MIME=t,exports.CHANGE_EVENT=`change`,exports.EVENT_CODE=x,exports.EXCEL_MIME=a,exports.IMAGE_MIME=e,exports.INPUT_EVENT=`input`,exports.OFFICE_PREVIEW=`https://view.officeapps.live.com/op/view.aspx?src=`,exports.PDF_MIME=r,exports.PPT_MIME=o,exports.UPDATE_MODEL_EVENT=`update:modelValue`,exports.VIDEO_MIME=n,exports.WORD_MIME=i,exports.activityNameRegExp=l,exports.addressRegExp=g,exports.checkCodeFourRegExp=u,exports.checkCodeSixRegExp=d,exports.emailRegExp=_,exports.emojiRegExp=v,exports.imgUrlRegExp=b,exports.keywordCodeRegExp=h,exports.mobileRegExp=s,exports.mobileSimpleRegExp=c,exports.passwordRegExp=f,exports.pictureCodeRegExp=p,exports.searchRegExp=m,exports.videoUrlRegExp=y;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region src/mime.d.ts
|
|
2
|
+
declare const IMAGE_MIME: string[];
|
|
3
|
+
declare const AUDIO_MIME: string[];
|
|
4
|
+
declare const VIDEO_MIME: string[];
|
|
5
|
+
declare const PDF_MIME: string[];
|
|
6
|
+
declare const WORD_MIME: string[];
|
|
7
|
+
declare const EXCEL_MIME: string[];
|
|
8
|
+
declare const PPT_MIME: string[];
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/regular.d.ts
|
|
11
|
+
declare const mobileRegExp: RegExp;
|
|
12
|
+
declare const mobileSimpleRegExp: RegExp;
|
|
13
|
+
declare const activityNameRegExp: RegExp;
|
|
14
|
+
declare const checkCodeFourRegExp: RegExp;
|
|
15
|
+
declare const checkCodeSixRegExp: RegExp;
|
|
16
|
+
declare const passwordRegExp: RegExp;
|
|
17
|
+
declare const pictureCodeRegExp: RegExp;
|
|
18
|
+
declare const searchRegExp: RegExp;
|
|
19
|
+
declare const keywordCodeRegExp: RegExp;
|
|
20
|
+
declare const addressRegExp: RegExp;
|
|
21
|
+
declare const emailRegExp: RegExp;
|
|
22
|
+
declare const emojiRegExp: RegExp;
|
|
23
|
+
declare const videoUrlRegExp: RegExp;
|
|
24
|
+
declare const imgUrlRegExp: RegExp;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/event-code.d.ts
|
|
27
|
+
declare const EVENT_CODE: {
|
|
28
|
+
tab: string;
|
|
29
|
+
enter: string;
|
|
30
|
+
space: string;
|
|
31
|
+
left: string;
|
|
32
|
+
up: string;
|
|
33
|
+
right: string;
|
|
34
|
+
down: string;
|
|
35
|
+
esc: string;
|
|
36
|
+
delete: string;
|
|
37
|
+
backspace: string;
|
|
38
|
+
numpadEnter: string;
|
|
39
|
+
pageUp: string;
|
|
40
|
+
pageDown: string;
|
|
41
|
+
home: string;
|
|
42
|
+
end: string;
|
|
43
|
+
metaLeft: string;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/event.d.ts
|
|
47
|
+
declare const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
48
|
+
declare const CHANGE_EVENT = "change";
|
|
49
|
+
declare const INPUT_EVENT = "input";
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/urls.d.ts
|
|
52
|
+
declare const OFFICE_PREVIEW = "https://view.officeapps.live.com/op/view.aspx?src=";
|
|
53
|
+
//#endregion
|
|
54
|
+
export { AUDIO_MIME, CHANGE_EVENT, EVENT_CODE, EXCEL_MIME, IMAGE_MIME, INPUT_EVENT, OFFICE_PREVIEW, PDF_MIME, PPT_MIME, UPDATE_MODEL_EVENT, VIDEO_MIME, WORD_MIME, activityNameRegExp, addressRegExp, checkCodeFourRegExp, checkCodeSixRegExp, emailRegExp, emojiRegExp, imgUrlRegExp, keywordCodeRegExp, mobileRegExp, mobileSimpleRegExp, passwordRegExp, pictureCodeRegExp, searchRegExp, videoUrlRegExp };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region src/mime.d.ts
|
|
2
|
+
declare const IMAGE_MIME: string[];
|
|
3
|
+
declare const AUDIO_MIME: string[];
|
|
4
|
+
declare const VIDEO_MIME: string[];
|
|
5
|
+
declare const PDF_MIME: string[];
|
|
6
|
+
declare const WORD_MIME: string[];
|
|
7
|
+
declare const EXCEL_MIME: string[];
|
|
8
|
+
declare const PPT_MIME: string[];
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/regular.d.ts
|
|
11
|
+
declare const mobileRegExp: RegExp;
|
|
12
|
+
declare const mobileSimpleRegExp: RegExp;
|
|
13
|
+
declare const activityNameRegExp: RegExp;
|
|
14
|
+
declare const checkCodeFourRegExp: RegExp;
|
|
15
|
+
declare const checkCodeSixRegExp: RegExp;
|
|
16
|
+
declare const passwordRegExp: RegExp;
|
|
17
|
+
declare const pictureCodeRegExp: RegExp;
|
|
18
|
+
declare const searchRegExp: RegExp;
|
|
19
|
+
declare const keywordCodeRegExp: RegExp;
|
|
20
|
+
declare const addressRegExp: RegExp;
|
|
21
|
+
declare const emailRegExp: RegExp;
|
|
22
|
+
declare const emojiRegExp: RegExp;
|
|
23
|
+
declare const videoUrlRegExp: RegExp;
|
|
24
|
+
declare const imgUrlRegExp: RegExp;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/event-code.d.ts
|
|
27
|
+
declare const EVENT_CODE: {
|
|
28
|
+
tab: string;
|
|
29
|
+
enter: string;
|
|
30
|
+
space: string;
|
|
31
|
+
left: string;
|
|
32
|
+
up: string;
|
|
33
|
+
right: string;
|
|
34
|
+
down: string;
|
|
35
|
+
esc: string;
|
|
36
|
+
delete: string;
|
|
37
|
+
backspace: string;
|
|
38
|
+
numpadEnter: string;
|
|
39
|
+
pageUp: string;
|
|
40
|
+
pageDown: string;
|
|
41
|
+
home: string;
|
|
42
|
+
end: string;
|
|
43
|
+
metaLeft: string;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/event.d.ts
|
|
47
|
+
declare const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
48
|
+
declare const CHANGE_EVENT = "change";
|
|
49
|
+
declare const INPUT_EVENT = "input";
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/urls.d.ts
|
|
52
|
+
declare const OFFICE_PREVIEW = "https://view.officeapps.live.com/op/view.aspx?src=";
|
|
53
|
+
//#endregion
|
|
54
|
+
export { AUDIO_MIME, CHANGE_EVENT, EVENT_CODE, EXCEL_MIME, IMAGE_MIME, INPUT_EVENT, OFFICE_PREVIEW, PDF_MIME, PPT_MIME, UPDATE_MODEL_EVENT, VIDEO_MIME, WORD_MIME, activityNameRegExp, addressRegExp, checkCodeFourRegExp, checkCodeSixRegExp, emailRegExp, emojiRegExp, imgUrlRegExp, keywordCodeRegExp, mobileRegExp, mobileSimpleRegExp, passwordRegExp, pictureCodeRegExp, searchRegExp, videoUrlRegExp };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[`image/*`],t=[`audio/*`],n=[`video/*`],r=[`application/pdf`],i=[`.doc`,`.docx`,`application/msword`],a=[`.xls`,`.xlsx`,`.csv`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.ms-excel`],o=[`.ppt`,`.pptx`,`application/vnd.ms-powerpoint`],s=/^1[3-9]\d{9}$/,c=/^1\d{10}$/,l=/^[\u4e00-\u9fa5]{2,6}$/,u=/^\d{4}$/,d=/^\d{6}$/,f=/(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,p=/^\w{4}$/,m=/[\\\t\n]/g,h=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,g=/^\w+[^\s]+(\.[^\s]+)+$/,_=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,v=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,y=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,b=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,x={tab:`Tab`,enter:`Enter`,space:`Space`,left:`ArrowLeft`,up:`ArrowUp`,right:`ArrowRight`,down:`ArrowDown`,esc:`Escape`,delete:`Delete`,backspace:`Backspace`,numpadEnter:`NumpadEnter`,pageUp:`PageUp`,pageDown:`PageDown`,home:`Home`,end:`End`,metaLeft:`MetaLeft`},S=`update:modelValue`,C=`change`,w=`input`,T=`https://view.officeapps.live.com/op/view.aspx?src=`;export{t as AUDIO_MIME,C as CHANGE_EVENT,x as EVENT_CODE,a as EXCEL_MIME,e as IMAGE_MIME,w as INPUT_EVENT,T as OFFICE_PREVIEW,r as PDF_MIME,o as PPT_MIME,S as UPDATE_MODEL_EVENT,n as VIDEO_MIME,i as WORD_MIME,l as activityNameRegExp,g as addressRegExp,u as checkCodeFourRegExp,d as checkCodeSixRegExp,_ as emailRegExp,v as emojiRegExp,b as imgUrlRegExp,h as keywordCodeRegExp,s as mobileRegExp,c as mobileSimpleRegExp,f as passwordRegExp,p as pictureCodeRegExp,m as searchRegExp,y as videoUrlRegExp};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vft/constants",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"module": "./dist/
|
|
3
|
+
"version": "0.0.74",
|
|
4
|
+
"main": "./dist/index.cjs",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist"
|
|
8
9
|
],
|
|
@@ -13,14 +14,14 @@
|
|
|
13
14
|
"clean": "pnpm /^clean:/",
|
|
14
15
|
"clean:dist": "rimraf dist",
|
|
15
16
|
"clean:node_modules": "rimraf node_modules",
|
|
16
|
-
"build": "
|
|
17
|
+
"build": "tsdown -c ../../scripts/build/src/utils/tsdown.config.ts",
|
|
17
18
|
"pub": "pnpm build && tsx ../../scripts/build/src/publish.ts --pkg common/constants"
|
|
18
19
|
},
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
22
|
-
"require": "./dist/
|
|
23
|
-
"import": "./dist/
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"import": "./dist/index.js"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}
|
package/dist/cjs/event-code.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End",metaLeft:"MetaLeft"};exports.EVENT_CODE=e;
|
package/dist/cjs/event.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="update:modelValue",e="change",t="input";exports.CHANGE_EVENT=e;exports.INPUT_EVENT=t;exports.UPDATE_MODEL_EVENT=E;
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./mime.cjs"),e=require("./regular.cjs"),g=require("./event-code.cjs"),M=require("./event.cjs"),i=require("./urls.cjs");exports.AUDIO_MIME=E.AUDIO_MIME;exports.EXCEL_MIME=E.EXCEL_MIME;exports.IMAGE_MIME=E.IMAGE_MIME;exports.PDF_MIME=E.PDF_MIME;exports.PPT_MIME=E.PPT_MIME;exports.VIDEO_MIME=E.VIDEO_MIME;exports.WORD_MIME=E.WORD_MIME;exports.activityMobileRegExp=e.activityMobileRegExp;exports.activityNameRegExp=e.activityNameRegExp;exports.addressRegExp=e.addressRegExp;exports.checkCodeFourRegExp=e.checkCodeFourRegExp;exports.checkCodeSixRegExp=e.checkCodeSixRegExp;exports.emailRegExp=e.emailRegExp;exports.emojiRegExp=e.emojiRegExp;exports.imgUrlRegExp=e.imgUrlRegExp;exports.keywordCodeRegExp=e.keywordCodeRegExp;exports.mobileRegExp=e.mobileRegExp;exports.passwordRegExp=e.passwordRegExp;exports.pictureCodeRegExp=e.pictureCodeRegExp;exports.searchRegExp=e.searchRegExp;exports.videoUrlRegExp=e.videoUrlRegExp;exports.EVENT_CODE=g.EVENT_CODE;exports.CHANGE_EVENT=M.CHANGE_EVENT;exports.INPUT_EVENT=M.INPUT_EVENT;exports.UPDATE_MODEL_EVENT=M.UPDATE_MODEL_EVENT;exports.OFFICE_PREVIEW=i.OFFICE_PREVIEW;
|
package/dist/cjs/mime.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=["image/*"],o=["audio/*"],t=["video/*"],E=["application/pdf"],c=[".doc",".docx","application/msword"],e=[".xls",".xlsx",".csv","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"],n=[".ppt",".pptx","application/vnd.ms-powerpoint"];exports.AUDIO_MIME=o;exports.EXCEL_MIME=e;exports.IMAGE_MIME=M;exports.PDF_MIME=E;exports.PPT_MIME=n;exports.VIDEO_MIME=t;exports.WORD_MIME=c;
|
package/dist/cjs/regular.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=/^1\d{10}$/,p=/^1[3-9]\d{9}$/,g=/^[\u4e00-\u9fa5]{2,6}$/,o=/^\d{4}$/,t=/^\d{6}$/,d=/(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,c=/^\w{4}$/,s=/[\\\t\n]/g,i=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,x=/^\w+[^\s]+(\.[^\s]+)+$/,E=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,R=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,a=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,r=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i;exports.activityMobileRegExp=p;exports.activityNameRegExp=g;exports.addressRegExp=x;exports.checkCodeFourRegExp=o;exports.checkCodeSixRegExp=t;exports.emailRegExp=E;exports.emojiRegExp=R;exports.imgUrlRegExp=r;exports.keywordCodeRegExp=i;exports.mobileRegExp=e;exports.passwordRegExp=d;exports.pictureCodeRegExp=c;exports.searchRegExp=s;exports.videoUrlRegExp=a;
|
package/dist/cjs/urls.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://view.officeapps.live.com/op/view.aspx?src=";exports.OFFICE_PREVIEW=e;
|
package/dist/es/event-code.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
tab: "Tab",
|
|
3
|
-
enter: "Enter",
|
|
4
|
-
// 13
|
|
5
|
-
space: "Space",
|
|
6
|
-
// 32
|
|
7
|
-
left: "ArrowLeft",
|
|
8
|
-
// 37
|
|
9
|
-
up: "ArrowUp",
|
|
10
|
-
// 38
|
|
11
|
-
right: "ArrowRight",
|
|
12
|
-
// 39
|
|
13
|
-
down: "ArrowDown",
|
|
14
|
-
// 40
|
|
15
|
-
esc: "Escape",
|
|
16
|
-
// 27
|
|
17
|
-
delete: "Delete",
|
|
18
|
-
backspace: "Backspace",
|
|
19
|
-
// 8
|
|
20
|
-
numpadEnter: "NumpadEnter",
|
|
21
|
-
pageUp: "PageUp",
|
|
22
|
-
pageDown: "PageDown",
|
|
23
|
-
home: "Home",
|
|
24
|
-
end: "End",
|
|
25
|
-
metaLeft: "MetaLeft"
|
|
26
|
-
// command 91
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
e as EVENT_CODE
|
|
30
|
-
};
|
package/dist/es/event.js
DELETED
package/dist/es/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AUDIO_MIME as o, EXCEL_MIME as p, IMAGE_MIME as x, PDF_MIME as r, PPT_MIME as M, VIDEO_MIME as R, WORD_MIME as g } from "./mime.js";
|
|
2
|
-
import { activityMobileRegExp as _, activityNameRegExp as i, addressRegExp as m, checkCodeFourRegExp as t, checkCodeSixRegExp as d, emailRegExp as c, emojiRegExp as C, imgUrlRegExp as a, keywordCodeRegExp as D, mobileRegExp as N, passwordRegExp as T, pictureCodeRegExp as O, searchRegExp as P, videoUrlRegExp as V } from "./regular.js";
|
|
3
|
-
import { EVENT_CODE as l } from "./event-code.js";
|
|
4
|
-
import { CHANGE_EVENT as U, INPUT_EVENT as A, UPDATE_MODEL_EVENT as F } from "./event.js";
|
|
5
|
-
import { OFFICE_PREVIEW as k } from "./urls.js";
|
|
6
|
-
export {
|
|
7
|
-
o as AUDIO_MIME,
|
|
8
|
-
U as CHANGE_EVENT,
|
|
9
|
-
l as EVENT_CODE,
|
|
10
|
-
p as EXCEL_MIME,
|
|
11
|
-
x as IMAGE_MIME,
|
|
12
|
-
A as INPUT_EVENT,
|
|
13
|
-
k as OFFICE_PREVIEW,
|
|
14
|
-
r as PDF_MIME,
|
|
15
|
-
M as PPT_MIME,
|
|
16
|
-
F as UPDATE_MODEL_EVENT,
|
|
17
|
-
R as VIDEO_MIME,
|
|
18
|
-
g as WORD_MIME,
|
|
19
|
-
_ as activityMobileRegExp,
|
|
20
|
-
i as activityNameRegExp,
|
|
21
|
-
m as addressRegExp,
|
|
22
|
-
t as checkCodeFourRegExp,
|
|
23
|
-
d as checkCodeSixRegExp,
|
|
24
|
-
c as emailRegExp,
|
|
25
|
-
C as emojiRegExp,
|
|
26
|
-
a as imgUrlRegExp,
|
|
27
|
-
D as keywordCodeRegExp,
|
|
28
|
-
N as mobileRegExp,
|
|
29
|
-
T as passwordRegExp,
|
|
30
|
-
O as pictureCodeRegExp,
|
|
31
|
-
P as searchRegExp,
|
|
32
|
-
V as videoUrlRegExp
|
|
33
|
-
};
|
package/dist/es/mime.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const o = ["image/*"], p = ["audio/*"], t = ["video/*"], c = ["application/pdf"], n = [".doc", ".docx", "application/msword"], s = [
|
|
2
|
-
".xls",
|
|
3
|
-
".xlsx",
|
|
4
|
-
".csv",
|
|
5
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
6
|
-
"application/vnd.ms-excel"
|
|
7
|
-
], i = [".ppt", ".pptx", "application/vnd.ms-powerpoint"];
|
|
8
|
-
export {
|
|
9
|
-
p as AUDIO_MIME,
|
|
10
|
-
s as EXCEL_MIME,
|
|
11
|
-
o as IMAGE_MIME,
|
|
12
|
-
c as PDF_MIME,
|
|
13
|
-
i as PPT_MIME,
|
|
14
|
-
t as VIDEO_MIME,
|
|
15
|
-
n as WORD_MIME
|
|
16
|
-
};
|
package/dist/es/regular.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const e = /^1\d{10}$/, p = /^1[3-9]\d{9}$/, o = /^[\u4e00-\u9fa5]{2,6}$/, s = /^\d{4}$/, t = /^\d{6}$/, c = /(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/, d = /^\w{4}$/, g = /[\\\t\n]/g, i = /^(.*)\([A-z]{0,2}\d{5,10}\)$/, n = /^\w+[^\s]+(\.[^\s]+)+$/, x = /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/, w = /(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g, u = /^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i, E = /^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i;
|
|
2
|
-
export {
|
|
3
|
-
p as activityMobileRegExp,
|
|
4
|
-
o as activityNameRegExp,
|
|
5
|
-
n as addressRegExp,
|
|
6
|
-
s as checkCodeFourRegExp,
|
|
7
|
-
t as checkCodeSixRegExp,
|
|
8
|
-
x as emailRegExp,
|
|
9
|
-
w as emojiRegExp,
|
|
10
|
-
E as imgUrlRegExp,
|
|
11
|
-
i as keywordCodeRegExp,
|
|
12
|
-
e as mobileRegExp,
|
|
13
|
-
c as passwordRegExp,
|
|
14
|
-
d as pictureCodeRegExp,
|
|
15
|
-
g as searchRegExp,
|
|
16
|
-
u as videoUrlRegExp
|
|
17
|
-
};
|
package/dist/es/urls.js
DELETED
package/dist/event-code.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const EVENT_CODE: {
|
|
2
|
-
tab: string;
|
|
3
|
-
enter: string;
|
|
4
|
-
space: string;
|
|
5
|
-
left: string;
|
|
6
|
-
up: string;
|
|
7
|
-
right: string;
|
|
8
|
-
down: string;
|
|
9
|
-
esc: string;
|
|
10
|
-
delete: string;
|
|
11
|
-
backspace: string;
|
|
12
|
-
numpadEnter: string;
|
|
13
|
-
pageUp: string;
|
|
14
|
-
pageDown: string;
|
|
15
|
-
home: string;
|
|
16
|
-
end: string;
|
|
17
|
-
metaLeft: string;
|
|
18
|
-
};
|
package/dist/event.d.ts
DELETED
package/dist/mime.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const IMAGE_MIME: string[];
|
|
2
|
-
export declare const AUDIO_MIME: string[];
|
|
3
|
-
export declare const VIDEO_MIME: string[];
|
|
4
|
-
export declare const PDF_MIME: string[];
|
|
5
|
-
export declare const WORD_MIME: string[];
|
|
6
|
-
export declare const EXCEL_MIME: string[];
|
|
7
|
-
export declare const PPT_MIME: string[];
|
package/dist/regular.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const mobileRegExp: RegExp;
|
|
2
|
-
export declare const activityMobileRegExp: RegExp;
|
|
3
|
-
export declare const activityNameRegExp: RegExp;
|
|
4
|
-
export declare const checkCodeFourRegExp: RegExp;
|
|
5
|
-
export declare const checkCodeSixRegExp: RegExp;
|
|
6
|
-
export declare const passwordRegExp: RegExp;
|
|
7
|
-
export declare const pictureCodeRegExp: RegExp;
|
|
8
|
-
export declare const searchRegExp: RegExp;
|
|
9
|
-
export declare const keywordCodeRegExp: RegExp;
|
|
10
|
-
export declare const addressRegExp: RegExp;
|
|
11
|
-
export declare const emailRegExp: RegExp;
|
|
12
|
-
export declare const emojiRegExp: RegExp;
|
|
13
|
-
export declare const videoUrlRegExp: RegExp;
|
|
14
|
-
export declare const imgUrlRegExp: RegExp;
|
package/dist/urls.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const OFFICE_PREVIEW = "https://view.officeapps.live.com/op/view.aspx?src=";
|