qidian-vue-ui 1.1.21 → 1.1.22
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.
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -7
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -11
- package/dist/_virtual/_plugin-vue_export-helper.mjs.map +0 -1
- package/dist/_virtual/dayjs.min.mjs +0 -8
- package/dist/_virtual/dayjs.min.mjs.map +0 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -5
- package/dist/_virtual/dayjs.min2.mjs.map +0 -1
- package/dist/components/auto-tooltip/index.d.ts +0 -2
- package/dist/components/auto-tooltip/index.vue.d.ts +0 -25
- package/dist/components/auto-tooltip/index.vue.mjs +0 -8
- package/dist/components/auto-tooltip/index.vue.mjs.map +0 -1
- package/dist/components/auto-tooltip/index.vue2.mjs +0 -81
- package/dist/components/auto-tooltip/index.vue2.mjs.map +0 -1
- package/dist/components/auto-tooltip/types.d.ts +0 -9
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.vue.d.ts +0 -17
- package/dist/components/avatar/index.vue.mjs +0 -8
- package/dist/components/avatar/index.vue.mjs.map +0 -1
- package/dist/components/avatar/index.vue2.mjs +0 -107
- package/dist/components/avatar/index.vue2.mjs.map +0 -1
- package/dist/components/avatar/props.d.ts +0 -5
- package/dist/components/avatar/props.mjs +0 -11
- package/dist/components/avatar/props.mjs.map +0 -1
- package/dist/components/avatar/types.d.ts +0 -9
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.vue.d.ts +0 -15
- package/dist/components/card/index.vue.mjs +0 -8
- package/dist/components/card/index.vue.mjs.map +0 -1
- package/dist/components/card/index.vue2.mjs +0 -89
- package/dist/components/card/index.vue2.mjs.map +0 -1
- package/dist/components/card/props.d.ts +0 -3
- package/dist/components/card/props.mjs +0 -7
- package/dist/components/card/props.mjs.map +0 -1
- package/dist/components/card/types.d.ts +0 -4
- package/dist/components/config-provider/config.d.ts +0 -8
- package/dist/components/config-provider/config.mjs +0 -15
- package/dist/components/config-provider/config.mjs.map +0 -1
- package/dist/components/config-provider/index.d.ts +0 -217
- package/dist/components/config-provider/index.mjs +0 -98
- package/dist/components/config-provider/index.mjs.map +0 -1
- package/dist/components/config-provider/types.d.ts +0 -82
- package/dist/components/config-provider/useConfig.d.ts +0 -241
- package/dist/components/config-provider/useConfig.mjs +0 -26
- package/dist/components/config-provider/useConfig.mjs.map +0 -1
- package/dist/components/config-renderer/compute.d.ts +0 -8
- package/dist/components/config-renderer/compute.mjs +0 -68
- package/dist/components/config-renderer/compute.mjs.map +0 -1
- package/dist/components/config-renderer/index.d.ts +0 -4
- package/dist/components/config-renderer/index.vue.d.ts +0 -7
- package/dist/components/config-renderer/index.vue.mjs +0 -126
- package/dist/components/config-renderer/index.vue.mjs.map +0 -1
- package/dist/components/config-renderer/index.vue2.mjs +0 -5
- package/dist/components/config-renderer/index.vue2.mjs.map +0 -1
- package/dist/components/config-renderer/types.d.ts +0 -39
- package/dist/components/config-renderer/utils.d.ts +0 -15
- package/dist/components/config-renderer/utils.mjs +0 -49
- package/dist/components/config-renderer/utils.mjs.map +0 -1
- package/dist/components/crud/define.d.ts +0 -5
- package/dist/components/crud/define.mjs +0 -11
- package/dist/components/crud/define.mjs.map +0 -1
- package/dist/components/crud/index.d.ts +0 -5
- package/dist/components/crud/list.vue.d.ts +0 -29
- package/dist/components/crud/list.vue.mjs +0 -8
- package/dist/components/crud/list.vue.mjs.map +0 -1
- package/dist/components/crud/list.vue2.mjs +0 -199
- package/dist/components/crud/list.vue2.mjs.map +0 -1
- package/dist/components/crud/props.d.ts +0 -70
- package/dist/components/crud/props.mjs +0 -37
- package/dist/components/crud/props.mjs.map +0 -1
- package/dist/components/crud/search.vue.d.ts +0 -44
- package/dist/components/crud/search.vue.mjs +0 -8
- package/dist/components/crud/search.vue.mjs.map +0 -1
- package/dist/components/crud/search.vue2.mjs +0 -98
- package/dist/components/crud/search.vue2.mjs.map +0 -1
- package/dist/components/crud/table.vue.d.ts +0 -35
- package/dist/components/crud/table.vue.mjs +0 -8
- package/dist/components/crud/table.vue.mjs.map +0 -1
- package/dist/components/crud/table.vue2.mjs +0 -1041
- package/dist/components/crud/table.vue2.mjs.map +0 -1
- package/dist/components/crud/types.d.ts +0 -70
- package/dist/components/dialog/form.vue.d.ts +0 -22
- package/dist/components/dialog/form.vue.mjs +0 -175
- package/dist/components/dialog/form.vue.mjs.map +0 -1
- package/dist/components/dialog/form.vue2.mjs +0 -5
- package/dist/components/dialog/form.vue2.mjs.map +0 -1
- package/dist/components/dialog/index.d.ts +0 -3
- package/dist/components/dialog/index.vue.d.ts +0 -35
- package/dist/components/dialog/index.vue.mjs +0 -111
- package/dist/components/dialog/index.vue.mjs.map +0 -1
- package/dist/components/dialog/index.vue3.mjs +0 -6
- package/dist/components/dialog/index.vue3.mjs.map +0 -1
- package/dist/components/dialog/props.d.ts +0 -58
- package/dist/components/dialog/props.mjs +0 -26
- package/dist/components/dialog/props.mjs.map +0 -1
- package/dist/components/dialog/types.d.ts +0 -18
- package/dist/components/dict/checkbox-group.vue.d.ts +0 -15
- package/dist/components/dict/checkbox-group.vue.mjs +0 -8
- package/dist/components/dict/checkbox-group.vue.mjs.map +0 -1
- package/dist/components/dict/checkbox-group.vue2.mjs +0 -78
- package/dist/components/dict/checkbox-group.vue2.mjs.map +0 -1
- package/dist/components/dict/index.d.ts +0 -5
- package/dist/components/dict/props.d.ts +0 -32
- package/dist/components/dict/props.mjs +0 -40
- package/dist/components/dict/props.mjs.map +0 -1
- package/dist/components/dict/radio-group.vue.d.ts +0 -13
- package/dist/components/dict/radio-group.vue.mjs +0 -8
- package/dist/components/dict/radio-group.vue.mjs.map +0 -1
- package/dist/components/dict/radio-group.vue2.mjs +0 -60
- package/dist/components/dict/radio-group.vue2.mjs.map +0 -1
- package/dist/components/dict/select.vue.d.ts +0 -31
- package/dist/components/dict/select.vue.mjs +0 -166
- package/dist/components/dict/select.vue.mjs.map +0 -1
- package/dist/components/dict/select.vue2.mjs +0 -5
- package/dist/components/dict/select.vue2.mjs.map +0 -1
- package/dist/components/dict/tag.vue.d.ts +0 -40
- package/dist/components/dict/tag.vue.mjs +0 -8
- package/dist/components/dict/tag.vue.mjs.map +0 -1
- package/dist/components/dict/tag.vue2.mjs +0 -98
- package/dist/components/dict/tag.vue2.mjs.map +0 -1
- package/dist/components/dict/types.d.ts +0 -22
- package/dist/components/form/config.d.ts +0 -3
- package/dist/components/form/config.mjs +0 -5
- package/dist/components/form/config.mjs.map +0 -1
- package/dist/components/form/index.d.ts +0 -5
- package/dist/components/form/index.vue.d.ts +0 -30
- package/dist/components/form/index.vue.mjs +0 -187
- package/dist/components/form/index.vue.mjs.map +0 -1
- package/dist/components/form/index.vue2.mjs +0 -5
- package/dist/components/form/index.vue2.mjs.map +0 -1
- package/dist/components/form/item.vue.d.ts +0 -23
- package/dist/components/form/item.vue.mjs +0 -8
- package/dist/components/form/item.vue.mjs.map +0 -1
- package/dist/components/form/item.vue2.mjs +0 -106
- package/dist/components/form/item.vue2.mjs.map +0 -1
- package/dist/components/form/props.d.ts +0 -45
- package/dist/components/form/props.mjs +0 -43
- package/dist/components/form/props.mjs.map +0 -1
- package/dist/components/form/types.d.ts +0 -26
- package/dist/components/grid/config.d.ts +0 -15
- package/dist/components/grid/config.mjs +0 -27
- package/dist/components/grid/config.mjs.map +0 -1
- package/dist/components/grid/index.d.ts +0 -4
- package/dist/components/grid/index.vue.d.ts +0 -19
- package/dist/components/grid/index.vue.mjs +0 -8
- package/dist/components/grid/index.vue.mjs.map +0 -1
- package/dist/components/grid/index.vue2.mjs +0 -58
- package/dist/components/grid/index.vue2.mjs.map +0 -1
- package/dist/components/grid/item.vue.d.ts +0 -18
- package/dist/components/grid/item.vue.mjs +0 -8
- package/dist/components/grid/item.vue.mjs.map +0 -1
- package/dist/components/grid/item.vue2.mjs +0 -73
- package/dist/components/grid/item.vue2.mjs.map +0 -1
- package/dist/components/grid/types.d.ts +0 -12
- package/dist/components/index.d.ts +0 -14
- package/dist/components/office/index.d.ts +0 -1
- package/dist/components/office/pdf/config.d.ts +0 -6
- package/dist/components/office/pdf/config.mjs +0 -9
- package/dist/components/office/pdf/config.mjs.map +0 -1
- package/dist/components/office/pdf/hooks/useZoom.d.ts +0 -21
- package/dist/components/office/pdf/hooks/useZoom.mjs +0 -200
- package/dist/components/office/pdf/hooks/useZoom.mjs.map +0 -1
- package/dist/components/office/pdf/index.d.ts +0 -2
- package/dist/components/office/pdf/index.vue.d.ts +0 -11
- package/dist/components/office/pdf/index.vue.mjs +0 -8
- package/dist/components/office/pdf/index.vue.mjs.map +0 -1
- package/dist/components/office/pdf/index.vue2.mjs +0 -322
- package/dist/components/office/pdf/index.vue2.mjs.map +0 -1
- package/dist/components/office/pdf/types.d.ts +0 -17
- package/dist/components/org/index.d.ts +0 -2
- package/dist/components/org/select/index.vue.d.ts +0 -28
- package/dist/components/org/select/index.vue.mjs +0 -273
- package/dist/components/org/select/index.vue.mjs.map +0 -1
- package/dist/components/org/select/index.vue3.mjs +0 -6
- package/dist/components/org/select/index.vue3.mjs.map +0 -1
- package/dist/components/org/select/props.d.ts +0 -22
- package/dist/components/org/select/props.mjs +0 -19
- package/dist/components/org/select/props.mjs.map +0 -1
- package/dist/components/org/select/types.d.ts +0 -22
- package/dist/components/service/index.d.ts +0 -4
- package/dist/components/service/list.vue.d.ts +0 -26
- package/dist/components/service/list.vue.mjs +0 -8
- package/dist/components/service/list.vue.mjs.map +0 -1
- package/dist/components/service/list.vue2.mjs +0 -251
- package/dist/components/service/list.vue2.mjs.map +0 -1
- package/dist/components/service/props.d.ts +0 -58
- package/dist/components/service/props.mjs +0 -66
- package/dist/components/service/props.mjs.map +0 -1
- package/dist/components/service/select.vue.d.ts +0 -30
- package/dist/components/service/select.vue.mjs +0 -8
- package/dist/components/service/select.vue.mjs.map +0 -1
- package/dist/components/service/select.vue2.mjs +0 -407
- package/dist/components/service/select.vue2.mjs.map +0 -1
- package/dist/components/service/table.vue.d.ts +0 -29
- package/dist/components/service/table.vue.mjs +0 -8
- package/dist/components/service/table.vue.mjs.map +0 -1
- package/dist/components/service/table.vue2.mjs +0 -693
- package/dist/components/service/table.vue2.mjs.map +0 -1
- package/dist/components/service/types.d.ts +0 -44
- package/dist/components/upload/config.d.ts +0 -4
- package/dist/components/upload/config.mjs +0 -37
- package/dist/components/upload/config.mjs.map +0 -1
- package/dist/components/upload/index.d.ts +0 -3
- package/dist/components/upload/index.vue.d.ts +0 -21
- package/dist/components/upload/index.vue.mjs +0 -8
- package/dist/components/upload/index.vue.mjs.map +0 -1
- package/dist/components/upload/index.vue2.mjs +0 -526
- package/dist/components/upload/index.vue2.mjs.map +0 -1
- package/dist/components/upload/props.d.ts +0 -27
- package/dist/components/upload/props.mjs +0 -32
- package/dist/components/upload/props.mjs.map +0 -1
- package/dist/components/upload/types.d.ts +0 -43
- package/dist/directive/hasPermi.d.ts +0 -12
- package/dist/directive/hasPermi.mjs +0 -33
- package/dist/directive/hasPermi.mjs.map +0 -1
- package/dist/directive/hasRole.d.ts +0 -12
- package/dist/directive/hasRole.mjs +0 -33
- package/dist/directive/hasRole.mjs.map +0 -1
- package/dist/directive/index.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -6
- package/dist/hooks/useAgentChat/index.d.ts +0 -15
- package/dist/hooks/useAgentChat/index.mjs +0 -202
- package/dist/hooks/useAgentChat/index.mjs.map +0 -1
- package/dist/hooks/useAgentChat/types.d.ts +0 -46
- package/dist/hooks/useDict/index.d.ts +0 -18
- package/dist/hooks/useDict/index.mjs +0 -137
- package/dist/hooks/useDict/index.mjs.map +0 -1
- package/dist/hooks/useDict/types.d.ts +0 -13
- package/dist/hooks/useDisabled.d.ts +0 -5
- package/dist/hooks/useDisabled.mjs +0 -18
- package/dist/hooks/useDisabled.mjs.map +0 -1
- package/dist/hooks/useModal.d.ts +0 -35
- package/dist/hooks/useModal.mjs +0 -179
- package/dist/hooks/useModal.mjs.map +0 -1
- package/dist/hooks/useReadonly.d.ts +0 -5
- package/dist/hooks/useReadonly.mjs +0 -18
- package/dist/hooks/useReadonly.mjs.map +0 -1
- package/dist/hooks/useUserAvatar/index.d.ts +0 -5
- package/dist/hooks/useUserAvatar/index.mjs +0 -38
- package/dist/hooks/useUserAvatar/index.mjs.map +0 -1
- package/dist/hooks/useUserAvatar/types.d.ts +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/index.mjs +0 -99
- package/dist/index.mjs.map +0 -1
- package/dist/locales/en-US.d.ts +0 -316
- package/dist/locales/en-US.mjs +0 -71
- package/dist/locales/en-US.mjs.map +0 -1
- package/dist/locales/zh-CN.d.ts +0 -316
- package/dist/locales/zh-CN.mjs +0 -68
- package/dist/locales/zh-CN.mjs.map +0 -1
- package/dist/locales/zh-TW.d.ts +0 -316
- package/dist/locales/zh-TW.mjs +0 -68
- package/dist/locales/zh-TW.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs +0 -90
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs +0 -110
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs.map +0 -1
- 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 +0 -62
- 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 +0 -1
- 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 +0 -67
- 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 +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs +0 -287
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -25
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -75
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -20
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -28
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -62
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs +0 -32
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +0 -24
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +0 -24
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +0 -26
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -35
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -44
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs +0 -25810
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs +0 -5
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs +0 -5
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs +0 -8940
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs.map +0 -1
- 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 +0 -316
- 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 +0 -1
- 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 +0 -330
- 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 +0 -1
- 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 +0 -10
- 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 +0 -1
- 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 +0 -17
- 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 +0 -1
- 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 +0 -287
- 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 +0 -1
- 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 +0 -328
- 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 +0 -1
- package/dist/qidian-vue-ui.css +0 -6054
- package/dist/utils/auth.d.ts +0 -6
- package/dist/utils/auth.mjs +0 -67
- package/dist/utils/auth.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/time.d.ts +0 -2
- package/dist/utils/time.mjs +0 -30
- package/dist/utils/time.mjs.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { TdUploadProps, UploadFile, UploadInstanceFunctions } from 'tdesign-vue-next';
|
|
2
|
-
export type QdUploadListOssByIdsResult = {
|
|
3
|
-
url: string;
|
|
4
|
-
ossId: string;
|
|
5
|
-
originalName: string;
|
|
6
|
-
size: number;
|
|
7
|
-
createTime: string;
|
|
8
|
-
}[];
|
|
9
|
-
export type QdUploadDeleteResult = boolean | {
|
|
10
|
-
success: boolean;
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
export interface QdUploadProps<F extends UploadFile = UploadFile, OR = unknown, OP extends string | number | (string | number)[] = string | number | (string | number)[], TOP = OP, UR = unknown, UP extends string | string[] = string | string[], TUP = UP, DR = unknown, DP extends string | number | (string | number)[] = string | number | (string | number)[], TDP = DP> extends Omit<TdUploadProps<F>, 'action' | 'theme' | 'value' | 'defaultFiles' | 'defaultValue' | 'modelValue' | 'accept'> {
|
|
14
|
-
modelValue?: string | string[];
|
|
15
|
-
action?: string | ((bucketConfigKey?: string) => string);
|
|
16
|
-
bucketConfigKey?: string;
|
|
17
|
-
convStr?: boolean | string;
|
|
18
|
-
valueMode?: 'ossId' | 'url';
|
|
19
|
-
theme?: TdUploadProps['theme'] | 'btn-image-popup';
|
|
20
|
-
accept?: string[];
|
|
21
|
-
onlyView?: boolean;
|
|
22
|
-
listOssByIds?: {
|
|
23
|
-
service: (url: TOP) => Promise<OR>;
|
|
24
|
-
transformParams?: (url: OP) => Promise<TOP> | TOP;
|
|
25
|
-
transformRes?: (res: OR) => Promise<QdUploadListOssByIdsResult> | QdUploadListOssByIdsResult;
|
|
26
|
-
};
|
|
27
|
-
listOssByUrls?: {
|
|
28
|
-
service: (url: TUP) => Promise<UR>;
|
|
29
|
-
transformParams?: (url: UP) => Promise<TUP> | TUP;
|
|
30
|
-
transformRes?: (res: UR) => Promise<QdUploadListOssByIdsResult> | QdUploadListOssByIdsResult;
|
|
31
|
-
};
|
|
32
|
-
del?: {
|
|
33
|
-
service: (ossId: TDP) => Promise<DR>;
|
|
34
|
-
transformParams?: (ossId: DP) => Promise<TDP> | TDP;
|
|
35
|
-
transformRes?: (res: DR) => Promise<QdUploadDeleteResult> | QdUploadDeleteResult;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface QdUploadInstanceFunctions<F extends UploadFile = UploadFile> extends Omit<UploadInstanceFunctions, 'uploadFiles'> {
|
|
39
|
-
uploadFiles: (options?: {
|
|
40
|
-
files?: F[];
|
|
41
|
-
showErrorMessage?: boolean;
|
|
42
|
-
}) => Promise<F[]>;
|
|
43
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, DirectiveBinding } from 'vue';
|
|
2
|
-
export interface HasPermiDirectiveBinding extends DirectiveBinding {
|
|
3
|
-
value: string[] | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare const hasPermiDirective: {
|
|
6
|
-
mounted(el: HTMLElement, binding: HasPermiDirectiveBinding): void;
|
|
7
|
-
updated(el: HTMLElement, binding: HasPermiDirectiveBinding): void;
|
|
8
|
-
};
|
|
9
|
-
export declare const hasPermi: {
|
|
10
|
-
install(app: App): void;
|
|
11
|
-
};
|
|
12
|
-
export default hasPermi;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { hasPermiOr } from "../utils/auth.mjs";
|
|
2
|
-
import "../_virtual/dayjs.min.mjs";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "../locales/zh-CN.mjs";
|
|
5
|
-
const hasPermiDirective = {
|
|
6
|
-
mounted(el, binding) {
|
|
7
|
-
checkPermission(el, binding);
|
|
8
|
-
},
|
|
9
|
-
updated(el, binding) {
|
|
10
|
-
checkPermission(el, binding);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
function checkPermission(el, binding) {
|
|
14
|
-
const { value } = binding;
|
|
15
|
-
if (!value) return;
|
|
16
|
-
if (value instanceof Array) {
|
|
17
|
-
const hasPermissions = hasPermiOr(value, false);
|
|
18
|
-
if (hasPermissions) return;
|
|
19
|
-
el.parentNode?.removeChild(el);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const hasPermi = {
|
|
24
|
-
install(app) {
|
|
25
|
-
app.directive("hasPermi", hasPermiDirective);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
hasPermi as default,
|
|
30
|
-
hasPermi,
|
|
31
|
-
hasPermiDirective
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=hasPermi.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasPermi.mjs","sources":["../../src/directive/hasPermi.ts"],"sourcesContent":["import type { App, DirectiveBinding } from 'vue'\nimport { auth } from '../utils'\n\nexport interface HasPermiDirectiveBinding extends DirectiveBinding {\n value: string[] | undefined\n}\n\n/**\n * v-hasPermi 操作权限处理\n */\nexport const hasPermiDirective = {\n mounted(el: HTMLElement, binding: HasPermiDirectiveBinding) {\n checkPermission(el, binding)\n },\n\n updated(el: HTMLElement, binding: HasPermiDirectiveBinding) {\n checkPermission(el, binding)\n }\n}\n\nfunction checkPermission(el: HTMLElement, binding: HasPermiDirectiveBinding) {\n const { value } = binding\n\n if (!value) return\n\n if (value instanceof Array) {\n const hasPermissions = auth.hasPermiOr(value, false)\n if (hasPermissions) return\n\n el.parentNode?.removeChild(el)\n return\n }\n}\n\nexport const hasPermi = {\n install(app: App) {\n app.directive('hasPermi', hasPermiDirective)\n }\n}\n\nexport default hasPermi\n"],"names":["auth.hasPermiOr"],"mappings":";;;;AAUO,MAAM,oBAAoB;AAAA,EAC/B,QAAQ,IAAiB,SAAmC;AAC1D,oBAAgB,IAAI,OAAO;AAAA,EAC7B;AAAA,EAEA,QAAQ,IAAiB,SAAmC;AAC1D,oBAAgB,IAAI,OAAO;AAAA,EAC7B;AACF;AAEA,SAAS,gBAAgB,IAAiB,SAAmC;AAC3E,QAAM,EAAE,UAAU;AAElB,MAAI,CAAC,MAAO;AAEZ,MAAI,iBAAiB,OAAO;AAC1B,UAAM,iBAAiBA,WAAgB,OAAO,KAAK;AACnD,QAAI,eAAgB;AAEpB,OAAG,YAAY,YAAY,EAAE;AAC7B;AAAA,EACF;AACF;AAEO,MAAM,WAAW;AAAA,EACtB,QAAQ,KAAU;AAChB,QAAI,UAAU,YAAY,iBAAiB;AAAA,EAC7C;AACF;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, DirectiveBinding } from 'vue';
|
|
2
|
-
export interface HasRoleDirectiveBinding extends DirectiveBinding {
|
|
3
|
-
value: string[] | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare const hasRoleDirective: {
|
|
6
|
-
mounted(el: HTMLElement, binding: HasRoleDirectiveBinding): void;
|
|
7
|
-
updated(el: HTMLElement, binding: HasRoleDirectiveBinding): void;
|
|
8
|
-
};
|
|
9
|
-
export declare const hasRole: {
|
|
10
|
-
install(app: App): void;
|
|
11
|
-
};
|
|
12
|
-
export default hasRole;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { hasRoleOr } from "../utils/auth.mjs";
|
|
2
|
-
import "../_virtual/dayjs.min.mjs";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "../locales/zh-CN.mjs";
|
|
5
|
-
const hasRoleDirective = {
|
|
6
|
-
mounted(el, binding) {
|
|
7
|
-
checkRole(el, binding);
|
|
8
|
-
},
|
|
9
|
-
updated(el, binding) {
|
|
10
|
-
checkRole(el, binding);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
function checkRole(el, binding) {
|
|
14
|
-
const { value } = binding;
|
|
15
|
-
if (!value) return;
|
|
16
|
-
if (value instanceof Array) {
|
|
17
|
-
const hasRole2 = hasRoleOr(value, false);
|
|
18
|
-
if (hasRole2) return;
|
|
19
|
-
el.parentNode?.removeChild(el);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const hasRole = {
|
|
24
|
-
install(app) {
|
|
25
|
-
app.directive("hasRole", hasRoleDirective);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
hasRole as default,
|
|
30
|
-
hasRole,
|
|
31
|
-
hasRoleDirective
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=hasRole.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasRole.mjs","sources":["../../src/directive/hasRole.ts"],"sourcesContent":["import type { App, DirectiveBinding } from 'vue'\nimport { auth } from '../utils'\n\nexport interface HasRoleDirectiveBinding extends DirectiveBinding {\n value: string[] | undefined\n}\n\n/**\n * v-hasRole 角色权限处理\n */\nexport const hasRoleDirective = {\n mounted(el: HTMLElement, binding: HasRoleDirectiveBinding) {\n checkRole(el, binding)\n },\n\n updated(el: HTMLElement, binding: HasRoleDirectiveBinding) {\n checkRole(el, binding)\n }\n}\n\nfunction checkRole(el: HTMLElement, binding: HasRoleDirectiveBinding) {\n const { value } = binding\n if (!value) return\n\n if (value instanceof Array) {\n const hasRole = auth.hasRoleOr(value, false)\n if (hasRole) return\n\n el.parentNode?.removeChild(el)\n return\n }\n}\n\nexport const hasRole = {\n install(app: App) {\n app.directive('hasRole', hasRoleDirective)\n }\n}\n\nexport default hasRole\n"],"names":["hasRole","auth.hasRoleOr"],"mappings":";;;;AAUO,MAAM,mBAAmB;AAAA,EAC9B,QAAQ,IAAiB,SAAkC;AACzD,cAAU,IAAI,OAAO;AAAA,EACvB;AAAA,EAEA,QAAQ,IAAiB,SAAkC;AACzD,cAAU,IAAI,OAAO;AAAA,EACvB;AACF;AAEA,SAAS,UAAU,IAAiB,SAAkC;AACpE,QAAM,EAAE,UAAU;AAClB,MAAI,CAAC,MAAO;AAEZ,MAAI,iBAAiB,OAAO;AAC1B,UAAMA,WAAUC,UAAe,OAAO,KAAK;AAC3C,QAAID,SAAS;AAEb,OAAG,YAAY,YAAY,EAAE;AAC7B;AAAA,EACF;AACF;AAEO,MAAM,UAAU;AAAA,EACrB,QAAQ,KAAU;AAChB,QAAI,UAAU,WAAW,gBAAgB;AAAA,EAC3C;AACF;"}
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SendOptions, UseAgentChatOptions } from './types';
|
|
2
|
-
export declare function useAgentChat(options: UseAgentChatOptions): {
|
|
3
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
4
|
-
agentId: import("vue").Ref<string | undefined, string | undefined>;
|
|
5
|
-
apiKey: import("vue").Ref<string | undefined, string | undefined>;
|
|
6
|
-
sessionId: import("vue").Ref<string, string>;
|
|
7
|
-
send: ({ prompt, files, reSend, extParams, refreshSessionId, parseContent, onOpen, onMessage, onClose, onError }: SendOptions) => Promise<{
|
|
8
|
-
content: string;
|
|
9
|
-
reasoning: string;
|
|
10
|
-
parsedContent: unknown;
|
|
11
|
-
useTime: number;
|
|
12
|
-
}>;
|
|
13
|
-
stop: () => void;
|
|
14
|
-
};
|
|
15
|
-
export type { UseAgentChatOptions, SendOptions, SendFile } from './types';
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { ref, onBeforeUnmount } from "vue";
|
|
2
|
-
import { useCsl, isEmpty, to, suspectedWrapperPromise, parseRelaxedJSON } from "qidian-shared";
|
|
3
|
-
import { useModal } from "../useModal.mjs";
|
|
4
|
-
import { useConfig } from "../../components/config-provider/useConfig.mjs";
|
|
5
|
-
import dayjs from "../../_virtual/dayjs.min.mjs";
|
|
6
|
-
import { fetchEventSource } from "../../node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs";
|
|
7
|
-
const csl = useCsl("useAgentChat");
|
|
8
|
-
function useAgentChat(options) {
|
|
9
|
-
const { t } = useConfig("chat");
|
|
10
|
-
const { msgError, alertError, alertWarning } = useModal();
|
|
11
|
-
const globalOpt = window.__QIDIAN_AGENT_CHAT__ || {};
|
|
12
|
-
const mergeOpt = { ...globalOpt, ...options };
|
|
13
|
-
const loading = ref(false);
|
|
14
|
-
const agentId = ref(mergeOpt.agentId);
|
|
15
|
-
const apiKey = ref(mergeOpt.apiKey);
|
|
16
|
-
const sessionId = ref("");
|
|
17
|
-
let abortController;
|
|
18
|
-
async function send({
|
|
19
|
-
prompt,
|
|
20
|
-
files,
|
|
21
|
-
reSend,
|
|
22
|
-
extParams,
|
|
23
|
-
refreshSessionId,
|
|
24
|
-
parseContent,
|
|
25
|
-
onOpen,
|
|
26
|
-
onMessage,
|
|
27
|
-
onClose,
|
|
28
|
-
onError
|
|
29
|
-
}) {
|
|
30
|
-
const allData = { content: "", reasoning: "", parsedContent: void 0, useTime: 0 };
|
|
31
|
-
if (!prompt && isEmpty(files) && isEmpty(extParams)) return allData;
|
|
32
|
-
loading.value = true;
|
|
33
|
-
const [agInfoErr, agInfo] = await to(getAgentInfo());
|
|
34
|
-
if (agInfoErr) {
|
|
35
|
-
loading.value = false;
|
|
36
|
-
msgError(agInfoErr.message);
|
|
37
|
-
throw agInfoErr;
|
|
38
|
-
}
|
|
39
|
-
const [sIdErr, sId] = await to(getSessionId({ ...agInfo, refreshSessionId }));
|
|
40
|
-
if (sIdErr) {
|
|
41
|
-
loading.value = false;
|
|
42
|
-
msgError(sIdErr.message);
|
|
43
|
-
throw sIdErr;
|
|
44
|
-
}
|
|
45
|
-
const getUrl = mergeOpt.getUrl;
|
|
46
|
-
if (!getUrl) {
|
|
47
|
-
loading.value = false;
|
|
48
|
-
const msg = t("failedObtainUrlMessage");
|
|
49
|
-
msgError(msg);
|
|
50
|
-
throw new Error(msg);
|
|
51
|
-
}
|
|
52
|
-
abortController = new AbortController();
|
|
53
|
-
const sendTime = Date.now();
|
|
54
|
-
const body = JSON.stringify({
|
|
55
|
-
message: prompt || "",
|
|
56
|
-
re_chat: reSend ?? false,
|
|
57
|
-
document_list: files,
|
|
58
|
-
client_id: agInfo.apiKey,
|
|
59
|
-
client_type: "API_KEY",
|
|
60
|
-
...extParams
|
|
61
|
-
});
|
|
62
|
-
csl.log.dev(
|
|
63
|
-
`send.${sId}`,
|
|
64
|
-
"------------------------------------------------------------------------------------"
|
|
65
|
-
);
|
|
66
|
-
csl.log.dev(`send.${sId}`, { agentInfo: agInfo, body });
|
|
67
|
-
return new Promise((resolve, reject) => {
|
|
68
|
-
let timeoutId;
|
|
69
|
-
let isFirstMessage = true;
|
|
70
|
-
function triggerError(err) {
|
|
71
|
-
allData.useTime = Date.now() - sendTime;
|
|
72
|
-
csl.log.dev(`onError.${sId}`, err);
|
|
73
|
-
loading.value = false;
|
|
74
|
-
if (timeoutId) clearTimeout(timeoutId);
|
|
75
|
-
onError?.(err);
|
|
76
|
-
reject(err);
|
|
77
|
-
}
|
|
78
|
-
function setTimeoutHandler() {
|
|
79
|
-
if (timeoutId) clearTimeout(timeoutId);
|
|
80
|
-
timeoutId = setTimeout(() => {
|
|
81
|
-
const err = new Error(t("agentProcessingTimeoutMessage"));
|
|
82
|
-
alertError(err.message);
|
|
83
|
-
triggerError(err);
|
|
84
|
-
stop();
|
|
85
|
-
}, 20 * 1e3);
|
|
86
|
-
}
|
|
87
|
-
fetchEventSource(getUrl(agInfo.agentId, sId), {
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers: {
|
|
90
|
-
"Content-Type": "application/json;charset=UTF-8",
|
|
91
|
-
Authorization: `Bearer ${agInfo.apiKey}`
|
|
92
|
-
},
|
|
93
|
-
signal: abortController?.signal,
|
|
94
|
-
openWhenHidden: true,
|
|
95
|
-
body,
|
|
96
|
-
onopen: async (res) => {
|
|
97
|
-
csl.log.dev(`onOpen.${sId}`, res);
|
|
98
|
-
await onOpen?.(res);
|
|
99
|
-
},
|
|
100
|
-
onmessage: (res) => {
|
|
101
|
-
const { data } = res;
|
|
102
|
-
let reData = { content: "", reasoning: "" };
|
|
103
|
-
try {
|
|
104
|
-
reData = parseRelaxedJSON(data);
|
|
105
|
-
if (reData.content) allData.content += reData.content;
|
|
106
|
-
if (reData.reasoning) allData.reasoning += reData.reasoning;
|
|
107
|
-
if (isFirstMessage && reData.content || !isFirstMessage) {
|
|
108
|
-
isFirstMessage = false;
|
|
109
|
-
setTimeoutHandler();
|
|
110
|
-
}
|
|
111
|
-
} catch (err) {
|
|
112
|
-
console.warn("[useAgentChat.send.onMessage]", err);
|
|
113
|
-
}
|
|
114
|
-
csl.log.dev(`onMessage.${sId}`, dayjs().format("HH:mm:ss"), reData);
|
|
115
|
-
onMessage?.({ data: reData, allData });
|
|
116
|
-
},
|
|
117
|
-
onclose: () => {
|
|
118
|
-
if (parseContent) {
|
|
119
|
-
try {
|
|
120
|
-
if (timeoutId) clearTimeout(timeoutId);
|
|
121
|
-
allData.parsedContent = parseRelaxedJSON(allData.content);
|
|
122
|
-
} catch (err) {
|
|
123
|
-
alertError({
|
|
124
|
-
header: t("failedParseContentMessage"),
|
|
125
|
-
body: err.message
|
|
126
|
-
});
|
|
127
|
-
triggerError(err);
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
if (isEmpty(allData.parsedContent)) {
|
|
131
|
-
const err = new Error(t("parsedContentEmptyMessage"));
|
|
132
|
-
alertWarning({
|
|
133
|
-
header: t("failedParseContentMessage"),
|
|
134
|
-
body: err.message
|
|
135
|
-
});
|
|
136
|
-
triggerError(err);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (timeoutId) clearTimeout(timeoutId);
|
|
141
|
-
allData.useTime = Date.now() - sendTime;
|
|
142
|
-
csl.log.dev(`onClose.${sId}`, allData);
|
|
143
|
-
loading.value = false;
|
|
144
|
-
onClose?.(allData);
|
|
145
|
-
resolve(allData);
|
|
146
|
-
},
|
|
147
|
-
onerror: (err) => {
|
|
148
|
-
const reErr = err ? err : new Error(t("apiUnknownErrorMessage"));
|
|
149
|
-
alertError(reErr.message);
|
|
150
|
-
triggerError(reErr);
|
|
151
|
-
throw reErr;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function stop() {
|
|
157
|
-
if (!abortController) return;
|
|
158
|
-
csl.log.dev(`stop.${sessionId.value}`);
|
|
159
|
-
abortController.abort();
|
|
160
|
-
}
|
|
161
|
-
async function getAgentInfo() {
|
|
162
|
-
if (agentId.value && apiKey.value) {
|
|
163
|
-
return { agentId: agentId.value, apiKey: apiKey.value };
|
|
164
|
-
}
|
|
165
|
-
const getFn = mergeOpt.getAgentInfo;
|
|
166
|
-
if (!getFn) throw new Error(t("failedObtainAgentInfoMessage"));
|
|
167
|
-
const [err, res] = await suspectedWrapperPromise(getFn());
|
|
168
|
-
if (err) throw err;
|
|
169
|
-
if (!res?.agentId || !res.apiKey) throw new Error(t("failedObtainAgentInfoMessage"));
|
|
170
|
-
csl.log.dev("getAgentInfo", res);
|
|
171
|
-
return res;
|
|
172
|
-
}
|
|
173
|
-
async function getSessionId({
|
|
174
|
-
agentId: agentId2,
|
|
175
|
-
apiKey: apiKey2,
|
|
176
|
-
refreshSessionId
|
|
177
|
-
}) {
|
|
178
|
-
if (sessionId.value && !refreshSessionId) return sessionId.value;
|
|
179
|
-
const getFn = mergeOpt.getSessionId;
|
|
180
|
-
if (!getFn) throw new Error(t("failedObtainSessionIdMessage"));
|
|
181
|
-
const [err, res] = await suspectedWrapperPromise(getFn(agentId2, apiKey2));
|
|
182
|
-
if (err) throw err;
|
|
183
|
-
sessionId.value = res;
|
|
184
|
-
csl.log.dev("getSessionId", res);
|
|
185
|
-
return res;
|
|
186
|
-
}
|
|
187
|
-
onBeforeUnmount(() => {
|
|
188
|
-
stop();
|
|
189
|
-
});
|
|
190
|
-
return {
|
|
191
|
-
loading,
|
|
192
|
-
agentId,
|
|
193
|
-
apiKey,
|
|
194
|
-
sessionId,
|
|
195
|
-
send,
|
|
196
|
-
stop
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
export {
|
|
200
|
-
useAgentChat
|
|
201
|
-
};
|
|
202
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/hooks/useAgentChat/index.ts"],"sourcesContent":["import type { SendOptions, UseAgentChatOptions } from './types'\nimport { onBeforeUnmount, ref } from 'vue'\nimport { isEmpty, parseRelaxedJSON, suspectedWrapperPromise, to, useCsl } from 'qidian-shared'\nimport { fetchEventSource } from '@microsoft/fetch-event-source'\nimport { useModal } from '../useModal'\nimport { useConfig } from '../../components/config-provider/useConfig'\nimport dayjs from 'dayjs'\n\nconst csl = useCsl('useAgentChat')\n\nexport function useAgentChat(options: UseAgentChatOptions) {\n const { t } = useConfig('chat')\n const { msgError, alertError, alertWarning } = useModal()\n const globalOpt = window.__QIDIAN_AGENT_CHAT__ || {}\n const mergeOpt = { ...globalOpt, ...options }\n\n const loading = ref(false)\n const agentId = ref(mergeOpt.agentId)\n const apiKey = ref(mergeOpt.apiKey)\n const sessionId = ref('')\n let abortController: AbortController | undefined\n\n async function send({\n prompt,\n files,\n reSend,\n extParams,\n refreshSessionId,\n parseContent,\n onOpen,\n onMessage,\n onClose,\n onError\n }: SendOptions): Promise<{\n content: string\n reasoning: string\n parsedContent: unknown\n useTime: number\n }> {\n const allData = { content: '', reasoning: '', parsedContent: undefined, useTime: 0 }\n if (!prompt && isEmpty(files) && isEmpty(extParams)) return allData\n\n loading.value = true\n\n const [agInfoErr, agInfo] = await to(getAgentInfo())\n if (agInfoErr) {\n loading.value = false\n msgError(agInfoErr.message)\n throw agInfoErr\n }\n\n const [sIdErr, sId] = await to(getSessionId({ ...agInfo, refreshSessionId }))\n if (sIdErr) {\n loading.value = false\n msgError(sIdErr.message)\n throw sIdErr\n }\n\n const getUrl = mergeOpt.getUrl\n if (!getUrl) {\n loading.value = false\n const msg = t('failedObtainUrlMessage')\n msgError(msg)\n throw new Error(msg)\n }\n\n abortController = new AbortController()\n const sendTime = Date.now()\n const body = JSON.stringify({\n message: prompt || '',\n re_chat: reSend ?? false,\n document_list: files,\n client_id: agInfo.apiKey,\n client_type: 'API_KEY',\n ...extParams\n })\n\n csl.log.dev(\n `send.${sId}`,\n '------------------------------------------------------------------------------------'\n )\n csl.log.dev(`send.${sId}`, { agentInfo: agInfo, body })\n return new Promise((resolve, reject) => {\n let timeoutId: NodeJS.Timeout | undefined\n let isFirstMessage = true\n\n function triggerError(err: Error) {\n allData.useTime = Date.now() - sendTime\n csl.log.dev(`onError.${sId}`, err)\n loading.value = false\n if (timeoutId) clearTimeout(timeoutId)\n onError?.(err)\n reject(err)\n }\n\n function setTimeoutHandler() {\n if (timeoutId) clearTimeout(timeoutId)\n timeoutId = setTimeout(() => {\n const err = new Error(t('agentProcessingTimeoutMessage'))\n alertError(err.message)\n triggerError(err)\n stop()\n }, 20 * 1000)\n }\n\n fetchEventSource(getUrl(agInfo.agentId, sId), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json;charset=UTF-8',\n Authorization: `Bearer ${agInfo.apiKey}`\n },\n signal: abortController?.signal,\n openWhenHidden: true,\n body,\n\n onopen: async (res) => {\n csl.log.dev(`onOpen.${sId}`, res)\n await onOpen?.(res)\n },\n onmessage: (res) => {\n const { data } = res\n let reData = { content: '', reasoning: '' }\n try {\n reData = parseRelaxedJSON(data)\n if (reData.content) allData.content += reData.content\n if (reData.reasoning) allData.reasoning += reData.reasoning\n\n // 第一次正确获取数据后,开始60秒超时计时\n if ((isFirstMessage && reData.content) || !isFirstMessage) {\n isFirstMessage = false\n setTimeoutHandler()\n }\n } catch (err) {\n console.warn('[useAgentChat.send.onMessage]', err)\n }\n\n csl.log.dev(`onMessage.${sId}`, dayjs().format('HH:mm:ss'), reData)\n onMessage?.({ data: reData, allData })\n },\n\n onclose: () => {\n if (parseContent) {\n try {\n if (timeoutId) clearTimeout(timeoutId)\n allData.parsedContent = parseRelaxedJSON(allData.content)\n } catch (err) {\n alertError({\n header: t('failedParseContentMessage'),\n body: (err as Error).message\n })\n triggerError(err as Error)\n return\n }\n\n if (isEmpty(allData.parsedContent)) {\n const err = new Error(t('parsedContentEmptyMessage'))\n alertWarning({\n header: t('failedParseContentMessage'),\n body: err.message\n })\n triggerError(err)\n return\n }\n }\n\n if (timeoutId) clearTimeout(timeoutId)\n\n allData.useTime = Date.now() - sendTime\n csl.log.dev(`onClose.${sId}`, allData)\n loading.value = false\n onClose?.(allData)\n resolve(allData)\n },\n onerror: (err) => {\n const reErr = err ? err : new Error(t('apiUnknownErrorMessage'))\n alertError(reErr.message)\n triggerError(reErr)\n throw reErr\n }\n })\n })\n }\n\n function stop() {\n if (!abortController) return\n\n csl.log.dev(`stop.${sessionId.value}`)\n abortController.abort()\n }\n\n async function getAgentInfo() {\n if (agentId.value && apiKey.value) {\n return { agentId: agentId.value, apiKey: apiKey.value }\n }\n\n const getFn = mergeOpt.getAgentInfo\n if (!getFn) throw new Error(t('failedObtainAgentInfoMessage'))\n\n const [err, res] = await suspectedWrapperPromise(getFn())\n if (err) throw err\n\n if (!res?.agentId || !res.apiKey) throw new Error(t('failedObtainAgentInfoMessage'))\n\n csl.log.dev('getAgentInfo', res)\n return res as { agentId: string; apiKey: string }\n }\n\n async function getSessionId({\n agentId,\n apiKey,\n refreshSessionId\n }: { agentId: string; apiKey: string } & Pick<SendOptions, 'refreshSessionId'>) {\n if (sessionId.value && !refreshSessionId) return sessionId.value\n\n const getFn = mergeOpt.getSessionId\n if (!getFn) throw new Error(t('failedObtainSessionIdMessage'))\n\n const [err, res] = await suspectedWrapperPromise(getFn(agentId, apiKey))\n if (err) throw err\n\n sessionId.value = res\n csl.log.dev('getSessionId', res)\n return res\n }\n\n onBeforeUnmount(() => {\n stop()\n })\n\n return {\n loading,\n agentId,\n apiKey,\n sessionId,\n send,\n stop\n }\n}\n\nexport type { UseAgentChatOptions, SendOptions, SendFile } from './types'\n"],"names":["agentId","apiKey"],"mappings":"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"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { FetchEventSourceInit } from '@microsoft/fetch-event-source';
|
|
2
|
-
export interface AgentInfo {
|
|
3
|
-
agentId?: string;
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UseAgentChatOptions extends AgentInfo {
|
|
7
|
-
getAgentInfo?: () => undefined | null | AgentInfo | Promise<undefined | null | AgentInfo>;
|
|
8
|
-
getSessionId?: (agentId: string, apiKey: string) => string | Promise<string>;
|
|
9
|
-
getUrl?: (agentId: string, sessionId: string) => string;
|
|
10
|
-
}
|
|
11
|
-
export interface SendFile {
|
|
12
|
-
fileId?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
size?: number;
|
|
17
|
-
uploadTime?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface SendOptions {
|
|
20
|
-
prompt?: string;
|
|
21
|
-
files?: SendFile[];
|
|
22
|
-
reSend?: boolean;
|
|
23
|
-
extParams?: Record<string, unknown>;
|
|
24
|
-
refreshSessionId?: boolean;
|
|
25
|
-
parseContent?: boolean;
|
|
26
|
-
onOpen?: (res: Response) => Promise<void> | void;
|
|
27
|
-
onMessage?: (res: {
|
|
28
|
-
data: {
|
|
29
|
-
content: string;
|
|
30
|
-
reasoning: string;
|
|
31
|
-
};
|
|
32
|
-
allData: {
|
|
33
|
-
content: string;
|
|
34
|
-
reasoning: string;
|
|
35
|
-
parsedContent: unknown;
|
|
36
|
-
useTime: number;
|
|
37
|
-
};
|
|
38
|
-
}) => void;
|
|
39
|
-
onClose?: (res: {
|
|
40
|
-
content: string;
|
|
41
|
-
reasoning: string;
|
|
42
|
-
parsedContent: unknown;
|
|
43
|
-
useTime: number;
|
|
44
|
-
}) => void;
|
|
45
|
-
onError?: FetchEventSourceInit['onerror'];
|
|
46
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
import type { QdDictItem } from './types';
|
|
3
|
-
type Camelize<T extends string> = T extends `${infer First}_${infer Rest}` ? `${First}${Capitalize<Camelize<Rest>>}` : T extends `${infer First}-${infer Rest}` ? `${First}${Capitalize<Camelize<Rest>>}` : T;
|
|
4
|
-
export declare function useDict<T extends string>(...args: T[]): {
|
|
5
|
-
[K in T as `${Camelize<K>}`]: Ref<QdDictItem[]>;
|
|
6
|
-
} & {
|
|
7
|
-
[K in T as `${Camelize<K>}Load`]: Ref<boolean>;
|
|
8
|
-
} & {
|
|
9
|
-
[K in T as `${Camelize<K>}Ready`]: (callback?: (data: QdDictItem[]) => void) => Promise<QdDictItem[]>;
|
|
10
|
-
};
|
|
11
|
-
interface UseDictDynamicOptions {
|
|
12
|
-
onInit?: (options: QdDictItem[]) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function useDictDynamic(dictType: Ref<string | undefined>, hookOptions?: UseDictDynamicOptions): {
|
|
15
|
-
options: Ref<QdDictItem[]>;
|
|
16
|
-
loading: Ref<boolean>;
|
|
17
|
-
};
|
|
18
|
-
export type { QdDictBaseOptions, QdDictItem } from './types';
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { camelize, to, suspectedWrapperPromise } from "qidian-shared";
|
|
2
|
-
import { ref, watchEffect, toRefs } from "vue";
|
|
3
|
-
const dictCache = /* @__PURE__ */ new Map();
|
|
4
|
-
const dictPromiseCache = /* @__PURE__ */ new Map();
|
|
5
|
-
function useDict(...args) {
|
|
6
|
-
const res = ref({});
|
|
7
|
-
const loadingMap = ref({});
|
|
8
|
-
args.forEach(async (dictType) => {
|
|
9
|
-
const camelKey = camelize(dictType);
|
|
10
|
-
res.value[camelKey] = [];
|
|
11
|
-
const loadKey = `${camelKey}Load`;
|
|
12
|
-
loadingMap.value[loadKey] = false;
|
|
13
|
-
if (dictCache.has(camelKey)) {
|
|
14
|
-
res.value[camelKey] = dictCache.get(camelKey);
|
|
15
|
-
} else {
|
|
16
|
-
loadingMap.value[loadKey] = true;
|
|
17
|
-
let dictPromise;
|
|
18
|
-
if (dictPromiseCache.has(camelKey)) {
|
|
19
|
-
dictPromise = dictPromiseCache.get(camelKey);
|
|
20
|
-
} else {
|
|
21
|
-
dictPromise = getDict(dictType);
|
|
22
|
-
dictPromiseCache.set(camelKey, dictPromise);
|
|
23
|
-
}
|
|
24
|
-
const [dictErr, dictRes] = await to(dictPromise);
|
|
25
|
-
if (dictErr) {
|
|
26
|
-
loadingMap.value[loadKey] = false;
|
|
27
|
-
dictPromiseCache.delete(camelKey);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
dictCache.set(camelKey, dictRes);
|
|
31
|
-
res.value[camelKey] = dictRes;
|
|
32
|
-
loadingMap.value[loadKey] = false;
|
|
33
|
-
dictPromiseCache.delete(camelKey);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const result = toRefs(res.value);
|
|
37
|
-
const loadingRefs = toRefs(loadingMap.value);
|
|
38
|
-
const readyMethods = {};
|
|
39
|
-
args.forEach((dictType) => {
|
|
40
|
-
const camelKey = camelize(dictType);
|
|
41
|
-
const loadKey = `${camelKey}Load`;
|
|
42
|
-
readyMethods[`${camelKey}Ready`] = async (callback) => {
|
|
43
|
-
if (dictCache.has(camelKey)) {
|
|
44
|
-
const data2 = dictCache.get(camelKey);
|
|
45
|
-
callback?.(data2);
|
|
46
|
-
return data2;
|
|
47
|
-
}
|
|
48
|
-
while (loadingMap.value[loadKey]) {
|
|
49
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
50
|
-
}
|
|
51
|
-
const data = dictCache.get(camelKey) || [];
|
|
52
|
-
callback?.(data);
|
|
53
|
-
return data;
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
...result,
|
|
58
|
-
...loadingRefs,
|
|
59
|
-
...readyMethods
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function useDictDynamic(dictType, hookOptions) {
|
|
63
|
-
const dictOptions = ref([]);
|
|
64
|
-
const loading = ref(false);
|
|
65
|
-
async function loadDict(type) {
|
|
66
|
-
if (!type) {
|
|
67
|
-
dictOptions.value = [];
|
|
68
|
-
hookOptions?.onInit?.([]);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
const camelKey = type ? camelize(type) : type;
|
|
72
|
-
if (dictCache.has(camelKey)) {
|
|
73
|
-
dictOptions.value = dictCache.get(camelKey);
|
|
74
|
-
hookOptions?.onInit?.(dictOptions.value);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
loading.value = true;
|
|
78
|
-
let dictPromise;
|
|
79
|
-
if (dictPromiseCache.has(camelKey)) {
|
|
80
|
-
dictPromise = dictPromiseCache.get(camelKey);
|
|
81
|
-
} else {
|
|
82
|
-
dictPromise = getDict(type);
|
|
83
|
-
dictPromiseCache.set(camelKey, dictPromise);
|
|
84
|
-
}
|
|
85
|
-
const [dictErr, dictRes] = await to(dictPromise);
|
|
86
|
-
if (dictErr) {
|
|
87
|
-
dictOptions.value = [];
|
|
88
|
-
loading.value = false;
|
|
89
|
-
dictPromiseCache.delete(camelKey);
|
|
90
|
-
hookOptions?.onInit?.([]);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
dictCache.set(camelKey, dictRes);
|
|
94
|
-
dictOptions.value = dictRes;
|
|
95
|
-
loading.value = false;
|
|
96
|
-
dictPromiseCache.delete(camelKey);
|
|
97
|
-
hookOptions?.onInit?.(dictOptions.value);
|
|
98
|
-
}
|
|
99
|
-
watchEffect(() => {
|
|
100
|
-
loadDict(dictType.value);
|
|
101
|
-
});
|
|
102
|
-
return {
|
|
103
|
-
options: dictOptions,
|
|
104
|
-
loading
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
async function getDict(dictType) {
|
|
108
|
-
const dictOptions = window.__QIDIAN_DICT__;
|
|
109
|
-
if (!dictOptions) {
|
|
110
|
-
const msg = "[useDict] 字典服务未提供,请确保使用了 QdConfigProvider";
|
|
111
|
-
console.warn(msg);
|
|
112
|
-
throw new Error(msg);
|
|
113
|
-
}
|
|
114
|
-
const { service, transformParams, transformRes } = dictOptions;
|
|
115
|
-
let currentParams = dictType;
|
|
116
|
-
if (transformParams) {
|
|
117
|
-
const [tpErr, tpRes] = await suspectedWrapperPromise(transformParams(currentParams));
|
|
118
|
-
if (tpErr) throw tpErr;
|
|
119
|
-
currentParams = tpRes;
|
|
120
|
-
}
|
|
121
|
-
const [serviceErr, serviceRes] = await suspectedWrapperPromise(service(currentParams));
|
|
122
|
-
if (serviceErr) throw serviceErr;
|
|
123
|
-
let res;
|
|
124
|
-
if (transformRes) {
|
|
125
|
-
const [trErr, trRes] = await suspectedWrapperPromise(transformRes(serviceRes));
|
|
126
|
-
if (trErr) throw trErr;
|
|
127
|
-
res = trRes;
|
|
128
|
-
} else {
|
|
129
|
-
res = serviceRes;
|
|
130
|
-
}
|
|
131
|
-
return res;
|
|
132
|
-
}
|
|
133
|
-
export {
|
|
134
|
-
useDict,
|
|
135
|
-
useDictDynamic
|
|
136
|
-
};
|
|
137
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/hooks/useDict/index.ts"],"sourcesContent":["import type { Ref } from 'vue'\nimport type { QdDictItem } from './types'\nimport { suspectedWrapperPromise, to, camelize } from 'qidian-shared'\nimport { ref, toRefs, watchEffect } from 'vue'\n\n// 类型版本的 camelize\ntype Camelize<T extends string> = T extends `${infer First}_${infer Rest}`\n ? `${First}${Capitalize<Camelize<Rest>>}`\n : T extends `${infer First}-${infer Rest}`\n ? `${First}${Capitalize<Camelize<Rest>>}`\n : T\n\nconst dictCache = new Map<string, QdDictItem[]>()\nconst dictPromiseCache = new Map<string, Promise<QdDictItem[]>>()\n\nexport function useDict<T extends string>(\n ...args: T[]\n): { [K in T as `${Camelize<K>}`]: Ref<QdDictItem[]> } & {\n [K in T as `${Camelize<K>}Load`]: Ref<boolean>\n} & {\n [K in T as `${Camelize<K>}Ready`]: (\n callback?: (data: QdDictItem[]) => void\n ) => Promise<QdDictItem[]>\n} {\n const res = ref<Record<string, QdDictItem[]>>({})\n const loadingMap = ref<Record<string, boolean>>({})\n\n args.forEach(async (dictType) => {\n const camelKey = camelize(dictType)\n res.value[camelKey] = [] as QdDictItem[]\n const loadKey = `${camelKey}Load`\n loadingMap.value[loadKey] = false\n\n // 先从缓存中获取\n if (dictCache.has(camelKey)) {\n res.value[camelKey] = dictCache.get(camelKey)!\n } else {\n // 设置 loading\n loadingMap.value[loadKey] = true\n\n // 缓存中没有则调用服务获取\n let dictPromise: Promise<QdDictItem[]>\n\n if (dictPromiseCache.has(camelKey)) {\n dictPromise = dictPromiseCache.get(camelKey)!\n } else {\n dictPromise = getDict(dictType)\n dictPromiseCache.set(camelKey, dictPromise)\n }\n\n const [dictErr, dictRes] = await to(dictPromise)\n if (dictErr) {\n loadingMap.value[loadKey] = false\n dictPromiseCache.delete(camelKey)\n return\n }\n\n dictCache.set(camelKey, dictRes as QdDictItem[])\n res.value[camelKey] = dictRes as QdDictItem[]\n loadingMap.value[loadKey] = false\n dictPromiseCache.delete(camelKey)\n }\n })\n\n // 使用 toRefs 保持响应式\n const result = toRefs(res.value) as Record<string, Ref<QdDictItem[]>>\n const loadingRefs = toRefs(loadingMap.value) as Record<string, Ref<boolean>>\n\n const readyMethods = {} as Record<\n string,\n (callback?: (data: QdDictItem[]) => void) => Promise<QdDictItem[]>\n >\n args.forEach((dictType) => {\n const camelKey = camelize(dictType)\n const loadKey = `${camelKey}Load`\n\n readyMethods[`${camelKey}Ready`] = async (callback?: (data: QdDictItem[]) => void) => {\n // 如果已经有缓存,直接执行\n if (dictCache.has(camelKey)) {\n const data = dictCache.get(camelKey)!\n callback?.(data)\n return data\n }\n\n // 等待 loading 变成 false\n while (loadingMap.value[loadKey]) {\n await new Promise((resolve) => setTimeout(resolve, 10))\n }\n\n // 返回数据并执行回调\n const data = dictCache.get(camelKey) || []\n callback?.(data)\n return data\n }\n })\n\n return {\n ...result,\n ...loadingRefs,\n ...readyMethods\n } as { [K in T as `${Camelize<K>}`]: Ref<QdDictItem[]> } & {\n [K in T as `${Camelize<K>}Load`]: Ref<boolean>\n } & {\n [K in T as `${Camelize<K>}Ready`]: (\n callback?: (data: QdDictItem[]) => void\n ) => Promise<QdDictItem[]>\n }\n}\n\ninterface UseDictDynamicOptions {\n onInit?: (options: QdDictItem[]) => void\n}\n\nexport function useDictDynamic(\n dictType: Ref<string | undefined>,\n hookOptions?: UseDictDynamicOptions\n): {\n options: Ref<QdDictItem[]>\n loading: Ref<boolean>\n} {\n const dictOptions = ref<QdDictItem[]>([])\n const loading = ref(false)\n\n async function loadDict(type?: string) {\n if (!type) {\n dictOptions.value = []\n hookOptions?.onInit?.([])\n return\n }\n\n const camelKey = type ? camelize(type) : type\n\n // 先从缓存中获取\n if (dictCache.has(camelKey)) {\n dictOptions.value = dictCache.get(camelKey)!\n hookOptions?.onInit?.(dictOptions.value)\n return\n }\n\n // 设置 loading\n loading.value = true\n\n // 缓存中没有则调用服务获取\n let dictPromise: Promise<QdDictItem[]>\n\n if (dictPromiseCache.has(camelKey)) {\n dictPromise = dictPromiseCache.get(camelKey)!\n } else {\n dictPromise = getDict(type)\n dictPromiseCache.set(camelKey, dictPromise)\n }\n\n const [dictErr, dictRes] = await to(dictPromise)\n if (dictErr) {\n dictOptions.value = []\n loading.value = false\n dictPromiseCache.delete(camelKey)\n hookOptions?.onInit?.([])\n return\n }\n\n dictCache.set(camelKey, dictRes as QdDictItem[])\n dictOptions.value = dictRes as QdDictItem[]\n loading.value = false\n dictPromiseCache.delete(camelKey)\n hookOptions?.onInit?.(dictOptions.value)\n }\n\n watchEffect(() => {\n loadDict(dictType.value)\n })\n\n return {\n options: dictOptions,\n loading\n }\n}\n\nasync function getDict(dictType: string) {\n const dictOptions = window.__QIDIAN_DICT__\n if (!dictOptions) {\n const msg = '[useDict] 字典服务未提供,请确保使用了 QdConfigProvider'\n console.warn(msg)\n throw new Error(msg)\n }\n\n const { service, transformParams, transformRes } = dictOptions\n\n let currentParams = dictType\n if (transformParams) {\n const [tpErr, tpRes] = await suspectedWrapperPromise(transformParams(currentParams))\n if (tpErr) throw tpErr\n\n currentParams = tpRes\n }\n\n const [serviceErr, serviceRes] = await suspectedWrapperPromise(service(currentParams))\n if (serviceErr) throw serviceErr\n\n let res: QdDictItem[] | undefined\n if (transformRes) {\n const [trErr, trRes] = await suspectedWrapperPromise(transformRes(serviceRes))\n if (trErr) throw trErr\n\n res = trRes\n } else {\n res = serviceRes as QdDictItem[]\n }\n\n return res\n}\n\nexport type { QdDictBaseOptions, QdDictItem } from './types'\n"],"names":["data"],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface QdDictItem {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string | number;
|
|
4
|
-
remark?: string;
|
|
5
|
-
class?: string;
|
|
6
|
-
theme?: 'default' | 'warning' | 'danger' | 'success' | 'primary' | 'text';
|
|
7
|
-
variant?: 'light' | 'outline' | 'dark' | 'light-outline';
|
|
8
|
-
}
|
|
9
|
-
export interface QdDictBaseOptions<D extends QdDictItem = QdDictItem, R = unknown, P = string, TP = P> {
|
|
10
|
-
service: (params: TP) => Promise<R>;
|
|
11
|
-
transformParams?: (params: P) => TP | Promise<TP>;
|
|
12
|
-
transformRes?: (res: R) => D[] | Promise<D[]>;
|
|
13
|
-
}
|