yahee-components 0.0.28 → 0.0.30

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 (274) hide show
  1. package/es/_virtual/dayjs.min.js +1 -1
  2. package/es/_virtual/lodash.js +1 -1
  3. package/es/api/server.js +1 -1
  4. package/es/api/tool.js +1 -1
  5. package/es/complex-search/complex-search.vue.js +159 -133
  6. package/es/complex-search/props.js +18 -0
  7. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +6 -6
  8. package/es/country-platform-shop-condition/style/index.css +13 -2
  9. package/es/drop-down-condition/drop-down-condition.vue.js +176 -170
  10. package/es/drop-down-condition/style/index.css +14 -10
  11. package/es/index.js +14 -12
  12. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/Axios.js +51 -48
  13. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/mergeConfig.js +20 -20
  14. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/env/data.js +1 -1
  15. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +23 -0
  16. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  17. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +54 -0
  18. package/es/{packages/components → node_modules/.pnpm/dayjs@1.11.13}/node_modules/dayjs/dayjs.min.js +1 -1
  19. package/es/{packages/components → node_modules/.pnpm/lodash@4.17.21}/node_modules/lodash/lodash.js +2 -2
  20. package/es/{packages/components → node_modules/.pnpm/v3-infinite-loading@1.3.2}/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +1 -1
  21. package/es/operation-log/operation-log.vue.js +2 -2
  22. package/es/packages/components/api/log-server.js +1 -1
  23. package/es/packages/components/api/server.js +1 -1
  24. package/es/packages/components/api/tool.js +1 -1
  25. package/es/packages/components/api/upload-server.js +1 -1
  26. package/es/packages/components/hooks/useImg.js +1 -1
  27. package/es/style.css +27 -45
  28. package/es/styles/index.css +0 -33
  29. package/es/utils/translate.js +1 -1
  30. package/lib/country-platform-shop-condition/style/index.css +13 -2
  31. package/lib/drop-down-condition/style/index.css +14 -10
  32. package/lib/style.css +27 -45
  33. package/lib/styles/index.css +0 -33
  34. package/package.json +1 -1
  35. package/readme.md +249 -0
  36. package/types/hooks/useClipboard.d.ts +7 -0
  37. package/types/hooks/useImg.d.ts +10 -0
  38. package/types/hooks/useImgPath.d.ts +5 -0
  39. package/types/hooks/useImport.d.ts +11 -0
  40. package/types/hooks/useUpload.d.ts +12 -0
  41. package/types/index.d.ts +6 -1341
  42. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  43. package/types/src/annex-upload/annex-upload.vue.d.ts +451 -0
  44. package/types/src/annex-upload/index.d.ts +118 -0
  45. package/types/src/annex-upload/mimeType.d.ts +2 -0
  46. package/types/src/api/server.d.ts +6 -0
  47. package/types/src/api/tool.d.ts +6 -0
  48. package/types/src/api/types.d.ts +17 -0
  49. package/types/src/complex-search/complex-search.d.ts +24 -0
  50. package/types/src/complex-search/complex-search.vue.d.ts +20 -0
  51. package/types/src/complex-search/index.d.ts +24 -0
  52. package/types/src/complex-search/props.d.ts +65 -0
  53. package/types/src/components.d.ts +10 -0
  54. package/types/src/copy/copy.d.ts +12 -0
  55. package/types/src/copy/copy.vue.d.ts +22 -0
  56. package/types/src/copy/index.d.ts +32 -0
  57. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  58. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +12 -0
  59. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  60. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  61. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +26 -0
  62. package/types/src/drop-down-condition/index.d.ts +42 -0
  63. package/types/src/image-upload/image-upload.d.ts +26 -0
  64. package/types/src/image-upload/image-upload.vue.d.ts +44 -0
  65. package/types/src/image-upload/index.d.ts +91 -0
  66. package/types/src/index.d.ts +7 -0
  67. package/types/src/input/index.d.ts +16 -0
  68. package/types/src/input/input.d.ts +18 -0
  69. package/types/src/input/input.vue.d.ts +14 -0
  70. package/types/src/installs.d.ts +523 -0
  71. package/types/src/left-condition/index.d.ts +69 -0
  72. package/types/src/left-condition/left-condition-sub.vue.d.ts +41 -0
  73. package/types/src/left-condition/left-condition.d.ts +5 -0
  74. package/types/src/left-condition/left-condition.vue.d.ts +50 -0
  75. package/types/src/left-condition-enum/index.d.ts +161 -0
  76. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  77. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +159 -0
  78. package/types/src/operation-log/index.d.ts +9 -0
  79. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  80. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  81. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  82. package/types/src/operation-log/operation-log.d.ts +11 -0
  83. package/types/src/operation-log/operation-log.vue.d.ts +6 -0
  84. package/types/src/shared/hello.d.ts +1 -0
  85. package/types/src/shared/index.d.ts +2 -0
  86. package/types/src/shared/typeCheck.d.ts +2 -0
  87. package/types/src/shared/types/InferVueDefaults.d.ts +7 -0
  88. package/types/src/shared/types/index.d.ts +1 -0
  89. package/types/src/static/CommonObject.d.ts +18 -0
  90. package/types/src/static/CommonVariables.d.ts +4 -0
  91. package/types/src/utils/config.d.ts +8 -0
  92. package/types/src/utils/const.d.ts +19 -0
  93. package/types/src/utils/functions.d.ts +1 -0
  94. package/types/src/utils/infer-vue-defaults.d.ts +7 -0
  95. package/types/src/utils/install.d.ts +8 -0
  96. package/types/src/utils/storage.d.ts +18 -0
  97. package/types/src/utils/style.d.ts +19 -0
  98. package/types/src/utils/to-kebab-case.d.ts +1 -0
  99. package/types/src/utils/translate.d.ts +5 -0
  100. package/types/src/utils/typescript.d.ts +5 -0
  101. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -19
  102. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -37
  103. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -51
  104. package/lib/_virtual/_commonjsHelpers.js +0 -1
  105. package/lib/_virtual/dayjs.min.js +0 -1
  106. package/lib/_virtual/dayjs.min2.js +0 -1
  107. package/lib/_virtual/lodash.js +0 -1
  108. package/lib/_virtual/lodash2.js +0 -1
  109. package/lib/annex-upload/annex-upload.vue.js +0 -1
  110. package/lib/annex-upload/annex-upload.vue2.js +0 -1
  111. package/lib/annex-upload/index.js +0 -1
  112. package/lib/annex-upload/mimeType.js +0 -1
  113. package/lib/api/server.js +0 -1
  114. package/lib/api/tool.js +0 -1
  115. package/lib/complex-search/complex-search.vue.js +0 -1
  116. package/lib/complex-search/complex-search.vue2.js +0 -1
  117. package/lib/complex-search/index.js +0 -1
  118. package/lib/copy/copy.vue.js +0 -1
  119. package/lib/copy/copy.vue2.js +0 -1
  120. package/lib/copy/index.js +0 -1
  121. package/lib/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -1
  122. package/lib/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -1
  123. package/lib/country-platform-shop-condition/index.js +0 -1
  124. package/lib/drop-down-condition/drop-down-condition.vue.js +0 -1
  125. package/lib/drop-down-condition/drop-down-condition.vue2.js +0 -1
  126. package/lib/drop-down-condition/index.js +0 -1
  127. package/lib/image-upload/image-upload.vue.js +0 -1
  128. package/lib/image-upload/image-upload.vue2.js +0 -1
  129. package/lib/image-upload/index.js +0 -1
  130. package/lib/index.js +0 -1
  131. package/lib/input/index.js +0 -1
  132. package/lib/input/input.vue.js +0 -1
  133. package/lib/input/input.vue2.js +0 -1
  134. package/lib/installs.js +0 -1
  135. package/lib/left-condition/index.js +0 -1
  136. package/lib/left-condition/left-condition-sub.vue.js +0 -1
  137. package/lib/left-condition/left-condition-sub.vue2.js +0 -1
  138. package/lib/left-condition/left-condition.vue.js +0 -1
  139. package/lib/left-condition/left-condition.vue2.js +0 -1
  140. package/lib/left-condition-enum/index.js +0 -1
  141. package/lib/left-condition-enum/left-condition-enum.vue.js +0 -1
  142. package/lib/left-condition-enum/left-condition-enum.vue2.js +0 -1
  143. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +0 -1
  144. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +0 -3
  145. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +0 -1
  146. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +0 -1
  147. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +0 -1
  148. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +0 -1
  149. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +0 -1
  150. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +0 -1
  151. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +0 -2
  152. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +0 -1
  153. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +0 -2
  154. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +0 -1
  155. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +0 -1
  156. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +0 -1
  157. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +0 -1
  158. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +0 -1
  159. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +0 -1
  160. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +0 -1
  161. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +0 -1
  162. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +0 -1
  163. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -1
  164. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -1
  165. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +0 -1
  166. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -1
  167. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +0 -1
  168. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +0 -1
  169. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +0 -1
  170. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +0 -1
  171. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
  172. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +0 -1
  173. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -1
  174. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +0 -1
  175. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +0 -2
  176. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +0 -1
  177. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +0 -1
  178. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +0 -1
  179. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +0 -1
  180. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +0 -1
  181. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +0 -1
  182. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +0 -1
  183. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -1
  184. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +0 -1
  185. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -1
  186. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -1
  187. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -1
  188. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -1
  189. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +0 -1
  190. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +0 -1
  191. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +0 -1
  192. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +0 -1
  193. package/lib/operation-log/index.js +0 -1
  194. package/lib/operation-log/operation-log-content.vue.js +0 -1
  195. package/lib/operation-log/operation-log-content.vue2.js +0 -1
  196. package/lib/operation-log/operation-log-dialog.vue.js +0 -1
  197. package/lib/operation-log/operation-log-dialog.vue2.js +0 -1
  198. package/lib/operation-log/operation-log-form.vue.js +0 -1
  199. package/lib/operation-log/operation-log-form.vue2.js +0 -1
  200. package/lib/operation-log/operation-log.vue.js +0 -1
  201. package/lib/operation-log/operation-log.vue2.js +0 -1
  202. package/lib/packages/components/api/log/index.js +0 -1
  203. package/lib/packages/components/api/log-server.js +0 -1
  204. package/lib/packages/components/api/server.js +0 -1
  205. package/lib/packages/components/api/tool.js +0 -1
  206. package/lib/packages/components/api/upload-server.js +0 -1
  207. package/lib/packages/components/assets/images/errorimg.png.js +0 -1
  208. package/lib/packages/components/assets/images/excel.png.js +0 -1
  209. package/lib/packages/components/assets/images/file-word.png.js +0 -1
  210. package/lib/packages/components/assets/images/pdf.png.js +0 -1
  211. package/lib/packages/components/assets/images/ppt.png.js +0 -1
  212. package/lib/packages/components/assets/images/vue.svg.js +0 -1
  213. package/lib/packages/components/hooks/useClipboard.js +0 -1
  214. package/lib/packages/components/hooks/useImg.js +0 -1
  215. package/lib/packages/components/hooks/useImgPath.js +0 -1
  216. package/lib/packages/components/hooks/useImport.js +0 -1
  217. package/lib/packages/components/hooks/useUpload.js +0 -1
  218. package/lib/packages/components/node_modules/dayjs/dayjs.min.js +0 -1
  219. package/lib/packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  220. package/lib/packages/components/node_modules/lodash/lodash.js +0 -27
  221. package/lib/packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -1
  222. package/lib/static/CommonObject.js +0 -1
  223. package/lib/utils/config.js +0 -1
  224. package/lib/utils/const.js +0 -1
  225. package/lib/utils/install.js +0 -1
  226. package/lib/utils/storage.js +0 -1
  227. package/lib/utils/style.js +0 -1
  228. package/lib/utils/translate.js +0 -1
  229. package/lib/yahee-components.css +0 -1
  230. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/index.js +0 -0
  231. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/adapters.js +0 -0
  232. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/fetch.js +0 -0
  233. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/xhr.js +0 -0
  234. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/axios.js +0 -0
  235. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CancelToken.js +0 -0
  236. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CanceledError.js +0 -0
  237. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/isCancel.js +0 -0
  238. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosError.js +0 -0
  239. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosHeaders.js +0 -0
  240. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/InterceptorManager.js +0 -0
  241. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/buildFullPath.js +0 -0
  242. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/dispatchRequest.js +0 -0
  243. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/settle.js +0 -0
  244. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/transformData.js +0 -0
  245. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/index.js +0 -0
  246. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/transitional.js +0 -0
  247. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -0
  248. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -0
  249. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/bind.js +0 -0
  250. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/combineURLs.js +0 -0
  251. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/composeSignals.js +0 -0
  252. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/cookies.js +0 -0
  253. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/formDataToJSON.js +0 -0
  254. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -0
  255. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAxiosError.js +0 -0
  256. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/null.js +0 -0
  257. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseHeaders.js +0 -0
  258. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseProtocol.js +0 -0
  259. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/progressEventReducer.js +0 -0
  260. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/resolveConfig.js +0 -0
  261. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/speedometer.js +0 -0
  262. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/spread.js +0 -0
  263. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/throttle.js +0 -0
  264. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toFormData.js +0 -0
  265. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -0
  266. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/trackStream.js +0 -0
  267. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -0
  268. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -0
  269. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -0
  270. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/index.js +0 -0
  271. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/common/utils.js +0 -0
  272. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/index.js +0 -0
  273. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/utils.js +0 -0
  274. /package/es/{packages/components → node_modules/.pnpm/element-plus@2.9.1_vue@3.5.13_typescript@5.7.2_}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
@@ -1,9 +1,18 @@
1
- import { defineComponent as ce, ref as y, reactive as V, toRefs as re, watch as ie, onMounted as de, resolveComponent as w, openBlock as a, createElementBlock as v, createVNode as G, normalizeStyle as K, withCtx as f, createTextVNode as b, toDisplayString as p, unref as i, createCommentVNode as F, createElementVNode as S, Fragment as C, renderList as $, createBlock as x } from "vue";
2
- import u from "../_virtual/lodash.js";
3
- import { stylesUtils as M } from "../utils/style.js";
4
- import { storage as H } from "../utils/storage.js";
5
- import { M2 as k } from "../utils/translate.js";
6
- const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style: { display: "flex", "align-items": "center", outline: "none" } }, he = { key: 0 }, ge = { style: { display: "flex", width: "auto", padding: "10px" } }, me = ["onClick"], ye = { class: "scrollable-container" }, xe = { key: 0 }, Ee = /* @__PURE__ */ ce({
1
+ import { defineComponent as se, ref as m, reactive as _, toRefs as ae, watch as ce, onMounted as re, openBlock as a, createElementBlock as i, createVNode as W, unref as u, normalizeStyle as R, withCtx as d, createTextVNode as k, toDisplayString as v, createCommentVNode as N, createElementVNode as E, Fragment as b, renderList as z, createBlock as g } from "vue";
2
+ import s from "../_virtual/lodash.js";
3
+ import { stylesUtils as U } from "../utils/style.js";
4
+ import { storage as G } from "../utils/storage.js";
5
+ import { M2 as y } from "../utils/translate.js";
6
+ import { ElButton as P, ElDropdown as ie, ElCheckboxGroup as Y, ElCheckbox as j } from "element-plus";
7
+ import "element-plus/theme-chalk/src/base.scss";
8
+ import "element-plus/theme-chalk/src/button.scss";
9
+ import "element-plus/theme-chalk/src/checkbox.scss";
10
+ import "element-plus/theme-chalk/src/checkbox-group.scss";
11
+ import "element-plus/theme-chalk/src/button-group.scss";
12
+ import "element-plus/theme-chalk/src/popper.scss";
13
+ import "element-plus/theme-chalk/src/scrollbar.scss";
14
+ import "element-plus/theme-chalk/src/dropdown.scss";
15
+ const de = { class: "yahee-drop-down-condition" }, ve = { key: 0 }, fe = { style: { display: "flex", "align-items": "center", outline: "none" } }, pe = { key: 0 }, he = { style: { display: "flex", width: "auto", padding: "10px" } }, me = ["onClick"], ge = { class: "scrollable-container" }, ye = { key: 0 }, Ae = /* @__PURE__ */ se({
7
16
  name: "YaheeDropDownCondition",
8
17
  __name: "drop-down-condition",
9
18
  props: {
@@ -17,203 +26,200 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
17
26
  initFilters: { type: Function }
18
27
  },
19
28
  emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
20
- setup(J, { emit: Q }) {
21
- const X = y(), o = V({});
22
- let O = V({});
23
- const d = V({}), h = V({}), g = y(!0), _ = J, T = Q, { filterKey: L, filterList: q, totalCount: N, level1Count: B, level2Count: A, noNeedRefreshNumFilterName: I } = re(_), W = y(u.get(N, "value", 0)), D = y(u.get(B, "value", [])), R = y(u.get(A, "value", [])), r = y();
24
- q.value && (r.value = [...q.value]);
25
- function P(e) {
26
- const { text: l, value: s } = e, n = o[l];
27
- u.isNil(n) || u.isEmpty(n) ? o[l] = [s] : o[l] = [], h[l] = !h[l], h[l] ? (ne(l), d[l] = M.getBackgroundColor(!0), g.value = !1) : (se(l), d[e.text] = {}, g.value = !0), g.value = z(), U();
29
+ setup(H, { emit: J }) {
30
+ const Q = m(), n = _({});
31
+ let K = _({});
32
+ const r = _({}), p = _({}), h = m(!0), x = H, $ = J, { filterKey: V, filterList: M, totalCount: C, level1Count: w, level2Count: F, noNeedRefreshNumFilterName: O } = ae(x), T = m(s.get(C, "value", 0)), S = m(s.get(w, "value", [])), B = m(s.get(F, "value", [])), c = m();
33
+ M.value && (c.value = [...M.value]);
34
+ function q(t) {
35
+ const { text: o, value: e } = t, l = n[o];
36
+ s.isNil(l) || s.isEmpty(l) ? n[o] = [e] : n[o] = [], p[o] = !p[o], p[o] ? (oe(o), r[o] = U.getBackgroundColor(!0), h.value = !1) : (ne(o), r[t.text] = {}, h.value = !0), h.value = L(), D();
28
37
  }
29
- function z() {
30
- const e = r.value.filter((n) => !u.isEmpty(n.subs)).flatMap((n) => n.subs).length, l = r.value.filter((n) => u.isEmpty(n.subs)).length;
31
- return Object.values(o).map((n) => n.length).reduce((n, m) => n + m, 0) === e + l || u.isEmpty(Object.values(o).flat());
38
+ function L() {
39
+ const t = c.value.filter((l) => !s.isEmpty(l.subs)).flatMap((l) => l.subs).length, o = c.value.filter((l) => s.isEmpty(l.subs)).length;
40
+ return Object.values(n).map((l) => l.length).reduce((l, f) => l + f, 0) === t + o || s.isEmpty(Object.values(n).flat());
32
41
  }
33
- function Z(e) {
34
- u.isEmpty(o[e.text]) ? (d[e.text] = {}, h[e.text] = !1) : o[e.text].length === u.get(e, "subs.length", 1) ? (d[e.text] = M.getBackgroundColor(!0), h[e.text] = !0) : d[e.text] = {
42
+ function X(t) {
43
+ s.isEmpty(n[t.text]) ? (r[t.text] = {}, p[t.text] = !1) : n[t.text].length === s.get(t, "subs.length", 1) ? (r[t.text] = U.getBackgroundColor(!0), p[t.text] = !0) : r[t.text] = {
35
44
  backgroundColor: "#0F7535",
36
45
  color: "#fff",
37
46
  borderColor: "#0F7535"
38
- }, g.value = z(), U();
47
+ }, h.value = L(), D();
39
48
  }
40
- function ee() {
41
- g.value = z(), U();
49
+ function Z() {
50
+ h.value = L(), D();
42
51
  }
43
- function U() {
44
- T("setNoNeedRefreshNumFilterName", L.value);
52
+ function D() {
53
+ $("setNoNeedRefreshNumFilterName", V.value);
45
54
  }
46
- function te() {
47
- g.value = !0;
48
- for (const e in d)
49
- d[e] = {};
50
- for (const e in o)
51
- delete o[e];
52
- for (const e in h)
53
- delete h[e];
54
- Y();
55
+ function ee() {
56
+ h.value = !0;
57
+ for (const t in r)
58
+ r[t] = {};
59
+ for (const t in n)
60
+ delete n[t];
61
+ for (const t in p)
62
+ delete p[t];
63
+ I();
55
64
  }
56
- const le = (e) => M.getBackgroundColor(e);
57
- function oe(e) {
58
- if (e)
59
- O = u.cloneDeep(o);
65
+ const te = (t) => U.getBackgroundColor(t);
66
+ function le(t) {
67
+ if (t)
68
+ K = s.cloneDeep(n);
60
69
  else {
61
- if (u.isEqual(O, o))
70
+ if (s.isEqual(K, n))
62
71
  return;
63
- Y();
72
+ I();
64
73
  }
65
74
  }
66
- function Y() {
67
- T("filterChange", [
75
+ function I() {
76
+ $("filterChange", [
68
77
  {
69
- filterKey: L.value,
70
- checkedValues: Object.values(o).flat()
78
+ filterKey: V.value,
79
+ checkedValues: Object.values(n).flat()
71
80
  }
72
81
  ]);
73
82
  }
74
- function ne(e) {
75
- const l = r.value.find((s) => s.text === e);
76
- l && l.subs && (o[e] = l.subs.map((s) => s.value));
83
+ function oe(t) {
84
+ const o = c.value.find((e) => e.text === t);
85
+ o && o.subs && (n[t] = o.subs.map((e) => e.value));
77
86
  }
78
- function se(e) {
79
- o[e] = [];
87
+ function ne(t) {
88
+ n[t] = [];
80
89
  }
81
90
  function ue() {
82
- const e = `filter-key-${_.enumEntity}`, l = H.getWithExpireTime(e);
83
- l ? r.value = l : (console.log(_.enumEntity), _.initFilters(_.enumEntity).then((s) => {
84
- console.log(s), r.value = s.data, H.setWithExpireTime(e, r.value, 1200 * 1e3), console.log(r.value);
85
- }).catch((s) => {
86
- console.log(s);
91
+ const t = `filter-key-${x.enumEntity}`, o = G.getWithExpireTime(t);
92
+ o ? c.value = o : (console.log(x.enumEntity), x.initFilters(x.enumEntity).then((e) => {
93
+ console.log(e), c.value = e.data, G.setWithExpireTime(t, c.value, 1200 * 1e3), console.log(c.value);
94
+ }).catch((e) => {
95
+ console.log(e);
87
96
  }));
88
97
  }
89
- return ie(
90
- [() => N.value, () => B.value, () => A.value],
91
- ([e, l, s], [n, m, j]) => {
92
- console.log(e, l, s), console.log(n, m, j), (!I.value || !u.eq(I.value, L.value)) && (W.value = N.value, D.value = B.value, R.value = A.value);
98
+ return ce(
99
+ [() => C.value, () => w.value, () => F.value],
100
+ ([t, o, e], [l, f, A]) => {
101
+ console.log(t, o, e), console.log(l, f, A), (!O.value || !s.eq(O.value, V.value)) && (T.value = C.value, S.value = w.value, B.value = F.value);
93
102
  }
94
- ), de(() => {
103
+ ), re(() => {
95
104
  ue();
96
- }), (e, l) => {
97
- const s = w("el-button"), n = w("el-checkbox"), m = w("el-checkbox-group"), j = w("el-dropdown");
98
- return a(), v("div", ve, [
99
- G(s, {
100
- size: "small",
101
- class: "el-button custom-total-button",
102
- style: K(le(g.value)),
103
- onClick: te
104
- }, {
105
- default: f(() => [
106
- b(p(i(k)("全部")) + " ", 1),
107
- i(N) ? (a(), v("span", fe, "(" + p(W.value) + ")", 1)) : F("", !0)
108
- ]),
109
- _: 1
110
- }, 8, ["style"]),
111
- G(j, {
112
- ref_key: "dropdown1",
113
- ref: X,
114
- "popper-class": "custom-dropdown",
115
- onVisibleChange: oe
116
- }, {
117
- dropdown: f(() => [
118
- S("div", ge, [
119
- (a(!0), v(C, null, $(r.value, (t) => (a(), x(m, {
120
- key: t.value,
121
- modelValue: o[t.text],
122
- "onUpdate:modelValue": (c) => o[t.text] = c,
105
+ }), (t, o) => (a(), i("div", de, [
106
+ W(u(P), {
107
+ size: "small",
108
+ class: "el-button el-button--small custom-total-button",
109
+ style: R(te(h.value)),
110
+ onClick: ee
111
+ }, {
112
+ default: d(() => [
113
+ k(v(u(y)("全部")) + " ", 1),
114
+ u(C) ? (a(), i("span", ve, "(" + v(T.value) + ")", 1)) : N("", !0)
115
+ ]),
116
+ _: 1
117
+ }, 8, ["style"]),
118
+ W(u(ie), {
119
+ ref_key: "dropdown1",
120
+ ref: Q,
121
+ "popper-class": "custom-dropdown",
122
+ onVisibleChange: le
123
+ }, {
124
+ dropdown: d(() => [
125
+ E("div", he, [
126
+ (a(!0), i(b, null, z(c.value, (e) => (a(), g(u(Y), {
127
+ key: e.value,
128
+ modelValue: n[e.text],
129
+ "onUpdate:modelValue": (l) => n[e.text] = l,
130
+ size: "small",
131
+ class: "checkbox-group inner-checkbox-group",
132
+ onChange: (l) => X(e)
133
+ }, {
134
+ default: d(() => [
135
+ u(s).isNil(e.subs) ? (a(), g(u(j), {
136
+ key: 1,
137
+ value: e.value,
138
+ class: "checkbox custom-button",
139
+ border: ""
140
+ }, {
141
+ default: d(() => [
142
+ k(v(u(y)(e.text)), 1)
143
+ ]),
144
+ _: 2
145
+ }, 1032, ["value"])) : (a(), i(b, { key: 0 }, [
146
+ E("span", {
147
+ class: "el-button custom-button el-button--small inner-el-button",
148
+ style: R(r[e.text]),
149
+ onClick: (l) => q(e)
150
+ }, v(u(y)(e.text)), 13, me),
151
+ E("div", ge, [
152
+ (a(!0), i(b, null, z(e.subs, (l) => (a(), g(u(j), {
153
+ key: l.value,
154
+ class: "checkbox custom-button",
155
+ value: l.value,
156
+ border: ""
157
+ }, {
158
+ default: d(() => {
159
+ var f;
160
+ return [
161
+ k(v(u(y)(l.text)), 1),
162
+ u(s).isEmpty(B.value) ? N("", !0) : (a(), i("span", ye, "(" + v((f = B.value.filter((A) => A.value == l.value)[0]) == null ? void 0 : f.count) + ")", 1))
163
+ ];
164
+ }),
165
+ _: 2
166
+ }, 1032, ["value"]))), 128))
167
+ ])
168
+ ], 64))
169
+ ]),
170
+ _: 2
171
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))), 128))
172
+ ])
173
+ ]),
174
+ default: d(() => [
175
+ E("div", fe, [
176
+ (a(!0), i(b, null, z(c.value, (e) => (a(), i(b, null, [
177
+ e.isCheckbox ? (a(), g(u(Y), {
178
+ key: e.value,
179
+ modelValue: n[e.text],
180
+ "onUpdate:modelValue": (l) => n[e.text] = l,
181
+ class: "checkbox-group",
123
182
  size: "small",
124
- class: "checkbox-group inner-checkbox-group",
125
- onChange: (c) => Z(t)
183
+ onChange: Z
126
184
  }, {
127
- default: f(() => [
128
- i(u).isNil(t.subs) ? (a(), x(n, {
129
- key: 1,
130
- value: t.value,
131
- class: "checkbox custom-button",
185
+ default: d(() => [
186
+ e.isCheckbox ? (a(), g(u(j), {
187
+ key: 0,
188
+ class: "custom-button",
189
+ value: e.value,
132
190
  border: ""
133
191
  }, {
134
- default: f(() => [
135
- b(p(i(k)(t.text)), 1)
192
+ default: d(() => [
193
+ k(v(u(y)(e.text)), 1)
136
194
  ]),
137
195
  _: 2
138
- }, 1032, ["value"])) : (a(), v(C, { key: 0 }, [
139
- S("span", {
140
- class: "el-button custom-button el-button--small inner-el-button",
141
- style: K(d[t.text]),
142
- onClick: (c) => P(t)
143
- }, p(i(k)(t.text)), 13, me),
144
- S("div", ye, [
145
- (a(!0), v(C, null, $(t.subs, (c) => (a(), x(n, {
146
- key: c.value,
147
- class: "checkbox custom-button",
148
- value: c.value,
149
- border: ""
150
- }, {
151
- default: f(() => {
152
- var E;
153
- return [
154
- b(p(i(k)(c.text)), 1),
155
- i(u).isEmpty(R.value) ? F("", !0) : (a(), v("span", xe, "(" + p((E = R.value.filter((ae) => ae.value == c.value)[0]) == null ? void 0 : E.count) + ")", 1))
156
- ];
157
- }),
158
- _: 2
159
- }, 1032, ["value"]))), 128))
160
- ])
161
- ], 64))
196
+ }, 1032, ["value"])) : N("", !0)
162
197
  ]),
163
198
  _: 2
164
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))), 128))
165
- ])
166
- ]),
167
- default: f(() => [
168
- S("div", pe, [
169
- (a(!0), v(C, null, $(r.value, (t) => (a(), v(C, null, [
170
- t.isCheckbox ? (a(), x(m, {
171
- key: t.value,
172
- modelValue: o[t.text],
173
- "onUpdate:modelValue": (c) => o[t.text] = c,
174
- class: "checkbox-group",
175
- size: "small",
176
- onChange: ee
177
- }, {
178
- default: f(() => [
179
- t.isCheckbox ? (a(), x(n, {
180
- key: 0,
181
- class: "custom-button",
182
- value: t.value,
183
- border: ""
184
- }, {
185
- default: f(() => [
186
- b(p(i(k)(t.text)), 1)
187
- ]),
188
- _: 2
189
- }, 1032, ["value"])) : F("", !0)
190
- ]),
191
- _: 2
192
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : (a(), x(s, {
193
- key: t.text,
194
- style: K(d[t.text]),
195
- class: "custom-button",
196
- size: "small",
197
- onClick: (c) => P(t)
198
- }, {
199
- default: f(() => {
200
- var c;
201
- return [
202
- b(p(i(k)(t.text)), 1),
203
- i(u).isEmpty(D.value) ? F("", !0) : (a(), v("span", he, "(" + p((c = D.value.filter((E) => E.value == t.value)[0]) == null ? void 0 : c.count) + ")", 1))
204
- ];
205
- }),
206
- _: 2
207
- }, 1032, ["style", "onClick"]))
208
- ], 64))), 256))
209
- ])
210
- ]),
211
- _: 1
212
- }, 512)
213
- ]);
214
- };
199
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : (a(), g(u(P), {
200
+ key: e.text,
201
+ style: R(r[e.text]),
202
+ class: "custom-button",
203
+ size: "small",
204
+ onClick: (l) => q(e)
205
+ }, {
206
+ default: d(() => {
207
+ var l;
208
+ return [
209
+ k(v(u(y)(e.text)), 1),
210
+ u(s).isEmpty(S.value) ? N("", !0) : (a(), i("span", pe, "(" + v((l = S.value.filter((f) => f.value == e.value)[0]) == null ? void 0 : l.count) + ")", 1))
211
+ ];
212
+ }),
213
+ _: 2
214
+ }, 1032, ["style", "onClick"]))
215
+ ], 64))), 256))
216
+ ])
217
+ ]),
218
+ _: 1
219
+ }, 512)
220
+ ]));
215
221
  }
216
222
  });
217
223
  export {
218
- Ee as default
224
+ Ae as default
219
225
  };
@@ -11,16 +11,6 @@
11
11
  padding: 1px 4px;
12
12
  height: 22px;
13
13
  }
14
- .yahee-drop-down-condition .custom-button {
15
- margin-right: 0;
16
- padding: 1px 4px;
17
- min-height: 22px;
18
- height: 22px;
19
- margin-left: 5px;
20
- }
21
- .yahee-drop-down-condition .custom-button.inner-el-button {
22
- margin-top: 5px;
23
- }
24
14
  .yahee-drop-down-condition .checkbox-group {
25
15
  display: flex;
26
16
  flex-direction: column;
@@ -42,4 +32,18 @@
42
32
  border-radius: 10px;
43
33
  background: rgba(0, 0, 0, 0.1);
44
34
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
35
+ }
36
+
37
+ .custom-dropdown .checkbox {
38
+ margin-top: 5px;
39
+ }
40
+ .custom-dropdown .custom-button {
41
+ margin-right: 0;
42
+ padding: 1px 4px;
43
+ min-height: 22px;
44
+ height: 22px;
45
+ margin-left: 5px;
46
+ }
47
+ .custom-dropdown .custom-button.inner-el-button {
48
+ margin-top: 5px;
45
49
  }
package/es/index.js CHANGED
@@ -2,30 +2,32 @@ import { makeInstaller as e } from "./utils/install.js";
2
2
  import r from "./installs.js";
3
3
  import { config as t } from "./utils/config.js";
4
4
  import { YaheeInput as l } from "./input/index.js";
5
- import { YaheeComplexSearch as C } from "./complex-search/index.js";
5
+ import { YaheeComplexSearch as Y } from "./complex-search/index.js";
6
6
  import { YaheeCopy as s } from "./copy/index.js";
7
7
  import { YaheeImageUpload as c } from "./image-upload/index.js";
8
8
  import { YaheeAnnexUpload as I } from "./annex-upload/index.js";
9
- import { YaheeOperationLog as y } from "./operation-log/index.js";
10
- import { YaheeCountryPlatformShopCondition as S } from "./country-platform-shop-condition/index.js";
11
- import { YaheeLeftCondition as b } from "./left-condition/index.js";
12
- import { YaheeLeftConditionEnum as w } from "./left-condition-enum/index.js";
13
- import { YaheeDropDownCondition as E } from "./drop-down-condition/index.js";
9
+ import { YaheeOperationLog as S } from "./operation-log/index.js";
10
+ import { YaheeCountryPlatformShopCondition as D } from "./country-platform-shop-condition/index.js";
11
+ import { YaheeLeftCondition as U } from "./left-condition/index.js";
12
+ import { YaheeLeftConditionEnum as k } from "./left-condition-enum/index.js";
13
+ import { YaheeDropDownCondition as A } from "./drop-down-condition/index.js";
14
+ import { defaultComplexSearchProps as G } from "./complex-search/props.js";
14
15
  const { setConfig: n } = t(), m = e([...r]);
15
16
  function i(o) {
16
17
  n(o);
17
18
  }
18
19
  export {
19
20
  I as YaheeAnnexUpload,
20
- C as YaheeComplexSearch,
21
+ Y as YaheeComplexSearch,
21
22
  s as YaheeCopy,
22
- S as YaheeCountryPlatformShopCondition,
23
- E as YaheeDropDownCondition,
23
+ D as YaheeCountryPlatformShopCondition,
24
+ A as YaheeDropDownCondition,
24
25
  c as YaheeImageUpload,
25
26
  l as YaheeInput,
26
- b as YaheeLeftCondition,
27
- w as YaheeLeftConditionEnum,
28
- y as YaheeOperationLog,
27
+ U as YaheeLeftCondition,
28
+ k as YaheeLeftConditionEnum,
29
+ S as YaheeOperationLog,
29
30
  m as default,
31
+ G as defaultComplexSearchProps,
30
32
  i as useGlobalConfig
31
33
  };
@@ -1,13 +1,13 @@
1
1
  import d from "../utils.js";
2
- import R from "../helpers/buildURL.js";
2
+ import T from "../helpers/buildURL.js";
3
3
  import b from "./InterceptorManager.js";
4
- import S from "./dispatchRequest.js";
5
- import m from "./mergeConfig.js";
6
- import C from "./buildFullPath.js";
7
- import q from "../helpers/validator.js";
8
- import I from "./AxiosHeaders.js";
9
- const u = q.validators;
10
- class k {
4
+ import R from "./dispatchRequest.js";
5
+ import y from "./mergeConfig.js";
6
+ import P from "./buildFullPath.js";
7
+ import m from "../helpers/validator.js";
8
+ import C from "./AxiosHeaders.js";
9
+ const l = m.validators;
10
+ class E {
11
11
  constructor(t) {
12
12
  this.defaults = t, this.interceptors = {
13
13
  request: new b(),
@@ -27,8 +27,8 @@ class k {
27
27
  return await this._request(t, e);
28
28
  } catch (s) {
29
29
  if (s instanceof Error) {
30
- let n;
31
- Error.captureStackTrace ? Error.captureStackTrace(n = {}) : n = new Error();
30
+ let n = {};
31
+ Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
32
32
  const a = n.stack ? n.stack.replace(/^.+\n/, "") : "";
33
33
  try {
34
34
  s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
@@ -40,18 +40,21 @@ class k {
40
40
  }
41
41
  }
42
42
  _request(t, e) {
43
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = m(this.defaults, e);
43
+ typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = y(this.defaults, e);
44
44
  const { transitional: s, paramsSerializer: n, headers: a } = e;
45
- s !== void 0 && q.assertOptions(s, {
46
- silentJSONParsing: u.transitional(u.boolean),
47
- forcedJSONParsing: u.transitional(u.boolean),
48
- clarifyTimeoutError: u.transitional(u.boolean)
45
+ s !== void 0 && m.assertOptions(s, {
46
+ silentJSONParsing: l.transitional(l.boolean),
47
+ forcedJSONParsing: l.transitional(l.boolean),
48
+ clarifyTimeoutError: l.transitional(l.boolean)
49
49
  }, !1), n != null && (d.isFunction(n) ? e.paramsSerializer = {
50
50
  serialize: n
51
- } : q.assertOptions(n, {
52
- encode: u.function,
53
- serialize: u.function
54
- }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
51
+ } : m.assertOptions(n, {
52
+ encode: l.function,
53
+ serialize: l.function
54
+ }, !0)), m.assertOptions(e, {
55
+ baseUrl: l.spelling("baseURL"),
56
+ withXsrfToken: l.spelling("withXSRFToken")
57
+ }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
55
58
  let f = a && d.merge(
56
59
  a.common,
57
60
  a[e.method]
@@ -61,52 +64,52 @@ class k {
61
64
  (r) => {
62
65
  delete a[r];
63
66
  }
64
- ), e.headers = I.concat(f, a);
67
+ ), e.headers = C.concat(f, a);
65
68
  const h = [];
66
- let y = !0;
69
+ let k = !0;
67
70
  this.interceptors.request.forEach(function(i) {
68
- typeof i.runWhen == "function" && i.runWhen(e) === !1 || (y = y && i.synchronous, h.unshift(i.fulfilled, i.rejected));
71
+ typeof i.runWhen == "function" && i.runWhen(e) === !1 || (k = k && i.synchronous, h.unshift(i.fulfilled, i.rejected));
69
72
  });
70
- const p = [];
73
+ const c = [];
71
74
  this.interceptors.response.forEach(function(i) {
72
- p.push(i.fulfilled, i.rejected);
75
+ c.push(i.fulfilled, i.rejected);
73
76
  });
74
- let l, o = 0, c;
75
- if (!y) {
76
- const r = [S.bind(this), void 0];
77
- for (r.unshift.apply(r, h), r.push.apply(r, p), c = r.length, l = Promise.resolve(e); o < c; )
78
- l = l.then(r[o++], r[o++]);
79
- return l;
77
+ let u, o = 0, p;
78
+ if (!k) {
79
+ const r = [R.bind(this), void 0];
80
+ for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
81
+ u = u.then(r[o++], r[o++]);
82
+ return u;
80
83
  }
81
- c = h.length;
82
- let E = e;
83
- for (o = 0; o < c; ) {
84
+ p = h.length;
85
+ let w = e;
86
+ for (o = 0; o < p; ) {
84
87
  const r = h[o++], i = h[o++];
85
88
  try {
86
- E = r(E);
87
- } catch (P) {
88
- i.call(this, P);
89
+ w = r(w);
90
+ } catch (S) {
91
+ i.call(this, S);
89
92
  break;
90
93
  }
91
94
  }
92
95
  try {
93
- l = S.call(this, E);
96
+ u = R.call(this, w);
94
97
  } catch (r) {
95
98
  return Promise.reject(r);
96
99
  }
97
- for (o = 0, c = p.length; o < c; )
98
- l = l.then(p[o++], p[o++]);
99
- return l;
100
+ for (o = 0, p = c.length; o < p; )
101
+ u = u.then(c[o++], c[o++]);
102
+ return u;
100
103
  }
101
104
  getUri(t) {
102
- t = m(this.defaults, t);
103
- const e = C(t.baseURL, t.url);
104
- return R(e, t.params, t.paramsSerializer);
105
+ t = y(this.defaults, t);
106
+ const e = P(t.baseURL, t.url);
107
+ return T(e, t.params, t.paramsSerializer);
105
108
  }
106
109
  }
107
110
  d.forEach(["delete", "get", "head", "options"], function(t) {
108
- k.prototype[t] = function(e, s) {
109
- return this.request(m(s || {}, {
111
+ E.prototype[t] = function(e, s) {
112
+ return this.request(y(s || {}, {
110
113
  method: t,
111
114
  url: e,
112
115
  data: (s || {}).data
@@ -116,7 +119,7 @@ d.forEach(["delete", "get", "head", "options"], function(t) {
116
119
  d.forEach(["post", "put", "patch"], function(t) {
117
120
  function e(s) {
118
121
  return function(a, f, h) {
119
- return this.request(m(h || {}, {
122
+ return this.request(y(h || {}, {
120
123
  method: t,
121
124
  headers: s ? {
122
125
  "Content-Type": "multipart/form-data"
@@ -126,8 +129,8 @@ d.forEach(["post", "put", "patch"], function(t) {
126
129
  }));
127
130
  };
128
131
  }
129
- k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
132
+ E.prototype[t] = e(), E.prototype[t + "Form"] = e(!0);
130
133
  });
131
134
  export {
132
- k as default
135
+ E as default
133
136
  };