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,200 +0,0 @@
|
|
|
1
|
-
import { onActivated, onDeactivated } from "vue";
|
|
2
|
-
import { FeatureTest as util_FeatureTest } from "../../../../node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs";
|
|
3
|
-
import { ADAPTIVE_VIEW, ZOOM_SCALE_LIMIT, ZOOM_SCALE_FACTOR } from "../config.mjs";
|
|
4
|
-
import { isEmpty } from "qidian-shared";
|
|
5
|
-
let windowAbortController;
|
|
6
|
-
let isCtrlKeyDown = false;
|
|
7
|
-
let wheelUnusedFactor = 1;
|
|
8
|
-
let wheelUnusedTicks = 0;
|
|
9
|
-
function useZoom({ viewer, updateViewer, debounceUpdateViewer }) {
|
|
10
|
-
function bindWindowEvents() {
|
|
11
|
-
windowAbortController = new AbortController();
|
|
12
|
-
window.addEventListener(
|
|
13
|
-
"keydown",
|
|
14
|
-
(evt) => {
|
|
15
|
-
const { key, keyCode, ctrlKey, altKey, shiftKey, metaKey } = evt;
|
|
16
|
-
isCtrlKeyDown = key === "Control";
|
|
17
|
-
const cmd = (ctrlKey ? 1 : 0) | (altKey ? 2 : 0) | (shiftKey ? 4 : 0) | (metaKey ? 8 : 0);
|
|
18
|
-
if (![1, 5, 8, 12].includes(cmd)) return;
|
|
19
|
-
let handled = false;
|
|
20
|
-
const viewerVm = viewer.value;
|
|
21
|
-
const isViewerInPresentationMode = viewerVm?.isInPresentationMode;
|
|
22
|
-
switch (keyCode) {
|
|
23
|
-
case 61:
|
|
24
|
-
// FF/Mac '='
|
|
25
|
-
case 107:
|
|
26
|
-
// FF '+' and '='
|
|
27
|
-
case 187:
|
|
28
|
-
// Chrome '+'
|
|
29
|
-
case 171:
|
|
30
|
-
zoomIn();
|
|
31
|
-
handled = true;
|
|
32
|
-
break;
|
|
33
|
-
case 173:
|
|
34
|
-
// FF/Mac '-'
|
|
35
|
-
case 109:
|
|
36
|
-
// FF '-'
|
|
37
|
-
case 189:
|
|
38
|
-
zoomOut();
|
|
39
|
-
handled = true;
|
|
40
|
-
break;
|
|
41
|
-
case 48:
|
|
42
|
-
// '0'
|
|
43
|
-
case 96:
|
|
44
|
-
if (!isViewerInPresentationMode) {
|
|
45
|
-
setTimeout(() => {
|
|
46
|
-
adaptiveView(viewerVm?.currentScaleValue !== ADAPTIVE_VIEW);
|
|
47
|
-
});
|
|
48
|
-
handled = false;
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
if (handled) evt.preventDefault();
|
|
53
|
-
},
|
|
54
|
-
windowAbortController
|
|
55
|
-
);
|
|
56
|
-
window.addEventListener(
|
|
57
|
-
"keyup",
|
|
58
|
-
({ key }) => {
|
|
59
|
-
if (key === "Control") isCtrlKeyDown = false;
|
|
60
|
-
},
|
|
61
|
-
windowAbortController
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
function unbindWindowEvents() {
|
|
65
|
-
windowAbortController?.abort();
|
|
66
|
-
windowAbortController = void 0;
|
|
67
|
-
}
|
|
68
|
-
function updateZoom({
|
|
69
|
-
steps,
|
|
70
|
-
scaleFactor,
|
|
71
|
-
origin,
|
|
72
|
-
debounceUpdate
|
|
73
|
-
}) {
|
|
74
|
-
const viewerVm = viewer.value;
|
|
75
|
-
if (!viewerVm || viewerVm.isInPresentationMode) return;
|
|
76
|
-
if (scaleFactor) {
|
|
77
|
-
const newScale = viewerVm.currentScale * scaleFactor;
|
|
78
|
-
if (newScale < ZOOM_SCALE_LIMIT.MIN) {
|
|
79
|
-
scaleFactor = ZOOM_SCALE_LIMIT.MIN / viewerVm.currentScale;
|
|
80
|
-
} else if (newScale > ZOOM_SCALE_LIMIT.MAX) {
|
|
81
|
-
scaleFactor = ZOOM_SCALE_LIMIT.MAX / viewerVm.currentScale;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (steps) {
|
|
85
|
-
const newScale = viewerVm.currentScale * ZOOM_SCALE_FACTOR ** steps;
|
|
86
|
-
if (newScale < ZOOM_SCALE_LIMIT.MIN) {
|
|
87
|
-
steps = Math.log(ZOOM_SCALE_LIMIT.MIN / viewerVm.currentScale) / Math.log(ZOOM_SCALE_FACTOR);
|
|
88
|
-
} else if (newScale > ZOOM_SCALE_LIMIT.MAX) {
|
|
89
|
-
steps = Math.log(ZOOM_SCALE_LIMIT.MAX / viewerVm.currentScale) / Math.log(ZOOM_SCALE_FACTOR);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (!origin && viewerVm.container) {
|
|
93
|
-
const container = viewerVm.container;
|
|
94
|
-
const rect = container.getBoundingClientRect();
|
|
95
|
-
origin = [rect.width / 2, rect.height / 2];
|
|
96
|
-
}
|
|
97
|
-
viewerVm.updateScale({
|
|
98
|
-
drawingDelay: 400,
|
|
99
|
-
steps,
|
|
100
|
-
scaleFactor,
|
|
101
|
-
origin
|
|
102
|
-
});
|
|
103
|
-
if (debounceUpdate) debounceUpdateViewer();
|
|
104
|
-
else updateViewer();
|
|
105
|
-
}
|
|
106
|
-
function zoomOut() {
|
|
107
|
-
updateZoom({ steps: -1 });
|
|
108
|
-
}
|
|
109
|
-
function zoomIn() {
|
|
110
|
-
updateZoom({ steps: 1 });
|
|
111
|
-
}
|
|
112
|
-
function adaptiveView(enable = true) {
|
|
113
|
-
const viewerVm = viewer.value;
|
|
114
|
-
if (!viewerVm) return;
|
|
115
|
-
viewerVm.currentScaleValue = enable ? ADAPTIVE_VIEW : `${viewerVm.currentScale}`;
|
|
116
|
-
updateViewer();
|
|
117
|
-
}
|
|
118
|
-
function accumulateFactor(previousScale, factor) {
|
|
119
|
-
if (factor === 1) return 1;
|
|
120
|
-
if (wheelUnusedFactor > 1 && factor < 1 || wheelUnusedFactor < 1 && factor > 1) {
|
|
121
|
-
wheelUnusedFactor = 1;
|
|
122
|
-
}
|
|
123
|
-
const newFactor = Math.floor(previousScale * factor * wheelUnusedFactor * 100) / (100 * previousScale);
|
|
124
|
-
wheelUnusedFactor = factor / newFactor;
|
|
125
|
-
return newFactor;
|
|
126
|
-
}
|
|
127
|
-
function accumulateTicks(ticks) {
|
|
128
|
-
if (wheelUnusedTicks > 0 && ticks < 0 || wheelUnusedTicks < 0 && ticks > 0) {
|
|
129
|
-
wheelUnusedTicks = 0;
|
|
130
|
-
}
|
|
131
|
-
wheelUnusedTicks += ticks;
|
|
132
|
-
const wholeTicks = Math.trunc(wheelUnusedTicks);
|
|
133
|
-
wheelUnusedTicks -= wholeTicks;
|
|
134
|
-
return wholeTicks;
|
|
135
|
-
}
|
|
136
|
-
function normalizeWheelEventDirection(evt) {
|
|
137
|
-
let delta = Math.hypot(evt.deltaX, evt.deltaY);
|
|
138
|
-
const angle = Math.atan2(evt.deltaY, evt.deltaX);
|
|
139
|
-
if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {
|
|
140
|
-
delta = -delta;
|
|
141
|
-
}
|
|
142
|
-
return delta;
|
|
143
|
-
}
|
|
144
|
-
function onWheel(evt) {
|
|
145
|
-
const viewerVm = viewer.value;
|
|
146
|
-
if (!viewerVm) return;
|
|
147
|
-
const { isMac } = util_FeatureTest.platform;
|
|
148
|
-
const { ctrlKey, metaKey, deltaMode, deltaX, deltaY, deltaZ, clientX, clientY } = evt;
|
|
149
|
-
let scaleFactor = Math.exp(-deltaY / 100);
|
|
150
|
-
const isPinchToZoom = ctrlKey && !isCtrlKeyDown && deltaMode === WheelEvent.DOM_DELTA_PIXEL && deltaX === 0 && (Math.abs(scaleFactor - 1) < 0.05 || isMac) && deltaZ === 0;
|
|
151
|
-
if (!isPinchToZoom && !ctrlKey && !metaKey) return;
|
|
152
|
-
evt.preventDefault();
|
|
153
|
-
if (document.visibilityState === "hidden") {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
const container = viewerVm.container;
|
|
157
|
-
const rect = container.getBoundingClientRect();
|
|
158
|
-
const origin = [clientX - rect.left, clientY - rect.top];
|
|
159
|
-
if (isPinchToZoom) {
|
|
160
|
-
scaleFactor = accumulateFactor(viewerVm.currentScale, scaleFactor);
|
|
161
|
-
updateZoom({ scaleFactor, origin, debounceUpdate: true });
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
const delta = normalizeWheelEventDirection(evt);
|
|
165
|
-
let ticks = 0;
|
|
166
|
-
if (deltaMode === WheelEvent.DOM_DELTA_LINE || deltaMode === WheelEvent.DOM_DELTA_PAGE) {
|
|
167
|
-
ticks = Math.abs(delta) >= 1 ? Math.sign(delta) : accumulateTicks(delta);
|
|
168
|
-
} else {
|
|
169
|
-
const PIXELS_PER_LINE_SCALE = 30;
|
|
170
|
-
ticks = accumulateTicks(delta / PIXELS_PER_LINE_SCALE);
|
|
171
|
-
}
|
|
172
|
-
updateZoom({ steps: ticks, origin, debounceUpdate: true });
|
|
173
|
-
}
|
|
174
|
-
function onResize() {
|
|
175
|
-
const viewerVm = viewer.value;
|
|
176
|
-
if (!viewerVm) return;
|
|
177
|
-
const { currentScaleValue } = viewerVm;
|
|
178
|
-
if (!isEmpty(currentScaleValue) && currentScaleValue !== ADAPTIVE_VIEW) return;
|
|
179
|
-
adaptiveView();
|
|
180
|
-
}
|
|
181
|
-
bindWindowEvents();
|
|
182
|
-
onActivated(() => {
|
|
183
|
-
bindWindowEvents();
|
|
184
|
-
});
|
|
185
|
-
onDeactivated(() => {
|
|
186
|
-
unbindWindowEvents();
|
|
187
|
-
});
|
|
188
|
-
return {
|
|
189
|
-
updateZoom,
|
|
190
|
-
zoomOut,
|
|
191
|
-
zoomIn,
|
|
192
|
-
adaptiveView,
|
|
193
|
-
onWheel,
|
|
194
|
-
onResize
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
export {
|
|
198
|
-
useZoom
|
|
199
|
-
};
|
|
200
|
-
//# sourceMappingURL=useZoom.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useZoom.mjs","sources":["../../../../../src/components/office/pdf/hooks/useZoom.ts"],"sourcesContent":["import type { Ref } from 'vue'\nimport type { PDFViewer } from 'pdfjs-dist/web/pdf_viewer.d.mts'\nimport { onActivated, onDeactivated } from 'vue'\nimport { FeatureTest } from 'pdfjs-dist'\nimport { ADAPTIVE_VIEW, ZOOM_SCALE_FACTOR, ZOOM_SCALE_LIMIT } from '../config'\nimport { isEmpty } from 'qidian-shared'\n\ninterface UseZoomOptions {\n viewer: Ref<PDFViewer | undefined>\n updateViewer: () => void\n debounceUpdateViewer: () => void\n}\n\nlet windowAbortController: AbortController | undefined\nlet isCtrlKeyDown = false\nlet wheelUnusedFactor = 1\nlet wheelUnusedTicks = 0\n\nexport function useZoom({ viewer, updateViewer, debounceUpdateViewer }: UseZoomOptions) {\n function bindWindowEvents() {\n windowAbortController = new AbortController()\n\n window.addEventListener(\n 'keydown',\n (evt) => {\n const { key, keyCode, ctrlKey, altKey, shiftKey, metaKey } = evt\n isCtrlKeyDown = key === 'Control'\n\n const cmd = (ctrlKey ? 1 : 0) | (altKey ? 2 : 0) | (shiftKey ? 4 : 0) | (metaKey ? 8 : 0)\n\n if (![1, 5, 8, 12].includes(cmd)) return\n\n let handled = false\n const viewerVm = viewer.value\n const isViewerInPresentationMode = viewerVm?.isInPresentationMode\n\n switch (keyCode) {\n case 61: // FF/Mac '='\n case 107: // FF '+' and '='\n case 187: // Chrome '+'\n case 171: // FF with German keyboard\n zoomIn()\n handled = true\n break\n\n case 173: // FF/Mac '-'\n case 109: // FF '-'\n case 189: // Chrome '-'\n zoomOut()\n handled = true\n break\n\n case 48: // '0'\n case 96: // '0' on Numpad of Swedish keyboard\n if (!isViewerInPresentationMode) {\n setTimeout(() => {\n adaptiveView(viewerVm?.currentScaleValue !== ADAPTIVE_VIEW)\n })\n handled = false\n }\n break\n\n default:\n break\n }\n\n if (handled) evt.preventDefault()\n },\n windowAbortController\n )\n\n window.addEventListener(\n 'keyup',\n ({ key }) => {\n if (key === 'Control') isCtrlKeyDown = false\n },\n windowAbortController\n )\n }\n\n function unbindWindowEvents() {\n windowAbortController?.abort()\n windowAbortController = undefined\n }\n\n function updateZoom({\n steps,\n scaleFactor,\n origin,\n debounceUpdate\n }: {\n steps?: number\n scaleFactor?: number\n origin?: number[]\n debounceUpdate?: boolean\n }) {\n const viewerVm = viewer.value\n if (!viewerVm || viewerVm.isInPresentationMode) return\n\n // 限制缩放倍率\n if (scaleFactor) {\n const newScale = viewerVm.currentScale * scaleFactor\n if (newScale < ZOOM_SCALE_LIMIT.MIN) {\n scaleFactor = ZOOM_SCALE_LIMIT.MIN / viewerVm.currentScale\n } else if (newScale > ZOOM_SCALE_LIMIT.MAX) {\n scaleFactor = ZOOM_SCALE_LIMIT.MAX / viewerVm.currentScale\n }\n }\n\n if (steps) {\n const newScale = viewerVm.currentScale * ZOOM_SCALE_FACTOR ** steps\n if (newScale < ZOOM_SCALE_LIMIT.MIN) {\n steps = Math.log(ZOOM_SCALE_LIMIT.MIN / viewerVm.currentScale) / Math.log(ZOOM_SCALE_FACTOR)\n } else if (newScale > ZOOM_SCALE_LIMIT.MAX) {\n steps = Math.log(ZOOM_SCALE_LIMIT.MAX / viewerVm.currentScale) / Math.log(ZOOM_SCALE_FACTOR)\n }\n }\n\n if (!origin && viewerVm.container) {\n const container = viewerVm.container\n const rect = container.getBoundingClientRect()\n origin = [rect.width / 2, rect.height / 2]\n }\n\n viewerVm.updateScale({\n drawingDelay: 400,\n steps,\n scaleFactor,\n origin\n })\n\n if (debounceUpdate) debounceUpdateViewer()\n else updateViewer()\n }\n\n function zoomOut() {\n updateZoom({ steps: -1 })\n }\n\n function zoomIn() {\n updateZoom({ steps: 1 })\n }\n\n function adaptiveView(enable = true) {\n const viewerVm = viewer.value\n if (!viewerVm) return\n\n viewerVm.currentScaleValue = enable ? ADAPTIVE_VIEW : `${viewerVm.currentScale}`\n updateViewer()\n }\n\n function accumulateFactor(previousScale: number, factor: number) {\n if (factor === 1) return 1\n\n if ((wheelUnusedFactor > 1 && factor < 1) || (wheelUnusedFactor < 1 && factor > 1)) {\n wheelUnusedFactor = 1\n }\n\n const newFactor =\n Math.floor(previousScale * factor * wheelUnusedFactor * 100) / (100 * previousScale)\n wheelUnusedFactor = factor / newFactor\n\n return newFactor\n }\n\n function accumulateTicks(ticks: number) {\n if ((wheelUnusedTicks > 0 && ticks < 0) || (wheelUnusedTicks < 0 && ticks > 0)) {\n wheelUnusedTicks = 0\n }\n\n wheelUnusedTicks += ticks\n const wholeTicks = Math.trunc(wheelUnusedTicks)\n wheelUnusedTicks -= wholeTicks\n\n return wholeTicks\n }\n\n function normalizeWheelEventDirection(evt: WheelEvent) {\n let delta = Math.hypot(evt.deltaX, evt.deltaY)\n const angle = Math.atan2(evt.deltaY, evt.deltaX)\n if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {\n delta = -delta\n }\n\n return delta\n }\n\n function onWheel(evt: WheelEvent) {\n const viewerVm = viewer.value\n if (!viewerVm) return\n\n const { isMac } = FeatureTest.platform\n const { ctrlKey, metaKey, deltaMode, deltaX, deltaY, deltaZ, clientX, clientY } = evt\n\n let scaleFactor = Math.exp(-deltaY / 100)\n\n const isPinchToZoom =\n ctrlKey &&\n !isCtrlKeyDown &&\n deltaMode === WheelEvent.DOM_DELTA_PIXEL &&\n deltaX === 0 &&\n (Math.abs(scaleFactor - 1) < 0.05 || isMac) &&\n deltaZ === 0\n\n if (!isPinchToZoom && !ctrlKey && !metaKey) return\n\n evt.preventDefault()\n if (document.visibilityState === 'hidden') {\n return\n }\n\n const container = viewerVm.container\n const rect = container.getBoundingClientRect()\n const origin = [clientX - rect.left, clientY - rect.top]\n\n if (isPinchToZoom) {\n scaleFactor = accumulateFactor(viewerVm.currentScale, scaleFactor)\n updateZoom({ scaleFactor, origin, debounceUpdate: true })\n return\n }\n\n const delta = normalizeWheelEventDirection(evt)\n let ticks = 0\n if (deltaMode === WheelEvent.DOM_DELTA_LINE || deltaMode === WheelEvent.DOM_DELTA_PAGE) {\n ticks = Math.abs(delta) >= 1 ? Math.sign(delta) : accumulateTicks(delta)\n } else {\n const PIXELS_PER_LINE_SCALE = 30\n ticks = accumulateTicks(delta / PIXELS_PER_LINE_SCALE)\n }\n\n updateZoom({ steps: ticks, origin, debounceUpdate: true })\n }\n\n function onResize() {\n const viewerVm = viewer.value\n if (!viewerVm) return\n\n const { currentScaleValue } = viewerVm\n if (!isEmpty(currentScaleValue) && currentScaleValue !== ADAPTIVE_VIEW) return\n\n adaptiveView()\n }\n\n bindWindowEvents()\n\n onActivated(() => {\n bindWindowEvents()\n })\n\n onDeactivated(() => {\n unbindWindowEvents()\n })\n\n return {\n updateZoom,\n zoomOut,\n zoomIn,\n adaptiveView,\n onWheel,\n onResize\n }\n}\n"],"names":["FeatureTest"],"mappings":";;;;AAaA,IAAI;AACJ,IAAI,gBAAgB;AACpB,IAAI,oBAAoB;AACxB,IAAI,mBAAmB;AAEhB,SAAS,QAAQ,EAAE,QAAQ,cAAc,wBAAwC;AACtF,WAAS,mBAAmB;AAC1B,4BAAwB,IAAI,gBAAA;AAE5B,WAAO;AAAA,MACL;AAAA,MACA,CAAC,QAAQ;AACP,cAAM,EAAE,KAAK,SAAS,SAAS,QAAQ,UAAU,YAAY;AAC7D,wBAAgB,QAAQ;AAExB,cAAM,OAAO,UAAU,IAAI,MAAM,SAAS,IAAI,MAAM,WAAW,IAAI,MAAM,UAAU,IAAI;AAEvF,YAAI,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,EAAE,SAAS,GAAG,EAAG;AAElC,YAAI,UAAU;AACd,cAAM,WAAW,OAAO;AACxB,cAAM,6BAA6B,UAAU;AAE7C,gBAAQ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AC3D;AAEA,WAAS,WAAW;AAClB,UAAM,WAAW,OAAO;AACxB,QAAI,CAAC,SAAU;AAEf,UAAM,EAAE,sBAAsB;AAC9B,QAAI,CAAC,QAAQ,iBAAiB,KAAK,sBAAsB,cAAe;AAExE,iBAAA;AAAA,EACF;AAEA,mBAAA;AAEA,cAAY,MAAM;AAChB,qBAAA;AAAA,EACF,CAAC;AAED,gBAAc,MAAM;AAClB,uBAAA;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { QdOfficePdfProps, TextLayerRenderedEvent } from './types';
|
|
2
|
-
import { PDFViewer } from 'pdfjs-dist/web/pdf_viewer.mjs';
|
|
3
|
-
import 'pdfjs-dist/web/pdf_viewer.css';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<QdOfficePdfProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
pagesInit: (args_0: PDFViewer) => any;
|
|
6
|
-
textLayerRendered: (args_0: TextLayerRenderedEvent) => any;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<QdOfficePdfProps> & Readonly<{
|
|
8
|
-
onPagesInit?: ((args_0: PDFViewer) => any) | undefined;
|
|
9
|
-
onTextLayerRendered?: ((args_0: TextLayerRenderedEvent) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./index.vue2.mjs";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1fea4dd8"]]);
|
|
5
|
-
export {
|
|
6
|
-
index as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, shallowRef, computed, onMounted, watch, resolveDirective, createBlock, openBlock, unref, withCtx, withDirectives, createElementBlock, createCommentVNode, createElementVNode, createVNode, createTextVNode, toDisplayString, triggerRef } from "vue";
|
|
2
|
-
import { useCsl, toPrecision, isDev, to } from "qidian-shared";
|
|
3
|
-
import { GlobalWorkerOptions, getDocument } from "../../../node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs";
|
|
4
|
-
import PDFSandboxUrl from "../../../node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs";
|
|
5
|
-
import WorkerUrl from "../../../node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs";
|
|
6
|
-
import { PDFLinkService, EventBus, PDFFindController, PDFScriptingManager as PDFScriptingManagerComponents, PDFViewer } from "../../../node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs";
|
|
7
|
-
import { ChevronLeftIcon, ChevronRightIcon, ZoomOutIcon, ZoomInIcon, CenterFocusStrongFilledIcon, CenterFocusStrongIcon } from "tdesign-icons-vue-next";
|
|
8
|
-
import { Loading, Tooltip, Button, InputNumber, Divider } from "tdesign-vue-next";
|
|
9
|
-
import { ADAPTIVE_VIEW, ZOOM_SCALE_LIMIT } from "./config.mjs";
|
|
10
|
-
import { useZoom } from "./hooks/useZoom.mjs";
|
|
11
|
-
import { useConfig } from "../../config-provider/useConfig.mjs";
|
|
12
|
-
/* empty css */
|
|
13
|
-
import { useDebounceFn } from "../../../node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
14
|
-
const _hoisted_1 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "qd-office-pdf__controls"
|
|
17
|
-
};
|
|
18
|
-
const _hoisted_2 = { class: "qd-office-pdf__controls-body" };
|
|
19
|
-
const _hoisted_3 = { class: "qd-office-pdf__controls-page" };
|
|
20
|
-
const _hoisted_4 = { class: "qd-office-pdf__controls-page-input" };
|
|
21
|
-
const _hoisted_5 = { class: "qd-office-pdf__controls-scale" };
|
|
22
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
|
-
...{
|
|
24
|
-
name: "QdOfficePdf"
|
|
25
|
-
},
|
|
26
|
-
__name: "index",
|
|
27
|
-
props: {
|
|
28
|
-
src: {}
|
|
29
|
-
},
|
|
30
|
-
emits: ["pagesInit", "textLayerRendered"],
|
|
31
|
-
setup(__props, { emit: __emit }) {
|
|
32
|
-
const props = __props;
|
|
33
|
-
const emit = __emit;
|
|
34
|
-
const csl = useCsl("pdf");
|
|
35
|
-
const { t } = useConfig("office");
|
|
36
|
-
GlobalWorkerOptions.workerSrc = WorkerUrl;
|
|
37
|
-
const loading = ref(false);
|
|
38
|
-
const containerRef = ref();
|
|
39
|
-
const viewerRef = ref();
|
|
40
|
-
const viewer = shallowRef();
|
|
41
|
-
const isAdaptiveView = computed(() => viewer.value?.currentScaleValue === ADAPTIVE_VIEW);
|
|
42
|
-
const debounceUpdateViewer = useDebounceFn(updateViewer, 300, { maxWait: 900 });
|
|
43
|
-
const { zoomOut, zoomIn, adaptiveView, onWheel, onResize } = useZoom({
|
|
44
|
-
viewer,
|
|
45
|
-
updateViewer,
|
|
46
|
-
debounceUpdateViewer
|
|
47
|
-
});
|
|
48
|
-
const prevPageDisabled = computed(() => {
|
|
49
|
-
const viewerVm = viewer.value;
|
|
50
|
-
return viewerVm && viewerVm.currentPageNumber <= 1;
|
|
51
|
-
});
|
|
52
|
-
const nextPageDisabled = computed(() => {
|
|
53
|
-
const viewerVm = viewer.value;
|
|
54
|
-
return viewerVm && viewerVm.currentPageNumber >= viewerVm.pagesCount;
|
|
55
|
-
});
|
|
56
|
-
const zoomOutDisabled = computed(() => {
|
|
57
|
-
const viewerVm = viewer.value;
|
|
58
|
-
return viewerVm && viewerVm.currentScale <= ZOOM_SCALE_LIMIT.MIN;
|
|
59
|
-
});
|
|
60
|
-
const zoomInDisabled = computed(() => {
|
|
61
|
-
const viewerVm = viewer.value;
|
|
62
|
-
return viewerVm && viewerVm.currentScale >= ZOOM_SCALE_LIMIT.MAX;
|
|
63
|
-
});
|
|
64
|
-
async function render() {
|
|
65
|
-
const { src } = props;
|
|
66
|
-
const containerEl = containerRef.value;
|
|
67
|
-
const viewerEl = viewerRef.value;
|
|
68
|
-
if (!src || !containerEl || !viewerEl) return;
|
|
69
|
-
loading.value = true;
|
|
70
|
-
const eventBus = new EventBus();
|
|
71
|
-
const linkService = new PDFLinkService({
|
|
72
|
-
eventBus,
|
|
73
|
-
externalLinkTarget: 2,
|
|
74
|
-
externalLinkRel: ""
|
|
75
|
-
});
|
|
76
|
-
linkService.externalLinkEnabled = false;
|
|
77
|
-
const findController = new PDFFindController({
|
|
78
|
-
eventBus,
|
|
79
|
-
linkService,
|
|
80
|
-
updateMatchesCountOnProgress: true
|
|
81
|
-
});
|
|
82
|
-
const scriptingManager = new PDFScriptingManagerComponents({
|
|
83
|
-
eventBus,
|
|
84
|
-
sandboxBundleSrc: PDFSandboxUrl
|
|
85
|
-
});
|
|
86
|
-
viewer.value = new PDFViewer({
|
|
87
|
-
container: containerEl,
|
|
88
|
-
viewer: viewerEl,
|
|
89
|
-
eventBus,
|
|
90
|
-
linkService,
|
|
91
|
-
findController,
|
|
92
|
-
scriptingManager,
|
|
93
|
-
annotationEditorMode: 0,
|
|
94
|
-
textLayerMode: 1,
|
|
95
|
-
annotationMode: 1,
|
|
96
|
-
enablePrintAutoRotate: true,
|
|
97
|
-
maxCanvasPixels: 33554432,
|
|
98
|
-
maxCanvasDim: 32767,
|
|
99
|
-
capCanvasAreaFactor: 200,
|
|
100
|
-
enableHWA: true,
|
|
101
|
-
enableDetailCanvas: true,
|
|
102
|
-
enablePermissions: true,
|
|
103
|
-
supportsPinchToZoom: true,
|
|
104
|
-
enableAutoLinking: true,
|
|
105
|
-
minDurationToUpdateCanvas: 500,
|
|
106
|
-
l10n: void 0
|
|
107
|
-
});
|
|
108
|
-
const viewerVm = viewer.value;
|
|
109
|
-
linkService.setViewer(viewerVm);
|
|
110
|
-
scriptingManager.setViewer(viewerVm);
|
|
111
|
-
const loadingTask = getDocument({
|
|
112
|
-
url: src,
|
|
113
|
-
cMapUrl: "../../../../node_modules/pdfjs-dist/cmaps/",
|
|
114
|
-
iccUrl: "../../../../node_modules/pdfjs-dist/iccs/",
|
|
115
|
-
wasmUrl: "../../../../node_modules/pdfjs-dist/wasm/",
|
|
116
|
-
standardFontDataUrl: "../../../../node_modules/pdfjs-dist/standard_fonts/",
|
|
117
|
-
pdfBug: isDev,
|
|
118
|
-
cMapPacked: true,
|
|
119
|
-
enableXfa: true,
|
|
120
|
-
enableHWA: true,
|
|
121
|
-
isEvalSupported: true,
|
|
122
|
-
isOffscreenCanvasSupported: true,
|
|
123
|
-
useWasm: true,
|
|
124
|
-
useWorkerFetch: true,
|
|
125
|
-
verbosity: 1,
|
|
126
|
-
maxImageSize: -1,
|
|
127
|
-
canvasMaxAreaInBytes: -1,
|
|
128
|
-
fontExtraProperties: false,
|
|
129
|
-
disableAutoFetch: false,
|
|
130
|
-
disableFontFace: false,
|
|
131
|
-
disableRange: false,
|
|
132
|
-
disableStream: false
|
|
133
|
-
});
|
|
134
|
-
const [pdfErr, pdf] = await to(loadingTask.promise);
|
|
135
|
-
if (pdfErr) {
|
|
136
|
-
loading.value = false;
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
viewerVm.setDocument(pdf);
|
|
140
|
-
linkService.setDocument(pdf);
|
|
141
|
-
eventBus.on("pagesinit", () => {
|
|
142
|
-
csl.log.dev("pagesInit");
|
|
143
|
-
loading.value = false;
|
|
144
|
-
emit("pagesInit", viewerVm);
|
|
145
|
-
});
|
|
146
|
-
eventBus.on("pagerendered", (evt) => {
|
|
147
|
-
csl.log.dev("pageRendered", evt.pageNumber);
|
|
148
|
-
});
|
|
149
|
-
eventBus.on("textlayerrendered", (evt) => {
|
|
150
|
-
emit("textLayerRendered", evt);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function updateViewer() {
|
|
154
|
-
if (!viewer.value) return;
|
|
155
|
-
triggerRef(viewer);
|
|
156
|
-
}
|
|
157
|
-
function updatePage(page) {
|
|
158
|
-
const viewerVm = viewer.value;
|
|
159
|
-
if (!viewerVm) return;
|
|
160
|
-
viewerVm.currentPageNumber = page;
|
|
161
|
-
updateViewer();
|
|
162
|
-
}
|
|
163
|
-
function onScroll() {
|
|
164
|
-
debounceUpdateViewer();
|
|
165
|
-
}
|
|
166
|
-
onMounted(() => {
|
|
167
|
-
render();
|
|
168
|
-
watch(() => props.src, render);
|
|
169
|
-
});
|
|
170
|
-
return (_ctx, _cache) => {
|
|
171
|
-
const _directive_resize = resolveDirective("resize");
|
|
172
|
-
return openBlock(), createBlock(unref(Loading), {
|
|
173
|
-
class: "qd-office-pdf",
|
|
174
|
-
loading: loading.value,
|
|
175
|
-
size: "small"
|
|
176
|
-
}, {
|
|
177
|
-
default: withCtx(() => [
|
|
178
|
-
withDirectives((openBlock(), createElementBlock("div", {
|
|
179
|
-
ref_key: "containerRef",
|
|
180
|
-
ref: containerRef,
|
|
181
|
-
class: "qd-office-pdf__container",
|
|
182
|
-
onWheel: _cache[0] || (_cache[0] = //@ts-ignore
|
|
183
|
-
(...args) => unref(onWheel) && unref(onWheel)(...args)),
|
|
184
|
-
onScroll
|
|
185
|
-
}, [
|
|
186
|
-
createElementVNode("div", {
|
|
187
|
-
ref_key: "viewerRef",
|
|
188
|
-
ref: viewerRef,
|
|
189
|
-
class: "qd-office-pdf__viewer pdfViewer"
|
|
190
|
-
}, null, 512)
|
|
191
|
-
], 32)), [
|
|
192
|
-
[
|
|
193
|
-
_directive_resize,
|
|
194
|
-
unref(onResize),
|
|
195
|
-
void 0,
|
|
196
|
-
{ "300": true }
|
|
197
|
-
]
|
|
198
|
-
]),
|
|
199
|
-
viewer.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
200
|
-
createElementVNode("div", _hoisted_2, [
|
|
201
|
-
createElementVNode("div", _hoisted_3, [
|
|
202
|
-
createVNode(unref(Tooltip), {
|
|
203
|
-
content: unref(t)("prevPage"),
|
|
204
|
-
disabled: prevPageDisabled.value
|
|
205
|
-
}, {
|
|
206
|
-
default: withCtx(() => [
|
|
207
|
-
createVNode(unref(Button), {
|
|
208
|
-
variant: "text",
|
|
209
|
-
theme: "default",
|
|
210
|
-
disabled: prevPageDisabled.value,
|
|
211
|
-
onClick: _cache[1] || (_cache[1] = ($event) => updatePage(viewer.value.currentPageNumber - 1))
|
|
212
|
-
}, {
|
|
213
|
-
icon: withCtx(() => [
|
|
214
|
-
createVNode(unref(ChevronLeftIcon))
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["disabled"])
|
|
218
|
-
]),
|
|
219
|
-
_: 1
|
|
220
|
-
}, 8, ["content", "disabled"]),
|
|
221
|
-
createElementVNode("div", _hoisted_4, [
|
|
222
|
-
createVNode(unref(InputNumber), {
|
|
223
|
-
modelValue: viewer.value.currentPageNumber,
|
|
224
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => viewer.value.currentPageNumber = $event),
|
|
225
|
-
"auto-width": "",
|
|
226
|
-
theme: "normal",
|
|
227
|
-
align: "center",
|
|
228
|
-
size: "small",
|
|
229
|
-
min: 1,
|
|
230
|
-
max: viewer.value.pagesCount
|
|
231
|
-
}, null, 8, ["modelValue", "max"]),
|
|
232
|
-
createTextVNode(" / " + toDisplayString(viewer.value.pagesCount), 1)
|
|
233
|
-
]),
|
|
234
|
-
createVNode(unref(Tooltip), {
|
|
235
|
-
content: unref(t)("nextPage"),
|
|
236
|
-
disabled: nextPageDisabled.value
|
|
237
|
-
}, {
|
|
238
|
-
default: withCtx(() => [
|
|
239
|
-
createVNode(unref(Button), {
|
|
240
|
-
variant: "text",
|
|
241
|
-
theme: "default",
|
|
242
|
-
disabled: nextPageDisabled.value,
|
|
243
|
-
onClick: _cache[3] || (_cache[3] = ($event) => updatePage(viewer.value.currentPageNumber + 1))
|
|
244
|
-
}, {
|
|
245
|
-
icon: withCtx(() => [
|
|
246
|
-
createVNode(unref(ChevronRightIcon))
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}, 8, ["disabled"])
|
|
250
|
-
]),
|
|
251
|
-
_: 1
|
|
252
|
-
}, 8, ["content", "disabled"])
|
|
253
|
-
]),
|
|
254
|
-
createVNode(unref(Divider), { layout: "vertical" }),
|
|
255
|
-
createVNode(unref(Tooltip), {
|
|
256
|
-
content: unref(t)("zoomOut"),
|
|
257
|
-
disabled: zoomOutDisabled.value
|
|
258
|
-
}, {
|
|
259
|
-
default: withCtx(() => [
|
|
260
|
-
createVNode(unref(Button), {
|
|
261
|
-
variant: "text",
|
|
262
|
-
theme: "default",
|
|
263
|
-
disabled: zoomOutDisabled.value,
|
|
264
|
-
onClick: unref(zoomOut)
|
|
265
|
-
}, {
|
|
266
|
-
icon: withCtx(() => [
|
|
267
|
-
createVNode(unref(ZoomOutIcon))
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}, 8, ["disabled", "onClick"])
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}, 8, ["content", "disabled"]),
|
|
274
|
-
createElementVNode("div", _hoisted_5, toDisplayString(unref(toPrecision)(viewer.value.currentScale * 100)) + "% ", 1),
|
|
275
|
-
createVNode(unref(Tooltip), {
|
|
276
|
-
content: unref(t)("zoomIn"),
|
|
277
|
-
disabled: zoomInDisabled.value
|
|
278
|
-
}, {
|
|
279
|
-
default: withCtx(() => [
|
|
280
|
-
createVNode(unref(Button), {
|
|
281
|
-
variant: "text",
|
|
282
|
-
theme: "default",
|
|
283
|
-
disabled: zoomInDisabled.value,
|
|
284
|
-
onClick: unref(zoomIn)
|
|
285
|
-
}, {
|
|
286
|
-
icon: withCtx(() => [
|
|
287
|
-
createVNode(unref(ZoomInIcon))
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}, 8, ["disabled", "onClick"])
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
}, 8, ["content", "disabled"]),
|
|
294
|
-
createVNode(unref(Tooltip), {
|
|
295
|
-
content: isAdaptiveView.value ? unref(t)("cancelAdaptiveView") : unref(t)("adaptiveView")
|
|
296
|
-
}, {
|
|
297
|
-
default: withCtx(() => [
|
|
298
|
-
createVNode(unref(Button), {
|
|
299
|
-
variant: "text",
|
|
300
|
-
theme: isAdaptiveView.value ? "primary" : "default",
|
|
301
|
-
onClick: _cache[4] || (_cache[4] = ($event) => unref(adaptiveView)(!isAdaptiveView.value))
|
|
302
|
-
}, {
|
|
303
|
-
icon: withCtx(() => [
|
|
304
|
-
isAdaptiveView.value ? (openBlock(), createBlock(unref(CenterFocusStrongFilledIcon), { key: 0 })) : (openBlock(), createBlock(unref(CenterFocusStrongIcon), { key: 1 }))
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
}, 8, ["theme"])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}, 8, ["content"])
|
|
311
|
-
])
|
|
312
|
-
])) : createCommentVNode("", true)
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}, 8, ["loading"]);
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
export {
|
|
320
|
-
_sfc_main as default
|
|
321
|
-
};
|
|
322
|
-
//# sourceMappingURL=index.vue2.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue2.mjs","sources":["../../../../src/components/office/pdf/index.vue"],"sourcesContent":["<template>\n <t-loading class=\"qd-office-pdf\" :loading=\"loading\" size=\"small\">\n <div\n ref=\"containerRef\"\n v-resize.300=\"onResize\"\n class=\"qd-office-pdf__container\"\n @wheel=\"onWheel\"\n @scroll=\"onScroll\"\n >\n <div ref=\"viewerRef\" class=\"qd-office-pdf__viewer pdfViewer\"></div>\n </div>\n\n <div v-if=\"viewer\" class=\"qd-office-pdf__controls\">\n <div class=\"qd-office-pdf__controls-body\">\n <div class=\"qd-office-pdf__controls-page\">\n <t-tooltip :content=\"t('prevPage')\" :disabled=\"prevPageDisabled\">\n <t-button\n variant=\"text\"\n theme=\"default\"\n :disabled=\"prevPageDisabled\"\n @click=\"updatePage(viewer.currentPageNumber - 1)\"\n >\n <template #icon><chevron-left-icon /></template>\n </t-button>\n </t-tooltip>\n\n <div class=\"qd-office-pdf__controls-page-input\">\n <t-input-number\n v-model=\"viewer.currentPageNumber\"\n auto-width\n theme=\"normal\"\n align=\"center\"\n size=\"small\"\n :min=\"1\"\n :max=\"viewer.pagesCount\"\n />\n / {{ viewer.pagesCount }}\n </div>\n\n <t-tooltip :content=\"t('nextPage')\" :disabled=\"nextPageDisabled\">\n <t-button\n variant=\"text\"\n theme=\"default\"\n :disabled=\"nextPageDisabled\"\n @click=\"updatePage(viewer.currentPageNumber + 1)\"\n >\n <template #icon><chevron-right-icon /></template>\n </t-button>\n </t-tooltip>\n </div>\n\n <t-divider layout=\"vertical\" />\n\n <t-tooltip :content=\"t('zoomOut')\" :disabled=\"zoomOutDisabled\">\n <t-button variant=\"text\" theme=\"default\" :disabled=\"zoomOutDisabled\" @click=\"zoomOut\">\n <template #icon><zoom-out-icon /></template>\n </t-button>\n </t-tooltip>\n\n <div class=\"qd-office-pdf__controls-scale\">\n {{ toPrecision(viewer.currentScale * 100) }}%\n </div>\n\n <t-tooltip :content=\"t('zoomIn')\" :disabled=\"zoomInDisabled\">\n <t-button variant=\"text\" theme=\"default\" :disabled=\"zoomInDisabled\" @click=\"zoomIn\">\n <template #icon><zoom-in-icon /></template>\n </t-button>\n </t-tooltip>\n\n <t-tooltip :content=\"isAdaptiveView ? t('cancelAdaptiveView') : t('adaptiveView')\">\n <t-button\n variant=\"text\"\n :theme=\"isAdaptiveView ? 'primary' : 'default'\"\n @click=\"adaptiveView(!isAdaptiveView)\"\n >\n <template #icon>\n <center-focus-strong-filled-icon v-if=\"isAdaptiveView\" />\n <center-focus-strong-icon v-else />\n </template>\n </t-button>\n </t-tooltip>\n </div>\n </div>\n </t-loading>\n</template>\n\n<script setup lang=\"ts\">\n import type { PageRenderedEvent, QdOfficePdfProps, TextLayerRenderedEvent } from './types'\n import { useDebounceFn } from '@vueuse/core'\n import { to, useCsl, isDev, toPrecision } from 'qidian-shared'\n import { computed, onMounted, ref, shallowRef, triggerRef, watch } from 'vue'\n import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist'\n // @ts-expect-error 不需要检查\n import PDFSandboxUrl from 'pdfjs-dist/build/pdf.sandbox.mjs?url'\n // @ts-expect-error 不需要检查\n import WorkerUrl from 'pdfjs-dist/build/pdf.worker.mjs?url'\n import {\n EventBus,\n PDFFindController,\n PDFLinkService,\n PDFScriptingManager,\n PDFViewer\n } from 'pdfjs-dist/web/pdf_viewer.mjs'\n import {\n CenterFocusStrongFilledIcon,\n CenterFocusStrongIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ZoomInIcon,\n ZoomOutIcon\n } from 'tdesign-icons-vue-next'\n import {\n Loading as TLoading,\n Tooltip as TTooltip,\n Button as TButton,\n InputNumber as TInputNumber,\n Divider as TDivider\n } from 'tdesign-vue-next'\n import { ADAPTIVE_VIEW, ZOOM_SCALE_LIMIT } from './config'\n import { useZoom } from './hooks/useZoom'\n import { useConfig } from '../../config-provider/useConfig'\n import 'pdfjs-dist/web/pdf_viewer.css'\n\n defineOptions({\n name: 'QdOfficePdf'\n })\n\n const props = defineProps<QdOfficePdfProps>()\n const emit = defineEmits<{\n pagesInit: [PDFViewer]\n textLayerRendered: [TextLayerRenderedEvent]\n }>()\n\n const csl = useCsl('pdf')\n const { t } = useConfig('office')\n GlobalWorkerOptions.workerSrc = WorkerUrl\n\n const loading = ref(false)\n const containerRef = ref<HTMLDivElement>()\n const viewerRef = ref<HTMLDivElement>()\n const viewer = shallowRef<PDFViewer | undefined>()\n const isAdaptiveView = computed(() => viewer.value?.currentScaleValue === ADAPTIVE_VIEW)\n const debounceUpdateViewer = useDebounceFn(updateViewer, 300, { maxWait: 900 })\n\n const { zoomOut, zoomIn, adaptiveView, onWheel, onResize } = useZoom({\n viewer,\n updateViewer,\n debounceUpdateViewer\n })\n\n const prevPageDisabled = computed(() => {\n const viewerVm = viewer.value\n return viewerVm && viewerVm.currentPageNumber <= 1\n })\n const nextPageDisabled = computed(() => {\n const viewerVm = viewer.value\n return viewerVm && viewerVm.currentPageNumber >= viewerVm.pagesCount\n })\n const zoomOutDisabled = computed(() => {\n const viewerVm = viewer.value\n return viewerVm && viewerVm.currentScale <= ZOOM_SCALE_LIMIT.MIN\n })\n const zoomInDisabled = computed(() => {\n const viewerVm = viewer.value\n return viewerVm && viewerVm.currentScale >= ZOOM_SCALE_LIMIT.MAX\n })\n\n async function render() {\n const { src } = props\n const containerEl = containerRef.value\n const viewerEl = viewerRef.value\n if (!src || !containerEl || !viewerEl) return\n\n loading.value = true\n const eventBus = new EventBus()\n const linkService = new PDFLinkService({\n eventBus,\n externalLinkTarget: 2,\n externalLinkRel: ''\n })\n linkService.externalLinkEnabled = false // 禁用外链跳转\n\n const findController = new PDFFindController({\n eventBus,\n linkService,\n updateMatchesCountOnProgress: true\n })\n const scriptingManager = new PDFScriptingManager({\n eventBus,\n sandboxBundleSrc: PDFSandboxUrl\n })\n\n viewer.value = new PDFViewer({\n container: containerEl,\n viewer: viewerEl,\n eventBus,\n linkService,\n findController,\n scriptingManager,\n annotationEditorMode: 0,\n textLayerMode: 1,\n annotationMode: 1,\n enablePrintAutoRotate: true,\n maxCanvasPixels: 33554432,\n maxCanvasDim: 32767,\n capCanvasAreaFactor: 200,\n enableHWA: true,\n enableDetailCanvas: true,\n enablePermissions: true,\n supportsPinchToZoom: true,\n enableAutoLinking: true,\n minDurationToUpdateCanvas: 500,\n l10n: undefined\n })\n const viewerVm = viewer.value\n\n linkService.setViewer(viewerVm)\n scriptingManager.setViewer(viewerVm)\n\n const loadingTask = getDocument({\n url: src,\n cMapUrl: '../../../../node_modules/pdfjs-dist/cmaps/',\n iccUrl: '../../../../node_modules/pdfjs-dist/iccs/',\n wasmUrl: '../../../../node_modules/pdfjs-dist/wasm/',\n standardFontDataUrl: '../../../../node_modules/pdfjs-dist/standard_fonts/',\n pdfBug: isDev,\n cMapPacked: true,\n enableXfa: true,\n enableHWA: true,\n isEvalSupported: true,\n isOffscreenCanvasSupported: true,\n useWasm: true,\n useWorkerFetch: true,\n\n verbosity: 1,\n maxImageSize: -1,\n canvasMaxAreaInBytes: -1,\n\n fontExtraProperties: false,\n disableAutoFetch: false,\n disableFontFace: false,\n disableRange: false,\n disableStream: false\n })\n const [pdfErr, pdf] = await to(loadingTask.promise)\n if (pdfErr) {\n loading.value = false\n return\n }\n\n viewerVm.setDocument(pdf)\n linkService.setDocument(pdf)\n\n eventBus.on('pagesinit', () => {\n csl.log.dev('pagesInit')\n loading.value = false\n emit('pagesInit', viewerVm)\n })\n\n eventBus.on('pagerendered', (evt: PageRenderedEvent) => {\n csl.log.dev('pageRendered', evt.pageNumber)\n })\n\n eventBus.on('textlayerrendered', (evt: TextLayerRenderedEvent) => {\n emit('textLayerRendered', evt)\n })\n }\n\n function updateViewer() {\n if (!viewer.value) return\n\n triggerRef(viewer)\n }\n\n function updatePage(page: number) {\n const viewerVm = viewer.value\n if (!viewerVm) return\n\n viewerVm.currentPageNumber = page\n updateViewer()\n }\n\n function onScroll() {\n debounceUpdateViewer()\n }\n\n onMounted(() => {\n render()\n watch(() => props.src, render)\n })\n</script>\n\n<style lang=\"less\" scoped>\n .qd-office-pdf {\n width: 100%;\n height: 100%;\n position: relative;\n background-color: var(--td-bg-color-component);\n\n &__container {\n position: absolute;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n }\n\n &__viewer {\n width: 100%;\n height: 100%;\n\n :deep(.page) {\n // NOTE 解决 textLayer 整体偏移问题\n box-sizing: content-box;\n }\n\n :deep(.annotationLayer) {\n :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder) > a {\n background-color: transparent;\n }\n }\n }\n\n &__controls {\n position: absolute;\n left: 50%;\n bottom: var(--td-comp-paddingTB-xl) !important;\n transform: translateX(-50%);\n border-radius: 3px;\n background-color: rgba(var(--td-bg-color-container), 0.5);\n backdrop-filter: blur(2px);\n box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);\n user-select: none;\n transition: all 0.2s linear;\n\n .t-button {\n width: 38px;\n height: 38px;\n padding: 0;\n margin-left: 0;\n }\n\n &-body {\n display: flex;\n align-items: center;\n opacity: 0.5;\n transition: opacity 0.2s linear;\n }\n\n &-scale {\n width: 39px;\n margin: 0 var(--td-comp-margin-s);\n }\n\n &-page {\n display: flex;\n align-items: stretch;\n\n :deep(.t-input-number) {\n width: auto;\n\n .t-input {\n padding: 0;\n\n &__wrap {\n min-width: 32px;\n }\n\n &__inner {\n min-width: 32px;\n }\n }\n }\n\n &-input {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0 var(--td-comp-paddingTB-s);\n font-size: var(--td-font-body-medium);\n gap: var(--td-comp-margin-s);\n background-color: var(--td-bg-color-secondarycontainer);\n border-radius: var(--td-radius-default);\n }\n }\n\n &:hover {\n background-color: var(--td-bg-color-container);\n\n .qd-office-pdf__controls-body {\n opacity: 1;\n }\n }\n }\n }\n</style>\n"],"names":["PDFScriptingManager","_createBlock","_unref","TLoading","_createElementBlock","_createElementVNode","_openBlock","_createVNode","TTooltip","TButton","TInputNumber","_toDisplayString","TDivider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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ACrB,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAA,WAAEP,MAAA,YAAA,EAAY,CAAE,eAAA,KAAc;AAAA,kBAAA;oBAEzB,cACT,MAAyD;AAAA,sBAAlB,eAAA,sBAAvCD,YAAyDC,MAAA,2BAAA,GAAA,EAAA,KAAA,EAAA,CAAA,mBACzDD,YAAmCC,MAAA,qBAAA,GAAA,EAAA,KAAA,GAAA;AAAA,oBAAA;;;;;;;;;;;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PDFPageView } from 'pdfjs-dist/web/pdf_viewer.d.mts';
|
|
2
|
-
export interface QdOfficePdfProps {
|
|
3
|
-
src?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface PageRenderedEvent {
|
|
6
|
-
cssTransform: boolean;
|
|
7
|
-
error?: Error;
|
|
8
|
-
isDetailView?: boolean;
|
|
9
|
-
pageNumber: number;
|
|
10
|
-
source: PDFPageView;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
}
|
|
13
|
-
export interface TextLayerRenderedEvent {
|
|
14
|
-
error?: Error;
|
|
15
|
-
pageNumber: number;
|
|
16
|
-
source: PDFPageView;
|
|
17
|
-
}
|