giime 0.8.0 → 0.8.1

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 (113) hide show
  1. package/dist/index.css +131 -128
  2. package/es/components/src/base/autocomplete/Autocomplete.vue.d.ts +3 -3
  3. package/es/components/src/base/autocomplete/autocomplete.d.ts +1 -1
  4. package/es/components/src/base/autocomplete/index.d.ts +7 -7
  5. package/es/components/src/base/input/Input.vue.d.ts +3 -3
  6. package/es/components/src/base/input/index.d.ts +7 -7
  7. package/es/components/src/base/input/input.d.ts +1 -1
  8. package/es/components/src/base/inputNumber/InputNumber.vue.d.ts +3 -3
  9. package/es/components/src/base/inputNumber/index.d.ts +7 -7
  10. package/es/components/src/base/inputNumber/inputNumber.d.ts +1 -1
  11. package/es/components/src/base/mention/Mention.vue.d.ts +3 -3
  12. package/es/components/src/base/mention/index.d.ts +7 -7
  13. package/es/components/src/base/mention/mention.d.ts +1 -1
  14. package/es/components/src/base/upload/Upload.vue.d.ts +1 -1
  15. package/es/components/src/base/upload/index.d.ts +3 -3
  16. package/es/components/src/business/loginDialog/LoginDialog.vue2.mjs +4 -1
  17. package/es/components/src/business/loginDialog/LoginDialog.vue2.mjs.map +1 -1
  18. package/es/components/src/business/uploadItem/UploadItem.vue.d.ts +1 -1
  19. package/es/components/src/business/uploadItem/index.d.ts +3 -3
  20. package/es/components/src/business/uploadPro/UploadPro.vue.d.ts +1 -1
  21. package/es/components/src/business/uploadPro/index.d.ts +3 -3
  22. package/es/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.mjs +2 -1
  23. package/es/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.mjs.map +1 -1
  24. package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +1 -1
  25. package/es/components/src/composite/uploadFile/index.d.ts +3 -3
  26. package/es/giime/index.mjs +4 -2
  27. package/es/giime/index.mjs.map +1 -1
  28. package/es/giime/version.d.ts +1 -1
  29. package/es/giime/version.mjs +1 -1
  30. package/es/giime/version.mjs.map +1 -1
  31. package/es/index.css +131 -128
  32. package/es/utils/__tests__/crypto/base64.test.d.ts +1 -0
  33. package/es/utils/__tests__/vue/router.test.d.ts +1 -0
  34. package/es/utils/index.mjs +4 -2
  35. package/es/utils/index.mjs.map +1 -1
  36. package/es/utils/src/crypto/base64.d.ts +42 -0
  37. package/es/utils/src/crypto/base64.mjs +44 -0
  38. package/es/utils/src/crypto/base64.mjs.map +1 -0
  39. package/es/utils/src/crypto/index.d.ts +1 -0
  40. package/es/utils/src/crypto/index.mjs +1 -0
  41. package/es/utils/src/crypto/index.mjs.map +1 -1
  42. package/es/utils/src/http/createAxios.mjs +8 -0
  43. package/es/utils/src/http/createAxios.mjs.map +1 -1
  44. package/es/utils/src/http/index.mjs +1 -1
  45. package/es/utils/src/http/url.d.ts +9 -0
  46. package/es/utils/src/http/url.mjs +6 -1
  47. package/es/utils/src/http/url.mjs.map +1 -1
  48. package/es/utils/src/is.d.ts +22 -0
  49. package/es/utils/src/is.mjs +16 -1
  50. package/es/utils/src/is.mjs.map +1 -1
  51. package/es/utils/src/vue/index.d.ts +1 -0
  52. package/es/utils/src/vue/index.mjs +1 -0
  53. package/es/utils/src/vue/index.mjs.map +1 -1
  54. package/es/utils/src/vue/router.d.ts +30 -0
  55. package/es/utils/src/vue/router.mjs +28 -0
  56. package/es/utils/src/vue/router.mjs.map +1 -0
  57. package/lib/components/src/base/autocomplete/Autocomplete.vue.d.ts +3 -3
  58. package/lib/components/src/base/autocomplete/autocomplete.d.ts +1 -1
  59. package/lib/components/src/base/autocomplete/index.d.ts +7 -7
  60. package/lib/components/src/base/input/Input.vue.d.ts +3 -3
  61. package/lib/components/src/base/input/index.d.ts +7 -7
  62. package/lib/components/src/base/input/input.d.ts +1 -1
  63. package/lib/components/src/base/inputNumber/InputNumber.vue.d.ts +3 -3
  64. package/lib/components/src/base/inputNumber/index.d.ts +7 -7
  65. package/lib/components/src/base/inputNumber/inputNumber.d.ts +1 -1
  66. package/lib/components/src/base/mention/Mention.vue.d.ts +3 -3
  67. package/lib/components/src/base/mention/index.d.ts +7 -7
  68. package/lib/components/src/base/mention/mention.d.ts +1 -1
  69. package/lib/components/src/base/upload/Upload.vue.d.ts +1 -1
  70. package/lib/components/src/base/upload/index.d.ts +3 -3
  71. package/lib/components/src/business/loginDialog/LoginDialog.vue2.js +3 -0
  72. package/lib/components/src/business/loginDialog/LoginDialog.vue2.js.map +1 -1
  73. package/lib/components/src/business/uploadItem/UploadItem.vue.d.ts +1 -1
  74. package/lib/components/src/business/uploadItem/index.d.ts +3 -3
  75. package/lib/components/src/business/uploadPro/UploadPro.vue.d.ts +1 -1
  76. package/lib/components/src/business/uploadPro/index.d.ts +3 -3
  77. package/lib/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.js +2 -1
  78. package/lib/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.js.map +1 -1
  79. package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +1 -1
  80. package/lib/components/src/composite/uploadFile/index.d.ts +3 -3
  81. package/lib/giime/index.js +16 -0
  82. package/lib/giime/index.js.map +1 -1
  83. package/lib/giime/version.d.ts +1 -1
  84. package/lib/giime/version.js +1 -1
  85. package/lib/giime/version.js.map +1 -1
  86. package/lib/index.css +131 -128
  87. package/lib/utils/__tests__/crypto/base64.test.d.ts +1 -0
  88. package/lib/utils/__tests__/vue/router.test.d.ts +1 -0
  89. package/lib/utils/index.js +16 -0
  90. package/lib/utils/index.js.map +1 -1
  91. package/lib/utils/src/crypto/base64.d.ts +42 -0
  92. package/lib/utils/src/crypto/base64.js +51 -0
  93. package/lib/utils/src/crypto/base64.js.map +1 -0
  94. package/lib/utils/src/crypto/index.d.ts +1 -0
  95. package/lib/utils/src/crypto/index.js +7 -0
  96. package/lib/utils/src/crypto/index.js.map +1 -1
  97. package/lib/utils/src/http/createAxios.js +8 -0
  98. package/lib/utils/src/http/createAxios.js.map +1 -1
  99. package/lib/utils/src/http/index.js +1 -0
  100. package/lib/utils/src/http/index.js.map +1 -1
  101. package/lib/utils/src/http/url.d.ts +9 -0
  102. package/lib/utils/src/http/url.js +6 -0
  103. package/lib/utils/src/http/url.js.map +1 -1
  104. package/lib/utils/src/is.d.ts +22 -0
  105. package/lib/utils/src/is.js +20 -0
  106. package/lib/utils/src/is.js.map +1 -1
  107. package/lib/utils/src/vue/index.d.ts +1 -0
  108. package/lib/utils/src/vue/index.js +3 -0
  109. package/lib/utils/src/vue/index.js.map +1 -1
  110. package/lib/utils/src/vue/router.d.ts +30 -0
  111. package/lib/utils/src/vue/router.js +31 -0
  112. package/lib/utils/src/vue/router.js.map +1 -0
  113. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"is.mjs","sources":["../../../../../packages/utils/src/is.ts"],"sourcesContent":["const toString = Object.prototype.toString;\nexport function getTag(value: any): string {\n if (value === null) {\n return '[object Null]';\n } else if (value === undefined) {\n return '[object Undefined]';\n }\n return toString.call(value);\n}\nexport function isObjectLike(value: any): boolean {\n return typeof value === 'object' && value !== null;\n}\nexport function isBoolean(value: any): value is boolean {\n return value === true || value === false || (isObjectLike(value) && getTag(value) === '[object Boolean]');\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string' || (isObjectLike(value) && getTag(value) === '[object String]');\n}\n\nexport function isNumber(value: any): value is number {\n return typeof value === 'number' || (isObjectLike(value) && getTag(value) === '[object Number]');\n}\nexport function isSymbol(value: any): value is symbol {\n return typeof value === 'symbol' || (isObjectLike(value) && getTag(value) === '[object Symbol]');\n}\nexport function isDate(value: any): value is Date {\n return isObjectLike(value) && getTag(value) === '[object Date]';\n}\nexport const isFunction = (val: unknown): val is Function => typeof val === 'function';\n/**\n * 整数\n */\nexport function isInteger(val: any): val is number {\n return isNumber(val) && val % 1 === 0;\n}\n/**\n * 小数\n */\nexport function isDecimal(val: any): val is number {\n return isNumber(val) && val % 1 !== 0;\n}\n/**\n * 负数\n */\nexport function isNegative(val: any): val is number {\n return isNumber(val) && val < 0;\n}\n/**\n * 正数\n */\nexport function isPositive(val: any): val is number {\n return isNumber(val) && val > 0;\n}\n/**\n * 奇数\n */\nexport function isOdd(val: any): val is number {\n return isNumber(val) && val % 2 !== 0;\n}\n/**\n * 偶数\n */\nexport function isEven(val: any): val is number {\n return isNumber(val) && val % 2 === 0;\n}\n\nexport function isUndefined(val: any): val is undefined {\n return val === undefined;\n}\nexport function isNull(val: any): val is null {\n return val === null;\n}\nexport function isNil(val: any): val is null | undefined {\n return isUndefined(val) || isNull(val);\n}\n/**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n */\nexport function isError(value: any): value is Error {\n if (!isObjectLike(value)) {\n return false;\n }\n const tag = getTag(value);\n return (\n tag === '[object Error]' ||\n tag === '[object DOMException]' ||\n (typeof value.message === 'string' && typeof value.name === 'string' && !isPlainObject(value))\n );\n}\nexport function isPlainObject(value: any): value is object {\n if (!isObjectLike(value) || getTag(value) !== '[object Object]') {\n return false;\n }\n if (Object.getPrototypeOf(value) === null) {\n return true;\n }\n let proto = value;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(value) === proto;\n}\n\nexport const isHttps = () => {\n return window.location.protocol.startsWith('https');\n};\nexport const isClient = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nexport const isIOS = /* #__PURE__ */ getIsIOS();\n\nfunction getIsIOS() {\n return (\n isClient &&\n window?.navigator?.userAgent &&\n (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) ||\n // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.\n // https://github.com/vueuse/vueuse/issues/3577\n (window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent)))\n );\n}\n\n/**\n * 文件类型枚举\n */\nexport enum FileType {\n Video = 'Video',\n Image = 'Image',\n Pdf = 'Pdf',\n Word = 'Word',\n Excel = 'Excel',\n Ppt = 'Ppt',\n Text = 'Text',\n Psd = 'Psd',\n Zip = 'Zip',\n}\n\n/**\n * 不同文件类型的扩展名配置\n */\nexport const FILE_EXTENSIONS: Record<FileType, readonly string[]> = {\n [FileType.Video]: ['mp4', 'avi', 'rmvb', 'rm', 'wmv', 'mpg', 'mpeg', 'mov', 'mkv', 'flv'],\n [FileType.Image]: ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'bmp'],\n [FileType.Pdf]: ['pdf'],\n [FileType.Word]: ['doc', 'docx'],\n [FileType.Excel]: ['xls', 'xlsx'],\n [FileType.Ppt]: ['ppt', 'pptx'],\n [FileType.Text]: ['txt'],\n [FileType.Psd]: ['psd'],\n [FileType.Zip]: ['zip', 'rar', '7z'],\n} as const;\n\n/**\n * 创建用于匹配文件扩展名的正则表达式\n * @param extensions 文件扩展名数组\n * @returns 用于匹配文件扩展名的正则表达式\n */\nconst createExtensionRegex = (extensions: readonly string[]): RegExp => {\n return new RegExp(`\\\\.(${extensions.join('|')})$`, 'i');\n};\n\n/**\n * 通用函数,用于检查URL是否匹配特定文件扩展名\n * @param url 要检查的文件URL或文件名\n * @param type 要检查的文件类型\n * @returns 布尔值,表示URL是否匹配该文件类型\n */\nconst isFileType = (url: string, type: FileType): boolean => {\n if (!isString(url)) return false;\n // 首先通过URL去除查询参数和哈希值\n const baseUrl = url.split('?')[0];\n const regex = createExtensionRegex(FILE_EXTENSIONS[type]);\n return regex.test(baseUrl);\n};\n\n/**\n * @description 判断是否为视频\n * @param url 文件链接 或 文件名\n */\nexport const isVideoUrl = (url: string): boolean => isFileType(url, FileType.Video);\n\n/**\n * @description 判断是否为图片\n * @param url 文件链接 或 文件名\n */\nexport const isImageUrl = (url: string): boolean => isFileType(url, FileType.Image);\n\n/**\n * @description 判断是否为PDF\n * @param url 文件链接 或 文件名\n */\nexport const isPDF = (url: string): boolean => isFileType(url, FileType.Pdf);\n\n/**\n * @description 是否为Word文档\n * @param url 文件链接 或 文件名\n */\nexport const isWord = (url: string): boolean => isFileType(url, FileType.Word);\n\n/**\n * @description 是否为Excel文件\n * @param url 文件链接 或 文件名\n */\nexport const isExcel = (url: string): boolean => isFileType(url, FileType.Excel);\n\n/**\n * @description 是否为PPT文件\n * @param url 文件链接 或 文件名\n */\nexport const isPPT = (url: string): boolean => isFileType(url, FileType.Ppt);\n\n/**\n * @description 是否为文本文件\n * @param url 文件链接 或 文件名\n */\nexport const isText = (url: string): boolean => isFileType(url, FileType.Text);\n\n/**\n * @description 是否为PSD文件\n * @param url 文件链接 或 文件名\n */\nexport const isPSD = (url: string): boolean => isFileType(url, FileType.Psd);\n\n/**\n * @description 判断是否为压缩包\n * @param url 文件链接 或 文件名\n */\nexport const isZip = (url: string): boolean => isFileType(url, FileType.Zip);\n"],"names":["FileType"],"mappings":"AAAA,MAAM,QAAA,GAAW,OAAO,SAAA,CAAU,QAAA;AAC3B,SAAS,OAAO,KAAA,EAAoB;AACzC,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,OAAO,eAAA;AAAA,EACT,CAAA,MAAA,IAAW,UAAU,KAAA,CAAA,EAAW;AAC9B,IAAA,OAAO,oBAAA;AAAA,EACT;AACA,EAAA,OAAO,QAAA,CAAS,KAAK,KAAK,CAAA;AAC5B;AACO,SAAS,aAAa,KAAA,EAAqB;AAChD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,KAAU,IAAA;AAChD;AACO,SAAS,UAAU,KAAA,EAA8B;AACtD,EAAA,OAAO,KAAA,KAAU,QAAQ,KAAA,KAAU,KAAA,IAAU,aAAa,KAAK,CAAA,IAAK,MAAA,CAAO,KAAK,CAAA,KAAM,kBAAA;AACxF;AAEO,SAAS,SAAS,KAAA,EAA6B;AACpD,EAAA,OAAO,OAAO,UAAU,QAAA,IAAa,YAAA,CAAa,KAAK,CAAA,IAAK,MAAA,CAAO,KAAK,CAAA,KAAM,iBAAA;AAChF;AAEO,SAAS,SAAS,KAAA,EAA6B;AACpD,EAAA,OAAO,OAA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A,KAAyB,UAAA,CAAW,KAAK,KAAA;;;;"}
1
+ {"version":3,"file":"is.mjs","sources":["../../../../../packages/utils/src/is.ts"],"sourcesContent":["const toString = Object.prototype.toString;\nexport function getTag(value: any): string {\n if (value === null) {\n return '[object Null]';\n } else if (value === undefined) {\n return '[object Undefined]';\n }\n return toString.call(value);\n}\nexport function isObjectLike(value: any): boolean {\n return typeof value === 'object' && value !== null;\n}\nexport function isBoolean(value: any): value is boolean {\n return value === true || value === false || (isObjectLike(value) && getTag(value) === '[object Boolean]');\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string' || (isObjectLike(value) && getTag(value) === '[object String]');\n}\n\nexport function isNumber(value: any): value is number {\n return typeof value === 'number' || (isObjectLike(value) && getTag(value) === '[object Number]');\n}\nexport function isSymbol(value: any): value is symbol {\n return typeof value === 'symbol' || (isObjectLike(value) && getTag(value) === '[object Symbol]');\n}\nexport function isDate(value: any): value is Date {\n return isObjectLike(value) && getTag(value) === '[object Date]';\n}\nexport const isFunction = (val: unknown): val is Function => typeof val === 'function';\n/**\n * 整数\n */\nexport function isInteger(val: any): val is number {\n return isNumber(val) && val % 1 === 0;\n}\n/**\n * 小数\n */\nexport function isDecimal(val: any): val is number {\n return isNumber(val) && val % 1 !== 0;\n}\n/**\n * 负数\n */\nexport function isNegative(val: any): val is number {\n return isNumber(val) && val < 0;\n}\n/**\n * 正数\n */\nexport function isPositive(val: any): val is number {\n return isNumber(val) && val > 0;\n}\n/**\n * 奇数\n */\nexport function isOdd(val: any): val is number {\n return isNumber(val) && val % 2 !== 0;\n}\n/**\n * 偶数\n */\nexport function isEven(val: any): val is number {\n return isNumber(val) && val % 2 === 0;\n}\n\nexport function isUndefined(val: any): val is undefined {\n return val === undefined;\n}\nexport function isNull(val: any): val is null {\n return val === null;\n}\nexport function isNil(val: any): val is null | undefined {\n return isUndefined(val) || isNull(val);\n}\n/**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n */\nexport function isError(value: any): value is Error {\n if (!isObjectLike(value)) {\n return false;\n }\n const tag = getTag(value);\n return (\n tag === '[object Error]' ||\n tag === '[object DOMException]' ||\n (typeof value.message === 'string' && typeof value.name === 'string' && !isPlainObject(value))\n );\n}\nexport function isPlainObject(value: any): value is object {\n if (!isObjectLike(value) || getTag(value) !== '[object Object]') {\n return false;\n }\n if (Object.getPrototypeOf(value) === null) {\n return true;\n }\n let proto = value;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(value) === proto;\n}\n\nexport const isHttps = () => {\n return window.location.protocol.startsWith('https');\n};\nexport const isClient = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nexport const isIOS = /* #__PURE__ */ getIsIOS();\n\nfunction getIsIOS() {\n return (\n isClient &&\n window?.navigator?.userAgent &&\n (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) ||\n // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.\n // https://github.com/vueuse/vueuse/issues/3577\n (window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent)))\n );\n}\n\n/**\n * 文件类型枚举\n */\nexport enum FileType {\n Video = 'Video',\n Image = 'Image',\n Pdf = 'Pdf',\n Word = 'Word',\n Excel = 'Excel',\n Ppt = 'Ppt',\n Text = 'Text',\n Psd = 'Psd',\n Zip = 'Zip',\n}\n\n/**\n * 不同文件类型的扩展名配置\n */\nexport const FILE_EXTENSIONS: Record<FileType, readonly string[]> = {\n [FileType.Video]: ['mp4', 'avi', 'rmvb', 'rm', 'wmv', 'mpg', 'mpeg', 'mov', 'mkv', 'flv'],\n [FileType.Image]: ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'bmp'],\n [FileType.Pdf]: ['pdf'],\n [FileType.Word]: ['doc', 'docx'],\n [FileType.Excel]: ['xls', 'xlsx'],\n [FileType.Ppt]: ['ppt', 'pptx'],\n [FileType.Text]: ['txt'],\n [FileType.Psd]: ['psd'],\n [FileType.Zip]: ['zip', 'rar', '7z'],\n} as const;\n\n/**\n * 创建用于匹配文件扩展名的正则表达式\n * @param extensions 文件扩展名数组\n * @returns 用于匹配文件扩展名的正则表达式\n */\nconst createExtensionRegex = (extensions: readonly string[]): RegExp => {\n return new RegExp(`\\\\.(${extensions.join('|')})$`, 'i');\n};\n\n/**\n * 通用函数,用于检查URL是否匹配特定文件扩展名\n * @param url 要检查的文件URL或文件名\n * @param type 要检查的文件类型\n * @returns 布尔值,表示URL是否匹配该文件类型\n */\nconst isFileType = (url: string, type: FileType): boolean => {\n if (!isString(url)) return false;\n // 首先通过URL去除查询参数和哈希值\n const baseUrl = url.split('?')[0];\n const regex = createExtensionRegex(FILE_EXTENSIONS[type]);\n return regex.test(baseUrl);\n};\n\n/**\n * @description 判断是否为视频\n * @param url 文件链接 或 文件名\n */\nexport const isVideoUrl = (url: string): boolean => isFileType(url, FileType.Video);\n\n/**\n * @description 判断是否为图片\n * @param url 文件链接 或 文件名\n */\nexport const isImageUrl = (url: string): boolean => isFileType(url, FileType.Image);\n\n/**\n * @description 判断是否为PDF\n * @param url 文件链接 或 文件名\n */\nexport const isPDF = (url: string): boolean => isFileType(url, FileType.Pdf);\n\n/**\n * @description 是否为Word文档\n * @param url 文件链接 或 文件名\n */\nexport const isWord = (url: string): boolean => isFileType(url, FileType.Word);\n\n/**\n * @description 是否为Excel文件\n * @param url 文件链接 或 文件名\n */\nexport const isExcel = (url: string): boolean => isFileType(url, FileType.Excel);\n\n/**\n * @description 是否为PPT文件\n * @param url 文件链接 或 文件名\n */\nexport const isPPT = (url: string): boolean => isFileType(url, FileType.Ppt);\n\n/**\n * @description 是否为文本文件\n * @param url 文件链接 或 文件名\n */\nexport const isText = (url: string): boolean => isFileType(url, FileType.Text);\n\n/**\n * @description 是否为PSD文件\n * @param url 文件链接 或 文件名\n */\nexport const isPSD = (url: string): boolean => isFileType(url, FileType.Psd);\n\n/**\n * @description 判断是否为压缩包\n * @param url 文件链接 或 文件名\n */\nexport const isZip = (url: string): boolean => isFileType(url, FileType.Zip);\n\n/**\n * 移动设备正则表达式\n */\nexport const MOBILE_DEVICE_REGEX = /android|webos|iphone|ipod|blackberry|iemobile|opera mini/i;\n\n/**\n * 平板设备正则表达式\n */\nexport const TABLET_DEVICE_REGEX = /ipad|android(?!.*mobile)|tablet/i;\n\n/**\n * 钉钉浏览器正则表达式\n */\nexport const DINGTALK_REGEX = /dingtalk/i;\n\n/**\n * 判断是否为移动设备\n * @returns 是否为移动设备\n */\nexport const isMobile = () => {\n if (!isClient) return false;\n const ua = navigator.userAgent.toLowerCase();\n\n // 判断是否为移动设备\n const isMobileDevice = MOBILE_DEVICE_REGEX.test(ua);\n\n // 判断是否为平板设备\n const isTabletDevice = TABLET_DEVICE_REGEX.test(ua);\n // console.log(isMobileDevice, isTabletDevice);\n return isMobileDevice || isTabletDevice;\n};\n\n/**\n * 判断是否为钉钉浏览器\n * @returns 是否为钉钉浏览器\n */\nexport const isDingTalk = () => {\n if (!isClient) return false;\n const ua = navigator.userAgent.toLowerCase();\n return DINGTALK_REGEX.test(ua);\n};\n"],"names":["FileType"],"mappings":"AAAA,MAAM,QAAA,GAAW,OAAO,SAAA,CAAU,QAAA;AAC3B,SAAS,OAAO,KAAA,EAAoB;AACzC,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,OAAO,eAAA;AAAA,EACT,CAAA,MAAA,IAAW,UAAU,KAAA,CAAA,EAAW;AAC9B,IAAA,OAAO,oBAAA;AAAA,EACT;AACA,EAAA,OAAO,QAAA,CAAS,KAAK,KAAK,CAAA;AAC5B;AACO,SAAS,aAAa,KAAA,EAAqB;AAChD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,KAAU,IAAA;AAChD;AACO,SAAS,UAAU,KAAA,EAA8B;AACtD,EAAA,OAAO,KAAA,KAAU,QAAQ,KAAA,KAAU,KAAA,IAAU,aAAa,KAAK,CAAA,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AAA;AAM1D,MAAM,KAAA,GAAQ,CAAC,GAAA,KAAyB,UAAA,CAAW,KAAK,KAAA;AAMxD,MAAM,MAAA,GAAS,CAAC,GAAA,KAAyB,UAAA,CAAW,KAAK,MAAA;AAMzD,MAAM,KAAA,GAAQ,CAAC,GAAA,KAAyB,UAAA,CAAW,KAAK,KAAA;AAMxD,MAAM,KAAA,GAAQ,CAAC,GAAA,KAAyB,UAAA,CAAW,KAAK,KAAA;AAKxD,MAAM,mBAAA,GAAsB;AAK5B,MAAM,mBAAA,GAAsB;AAK5B,MAAM,cAAA,GAAiB;AAMvB,MAAM,WAAW,MAAM;AAC5B,EAAA,IAAI,CAAC,UAAU,OAAO,KAAA;AACtB,EAAA,MAAM,EAAA,GAAK,SAAA,CAAU,SAAA,CAAU,WAAA,EAAY;AAG3C,EAAA,MAAM,cAAA,GAAiB,mBAAA,CAAoB,IAAA,CAAK,EAAE,CAAA;AAGlD,EAAA,MAAM,cAAA,GAAiB,mBAAA,CAAoB,IAAA,CAAK,EAAE,CAAA;AAElD,EAAA,OAAO,cAAA,IAAkB,cAAA;AAC3B;AAMO,MAAM,aAAa,MAAM;AAC9B,EAAA,IAAI,CAAC,UAAU,OAAO,KAAA;AACtB,EAAA,MAAM,EAAA,GAAK,SAAA,CAAU,SAAA,CAAU,WAAA,EAAY;AAC3C,EAAA,OAAO,cAAA,CAAe,KAAK,EAAE,CAAA;AAC/B;;;;"}
@@ -1,3 +1,4 @@
1
1
  export * from './install';
2
2
  export * from './resolver';
3
3
  export * from './typescript';
4
+ export * from './router';
@@ -1,4 +1,5 @@
1
1
  export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall } from './install.mjs';
2
2
  export { GiimeResolver, bypass, kebabCase } from './resolver.mjs';
3
3
  import './typescript.mjs';
4
+ export { getRouteParams, getRouteQuery } from './router.mjs';
4
5
  //# 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":";;;"}
@@ -0,0 +1,30 @@
1
+ import { useRoute } from 'vue-router';
2
+ import type { RouteParamValueRaw } from 'vue-router';
3
+ export type RouteQueryValueRaw = RouteParamValueRaw | string[];
4
+ export type RouteParamsValueRaw = RouteParamValueRaw;
5
+ /** 转换函数类型,可以是函数或包含 get 方法的对象 */
6
+ export type TransformFunction<V, R> = ((val: V) => R) | {
7
+ get?: (value: V) => R;
8
+ };
9
+ export interface GetRouteValueOptions<V, R> {
10
+ /** 默认值 */
11
+ defaultValue?: V;
12
+ /** 路由实例,不传则使用 useRoute() */
13
+ route?: ReturnType<typeof useRoute>;
14
+ /** 转换函数,可以是函数或包含 get 方法的对象 */
15
+ transform?: TransformFunction<V, R>;
16
+ }
17
+ /**
18
+ * 获取路由 query 参数的值(非响应式)
19
+ * @param name - query 参数名称
20
+ * @param options - 配置选项
21
+ * @returns 转换后的 query 值
22
+ */
23
+ export declare function getRouteQuery<T extends RouteQueryValueRaw = RouteQueryValueRaw, K = T>(name: string, options?: GetRouteValueOptions<T, K>): K;
24
+ /**
25
+ * 获取路由 params 参数的值(非响应式)
26
+ * @param name - params 参数名称
27
+ * @param options - 配置选项
28
+ * @returns 转换后的 params 值
29
+ */
30
+ export declare function getRouteParams<T extends RouteParamsValueRaw = RouteParamsValueRaw, K = T>(name: string, options?: GetRouteValueOptions<T, K>): K;
@@ -0,0 +1,28 @@
1
+ import { useRoute } from 'vue-router';
2
+
3
+ function transformRouteValue(value, defaultValue, transform) {
4
+ const finalValue = value !== void 0 ? value : defaultValue;
5
+ if (!transform) {
6
+ return finalValue;
7
+ }
8
+ if (typeof transform === "function") {
9
+ return transform(finalValue);
10
+ }
11
+ if (transform.get) {
12
+ return transform.get(finalValue);
13
+ }
14
+ return finalValue;
15
+ }
16
+ function getRouteQuery(name, options) {
17
+ const { route = useRoute(), transform, defaultValue } = options || {};
18
+ const queryValue = route.query[name];
19
+ return transformRouteValue(queryValue, defaultValue, transform);
20
+ }
21
+ function getRouteParams(name, options) {
22
+ const { route = useRoute(), transform, defaultValue } = options || {};
23
+ const paramsValue = route.params[name];
24
+ return transformRouteValue(paramsValue, defaultValue, transform);
25
+ }
26
+
27
+ export { getRouteParams, getRouteQuery };
28
+ //# sourceMappingURL=router.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.mjs","sources":["../../../../../../packages/utils/src/vue/router.ts"],"sourcesContent":["import { useRoute } from 'vue-router';\nimport type { RouteParamValueRaw } from 'vue-router';\n\nexport type RouteQueryValueRaw = RouteParamValueRaw | string[];\nexport type RouteParamsValueRaw = RouteParamValueRaw;\n\n/** 转换函数类型,可以是函数或包含 get 方法的对象 */\nexport type TransformFunction<V, R> =\n | ((val: V) => R)\n | {\n get?: (value: V) => R;\n };\n\nexport interface GetRouteValueOptions<V, R> {\n /** 默认值 */\n defaultValue?: V;\n /** 路由实例,不传则使用 useRoute() */\n route?: ReturnType<typeof useRoute>;\n /** 转换函数,可以是函数或包含 get 方法的对象 */\n transform?: TransformFunction<V, R>;\n}\n\n/**\n * 通用的路由值获取和转换逻辑\n * @param value - 原始值\n * @param defaultValue - 默认值\n * @param transform - 转换函数\n * @returns 转换后的值\n */\nfunction transformRouteValue<T, K>(value: T | undefined, defaultValue: T | undefined, transform?: TransformFunction<T, K>): K {\n // 确定最终值\n const finalValue = value !== undefined ? value : defaultValue;\n\n // 如果没有 transform,直接返回\n if (!transform) {\n return finalValue as unknown as K;\n }\n\n // 如果 transform 是函数,直接调用\n if (typeof transform === 'function') {\n return transform(finalValue as T);\n }\n\n // 如果 transform 是对象,使用 get 方法\n if (transform.get) {\n return transform.get(finalValue as T);\n }\n\n return finalValue as unknown as K;\n}\n\n/**\n * 获取路由 query 参数的值(非响应式)\n * @param name - query 参数名称\n * @param options - 配置选项\n * @returns 转换后的 query 值\n */\nexport function getRouteQuery<T extends RouteQueryValueRaw = RouteQueryValueRaw, K = T>(name: string, options?: GetRouteValueOptions<T, K>): K {\n const { route = useRoute(), transform, defaultValue } = options || {};\n\n // 获取原始 query 值\n const queryValue = route.query[name] as T | undefined;\n\n return transformRouteValue(queryValue, defaultValue, transform);\n}\n\n/**\n * 获取路由 params 参数的值(非响应式)\n * @param name - params 参数名称\n * @param options - 配置选项\n * @returns 转换后的 params 值\n */\nexport function getRouteParams<T extends RouteParamsValueRaw = RouteParamsValueRaw, K = T>(name: string, options?: GetRouteValueOptions<T, K>): K {\n const { route = useRoute(), transform, defaultValue } = options || {};\n\n // 获取原始 params 值\n const paramsValue = route.params[name] as T | undefined;\n\n return transformRouteValue(paramsValue, defaultValue, transform);\n}\n"],"names":[],"mappings":";;AA6BA,SAAS,mBAAA,CAA0B,KAAA,EAAsB,YAAA,EAA6B,SAAA,EAAwC;AAE5H,EAAA,MAAM,UAAA,GAAa,KAAA,KAAU,KAAA,CAAA,GAAY,KAAA,GAAQ,YAAA;AAGjD,EAAA,IAAI,CAAC,SAAA,EAAW;AACd,IAAA,OAAO,UAAA;AAAA,EACT;AAGA,EAAA,IAAI,OAAO,cAAc,UAAA,EAAY;AACnC,IAAA,OAAO,UAAU,UAAe,CAAA;AAAA,EAClC;AAGA,EAAA,IAAI,UAAU,GAAA,EAAK;AACjB,IAAA,OAAO,SAAA,CAAU,IAAI,UAAe,CAAA;AAAA,EACtC;AAEA,EAAA,OAAO,UAAA;AACT;AAQO,SAAS,aAAA,CAAwE,MAAc,OAAA,EAAyC;AAC7I,EAAA,MAAM,EAAE,QAAQ,QAAA,EAAS,EAAG,WAAW,YAAA,EAAa,GAAI,WAAW,EAAC;AAGpE,EAAA,MAAM,UAAA,GAAa,KAAA,CAAM,KAAA,CAAM,IAAI,CAAA;AAEnC,EAAA,OAAO,mBAAA,CAAoB,UAAA,EAAY,YAAA,EAAc,SAAS,CAAA;AAChE;AAQO,SAAS,cAAA,CAA2E,MAAc,OAAA,EAAyC;AAChJ,EAAA,MAAM,EAAE,QAAQ,QAAA,EAAS,EAAG,WAAW,YAAA,EAAa,GAAI,WAAW,EAAC;AAGpE,EAAA,MAAM,WAAA,GAAc,KAAA,CAAM,MAAA,CAAO,IAAI,CAAA;AAErC,EAAA,OAAO,mBAAA,CAAoB,WAAA,EAAa,YAAA,EAAc,SAAS,CAAA;AACjE;;;;"}
@@ -124,7 +124,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
124
124
  readonly default: true;
125
125
  };
126
126
  inputmode: {
127
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
127
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
128
128
  readonly required: false;
129
129
  readonly validator: ((val: unknown) => boolean) | undefined;
130
130
  __epPropKey: true;
@@ -413,7 +413,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
413
413
  readonly default: true;
414
414
  };
415
415
  inputmode: {
416
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
416
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
417
417
  readonly required: false;
418
418
  readonly validator: ((val: unknown) => boolean) | undefined;
419
419
  __epPropKey: true;
@@ -606,7 +606,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
606
606
  highlightFirstItem: boolean;
607
607
  fitInputWidth: boolean;
608
608
  loopNavigation: boolean;
609
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
609
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
610
610
  modelModifiers: import("element-plus").InputModelModifiers;
611
611
  autosize: import("element-plus").InputAutoSize;
612
612
  autocomplete: AutoFill;
@@ -108,7 +108,7 @@ export declare const autocompleteProps: {
108
108
  readonly default: true;
109
109
  };
110
110
  inputmode: {
111
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
111
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
112
112
  readonly required: false;
113
113
  readonly validator: ((val: unknown) => boolean) | undefined;
114
114
  __epPropKey: true;
@@ -110,7 +110,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
110
110
  readonly default: true;
111
111
  };
112
112
  inputmode: {
113
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
113
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
114
114
  readonly required: false;
115
115
  readonly validator: ((val: unknown) => boolean) | undefined;
116
116
  __epPropKey: true;
@@ -407,7 +407,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
407
407
  readonly default: true;
408
408
  };
409
409
  inputmode: {
410
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
410
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
411
411
  readonly required: false;
412
412
  readonly validator: ((val: unknown) => boolean) | undefined;
413
413
  __epPropKey: true;
@@ -600,7 +600,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
600
600
  highlightFirstItem: boolean;
601
601
  fitInputWidth: boolean;
602
602
  loopNavigation: boolean;
603
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
603
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
604
604
  modelModifiers: import("element-plus").InputModelModifiers;
605
605
  autosize: import("element-plus").InputAutoSize;
606
606
  autocomplete: AutoFill;
@@ -732,7 +732,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
732
732
  readonly default: true;
733
733
  };
734
734
  inputmode: {
735
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
735
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
736
736
  readonly required: false;
737
737
  readonly validator: ((val: unknown) => boolean) | undefined;
738
738
  __epPropKey: true;
@@ -927,7 +927,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
927
927
  highlightFirstItem: boolean;
928
928
  fitInputWidth: boolean;
929
929
  loopNavigation: boolean;
930
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
930
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
931
931
  modelModifiers: import("element-plus").InputModelModifiers;
932
932
  autosize: import("element-plus").InputAutoSize;
933
933
  autocomplete: AutoFill;
@@ -1056,7 +1056,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
1056
1056
  readonly default: true;
1057
1057
  };
1058
1058
  inputmode: {
1059
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
1059
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
1060
1060
  readonly required: false;
1061
1061
  readonly validator: ((val: unknown) => boolean) | undefined;
1062
1062
  __epPropKey: true;
@@ -1259,7 +1259,7 @@ export declare const GmAutocomplete: import("../../../../utils").SFCWithInstall<
1259
1259
  highlightFirstItem: boolean;
1260
1260
  fitInputWidth: boolean;
1261
1261
  loopNavigation: boolean;
1262
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
1262
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
1263
1263
  modelModifiers: import("element-plus").InputModelModifiers;
1264
1264
  autosize: import("element-plus").InputAutoSize;
1265
1265
  autocomplete: AutoFill;
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  };
11
11
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
12
12
  inputmode: {
13
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
13
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
14
14
  readonly required: false;
15
15
  readonly validator: ((val: unknown) => boolean) | undefined;
16
16
  __epPropKey: true;
@@ -212,7 +212,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
212
212
  compositionend: (evt: CompositionEvent) => void;
213
213
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
214
214
  inputmode: {
215
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
215
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
216
216
  readonly required: false;
217
217
  readonly validator: ((val: unknown) => boolean) | undefined;
218
218
  __epPropKey: true;
@@ -407,7 +407,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
407
407
  type: string;
408
408
  disabled: boolean;
409
409
  modelValue: string | number | null | undefined;
410
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
410
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
411
411
  modelModifiers: import("element-plus").InputModelModifiers;
412
412
  autosize: import("element-plus").InputAutoSize;
413
413
  autocomplete: AutoFill;
@@ -2,7 +2,7 @@ import Input from './Input.vue';
2
2
  export declare const GmInput: import("../../../../utils").SFCWithInstall<{
3
3
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
4
  inputmode: {
5
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
5
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
6
6
  readonly required: false;
7
7
  readonly validator: ((val: unknown) => boolean) | undefined;
8
8
  __epPropKey: true;
@@ -217,7 +217,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
217
217
  compositionend: (evt: CompositionEvent) => void;
218
218
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
219
219
  inputmode: {
220
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
220
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
221
221
  readonly required: false;
222
222
  readonly validator: ((val: unknown) => boolean) | undefined;
223
223
  __epPropKey: true;
@@ -412,7 +412,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
412
412
  type: string;
413
413
  disabled: boolean;
414
414
  modelValue: string | number | null | undefined;
415
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
415
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
416
416
  modelModifiers: import("element-plus").InputModelModifiers;
417
417
  autosize: import("element-plus").InputAutoSize;
418
418
  autocomplete: AutoFill;
@@ -436,7 +436,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
436
436
  Defaults: {};
437
437
  }, Readonly<import("vue").ExtractPropTypes<{
438
438
  inputmode: {
439
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
439
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
440
440
  readonly required: false;
441
441
  readonly validator: ((val: unknown) => boolean) | undefined;
442
442
  __epPropKey: true;
@@ -641,7 +641,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
641
641
  type: string;
642
642
  disabled: boolean;
643
643
  modelValue: string | number | null | undefined;
644
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
644
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
645
645
  modelModifiers: import("element-plus").InputModelModifiers;
646
646
  autosize: import("element-plus").InputAutoSize;
647
647
  autocomplete: AutoFill;
@@ -662,7 +662,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
662
662
  __isSuspense?: undefined;
663
663
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
664
664
  inputmode: {
665
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
665
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
666
666
  readonly required: false;
667
667
  readonly validator: ((val: unknown) => boolean) | undefined;
668
668
  __epPropKey: true;
@@ -880,7 +880,7 @@ export declare const GmInput: import("../../../../utils").SFCWithInstall<{
880
880
  type: string;
881
881
  disabled: boolean;
882
882
  modelValue: string | number | null | undefined;
883
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
883
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
884
884
  modelModifiers: import("element-plus").InputModelModifiers;
885
885
  autosize: import("element-plus").InputAutoSize;
886
886
  autocomplete: AutoFill;
@@ -1,7 +1,7 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
2
  export declare const inputProps: {
3
3
  inputmode: {
4
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
4
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
5
5
  readonly required: false;
6
6
  readonly validator: ((val: unknown) => boolean) | undefined;
7
7
  __epPropKey: true;
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
6
6
  };
7
7
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
8
8
  inputmode: {
9
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
9
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
10
10
  readonly required: false;
11
11
  readonly validator: ((val: unknown) => boolean) | undefined;
12
12
  __epPropKey: true;
@@ -121,7 +121,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
121
121
  blur: (e: FocusEvent) => void;
122
122
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
123
123
  inputmode: {
124
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
124
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
125
125
  readonly required: false;
126
126
  readonly validator: ((val: unknown) => boolean) | undefined;
127
127
  __epPropKey: true;
@@ -234,7 +234,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
234
234
  }, {
235
235
  id: string;
236
236
  disabled: boolean;
237
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
237
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
238
238
  readonly: boolean;
239
239
  validateEvent: boolean;
240
240
  max: number;
@@ -2,7 +2,7 @@ import InputNumber from './InputNumber.vue';
2
2
  export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
3
3
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
4
  inputmode: {
5
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
5
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
6
6
  readonly required: false;
7
7
  readonly validator: ((val: unknown) => boolean) | undefined;
8
8
  __epPropKey: true;
@@ -123,7 +123,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
123
123
  blur: (e: FocusEvent) => void;
124
124
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
125
125
  inputmode: {
126
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
126
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
127
127
  readonly required: false;
128
128
  readonly validator: ((val: unknown) => boolean) | undefined;
129
129
  __epPropKey: true;
@@ -236,7 +236,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
236
236
  }, {
237
237
  id: string;
238
238
  disabled: boolean;
239
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
239
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
240
240
  readonly: boolean;
241
241
  validateEvent: boolean;
242
242
  max: number;
@@ -257,7 +257,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
257
257
  Defaults: {};
258
258
  }, Readonly<import("vue").ExtractPropTypes<{
259
259
  inputmode: {
260
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
260
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
261
261
  readonly required: false;
262
262
  readonly validator: ((val: unknown) => boolean) | undefined;
263
263
  __epPropKey: true;
@@ -373,7 +373,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
373
373
  }, {}, {}, {}, {
374
374
  id: string;
375
375
  disabled: boolean;
376
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
376
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
377
377
  readonly: boolean;
378
378
  validateEvent: boolean;
379
379
  max: number;
@@ -391,7 +391,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
391
391
  __isSuspense?: undefined;
392
392
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
393
393
  inputmode: {
394
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
394
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
395
395
  readonly required: false;
396
396
  readonly validator: ((val: unknown) => boolean) | undefined;
397
397
  __epPropKey: true;
@@ -513,7 +513,7 @@ export declare const GmInputNumber: import("../../../../utils").SFCWithInstall<{
513
513
  }, string, {
514
514
  id: string;
515
515
  disabled: boolean;
516
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
516
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
517
517
  readonly: boolean;
518
518
  validateEvent: boolean;
519
519
  max: number;
@@ -1,6 +1,6 @@
1
1
  export declare const inputNumberProps: {
2
2
  inputmode: {
3
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
3
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
4
4
  readonly required: false;
5
5
  readonly validator: ((val: unknown) => boolean) | undefined;
6
6
  __epPropKey: true;
@@ -126,7 +126,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
126
126
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
127
127
  };
128
128
  inputmode: {
129
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
129
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
130
130
  readonly required: false;
131
131
  readonly validator: ((val: unknown) => boolean) | undefined;
132
132
  __epPropKey: true;
@@ -417,7 +417,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
417
417
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
418
418
  };
419
419
  inputmode: {
420
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
420
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
421
421
  readonly required: false;
422
422
  readonly validator: ((val: unknown) => boolean) | undefined;
423
423
  __epPropKey: true;
@@ -603,7 +603,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
603
603
  split: string;
604
604
  disabled: boolean;
605
605
  props: import("element-plus").MentionOptionProps;
606
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
606
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
607
607
  modelModifiers: import("element-plus").InputModelModifiers;
608
608
  autosize: import("element-plus").InputAutoSize;
609
609
  autocomplete: AutoFill;
@@ -110,7 +110,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
110
110
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
111
111
  };
112
112
  inputmode: {
113
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
113
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
114
114
  readonly required: false;
115
115
  readonly validator: ((val: unknown) => boolean) | undefined;
116
116
  __epPropKey: true;
@@ -409,7 +409,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
409
409
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
410
410
  };
411
411
  inputmode: {
412
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
412
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
413
413
  readonly required: false;
414
414
  readonly validator: ((val: unknown) => boolean) | undefined;
415
415
  __epPropKey: true;
@@ -595,7 +595,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
595
595
  split: string;
596
596
  disabled: boolean;
597
597
  props: import("element-plus").MentionOptionProps;
598
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
598
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
599
599
  modelModifiers: import("element-plus").InputModelModifiers;
600
600
  autosize: import("element-plus").InputAutoSize;
601
601
  autocomplete: AutoFill;
@@ -733,7 +733,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
733
733
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
734
734
  };
735
735
  inputmode: {
736
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
736
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
737
737
  readonly required: false;
738
738
  readonly validator: ((val: unknown) => boolean) | undefined;
739
739
  __epPropKey: true;
@@ -923,7 +923,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
923
923
  split: string;
924
924
  disabled: boolean;
925
925
  props: import("element-plus").MentionOptionProps;
926
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
926
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
927
927
  modelModifiers: import("element-plus").InputModelModifiers;
928
928
  autosize: import("element-plus").InputAutoSize;
929
929
  autocomplete: AutoFill;
@@ -1058,7 +1058,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
1058
1058
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
1059
1059
  };
1060
1060
  inputmode: {
1061
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
1061
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
1062
1062
  readonly required: false;
1063
1063
  readonly validator: ((val: unknown) => boolean) | undefined;
1064
1064
  __epPropKey: true;
@@ -1256,7 +1256,7 @@ export declare const GmMention: import("../../../../utils").SFCWithInstall<{
1256
1256
  split: string;
1257
1257
  disabled: boolean;
1258
1258
  props: import("element-plus").MentionOptionProps;
1259
- inputmode: "text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
1259
+ inputmode: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
1260
1260
  modelModifiers: import("element-plus").InputModelModifiers;
1261
1261
  autosize: import("element-plus").InputAutoSize;
1262
1262
  autocomplete: AutoFill;
@@ -109,7 +109,7 @@ export declare const mentionProps: {
109
109
  readonly default: () => Required<import("element-plus").MentionOptionProps>;
110
110
  };
111
111
  inputmode: {
112
- readonly type: import("vue").PropType<"text" | "url" | "search" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
112
+ readonly type: import("vue").PropType<"text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined>;
113
113
  readonly required: false;
114
114
  readonly validator: ((val: unknown) => boolean) | undefined;
115
115
  __epPropKey: true;
@@ -380,8 +380,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
380
380
  } | Promise<{
381
381
  [x: string]: any;
382
382
  }>);
383
- withCredentials: boolean;
384
383
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
384
+ withCredentials: boolean;
385
385
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
386
386
  name: string;
387
387
  drag: boolean;
@@ -375,8 +375,8 @@ export declare const GmUpload: import("../../../../utils").SFCWithInstall<{
375
375
  } | Promise<{
376
376
  [x: string]: any;
377
377
  }>);
378
- withCredentials: boolean;
379
378
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
379
+ withCredentials: boolean;
380
380
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
381
381
  name: string;
382
382
  drag: boolean;
@@ -597,8 +597,8 @@ export declare const GmUpload: import("../../../../utils").SFCWithInstall<{
597
597
  } | Promise<{
598
598
  [x: string]: any;
599
599
  }>);
600
- withCredentials: boolean;
601
600
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
601
+ withCredentials: boolean;
602
602
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
603
603
  name: string;
604
604
  drag: boolean;
@@ -818,8 +818,8 @@ export declare const GmUpload: import("../../../../utils").SFCWithInstall<{
818
818
  } | Promise<{
819
819
  [x: string]: any;
820
820
  }>);
821
- withCredentials: boolean;
822
821
  onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
822
+ withCredentials: boolean;
823
823
  onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
824
824
  name: string;
825
825
  drag: boolean;