jmash-core 0.0.130 → 0.0.132

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as I, createElementBlock as y, createElementVNode as u, defineComponent as B, ref as V, reactive as f, resolveComponent as i, Fragment as D, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as v } from "vue";
2
- import { v as E, b as w, w as N, x as q, y as R } from "./index-BGnMb2kQ.mjs";
2
+ import { v as E, b as w, w as N, x as q, y as R } from "./index-BMFMR_XP.mjs";
3
3
  const S = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  width: "1.2em",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-BCGqPFCU.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DLe9zm0p.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as z, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as B } from "element-plus";
3
- import { z as b, M as D } from "./index-BGnMb2kQ.mjs";
3
+ import { z as b, M as D } from "./index-BMFMR_XP.mjs";
4
4
  import { useI18n as I } from "vue-i18n";
5
5
  const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -7,6 +7,7 @@ export { getQueryParams, clearEmpty, deepMerge } from "./utils/grpc";
7
7
  import request, { axiosConfig } from "./utils/request";
8
8
  export { request, axiosConfig };
9
9
  export { generateRandomKey, handlePreview } from "./utils/common";
10
+ export { validatePhoneNumber, validatePhoneOrLandline, validateCreditCode, validateIDCard, validateEmail } from "./utils/validation_utils";
10
11
  export { BizDict, BizLayDict, CustomBizDict, EnumDict, enumMapCache, EnableBizDict } from "./api/index";
11
12
  export { getCaptchaApi, createLoginQrcode, selectDsdRoles, runAsUser, myorganList, loginOrganApi } from "./api/auth";
12
13
  export { netEncrypt } from "./utils/netsecret";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 校验统一社会信用代码
3
+ * @param code 待校验的统一社会信用代码
4
+ * @returns 校验结果,true 表示校验通过,false 表示校验失败
5
+ */
6
+ export declare function validateCreditCode(code: string): boolean;
7
+ /**
8
+ * 校验手机号
9
+ * @param phone 待校验的手机号
10
+ * @returns 校验结果,true 表示校验通过,false 表示校验失败
11
+ */
12
+ export declare function validatePhoneNumber(phone: string): boolean;
13
+ /**
14
+ * 校验手机号或固话
15
+ * @param phone 待校验的号码
16
+ * @returns 校验结果,若校验通过返回 true,否则返回错误信息
17
+ */
18
+ export declare function validatePhoneOrLandline(phone: string): boolean;
19
+ /**
20
+ * 校验身份证号
21
+ * @param idCard 待校验的身份证号
22
+ * @returns 校验结果,若校验通过返回 true,否则返回错误信息
23
+ */
24
+ export declare function validateIDCard(idCard: string): boolean;
25
+ /**
26
+ * 校验邮箱
27
+ * @param email 待校验的邮箱地址
28
+ * @returns 校验结果,若校验通过返回 true,否则返回错误信息
29
+ */
30
+ export declare function validateEmail(email: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.130",
3
+ "version": "0.0.132",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",