@vft/constants 0.0.78 → 0.0.83
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 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +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=/^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,m=/^\w{4}$/,h=/[\\\t\n]/g,g=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,_=/^\w+[^\s]+(\.[^\s]+)+$/,v=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,y=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,b=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,x=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,S={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`},C=`update:modelValue`,w=`change`,T=`input`,E=`https://view.officeapps.live.com/op/view.aspx?src
|
|
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=/^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,m=/^\w{4}$/,h=/[\\\t\n]/g,g=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,_=/^\w+[^\s]+(\.[^\s]+)+$/,v=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,y=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,b=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,x=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,S={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`},C=`update:modelValue`,w=`change`,T=`input`,E=`https://view.officeapps.live.com/op/view.aspx?src=`,D={Off:0,On:1};exports.AUDIO_MIME=t,exports.CHANGE_EVENT=`change`,exports.CommonSwitchEnum=D,exports.EVENT_CODE=S,exports.EXCEL_MIME=a,exports.IMAGE_MIME=e,exports.INPUT_EVENT=`input`,exports.OfficePreview=`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=_,exports.checkCodeFourRegExp=u,exports.checkCodeSixRegExp=d,exports.emailRegExp=v,exports.emojiRegExp=y,exports.imgUrlRegExp=x,exports.keywordCodeRegExp=g,exports.mobileRegExp=s,exports.mobileSimpleRegExp=c,exports.passwordRegExp=f,exports.pictureCodeRegExp=m,exports.searchRegExp=h,exports.simplePasswordRegExp=p,exports.videoUrlRegExp=b;
|
package/dist/index.d.cts
CHANGED
|
@@ -52,4 +52,11 @@ declare const INPUT_EVENT = "input";
|
|
|
52
52
|
//#region src/urls.d.ts
|
|
53
53
|
declare const OfficePreview = "https://view.officeapps.live.com/op/view.aspx?src=";
|
|
54
54
|
//#endregion
|
|
55
|
-
|
|
55
|
+
//#region src/enums.d.ts
|
|
56
|
+
declare const CommonSwitchEnum: {
|
|
57
|
+
readonly Off: 0;
|
|
58
|
+
readonly On: 1;
|
|
59
|
+
};
|
|
60
|
+
type CommonSwitchEnumType = (typeof CommonSwitchEnum)[keyof typeof CommonSwitchEnum];
|
|
61
|
+
//#endregion
|
|
62
|
+
export { AUDIO_MIME, CHANGE_EVENT, CommonSwitchEnum, CommonSwitchEnumType, EVENT_CODE, EXCEL_MIME, IMAGE_MIME, INPUT_EVENT, OfficePreview, PDF_MIME, PPT_MIME, UPDATE_MODEL_EVENT, VIDEO_MIME, WORD_MIME, activityNameRegExp, addressRegExp, checkCodeFourRegExp, checkCodeSixRegExp, emailRegExp, emojiRegExp, imgUrlRegExp, keywordCodeRegExp, mobileRegExp, mobileSimpleRegExp, passwordRegExp, pictureCodeRegExp, searchRegExp, simplePasswordRegExp, videoUrlRegExp };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,4 +52,11 @@ declare const INPUT_EVENT = "input";
|
|
|
52
52
|
//#region src/urls.d.ts
|
|
53
53
|
declare const OfficePreview = "https://view.officeapps.live.com/op/view.aspx?src=";
|
|
54
54
|
//#endregion
|
|
55
|
-
|
|
55
|
+
//#region src/enums.d.ts
|
|
56
|
+
declare const CommonSwitchEnum: {
|
|
57
|
+
readonly Off: 0;
|
|
58
|
+
readonly On: 1;
|
|
59
|
+
};
|
|
60
|
+
type CommonSwitchEnumType = (typeof CommonSwitchEnum)[keyof typeof CommonSwitchEnum];
|
|
61
|
+
//#endregion
|
|
62
|
+
export { AUDIO_MIME, CHANGE_EVENT, CommonSwitchEnum, CommonSwitchEnumType, EVENT_CODE, EXCEL_MIME, IMAGE_MIME, INPUT_EVENT, OfficePreview, PDF_MIME, PPT_MIME, UPDATE_MODEL_EVENT, VIDEO_MIME, WORD_MIME, activityNameRegExp, addressRegExp, checkCodeFourRegExp, checkCodeSixRegExp, emailRegExp, emojiRegExp, imgUrlRegExp, keywordCodeRegExp, mobileRegExp, mobileSimpleRegExp, passwordRegExp, pictureCodeRegExp, searchRegExp, simplePasswordRegExp, videoUrlRegExp };
|
package/dist/index.js
CHANGED
|
@@ -1 +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=/^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,m=/^\w{4}$/,h=/[\\\t\n]/g,g=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,_=/^\w+[^\s]+(\.[^\s]+)+$/,v=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,y=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,b=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,x=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,S={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`},C=`update:modelValue`,w=`change`,T=`input`,E=`https://view.officeapps.live.com/op/view.aspx?src
|
|
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=/^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$/,m=/^\w{4}$/,h=/[\\\t\n]/g,g=/^(.*)\([A-z]{0,2}\d{5,10}\)$/,_=/^\w+[^\s]+(\.[^\s]+)+$/,v=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,y=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g,b=/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,x=/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,S={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`},C=`update:modelValue`,w=`change`,T=`input`,E=`https://view.officeapps.live.com/op/view.aspx?src=`,D={Off:0,On:1};export{t as AUDIO_MIME,w as CHANGE_EVENT,D as CommonSwitchEnum,S as EVENT_CODE,a as EXCEL_MIME,e as IMAGE_MIME,T as INPUT_EVENT,E as OfficePreview,r as PDF_MIME,o as PPT_MIME,C as UPDATE_MODEL_EVENT,n as VIDEO_MIME,i as WORD_MIME,l as activityNameRegExp,_ as addressRegExp,u as checkCodeFourRegExp,d as checkCodeSixRegExp,v as emailRegExp,y as emojiRegExp,x as imgUrlRegExp,g as keywordCodeRegExp,s as mobileRegExp,c as mobileSimpleRegExp,f as passwordRegExp,m as pictureCodeRegExp,h as searchRegExp,p as simplePasswordRegExp,b as videoUrlRegExp};
|