@hb-hellotech/hb-ui 2.3.2 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,0BAA0B,CAAC;AAOzC,OAAO,oBAAoB,CAAC;AAG5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAa,KAAK,GAAG,EAAE,UAAS,kBAAuB,SAa1E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,0BAA0B,CAAC;AAOzC,OAAO,oBAAoB,CAAC;AAG5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;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+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAGA,OAAO,8BAA8B,CAAC;AActC,wBAAgB,QAAQ,CAAC,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAczD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hb-hellotech/hb-ui",
3
- "version": "2.3.2",
3
+ "version": "2.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/hb_component_lib.umd.cjs",
6
6
  "module": "dist/hb_component_lib.js",
@@ -36,46 +36,48 @@
36
36
  "docs:build": "vitepress build docs",
37
37
  "docs:preview": "vitepress preview docs"
38
38
  },
39
- "dependencies": {
39
+ "peerDependencies": {
40
40
  "@ant-design/icons-vue": "^6.1.0",
41
+ "@vueuse/core": "^10.9.0",
42
+ "ant-design-vue": "^3.2.15",
43
+ "dayjs": "^1.11.18",
44
+ "lodash": "^4.17.21",
45
+ "vue": "^3.5.22",
46
+ "vue-i18n": "^9.2.2",
47
+ "vue-router": "^4.1.6",
48
+ "vuedraggable": "4.1.0"
49
+ },
50
+ "dependencies": {
41
51
  "@hb-hellotech/hb-ui": "1.2.5-beta.5",
42
52
  "@rollup/plugin-alias": "^4.0.2",
43
53
  "@types/node": "^18.11.7",
44
54
  "@types/throttle-debounce": "^5.0.0",
45
- "@vue-office/docx": "^1.6.3",
46
- "@vue-office/excel": "^1.7.14",
47
- "@vue-office/pdf": "^2.0.10",
48
- "@vue-office/pptx": "^1.0.1",
49
- "@vueuse/core": "^10.9.0",
50
- "ant-design-vue": "^3.2.15",
51
55
  "child_process": "^1.0.2",
52
- "dayjs": "^1.11.18",
53
56
  "less": "^4.1.3",
54
- "lodash": "^4.17.21",
55
57
  "lodash-es": "^4.17.23",
56
58
  "rollup-plugin-external-globals": "^0.8.0",
57
59
  "throttle-debounce": "^5.0.0",
58
60
  "vite-plugin-libcss": "^1.0.5",
59
- "vue": "^3.5.22",
60
- "vue-demi": "^0.14.10",
61
- "vue-files-preview": "^1.0.43",
62
- "vue-i18n": "^9.2.2",
63
- "vue-router": "^4.1.6",
64
- "vuedraggable": "4.1.0"
61
+ "vue-files-preview": "^1.0.43"
65
62
  },
66
63
  "devDependencies": {
64
+ "@ant-design/icons-vue": "^6.1.0",
67
65
  "@eslint/js": "^9.15.0",
68
66
  "@types/lodash": "^4.17.13",
69
67
  "@types/lodash-es": "^4.17.12",
70
68
  "@vitejs/plugin-vue": "^6.0.1",
71
69
  "@vue/runtime-core": "^3.5.22",
70
+ "@vueuse/core": "^10.9.0",
71
+ "ant-design-vue": "^3.2.15",
72
72
  "chalk": "^5.6.2",
73
73
  "consola": "^3.4.2",
74
+ "dayjs": "^1.11.18",
74
75
  "escape-html": "^1.0.3",
75
76
  "eslint": "^9.15.0",
76
77
  "eslint-plugin-vue": "^9.31.0",
77
78
  "fs": "0.0.1-security",
78
79
  "globals": "^15.12.0",
80
+ "lodash": "^4.17.21",
79
81
  "markdown-it": "^14.1.0",
80
82
  "markdown-it-container": "^4.0.0",
81
83
  "path": "^0.12.7",
@@ -85,7 +87,11 @@
85
87
  "vite": "^7.1.12",
86
88
  "vite-plugin-dts": "^4.5.4",
87
89
  "vitepress": "^1.6.4",
90
+ "vue": "^3.5.22",
88
91
  "vue-eslint-parser": "^9.4.3",
89
- "vue-tsc": "^2.1.10"
92
+ "vue-i18n": "^9.2.2",
93
+ "vue-router": "^4.1.6",
94
+ "vue-tsc": "^2.1.10",
95
+ "vuedraggable": "4.1.0"
90
96
  }
91
97
  }
@@ -1,44 +0,0 @@
1
- import { WithInstall } from '../../utils/withInstall';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const HbLibFilePreviewSafe: WithInstall<DefineComponent<{
4
- url: string;
5
- fileName?: string;
6
- file?: File | null;
7
- previewVisible?: boolean;
8
- showAttachmentNav?: boolean;
9
- hasPrevAttachment?: boolean;
10
- hasNextAttachment?: boolean;
11
- mobile?: boolean;
12
- fetchInit?: Record<string, any>;
13
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
- closeModal: () => any;
15
- prevAttachment: () => any;
16
- nextAttachment: () => any;
17
- }, string, PublicProps, Readonly<{
18
- url: string;
19
- fileName?: string;
20
- file?: File | null;
21
- previewVisible?: boolean;
22
- showAttachmentNav?: boolean;
23
- hasPrevAttachment?: boolean;
24
- hasNextAttachment?: boolean;
25
- mobile?: boolean;
26
- fetchInit?: Record<string, any>;
27
- }> & Readonly<{
28
- onCloseModal?: (() => any) | undefined;
29
- onPrevAttachment?: (() => any) | undefined;
30
- onNextAttachment?: (() => any) | undefined;
31
- }>, {
32
- url: string;
33
- file: File | null;
34
- fileName: string;
35
- mobile: boolean;
36
- previewVisible: boolean;
37
- showAttachmentNav: boolean;
38
- hasPrevAttachment: boolean;
39
- hasNextAttachment: boolean;
40
- fetchInit: Record<string, any>;
41
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>>;
42
- export default HbLibFilePreviewSafe;
43
- export type HbLibFilePreviewSafeInstance = InstanceType<typeof HbLibFilePreviewSafe>;
44
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/func_comp/hb_func_file_preview_safe/index.ts"],"names":[],"mappings":";;AAGA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAA2B,CAAC;AACtD,eAAe,oBAAoB,CAAC;AACpC,MAAM,MAAM,4BAA4B,GAAG,YAAY,CACnD,OAAO,oBAAoB,CAC9B,CAAC"}
@@ -1,44 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- type __VLS_Props = {
3
- /**
4
- * 文件下载/预览地址(建议同域或已配置 Cookie 的网关)。
5
- * 须由接口**直接返回**文件二进制(xlsx/pdf 等);若返回 HTML 登录页、JSON 包装或 302 到网页则无法解析。
6
- * 含嵌套 query(如 `?url=https://...&token=`)时,内层地址请由服务端 `encodeURIComponent`,否则浏览器可能截断参数。
7
- */
8
- url: string;
9
- /** 原始文件名,用于 URL 无扩展名时判断类型 */
10
- fileName?: string;
11
- /** 本地 File,仅下载场景使用 */
12
- file?: File | null;
13
- previewVisible?: boolean;
14
- showAttachmentNav?: boolean;
15
- hasPrevAttachment?: boolean;
16
- hasNextAttachment?: boolean;
17
- mobile?: boolean;
18
- /**
19
- * 拉取预览二进制时的 fetch 选项(默认携带 Cookie,适合内网鉴权直链)。
20
- * 若 OSS 跨域未开放 Cookie,可改为 `{ credentials: 'omit' }`。
21
- */
22
- fetchInit?: Record<string, any>;
23
- };
24
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
25
- closeModal: () => any;
26
- prevAttachment: () => any;
27
- nextAttachment: () => any;
28
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onCloseModal?: (() => any) | undefined;
30
- onPrevAttachment?: (() => any) | undefined;
31
- onNextAttachment?: (() => any) | undefined;
32
- }>, {
33
- url: string;
34
- file: File | null;
35
- fileName: string;
36
- mobile: boolean;
37
- previewVisible: boolean;
38
- showAttachmentNav: boolean;
39
- hasPrevAttachment: boolean;
40
- hasNextAttachment: boolean;
41
- fetchInit: Record<string, any>;
42
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
43
- export default _default;
44
- //# sourceMappingURL=file_preview.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file_preview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_file_preview_safe/src/file_preview.vue"],"names":[],"mappings":"AA0IA;AA2nBA,OAAO,mCAAmC,CAAC;AAC3C,OAAO,oCAAoC,CAAC;AAsB5C,KAAK,WAAW,GAAG;IACX;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC,CAAC;;;;;;;;;;SAfO,MAAM;UAIJ,IAAI,GAAG,IAAI;cAFP,MAAM;YAOR,OAAO;oBAJC,OAAO;uBACJ,OAAO;uBACP,OAAO;uBACP,OAAO;eAMf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;AAqmBvC,wBASG"}
@@ -1,4 +0,0 @@
1
- /** 内网安全预览分支(由扩展名决定,不依赖浏览器 iframe / 外网 Office Online) */
2
- export type HbFilePreviewSecureKind_Type = 'pdf' | 'docx' | 'excel' | 'pptx' | 'image' | 'text' | 'unsupported' | 'empty';
3
- export type HbFilePreviewSecureLoadState_Type = 'idle' | 'loading' | 'ready' | 'error';
4
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_file_preview_safe/src/type.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,MAAM,4BAA4B,GAClC,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,aAAa,GACb,OAAO,CAAC;AAEd,MAAM,MAAM,iCAAiC,GACvC,MAAM,GACN,SAAS,GACT,OAAO,GACP,OAAO,CAAC"}
@@ -1,4 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
- export default _default;
4
- //# sourceMappingURL=HbFileViewSafe.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HbFileViewSafe.vue.d.ts","sourceRoot":"","sources":["../../src/demo/HbFileViewSafe.vue"],"names":[],"mappings":";;AAuIA,wBAKG"}