giime 0.6.22 → 0.6.24

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 (66) hide show
  1. package/dist/index.css +38 -38
  2. package/es/components/src/base/chart/Chart.vue.d.ts +2 -2
  3. package/es/components/src/base/chart/index.d.ts +2 -2
  4. package/es/components/src/base/dialog/dialog.d.ts +2 -0
  5. package/es/components/src/base/dialog/dialog.mjs.map +1 -1
  6. package/es/components/src/base/timeSelect/TimeSelect.vue2.mjs.map +1 -1
  7. package/es/components/src/base/timeSelect/timeSelect.mjs +1 -1
  8. package/es/components/src/base/timeSelect/timeSelect.mjs.map +1 -1
  9. package/es/components/src/base/tourStep/TourStep.vue.d.ts +9 -9
  10. package/es/components/src/base/tourStep/TourStep.vue2.mjs +1 -1
  11. package/es/components/src/base/tourStep/TourStep.vue2.mjs.map +1 -1
  12. package/es/components/src/base/tourStep/tourStep.d.ts +4 -4
  13. package/es/components/src/base/tourStep/tourStep.mjs +1 -1
  14. package/es/components/src/base/tourStep/tourStep.mjs.map +1 -1
  15. package/es/components/src/composite/importDialog/ImportDialog.vue.d.ts +17 -0
  16. package/es/components/src/composite/importDialog/ImportDialog.vue2.mjs +5 -8
  17. package/es/components/src/composite/importDialog/ImportDialog.vue2.mjs.map +1 -1
  18. package/es/components/src/composite/importDialog/importDialog.d.ts +11 -0
  19. package/es/components/src/composite/importDialog/importDialog.mjs +10 -0
  20. package/es/components/src/composite/importDialog/importDialog.mjs.map +1 -1
  21. package/es/components/src/composite/importDialog/index.d.ts +35 -0
  22. package/es/giime/index.mjs +3 -1
  23. package/es/giime/index.mjs.map +1 -1
  24. package/es/giime/version.d.ts +1 -1
  25. package/es/giime/version.mjs +1 -1
  26. package/es/giime/version.mjs.map +1 -1
  27. package/es/index.css +38 -38
  28. package/es/utils/index.d.ts +1 -0
  29. package/es/utils/index.mjs +4 -1
  30. package/es/utils/index.mjs.map +1 -1
  31. package/es/utils/src/is.d.ts +48 -36
  32. package/es/utils/src/is.mjs +47 -34
  33. package/es/utils/src/is.mjs.map +1 -1
  34. package/lib/components/src/base/chart/Chart.vue.d.ts +2 -2
  35. package/lib/components/src/base/chart/index.d.ts +2 -2
  36. package/lib/components/src/base/dialog/dialog.d.ts +2 -0
  37. package/lib/components/src/base/dialog/dialog.js.map +1 -1
  38. package/lib/components/src/base/timeSelect/TimeSelect.vue2.js.map +1 -1
  39. package/lib/components/src/base/timeSelect/timeSelect.js +2 -2
  40. package/lib/components/src/base/timeSelect/timeSelect.js.map +1 -1
  41. package/lib/components/src/base/tourStep/TourStep.vue.d.ts +9 -9
  42. package/lib/components/src/base/tourStep/TourStep.vue2.js +2 -2
  43. package/lib/components/src/base/tourStep/TourStep.vue2.js.map +1 -1
  44. package/lib/components/src/base/tourStep/tourStep.d.ts +4 -4
  45. package/lib/components/src/base/tourStep/tourStep.js +3 -3
  46. package/lib/components/src/base/tourStep/tourStep.js.map +1 -1
  47. package/lib/components/src/composite/importDialog/ImportDialog.vue.d.ts +17 -0
  48. package/lib/components/src/composite/importDialog/ImportDialog.vue2.js +4 -7
  49. package/lib/components/src/composite/importDialog/ImportDialog.vue2.js.map +1 -1
  50. package/lib/components/src/composite/importDialog/importDialog.d.ts +11 -0
  51. package/lib/components/src/composite/importDialog/importDialog.js +10 -0
  52. package/lib/components/src/composite/importDialog/importDialog.js.map +1 -1
  53. package/lib/components/src/composite/importDialog/index.d.ts +35 -0
  54. package/lib/giime/index.js +19 -0
  55. package/lib/giime/index.js.map +1 -1
  56. package/lib/giime/version.d.ts +1 -1
  57. package/lib/giime/version.js +1 -1
  58. package/lib/giime/version.js.map +1 -1
  59. package/lib/index.css +38 -38
  60. package/lib/utils/index.d.ts +1 -0
  61. package/lib/utils/index.js +20 -0
  62. package/lib/utils/index.js.map +1 -1
  63. package/lib/utils/src/is.d.ts +48 -36
  64. package/lib/utils/src/is.js +51 -33
  65. package/lib/utils/src/is.js.map +1 -1
  66. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var step = require('element-plus/es/components/tour/src/step');
3
+ var index = require('element-plus/es/components/tour/index');
4
4
 
5
5
  const tourStepProps = {
6
- ...step.tourStepProps
6
+ ...index.tourStepProps
7
7
  };
8
8
  const tourStepEmits = {
9
- ...step.tourStepEmits
9
+ ...index.tourStepEmits
10
10
  // 自定义事件
11
11
  };
12
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"tourStep.js","sources":["../../../../../../../packages/components/src/base/tourStep/tourStep.ts"],"sourcesContent":["// import { tourStepEmits as elTourStepEmits, } from 'element-plus';\nimport { tourStepEmits as elTourStepEmits, tourStepProps as elTourStepProps } from 'element-plus/es/components/tour/src/step';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { Placement, Strategy, VirtualElement } from '@floating-ui/dom';\nexport const tourStepProps = {\n ...elTourStepProps,\n};\n\nexport const tourStepEmits = {\n ...elTourStepEmits,\n // 自定义事件\n};\n"],"names":["elTourStepProps","elTourStepEmits"],"mappings":";;;;AAIO,MAAM,aAAgB,GAAA;AAAA,EAC3B,GAAGA,kBAAA;AACL,EAAA;AAEO,MAAM,aAAgB,GAAA;AAAA,EAC3B,GAAGC,kBAAA;AAAA;AAEL;;;;;"}
1
+ {"version":3,"file":"tourStep.js","sources":["../../../../../../../packages/components/src/base/tourStep/tourStep.ts"],"sourcesContent":["// import { tourStepEmits as elTourStepEmits, } from 'element-plus';\nimport { tourStepEmits as elTourStepEmits, tourStepProps as elTourStepProps } from 'element-plus/es/components/tour/index';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { Placement, Strategy, VirtualElement } from '@floating-ui/dom';\nexport const tourStepProps = {\n ...elTourStepProps,\n};\n\nexport const tourStepEmits = {\n ...elTourStepEmits,\n // 自定义事件\n};\n"],"names":["elTourStepProps","elTourStepEmits"],"mappings":";;;;AAIO,MAAM,aAAgB,GAAA;AAAA,EAC3B,GAAGA,mBAAA;AACL,EAAA;AAEO,MAAM,aAAgB,GAAA;AAAA,EAC3B,GAAGC,mBAAA;AAAA;AAEL;;;;;"}
@@ -66,6 +66,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
66
66
  errorReselect: {
67
67
  type: BooleanConstructor;
68
68
  };
69
+ dialogProps: {
70
+ type: import("vue").PropType<Partial<import("../../base").DialogProps>>;
71
+ default: () => {
72
+ title: string;
73
+ width: string;
74
+ appendToBody: boolean;
75
+ };
76
+ };
69
77
  }, {
70
78
  submit: () => void;
71
79
  abort: (file: UploadFile) => void;
@@ -142,6 +150,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
142
150
  errorReselect: {
143
151
  type: BooleanConstructor;
144
152
  };
153
+ dialogProps: {
154
+ type: import("vue").PropType<Partial<import("../../base").DialogProps>>;
155
+ default: () => {
156
+ title: string;
157
+ width: string;
158
+ appendToBody: boolean;
159
+ };
160
+ };
145
161
  }>> & {
146
162
  "onUpdate:fileList"?: ((fileList: UploadUserFile[]) => any) | undefined;
147
163
  onDownloadTemplate?: (() => any) | undefined;
@@ -155,6 +171,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
155
171
  accept: string;
156
172
  httpRequest: import("element-plus").UploadRequestHandler;
157
173
  errorReselect: boolean;
174
+ dialogProps: Partial<import("../../base").DialogProps>;
158
175
  }, {}>, {
159
176
  default?(_: {}): any;
160
177
  }>;
@@ -113,13 +113,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
113
113
  null,
114
114
  [
115
115
  vue.createCommentVNode(" \u5BFC\u5165\u5BF9\u8BDD\u6846 "),
116
- vue.createVNode(_component_gm_dialog, {
116
+ vue.createVNode(_component_gm_dialog, vue.mergeProps(_ctx.dialogProps, {
117
117
  modelValue: dialogVisible.value,
118
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
119
- title: "\u5BFC\u5165",
120
- width: "480px",
121
- "append-to-body": ""
122
- }, {
118
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event)
119
+ }), {
123
120
  footer: vue.withCtx(() => [
124
121
  vue.createElementVNode("div", _hoisted_6, [
125
122
  vue.createVNode(_component_gm_button, {
@@ -194,7 +191,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
194
191
  ]),
195
192
  _: 3
196
193
  /* FORWARDED */
197
- }, 8, ["modelValue"])
194
+ }, 16, ["modelValue"])
198
195
  ],
199
196
  2112
200
197
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -1 +1 @@
1
- {"version":3,"file":"ImportDialog.vue2.js","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\n <!-- 导入对话框 -->\n <gm-dialog v-model=\"dialogVisible\" title=\"导入\" width=\"480px\" append-to-body>\n <div class=\" \">\n <div class=\"gm-mb-2 gm-bg-[#f5f5f5] gm-p-4\">\n <p class=\"gm-mb-3 gm-text-[13px]\">下载导入模板,根据模板提示完善内容</p>\n <gm-button :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载模板 </gm-button>\n </div>\n <slot />\n <gm-upload\n ref=\"uploadRef\"\n v-model:file-list=\"fileList\"\n action=\"\"\n :limit=\"1\"\n drag\n :accept=\"accept\"\n :http-request=\"httpRequest\"\n :on-exceed=\"handleExceed\"\n :on-success=\"handleSuccess\"\n :on-error=\"handleError\"\n :on-remove=\"onRemove\"\n :before-upload=\"beforeUpload\"\n :auto-upload=\"false\"\n class=\"gmUploadEl gm-mb-5\"\n >\n <el-icon class=\"el-icon--upload\"><upload-filled /></el-icon>\n <div class=\"el-upload__text\">将文件拖到此处,或 <em>点击上传</em></div>\n <div class=\"gm-text-[#999]\">限制1个文件,新文件将覆盖旧文件</div>\n </gm-upload>\n </div>\n\n <template #footer>\n <div class=\"dialog-footer\">\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">导 入</gm-button>\n <gm-button @click=\"closeDialog\">取 消</gm-button>\n </div>\n </template>\n </gm-dialog>\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue';\nimport { genFileId } from 'element-plus';\nimport { getGmExports } from '@giime/utils/src/elementPlus/exports';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { Download, UploadFilled } from '@element-plus/icons-vue';\nimport { importDialogEmits, importDialogProps } from './importDialog';\nimport type { UploadInstance } from '../../base/upload';\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\n\ndefineOptions({\n name: 'GmImportDialog',\n});\nconst props = defineProps(importDialogProps);\nconst emit = defineEmits(importDialogEmits);\n\nconst fileList = defineModel<UploadUserFile[]>('fileList', { default: () => [] });\nconst uploadRef = ref<UploadInstance>();\n\nconst handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => {\n uploadRef.value!.clearFiles();\n const file = files[0] as UploadRawFile;\n file.uid = genFileId();\n uploadRef.value!.handleStart(file);\n props.onExceed?.(files, uploadFiles);\n};\n\nconst submitUpload = () => {\n if (fileList.value.length === 0) {\n return GmMessage.error('请选择文件');\n }\n uploadRef.value!.submit();\n emit('importClick');\n};\n/**\n * 编辑表单\n */\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\nconst dialogVisible = ref(false);\n\n/** 新增按钮操作 */\nconst openDialog = () => {\n dialogVisible.value = true;\n};\n/** 取消按钮 */\nfunction closeDialog() {\n dialogVisible.value = false;\n reset();\n}\n/** 表单重置 */\nfunction reset() {\n fileList.value = [];\n uploadRef.value?.clearFiles();\n}\n\nconst uploadLoading = ref(false);\nconst httpRequest = (options: UploadRequestOptions) => {\n uploadLoading.value = true;\n return props.httpRequest(options);\n};\n// 上传成功\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\n uploadLoading.value = false;\n return props.onSuccess(response, uploadFile, uploadFiles);\n}\n// 上传失败\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\n const file = uploadFile.raw;\n if (props.errorReselect && file) {\n file.uid = genFileId();\n uploadRef.value?.handleStart(file);\n }\n uploadLoading.value = false;\n return props.onError(error, uploadFile, uploadFiles);\n};\n\nconst exposeNames = ['abort', 'submit', 'clearFiles', 'handleStart', 'handleRemove'] as const;\nconst { exposeFns } = getGmExports(uploadRef, exposeNames);\ndefineExpose({\n openDialog,\n closeDialog,\n reset,\n ...exposeFns,\n});\n</script>\n<!-- <style scoped lang=\"scss\">\n:deep(.gmUploadEl .el-upload-dragger) {\n // background-color: #f5f5f5;\n // border: none;\n}\n</style> -->\n"],"names":["_useModel","ref","genFileId","GmMessage","getGmExports"],"mappings":"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"}
1
+ {"version":3,"file":"ImportDialog.vue2.js","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\n <!-- 导入对话框 -->\n <gm-dialog v-bind=\"dialogProps\" v-model=\"dialogVisible\">\n <div class=\" \">\n <div class=\"gm-mb-2 gm-bg-[#f5f5f5] gm-p-4\">\n <p class=\"gm-mb-3 gm-text-[13px]\">下载导入模板,根据模板提示完善内容</p>\n <gm-button :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载模板 </gm-button>\n </div>\n <slot />\n <gm-upload\n ref=\"uploadRef\"\n v-model:file-list=\"fileList\"\n action=\"\"\n :limit=\"1\"\n drag\n :accept=\"accept\"\n :http-request=\"httpRequest\"\n :on-exceed=\"handleExceed\"\n :on-success=\"handleSuccess\"\n :on-error=\"handleError\"\n :on-remove=\"onRemove\"\n :before-upload=\"beforeUpload\"\n :auto-upload=\"false\"\n class=\"gmUploadEl gm-mb-5\"\n >\n <el-icon class=\"el-icon--upload\"><upload-filled /></el-icon>\n <div class=\"el-upload__text\">将文件拖到此处,或 <em>点击上传</em></div>\n <div class=\"gm-text-[#999]\">限制1个文件,新文件将覆盖旧文件</div>\n </gm-upload>\n </div>\n\n <template #footer>\n <div class=\"dialog-footer\">\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">导 入</gm-button>\n <gm-button @click=\"closeDialog\">取 消</gm-button>\n </div>\n </template>\n </gm-dialog>\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue';\nimport { genFileId } from 'element-plus';\nimport { getGmExports } from '@giime/utils/src/elementPlus/exports';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { Download, UploadFilled } from '@element-plus/icons-vue';\nimport { importDialogEmits, importDialogProps } from './importDialog';\nimport type { UploadInstance } from '../../base/upload';\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\n\ndefineOptions({\n name: 'GmImportDialog',\n});\nconst props = defineProps(importDialogProps);\nconst emit = defineEmits(importDialogEmits);\n\nconst fileList = defineModel<UploadUserFile[]>('fileList', { default: () => [] });\nconst uploadRef = ref<UploadInstance>();\n\nconst handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => {\n uploadRef.value!.clearFiles();\n const file = files[0] as UploadRawFile;\n file.uid = genFileId();\n uploadRef.value!.handleStart(file);\n props.onExceed?.(files, uploadFiles);\n};\n\nconst submitUpload = () => {\n if (fileList.value.length === 0) {\n return GmMessage.error('请选择文件');\n }\n uploadRef.value!.submit();\n emit('importClick');\n};\n/**\n * 编辑表单\n */\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\nconst dialogVisible = ref(false);\n\n/** 新增按钮操作 */\nconst openDialog = () => {\n dialogVisible.value = true;\n};\n/** 取消按钮 */\nfunction closeDialog() {\n dialogVisible.value = false;\n reset();\n}\n/** 表单重置 */\nfunction reset() {\n fileList.value = [];\n uploadRef.value?.clearFiles();\n}\n\nconst uploadLoading = ref(false);\nconst httpRequest = (options: UploadRequestOptions) => {\n uploadLoading.value = true;\n return props.httpRequest(options);\n};\n// 上传成功\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\n uploadLoading.value = false;\n return props.onSuccess(response, uploadFile, uploadFiles);\n}\n// 上传失败\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\n const file = uploadFile.raw;\n if (props.errorReselect && file) {\n file.uid = genFileId();\n uploadRef.value?.handleStart(file);\n }\n uploadLoading.value = false;\n return props.onError(error, uploadFile, uploadFiles);\n};\n\nconst exposeNames = ['abort', 'submit', 'clearFiles', 'handleStart', 'handleRemove'] as const;\nconst { exposeFns } = getGmExports(uploadRef, exposeNames);\ndefineExpose({\n openDialog,\n closeDialog,\n reset,\n ...exposeFns,\n});\n</script>\n<!-- <style scoped lang=\"scss\">\n:deep(.gmUploadEl .el-upload-dragger) {\n // background-color: #f5f5f5;\n // border: none;\n}\n</style> -->\n"],"names":["_useModel","ref","genFileId","GmMessage","getGmExports"],"mappings":"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"}
@@ -1,3 +1,5 @@
1
+ import type { PropType } from 'vue';
2
+ import { type DialogProps } from '../../base/dialog/dialog';
1
3
  export declare const importDialogProps: {
2
4
  onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
3
5
  (): (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
@@ -61,6 +63,15 @@ export declare const importDialogProps: {
61
63
  errorReselect: {
62
64
  type: BooleanConstructor;
63
65
  };
66
+ /**dialog的属性 */
67
+ dialogProps: {
68
+ type: PropType<Partial<DialogProps>>;
69
+ default: () => {
70
+ title: string;
71
+ width: string;
72
+ appendToBody: boolean;
73
+ };
74
+ };
64
75
  };
65
76
  export declare const importDialogEmits: {
66
77
  /**
@@ -16,6 +16,16 @@ const importDialogProps = {
16
16
  /**上传失败后的文件 是否重新选择,默认会被清除掉 */
17
17
  errorReselect: {
18
18
  type: Boolean
19
+ },
20
+ /**dialog的属性 */
21
+ dialogProps: {
22
+ type: Object,
23
+ // 配置选项
24
+ default: () => ({
25
+ title: "\u5BFC\u5165",
26
+ width: "480px",
27
+ appendToBody: true
28
+ })
19
29
  }
20
30
  };
21
31
  const importDialogEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"importDialog.js","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\nimport { uploadProps } from '../../base/upload/upload';\nexport const importDialogProps = {\n onSuccess: uploadProps['onSuccess'],\n onError: uploadProps['onError'],\n httpRequest: uploadProps['httpRequest'],\n beforeUpload: uploadProps['beforeUpload'],\n onRemove: uploadProps['onRemove'],\n onExceed: uploadProps['onExceed'],\n accept: {\n type: String,\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\n },\n /**上传失败后的文件 是否重新选择,默认会被清除掉 */\n errorReselect: {\n type: Boolean,\n },\n};\n\nexport const importDialogEmits = {\n /**\n * 下载模板按钮点击事件\n */\n downloadTemplate: async () => {},\n /**\n * 点击导入按钮\n */\n importClick: async () => {},\n};\n"],"names":["uploadProps"],"mappings":";;;;AAEO,MAAM,iBAAoB,GAAA;AAAA,EAC/B,SAAA,EAAWA,mBAAY,WAAW,CAAA;AAAA,EAClC,OAAA,EAASA,mBAAY,SAAS,CAAA;AAAA,EAC9B,WAAA,EAAaA,mBAAY,aAAa,CAAA;AAAA,EACtC,YAAA,EAAcA,mBAAY,cAAc,CAAA;AAAA,EACxC,QAAA,EAAUA,mBAAY,UAAU,CAAA;AAAA,EAChC,QAAA,EAAUA,mBAAY,UAAU,CAAA;AAAA,EAChC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,GACR;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AAAA;AAAA;AAAA;AAAA,EAI/B,aAAa,YAAY;AAAA,GAAC;AAC5B;;;;;"}
1
+ {"version":3,"file":"importDialog.js","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\nimport type { PropType } from 'vue';\nimport { type DialogProps } from '../../base/dialog/dialog';\nimport { uploadProps } from '../../base/upload/upload';\nexport const importDialogProps = {\n onSuccess: uploadProps['onSuccess'],\n onError: uploadProps['onError'],\n httpRequest: uploadProps['httpRequest'],\n beforeUpload: uploadProps['beforeUpload'],\n onRemove: uploadProps['onRemove'],\n onExceed: uploadProps['onExceed'],\n accept: {\n type: String,\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\n },\n /**上传失败后的文件 是否重新选择,默认会被清除掉 */\n errorReselect: {\n type: Boolean,\n },\n /**dialog的属性 */\n dialogProps: {\n type: Object as PropType<Partial<DialogProps>>, // 配置选项\n default: () => ({\n title: '导入',\n width: '480px',\n appendToBody: true,\n }),\n },\n};\n\nexport const importDialogEmits = {\n /**\n * 下载模板按钮点击事件\n */\n downloadTemplate: async () => {},\n /**\n * 点击导入按钮\n */\n importClick: async () => {},\n};\n"],"names":["uploadProps"],"mappings":";;;;AAIO,MAAM,iBAAoB,GAAA;AAAA,EAC/B,SAAA,EAAWA,mBAAY,WAAW,CAAA;AAAA,EAClC,OAAA,EAASA,mBAAY,SAAS,CAAA;AAAA,EAC9B,WAAA,EAAaA,mBAAY,aAAa,CAAA;AAAA,EACtC,YAAA,EAAcA,mBAAY,cAAc,CAAA;AAAA,EACxC,QAAA,EAAUA,mBAAY,UAAU,CAAA;AAAA,EAChC,QAAA,EAAUA,mBAAY,UAAU,CAAA;AAAA,EAChC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA,EAEA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA;AAAA,IACN,SAAS,OAAO;AAAA,MACd,KAAO,EAAA,cAAA;AAAA,MACP,KAAO,EAAA,OAAA;AAAA,MACP,YAAc,EAAA,IAAA;AAAA,KAChB,CAAA;AAAA,GACF;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AAAA;AAAA;AAAA;AAAA,EAI/B,aAAa,YAAY;AAAA,GAAC;AAC5B;;;;;"}
@@ -63,6 +63,14 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
63
63
  errorReselect: {
64
64
  type: BooleanConstructor;
65
65
  };
66
+ dialogProps: {
67
+ type: import("vue").PropType<Partial<import("../../base/index.js").DialogProps>>;
68
+ default: () => {
69
+ title: string;
70
+ width: string;
71
+ appendToBody: boolean;
72
+ };
73
+ };
66
74
  }>> & {
67
75
  "onUpdate:fileList"?: ((fileList: import("element-plus").UploadUserFile[]) => any) | undefined;
68
76
  onDownloadTemplate?: (() => any) | undefined;
@@ -143,6 +151,14 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
143
151
  errorReselect: {
144
152
  type: BooleanConstructor;
145
153
  };
154
+ dialogProps: {
155
+ type: import("vue").PropType<Partial<import("../../base/index.js").DialogProps>>;
156
+ default: () => {
157
+ title: string;
158
+ width: string;
159
+ appendToBody: boolean;
160
+ };
161
+ };
146
162
  }>> & {
147
163
  "onUpdate:fileList"?: ((fileList: import("element-plus").UploadUserFile[]) => any) | undefined;
148
164
  onDownloadTemplate?: (() => any) | undefined;
@@ -156,6 +172,7 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
156
172
  accept: string;
157
173
  httpRequest: import("element-plus").UploadRequestHandler;
158
174
  errorReselect: boolean;
175
+ dialogProps: Partial<import("../../base/index.js").DialogProps>;
159
176
  }, true, {}, {}, {
160
177
  P: {};
161
178
  B: {};
@@ -226,6 +243,14 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
226
243
  errorReselect: {
227
244
  type: BooleanConstructor;
228
245
  };
246
+ dialogProps: {
247
+ type: import("vue").PropType<Partial<import("../../base/index.js").DialogProps>>;
248
+ default: () => {
249
+ title: string;
250
+ width: string;
251
+ appendToBody: boolean;
252
+ };
253
+ };
229
254
  }>> & {
230
255
  "onUpdate:fileList"?: ((fileList: import("element-plus").UploadUserFile[]) => any) | undefined;
231
256
  onDownloadTemplate?: (() => any) | undefined;
@@ -248,6 +273,7 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
248
273
  accept: string;
249
274
  httpRequest: import("element-plus").UploadRequestHandler;
250
275
  errorReselect: boolean;
276
+ dialogProps: Partial<import("../../base/index.js").DialogProps>;
251
277
  }>;
252
278
  __isFragment?: undefined;
253
279
  __isTeleport?: undefined;
@@ -315,6 +341,14 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
315
341
  errorReselect: {
316
342
  type: BooleanConstructor;
317
343
  };
344
+ dialogProps: {
345
+ type: import("vue").PropType<Partial<import("../../base/index.js").DialogProps>>;
346
+ default: () => {
347
+ title: string;
348
+ width: string;
349
+ appendToBody: boolean;
350
+ };
351
+ };
318
352
  }>> & {
319
353
  "onUpdate:fileList"?: ((fileList: import("element-plus").UploadUserFile[]) => any) | undefined;
320
354
  onDownloadTemplate?: (() => any) | undefined;
@@ -341,6 +375,7 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
341
375
  accept: string;
342
376
  httpRequest: import("element-plus").UploadRequestHandler;
343
377
  errorReselect: boolean;
378
+ dialogProps: Partial<import("../../base/index.js").DialogProps>;
344
379
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
345
380
  $slots: {
346
381
  default?(_: {}): any;
@@ -30,6 +30,8 @@ var findChildrenItem = require('../utils/src/tree/findChildrenItem.js');
30
30
  var index = require('../utils/src/pasteFile/index.js');
31
31
  var image = require('../utils/src/image.js');
32
32
  var array = require('../utils/src/array.js');
33
+ var number$1 = require('../utils/src/regexPatterns/number.js');
34
+ var url$1 = require('../utils/src/regexPatterns/url.js');
33
35
  var affix = require('../components/src/base/affix/affix.js');
34
36
  var index$1 = require('../components/src/base/affix/index.js');
35
37
  var alert = require('../components/src/base/alert/alert.js');
@@ -335,14 +337,19 @@ const install = defaults.default.install;
335
337
  const version = defaults.default.version;
336
338
 
337
339
  exports.default = defaults.default;
340
+ exports.FILE_EXTENSIONS = is.FILE_EXTENSIONS;
341
+ exports.FileType = is.FileType;
338
342
  exports.getTag = is.getTag;
339
343
  exports.isBoolean = is.isBoolean;
344
+ exports.isClient = is.isClient;
340
345
  exports.isDate = is.isDate;
341
346
  exports.isDecimal = is.isDecimal;
342
347
  exports.isError = is.isError;
343
348
  exports.isEven = is.isEven;
344
349
  exports.isExcel = is.isExcel;
350
+ exports.isFunction = is.isFunction;
345
351
  exports.isHttps = is.isHttps;
352
+ exports.isIOS = is.isIOS;
346
353
  exports.isImageUrl = is.isImageUrl;
347
354
  exports.isInteger = is.isInteger;
348
355
  exports.isNegative = is.isNegative;
@@ -424,6 +431,18 @@ exports.generateFileName = index.generateFileName;
424
431
  exports.handlePasteEvent = index.handlePasteEvent;
425
432
  exports.getCountryImageUrl = image.getCountryImageUrl;
426
433
  exports.mergePropsToArray = array.mergePropsToArray;
434
+ exports.integerPattern = number$1.integerPattern;
435
+ exports.moneyPattern = number$1.moneyPattern;
436
+ exports.nonNegativeIntegerPattern = number$1.nonNegativeIntegerPattern;
437
+ exports.nonNegativeNumberPattern = number$1.nonNegativeNumberPattern;
438
+ exports.nonZeroNumberPattern = number$1.nonZeroNumberPattern;
439
+ exports.numberPattern = number$1.numberPattern;
440
+ exports.positiveIntegerPattern = number$1.positiveIntegerPattern;
441
+ exports.positiveNumberPattern = number$1.positiveNumberPattern;
442
+ exports.base64Pattern = url$1.base64Pattern;
443
+ exports.domainPattern = url$1.domainPattern;
444
+ exports.emailPattern = url$1.emailPattern;
445
+ exports.urlPattern = url$1.urlPattern;
427
446
  exports.affixEmits = affix.affixEmits;
428
447
  exports.affixProps = affix.affixProps;
429
448
  exports.GmAffix = index$1.GmAffix;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\nimport './tailwind.css';\nexport * from '@giime/utils';\nexport * from '@giime/components';\nexport * from '@giime/hooks';\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\nimport './tailwind.css';\nexport * from '@giime/utils';\nexport * from '@giime/components';\nexport * from '@giime/hooks';\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.6.22";
1
+ export declare const version = "0.6.24";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.6.22";
3
+ const version = "0.6.24";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.22';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.24';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
package/lib/index.css CHANGED
@@ -816,24 +816,6 @@ video {
816
816
  .gm-flex-justify-between[data-v-c17deec9] {
817
817
  justify-content: space-between;
818
818
  }
819
- .gm-number-interval-single[data-v-4e6f4d6f] {
820
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
821
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
822
- background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
823
- }
824
- .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
825
- box-shadow: none;
826
- background: none;
827
- }
828
-
829
- .gm-number-interval-close[data-v-4e6f4d6f] {
830
- display: none;
831
- color: var(--el-input-icon-color, var(--el-text-color-placeholder));
832
- }
833
-
834
- .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
835
- display: flex;
836
- }
837
819
  .circular[data-v-d7b04fae] {
838
820
  animation: loading-rotate-d7b04fae 2s linear infinite;
839
821
  }
@@ -865,28 +847,27 @@ video {
865
847
  stroke-dashoffset: -120px;
866
848
  }
867
849
  }
868
- [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
869
- border-right: none;
870
- }
871
-
872
- [data-v-2c351ff8] .gmTableNoBorder .el-table__inner-wrapper:before {
873
- height: 0;
850
+ .gm-number-interval-single[data-v-4e6f4d6f] {
851
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
852
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
853
+ background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
874
854
  }
875
-
876
- [data-v-2c351ff8] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
877
- height: 0;
855
+ .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
856
+ box-shadow: none;
857
+ background: none;
878
858
  }
879
859
 
880
- [data-v-2c351ff8] .gmTableNoBorder.el-table--border:after {
881
- height: 0;
860
+ .gm-number-interval-close[data-v-4e6f4d6f] {
861
+ display: none;
862
+ color: var(--el-input-icon-color, var(--el-text-color-placeholder));
882
863
  }
883
864
 
884
- [data-v-2c351ff8] .gmTableNoBorder.el-table--border:before {
885
- height: 0;
865
+ .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
866
+ display: flex;
886
867
  }
887
-
888
- [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
889
- height: 0;
868
+ [data-v-488ca110] .gmSearchForm .el-form-item {
869
+ margin-right: 0;
870
+ margin-bottom: 4px;
890
871
  }
891
872
  .gm-upload-preview-dialog[data-v-921404ff] [data-v-921404ff] .el-dialog__body {
892
873
  padding: 0;
@@ -896,10 +877,6 @@ video {
896
877
  width: auto;
897
878
  height: auto;
898
879
  }
899
- [data-v-488ca110] .gmSearchForm .el-form-item {
900
- margin-right: 0;
901
- margin-bottom: 4px;
902
- }
903
880
  .gm-upload-file {
904
881
  line-height: normal;
905
882
  }
@@ -929,6 +906,29 @@ video {
929
906
  .gm-upload-file-disabled .el-upload-list__item-status-label {
930
907
  display: none;
931
908
  }
909
+ [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
910
+ border-right: none;
911
+ }
912
+
913
+ [data-v-2c351ff8] .gmTableNoBorder .el-table__inner-wrapper:before {
914
+ height: 0;
915
+ }
916
+
917
+ [data-v-2c351ff8] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
918
+ height: 0;
919
+ }
920
+
921
+ [data-v-2c351ff8] .gmTableNoBorder.el-table--border:after {
922
+ height: 0;
923
+ }
924
+
925
+ [data-v-2c351ff8] .gmTableNoBorder.el-table--border:before {
926
+ height: 0;
927
+ }
928
+
929
+ [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
930
+ height: 0;
931
+ }
932
932
 
933
933
  .pagination-container[data-v-47d35e7b] {
934
934
  background: #fff;
@@ -13,3 +13,4 @@ export * from './src/tree/index';
13
13
  export * from './src/pasteFile';
14
14
  export * from './src/image';
15
15
  export * from './src/array';
16
+ export * from './src/regexPatterns';
@@ -15,6 +15,7 @@ require('./src/tree/index.js');
15
15
  var index = require('./src/pasteFile/index.js');
16
16
  var image = require('./src/image.js');
17
17
  var array = require('./src/array.js');
18
+ require('./src/regexPatterns/index.js');
18
19
  var install = require('./src/vue/install.js');
19
20
  var resolver = require('./src/vue/resolver.js');
20
21
  var event = require('./src/elementPlus/event.js');
@@ -30,17 +31,24 @@ var md5 = require('./src/crypto/md5.js');
30
31
  var sha1 = require('./src/crypto/sha1.js');
31
32
  var filterTreeByName = require('./src/tree/filterTreeByName.js');
32
33
  var findChildrenItem = require('./src/tree/findChildrenItem.js');
34
+ var number$1 = require('./src/regexPatterns/number.js');
35
+ var url$1 = require('./src/regexPatterns/url.js');
33
36
 
34
37
 
35
38
 
39
+ exports.FILE_EXTENSIONS = is.FILE_EXTENSIONS;
40
+ exports.FileType = is.FileType;
36
41
  exports.getTag = is.getTag;
37
42
  exports.isBoolean = is.isBoolean;
43
+ exports.isClient = is.isClient;
38
44
  exports.isDate = is.isDate;
39
45
  exports.isDecimal = is.isDecimal;
40
46
  exports.isError = is.isError;
41
47
  exports.isEven = is.isEven;
42
48
  exports.isExcel = is.isExcel;
49
+ exports.isFunction = is.isFunction;
43
50
  exports.isHttps = is.isHttps;
51
+ exports.isIOS = is.isIOS;
44
52
  exports.isImageUrl = is.isImageUrl;
45
53
  exports.isInteger = is.isInteger;
46
54
  exports.isNegative = is.isNegative;
@@ -122,4 +130,16 @@ exports.hex_hmac_sha1 = sha1.hex_hmac_sha1;
122
130
  exports.hex_sha1 = sha1.hex_sha1;
123
131
  exports.filterTreeByName = filterTreeByName.filterTreeByName;
124
132
  exports.findChildrenItem = findChildrenItem.findChildrenItem;
133
+ exports.integerPattern = number$1.integerPattern;
134
+ exports.moneyPattern = number$1.moneyPattern;
135
+ exports.nonNegativeIntegerPattern = number$1.nonNegativeIntegerPattern;
136
+ exports.nonNegativeNumberPattern = number$1.nonNegativeNumberPattern;
137
+ exports.nonZeroNumberPattern = number$1.nonZeroNumberPattern;
138
+ exports.numberPattern = number$1.numberPattern;
139
+ exports.positiveIntegerPattern = number$1.positiveIntegerPattern;
140
+ exports.positiveNumberPattern = number$1.positiveNumberPattern;
141
+ exports.base64Pattern = url$1.base64Pattern;
142
+ exports.domainPattern = url$1.domainPattern;
143
+ exports.emailPattern = url$1.emailPattern;
144
+ exports.urlPattern = url$1.urlPattern;
125
145
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,6 +5,7 @@ export declare function isString(value: any): value is string;
5
5
  export declare function isNumber(value: any): value is number;
6
6
  export declare function isSymbol(value: any): value is symbol;
7
7
  export declare function isDate(value: any): value is Date;
8
+ export declare const isFunction: (val: unknown) => val is Function;
8
9
  /**
9
10
  * 整数
10
11
  */
@@ -39,57 +40,68 @@ export declare function isNil(val: any): val is null | undefined;
39
40
  export declare function isError(value: any): value is Error;
40
41
  export declare function isPlainObject(value: any): value is object;
41
42
  export declare const isHttps: () => boolean;
43
+ export declare const isClient: boolean;
44
+ export declare const isIOS: boolean | "";
42
45
  /**
43
- * @description 描述:判断是否为视频
44
- * @param {string} url 文件链接 或 文件名
45
- * @return {*}
46
- **/
46
+ * 文件类型枚举
47
+ */
48
+ export declare enum FileType {
49
+ Video = "Video",
50
+ Image = "Image",
51
+ Pdf = "Pdf",
52
+ Word = "Word",
53
+ Excel = "Excel",
54
+ Ppt = "Ppt",
55
+ Text = "Text",
56
+ Psd = "Psd",
57
+ Zip = "Zip"
58
+ }
59
+ /**
60
+ * 不同文件类型的扩展名配置
61
+ */
62
+ export declare const FILE_EXTENSIONS: Record<FileType, readonly string[]>;
63
+ /**
64
+ * @description 判断是否为视频
65
+ * @param url 文件链接 或 文件名
66
+ */
47
67
  export declare const isVideoUrl: (url: string) => boolean;
48
68
  /**
49
- * @description 描述:判断是否为图片
50
- * @param {string} url 文件链接 或 文件名
51
- * @return {*}
52
- **/
69
+ * @description 判断是否为图片
70
+ * @param url 文件链接 或 文件名
71
+ */
53
72
  export declare const isImageUrl: (url: string) => boolean;
54
73
  /**
55
- * @description 描述:判断是否为PDF
56
- * @param {string} url 文件链接 或 文件名
57
- * @return {*}
58
- **/
74
+ * @description 判断是否为PDF
75
+ * @param url 文件链接 或 文件名
76
+ */
59
77
  export declare const isPDF: (url: string) => boolean;
60
78
  /**
61
- * @description 描述:是否为Word
62
- * @param {string} url 文件链接 或 文件名
63
- * @return {*}
64
- **/
79
+ * @description 是否为Word文档
80
+ * @param url 文件链接 或 文件名
81
+ */
65
82
  export declare const isWord: (url: string) => boolean;
66
83
  /**
67
- * @description 描述:是否为Excel
68
- * @param {string} url 文件链接 或 文件名
69
- * @return {*}
70
- **/
84
+ * @description 是否为Excel文件
85
+ * @param url 文件链接 或 文件名
86
+ */
71
87
  export declare const isExcel: (url: string) => boolean;
72
88
  /**
73
- * @description 描述:是否为PPT
74
- * @param {string} url 文件链接 或 文件名
75
- * @return {*}
76
- **/
89
+ * @description 是否为PPT文件
90
+ * @param url 文件链接 或 文件名
91
+ */
77
92
  export declare const isPPT: (url: string) => boolean;
78
93
  /**
79
- * @description 描述:是否为text
80
- * @param {string} url 文件链接 或 文件名
81
- * @return {*}
82
- **/
94
+ * @description 是否为文本文件
95
+ * @param url 文件链接 或 文件名
96
+ */
83
97
  export declare const isText: (url: string) => boolean;
84
98
  /**
85
- * @description 描述:是否为PSD
86
- * @param {string} url 文件链接 或 文件名
87
- * @return {*}
88
- **/
99
+ * @description 是否为PSD文件
100
+ * @param url 文件链接 或 文件名
101
+ */
89
102
  export declare const isPSD: (url: string) => boolean;
90
103
  /**
91
- * @description 描述:是否为压缩包
92
- * @param {string} url 文件链接 或 文件名
93
- * @return {*}
94
- **/
104
+ * @description 判断是否为压缩包
105
+ * @param url 文件链接 或 文件名
106
+ */
95
107
  export declare const isZip: (url: string) => boolean;