szld-libs 0.2.61 → 0.2.63

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 (94) hide show
  1. package/es/components/AuthButton/index.d.ts +6 -6
  2. package/es/components/BackHeader/index.d.ts +25 -25
  3. package/es/components/Captcha/index.d.ts +8 -8
  4. package/es/components/CoralButton/index.d.ts +10 -10
  5. package/es/components/CreateForm/index.d.ts +56 -56
  6. package/es/components/CustomPagination/index.d.ts +15 -15
  7. package/es/components/DynamicForm/index.d.ts +102 -102
  8. package/es/components/DynamicForm/myCascader/index.d.ts +16 -16
  9. package/es/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  10. package/es/components/DynamicForm/myRadio/index.d.ts +19 -19
  11. package/es/components/DynamicForm/mySelect/index.d.ts +16 -16
  12. package/es/components/DynamicForm/myUpload/index.d.ts +16 -16
  13. package/es/components/DynamicForm/radioCard/index.d.ts +12 -12
  14. package/es/components/DynamicForm/selectModel/index.d.ts +22 -22
  15. package/es/components/DynamicForm/useDynamicForm.d.ts +32 -32
  16. package/es/components/EditTable/index.d.ts +17 -17
  17. package/es/components/Loading/index.d.ts +4 -4
  18. package/es/components/LoopSlide/index.css +32 -32
  19. package/es/components/LoopSlide/index.d.ts +17 -17
  20. package/es/components/SearchTable/index.d.ts +30 -30
  21. package/es/components/Upload/index.d.ts +14 -14
  22. package/es/components/VirtualTable/index.d.ts +3 -3
  23. package/es/components/WorkFlowNode/index.d.ts +14 -14
  24. package/es/components/common/403.d.ts +2 -2
  25. package/es/components/common/404.d.ts +2 -2
  26. package/es/hooks/useCaptcha.d.ts +11 -11
  27. package/es/hooks/useChangePwd.d.ts +13 -13
  28. package/es/hooks/useConfig.d.ts +8 -8
  29. package/es/hooks/useDetailRender.d.ts +19 -19
  30. package/es/hooks/useRemember.d.ts +9 -9
  31. package/es/hooks/useRowSelection.d.ts +20 -20
  32. package/es/index.d.ts +1 -1
  33. package/es/main.d.ts +28 -28
  34. package/es/utils/aes.d.ts +7 -7
  35. package/es/utils/download.d.ts +9 -9
  36. package/es/utils/filetype.d.ts +35 -35
  37. package/es/utils/formRules.d.ts +55 -55
  38. package/es/utils/hmacSHA512.d.ts +6 -6
  39. package/es/utils/hmacSM3.d.ts +20 -20
  40. package/es/utils/image-compression/UPNG.d.ts +142 -142
  41. package/es/utils/image-compression/image.d.ts +8 -8
  42. package/es/utils/image-compression/index.d.ts +9 -9
  43. package/es/utils/index.d.ts +15 -15
  44. package/es/utils/method.d.ts +48 -48
  45. package/es/utils/verify-code.d.ts +27 -27
  46. package/es/vite-env.d.ts +14 -14
  47. package/lib/components/AuthButton/index.d.ts +6 -6
  48. package/lib/components/BackHeader/index.d.ts +25 -25
  49. package/lib/components/Captcha/index.d.ts +8 -8
  50. package/lib/components/CoralButton/index.d.ts +10 -10
  51. package/lib/components/CreateForm/index.d.ts +56 -56
  52. package/lib/components/CustomPagination/index.d.ts +15 -15
  53. package/lib/components/DynamicForm/index.d.ts +102 -102
  54. package/lib/components/DynamicForm/myCascader/index.d.ts +16 -16
  55. package/lib/components/DynamicForm/myCheckbox/index.d.ts +18 -18
  56. package/lib/components/DynamicForm/myRadio/index.d.ts +19 -19
  57. package/lib/components/DynamicForm/mySelect/index.d.ts +16 -16
  58. package/lib/components/DynamicForm/myUpload/index.d.ts +16 -16
  59. package/lib/components/DynamicForm/radioCard/index.d.ts +12 -12
  60. package/lib/components/DynamicForm/selectModel/index.d.ts +22 -22
  61. package/lib/components/DynamicForm/useDynamicForm.d.ts +32 -32
  62. package/lib/components/EditTable/index.d.ts +17 -17
  63. package/lib/components/Loading/index.d.ts +4 -4
  64. package/lib/components/LoopSlide/index.css +32 -32
  65. package/lib/components/LoopSlide/index.d.ts +17 -17
  66. package/lib/components/SearchTable/index.d.ts +30 -30
  67. package/lib/components/Upload/index.d.ts +14 -14
  68. package/lib/components/VirtualTable/index.d.ts +3 -3
  69. package/lib/components/WorkFlowNode/index.d.ts +14 -14
  70. package/lib/components/common/403.d.ts +2 -2
  71. package/lib/components/common/404.d.ts +2 -2
  72. package/lib/hooks/useCaptcha.d.ts +11 -11
  73. package/lib/hooks/useChangePwd.d.ts +13 -13
  74. package/lib/hooks/useConfig.d.ts +8 -8
  75. package/lib/hooks/useDetailRender.d.ts +19 -19
  76. package/lib/hooks/useRemember.d.ts +9 -9
  77. package/lib/hooks/useRowSelection.d.ts +20 -20
  78. package/lib/index.d.ts +1 -1
  79. package/lib/main.d.ts +28 -28
  80. package/lib/utils/aes.d.ts +7 -7
  81. package/lib/utils/download.d.ts +9 -9
  82. package/lib/utils/filetype.d.ts +35 -35
  83. package/lib/utils/formRules.d.ts +55 -55
  84. package/lib/utils/hmacSHA512.d.ts +6 -6
  85. package/lib/utils/hmacSM3.d.ts +20 -20
  86. package/lib/utils/image-compression/UPNG.d.ts +142 -142
  87. package/lib/utils/image-compression/image.d.ts +8 -8
  88. package/lib/utils/image-compression/index.d.ts +9 -9
  89. package/lib/utils/index.d.ts +15 -15
  90. package/lib/utils/method.d.ts +48 -48
  91. package/lib/utils/verify-code.d.ts +27 -27
  92. package/lib/vite-env.d.ts +14 -14
  93. package/package.json +49 -49
  94. package/readme.md +25 -25
@@ -1,17 +1,17 @@
1
- import React, { CSSProperties, ReactNode } from 'react';
2
- interface LoopSlideProps {
3
- speed?: number;
4
- delay?: number;
5
- timingFunction?: string;
6
- className?: string;
7
- style?: CSSProperties;
8
- children: ReactNode;
9
- height?: string;
10
- mouseControl?: boolean;
11
- classes?: {
12
- container?: string;
13
- content?: string;
14
- };
15
- }
16
- declare const LoopSlide: React.FC<LoopSlideProps>;
17
- export default LoopSlide;
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
+ interface LoopSlideProps {
3
+ speed?: number;
4
+ delay?: number;
5
+ timingFunction?: string;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ children: ReactNode;
9
+ height?: string;
10
+ mouseControl?: boolean;
11
+ classes?: {
12
+ container?: string;
13
+ content?: string;
14
+ };
15
+ }
16
+ declare const LoopSlide: React.FC<LoopSlideProps>;
17
+ export default LoopSlide;
@@ -1,30 +1,30 @@
1
- import { TableProps } from 'antd';
2
- import { ColumnType } from 'antd/es/table';
3
- import { CreateFormProps } from '../CreateForm';
4
- export interface TableColumnProps<T> extends ColumnType<T> {
5
- /** 是否隐藏 */
6
- hidden?: boolean;
7
- /** 宽度 */
8
- width?: number | string;
9
- /** 最小宽度 */
10
- minWidth?: number;
11
- }
12
- export interface MTableProps<T> extends Omit<TableProps<T>, 'columns'> {
13
- columns?: TableColumnProps<T>[];
14
- /** 单元格最小width,默认200 */
15
- minColumnWidth?: number;
16
- /** 是否可调整列宽度 */
17
- resizeable?: boolean;
18
- /** 表格id,用于调整列宽时存储 */
19
- tableId?: string;
20
- /** 存储key,默认szld_table_cell_width */
21
- storageKey?: string;
22
- /** 表格无数据文案 */
23
- emptyText?: string;
24
- }
25
- export interface SearchTableProps<RecordType> {
26
- searchProps?: CreateFormProps;
27
- tableProps?: MTableProps<RecordType>;
28
- }
29
- declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
30
- export default SearchTable;
1
+ import { TableProps } from 'antd';
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { CreateFormProps } from '../CreateForm';
4
+ export interface TableColumnProps<T> extends ColumnType<T> {
5
+ /** 是否隐藏 */
6
+ hidden?: boolean;
7
+ /** 宽度 */
8
+ width?: number | string;
9
+ /** 最小宽度 */
10
+ minWidth?: number;
11
+ }
12
+ export interface MTableProps<T> extends Omit<TableProps<T>, 'columns'> {
13
+ columns?: TableColumnProps<T>[];
14
+ /** 单元格最小width,默认200 */
15
+ minColumnWidth?: number;
16
+ /** 是否可调整列宽度 */
17
+ resizeable?: boolean;
18
+ /** 表格id,用于调整列宽时存储 */
19
+ tableId?: string;
20
+ /** 存储key,默认szld_table_cell_width */
21
+ storageKey?: string;
22
+ /** 表格无数据文案 */
23
+ emptyText?: string;
24
+ }
25
+ export interface SearchTableProps<RecordType> {
26
+ searchProps?: CreateFormProps;
27
+ tableProps?: MTableProps<RecordType>;
28
+ }
29
+ declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
30
+ export default SearchTable;
@@ -1,14 +1,14 @@
1
- import { UploadProps } from "antd";
2
- import { ReactNode } from "react";
3
- export interface UploadFileProps extends UploadProps {
4
- maxSize?: number;
5
- uploadBtnName?: string | ReactNode;
6
- uploadHint?: any;
7
- compression?: {
8
- type?: string;
9
- quality?: number;
10
- limit?: number;
11
- };
12
- }
13
- declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
14
- export default UploadFile;
1
+ import { UploadProps } from "antd";
2
+ import { ReactNode } from "react";
3
+ export interface UploadFileProps extends UploadProps {
4
+ maxSize?: number;
5
+ uploadBtnName?: string | ReactNode;
6
+ uploadHint?: any;
7
+ compression?: {
8
+ type?: string;
9
+ quality?: number;
10
+ limit?: number;
11
+ };
12
+ }
13
+ declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default UploadFile;
@@ -1,3 +1,3 @@
1
- import { EditTableProps } from "../EditTable";
2
- declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
3
- export default VirtualTable;
1
+ import { EditTableProps } from "../EditTable";
2
+ declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
3
+ export default VirtualTable;
@@ -1,14 +1,14 @@
1
- import { ModalFuncProps } from "antd";
2
- import { Key, ReactNode } from "react";
3
- interface WorkFlowNodeProps {
4
- data: any[];
5
- current?: string;
6
- currentIndex?: number;
7
- rowKey: string | ((record: any) => Key);
8
- renderContent?: (record: any, index: number, currentIndex: number) => ReactNode;
9
- }
10
- export declare const WorkFlowNode: (props: WorkFlowNodeProps) => import("react/jsx-runtime").JSX.Element;
11
- interface showWorkFlow extends WorkFlowNodeProps, ModalFuncProps {
12
- }
13
- declare const showWorkFlow: (props: showWorkFlow) => null;
14
- export default showWorkFlow;
1
+ import { ModalFuncProps } from "antd";
2
+ import { Key, ReactNode } from "react";
3
+ interface WorkFlowNodeProps {
4
+ data: any[];
5
+ current?: string;
6
+ currentIndex?: number;
7
+ rowKey: string | ((record: any) => Key);
8
+ renderContent?: (record: any, index: number, currentIndex: number) => ReactNode;
9
+ }
10
+ export declare const WorkFlowNode: (props: WorkFlowNodeProps) => import("react/jsx-runtime").JSX.Element;
11
+ interface showWorkFlow extends WorkFlowNodeProps, ModalFuncProps {
12
+ }
13
+ declare const showWorkFlow: (props: showWorkFlow) => null;
14
+ export default showWorkFlow;
@@ -1,2 +1,2 @@
1
- declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
2
- export default NoPermissions;
1
+ declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoPermissions;
@@ -1,2 +1,2 @@
1
- declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
2
- export default NotFound;
1
+ declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotFound;
@@ -1,11 +1,11 @@
1
- interface useCaptchaProps {
2
- request: () => Promise<any>;
3
- imgKey?: string;
4
- }
5
- export default function useCaptcha(props: useCaptchaProps): {
6
- data: any;
7
- renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
8
- loading: any;
9
- refresh: any;
10
- };
11
- export {};
1
+ interface useCaptchaProps {
2
+ request: () => Promise<any>;
3
+ imgKey?: string;
4
+ }
5
+ export default function useCaptcha(props: useCaptchaProps): {
6
+ data: any;
7
+ renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
8
+ loading: any;
9
+ refresh: any;
10
+ };
11
+ export {};
@@ -1,13 +1,13 @@
1
- import { ModalProps } from "antd";
2
- interface ChangePwdResolveProps {
3
- values: any;
4
- resolve: (value: any) => void;
5
- reject: (reason?: any) => void;
6
- }
7
- interface ChangePwdHookProps {
8
- modalProps?: ModalProps;
9
- }
10
- export default function useChangePwd(props?: ChangePwdHookProps): {
11
- handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
12
- };
13
- export {};
1
+ import { ModalProps } from "antd";
2
+ interface ChangePwdResolveProps {
3
+ values: any;
4
+ resolve: (value: any) => void;
5
+ reject: (reason?: any) => void;
6
+ }
7
+ interface ChangePwdHookProps {
8
+ modalProps?: ModalProps;
9
+ }
10
+ export default function useChangePwd(props?: ChangePwdHookProps): {
11
+ handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
12
+ };
13
+ export {};
@@ -1,8 +1,8 @@
1
- /**
2
- *
3
- * 解密前端配置文件信息
4
- * @export
5
- * @param {string} value
6
- * @return {*}
7
- */
8
- export default function useConfig(value: string): any;
1
+ /**
2
+ *
3
+ * 解密前端配置文件信息
4
+ * @export
5
+ * @param {string} value
6
+ * @return {*}
7
+ */
8
+ export default function useConfig(value: string): any;
@@ -1,19 +1,19 @@
1
- /**
2
- * 宠物详情渲染 Hook
3
- * @param dogInfo 宠物详情数据
4
- * @param config 配置信息(用于文件预览地址)
5
- * @returns 渲染函数
6
- */
7
- interface IDetailRenderProps {
8
- detailInfo: any;
9
- mainApplicationDomain: string;
10
- labelSpan?: number;
11
- valueSpan?: number;
12
- imgWidth?: number;
13
- imgHeight?: number;
14
- useGrid?: boolean;
15
- }
16
- export default function useDetailRenderer({ detailInfo, labelSpan, valueSpan, imgWidth, imgHeight, useGrid, mainApplicationDomain, }: IDetailRenderProps): {
17
- renderDetail: () => import("react/jsx-runtime").JSX.Element | null;
18
- };
19
- export {};
1
+ /**
2
+ * 宠物详情渲染 Hook
3
+ * @param dogInfo 宠物详情数据
4
+ * @param config 配置信息(用于文件预览地址)
5
+ * @returns 渲染函数
6
+ */
7
+ interface IDetailRenderProps {
8
+ detailInfo: any;
9
+ mainApplicationDomain: string;
10
+ labelSpan?: number;
11
+ valueSpan?: number;
12
+ imgWidth?: number;
13
+ imgHeight?: number;
14
+ useGrid?: boolean;
15
+ }
16
+ export default function useDetailRenderer({ detailInfo, labelSpan, valueSpan, imgWidth, imgHeight, useGrid, mainApplicationDomain, }: IDetailRenderProps): {
17
+ renderDetail: () => import("react/jsx-runtime").JSX.Element | null;
18
+ };
19
+ export {};
@@ -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,28 +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
- 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, };
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, };
@@ -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;