szld-libs 0.2.58 → 0.2.61

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.
Files changed (106) hide show
  1. package/dist/szld-components.es.js +9339 -9194
  2. package/dist/szld-components.umd.js +47 -47
  3. package/es/components/AuthButton/index.d.ts +6 -6
  4. package/es/components/BackHeader/index.d.ts +25 -25
  5. package/es/components/Captcha/index.d.ts +8 -8
  6. package/es/components/CoralButton/index.d.ts +10 -10
  7. package/es/components/CreateForm/index.d.ts +56 -56
  8. package/es/components/CustomPagination/index.d.ts +15 -15
  9. package/es/components/DynamicForm/index.d.ts +102 -102
  10. package/es/components/DynamicForm/index.js +4 -2
  11. package/es/components/DynamicForm/myCascader/index.d.ts +16 -16
  12. package/es/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  13. package/es/components/DynamicForm/myRadio/index.d.ts +19 -19
  14. package/es/components/DynamicForm/mySelect/index.d.ts +16 -16
  15. package/es/components/DynamicForm/myUpload/index.d.ts +16 -16
  16. package/es/components/DynamicForm/radioCard/index.d.ts +12 -12
  17. package/es/components/DynamicForm/selectModel/index.d.ts +22 -21
  18. package/es/components/DynamicForm/selectModel/index.js +47 -9
  19. package/es/components/DynamicForm/useDynamicForm.d.ts +32 -30
  20. package/es/components/DynamicForm/useDynamicForm.js +26 -3
  21. package/es/components/EditTable/index.d.ts +17 -17
  22. package/es/components/Loading/index.d.ts +4 -4
  23. package/es/components/LoopSlide/index.css +32 -32
  24. package/es/components/LoopSlide/index.d.ts +17 -17
  25. package/es/components/SearchTable/index.d.ts +30 -30
  26. package/es/components/Upload/index.d.ts +14 -14
  27. package/es/components/VirtualTable/index.d.ts +3 -3
  28. package/es/components/WorkFlowNode/index.d.ts +14 -14
  29. package/es/components/common/403.d.ts +2 -2
  30. package/es/components/common/404.d.ts +2 -2
  31. package/es/hooks/useCaptcha.d.ts +11 -11
  32. package/es/hooks/useChangePwd.d.ts +13 -13
  33. package/es/hooks/useConfig.d.ts +8 -8
  34. package/es/hooks/useDetailRender.d.ts +19 -0
  35. package/es/hooks/useDetailRender.js +125 -0
  36. package/es/hooks/useRemember.d.ts +9 -9
  37. package/es/hooks/useRowSelection.d.ts +20 -20
  38. package/es/index.d.ts +1 -1
  39. package/es/main.d.ts +28 -27
  40. package/es/main.js +2 -0
  41. package/es/utils/aes.d.ts +7 -7
  42. package/es/utils/download.d.ts +9 -9
  43. package/es/utils/filetype.d.ts +35 -35
  44. package/es/utils/formRules.d.ts +55 -55
  45. package/es/utils/hmacSHA512.d.ts +6 -6
  46. package/es/utils/hmacSM3.d.ts +20 -20
  47. package/es/utils/image-compression/UPNG.d.ts +142 -142
  48. package/es/utils/image-compression/image.d.ts +8 -8
  49. package/es/utils/image-compression/index.d.ts +9 -9
  50. package/es/utils/index.d.ts +15 -15
  51. package/es/utils/method.d.ts +48 -48
  52. package/es/utils/verify-code.d.ts +27 -27
  53. package/es/vite-env.d.ts +14 -1
  54. package/lib/components/AuthButton/index.d.ts +6 -6
  55. package/lib/components/BackHeader/index.d.ts +25 -25
  56. package/lib/components/Captcha/index.d.ts +8 -8
  57. package/lib/components/CoralButton/index.d.ts +10 -10
  58. package/lib/components/CreateForm/index.d.ts +56 -56
  59. package/lib/components/CustomPagination/index.d.ts +15 -15
  60. package/lib/components/DynamicForm/index.d.ts +102 -102
  61. package/lib/components/DynamicForm/index.js +4 -2
  62. package/lib/components/DynamicForm/myCascader/index.d.ts +16 -16
  63. package/lib/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  64. package/lib/components/DynamicForm/myRadio/index.d.ts +19 -19
  65. package/lib/components/DynamicForm/mySelect/index.d.ts +16 -16
  66. package/lib/components/DynamicForm/myUpload/index.d.ts +16 -16
  67. package/lib/components/DynamicForm/radioCard/index.d.ts +12 -12
  68. package/lib/components/DynamicForm/selectModel/index.d.ts +22 -21
  69. package/lib/components/DynamicForm/selectModel/index.js +46 -8
  70. package/lib/components/DynamicForm/useDynamicForm.d.ts +32 -30
  71. package/lib/components/DynamicForm/useDynamicForm.js +26 -3
  72. package/lib/components/EditTable/index.d.ts +17 -17
  73. package/lib/components/Loading/index.d.ts +4 -4
  74. package/lib/components/LoopSlide/index.css +32 -32
  75. package/lib/components/LoopSlide/index.d.ts +17 -17
  76. package/lib/components/SearchTable/index.d.ts +30 -30
  77. package/lib/components/Upload/index.d.ts +14 -14
  78. package/lib/components/VirtualTable/index.d.ts +3 -3
  79. package/lib/components/WorkFlowNode/index.d.ts +14 -14
  80. package/lib/components/common/403.d.ts +2 -2
  81. package/lib/components/common/404.d.ts +2 -2
  82. package/lib/hooks/useCaptcha.d.ts +11 -11
  83. package/lib/hooks/useChangePwd.d.ts +13 -13
  84. package/lib/hooks/useConfig.d.ts +8 -8
  85. package/lib/hooks/useDetailRender.d.ts +19 -0
  86. package/lib/hooks/useDetailRender.js +124 -0
  87. package/lib/hooks/useRemember.d.ts +9 -9
  88. package/lib/hooks/useRowSelection.d.ts +20 -20
  89. package/lib/index.d.ts +1 -1
  90. package/lib/main.d.ts +28 -27
  91. package/lib/main.js +2 -0
  92. package/lib/utils/aes.d.ts +7 -7
  93. package/lib/utils/download.d.ts +9 -9
  94. package/lib/utils/filetype.d.ts +35 -35
  95. package/lib/utils/formRules.d.ts +55 -55
  96. package/lib/utils/hmacSHA512.d.ts +6 -6
  97. package/lib/utils/hmacSM3.d.ts +20 -20
  98. package/lib/utils/image-compression/UPNG.d.ts +142 -142
  99. package/lib/utils/image-compression/image.d.ts +8 -8
  100. package/lib/utils/image-compression/index.d.ts +9 -9
  101. package/lib/utils/index.d.ts +15 -15
  102. package/lib/utils/method.d.ts +48 -48
  103. package/lib/utils/verify-code.d.ts +27 -27
  104. package/lib/vite-env.d.ts +14 -1
  105. package/package.json +49 -49
  106. package/readme.md +25 -25
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const antd = require("antd");
4
+ const react = require("react");
5
+ function useDetailRenderer({
6
+ detailInfo,
7
+ labelSpan = 3,
8
+ valueSpan = 9,
9
+ imgWidth = 93,
10
+ imgHeight = 93,
11
+ useGrid = true,
12
+ mainApplicationDomain = ""
13
+ }) {
14
+ const handlePreviewFile = (filePath) => {
15
+ var _a;
16
+ (_a = window.parent) == null ? void 0 : _a.postMessage({ type: "previewDoc", docurl: filePath }, mainApplicationDomain);
17
+ };
18
+ const renderImageAttr = (item) => {
19
+ if (typeof (item == null ? void 0 : item.attrvalue) !== "string")
20
+ return;
21
+ const attrvalues = JSON.parse((item == null ? void 0 : item.attrvalue) || "[]");
22
+ const renderItem = /* @__PURE__ */ jsxRuntime.jsx(antd.Space, { children: attrvalues.map((el, index) => /* @__PURE__ */ jsxRuntime.jsx(
23
+ "div",
24
+ {
25
+ style: {
26
+ border: "1px solid rgba(0, 0, 0, 0.15)",
27
+ borderRadius: 4
28
+ },
29
+ children: /* @__PURE__ */ jsxRuntime.jsx(
30
+ antd.Image,
31
+ {
32
+ style: { objectFit: "cover", padding: 5 },
33
+ width: imgWidth,
34
+ height: imgHeight,
35
+ src: el == null ? void 0 : el.FilePath,
36
+ alt: (item == null ? void 0 : item.attrname) || "-"
37
+ },
38
+ index
39
+ )
40
+ },
41
+ index
42
+ )) });
43
+ if (!useGrid) {
44
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Col, { span: labelSpan, children: [
45
+ item == null ? void 0 : item.attrname,
46
+ ":",
47
+ renderItem
48
+ ] }) }, item.attrid);
49
+ }
50
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
51
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: labelSpan, children: item == null ? void 0 : item.attrname }),
52
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: valueSpan, style: { wordWrap: "break-word" }, children: renderItem })
53
+ ] }, item.attrid);
54
+ };
55
+ const renderFileAttr = (item) => {
56
+ if (typeof (item == null ? void 0 : item.attrvalue) !== "string")
57
+ return;
58
+ const attrvalues = JSON.parse((item == null ? void 0 : item.attrvalue) || "[]");
59
+ const renderItem = /* @__PURE__ */ jsxRuntime.jsx(antd.Space, { children: attrvalues.map((el, index) => /* @__PURE__ */ jsxRuntime.jsx("a", { onClick: () => handlePreviewFile(el == null ? void 0 : el.FilePath), children: (el == null ? void 0 : el.FileName) || "-" }, index)) });
60
+ if (!useGrid) {
61
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Col, { span: labelSpan, style: { wordWrap: "break-word" }, children: [
62
+ item == null ? void 0 : item.attrname,
63
+ ":",
64
+ renderItem
65
+ ] }) }, item.attrid);
66
+ }
67
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
68
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: labelSpan, children: item == null ? void 0 : item.attrname }),
69
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: valueSpan, style: { wordWrap: "break-word" }, children: renderItem })
70
+ ] }, item.attrid);
71
+ };
72
+ const renderTextAttr = (item) => {
73
+ if (!useGrid) {
74
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Col, { span: labelSpan, style: { wordWrap: "break-word" }, children: [
75
+ item == null ? void 0 : item.attrname,
76
+ ":",
77
+ (item == null ? void 0 : item.attrvalue) || "-"
78
+ ] }) }, item.attrid);
79
+ }
80
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
81
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: labelSpan, children: item == null ? void 0 : item.attrname }),
82
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: valueSpan, style: { wordWrap: "break-word" }, children: (item == null ? void 0 : item.attrvalue) || "-" })
83
+ ] }, item.attrid);
84
+ };
85
+ const renderDetail = () => {
86
+ if (!detailInfo)
87
+ return null;
88
+ const renderAttrItems = (items) => {
89
+ var _a;
90
+ return (_a = items == null ? void 0 : items.filter((item) => (item == null ? void 0 : item.attrtype) === 0)) == null ? void 0 : _a.map((item) => {
91
+ const info = (item == null ? void 0 : item.json) || (item == null ? void 0 : item.info) && JSON.parse(item.info);
92
+ let content;
93
+ if ((info == null ? void 0 : info.input) === "image") {
94
+ content = renderImageAttr(item);
95
+ } else if (["file", "audio", "video"].includes(info == null ? void 0 : info.input)) {
96
+ content = renderFileAttr(item);
97
+ } else {
98
+ content = renderTextAttr(item);
99
+ }
100
+ if ((item == null ? void 0 : item.children) && item.children.length > 0) {
101
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
102
+ content,
103
+ /* @__PURE__ */ jsxRuntime.jsx(
104
+ "div",
105
+ {
106
+ style: {
107
+ marginLeft: "16px",
108
+ marginTop: "8px",
109
+ borderLeft: "2px dashed #e8e8e8",
110
+ paddingLeft: "16px"
111
+ },
112
+ children: renderAttrItems(item.children)
113
+ }
114
+ )
115
+ ] }, item.attrid);
116
+ }
117
+ return content;
118
+ });
119
+ };
120
+ return /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: [15, 15], children: renderAttrItems(detailInfo == null ? void 0 : detailInfo.attr_list) });
121
+ };
122
+ return { renderDetail };
123
+ }
124
+ module.exports = useDetailRenderer;
@@ -1,9 +1,9 @@
1
- interface UseRememberProps {
2
- secertKey: string;
3
- storageKey: string;
4
- }
5
- export default function useRemember(props: UseRememberProps): {
6
- onParse: (cb: (value: any) => void) => void;
7
- onSave: (data: any) => void;
8
- };
9
- export {};
1
+ interface UseRememberProps {
2
+ secertKey: string;
3
+ storageKey: string;
4
+ }
5
+ export default function useRemember(props: UseRememberProps): {
6
+ onParse: (cb: (value: any) => void) => void;
7
+ onSave: (data: any) => void;
8
+ };
9
+ export {};
@@ -1,20 +1,20 @@
1
- /// <reference types="react" />
2
- interface RowSelectionProps {
3
- dataSource: any[];
4
- rowKey: string;
5
- defaultRows?: any[];
6
- }
7
- interface RowSelectionReturnProps {
8
- selectedRows: any[];
9
- selectedKeys: any[];
10
- setSelectedKeys: React.Dispatch<React.SetStateAction<any[]>>;
11
- }
12
- /**
13
- * 表格跨页面多选
14
- *
15
- * @export
16
- * @param {RowSelectionProps} props
17
- * @return {*}
18
- */
19
- export default function useRowSelection(props: RowSelectionProps): RowSelectionReturnProps;
20
- export {};
1
+ /// <reference types="react" />
2
+ interface RowSelectionProps {
3
+ dataSource: any[];
4
+ rowKey: string;
5
+ defaultRows?: any[];
6
+ }
7
+ interface RowSelectionReturnProps {
8
+ selectedRows: any[];
9
+ selectedKeys: any[];
10
+ setSelectedKeys: React.Dispatch<React.SetStateAction<any[]>>;
11
+ }
12
+ /**
13
+ * 表格跨页面多选
14
+ *
15
+ * @export
16
+ * @param {RowSelectionProps} props
17
+ * @return {*}
18
+ */
19
+ export default function useRowSelection(props: RowSelectionProps): RowSelectionReturnProps;
20
+ export {};
package/lib/index.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/lib/main.d.ts CHANGED
@@ -1,27 +1,28 @@
1
- import BackHeader from './components/BackHeader';
2
- import CreateForm from './components/CreateForm';
3
- import SearchTable from './components/SearchTable';
4
- import UploadFile from './components/Upload';
5
- import EditTable from './components/EditTable';
6
- import AuthButton from './components/AuthButton';
7
- import CoralButton from './components/CoralButton';
8
- import LoopSlide from './components/LoopSlide';
9
- import showWorkFlow, { WorkFlowNode } from './components/WorkFlowNode';
10
- import CustomPagination from './components/CustomPagination';
11
- import DynamicForm from './components/DynamicForm';
12
- import * as download from './utils/download';
13
- import * as fileType from './utils/filetype';
14
- import * as FormRules from './utils/formRules';
15
- import compressionImage from './utils/image-compression';
16
- import * as utils from './utils/index';
17
- import * as verfyCode from './utils/verify-code';
18
- import AES from './utils/aes';
19
- import HmacSHA512 from './utils/hmacSHA512';
20
- import HmacSM3 from './utils/hmacSM3';
21
- import * as method from './utils/method';
22
- import useCaptcha from './hooks/useCaptcha';
23
- import useChangePwd from './hooks/useChangePwd';
24
- import useConfig from './hooks/useConfig';
25
- import useRemember from './hooks/useRemember';
26
- import useRowSelection from './hooks/useRowSelection';
27
- export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, utils, download, fileType, FormRules, verfyCode, method, };
1
+ import BackHeader from './components/BackHeader';
2
+ import CreateForm from './components/CreateForm';
3
+ import SearchTable from './components/SearchTable';
4
+ import UploadFile from './components/Upload';
5
+ import EditTable from './components/EditTable';
6
+ import AuthButton from './components/AuthButton';
7
+ import CoralButton from './components/CoralButton';
8
+ import LoopSlide from './components/LoopSlide';
9
+ import showWorkFlow, { WorkFlowNode } from './components/WorkFlowNode';
10
+ import CustomPagination from './components/CustomPagination';
11
+ import DynamicForm from './components/DynamicForm';
12
+ import * as download from './utils/download';
13
+ import * as fileType from './utils/filetype';
14
+ import * as FormRules from './utils/formRules';
15
+ import compressionImage from './utils/image-compression';
16
+ import * as utils from './utils/index';
17
+ import * as verfyCode from './utils/verify-code';
18
+ import AES from './utils/aes';
19
+ import HmacSHA512 from './utils/hmacSHA512';
20
+ import HmacSM3 from './utils/hmacSM3';
21
+ import * as method from './utils/method';
22
+ import useCaptcha from './hooks/useCaptcha';
23
+ import useChangePwd from './hooks/useChangePwd';
24
+ import useConfig from './hooks/useConfig';
25
+ import useRemember from './hooks/useRemember';
26
+ import useRowSelection from './hooks/useRowSelection';
27
+ import useDetailRender from './hooks/useDetailRender';
28
+ export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, useDetailRender, utils, download, fileType, FormRules, verfyCode, method, };
package/lib/main.js CHANGED
@@ -26,6 +26,7 @@ const useChangePwd = require("./hooks/useChangePwd");
26
26
  const useConfig = require("./hooks/useConfig");
27
27
  const useRemember = require("./hooks/useRemember");
28
28
  const useRowSelection = require("./hooks/useRowSelection");
29
+ const useDetailRender = require("./hooks/useDetailRender");
29
30
  function _interopNamespaceDefault(e) {
30
31
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
31
32
  if (e) {
@@ -78,3 +79,4 @@ exports.useChangePwd = useChangePwd;
78
79
  exports.useConfig = useConfig;
79
80
  exports.useRemember = useRemember;
80
81
  exports.useRowSelection = useRowSelection;
82
+ exports.useDetailRender = useDetailRender;
@@ -1,7 +1,7 @@
1
- declare class AES {
2
- salt: string;
3
- constructor();
4
- encrypt(value: string): string | undefined;
5
- decrypt(value: string): string | undefined;
6
- }
7
- export default AES;
1
+ declare class AES {
2
+ salt: string;
3
+ constructor();
4
+ encrypt(value: string): string | undefined;
5
+ decrypt(value: string): string | undefined;
6
+ }
7
+ export default AES;
@@ -1,9 +1,9 @@
1
- declare const downloadUrl: (url: string, filename?: string) => void;
2
- /**
3
- *
4
- * @param blob Blob或base64字符
5
- * @param fileName
6
- * @returns
7
- */
8
- declare const downloadBlob: (blob: Blob | string, fileName: string) => void;
9
- export { downloadUrl, downloadBlob };
1
+ declare const downloadUrl: (url: string, filename?: string) => void;
2
+ /**
3
+ *
4
+ * @param blob Blob或base64字符
5
+ * @param fileName
6
+ * @returns
7
+ */
8
+ declare const downloadBlob: (blob: Blob | string, fileName: string) => void;
9
+ export { downloadUrl, downloadBlob };
@@ -1,35 +1,35 @@
1
- export declare enum FileType {
2
- zip = "application/zip",
3
- png = "image/png",
4
- jpg = "image/jpg",
5
- jpeg = "image/jpeg",
6
- pdf = "application/pdf",
7
- doc = "application/msword",
8
- docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
9
- pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
10
- ppt = "application/vnd.ms-powerpoint",
11
- xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
12
- xls = "application/vnd.ms-excel",
13
- txt = "text/plain",
14
- csv = "text/csv",
15
- svg = "image/svg+xml"
16
- }
17
- declare const FileTypeMap: Map<string, FileType>;
18
- declare enum FileSuffix {
19
- zip = ".zip",
20
- png = ".png",
21
- jpg = ".jpg",
22
- jpeg = ".jpeg",
23
- pdf = ".pdf",
24
- doc = ".doc",
25
- docx = ".docx",
26
- ppt = ".ppt",
27
- pptx = ".pptx",
28
- xls = ".xls",
29
- xlsx = ".xlsx",
30
- txt = ".txt",
31
- csv = ".csv",
32
- svg = ".svg",
33
- rar = ".rar"
34
- }
35
- export { FileTypeMap, FileSuffix };
1
+ export declare enum FileType {
2
+ zip = "application/zip",
3
+ png = "image/png",
4
+ jpg = "image/jpg",
5
+ jpeg = "image/jpeg",
6
+ pdf = "application/pdf",
7
+ doc = "application/msword",
8
+ docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
9
+ pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
10
+ ppt = "application/vnd.ms-powerpoint",
11
+ xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
12
+ xls = "application/vnd.ms-excel",
13
+ txt = "text/plain",
14
+ csv = "text/csv",
15
+ svg = "image/svg+xml"
16
+ }
17
+ declare const FileTypeMap: Map<string, FileType>;
18
+ declare enum FileSuffix {
19
+ zip = ".zip",
20
+ png = ".png",
21
+ jpg = ".jpg",
22
+ jpeg = ".jpeg",
23
+ pdf = ".pdf",
24
+ doc = ".doc",
25
+ docx = ".docx",
26
+ ppt = ".ppt",
27
+ pptx = ".pptx",
28
+ xls = ".xls",
29
+ xlsx = ".xlsx",
30
+ txt = ".txt",
31
+ csv = ".csv",
32
+ svg = ".svg",
33
+ rar = ".rar"
34
+ }
35
+ export { FileTypeMap, FileSuffix };
@@ -1,55 +1,55 @@
1
- declare const formRules: {
2
- phone: {
3
- pattern: RegExp;
4
- message: string;
5
- };
6
- telephone: {
7
- pattern: RegExp;
8
- message: string;
9
- };
10
- email: {
11
- pattern: RegExp;
12
- message: string;
13
- };
14
- httpUrl: {
15
- pattern: RegExp;
16
- message: string;
17
- };
18
- zipCode: {
19
- pattern: RegExp;
20
- message: string;
21
- };
22
- specificKey: {
23
- pattern: RegExp;
24
- message: string;
25
- };
26
- inputTextarea: {
27
- pattern: RegExp;
28
- message: string;
29
- };
30
- backendRestrict: {
31
- pattern: RegExp;
32
- message: string;
33
- };
34
- onetoNinetyNine: {
35
- pattern: RegExp;
36
- message: string;
37
- };
38
- passwordRule: {
39
- pattern: RegExp;
40
- message: string;
41
- };
42
- passwordNewRule: {
43
- pattern: RegExp;
44
- message: string;
45
- };
46
- pureNumber: {
47
- pattern: RegExp;
48
- message: string;
49
- };
50
- onlyBlankRule: {
51
- pattern: RegExp;
52
- message: string;
53
- };
54
- };
55
- export default formRules;
1
+ declare const formRules: {
2
+ phone: {
3
+ pattern: RegExp;
4
+ message: string;
5
+ };
6
+ telephone: {
7
+ pattern: RegExp;
8
+ message: string;
9
+ };
10
+ email: {
11
+ pattern: RegExp;
12
+ message: string;
13
+ };
14
+ httpUrl: {
15
+ pattern: RegExp;
16
+ message: string;
17
+ };
18
+ zipCode: {
19
+ pattern: RegExp;
20
+ message: string;
21
+ };
22
+ specificKey: {
23
+ pattern: RegExp;
24
+ message: string;
25
+ };
26
+ inputTextarea: {
27
+ pattern: RegExp;
28
+ message: string;
29
+ };
30
+ backendRestrict: {
31
+ pattern: RegExp;
32
+ message: string;
33
+ };
34
+ onetoNinetyNine: {
35
+ pattern: RegExp;
36
+ message: string;
37
+ };
38
+ passwordRule: {
39
+ pattern: RegExp;
40
+ message: string;
41
+ };
42
+ passwordNewRule: {
43
+ pattern: RegExp;
44
+ message: string;
45
+ };
46
+ pureNumber: {
47
+ pattern: RegExp;
48
+ message: string;
49
+ };
50
+ onlyBlankRule: {
51
+ pattern: RegExp;
52
+ message: string;
53
+ };
54
+ };
55
+ export default formRules;
@@ -1,6 +1,6 @@
1
- declare class HmacSHA512 {
2
- salt: string;
3
- constructor(salt: string);
4
- encrypt(value: string): string;
5
- }
6
- export default HmacSHA512;
1
+ declare class HmacSHA512 {
2
+ salt: string;
3
+ constructor(salt: string);
4
+ encrypt(value: string): string;
5
+ }
6
+ export default HmacSHA512;
@@ -1,20 +1,20 @@
1
- /**
2
- * HMAC-SM3 实现
3
- */
4
- declare class HmacSM3 {
5
- private key;
6
- constructor(key: string | Uint8Array);
7
- /**
8
- * 计算HMAC-SM3值
9
- */
10
- digest(message: string | Uint8Array): Uint8Array;
11
- /**
12
- * 计算HMAC-SM3值并返回十六进制字符串
13
- */
14
- digestHex(message: string | Uint8Array): string;
15
- /**
16
- * 静态方法:快速计算HMAC-SM3
17
- */
18
- static hmac(key: string | Uint8Array, message: string | Uint8Array): string;
19
- }
20
- export default HmacSM3;
1
+ /**
2
+ * HMAC-SM3 实现
3
+ */
4
+ declare class HmacSM3 {
5
+ private key;
6
+ constructor(key: string | Uint8Array);
7
+ /**
8
+ * 计算HMAC-SM3值
9
+ */
10
+ digest(message: string | Uint8Array): Uint8Array;
11
+ /**
12
+ * 计算HMAC-SM3值并返回十六进制字符串
13
+ */
14
+ digestHex(message: string | Uint8Array): string;
15
+ /**
16
+ * 静态方法:快速计算HMAC-SM3
17
+ */
18
+ static hmac(key: string | Uint8Array, message: string | Uint8Array): string;
19
+ }
20
+ export default HmacSM3;