@vft/constants 0.0.3 → 0.0.5
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/cjs/event-code.js +1 -0
- package/dist/cjs/event.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/regular.js +1 -0
- package/dist/cjs/urls.js +1 -0
- package/dist/es/event-code.mjs +30 -0
- package/dist/es/event.mjs +6 -0
- package/dist/es/index.mjs +25 -0
- package/dist/es/regular.mjs +17 -0
- package/dist/es/urls.mjs +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./regular.js"),i=require("./event-code.js"),E=require("./event.js"),o=require("./urls.js");exports.activityMobile=e.activityMobile;exports.activityName=e.activityName;exports.address=e.address;exports.checkCodeFour=e.checkCodeFour;exports.checkCodeSix=e.checkCodeSix;exports.emailRegExp=e.emailRegExp;exports.emojiReg=e.emojiReg;exports.imgUrl=e.imgUrl;exports.keywordCodeRegExp=e.keywordCodeRegExp;exports.mobile=e.mobile;exports.password=e.password;exports.pictureCode=e.pictureCode;exports.searchRegExp=e.searchRegExp;exports.videoUrl=e.videoUrl;exports.EVENT_CODE=i.EVENT_CODE;exports.CHANGE_EVENT=E.CHANGE_EVENT;exports.INPUT_EVENT=E.INPUT_EVENT;exports.UPDATE_MODEL_EVENT=E.UPDATE_MODEL_EVENT;exports.OFFICE_PREVIEW=o.OFFICE_PREVIEW;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=/^1\d{10}$/,o=/^1[3-9]\d{9}$/,t=/^[\u4e00-\u9fa5]{2,6}$/,d=/^\d{4}$/,c=/^\d{6}$/,s=/(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,i=/^\w{4}$/,a=/[\\\t\n]/g,p=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,r=/^\w+[^\s]+(\.[^\s]+)+$/,g=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,u=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,m=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,n=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i;exports.activityMobile=o;exports.activityName=t;exports.address=r;exports.checkCodeFour=d;exports.checkCodeSix=c;exports.emailRegExp=g;exports.emojiReg=u;exports.imgUrl=n;exports.keywordCodeRegExp=p;exports.mobile=e;exports.password=s;exports.pictureCode=i;exports.searchRegExp=a;exports.videoUrl=m;
|
package/dist/cjs/urls.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { activityMobile as E, activityName as r, address as i, checkCodeFour as d, checkCodeSix as m, emailRegExp as p, emojiReg as t, imgUrl as c, keywordCodeRegExp as x, mobile as a, password as C, pictureCode as N, searchRegExp as T, videoUrl as _ } from "./regular.mjs";
|
|
2
|
+
import { EVENT_CODE as l } from "./event-code.mjs";
|
|
3
|
+
import { CHANGE_EVENT as R, INPUT_EVENT as V, UPDATE_MODEL_EVENT as f } from "./event.mjs";
|
|
4
|
+
import { OFFICE_PREVIEW as h } from "./urls.mjs";
|
|
5
|
+
export {
|
|
6
|
+
R as CHANGE_EVENT,
|
|
7
|
+
l as EVENT_CODE,
|
|
8
|
+
V as INPUT_EVENT,
|
|
9
|
+
h as OFFICE_PREVIEW,
|
|
10
|
+
f as UPDATE_MODEL_EVENT,
|
|
11
|
+
E as activityMobile,
|
|
12
|
+
r as activityName,
|
|
13
|
+
i as address,
|
|
14
|
+
d as checkCodeFour,
|
|
15
|
+
m as checkCodeSix,
|
|
16
|
+
p as emailRegExp,
|
|
17
|
+
t as emojiReg,
|
|
18
|
+
c as imgUrl,
|
|
19
|
+
x as keywordCodeRegExp,
|
|
20
|
+
a as mobile,
|
|
21
|
+
C as password,
|
|
22
|
+
N as pictureCode,
|
|
23
|
+
T as searchRegExp,
|
|
24
|
+
_ as videoUrl
|
|
25
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const e = /^1\d{10}$/, o = /^1[3-9]\d{9}$/, s = /^[\u4e00-\u9fa5]{2,6}$/, t = /^\d{4}$/, c = /^\d{6}$/, d = /(?=.*([a-z].*))(?=.*([A-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/, i = /^\w{4}$/, p = /[\\\t\n]/g, n = /^(.*)\([A-z]{0,2}\d{5,10}\)$/, w = /^\w+[^\s]+(\.[^\s]+)+$/, g = /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/, u = /(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g, $ = /^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i, a = /^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i;
|
|
2
|
+
export {
|
|
3
|
+
o as activityMobile,
|
|
4
|
+
s as activityName,
|
|
5
|
+
w as address,
|
|
6
|
+
t as checkCodeFour,
|
|
7
|
+
c as checkCodeSix,
|
|
8
|
+
g as emailRegExp,
|
|
9
|
+
u as emojiReg,
|
|
10
|
+
a as imgUrl,
|
|
11
|
+
n as keywordCodeRegExp,
|
|
12
|
+
e as mobile,
|
|
13
|
+
d as password,
|
|
14
|
+
i as pictureCode,
|
|
15
|
+
p as searchRegExp,
|
|
16
|
+
$ as videoUrl
|
|
17
|
+
};
|
package/dist/es/urls.mjs
ADDED