giime 0.1.4 → 0.1.6

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 (51) hide show
  1. package/es/components/index.mjs +1 -0
  2. package/es/components/index.mjs.map +1 -1
  3. package/es/components/src/composite/importDialog/ImportDialog.vue.d.ts +20 -1
  4. package/es/components/src/composite/importDialog/ImportDialog.vue2.mjs +2 -1
  5. package/es/components/src/composite/importDialog/ImportDialog.vue2.mjs.map +1 -1
  6. package/es/components/src/composite/importDialog/importDialog.d.ts +9 -0
  7. package/es/components/src/composite/importDialog/importDialog.mjs +1 -0
  8. package/es/components/src/composite/importDialog/importDialog.mjs.map +1 -1
  9. package/es/components/src/composite/importDialog/index.d.ts +19 -0
  10. package/es/components/src/plugins/confirmBox/index.d.ts +3 -0
  11. package/es/components/src/plugins/confirmBox/index.mjs +8 -0
  12. package/es/components/src/plugins/confirmBox/index.mjs.map +1 -0
  13. package/es/components/src/plugins/confirmBox/method.d.ts +5 -0
  14. package/es/components/src/plugins/confirmBox/method.mjs +26 -0
  15. package/es/components/src/plugins/confirmBox/method.mjs.map +1 -0
  16. package/es/components/src/plugins/index.d.ts +1 -0
  17. package/es/components/src/plugins/index.mjs +1 -0
  18. package/es/components/src/plugins/index.mjs.map +1 -1
  19. package/es/giime/index.mjs +1 -0
  20. package/es/giime/index.mjs.map +1 -1
  21. package/es/giime/plugin.mjs +2 -1
  22. package/es/giime/plugin.mjs.map +1 -1
  23. package/es/giime/version.d.ts +1 -1
  24. package/es/giime/version.mjs +1 -1
  25. package/es/giime/version.mjs.map +1 -1
  26. package/lib/components/index.js +2 -0
  27. package/lib/components/index.js.map +1 -1
  28. package/lib/components/src/composite/importDialog/ImportDialog.vue.d.ts +20 -1
  29. package/lib/components/src/composite/importDialog/ImportDialog.vue2.js +2 -1
  30. package/lib/components/src/composite/importDialog/ImportDialog.vue2.js.map +1 -1
  31. package/lib/components/src/composite/importDialog/importDialog.d.ts +9 -0
  32. package/lib/components/src/composite/importDialog/importDialog.js +1 -0
  33. package/lib/components/src/composite/importDialog/importDialog.js.map +1 -1
  34. package/lib/components/src/composite/importDialog/index.d.ts +19 -0
  35. package/lib/components/src/plugins/confirmBox/index.d.ts +3 -0
  36. package/lib/components/src/plugins/confirmBox/index.js +13 -0
  37. package/lib/components/src/plugins/confirmBox/index.js.map +1 -0
  38. package/lib/components/src/plugins/confirmBox/method.d.ts +5 -0
  39. package/lib/components/src/plugins/confirmBox/method.js +28 -0
  40. package/lib/components/src/plugins/confirmBox/method.js.map +1 -0
  41. package/lib/components/src/plugins/index.d.ts +1 -0
  42. package/lib/components/src/plugins/index.js +2 -0
  43. package/lib/components/src/plugins/index.js.map +1 -1
  44. package/lib/giime/index.js +30 -28
  45. package/lib/giime/index.js.map +1 -1
  46. package/lib/giime/plugin.js +2 -1
  47. package/lib/giime/plugin.js.map +1 -1
  48. package/lib/giime/version.d.ts +1 -1
  49. package/lib/giime/version.js +1 -1
  50. package/lib/giime/version.js.map +1 -1
  51. package/package.json +1 -1
@@ -258,4 +258,5 @@ export { GmLoading } from './src/plugins/loading/index.mjs';
258
258
  export { GmMessageBox } from './src/plugins/messageBox/index.mjs';
259
259
  export { GmNotification } from './src/plugins/notification/index.mjs';
260
260
  export { GmCopy } from './src/plugins/copy/index.mjs';
261
+ export { GmConfirmBox } from './src/plugins/confirmBox/index.mjs';
261
262
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import type { UploadFile, UploadFiles } from 'element-plus';
1
+ import type { UploadFile, UploadFiles, UploadRawFile } from 'element-plus';
2
2
  /** 取消按钮 */
3
3
  declare function closeDialog(): void;
4
4
  /** 表单重置 */
@@ -31,6 +31,15 @@ declare const _default: import("vue").DefineComponent<{
31
31
  new (): any;
32
32
  readonly prototype: any;
33
33
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
34
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
35
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
36
+ new (): any;
37
+ readonly prototype: any;
38
+ } | ((new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
39
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
40
+ new (): any;
41
+ readonly prototype: any;
42
+ })[], unknown, unknown, () => void, boolean>;
34
43
  accept: {
35
44
  type: StringConstructor;
36
45
  default: string;
@@ -69,6 +78,15 @@ declare const _default: import("vue").DefineComponent<{
69
78
  new (): any;
70
79
  readonly prototype: any;
71
80
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
81
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
82
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
83
+ new (): any;
84
+ readonly prototype: any;
85
+ } | ((new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
86
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
87
+ new (): any;
88
+ readonly prototype: any;
89
+ })[], unknown, unknown, () => void, boolean>;
72
90
  accept: {
73
91
  type: StringConstructor;
74
92
  default: string;
@@ -77,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
77
95
  onDownloadTemplate?: (() => any) | undefined;
78
96
  }, {
79
97
  onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
98
+ beforeUpload: (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
80
99
  onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
81
100
  accept: string;
82
101
  httpRequest: import("element-plus").UploadRequestHandler;
@@ -115,6 +115,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
115
115
  "on-exceed": handleExceed,
116
116
  "on-success": handleSuccess,
117
117
  "on-error": handleError,
118
+ "before-upload": _ctx.beforeUpload,
118
119
  "auto-upload": false,
119
120
  class: "gm-px-6"
120
121
  }, {
@@ -149,7 +150,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
149
150
  ]),
150
151
  _: 1
151
152
  /* STABLE */
152
- }, 8, ["file-list", "accept"])
153
+ }, 8, ["file-list", "accept", "before-upload"])
153
154
  ])
154
155
  ]),
155
156
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"ImportDialog.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\r\n <!-- 导入对话框 -->\r\n <gm-dialog v-model=\"dialogVisible\" title=\"导入\" width=\"500px\" append-to-body>\r\n <div class=\" \">\r\n <gm-upload\r\n ref=\"uploadRef\"\r\n v-model:file-list=\"fileList\"\r\n action=\"\"\r\n :limit=\"1\"\r\n :accept=\"accept\"\r\n :http-request=\"httpRequest\"\r\n :on-exceed=\"handleExceed\"\r\n :on-success=\"handleSuccess\"\r\n :on-error=\"handleError\"\r\n :auto-upload=\"false\"\r\n class=\"gm-px-6\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-button type=\"primary\" :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载导入模板 </gm-button>\r\n <gm-button type=\"primary\" :icon=\"Upload\" style=\"margin-left: 36px\">选择文件导入</gm-button>\r\n </div>\r\n\r\n <!-- <el-button class=\"ml-3\" type=\"success\" @click=\"submitUpload\"> upload to server </el-button> -->\r\n <template #tip>\r\n <div class=\"el-upload__tip gm-text-red-500\">限制1个文件,新文件将覆盖旧文件</div>\r\n </template>\r\n </gm-upload>\r\n </div>\r\n\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">确 定</gm-button>\r\n <gm-button @click=\"closeDialog\">取 消</gm-button>\r\n </div>\r\n </template>\r\n </gm-dialog>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref } from 'vue';\r\nimport { genFileId } from 'element-plus';\r\nimport { Download, Upload } from '@element-plus/icons-vue';\r\nimport { importDialogEmits, importDialogProps } from './importDialog';\r\nimport type { UploadInstance } from '../../base/upload';\r\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmImportDialog',\r\n});\r\nconst props = defineProps(importDialogProps);\r\nconst emit = defineEmits(importDialogEmits);\r\n\r\nconst fileList = ref<UploadUserFile[]>([]);\r\nconst uploadRef = ref<UploadInstance>();\r\n\r\nconst handleExceed: UploadProps['onExceed'] = files => {\r\n uploadRef.value!.clearFiles();\r\n const file = files[0] as UploadRawFile;\r\n file.uid = genFileId();\r\n uploadRef.value!.handleStart(file);\r\n};\r\n\r\nconst submitUpload = () => {\r\n uploadRef.value!.submit();\r\n};\r\n/**\r\n * 编辑表单\r\n */\r\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\r\nconst dialogVisible = ref(false);\r\n\r\n/** 新增按钮操作 */\r\nconst openDialog = () => {\r\n dialogVisible.value = true;\r\n};\r\n/** 取消按钮 */\r\nfunction closeDialog() {\r\n dialogVisible.value = false;\r\n reset();\r\n}\r\n/** 表单重置 */\r\nfunction reset() {\r\n fileList.value = [];\r\n}\r\n\r\nconst uploadLoading = ref(false);\r\nconst httpRequest = (options: UploadRequestOptions) => {\r\n uploadLoading.value = true;\r\n return props.httpRequest(options);\r\n};\r\n// 上传成功\r\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\r\n uploadLoading.value = false;\r\n return props.onSuccess(response, uploadFile, uploadFiles);\r\n}\r\n// 上传失败\r\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\r\n uploadLoading.value = false;\r\n return props.onError(error, uploadFile, uploadFiles);\r\n};\r\ndefineExpose({\r\n openDialog,\r\n closeDialog,\r\n reset,\r\n});\r\n</script>\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAW,GAAsB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAA,MAAM,YAAY,GAAoB,EAAA,CAAA;AAEtC,IAAA,MAAM,eAAwC,CAAS,KAAA,KAAA;AACrD,MAAA,SAAA,CAAU,MAAO,UAAW,EAAA,CAAA;AAC5B,MAAM,MAAA,IAAA,GAAO,MAAM,CAAC,CAAA,CAAA;AACpB,MAAA,IAAA,CAAK,MAAM,SAAU,EAAA,CAAA;AACrB,MAAU,SAAA,CAAA,KAAA,CAAO,YAAY,IAAI,CAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,SAAA,CAAU,MAAO,MAAO,EAAA,CAAA;AAAA,KAC1B,CAAA;AAKA,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAG/B,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAM,KAAA,EAAA,CAAA;AAAA,KACR;AAEA,IAAA,SAAS,KAAQ,GAAA;AACf,MAAA,QAAA,CAAS,QAAQ,EAAC,CAAA;AAAA,KACpB;AAEA,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAC/B,IAAM,MAAA,WAAA,GAAc,CAAC,OAAkC,KAAA;AACrD,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AACtB,MAAO,OAAA,KAAA,CAAM,YAAY,OAAO,CAAA,CAAA;AAAA,KAClC,CAAA;AAEA,IAAS,SAAA,aAAA,CAAc,QAAe,EAAA,UAAA,EAAwB,WAA0B,EAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,SAAA,CAAU,QAAU,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KAC1D;AAEA,IAAA,MAAM,WAAc,GAAA,CAAC,KAAc,EAAA,UAAA,EAAwB,WAA6B,KAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,OAAA,CAAQ,KAAO,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KACrD,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,UAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ImportDialog.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\r\n <!-- 导入对话框 -->\r\n <gm-dialog v-model=\"dialogVisible\" title=\"导入\" width=\"500px\" append-to-body>\r\n <div class=\" \">\r\n <gm-upload\r\n ref=\"uploadRef\"\r\n v-model:file-list=\"fileList\"\r\n action=\"\"\r\n :limit=\"1\"\r\n :accept=\"accept\"\r\n :http-request=\"httpRequest\"\r\n :on-exceed=\"handleExceed\"\r\n :on-success=\"handleSuccess\"\r\n :on-error=\"handleError\"\r\n :before-upload=\"beforeUpload\"\r\n :auto-upload=\"false\"\r\n class=\"gm-px-6\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-button type=\"primary\" :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载导入模板 </gm-button>\r\n <gm-button type=\"primary\" :icon=\"Upload\" style=\"margin-left: 36px\">选择文件导入</gm-button>\r\n </div>\r\n\r\n <!-- <el-button class=\"ml-3\" type=\"success\" @click=\"submitUpload\"> upload to server </el-button> -->\r\n <template #tip>\r\n <div class=\"el-upload__tip gm-text-red-500\">限制1个文件,新文件将覆盖旧文件</div>\r\n </template>\r\n </gm-upload>\r\n </div>\r\n\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">确 定</gm-button>\r\n <gm-button @click=\"closeDialog\">取 消</gm-button>\r\n </div>\r\n </template>\r\n </gm-dialog>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref } from 'vue';\r\nimport { genFileId } from 'element-plus';\r\nimport { Download, Upload } from '@element-plus/icons-vue';\r\nimport { importDialogEmits, importDialogProps } from './importDialog';\r\nimport type { UploadInstance } from '../../base/upload';\r\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmImportDialog',\r\n});\r\nconst props = defineProps(importDialogProps);\r\nconst emit = defineEmits(importDialogEmits);\r\n\r\nconst fileList = ref<UploadUserFile[]>([]);\r\nconst uploadRef = ref<UploadInstance>();\r\n\r\nconst handleExceed: UploadProps['onExceed'] = files => {\r\n uploadRef.value!.clearFiles();\r\n const file = files[0] as UploadRawFile;\r\n file.uid = genFileId();\r\n uploadRef.value!.handleStart(file);\r\n};\r\n\r\nconst submitUpload = () => {\r\n uploadRef.value!.submit();\r\n};\r\n/**\r\n * 编辑表单\r\n */\r\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\r\nconst dialogVisible = ref(false);\r\n\r\n/** 新增按钮操作 */\r\nconst openDialog = () => {\r\n dialogVisible.value = true;\r\n};\r\n/** 取消按钮 */\r\nfunction closeDialog() {\r\n dialogVisible.value = false;\r\n reset();\r\n}\r\n/** 表单重置 */\r\nfunction reset() {\r\n fileList.value = [];\r\n}\r\n\r\nconst uploadLoading = ref(false);\r\nconst httpRequest = (options: UploadRequestOptions) => {\r\n uploadLoading.value = true;\r\n return props.httpRequest(options);\r\n};\r\n// 上传成功\r\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\r\n uploadLoading.value = false;\r\n return props.onSuccess(response, uploadFile, uploadFiles);\r\n}\r\n// 上传失败\r\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\r\n uploadLoading.value = false;\r\n return props.onError(error, uploadFile, uploadFiles);\r\n};\r\ndefineExpose({\r\n openDialog,\r\n closeDialog,\r\n reset,\r\n});\r\n</script>\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAW,GAAsB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAA,MAAM,YAAY,GAAoB,EAAA,CAAA;AAEtC,IAAA,MAAM,eAAwC,CAAS,KAAA,KAAA;AACrD,MAAA,SAAA,CAAU,MAAO,UAAW,EAAA,CAAA;AAC5B,MAAM,MAAA,IAAA,GAAO,MAAM,CAAC,CAAA,CAAA;AACpB,MAAA,IAAA,CAAK,MAAM,SAAU,EAAA,CAAA;AACrB,MAAU,SAAA,CAAA,KAAA,CAAO,YAAY,IAAI,CAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,SAAA,CAAU,MAAO,MAAO,EAAA,CAAA;AAAA,KAC1B,CAAA;AAKA,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAG/B,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAM,KAAA,EAAA,CAAA;AAAA,KACR;AAEA,IAAA,SAAS,KAAQ,GAAA;AACf,MAAA,QAAA,CAAS,QAAQ,EAAC,CAAA;AAAA,KACpB;AAEA,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAC/B,IAAM,MAAA,WAAA,GAAc,CAAC,OAAkC,KAAA;AACrD,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AACtB,MAAO,OAAA,KAAA,CAAM,YAAY,OAAO,CAAA,CAAA;AAAA,KAClC,CAAA;AAEA,IAAS,SAAA,aAAA,CAAc,QAAe,EAAA,UAAA,EAAwB,WAA0B,EAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,SAAA,CAAU,QAAU,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KAC1D;AAEA,IAAA,MAAM,WAAc,GAAA,CAAC,KAAc,EAAA,UAAA,EAAwB,WAA6B,KAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,OAAA,CAAQ,KAAO,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KACrD,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,UAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -26,6 +26,15 @@ export declare const importDialogProps: {
26
26
  new (): any;
27
27
  readonly prototype: any;
28
28
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
29
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
30
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
31
+ new (): any;
32
+ readonly prototype: any;
33
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
34
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
35
+ new (): any;
36
+ readonly prototype: any;
37
+ })[], unknown, unknown, () => void, boolean>;
29
38
  accept: {
30
39
  type: StringConstructor;
31
40
  default: string;
@@ -4,6 +4,7 @@ const importDialogProps = {
4
4
  onSuccess: uploadProps["onSuccess"],
5
5
  onError: uploadProps["onError"],
6
6
  httpRequest: uploadProps["httpRequest"],
7
+ beforeUpload: uploadProps["beforeUpload"],
7
8
  accept: {
8
9
  type: String,
9
10
  default: ".xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv"
@@ -1 +1 @@
1
- {"version":3,"file":"importDialog.mjs","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\r\nimport { uploadProps } from '../../base/upload/upload';\r\nexport const importDialogProps = {\r\n onSuccess: uploadProps['onSuccess'],\r\n onError: uploadProps['onError'],\r\n httpRequest: uploadProps['httpRequest'],\r\n accept: {\r\n type: String,\r\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\r\n },\r\n};\r\n\r\nexport const importDialogEmits = {\r\n /**\r\n * 下载模板按钮点击事件\r\n */\r\n downloadTemplate: async () => {},\r\n};\r\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAoB,GAAA;AAAA,EAC/B,SAAA,EAAW,YAAY,WAAW,CAAA;AAAA,EAClC,OAAA,EAAS,YAAY,SAAS,CAAA;AAAA,EAC9B,WAAA,EAAa,YAAY,aAAa,CAAA;AAAA,EACtC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AACjC;;;;"}
1
+ {"version":3,"file":"importDialog.mjs","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\r\nimport { uploadProps } from '../../base/upload/upload';\r\nexport const importDialogProps = {\r\n onSuccess: uploadProps['onSuccess'],\r\n onError: uploadProps['onError'],\r\n httpRequest: uploadProps['httpRequest'],\r\n beforeUpload: uploadProps['beforeUpload'],\r\n accept: {\r\n type: String,\r\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\r\n },\r\n};\r\n\r\nexport const importDialogEmits = {\r\n /**\r\n * 下载模板按钮点击事件\r\n */\r\n downloadTemplate: async () => {},\r\n};\r\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAoB,GAAA;AAAA,EAC/B,SAAA,EAAW,YAAY,WAAW,CAAA;AAAA,EAClC,OAAA,EAAS,YAAY,SAAS,CAAA;AAAA,EAC9B,WAAA,EAAa,YAAY,aAAa,CAAA;AAAA,EACtC,YAAA,EAAc,YAAY,cAAc,CAAA;AAAA,EACxC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AACjC;;;;"}
@@ -27,6 +27,15 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
27
27
  new (): any;
28
28
  readonly prototype: any;
29
29
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
30
+ beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
31
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
32
+ new (): any;
33
+ readonly prototype: any;
34
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
35
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
36
+ new (): any;
37
+ readonly prototype: any;
38
+ })[], unknown, unknown, () => void, boolean>;
30
39
  accept: {
31
40
  type: StringConstructor;
32
41
  default: string;
@@ -65,6 +74,15 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
65
74
  new (): any;
66
75
  readonly prototype: any;
67
76
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
77
+ beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
78
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
79
+ new (): any;
80
+ readonly prototype: any;
81
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
82
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
83
+ new (): any;
84
+ readonly prototype: any;
85
+ })[], unknown, unknown, () => void, boolean>;
68
86
  accept: {
69
87
  type: StringConstructor;
70
88
  default: string;
@@ -73,6 +91,7 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
73
91
  onDownloadTemplate?: (() => any) | undefined;
74
92
  }, {
75
93
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
94
+ beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
76
95
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
77
96
  accept: string;
78
97
  httpRequest: import("element-plus").UploadRequestHandler;
@@ -0,0 +1,3 @@
1
+ export declare const GmConfirmBox: import("../../../../utils").SFCInstallWithContext<(options: import("./method").ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>>;
2
+ export { type ConfirmBoxOptions } from './method';
3
+ export default GmConfirmBox;
@@ -0,0 +1,8 @@
1
+ import '../../../../utils/index.mjs';
2
+ import { confirmBox } from './method.mjs';
3
+ import { withInstallFunction } from '../../../../utils/src/vue/install.mjs';
4
+
5
+ const GmConfirmBox = withInstallFunction(confirmBox, "$confirmBox");
6
+
7
+ export { GmConfirmBox, GmConfirmBox as default };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../packages/components/src/plugins/confirmBox/index.ts"],"sourcesContent":["import { withInstallFunction } from '@giime/utils';\r\nimport { confirmBox } from './method';\r\nexport const GmConfirmBox = withInstallFunction(confirmBox, '$confirmBox');\r\nexport { type ConfirmBoxOptions } from './method';\r\nexport default GmConfirmBox;\r\n"],"names":[],"mappings":";;;;AAEa,MAAA,YAAA,GAAe,mBAAoB,CAAA,UAAA,EAAY,aAAa;;;;"}
@@ -0,0 +1,5 @@
1
+ export interface ConfirmBoxOptions {
2
+ message: string;
3
+ title?: string;
4
+ }
5
+ export declare const confirmBox: (options: ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>;
@@ -0,0 +1,26 @@
1
+ import { GmMessageBox } from '../messageBox/index.mjs';
2
+
3
+ const confirmBox = async (options, handle) => {
4
+ await GmMessageBox.confirm(options.message, options.title || "\u7CFB\u7EDF\u63D0\u793A", {
5
+ confirmButtonText: "\u786E\u5B9A",
6
+ cancelButtonText: "\u53D6\u6D88",
7
+ type: "warning",
8
+ beforeClose: async (action, instance, done) => {
9
+ if (action === "confirm") {
10
+ instance.confirmButtonLoading = true;
11
+ try {
12
+ await handle();
13
+ done();
14
+ } catch (e) {
15
+ console.error(e);
16
+ instance.confirmButtonLoading = false;
17
+ }
18
+ } else {
19
+ done();
20
+ }
21
+ }
22
+ });
23
+ };
24
+
25
+ export { confirmBox };
26
+ //# sourceMappingURL=method.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.mjs","sources":["../../../../../../../packages/components/src/plugins/confirmBox/method.ts"],"sourcesContent":["import { GmMessageBox } from '@giime/components/src/plugins/messageBox';\r\nexport interface ConfirmBoxOptions {\r\n message: string;\r\n title?: string;\r\n}\r\n\r\nexport const confirmBox = async (options: ConfirmBoxOptions, handle: () => Promise<any>) => {\r\n await GmMessageBox.confirm(options.message, options.title || '系统提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning',\r\n beforeClose: async (action, instance, done) => {\r\n if (action === 'confirm') {\r\n instance.confirmButtonLoading = true;\r\n try {\r\n await handle();\r\n done();\r\n } catch (e) {\r\n console.error(e);\r\n instance.confirmButtonLoading = false;\r\n }\r\n } else {\r\n done();\r\n }\r\n },\r\n });\r\n};\r\n"],"names":[],"mappings":";;AAMa,MAAA,UAAA,GAAa,OAAO,OAAA,EAA4B,MAA+B,KAAA;AAC1F,EAAA,MAAM,aAAa,OAAQ,CAAA,OAAA,CAAQ,OAAS,EAAA,OAAA,CAAQ,SAAS,0BAAQ,EAAA;AAAA,IACnE,iBAAmB,EAAA,cAAA;AAAA,IACnB,gBAAkB,EAAA,cAAA;AAAA,IAClB,IAAM,EAAA,SAAA;AAAA,IACN,WAAa,EAAA,OAAO,MAAQ,EAAA,QAAA,EAAU,IAAS,KAAA;AAC7C,MAAA,IAAI,WAAW,SAAW,EAAA;AACxB,QAAA,QAAA,CAAS,oBAAuB,GAAA,IAAA,CAAA;AAChC,QAAI,IAAA;AACF,UAAA,MAAM,MAAO,EAAA,CAAA;AACb,UAAK,IAAA,EAAA,CAAA;AAAA,iBACE,CAAG,EAAA;AACV,UAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,UAAA,QAAA,CAAS,oBAAuB,GAAA,KAAA,CAAA;AAAA,SAClC;AAAA,OACK,MAAA;AACL,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
@@ -3,3 +3,4 @@ export * from './loading';
3
3
  export * from './messageBox';
4
4
  export * from './notification';
5
5
  export * from './copy';
6
+ export * from './confirmBox';
@@ -3,4 +3,5 @@ export { GmLoading } from './loading/index.mjs';
3
3
  export { GmMessageBox } from './messageBox/index.mjs';
4
4
  export { GmNotification } from './notification/index.mjs';
5
5
  export { GmCopy } from './copy/index.mjs';
6
+ export { GmConfirmBox } from './confirmBox/index.mjs';
6
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -270,6 +270,7 @@ export { GmLoading } from '../components/src/plugins/loading/index.mjs';
270
270
  export { GmMessageBox } from '../components/src/plugins/messageBox/index.mjs';
271
271
  export { GmNotification } from '../components/src/plugins/notification/index.mjs';
272
272
  export { GmCopy } from '../components/src/plugins/copy/index.mjs';
273
+ export { GmConfirmBox } from '../components/src/plugins/confirmBox/index.mjs';
273
274
  export { useCheckAll } from '../hooks/base/useCheckAll/index.mjs';
274
275
  export { useIDBKeyval } from '../hooks/base/useIDBKeyval/index.mjs';
275
276
  export { useDownload } from '../hooks/base/useDownload/index.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA,QAAA;AAC1B,MAAM,UAAU,SAAU,CAAA;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA,QAAA;AAC1B,MAAM,UAAU,SAAU,CAAA;;;;"}
@@ -4,8 +4,9 @@ import { GmLoading } from '../components/src/plugins/loading/index.mjs';
4
4
  import { GmMessageBox } from '../components/src/plugins/messageBox/index.mjs';
5
5
  import { GmNotification } from '../components/src/plugins/notification/index.mjs';
6
6
  import { GmCopy } from '../components/src/plugins/copy/index.mjs';
7
+ import { GmConfirmBox } from '../components/src/plugins/confirmBox/index.mjs';
7
8
 
8
- var Plugins = [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy];
9
+ var Plugins = [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox];
9
10
 
10
11
  export { Plugins as default };
11
12
  //# sourceMappingURL=plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy] as Plugin[];\r\n"],"names":[],"mappings":";;;;;;;AAIA,cAAe,CAAC,SAAA,EAAW,SAAW,EAAA,YAAA,EAAc,gBAAgB,MAAM,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.mjs","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmConfirmBox, GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox] as Plugin[];\r\n"],"names":[],"mappings":";;;;;;;;AAIA,cAAe,CAAC,SAAW,EAAA,SAAA,EAAW,YAAc,EAAA,cAAA,EAAgB,QAAQ,YAAY,CAAA;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.1.4";
1
+ export declare const version = "0.1.6";
@@ -1,4 +1,4 @@
1
- const version = "0.1.3";
1
+ const version = "0.1.5";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.3';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.5';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
@@ -260,6 +260,7 @@ var index$1$ = require('./src/plugins/loading/index.js');
260
260
  var index$20 = require('./src/plugins/messageBox/index.js');
261
261
  var index$21 = require('./src/plugins/notification/index.js');
262
262
  var index$22 = require('./src/plugins/copy/index.js');
263
+ var index$23 = require('./src/plugins/confirmBox/index.js');
263
264
 
264
265
 
265
266
 
@@ -632,4 +633,5 @@ exports.GmLoading = index$1$.GmLoading;
632
633
  exports.GmMessageBox = index$20.GmMessageBox;
633
634
  exports.GmNotification = index$21.GmNotification;
634
635
  exports.GmCopy = index$22.GmCopy;
636
+ exports.GmConfirmBox = index$23.GmConfirmBox;
635
637
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import type { UploadFile, UploadFiles } from 'element-plus';
1
+ import type { UploadFile, UploadFiles, UploadRawFile } from 'element-plus';
2
2
  /** 取消按钮 */
3
3
  declare function closeDialog(): void;
4
4
  /** 表单重置 */
@@ -31,6 +31,15 @@ declare const _default: import("vue").DefineComponent<{
31
31
  new (): any;
32
32
  readonly prototype: any;
33
33
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
34
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
35
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
36
+ new (): any;
37
+ readonly prototype: any;
38
+ } | ((new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
39
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
40
+ new (): any;
41
+ readonly prototype: any;
42
+ })[], unknown, unknown, () => void, boolean>;
34
43
  accept: {
35
44
  type: StringConstructor;
36
45
  default: string;
@@ -69,6 +78,15 @@ declare const _default: import("vue").DefineComponent<{
69
78
  new (): any;
70
79
  readonly prototype: any;
71
80
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
81
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
82
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
83
+ new (): any;
84
+ readonly prototype: any;
85
+ } | ((new (...args: any[]) => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
86
+ (): (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
87
+ new (): any;
88
+ readonly prototype: any;
89
+ })[], unknown, unknown, () => void, boolean>;
72
90
  accept: {
73
91
  type: StringConstructor;
74
92
  default: string;
@@ -77,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
77
95
  onDownloadTemplate?: (() => any) | undefined;
78
96
  }, {
79
97
  onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
98
+ beforeUpload: (rawFile: UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
80
99
  onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
81
100
  accept: string;
82
101
  httpRequest: import("element-plus").UploadRequestHandler;
@@ -119,6 +119,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
119
119
  "on-exceed": handleExceed,
120
120
  "on-success": handleSuccess,
121
121
  "on-error": handleError,
122
+ "before-upload": _ctx.beforeUpload,
122
123
  "auto-upload": false,
123
124
  class: "gm-px-6"
124
125
  }, {
@@ -153,7 +154,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
153
154
  ]),
154
155
  _: 1
155
156
  /* STABLE */
156
- }, 8, ["file-list", "accept"])
157
+ }, 8, ["file-list", "accept", "before-upload"])
157
158
  ])
158
159
  ]),
159
160
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"ImportDialog.vue2.js","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\r\n <!-- 导入对话框 -->\r\n <gm-dialog v-model=\"dialogVisible\" title=\"导入\" width=\"500px\" append-to-body>\r\n <div class=\" \">\r\n <gm-upload\r\n ref=\"uploadRef\"\r\n v-model:file-list=\"fileList\"\r\n action=\"\"\r\n :limit=\"1\"\r\n :accept=\"accept\"\r\n :http-request=\"httpRequest\"\r\n :on-exceed=\"handleExceed\"\r\n :on-success=\"handleSuccess\"\r\n :on-error=\"handleError\"\r\n :auto-upload=\"false\"\r\n class=\"gm-px-6\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-button type=\"primary\" :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载导入模板 </gm-button>\r\n <gm-button type=\"primary\" :icon=\"Upload\" style=\"margin-left: 36px\">选择文件导入</gm-button>\r\n </div>\r\n\r\n <!-- <el-button class=\"ml-3\" type=\"success\" @click=\"submitUpload\"> upload to server </el-button> -->\r\n <template #tip>\r\n <div class=\"el-upload__tip gm-text-red-500\">限制1个文件,新文件将覆盖旧文件</div>\r\n </template>\r\n </gm-upload>\r\n </div>\r\n\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">确 定</gm-button>\r\n <gm-button @click=\"closeDialog\">取 消</gm-button>\r\n </div>\r\n </template>\r\n </gm-dialog>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref } from 'vue';\r\nimport { genFileId } from 'element-plus';\r\nimport { Download, Upload } from '@element-plus/icons-vue';\r\nimport { importDialogEmits, importDialogProps } from './importDialog';\r\nimport type { UploadInstance } from '../../base/upload';\r\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmImportDialog',\r\n});\r\nconst props = defineProps(importDialogProps);\r\nconst emit = defineEmits(importDialogEmits);\r\n\r\nconst fileList = ref<UploadUserFile[]>([]);\r\nconst uploadRef = ref<UploadInstance>();\r\n\r\nconst handleExceed: UploadProps['onExceed'] = files => {\r\n uploadRef.value!.clearFiles();\r\n const file = files[0] as UploadRawFile;\r\n file.uid = genFileId();\r\n uploadRef.value!.handleStart(file);\r\n};\r\n\r\nconst submitUpload = () => {\r\n uploadRef.value!.submit();\r\n};\r\n/**\r\n * 编辑表单\r\n */\r\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\r\nconst dialogVisible = ref(false);\r\n\r\n/** 新增按钮操作 */\r\nconst openDialog = () => {\r\n dialogVisible.value = true;\r\n};\r\n/** 取消按钮 */\r\nfunction closeDialog() {\r\n dialogVisible.value = false;\r\n reset();\r\n}\r\n/** 表单重置 */\r\nfunction reset() {\r\n fileList.value = [];\r\n}\r\n\r\nconst uploadLoading = ref(false);\r\nconst httpRequest = (options: UploadRequestOptions) => {\r\n uploadLoading.value = true;\r\n return props.httpRequest(options);\r\n};\r\n// 上传成功\r\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\r\n uploadLoading.value = false;\r\n return props.onSuccess(response, uploadFile, uploadFiles);\r\n}\r\n// 上传失败\r\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\r\n uploadLoading.value = false;\r\n return props.onError(error, uploadFile, uploadFiles);\r\n};\r\ndefineExpose({\r\n openDialog,\r\n closeDialog,\r\n reset,\r\n});\r\n</script>\r\n"],"names":["ref","genFileId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAWA,OAAsB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAA,MAAM,YAAYA,OAAoB,EAAA,CAAA;AAEtC,IAAA,MAAM,eAAwC,CAAS,KAAA,KAAA;AACrD,MAAA,SAAA,CAAU,MAAO,UAAW,EAAA,CAAA;AAC5B,MAAM,MAAA,IAAA,GAAO,MAAM,CAAC,CAAA,CAAA;AACpB,MAAA,IAAA,CAAK,MAAMC,qBAAU,EAAA,CAAA;AACrB,MAAU,SAAA,CAAA,KAAA,CAAO,YAAY,IAAI,CAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,SAAA,CAAU,MAAO,MAAO,EAAA,CAAA;AAAA,KAC1B,CAAA;AAKA,IAAM,MAAA,aAAA,GAAgBD,QAAI,KAAK,CAAA,CAAA;AAG/B,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAM,KAAA,EAAA,CAAA;AAAA,KACR;AAEA,IAAA,SAAS,KAAQ,GAAA;AACf,MAAA,QAAA,CAAS,QAAQ,EAAC,CAAA;AAAA,KACpB;AAEA,IAAM,MAAA,aAAA,GAAgBA,QAAI,KAAK,CAAA,CAAA;AAC/B,IAAM,MAAA,WAAA,GAAc,CAAC,OAAkC,KAAA;AACrD,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AACtB,MAAO,OAAA,KAAA,CAAM,YAAY,OAAO,CAAA,CAAA;AAAA,KAClC,CAAA;AAEA,IAAS,SAAA,aAAA,CAAc,QAAe,EAAA,UAAA,EAAwB,WAA0B,EAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,SAAA,CAAU,QAAU,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KAC1D;AAEA,IAAA,MAAM,WAAc,GAAA,CAAC,KAAc,EAAA,UAAA,EAAwB,WAA6B,KAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,OAAA,CAAQ,KAAO,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KACrD,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,UAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ImportDialog.vue2.js","sources":["../../../../../../../packages/components/src/composite/importDialog/ImportDialog.vue"],"sourcesContent":["<template>\r\n <!-- 导入对话框 -->\r\n <gm-dialog v-model=\"dialogVisible\" title=\"导入\" width=\"500px\" append-to-body>\r\n <div class=\" \">\r\n <gm-upload\r\n ref=\"uploadRef\"\r\n v-model:file-list=\"fileList\"\r\n action=\"\"\r\n :limit=\"1\"\r\n :accept=\"accept\"\r\n :http-request=\"httpRequest\"\r\n :on-exceed=\"handleExceed\"\r\n :on-success=\"handleSuccess\"\r\n :on-error=\"handleError\"\r\n :before-upload=\"beforeUpload\"\r\n :auto-upload=\"false\"\r\n class=\"gm-px-6\"\r\n >\r\n <div class=\"gm-flex gm-items-center\">\r\n <gm-button type=\"primary\" :icon=\"Download\" @click.stop=\"emit('downloadTemplate')\"> 下载导入模板 </gm-button>\r\n <gm-button type=\"primary\" :icon=\"Upload\" style=\"margin-left: 36px\">选择文件导入</gm-button>\r\n </div>\r\n\r\n <!-- <el-button class=\"ml-3\" type=\"success\" @click=\"submitUpload\"> upload to server </el-button> -->\r\n <template #tip>\r\n <div class=\"el-upload__tip gm-text-red-500\">限制1个文件,新文件将覆盖旧文件</div>\r\n </template>\r\n </gm-upload>\r\n </div>\r\n\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <gm-button type=\"primary\" :loading=\"uploadLoading\" @click=\"submitUpload\">确 定</gm-button>\r\n <gm-button @click=\"closeDialog\">取 消</gm-button>\r\n </div>\r\n </template>\r\n </gm-dialog>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref } from 'vue';\r\nimport { genFileId } from 'element-plus';\r\nimport { Download, Upload } from '@element-plus/icons-vue';\r\nimport { importDialogEmits, importDialogProps } from './importDialog';\r\nimport type { UploadInstance } from '../../base/upload';\r\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmImportDialog',\r\n});\r\nconst props = defineProps(importDialogProps);\r\nconst emit = defineEmits(importDialogEmits);\r\n\r\nconst fileList = ref<UploadUserFile[]>([]);\r\nconst uploadRef = ref<UploadInstance>();\r\n\r\nconst handleExceed: UploadProps['onExceed'] = files => {\r\n uploadRef.value!.clearFiles();\r\n const file = files[0] as UploadRawFile;\r\n file.uid = genFileId();\r\n uploadRef.value!.handleStart(file);\r\n};\r\n\r\nconst submitUpload = () => {\r\n uploadRef.value!.submit();\r\n};\r\n/**\r\n * 编辑表单\r\n */\r\n// const dialogVisible = defineModel<boolean>('dialogVisible', { required: true });\r\nconst dialogVisible = ref(false);\r\n\r\n/** 新增按钮操作 */\r\nconst openDialog = () => {\r\n dialogVisible.value = true;\r\n};\r\n/** 取消按钮 */\r\nfunction closeDialog() {\r\n dialogVisible.value = false;\r\n reset();\r\n}\r\n/** 表单重置 */\r\nfunction reset() {\r\n fileList.value = [];\r\n}\r\n\r\nconst uploadLoading = ref(false);\r\nconst httpRequest = (options: UploadRequestOptions) => {\r\n uploadLoading.value = true;\r\n return props.httpRequest(options);\r\n};\r\n// 上传成功\r\nfunction handleSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {\r\n uploadLoading.value = false;\r\n return props.onSuccess(response, uploadFile, uploadFiles);\r\n}\r\n// 上传失败\r\nconst handleError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {\r\n uploadLoading.value = false;\r\n return props.onError(error, uploadFile, uploadFiles);\r\n};\r\ndefineExpose({\r\n openDialog,\r\n closeDialog,\r\n reset,\r\n});\r\n</script>\r\n"],"names":["ref","genFileId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAWA,OAAsB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAA,MAAM,YAAYA,OAAoB,EAAA,CAAA;AAEtC,IAAA,MAAM,eAAwC,CAAS,KAAA,KAAA;AACrD,MAAA,SAAA,CAAU,MAAO,UAAW,EAAA,CAAA;AAC5B,MAAM,MAAA,IAAA,GAAO,MAAM,CAAC,CAAA,CAAA;AACpB,MAAA,IAAA,CAAK,MAAMC,qBAAU,EAAA,CAAA;AACrB,MAAU,SAAA,CAAA,KAAA,CAAO,YAAY,IAAI,CAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,SAAA,CAAU,MAAO,MAAO,EAAA,CAAA;AAAA,KAC1B,CAAA;AAKA,IAAM,MAAA,aAAA,GAAgBD,QAAI,KAAK,CAAA,CAAA;AAG/B,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAM,KAAA,EAAA,CAAA;AAAA,KACR;AAEA,IAAA,SAAS,KAAQ,GAAA;AACf,MAAA,QAAA,CAAS,QAAQ,EAAC,CAAA;AAAA,KACpB;AAEA,IAAM,MAAA,aAAA,GAAgBA,QAAI,KAAK,CAAA,CAAA;AAC/B,IAAM,MAAA,WAAA,GAAc,CAAC,OAAkC,KAAA;AACrD,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AACtB,MAAO,OAAA,KAAA,CAAM,YAAY,OAAO,CAAA,CAAA;AAAA,KAClC,CAAA;AAEA,IAAS,SAAA,aAAA,CAAc,QAAe,EAAA,UAAA,EAAwB,WAA0B,EAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,SAAA,CAAU,QAAU,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KAC1D;AAEA,IAAA,MAAM,WAAc,GAAA,CAAC,KAAc,EAAA,UAAA,EAAwB,WAA6B,KAAA;AACtF,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AACtB,MAAA,OAAO,KAAM,CAAA,OAAA,CAAQ,KAAO,EAAA,UAAA,EAAY,WAAW,CAAA,CAAA;AAAA,KACrD,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,UAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -26,6 +26,15 @@ export declare const importDialogProps: {
26
26
  new (): any;
27
27
  readonly prototype: any;
28
28
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
29
+ beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
30
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
31
+ new (): any;
32
+ readonly prototype: any;
33
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
34
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
35
+ new (): any;
36
+ readonly prototype: any;
37
+ })[], unknown, unknown, () => void, boolean>;
29
38
  accept: {
30
39
  type: StringConstructor;
31
40
  default: string;
@@ -6,6 +6,7 @@ const importDialogProps = {
6
6
  onSuccess: upload.uploadProps["onSuccess"],
7
7
  onError: upload.uploadProps["onError"],
8
8
  httpRequest: upload.uploadProps["httpRequest"],
9
+ beforeUpload: upload.uploadProps["beforeUpload"],
9
10
  accept: {
10
11
  type: String,
11
12
  default: ".xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv"
@@ -1 +1 @@
1
- {"version":3,"file":"importDialog.js","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\r\nimport { uploadProps } from '../../base/upload/upload';\r\nexport const importDialogProps = {\r\n onSuccess: uploadProps['onSuccess'],\r\n onError: uploadProps['onError'],\r\n httpRequest: uploadProps['httpRequest'],\r\n accept: {\r\n type: String,\r\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\r\n },\r\n};\r\n\r\nexport const importDialogEmits = {\r\n /**\r\n * 下载模板按钮点击事件\r\n */\r\n downloadTemplate: async () => {},\r\n};\r\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,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AACjC;;;;;"}
1
+ {"version":3,"file":"importDialog.js","sources":["../../../../../../../packages/components/src/composite/importDialog/importDialog.ts"],"sourcesContent":["// import { } from '../../base/dialog/dialog';\r\nimport { uploadProps } from '../../base/upload/upload';\r\nexport const importDialogProps = {\r\n onSuccess: uploadProps['onSuccess'],\r\n onError: uploadProps['onError'],\r\n httpRequest: uploadProps['httpRequest'],\r\n beforeUpload: uploadProps['beforeUpload'],\r\n accept: {\r\n type: String,\r\n default: '.xls, .xlsx, .csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv',\r\n },\r\n};\r\n\r\nexport const importDialogEmits = {\r\n /**\r\n * 下载模板按钮点击事件\r\n */\r\n downloadTemplate: async () => {},\r\n};\r\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,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,0HAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,YAAY;AAAA,GAAC;AACjC;;;;;"}
@@ -27,6 +27,15 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
27
27
  new (): any;
28
28
  readonly prototype: any;
29
29
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
30
+ beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
31
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
32
+ new (): any;
33
+ readonly prototype: any;
34
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
35
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
36
+ new (): any;
37
+ readonly prototype: any;
38
+ })[], unknown, unknown, () => void, boolean>;
30
39
  accept: {
31
40
  type: StringConstructor;
32
41
  default: string;
@@ -65,6 +74,15 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
65
74
  new (): any;
66
75
  readonly prototype: any;
67
76
  })[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
77
+ beforeUpload: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
78
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
79
+ new (): any;
80
+ readonly prototype: any;
81
+ } | ((new (...args: any[]) => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>) | {
82
+ (): (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
83
+ new (): any;
84
+ readonly prototype: any;
85
+ })[], unknown, unknown, () => void, boolean>;
68
86
  accept: {
69
87
  type: StringConstructor;
70
88
  default: string;
@@ -73,6 +91,7 @@ export declare const GmImportDialog: import("../../../../utils").SFCWithInstall<
73
91
  onDownloadTemplate?: (() => any) | undefined;
74
92
  }, {
75
93
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
94
+ beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.js").Awaitable<boolean | void | File | Blob | null | undefined>;
76
95
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
77
96
  accept: string;
78
97
  httpRequest: import("element-plus").UploadRequestHandler;
@@ -0,0 +1,3 @@
1
+ export declare const GmConfirmBox: import("../../../../utils").SFCInstallWithContext<(options: import("./method").ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>>;
2
+ export { type ConfirmBoxOptions } from './method';
3
+ export default GmConfirmBox;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../../utils/index.js');
6
+ var method = require('./method.js');
7
+ var install = require('../../../../utils/src/vue/install.js');
8
+
9
+ const GmConfirmBox = install.withInstallFunction(method.confirmBox, "$confirmBox");
10
+
11
+ exports.GmConfirmBox = GmConfirmBox;
12
+ exports.default = GmConfirmBox;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../packages/components/src/plugins/confirmBox/index.ts"],"sourcesContent":["import { withInstallFunction } from '@giime/utils';\r\nimport { confirmBox } from './method';\r\nexport const GmConfirmBox = withInstallFunction(confirmBox, '$confirmBox');\r\nexport { type ConfirmBoxOptions } from './method';\r\nexport default GmConfirmBox;\r\n"],"names":["withInstallFunction","confirmBox"],"mappings":";;;;;;;;AAEa,MAAA,YAAA,GAAeA,2BAAoB,CAAAC,iBAAA,EAAY,aAAa;;;;;"}
@@ -0,0 +1,5 @@
1
+ export interface ConfirmBoxOptions {
2
+ message: string;
3
+ title?: string;
4
+ }
5
+ export declare const confirmBox: (options: ConfirmBoxOptions, handle: () => Promise<any>) => Promise<void>;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var index = require('../messageBox/index.js');
4
+
5
+ const confirmBox = async (options, handle) => {
6
+ await index.GmMessageBox.confirm(options.message, options.title || "\u7CFB\u7EDF\u63D0\u793A", {
7
+ confirmButtonText: "\u786E\u5B9A",
8
+ cancelButtonText: "\u53D6\u6D88",
9
+ type: "warning",
10
+ beforeClose: async (action, instance, done) => {
11
+ if (action === "confirm") {
12
+ instance.confirmButtonLoading = true;
13
+ try {
14
+ await handle();
15
+ done();
16
+ } catch (e) {
17
+ console.error(e);
18
+ instance.confirmButtonLoading = false;
19
+ }
20
+ } else {
21
+ done();
22
+ }
23
+ }
24
+ });
25
+ };
26
+
27
+ exports.confirmBox = confirmBox;
28
+ //# sourceMappingURL=method.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.js","sources":["../../../../../../../packages/components/src/plugins/confirmBox/method.ts"],"sourcesContent":["import { GmMessageBox } from '@giime/components/src/plugins/messageBox';\r\nexport interface ConfirmBoxOptions {\r\n message: string;\r\n title?: string;\r\n}\r\n\r\nexport const confirmBox = async (options: ConfirmBoxOptions, handle: () => Promise<any>) => {\r\n await GmMessageBox.confirm(options.message, options.title || '系统提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning',\r\n beforeClose: async (action, instance, done) => {\r\n if (action === 'confirm') {\r\n instance.confirmButtonLoading = true;\r\n try {\r\n await handle();\r\n done();\r\n } catch (e) {\r\n console.error(e);\r\n instance.confirmButtonLoading = false;\r\n }\r\n } else {\r\n done();\r\n }\r\n },\r\n });\r\n};\r\n"],"names":["GmMessageBox"],"mappings":";;;;AAMa,MAAA,UAAA,GAAa,OAAO,OAAA,EAA4B,MAA+B,KAAA;AAC1F,EAAA,MAAMA,mBAAa,OAAQ,CAAA,OAAA,CAAQ,OAAS,EAAA,OAAA,CAAQ,SAAS,0BAAQ,EAAA;AAAA,IACnE,iBAAmB,EAAA,cAAA;AAAA,IACnB,gBAAkB,EAAA,cAAA;AAAA,IAClB,IAAM,EAAA,SAAA;AAAA,IACN,WAAa,EAAA,OAAO,MAAQ,EAAA,QAAA,EAAU,IAAS,KAAA;AAC7C,MAAA,IAAI,WAAW,SAAW,EAAA;AACxB,QAAA,QAAA,CAAS,oBAAuB,GAAA,IAAA,CAAA;AAChC,QAAI,IAAA;AACF,UAAA,MAAM,MAAO,EAAA,CAAA;AACb,UAAK,IAAA,EAAA,CAAA;AAAA,iBACE,CAAG,EAAA;AACV,UAAA,OAAA,CAAQ,MAAM,CAAC,CAAA,CAAA;AACf,UAAA,QAAA,CAAS,oBAAuB,GAAA,KAAA,CAAA;AAAA,SAClC;AAAA,OACK,MAAA;AACL,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
@@ -3,3 +3,4 @@ export * from './loading';
3
3
  export * from './messageBox';
4
4
  export * from './notification';
5
5
  export * from './copy';
6
+ export * from './confirmBox';
@@ -5,6 +5,7 @@ var index$1 = require('./loading/index.js');
5
5
  var index$2 = require('./messageBox/index.js');
6
6
  var index$3 = require('./notification/index.js');
7
7
  var index$4 = require('./copy/index.js');
8
+ var index$5 = require('./confirmBox/index.js');
8
9
 
9
10
 
10
11
 
@@ -13,4 +14,5 @@ exports.GmLoading = index$1.GmLoading;
13
14
  exports.GmMessageBox = index$2.GmMessageBox;
14
15
  exports.GmNotification = index$3.GmNotification;
15
16
  exports.GmCopy = index$4.GmCopy;
17
+ exports.GmConfirmBox = index$5.GmConfirmBox;
16
18
  //# 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":";;;;;;;;;;;;;;;;"}
@@ -274,20 +274,21 @@ var index$1$ = require('../components/src/plugins/loading/index.js');
274
274
  var index$20 = require('../components/src/plugins/messageBox/index.js');
275
275
  var index$21 = require('../components/src/plugins/notification/index.js');
276
276
  var index$22 = require('../components/src/plugins/copy/index.js');
277
- var index$23 = require('../hooks/base/useCheckAll/index.js');
278
- var index$24 = require('../hooks/base/useIDBKeyval/index.js');
279
- var index$25 = require('../hooks/base/useDownload/index.js');
280
- var index$26 = require('../hooks/store/useLangList/index.js');
281
- var index$27 = require('../hooks/store/useLogin/index.js');
282
- var index$28 = require('../hooks/store/useCustomSettings/index.js');
283
- var index$29 = require('../hooks/store/useCurrencyList/index.js');
284
- var index$2a = require('../hooks/store/useLineList/index.js');
285
- var index$2b = require('../hooks/store/usePlatformLineList/index.js');
286
- var index$2c = require('../hooks/store/useOrgUserList/index.js');
287
- var index$2d = require('../hooks/store/useAliCategoryList/index.js');
288
- var index$2e = require('../hooks/store/useCompanyCategoryList/index.js');
289
- var index$2f = require('../hooks/store/useRepiteFilter/index.js');
290
- var index$2g = require('../hooks/store/usePlatformList/index.js');
277
+ var index$23 = require('../components/src/plugins/confirmBox/index.js');
278
+ var index$24 = require('../hooks/base/useCheckAll/index.js');
279
+ var index$25 = require('../hooks/base/useIDBKeyval/index.js');
280
+ var index$26 = require('../hooks/base/useDownload/index.js');
281
+ var index$27 = require('../hooks/store/useLangList/index.js');
282
+ var index$28 = require('../hooks/store/useLogin/index.js');
283
+ var index$29 = require('../hooks/store/useCustomSettings/index.js');
284
+ var index$2a = require('../hooks/store/useCurrencyList/index.js');
285
+ var index$2b = require('../hooks/store/useLineList/index.js');
286
+ var index$2c = require('../hooks/store/usePlatformLineList/index.js');
287
+ var index$2d = require('../hooks/store/useOrgUserList/index.js');
288
+ var index$2e = require('../hooks/store/useAliCategoryList/index.js');
289
+ var index$2f = require('../hooks/store/useCompanyCategoryList/index.js');
290
+ var index$2g = require('../hooks/store/useRepiteFilter/index.js');
291
+ var index$2h = require('../hooks/store/usePlatformList/index.js');
291
292
 
292
293
  const install = defaults.default.install;
293
294
  const version = defaults.default.version;
@@ -697,20 +698,21 @@ exports.GmLoading = index$1$.GmLoading;
697
698
  exports.GmMessageBox = index$20.GmMessageBox;
698
699
  exports.GmNotification = index$21.GmNotification;
699
700
  exports.GmCopy = index$22.GmCopy;
700
- exports.useCheckAll = index$23.useCheckAll;
701
- exports.useIDBKeyval = index$24.useIDBKeyval;
702
- exports.useDownload = index$25.useDownload;
703
- exports.useLangListStore = index$26.useLangListStore;
704
- exports.useLoginStore = index$27.useLoginStore;
705
- exports.useCustomSettingsStore = index$28.useCustomSettingsStore;
706
- exports.useCurrencyListStore = index$29.useCurrencyListStore;
707
- exports.useLineListStore = index$2a.useLineListStore;
708
- exports.usePlatformLineListStore = index$2b.usePlatformLineListStore;
709
- exports.useOrgUserListStore = index$2c.useOrgUserListStore;
710
- exports.useAliCategoryListStore = index$2d.useAliCategoryListStore;
711
- exports.useCompanyCategoryListStore = index$2e.useCompanyCategoryListStore;
712
- exports.useRepiteFilterStore = index$2f.useRepiteFilterStore;
713
- exports.usePlatformListStore = index$2g.usePlatformListStore;
701
+ exports.GmConfirmBox = index$23.GmConfirmBox;
702
+ exports.useCheckAll = index$24.useCheckAll;
703
+ exports.useIDBKeyval = index$25.useIDBKeyval;
704
+ exports.useDownload = index$26.useDownload;
705
+ exports.useLangListStore = index$27.useLangListStore;
706
+ exports.useLoginStore = index$28.useLoginStore;
707
+ exports.useCustomSettingsStore = index$29.useCustomSettingsStore;
708
+ exports.useCurrencyListStore = index$2a.useCurrencyListStore;
709
+ exports.useLineListStore = index$2b.useLineListStore;
710
+ exports.usePlatformLineListStore = index$2c.usePlatformLineListStore;
711
+ exports.useOrgUserListStore = index$2d.useOrgUserListStore;
712
+ exports.useAliCategoryListStore = index$2e.useAliCategoryListStore;
713
+ exports.useCompanyCategoryListStore = index$2f.useCompanyCategoryListStore;
714
+ exports.useRepiteFilterStore = index$2g.useRepiteFilterStore;
715
+ exports.usePlatformListStore = index$2h.usePlatformListStore;
714
716
  exports.install = install;
715
717
  exports.version = version;
716
718
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\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';\r\nimport './tailwind.css';\r\nexport * from '@giime/utils';\r\nexport * from '@giime/components';\r\nexport * from '@giime/hooks';\r\n// export * from '@giime/api'; // 用户通过giime/es/api 导入类型\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,8 +8,9 @@ var index$1 = require('../components/src/plugins/loading/index.js');
8
8
  var index$2 = require('../components/src/plugins/messageBox/index.js');
9
9
  var index$3 = require('../components/src/plugins/notification/index.js');
10
10
  var index$4 = require('../components/src/plugins/copy/index.js');
11
+ var index$5 = require('../components/src/plugins/confirmBox/index.js');
11
12
 
12
- var Plugins = [index.GmMessage, index$1.GmLoading, index$2.GmMessageBox, index$3.GmNotification, index$4.GmCopy];
13
+ var Plugins = [index.GmMessage, index$1.GmLoading, index$2.GmMessageBox, index$3.GmNotification, index$4.GmCopy, index$5.GmConfirmBox];
13
14
 
14
15
  exports.default = Plugins;
15
16
  //# sourceMappingURL=plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy] as Plugin[];\r\n"],"names":["GmMessage","GmLoading","GmMessageBox","GmNotification","GmCopy"],"mappings":";;;;;;;;;;;AAIA,cAAe,CAACA,eAAA,EAAWC,iBAAW,EAAAC,oBAAA,EAAcC,wBAAgBC,cAAM,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmConfirmBox, GmCopy, GmLoading, GmMessage, GmMessageBox, GmNotification } from '@giime/components';\r\n\r\nimport type { Plugin } from 'vue';\r\n\r\nexport default [GmMessage, GmLoading, GmMessageBox, GmNotification, GmCopy, GmConfirmBox] as Plugin[];\r\n"],"names":["GmMessage","GmLoading","GmMessageBox","GmNotification","GmCopy","GmConfirmBox"],"mappings":";;;;;;;;;;;;AAIA,cAAe,CAACA,eAAW,EAAAC,iBAAA,EAAWC,oBAAc,EAAAC,sBAAA,EAAgBC,gBAAQC,oBAAY,CAAA;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.1.4";
1
+ export declare const version = "0.1.6";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.1.3";
3
+ const version = "0.1.5";
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.1.3';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.1.5';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giime",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",