qidian-vue-ui 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +7 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.mjs +11 -0
  4. package/dist/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
  5. package/dist/_virtual/dayjs.min.mjs +8 -0
  6. package/dist/_virtual/dayjs.min.mjs.map +1 -0
  7. package/dist/_virtual/dayjs.min2.mjs +5 -0
  8. package/dist/_virtual/dayjs.min2.mjs.map +1 -0
  9. package/dist/components/auto-tooltip/index.d.ts +2 -0
  10. package/dist/components/auto-tooltip/index.vue.d.ts +25 -0
  11. package/dist/components/auto-tooltip/index.vue.mjs +8 -0
  12. package/dist/components/auto-tooltip/index.vue.mjs.map +1 -0
  13. package/dist/components/auto-tooltip/index.vue2.mjs +81 -0
  14. package/dist/components/auto-tooltip/index.vue2.mjs.map +1 -0
  15. package/dist/components/auto-tooltip/types.d.ts +9 -0
  16. package/dist/components/avatar/index.d.ts +2 -0
  17. package/dist/components/avatar/index.vue.d.ts +17 -0
  18. package/dist/components/avatar/index.vue.mjs +8 -0
  19. package/dist/components/avatar/index.vue.mjs.map +1 -0
  20. package/dist/components/avatar/index.vue2.mjs +119 -0
  21. package/dist/components/avatar/index.vue2.mjs.map +1 -0
  22. package/dist/components/avatar/props.d.ts +8 -0
  23. package/dist/components/avatar/props.mjs +15 -0
  24. package/dist/components/avatar/props.mjs.map +1 -0
  25. package/dist/components/avatar/types.d.ts +9 -0
  26. package/dist/components/card/index.d.ts +2 -0
  27. package/dist/components/card/index.vue.d.ts +15 -0
  28. package/dist/components/card/index.vue.mjs +8 -0
  29. package/dist/components/card/index.vue.mjs.map +1 -0
  30. package/dist/components/card/index.vue2.mjs +89 -0
  31. package/dist/components/card/index.vue2.mjs.map +1 -0
  32. package/dist/components/card/props.d.ts +3 -0
  33. package/dist/components/card/props.mjs +7 -0
  34. package/dist/components/card/props.mjs.map +1 -0
  35. package/dist/components/card/types.d.ts +4 -0
  36. package/dist/components/config-provider/config.d.ts +8 -0
  37. package/dist/components/config-provider/config.mjs +15 -0
  38. package/dist/components/config-provider/config.mjs.map +1 -0
  39. package/dist/components/config-provider/index.d.ts +217 -0
  40. package/dist/components/config-provider/index.mjs +98 -0
  41. package/dist/components/config-provider/index.mjs.map +1 -0
  42. package/dist/components/config-provider/types.d.ts +82 -0
  43. package/dist/components/config-provider/useConfig.d.ts +241 -0
  44. package/dist/components/config-provider/useConfig.mjs +26 -0
  45. package/dist/components/config-provider/useConfig.mjs.map +1 -0
  46. package/dist/components/config-renderer/compute.d.ts +8 -0
  47. package/dist/components/config-renderer/compute.mjs +68 -0
  48. package/dist/components/config-renderer/compute.mjs.map +1 -0
  49. package/dist/components/config-renderer/index.d.ts +4 -0
  50. package/dist/components/config-renderer/index.vue.d.ts +7 -0
  51. package/dist/components/config-renderer/index.vue.mjs +126 -0
  52. package/dist/components/config-renderer/index.vue.mjs.map +1 -0
  53. package/dist/components/config-renderer/index.vue2.mjs +5 -0
  54. package/dist/components/config-renderer/index.vue2.mjs.map +1 -0
  55. package/dist/components/config-renderer/types.d.ts +39 -0
  56. package/dist/components/config-renderer/utils.d.ts +15 -0
  57. package/dist/components/config-renderer/utils.mjs +49 -0
  58. package/dist/components/config-renderer/utils.mjs.map +1 -0
  59. package/dist/components/crud/define.d.ts +5 -0
  60. package/dist/components/crud/define.mjs +11 -0
  61. package/dist/components/crud/define.mjs.map +1 -0
  62. package/dist/components/crud/index.d.ts +5 -0
  63. package/dist/components/crud/list.vue.d.ts +29 -0
  64. package/dist/components/crud/list.vue.mjs +8 -0
  65. package/dist/components/crud/list.vue.mjs.map +1 -0
  66. package/dist/components/crud/list.vue2.mjs +199 -0
  67. package/dist/components/crud/list.vue2.mjs.map +1 -0
  68. package/dist/components/crud/props.d.ts +70 -0
  69. package/dist/components/crud/props.mjs +37 -0
  70. package/dist/components/crud/props.mjs.map +1 -0
  71. package/dist/components/crud/search.vue.d.ts +44 -0
  72. package/dist/components/crud/search.vue.mjs +8 -0
  73. package/dist/components/crud/search.vue.mjs.map +1 -0
  74. package/dist/components/crud/search.vue2.mjs +98 -0
  75. package/dist/components/crud/search.vue2.mjs.map +1 -0
  76. package/dist/components/crud/table.vue.d.ts +35 -0
  77. package/dist/components/crud/table.vue.mjs +8 -0
  78. package/dist/components/crud/table.vue.mjs.map +1 -0
  79. package/dist/components/crud/table.vue2.mjs +1041 -0
  80. package/dist/components/crud/table.vue2.mjs.map +1 -0
  81. package/dist/components/crud/types.d.ts +70 -0
  82. package/dist/components/dialog/form.vue.d.ts +22 -0
  83. package/dist/components/dialog/form.vue.mjs +175 -0
  84. package/dist/components/dialog/form.vue.mjs.map +1 -0
  85. package/dist/components/dialog/form.vue2.mjs +5 -0
  86. package/dist/components/dialog/form.vue2.mjs.map +1 -0
  87. package/dist/components/dialog/index.d.ts +3 -0
  88. package/dist/components/dialog/index.vue.d.ts +35 -0
  89. package/dist/components/dialog/index.vue.mjs +111 -0
  90. package/dist/components/dialog/index.vue.mjs.map +1 -0
  91. package/dist/components/dialog/index.vue3.mjs +6 -0
  92. package/dist/components/dialog/index.vue3.mjs.map +1 -0
  93. package/dist/components/dialog/props.d.ts +58 -0
  94. package/dist/components/dialog/props.mjs +26 -0
  95. package/dist/components/dialog/props.mjs.map +1 -0
  96. package/dist/components/dialog/types.d.ts +18 -0
  97. package/dist/components/dict/checkbox-group.vue.d.ts +15 -0
  98. package/dist/components/dict/checkbox-group.vue.mjs +8 -0
  99. package/dist/components/dict/checkbox-group.vue.mjs.map +1 -0
  100. package/dist/components/dict/checkbox-group.vue2.mjs +78 -0
  101. package/dist/components/dict/checkbox-group.vue2.mjs.map +1 -0
  102. package/dist/components/dict/index.d.ts +5 -0
  103. package/dist/components/dict/props.d.ts +32 -0
  104. package/dist/components/dict/props.mjs +40 -0
  105. package/dist/components/dict/props.mjs.map +1 -0
  106. package/dist/components/dict/radio-group.vue.d.ts +13 -0
  107. package/dist/components/dict/radio-group.vue.mjs +8 -0
  108. package/dist/components/dict/radio-group.vue.mjs.map +1 -0
  109. package/dist/components/dict/radio-group.vue2.mjs +60 -0
  110. package/dist/components/dict/radio-group.vue2.mjs.map +1 -0
  111. package/dist/components/dict/select.vue.d.ts +31 -0
  112. package/dist/components/dict/select.vue.mjs +166 -0
  113. package/dist/components/dict/select.vue.mjs.map +1 -0
  114. package/dist/components/dict/select.vue2.mjs +5 -0
  115. package/dist/components/dict/select.vue2.mjs.map +1 -0
  116. package/dist/components/dict/tag.vue.d.ts +40 -0
  117. package/dist/components/dict/tag.vue.mjs +8 -0
  118. package/dist/components/dict/tag.vue.mjs.map +1 -0
  119. package/dist/components/dict/tag.vue2.mjs +98 -0
  120. package/dist/components/dict/tag.vue2.mjs.map +1 -0
  121. package/dist/components/dict/types.d.ts +22 -0
  122. package/dist/components/form/config.d.ts +3 -0
  123. package/dist/components/form/config.mjs +5 -0
  124. package/dist/components/form/config.mjs.map +1 -0
  125. package/dist/components/form/index.d.ts +5 -0
  126. package/dist/components/form/index.vue.d.ts +30 -0
  127. package/dist/components/form/index.vue.mjs +187 -0
  128. package/dist/components/form/index.vue.mjs.map +1 -0
  129. package/dist/components/form/index.vue2.mjs +5 -0
  130. package/dist/components/form/index.vue2.mjs.map +1 -0
  131. package/dist/components/form/item.vue.d.ts +23 -0
  132. package/dist/components/form/item.vue.mjs +8 -0
  133. package/dist/components/form/item.vue.mjs.map +1 -0
  134. package/dist/components/form/item.vue2.mjs +106 -0
  135. package/dist/components/form/item.vue2.mjs.map +1 -0
  136. package/dist/components/form/props.d.ts +45 -0
  137. package/dist/components/form/props.mjs +43 -0
  138. package/dist/components/form/props.mjs.map +1 -0
  139. package/dist/components/form/types.d.ts +26 -0
  140. package/dist/components/grid/config.d.ts +15 -0
  141. package/dist/components/grid/config.mjs +27 -0
  142. package/dist/components/grid/config.mjs.map +1 -0
  143. package/dist/components/grid/index.d.ts +4 -0
  144. package/dist/components/grid/index.vue.d.ts +19 -0
  145. package/dist/components/grid/index.vue.mjs +8 -0
  146. package/dist/components/grid/index.vue.mjs.map +1 -0
  147. package/dist/components/grid/index.vue2.mjs +58 -0
  148. package/dist/components/grid/index.vue2.mjs.map +1 -0
  149. package/dist/components/grid/item.vue.d.ts +18 -0
  150. package/dist/components/grid/item.vue.mjs +8 -0
  151. package/dist/components/grid/item.vue.mjs.map +1 -0
  152. package/dist/components/grid/item.vue2.mjs +73 -0
  153. package/dist/components/grid/item.vue2.mjs.map +1 -0
  154. package/dist/components/grid/types.d.ts +12 -0
  155. package/dist/components/image/index.d.ts +2 -0
  156. package/dist/components/image/index.vue.d.ts +17 -0
  157. package/dist/components/image/index.vue.mjs +117 -0
  158. package/dist/components/image/index.vue.mjs.map +1 -0
  159. package/dist/components/image/index.vue2.mjs +5 -0
  160. package/dist/components/image/index.vue2.mjs.map +1 -0
  161. package/dist/components/image/props.d.ts +6 -0
  162. package/dist/components/image/props.mjs +12 -0
  163. package/dist/components/image/props.mjs.map +1 -0
  164. package/dist/components/image/types.d.ts +6 -0
  165. package/dist/components/index.d.ts +15 -0
  166. package/dist/components/office/index.d.ts +1 -0
  167. package/dist/components/office/pdf/config.d.ts +6 -0
  168. package/dist/components/office/pdf/config.mjs +9 -0
  169. package/dist/components/office/pdf/config.mjs.map +1 -0
  170. package/dist/components/office/pdf/hooks/useZoom.d.ts +21 -0
  171. package/dist/components/office/pdf/hooks/useZoom.mjs +200 -0
  172. package/dist/components/office/pdf/hooks/useZoom.mjs.map +1 -0
  173. package/dist/components/office/pdf/index.d.ts +2 -0
  174. package/dist/components/office/pdf/index.vue.d.ts +11 -0
  175. package/dist/components/office/pdf/index.vue.mjs +8 -0
  176. package/dist/components/office/pdf/index.vue.mjs.map +1 -0
  177. package/dist/components/office/pdf/index.vue2.mjs +322 -0
  178. package/dist/components/office/pdf/index.vue2.mjs.map +1 -0
  179. package/dist/components/office/pdf/types.d.ts +17 -0
  180. package/dist/components/org/index.d.ts +2 -0
  181. package/dist/components/org/select/index.vue.d.ts +28 -0
  182. package/dist/components/org/select/index.vue.mjs +273 -0
  183. package/dist/components/org/select/index.vue.mjs.map +1 -0
  184. package/dist/components/org/select/index.vue3.mjs +6 -0
  185. package/dist/components/org/select/index.vue3.mjs.map +1 -0
  186. package/dist/components/org/select/props.d.ts +22 -0
  187. package/dist/components/org/select/props.mjs +19 -0
  188. package/dist/components/org/select/props.mjs.map +1 -0
  189. package/dist/components/org/select/types.d.ts +22 -0
  190. package/dist/components/service/index.d.ts +4 -0
  191. package/dist/components/service/list.vue.d.ts +26 -0
  192. package/dist/components/service/list.vue.mjs +8 -0
  193. package/dist/components/service/list.vue.mjs.map +1 -0
  194. package/dist/components/service/list.vue2.mjs +251 -0
  195. package/dist/components/service/list.vue2.mjs.map +1 -0
  196. package/dist/components/service/props.d.ts +58 -0
  197. package/dist/components/service/props.mjs +66 -0
  198. package/dist/components/service/props.mjs.map +1 -0
  199. package/dist/components/service/select.vue.d.ts +30 -0
  200. package/dist/components/service/select.vue.mjs +8 -0
  201. package/dist/components/service/select.vue.mjs.map +1 -0
  202. package/dist/components/service/select.vue2.mjs +407 -0
  203. package/dist/components/service/select.vue2.mjs.map +1 -0
  204. package/dist/components/service/table.vue.d.ts +29 -0
  205. package/dist/components/service/table.vue.mjs +8 -0
  206. package/dist/components/service/table.vue.mjs.map +1 -0
  207. package/dist/components/service/table.vue2.mjs +693 -0
  208. package/dist/components/service/table.vue2.mjs.map +1 -0
  209. package/dist/components/service/types.d.ts +44 -0
  210. package/dist/components/upload/config.d.ts +4 -0
  211. package/dist/components/upload/config.mjs +37 -0
  212. package/dist/components/upload/config.mjs.map +1 -0
  213. package/dist/components/upload/index.d.ts +3 -0
  214. package/dist/components/upload/index.vue.d.ts +21 -0
  215. package/dist/components/upload/index.vue.mjs +8 -0
  216. package/dist/components/upload/index.vue.mjs.map +1 -0
  217. package/dist/components/upload/index.vue2.mjs +526 -0
  218. package/dist/components/upload/index.vue2.mjs.map +1 -0
  219. package/dist/components/upload/props.d.ts +27 -0
  220. package/dist/components/upload/props.mjs +32 -0
  221. package/dist/components/upload/props.mjs.map +1 -0
  222. package/dist/components/upload/types.d.ts +43 -0
  223. package/dist/directive/hasPermi.d.ts +12 -0
  224. package/dist/directive/hasPermi.mjs +33 -0
  225. package/dist/directive/hasPermi.mjs.map +1 -0
  226. package/dist/directive/hasRole.d.ts +12 -0
  227. package/dist/directive/hasRole.mjs +33 -0
  228. package/dist/directive/hasRole.mjs.map +1 -0
  229. package/dist/directive/index.d.ts +2 -0
  230. package/dist/hooks/index.d.ts +6 -0
  231. package/dist/hooks/useAgentChat/index.d.ts +15 -0
  232. package/dist/hooks/useAgentChat/index.mjs +202 -0
  233. package/dist/hooks/useAgentChat/index.mjs.map +1 -0
  234. package/dist/hooks/useAgentChat/types.d.ts +46 -0
  235. package/dist/hooks/useDict/index.d.ts +18 -0
  236. package/dist/hooks/useDict/index.mjs +137 -0
  237. package/dist/hooks/useDict/index.mjs.map +1 -0
  238. package/dist/hooks/useDict/types.d.ts +13 -0
  239. package/dist/hooks/useDisabled.d.ts +5 -0
  240. package/dist/hooks/useDisabled.mjs +18 -0
  241. package/dist/hooks/useDisabled.mjs.map +1 -0
  242. package/dist/hooks/useModal.d.ts +35 -0
  243. package/dist/hooks/useModal.mjs +179 -0
  244. package/dist/hooks/useModal.mjs.map +1 -0
  245. package/dist/hooks/useReadonly.d.ts +5 -0
  246. package/dist/hooks/useReadonly.mjs +18 -0
  247. package/dist/hooks/useReadonly.mjs.map +1 -0
  248. package/dist/hooks/useUserAvatar/index.d.ts +5 -0
  249. package/dist/hooks/useUserAvatar/index.mjs +38 -0
  250. package/dist/hooks/useUserAvatar/index.mjs.map +1 -0
  251. package/dist/hooks/useUserAvatar/types.d.ts +3 -0
  252. package/dist/index.d.ts +5 -0
  253. package/dist/index.mjs +101 -0
  254. package/dist/index.mjs.map +1 -0
  255. package/dist/locales/en-US.d.ts +316 -0
  256. package/dist/locales/en-US.mjs +71 -0
  257. package/dist/locales/en-US.mjs.map +1 -0
  258. package/dist/locales/zh-CN.d.ts +316 -0
  259. package/dist/locales/zh-CN.mjs +68 -0
  260. package/dist/locales/zh-CN.mjs.map +1 -0
  261. package/dist/locales/zh-TW.d.ts +316 -0
  262. package/dist/locales/zh-TW.mjs +68 -0
  263. package/dist/locales/zh-TW.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs +90 -0
  265. package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs.map +1 -0
  266. package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs +110 -0
  267. package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs.map +1 -0
  268. package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +62 -0
  269. package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +67 -0
  271. package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs.map +1 -0
  272. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs +287 -0
  273. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs.map +1 -0
  274. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +7 -0
  275. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +22 -0
  277. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs.map +1 -0
  278. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +22 -0
  279. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs.map +1 -0
  280. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +7 -0
  281. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +22 -0
  283. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs.map +1 -0
  284. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +7 -0
  285. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs.map +1 -0
  286. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +7 -0
  287. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +19 -0
  289. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs.map +1 -0
  290. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +6 -0
  291. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs.map +1 -0
  292. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +6 -0
  293. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +7 -0
  295. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs.map +1 -0
  296. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +17 -0
  297. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs.map +1 -0
  298. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +13 -0
  299. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +14 -0
  301. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs.map +1 -0
  302. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +25 -0
  303. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs.map +1 -0
  304. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +11 -0
  305. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +11 -0
  307. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs.map +1 -0
  308. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +11 -0
  309. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs.map +1 -0
  310. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +14 -0
  311. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +14 -0
  313. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs.map +1 -0
  314. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +17 -0
  315. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs.map +1 -0
  316. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +75 -0
  317. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +22 -0
  319. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs.map +1 -0
  320. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +6 -0
  321. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs.map +1 -0
  322. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +14 -0
  323. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs.map +1 -0
  324. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +10 -0
  325. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs.map +1 -0
  326. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +15 -0
  327. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs.map +1 -0
  328. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +10 -0
  329. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs.map +1 -0
  330. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +10 -0
  331. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs.map +1 -0
  332. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +23 -0
  333. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs.map +1 -0
  334. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +10 -0
  335. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs.map +1 -0
  336. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +15 -0
  337. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs.map +1 -0
  338. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +20 -0
  339. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs.map +1 -0
  340. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +21 -0
  341. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs.map +1 -0
  342. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +28 -0
  343. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs.map +1 -0
  344. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +62 -0
  345. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs.map +1 -0
  346. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +10 -0
  347. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs.map +1 -0
  348. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs +32 -0
  349. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs.map +1 -0
  350. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +15 -0
  351. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs.map +1 -0
  352. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +11 -0
  353. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs.map +1 -0
  354. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +22 -0
  355. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs.map +1 -0
  356. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +9 -0
  357. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs.map +1 -0
  358. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +14 -0
  359. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs.map +1 -0
  360. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +10 -0
  361. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +1 -0
  362. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +17 -0
  363. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs.map +1 -0
  364. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +9 -0
  365. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs.map +1 -0
  366. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +10 -0
  367. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs.map +1 -0
  368. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +9 -0
  369. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs.map +1 -0
  370. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +9 -0
  371. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs.map +1 -0
  372. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +12 -0
  373. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs.map +1 -0
  374. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +24 -0
  375. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs.map +1 -0
  376. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +6 -0
  377. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs.map +1 -0
  378. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +24 -0
  379. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs.map +1 -0
  380. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +16 -0
  381. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs.map +1 -0
  382. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +13 -0
  383. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs.map +1 -0
  384. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +5 -0
  385. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs.map +1 -0
  386. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +10 -0
  387. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs.map +1 -0
  388. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +9 -0
  389. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs.map +1 -0
  390. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +10 -0
  391. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs.map +1 -0
  392. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +6 -0
  393. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs.map +1 -0
  394. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +26 -0
  395. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs.map +1 -0
  396. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +18 -0
  397. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs.map +1 -0
  398. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +35 -0
  399. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs.map +1 -0
  400. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +7 -0
  401. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs.map +1 -0
  402. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +9 -0
  403. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs.map +1 -0
  404. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +9 -0
  405. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs.map +1 -0
  406. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +16 -0
  407. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs.map +1 -0
  408. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +11 -0
  409. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs.map +1 -0
  410. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +12 -0
  411. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs.map +1 -0
  412. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +14 -0
  413. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs.map +1 -0
  414. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +44 -0
  415. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs.map +1 -0
  416. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +10 -0
  417. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs.map +1 -0
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +11 -0
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs.map +1 -0
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +18 -0
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs.map +1 -0
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +17 -0
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs.map +1 -0
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +8 -0
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs.map +1 -0
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +12 -0
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs.map +1 -0
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +9 -0
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs.map +1 -0
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +8 -0
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs.map +1 -0
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +21 -0
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs.map +1 -0
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +9 -0
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs.map +1 -0
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +8 -0
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs.map +1 -0
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +15 -0
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs.map +1 -0
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +15 -0
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs.map +1 -0
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +10 -0
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs.map +1 -0
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +8 -0
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs.map +1 -0
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +8 -0
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs.map +1 -0
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +11 -0
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs.map +1 -0
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +16 -0
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs.map +1 -0
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +6 -0
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs.map +1 -0
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs.map +1 -0
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +13 -0
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs.map +1 -0
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +19 -0
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs.map +1 -0
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +9 -0
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs.map +1 -0
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +9 -0
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs.map +1 -0
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +22 -0
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs.map +1 -0
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +7 -0
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs.map +1 -0
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +13 -0
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs.map +1 -0
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +7 -0
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs.map +1 -0
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +21 -0
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs.map +1 -0
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +9 -0
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs.map +1 -0
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +9 -0
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs.map +1 -0
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +7 -0
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs.map +1 -0
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +7 -0
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs.map +1 -0
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +23 -0
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs.map +1 -0
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +17 -0
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs.map +1 -0
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +12 -0
  487. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs.map +1 -0
  488. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +19 -0
  489. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs.map +1 -0
  490. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs +9 -0
  491. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs.map +1 -0
  492. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +9 -0
  493. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs.map +1 -0
  494. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +7 -0
  495. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs.map +1 -0
  496. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +9 -0
  497. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs.map +1 -0
  498. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +7 -0
  499. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs.map +1 -0
  500. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +14 -0
  501. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs.map +1 -0
  502. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +5 -0
  503. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs.map +1 -0
  504. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +9 -0
  505. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs.map +1 -0
  506. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +9 -0
  507. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs.map +1 -0
  508. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs +10 -0
  509. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs.map +1 -0
  510. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +12 -0
  511. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs.map +1 -0
  512. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +14 -0
  513. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs.map +1 -0
  514. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +8 -0
  515. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs.map +1 -0
  516. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +9 -0
  517. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs.map +1 -0
  518. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs +10 -0
  519. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs.map +1 -0
  520. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +8 -0
  521. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs.map +1 -0
  522. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +7 -0
  523. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs.map +1 -0
  524. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +23 -0
  525. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs.map +1 -0
  526. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +9 -0
  527. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs.map +1 -0
  528. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +10 -0
  529. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs.map +1 -0
  530. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +9 -0
  531. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs.map +1 -0
  532. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +10 -0
  533. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs.map +1 -0
  534. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +10 -0
  535. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs.map +1 -0
  536. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +23 -0
  537. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs.map +1 -0
  538. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +9 -0
  539. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs.map +1 -0
  540. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs +8 -0
  541. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs.map +1 -0
  542. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +7 -0
  543. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs.map +1 -0
  544. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +7 -0
  545. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs.map +1 -0
  546. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +9 -0
  547. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs.map +1 -0
  548. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +8 -0
  549. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs.map +1 -0
  550. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs +25810 -0
  551. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs.map +1 -0
  552. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs +5 -0
  553. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs.map +1 -0
  554. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs +5 -0
  555. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs.map +1 -0
  556. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs +8940 -0
  557. package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs.map +1 -0
  558. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs +316 -0
  559. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs.map +1 -0
  560. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs +330 -0
  561. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs.map +1 -0
  562. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs +10 -0
  563. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs.map +1 -0
  564. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs +17 -0
  565. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs.map +1 -0
  566. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs +287 -0
  567. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs.map +1 -0
  568. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs +328 -0
  569. package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs.map +1 -0
  570. package/dist/qidian-vue-ui.css +6054 -0
  571. package/dist/utils/auth.d.ts +6 -0
  572. package/dist/utils/auth.mjs +67 -0
  573. package/dist/utils/auth.mjs.map +1 -0
  574. package/dist/utils/index.d.ts +2 -0
  575. package/dist/utils/time.d.ts +2 -0
  576. package/dist/utils/time.mjs +30 -0
  577. package/dist/utils/time.mjs.map +1 -0
  578. package/package.json +1 -1
@@ -0,0 +1,217 @@
1
+ export declare const QdConfigProvider: import("vue").DefineComponent<{
2
+ locale?: string | undefined;
3
+ user?: import("./types").QdUser | undefined;
4
+ dict?: import("../..").QdDictBaseOptions | undefined;
5
+ upload?: Pick<import("..").QdUploadProps, "action" | "headers" | "isBatchUpload" | "method" | "name" | "requestMethod" | "listOssByIds" | "listOssByUrls" | "del"> | undefined;
6
+ avatar?: import("../..").QdAvatarBaseOptions | undefined;
7
+ agentChat?: Pick<import("../..").UseAgentChatOptions, "getSessionId" | "getUrl"> | undefined;
8
+ org?: {
9
+ search?: Pick<import("..").QdOrgSelectProps, "service" | "transformParams" | "transformRes">;
10
+ select?: Partial<Pick<import("..").QdOrgSelectProps, "type" | "showDeptName" | "showFullDeptPath" | "keys">>;
11
+ } | undefined;
12
+ globalConfig?: (Omit<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"], "upload" | "chat"> & {
13
+ loading?: {
14
+ text?: string;
15
+ };
16
+ timeFormat: {
17
+ seconds?: string;
18
+ minutes?: string;
19
+ hours?: string;
20
+ days?: string;
21
+ };
22
+ crud?: {
23
+ emptyText?: string;
24
+ searchText?: string;
25
+ resetText?: string;
26
+ addText?: string;
27
+ viewText?: string;
28
+ editText?: string;
29
+ deleteText?: string;
30
+ operationText?: string;
31
+ closeText?: string;
32
+ deleteSuccessText?: string;
33
+ deleteHasChildrenText?: string;
34
+ operationSuccessText?: string;
35
+ deleteWrapperBodyText?: string;
36
+ collapseSearchText?: string;
37
+ expandSearchText?: string;
38
+ refreshText?: string;
39
+ collapseTreeText?: string;
40
+ expandTreeText?: string;
41
+ columnControllerText?: string;
42
+ };
43
+ modal?: {
44
+ systemPromptText?: string;
45
+ };
46
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
47
+ fileFormatNotSupportedMessage?: [string, string];
48
+ maxUploadMessage?: [string, string];
49
+ sameNameMessage?: string;
50
+ fileSizeExceedsLimit?: string;
51
+ fileUploadFailed?: string;
52
+ viewFileText?: string;
53
+ };
54
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
55
+ failedObtainSessionIdMessage?: string;
56
+ failedObtainUrlMessage?: string;
57
+ failedObtainAgentInfoMessage?: string;
58
+ apiUnknownErrorMessage?: string;
59
+ failedParseContentMessage?: string;
60
+ parsedContentEmptyMessage?: string;
61
+ agentProcessingTimeoutMessage?: string;
62
+ };
63
+ office?: {
64
+ prevPage?: string;
65
+ nextPage?: string;
66
+ zoomOut?: string;
67
+ zoomIn?: string;
68
+ cancelAdaptiveView?: string;
69
+ adaptiveView?: string;
70
+ };
71
+ }) | undefined;
72
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
73
+ [key: string]: any;
74
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
75
+ locale?: string | undefined;
76
+ user?: import("./types").QdUser | undefined;
77
+ dict?: import("../..").QdDictBaseOptions | undefined;
78
+ upload?: Pick<import("..").QdUploadProps, "action" | "headers" | "isBatchUpload" | "method" | "name" | "requestMethod" | "listOssByIds" | "listOssByUrls" | "del"> | undefined;
79
+ avatar?: import("../..").QdAvatarBaseOptions | undefined;
80
+ agentChat?: Pick<import("../..").UseAgentChatOptions, "getSessionId" | "getUrl"> | undefined;
81
+ org?: {
82
+ search?: Pick<import("..").QdOrgSelectProps, "service" | "transformParams" | "transformRes">;
83
+ select?: Partial<Pick<import("..").QdOrgSelectProps, "type" | "showDeptName" | "showFullDeptPath" | "keys">>;
84
+ } | undefined;
85
+ globalConfig?: (Omit<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"], "upload" | "chat"> & {
86
+ loading?: {
87
+ text?: string;
88
+ };
89
+ timeFormat: {
90
+ seconds?: string;
91
+ minutes?: string;
92
+ hours?: string;
93
+ days?: string;
94
+ };
95
+ crud?: {
96
+ emptyText?: string;
97
+ searchText?: string;
98
+ resetText?: string;
99
+ addText?: string;
100
+ viewText?: string;
101
+ editText?: string;
102
+ deleteText?: string;
103
+ operationText?: string;
104
+ closeText?: string;
105
+ deleteSuccessText?: string;
106
+ deleteHasChildrenText?: string;
107
+ operationSuccessText?: string;
108
+ deleteWrapperBodyText?: string;
109
+ collapseSearchText?: string;
110
+ expandSearchText?: string;
111
+ refreshText?: string;
112
+ collapseTreeText?: string;
113
+ expandTreeText?: string;
114
+ columnControllerText?: string;
115
+ };
116
+ modal?: {
117
+ systemPromptText?: string;
118
+ };
119
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
120
+ fileFormatNotSupportedMessage?: [string, string];
121
+ maxUploadMessage?: [string, string];
122
+ sameNameMessage?: string;
123
+ fileSizeExceedsLimit?: string;
124
+ fileUploadFailed?: string;
125
+ viewFileText?: string;
126
+ };
127
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
128
+ failedObtainSessionIdMessage?: string;
129
+ failedObtainUrlMessage?: string;
130
+ failedObtainAgentInfoMessage?: string;
131
+ apiUnknownErrorMessage?: string;
132
+ failedParseContentMessage?: string;
133
+ parsedContentEmptyMessage?: string;
134
+ agentProcessingTimeoutMessage?: string;
135
+ };
136
+ office?: {
137
+ prevPage?: string;
138
+ nextPage?: string;
139
+ zoomOut?: string;
140
+ zoomIn?: string;
141
+ cancelAdaptiveView?: string;
142
+ adaptiveView?: string;
143
+ };
144
+ }) | undefined;
145
+ }> & Readonly<{}>, {
146
+ avatar: import("../..").QdAvatarBaseOptions | undefined;
147
+ dict: import("../..").QdDictBaseOptions<import("../..").QdDictItem, unknown, string, string> | undefined;
148
+ locale: string | undefined;
149
+ globalConfig: {
150
+ loading?: {
151
+ text?: string;
152
+ };
153
+ timeFormat: {
154
+ seconds?: string;
155
+ minutes?: string;
156
+ hours?: string;
157
+ days?: string;
158
+ };
159
+ crud?: {
160
+ emptyText?: string;
161
+ searchText?: string;
162
+ resetText?: string;
163
+ addText?: string;
164
+ viewText?: string;
165
+ editText?: string;
166
+ deleteText?: string;
167
+ operationText?: string;
168
+ closeText?: string;
169
+ deleteSuccessText?: string;
170
+ deleteHasChildrenText?: string;
171
+ operationSuccessText?: string;
172
+ deleteWrapperBodyText?: string;
173
+ collapseSearchText?: string;
174
+ expandSearchText?: string;
175
+ refreshText?: string;
176
+ collapseTreeText?: string;
177
+ expandTreeText?: string;
178
+ columnControllerText?: string;
179
+ };
180
+ modal?: {
181
+ systemPromptText?: string;
182
+ };
183
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
184
+ fileFormatNotSupportedMessage?: [string, string];
185
+ maxUploadMessage?: [string, string];
186
+ sameNameMessage?: string;
187
+ fileSizeExceedsLimit?: string;
188
+ fileUploadFailed?: string;
189
+ viewFileText?: string;
190
+ };
191
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
192
+ failedObtainSessionIdMessage?: string;
193
+ failedObtainUrlMessage?: string;
194
+ failedObtainAgentInfoMessage?: string;
195
+ apiUnknownErrorMessage?: string;
196
+ failedParseContentMessage?: string;
197
+ parsedContentEmptyMessage?: string;
198
+ agentProcessingTimeoutMessage?: string;
199
+ };
200
+ office?: {
201
+ prevPage?: string;
202
+ nextPage?: string;
203
+ zoomOut?: string;
204
+ zoomIn?: string;
205
+ cancelAdaptiveView?: string;
206
+ adaptiveView?: string;
207
+ };
208
+ } | undefined;
209
+ upload: Pick<import("..").QdUploadProps<import("tdesign-vue-next").UploadFile, unknown, string | number | (string | number)[], string | number | (string | number)[], unknown, string | string[], string | string[], unknown, string | number | (string | number)[], string | number | (string | number)[]>, "name" | "del" | "action" | "headers" | "isBatchUpload" | "method" | "requestMethod" | "listOssByIds" | "listOssByUrls"> | undefined;
210
+ agentChat: Pick<import("../..").UseAgentChatOptions, "getSessionId" | "getUrl"> | undefined;
211
+ user: import("./types").QdUser | undefined;
212
+ org: {
213
+ search?: Pick<import("..").QdOrgSelectProps, "service" | "transformParams" | "transformRes">;
214
+ select?: Partial<Pick<import("..").QdOrgSelectProps, "type" | "showDeptName" | "showFullDeptPath" | "keys">>;
215
+ } | undefined;
216
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
217
+ export type { QdConfigProviderProps } from './types';
@@ -0,0 +1,98 @@
1
+ import { defineComponent, ref, computed, provide, watch, watchEffect, h } from "vue";
2
+ import { ConfigProvider } from "tdesign-vue-next";
3
+ import { to } from "qidian-shared";
4
+ import { PROVIDE_USER, PROVIDE_DICT, PROVIDE_UPLOAD, PROVIDE_AVATAR, PROVIDE_ORG, PROVIDE_GLOBAL_CONFIG } from "./config.mjs";
5
+ const QdConfigProvider = defineComponent({
6
+ name: "QdConfigProvider",
7
+ props: {
8
+ locale: {
9
+ type: String,
10
+ default: "zh-CN"
11
+ },
12
+ user: {
13
+ type: Object,
14
+ default: void 0
15
+ },
16
+ dict: {
17
+ type: Object,
18
+ default: void 0
19
+ },
20
+ upload: {
21
+ type: Object,
22
+ default: void 0
23
+ },
24
+ avatar: {
25
+ type: Object,
26
+ default: void 0
27
+ },
28
+ org: {
29
+ type: Object,
30
+ default: void 0
31
+ },
32
+ agentChat: {
33
+ type: Object,
34
+ default: void 0
35
+ },
36
+ globalConfig: {
37
+ type: Object,
38
+ default: void 0
39
+ }
40
+ },
41
+ setup(props, { slots }) {
42
+ const qdGlobalConfig = ref();
43
+ const mergedGlobalConfig = computed(() => {
44
+ return {
45
+ ...qdGlobalConfig.value,
46
+ ...props.globalConfig
47
+ };
48
+ });
49
+ const user = computed(() => props.user);
50
+ const dict = computed(() => props.dict);
51
+ const upload = computed(() => props.upload);
52
+ const avatar = computed(() => props.avatar);
53
+ const org = computed(() => props.org);
54
+ provide(PROVIDE_USER, user);
55
+ provide(PROVIDE_DICT, dict);
56
+ provide(PROVIDE_UPLOAD, upload);
57
+ provide(PROVIDE_AVATAR, avatar);
58
+ provide(PROVIDE_ORG, org);
59
+ provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig);
60
+ watch(
61
+ () => [props.user, props.dict, props.avatar, props.agentChat],
62
+ ([newUser, newDict, newAvatar, newAgentChat]) => {
63
+ if (typeof window !== "undefined") {
64
+ window.__QIDIAN_USER__ = newUser;
65
+ window.__QIDIAN_DICT__ = newDict;
66
+ window.__QIDIAN_AVATAR__ = newAvatar;
67
+ window.__QIDIAN_AGENT_CHAT__ = newAgentChat;
68
+ }
69
+ },
70
+ { immediate: true }
71
+ );
72
+ watch(
73
+ mergedGlobalConfig,
74
+ (newConfig) => {
75
+ window.__QIDIAN_GLOBAL_CONFIG__ = newConfig;
76
+ },
77
+ { immediate: true }
78
+ );
79
+ watchEffect(async () => {
80
+ const localeMap = {
81
+ "zh-CN": () => import("../../locales/zh-CN.mjs"),
82
+ "zh-TW": () => import("../../locales/zh-TW.mjs"),
83
+ "en-US": () => import("../../locales/en-US.mjs")
84
+ };
85
+ const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
86
+ const [err, res] = await to(
87
+ loadLocale()
88
+ );
89
+ if (err) return;
90
+ qdGlobalConfig.value = res.default;
91
+ });
92
+ return () => h(ConfigProvider, { globalConfig: mergedGlobalConfig.value }, slots.default);
93
+ }
94
+ });
95
+ export {
96
+ QdConfigProvider
97
+ };
98
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/components/config-provider/index.ts"],"sourcesContent":["import type { PropType } from 'vue'\nimport type { QdConfigProviderProps } from './types'\nimport { defineComponent, provide, h, ref, watchEffect, computed, watch } from 'vue'\nimport { ConfigProvider as TConfigProvider } from 'tdesign-vue-next'\nimport { to } from 'qidian-shared'\nimport {\n PROVIDE_AVATAR,\n PROVIDE_DICT,\n PROVIDE_GLOBAL_CONFIG,\n PROVIDE_ORG,\n PROVIDE_UPLOAD,\n PROVIDE_USER\n} from './config'\n\nexport const QdConfigProvider = defineComponent({\n name: 'QdConfigProvider',\n props: {\n locale: {\n type: String as PropType<QdConfigProviderProps['locale']>,\n default: 'zh-CN'\n },\n\n user: {\n type: Object as PropType<QdConfigProviderProps['user']>,\n default: undefined\n },\n\n dict: {\n type: Object as PropType<QdConfigProviderProps['dict']>,\n default: undefined\n },\n\n upload: {\n type: Object as PropType<QdConfigProviderProps['upload']>,\n default: undefined\n },\n\n avatar: {\n type: Object as PropType<QdConfigProviderProps['avatar']>,\n default: undefined\n },\n\n org: {\n type: Object as PropType<QdConfigProviderProps['org']>,\n default: undefined\n },\n\n agentChat: {\n type: Object as PropType<QdConfigProviderProps['agentChat']>,\n default: undefined\n },\n\n globalConfig: {\n type: Object as PropType<QdConfigProviderProps['globalConfig']>,\n default: undefined\n }\n },\n setup(props: QdConfigProviderProps, { slots }) {\n const qdGlobalConfig = ref()\n const mergedGlobalConfig = computed(() => {\n return {\n ...qdGlobalConfig.value,\n ...props.globalConfig\n }\n })\n\n const user = computed(() => props.user)\n const dict = computed(() => props.dict)\n const upload = computed(() => props.upload)\n const avatar = computed(() => props.avatar)\n const org = computed(() => props.org)\n\n provide(PROVIDE_USER, user)\n provide(PROVIDE_DICT, dict)\n provide(PROVIDE_UPLOAD, upload)\n provide(PROVIDE_AVATAR, avatar)\n provide(PROVIDE_ORG, org)\n provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig)\n\n watch(\n () => [props.user, props.dict, props.avatar, props.agentChat] as const,\n ([newUser, newDict, newAvatar, newAgentChat]) => {\n if (typeof window !== 'undefined') {\n window.__QIDIAN_USER__ = newUser\n window.__QIDIAN_DICT__ = newDict\n window.__QIDIAN_AVATAR__ = newAvatar\n window.__QIDIAN_AGENT_CHAT__ = newAgentChat\n }\n },\n { immediate: true }\n )\n\n watch(\n mergedGlobalConfig,\n (newConfig) => {\n window.__QIDIAN_GLOBAL_CONFIG__ = newConfig\n },\n { immediate: true }\n )\n\n watchEffect(async () => {\n const localeMap = {\n 'zh-CN': () => import('../../locales/zh-CN'),\n 'zh-TW': () => import('../../locales/zh-TW'),\n 'en-US': () => import('../../locales/en-US')\n }\n\n const loadLocale = localeMap[props.locale as keyof typeof localeMap] || localeMap['zh-CN']\n const [err, res] = await to(\n loadLocale() as unknown as Promise<{\n default: NonNullable<QdConfigProviderProps['globalConfig']>\n }>\n )\n if (err) return\n\n qdGlobalConfig.value = res.default\n })\n\n return () => h(TConfigProvider, { globalConfig: mergedGlobalConfig.value }, slots.default)\n }\n})\n\nexport type { QdConfigProviderProps } from './types'\n"],"names":["TConfigProvider"],"mappings":";;;;AAcO,MAAM,mBAAmB,gBAAgB;AAAA,EAC9C,MAAM;AAAA,EACN,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,KAAK;AAAA,MACH,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAGX,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM,OAA8B,EAAE,SAAS;AAC7C,UAAM,iBAAiB,IAAA;AACvB,UAAM,qBAAqB,SAAS,MAAM;AACxC,aAAO;AAAA,QACL,GAAG,eAAe;AAAA,QAClB,GAAG,MAAM;AAAA,MAAA;AAAA,IAEb,CAAC;AAED,UAAM,OAAO,SAAS,MAAM,MAAM,IAAI;AACtC,UAAM,OAAO,SAAS,MAAM,MAAM,IAAI;AACtC,UAAM,SAAS,SAAS,MAAM,MAAM,MAAM;AAC1C,UAAM,SAAS,SAAS,MAAM,MAAM,MAAM;AAC1C,UAAM,MAAM,SAAS,MAAM,MAAM,GAAG;AAEpC,YAAQ,cAAc,IAAI;AAC1B,YAAQ,cAAc,IAAI;AAC1B,YAAQ,gBAAgB,MAAM;AAC9B,YAAQ,gBAAgB,MAAM;AAC9B,YAAQ,aAAa,GAAG;AACxB,YAAQ,uBAAuB,kBAAkB;AAEjD;AAAA,MACE,MAAM,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,QAAQ,MAAM,SAAS;AAAA,MAC5D,CAAC,CAAC,SAAS,SAAS,WAAW,YAAY,MAAM;AAC/C,YAAI,OAAO,WAAW,aAAa;AACjC,iBAAO,kBAAkB;AACzB,iBAAO,kBAAkB;AACzB,iBAAO,oBAAoB;AAC3B,iBAAO,wBAAwB;AAAA,QACjC;AAAA,MACF;AAAA,MACA,EAAE,WAAW,KAAA;AAAA,IAAK;AAGpB;AAAA,MACE;AAAA,MACA,CAAC,cAAc;AACb,eAAO,2BAA2B;AAAA,MACpC;AAAA,MACA,EAAE,WAAW,KAAA;AAAA,IAAK;AAGpB,gBAAY,YAAY;AACtB,YAAM,YAAY;AAAA,QAChB,SAAS,MAAM,OAAO,yBAAqB;AAAA,QAC3C,SAAS,MAAM,OAAO,yBAAqB;AAAA,QAC3C,SAAS,MAAM,OAAO,yBAAqB;AAAA,MAAA;AAG7C,YAAM,aAAa,UAAU,MAAM,MAAgC,KAAK,UAAU,OAAO;AACzF,YAAM,CAAC,KAAK,GAAG,IAAI,MAAM;AAAA,QACvB,WAAA;AAAA,MAAW;AAIb,UAAI,IAAK;AAET,qBAAe,QAAQ,IAAI;AAAA,IAC7B,CAAC;AAED,WAAO,MAAM,EAAEA,gBAAiB,EAAE,cAAc,mBAAmB,MAAA,GAAS,MAAM,OAAO;AAAA,EAC3F;AACF,CAAC;"}
@@ -0,0 +1,82 @@
1
+ import type { TdConfigProviderProps } from 'tdesign-vue-next';
2
+ import type { QdDictBaseOptions } from '../../hooks/useDict';
3
+ import type { QdUploadProps } from '../upload';
4
+ import type { UseAgentChatOptions } from '../../hooks/useAgentChat';
5
+ import type { QdOrgSelectProps } from '../org';
6
+ import type { QdAvatarBaseOptions } from '../../hooks/useUserAvatar';
7
+ export interface QdUser {
8
+ roles?: string[];
9
+ permissions?: string[];
10
+ }
11
+ export interface QdConfigProviderProps {
12
+ locale?: string;
13
+ user?: QdUser;
14
+ dict?: QdDictBaseOptions;
15
+ upload?: Pick<QdUploadProps, 'action' | 'headers' | 'isBatchUpload' | 'method' | 'name' | 'requestMethod' | 'listOssByIds' | 'listOssByUrls' | 'del'>;
16
+ avatar?: QdAvatarBaseOptions;
17
+ agentChat?: Pick<UseAgentChatOptions, 'getSessionId' | 'getUrl'>;
18
+ org?: {
19
+ search?: Pick<QdOrgSelectProps, 'service' | 'transformParams' | 'transformRes'>;
20
+ select?: Partial<Pick<QdOrgSelectProps, 'type' | 'showDeptName' | 'showFullDeptPath' | 'keys'>>;
21
+ };
22
+ globalConfig?: Omit<TdConfigProviderProps['globalConfig'], 'upload' | 'chat'> & {
23
+ loading?: {
24
+ text?: string;
25
+ };
26
+ timeFormat: {
27
+ seconds?: string;
28
+ minutes?: string;
29
+ hours?: string;
30
+ days?: string;
31
+ };
32
+ crud?: {
33
+ emptyText?: string;
34
+ searchText?: string;
35
+ resetText?: string;
36
+ addText?: string;
37
+ viewText?: string;
38
+ editText?: string;
39
+ deleteText?: string;
40
+ operationText?: string;
41
+ closeText?: string;
42
+ deleteSuccessText?: string;
43
+ deleteHasChildrenText?: string;
44
+ operationSuccessText?: string;
45
+ deleteWrapperBodyText?: string;
46
+ collapseSearchText?: string;
47
+ expandSearchText?: string;
48
+ refreshText?: string;
49
+ collapseTreeText?: string;
50
+ expandTreeText?: string;
51
+ columnControllerText?: string;
52
+ };
53
+ modal?: {
54
+ systemPromptText?: string;
55
+ };
56
+ upload?: NonNullable<TdConfigProviderProps['globalConfig']>['upload'] & {
57
+ fileFormatNotSupportedMessage?: [string, string];
58
+ maxUploadMessage?: [string, string];
59
+ sameNameMessage?: string;
60
+ fileSizeExceedsLimit?: string;
61
+ fileUploadFailed?: string;
62
+ viewFileText?: string;
63
+ };
64
+ chat?: NonNullable<TdConfigProviderProps['globalConfig']>['chat'] & {
65
+ failedObtainSessionIdMessage?: string;
66
+ failedObtainUrlMessage?: string;
67
+ failedObtainAgentInfoMessage?: string;
68
+ apiUnknownErrorMessage?: string;
69
+ failedParseContentMessage?: string;
70
+ parsedContentEmptyMessage?: string;
71
+ agentProcessingTimeoutMessage?: string;
72
+ };
73
+ office?: {
74
+ prevPage?: string;
75
+ nextPage?: string;
76
+ zoomOut?: string;
77
+ zoomIn?: string;
78
+ cancelAdaptiveView?: string;
79
+ adaptiveView?: string;
80
+ };
81
+ };
82
+ }
@@ -0,0 +1,241 @@
1
+ import type { QdConfigProviderProps } from './types';
2
+ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderProps['globalConfig']>>(key: T, componentLocale?: NonNullable<QdConfigProviderProps['globalConfig']>[T]): {
3
+ t: <T_1 extends keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider | undefined, "upload" | "chat"> & {
4
+ loading?: {
5
+ text?: string;
6
+ };
7
+ timeFormat: {
8
+ seconds?: string;
9
+ minutes?: string;
10
+ hours?: string;
11
+ days?: string;
12
+ };
13
+ crud?: {
14
+ emptyText?: string;
15
+ searchText?: string;
16
+ resetText?: string;
17
+ addText?: string;
18
+ viewText?: string;
19
+ editText?: string;
20
+ deleteText?: string;
21
+ operationText?: string;
22
+ closeText?: string;
23
+ deleteSuccessText?: string;
24
+ deleteHasChildrenText?: string;
25
+ operationSuccessText?: string;
26
+ deleteWrapperBodyText?: string;
27
+ collapseSearchText?: string;
28
+ expandSearchText?: string;
29
+ refreshText?: string;
30
+ collapseTreeText?: string;
31
+ expandTreeText?: string;
32
+ columnControllerText?: string;
33
+ };
34
+ modal?: {
35
+ systemPromptText?: string;
36
+ };
37
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
38
+ fileFormatNotSupportedMessage?: [string, string];
39
+ maxUploadMessage?: [string, string];
40
+ sameNameMessage?: string;
41
+ fileSizeExceedsLimit?: string;
42
+ fileUploadFailed?: string;
43
+ viewFileText?: string;
44
+ };
45
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
46
+ failedObtainSessionIdMessage?: string;
47
+ failedObtainUrlMessage?: string;
48
+ failedObtainAgentInfoMessage?: string;
49
+ apiUnknownErrorMessage?: string;
50
+ failedParseContentMessage?: string;
51
+ parsedContentEmptyMessage?: string;
52
+ agentProcessingTimeoutMessage?: string;
53
+ };
54
+ office?: {
55
+ prevPage?: string;
56
+ nextPage?: string;
57
+ zoomOut?: string;
58
+ zoomIn?: string;
59
+ cancelAdaptiveView?: string;
60
+ adaptiveView?: string;
61
+ };
62
+ })[T]> = keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider | undefined, "upload" | "chat"> & {
63
+ loading?: {
64
+ text?: string;
65
+ };
66
+ timeFormat: {
67
+ seconds?: string;
68
+ minutes?: string;
69
+ hours?: string;
70
+ days?: string;
71
+ };
72
+ crud?: {
73
+ emptyText?: string;
74
+ searchText?: string;
75
+ resetText?: string;
76
+ addText?: string;
77
+ viewText?: string;
78
+ editText?: string;
79
+ deleteText?: string;
80
+ operationText?: string;
81
+ closeText?: string;
82
+ deleteSuccessText?: string;
83
+ deleteHasChildrenText?: string;
84
+ operationSuccessText?: string;
85
+ deleteWrapperBodyText?: string;
86
+ collapseSearchText?: string;
87
+ expandSearchText?: string;
88
+ refreshText?: string;
89
+ collapseTreeText?: string;
90
+ expandTreeText?: string;
91
+ columnControllerText?: string;
92
+ };
93
+ modal?: {
94
+ systemPromptText?: string;
95
+ };
96
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
97
+ fileFormatNotSupportedMessage?: [string, string];
98
+ maxUploadMessage?: [string, string];
99
+ sameNameMessage?: string;
100
+ fileSizeExceedsLimit?: string;
101
+ fileUploadFailed?: string;
102
+ viewFileText?: string;
103
+ };
104
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
105
+ failedObtainSessionIdMessage?: string;
106
+ failedObtainUrlMessage?: string;
107
+ failedObtainAgentInfoMessage?: string;
108
+ apiUnknownErrorMessage?: string;
109
+ failedParseContentMessage?: string;
110
+ parsedContentEmptyMessage?: string;
111
+ agentProcessingTimeoutMessage?: string;
112
+ };
113
+ office?: {
114
+ prevPage?: string;
115
+ nextPage?: string;
116
+ zoomOut?: string;
117
+ zoomIn?: string;
118
+ cancelAdaptiveView?: string;
119
+ adaptiveView?: string;
120
+ };
121
+ })[T]>>(path: T_1) => NonNullable<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider | undefined, "upload" | "chat"> & {
122
+ loading?: {
123
+ text?: string;
124
+ };
125
+ timeFormat: {
126
+ seconds?: string;
127
+ minutes?: string;
128
+ hours?: string;
129
+ days?: string;
130
+ };
131
+ crud?: {
132
+ emptyText?: string;
133
+ searchText?: string;
134
+ resetText?: string;
135
+ addText?: string;
136
+ viewText?: string;
137
+ editText?: string;
138
+ deleteText?: string;
139
+ operationText?: string;
140
+ closeText?: string;
141
+ deleteSuccessText?: string;
142
+ deleteHasChildrenText?: string;
143
+ operationSuccessText?: string;
144
+ deleteWrapperBodyText?: string;
145
+ collapseSearchText?: string;
146
+ expandSearchText?: string;
147
+ refreshText?: string;
148
+ collapseTreeText?: string;
149
+ expandTreeText?: string;
150
+ columnControllerText?: string;
151
+ };
152
+ modal?: {
153
+ systemPromptText?: string;
154
+ };
155
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
156
+ fileFormatNotSupportedMessage?: [string, string];
157
+ maxUploadMessage?: [string, string];
158
+ sameNameMessage?: string;
159
+ fileSizeExceedsLimit?: string;
160
+ fileUploadFailed?: string;
161
+ viewFileText?: string;
162
+ };
163
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
164
+ failedObtainSessionIdMessage?: string;
165
+ failedObtainUrlMessage?: string;
166
+ failedObtainAgentInfoMessage?: string;
167
+ apiUnknownErrorMessage?: string;
168
+ failedParseContentMessage?: string;
169
+ parsedContentEmptyMessage?: string;
170
+ agentProcessingTimeoutMessage?: string;
171
+ };
172
+ office?: {
173
+ prevPage?: string;
174
+ nextPage?: string;
175
+ zoomOut?: string;
176
+ zoomIn?: string;
177
+ cancelAdaptiveView?: string;
178
+ adaptiveView?: string;
179
+ };
180
+ })[T]>[T_1]>;
181
+ global: import("vue").ComputedRef<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider | undefined, "upload" | "chat"> & {
182
+ loading?: {
183
+ text?: string;
184
+ };
185
+ timeFormat: {
186
+ seconds?: string;
187
+ minutes?: string;
188
+ hours?: string;
189
+ days?: string;
190
+ };
191
+ crud?: {
192
+ emptyText?: string;
193
+ searchText?: string;
194
+ resetText?: string;
195
+ addText?: string;
196
+ viewText?: string;
197
+ editText?: string;
198
+ deleteText?: string;
199
+ operationText?: string;
200
+ closeText?: string;
201
+ deleteSuccessText?: string;
202
+ deleteHasChildrenText?: string;
203
+ operationSuccessText?: string;
204
+ deleteWrapperBodyText?: string;
205
+ collapseSearchText?: string;
206
+ expandSearchText?: string;
207
+ refreshText?: string;
208
+ collapseTreeText?: string;
209
+ expandTreeText?: string;
210
+ columnControllerText?: string;
211
+ };
212
+ modal?: {
213
+ systemPromptText?: string;
214
+ };
215
+ upload?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["upload"] & {
216
+ fileFormatNotSupportedMessage?: [string, string];
217
+ maxUploadMessage?: [string, string];
218
+ sameNameMessage?: string;
219
+ fileSizeExceedsLimit?: string;
220
+ fileUploadFailed?: string;
221
+ viewFileText?: string;
222
+ };
223
+ chat?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["chat"] & {
224
+ failedObtainSessionIdMessage?: string;
225
+ failedObtainUrlMessage?: string;
226
+ failedObtainAgentInfoMessage?: string;
227
+ apiUnknownErrorMessage?: string;
228
+ failedParseContentMessage?: string;
229
+ parsedContentEmptyMessage?: string;
230
+ agentProcessingTimeoutMessage?: string;
231
+ };
232
+ office?: {
233
+ prevPage?: string;
234
+ nextPage?: string;
235
+ zoomOut?: string;
236
+ zoomIn?: string;
237
+ cancelAdaptiveView?: string;
238
+ adaptiveView?: string;
239
+ };
240
+ })[T]>>;
241
+ };
@@ -0,0 +1,26 @@
1
+ import { getCurrentInstance, inject, computed } from "vue";
2
+ import { PROVIDE_GLOBAL_CONFIG } from "./config.mjs";
3
+ import zhCN from "../../locales/zh-CN.mjs";
4
+ import get from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs";
5
+ function useConfig(key, componentLocale) {
6
+ const injectGlobalConfig = getCurrentInstance?.() ? inject(PROVIDE_GLOBAL_CONFIG, void 0) : computed(() => window.__QIDIAN_GLOBAL_CONFIG__);
7
+ const mergedGlobalConfig = computed(() => injectGlobalConfig?.value || zhCN);
8
+ const globalConfig = computed(
9
+ () => Object.assign(
10
+ {},
11
+ mergedGlobalConfig.value[key],
12
+ componentLocale
13
+ )
14
+ );
15
+ const t = (path) => {
16
+ return get(globalConfig.value, path);
17
+ };
18
+ return {
19
+ t,
20
+ global: globalConfig
21
+ };
22
+ }
23
+ export {
24
+ useConfig
25
+ };
26
+ //# sourceMappingURL=useConfig.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConfig.mjs","sources":["../../../src/components/config-provider/useConfig.ts"],"sourcesContent":["import type { QdConfigProviderProps } from './types'\nimport { computed, getCurrentInstance, inject } from 'vue'\nimport { PROVIDE_GLOBAL_CONFIG } from './config'\nimport zhCN from '../../locales/zh-CN'\nimport { get } from 'lodash-es'\n\nexport function useConfig<T extends keyof NonNullable<QdConfigProviderProps['globalConfig']>>(\n key: T,\n componentLocale?: NonNullable<QdConfigProviderProps['globalConfig']>[T]\n) {\n const injectGlobalConfig = getCurrentInstance?.()\n ? inject(PROVIDE_GLOBAL_CONFIG, undefined)\n : computed(() => window.__QIDIAN_GLOBAL_CONFIG__)\n\n const mergedGlobalConfig = computed(() => injectGlobalConfig?.value || zhCN)\n\n const globalConfig = computed<NonNullable<NonNullable<QdConfigProviderProps['globalConfig']>[T]>>(\n () =>\n Object.assign(\n {},\n mergedGlobalConfig.value[key as keyof typeof mergedGlobalConfig.value],\n componentLocale\n )\n )\n\n const t = <T extends keyof typeof globalConfig.value = keyof typeof globalConfig.value>(\n path: T\n ) => {\n return get(globalConfig.value, path) as NonNullable<typeof globalConfig.value[T]>\n }\n\n return {\n t,\n global: globalConfig\n }\n}\n"],"names":[],"mappings":";;;;AAMO,SAAS,UACd,KACA,iBACA;AACA,QAAM,qBAAqB,qBAAA,IACvB,OAAO,uBAAuB,MAAS,IACvC,SAAS,MAAM,OAAO,wBAAwB;AAElD,QAAM,qBAAqB,SAAS,MAAM,oBAAoB,SAAS,IAAI;AAE3E,QAAM,eAAe;AAAA,IACnB,MACE,OAAO;AAAA,MACL,CAAA;AAAA,MACA,mBAAmB,MAAM,GAA4C;AAAA,MACrE;AAAA,IAAA;AAAA,EACF;AAGJ,QAAM,IAAI,CACR,SACG;AACH,WAAO,IAAI,aAAa,OAAO,IAAI;AAAA,EACrC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA;AAEZ;"}