@hb-hellotech/hb-ui 2.1.1 → 2.2.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.
Files changed (46) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts +3 -3
  3. package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.d.ts +1 -1
  4. package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts +2 -2
  5. package/dist/components/business_comp/list_page_comp/index.d.ts.map +1 -1
  6. package/dist/components/business_comp/unlist_page_comp/index.d.ts +1 -1
  7. package/dist/components/business_comp/unlist_page_comp/index.d.ts.map +1 -1
  8. package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +24 -15
  9. package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
  10. package/dist/components/func_comp/hb_func_file_preview/index.d.ts +103 -0
  11. package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -0
  12. package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts +44 -0
  13. package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -0
  14. package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts +10 -0
  15. package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts.map +1 -0
  16. package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts +17 -0
  17. package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts.map +1 -0
  18. package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts +43 -0
  19. package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts.map +1 -0
  20. package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts +44 -0
  21. package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts.map +1 -0
  22. package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts +4 -0
  23. package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts.map +1 -0
  24. package/dist/components/func_comp/index.d.ts +2 -1
  25. package/dist/components/func_comp/index.d.ts.map +1 -1
  26. package/dist/components/hooks/index.d.ts +6 -0
  27. package/dist/components/hooks/index.d.ts.map +1 -0
  28. package/dist/components/hooks/useFilePreview.d.ts +27 -0
  29. package/dist/components/hooks/useFilePreview.d.ts.map +1 -0
  30. package/dist/components/utils/triggerBrowserDownload.d.ts +11 -0
  31. package/dist/components/utils/triggerBrowserDownload.d.ts.map +1 -0
  32. package/dist/components/utils/util.d.ts +10 -0
  33. package/dist/components/utils/util.d.ts.map +1 -1
  34. package/dist/demo/HbFileViewSafe.d.ts +4 -0
  35. package/dist/demo/HbFileViewSafe.d.ts.map +1 -0
  36. package/dist/demo/hb_file_preview.d.ts +4 -0
  37. package/dist/demo/hb_file_preview.d.ts.map +1 -0
  38. package/dist/hb_component_lib.css +1 -1
  39. package/dist/hb_component_lib.js +2526 -1931
  40. package/dist/hb_component_lib.umd.cjs +3 -1
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/hooks/useFilePreview.ts +181 -0
  44. package/hooks/useListFormItem.ts +27 -27
  45. package/hooks/useModalDrag.ts +65 -59
  46. package/package.json +86 -80
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";;AAkVA,wBAMG"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";;AA6UA,wBAMG"}
@@ -4,7 +4,7 @@ import { ListPageContainerProps_Intf } from '.';
4
4
  export * from './src/type';
5
5
  declare const HbListPageBox: WithInstall<{
6
6
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ListPageContainerProps_Intf> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
7
- tabelData: any[];
7
+ tableData: any[];
8
8
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
9
9
  PageContainerRef: HTMLElement;
10
10
  }, HTMLElement, ComponentProvideOptions, {
@@ -15,13 +15,13 @@ declare const HbListPageBox: WithInstall<{
15
15
  M: {};
16
16
  Defaults: {};
17
17
  }, Readonly< ListPageContainerProps_Intf> & Readonly<{}>, {}, {}, {}, {}, {
18
- tabelData: any[];
18
+ tableData: any[];
19
19
  }>;
20
20
  __isFragment?: never;
21
21
  __isTeleport?: never;
22
22
  __isSuspense?: never;
23
23
  } & ComponentOptionsBase<Readonly< ListPageContainerProps_Intf> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
24
- tabelData: any[];
24
+ tableData: any[];
25
25
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
26
26
  $slots: {
27
27
  header?(_: {}): any;
@@ -13,7 +13,7 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: DefineComponent<ListPageContainerProps_Intf, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListPageContainerProps_Intf> & Readonly<{}>, {
16
- tabelData: any[];
16
+ tableData: any[];
17
17
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
18
18
  PageContainerRef: HTMLElement;
19
19
  }, HTMLElement>;
@@ -4,7 +4,7 @@ export declare const ListPageContainerProps: {
4
4
  readonly type: NumberConstructor;
5
5
  readonly default: 400;
6
6
  };
7
- readonly tabelData: {
7
+ readonly tableData: {
8
8
  readonly type: ArrayConstructor;
9
9
  readonly default: () => never[];
10
10
  };
@@ -23,7 +23,7 @@ export declare const ListPageContainerProps: {
23
23
  };
24
24
  export interface ListPageContainerProps_Intf {
25
25
  tableHeight?: number;
26
- tabelData?: any[];
26
+ tableData?: any[];
27
27
  offsetBottom?: number;
28
28
  minHeight?: number;
29
29
  timeOut?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/business_comp/list_page_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EACL,UAAU,IAAI,aAAa,EAC3B,aAAa,IAAI,gBAAgB,EACjC,aAAa,IAAI,gBAAgB,EACjC,mBAAmB,IAAI,sBAAsB,EAC7C,iBAAiB,IAAI,oBAAoB,EACzC,qBAAqB,IAAI,wBAAwB,EACjD,UAAU,IAAI,aAAa,EAC3B,qBAAqB,IAAI,wBAAwB,EACjD,gBAAgB,IAAI,mBAAmB,EACvC,cAAc,GACf,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/business_comp/list_page_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EACH,UAAU,IAAI,aAAa,EAC3B,aAAa,IAAI,gBAAgB,EACjC,aAAa,IAAI,gBAAgB,EACjC,mBAAmB,IAAI,sBAAsB,EAC7C,iBAAiB,IAAI,oBAAoB,EACzC,qBAAqB,IAAI,wBAAwB,EACjD,UAAU,IAAI,aAAa,EAC3B,qBAAqB,IAAI,wBAAwB,EACjD,gBAAgB,IAAI,mBAAmB,EACvC,cAAc,GACjB,CAAC"}
@@ -5,5 +5,5 @@ import { default as HbLibFooterBar } from './hb_footer_bar';
5
5
  import { default as HbLibModal } from './hb_modal';
6
6
  import { default as HbLibUnDetailBox } from './hb_undetail_box';
7
7
  import { default as HbLibPageHeader } from './hb_page_header';
8
- export { HbLibCard, HbLibAnchor, HbLibDetailBox, HbLibFooterBar, HbLibModal, HbLibUnDetailBox, HbLibPageHeader };
8
+ export { HbLibCard, HbLibAnchor, HbLibDetailBox, HbLibFooterBar, HbLibModal, HbLibUnDetailBox, HbLibPageHeader, };
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/business_comp/unlist_page_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/business_comp/unlist_page_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACH,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,eAAe,GAClB,CAAC"}
@@ -1,6 +1,24 @@
1
- import { Key, TreeOptions } from './tree';
2
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export type Key = string | number;
3
+ export interface TreeOptions {
4
+ label?: Key;
5
+ key?: Key;
6
+ children?: TreeOptions[];
7
+ [key: string]: unknown;
8
+ }
9
+ export interface TreeNodes extends Required<TreeOptions> {
10
+ expanded?: boolean;
11
+ checked?: boolean;
12
+ indeterminate?: boolean;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ selected?: boolean;
16
+ leaf?: boolean;
17
+ parentKey?: Key | null;
18
+ level?: number;
19
+ originData?: TreeOptions;
20
+ }
21
+ export declare const btreeProps: {
4
22
  readonly data: {
5
23
  readonly type: PropType<TreeOptions[]>;
6
24
  readonly required: true;
@@ -36,18 +54,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
36
54
  readonly clickToSelect: {
37
55
  readonly type: BooleanConstructor;
38
56
  };
39
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
40
- readonly data: {
41
- readonly type: PropType<TreeOptions[]>;
42
- readonly required: true;
43
- };
44
- readonly modelValue: {
45
- readonly type: ArrayConstructor;
46
- readonly default: () => never[];
47
- };
48
- readonly labelKey: {
49
- readonly type: StringConstructor;
50
- readonly default: "label";
57
+ };
58
+ export type TreeProps = Partial<ExtractPropTypes<typeof btreeProps>>;
59
+ //# sourceMappingURL=tree.d.ts.maply default: "label";
51
60
  };
52
61
  readonly keyKey: {
53
62
  readonly type: StringConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_comp_tree/src/tree.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAErD,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,MAAM,WAAW,SAAU,SAAQ,QAAQ,CAAC,WAAW,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,WAAW,CAAA;CACzB;AACD,eAAO,MAAM,UAAU;;uBAGJ,QAAQ,CAAC,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;uBAwBvB,QAAQ,CAAC,GAAG,EAAE,CAAC;;;;;;;;;;;;;;CAsBxB,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_comp_tree/src/tree.vue"],"names":[],"mappings":";AAiHA,OAAO,EAAc,GAAG,EAAa,WAAW,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKhE,wBAOG"}AA;IACX,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,MAAM,WAAW,SAAU,SAAQ,QAAQ,CAAC,WAAW,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,WAAW,CAAA;CACzB;AACD,eAAO,MAAM,UAAU;;uBAGJ,QAAQ,CAAC,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;uBAwBvB,QAAQ,CAAC,GAAG,EAAE,CAAC;;;;;;;;;;;;;;CAsBxB,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA"}
@@ -0,0 +1,103 @@
1
+ import { WithInstall } from '../../utils/withInstall';
2
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
3
+ export * from './src/type';
4
+ declare const HbFilePreview: WithInstall<{
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
6
+ $emit: (event: "closeModal" | "prevAttachment" | "nextAttachment", ...args: any[]) => void;
7
+ url: string;
8
+ file: File;
9
+ fileName: string;
10
+ mobile: boolean;
11
+ previewVisible: boolean;
12
+ showAttachmentNav: boolean;
13
+ hasPrevAttachment: boolean;
14
+ hasNextAttachment: boolean;
15
+ isTitleTip: boolean;
16
+ titleTip: string;
17
+ needModal: boolean;
18
+ $props: {
19
+ readonly url?: string | undefined;
20
+ readonly file?: File | undefined;
21
+ readonly fileName?: string | undefined;
22
+ readonly mobile?: boolean | undefined;
23
+ readonly previewVisible?: boolean | undefined;
24
+ readonly showAttachmentNav?: boolean | undefined;
25
+ readonly hasPrevAttachment?: boolean | undefined;
26
+ readonly hasNextAttachment?: boolean | undefined;
27
+ readonly isTitleTip?: boolean | undefined;
28
+ readonly titleTip?: string | undefined;
29
+ readonly needModal?: boolean | undefined;
30
+ };
31
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, Readonly<{}> & Readonly<{}>, {
39
+ $emit: (event: "closeModal" | "prevAttachment" | "nextAttachment", ...args: any[]) => void;
40
+ url: string;
41
+ file: File;
42
+ fileName: string;
43
+ mobile: boolean;
44
+ previewVisible: boolean;
45
+ showAttachmentNav: boolean;
46
+ hasPrevAttachment: boolean;
47
+ hasNextAttachment: boolean;
48
+ isTitleTip: boolean;
49
+ titleTip: string;
50
+ needModal: boolean;
51
+ $props: {
52
+ readonly url?: string | undefined;
53
+ readonly file?: File | undefined;
54
+ readonly fileName?: string | undefined;
55
+ readonly mobile?: boolean | undefined;
56
+ readonly previewVisible?: boolean | undefined;
57
+ readonly showAttachmentNav?: boolean | undefined;
58
+ readonly hasPrevAttachment?: boolean | undefined;
59
+ readonly hasNextAttachment?: boolean | undefined;
60
+ readonly isTitleTip?: boolean | undefined;
61
+ readonly titleTip?: string | undefined;
62
+ readonly needModal?: boolean | undefined;
63
+ };
64
+ }, {}, {}, {}, {}>;
65
+ __isFragment?: never;
66
+ __isTeleport?: never;
67
+ __isSuspense?: never;
68
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
69
+ $emit: (event: "closeModal" | "prevAttachment" | "nextAttachment", ...args: any[]) => void;
70
+ url: string;
71
+ file: File;
72
+ fileName: string;
73
+ mobile: boolean;
74
+ previewVisible: boolean;
75
+ showAttachmentNav: boolean;
76
+ hasPrevAttachment: boolean;
77
+ hasNextAttachment: boolean;
78
+ isTitleTip: boolean;
79
+ titleTip: string;
80
+ needModal: boolean;
81
+ $props: {
82
+ readonly url?: string | undefined;
83
+ readonly file?: File | undefined;
84
+ readonly fileName?: string | undefined;
85
+ readonly mobile?: boolean | undefined;
86
+ readonly previewVisible?: boolean | undefined;
87
+ readonly showAttachmentNav?: boolean | undefined;
88
+ readonly hasPrevAttachment?: boolean | undefined;
89
+ readonly hasNextAttachment?: boolean | undefined;
90
+ readonly isTitleTip?: boolean | undefined;
91
+ readonly titleTip?: string | undefined;
92
+ readonly needModal?: boolean | undefined;
93
+ };
94
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
95
+ $slots: {
96
+ title?(_: {}): any;
97
+ footer?(_: {}): any;
98
+ footer?(_: {}): any;
99
+ };
100
+ })>;
101
+ export default HbFilePreview;
102
+ export type HbFilePreviewInstance = InstanceType<typeof HbFilePreview>;
103
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/func_comp/hb_func_file_preview/index.ts"],"names":[],"mappings":";;AAGA,cAAc,YAAY,CAAC;AAC3B,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2B,CAAC;AAE/C,eAAe,aAAa,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
3
+ export default _default;
4
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_component: DefineComponent<{}, {
8
+ $emit: (event: "closeModal" | "prevAttachment" | "nextAttachment", ...args: any[]) => void;
9
+ url: string;
10
+ file: File;
11
+ fileName: string;
12
+ mobile: boolean;
13
+ previewVisible: boolean;
14
+ showAttachmentNav: boolean;
15
+ hasPrevAttachment: boolean;
16
+ hasNextAttachment: boolean;
17
+ isTitleTip: boolean;
18
+ titleTip: string;
19
+ needModal: boolean;
20
+ $props: {
21
+ readonly url?: string | undefined;
22
+ readonly file?: File | undefined;
23
+ readonly fileName?: string | undefined;
24
+ readonly mobile?: boolean | undefined;
25
+ readonly previewVisible?: boolean | undefined;
26
+ readonly showAttachmentNav?: boolean | undefined;
27
+ readonly hasPrevAttachment?: boolean | undefined;
28
+ readonly hasNextAttachment?: boolean | undefined;
29
+ readonly isTitleTip?: boolean | undefined;
30
+ readonly titleTip?: string | undefined;
31
+ readonly needModal?: boolean | undefined;
32
+ };
33
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
34
+ type __VLS_TemplateResult = {
35
+ attrs: Partial<{}>;
36
+ slots: {
37
+ title?(_: {}): any;
38
+ footer?(_: {}): any;
39
+ footer?(_: {}): any;
40
+ };
41
+ refs: {};
42
+ rootEl: any;
43
+ };
44
+ //# sourceMappingURL=file_preview.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file_preview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_file_preview/src/file_preview.vue"],"names":[],"mappings":";AAqSA;wBAi5CqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;;;;;;;;2OAQG"}
@@ -0,0 +1,10 @@
1
+ export interface HbFileItem_Intf {
2
+ fileName: string;
3
+ previewUrl: string;
4
+ downloadUrl: string;
5
+ attachmentDesc?: string;
6
+ attachmentId?: string;
7
+ uploadDate?: string;
8
+ [key: string]: unknown;
9
+ }
10
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_file_preview/src/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAE9B,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,17 @@
1
+ import { HbFileItem_Intf } from './type';
2
+ /** 可从文件名或完整 URL 解析扩展名(忽略 ?# 后参数) */
3
+ export declare const getFileExtensionFromName: (nameOrUrl: string) => string;
4
+ /** 是否为可内嵌预览的图片类型(依据文件名或 URL) */
5
+ export declare const isAttachmentImagePreview: (fileNameOrUrl: string) => boolean;
6
+ /** 供应商附件:仅 PDF 与常见图片支持内嵌预览 */
7
+ export declare const isAttachmentPreviewable: (fileName: string) => boolean;
8
+ export declare const getAttachmentDownloadUrl: <T extends HbFileItem_Intf>(row: T) => string;
9
+ /**
10
+ * @desc 在 `attachmentInfos` 中定位被点击的附件下标。
11
+ * 仅依赖 fileUuid 会在接口缺省、全空或重复时始终命中第一项,需结合列表下标与预览/下载地址兜底。
12
+ */
13
+ export declare const resolveAttachmentIndexInList: <T extends HbFileItem_Intf>(list: T[], item: T, options?: {
14
+ /** 列表 v-for 下标,优先使用 */
15
+ preferredIndex?: number;
16
+ }) => number;
17
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_file_preview/src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,oCAAoC;AACpC,eAAO,MAAM,wBAAwB,GAAI,WAAW,MAAM,KAAG,MAI5D,CAAC;AAIF,gCAAgC;AAChC,eAAO,MAAM,wBAAwB,GAAI,eAAe,MAAM,KAAG,OAEhE,CAAC;AAEF,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,OAG1D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,eAAe,EAAE,KAAK,CAAC,KAAG,MAE5E,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,eAAe,EACpE,MAAM,CAAC,EAAE,EACT,MAAM,CAAC,EACP,UAAU;IACR,uBAAuB;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,KACA,MAsCF,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { WithInstall } from '../../utils/withInstall';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const HbFilePreviewSafe: 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 HbFilePreviewSafe;
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAA2B,CAAC;AACnD,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,44 @@
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
@@ -0,0 +1 @@
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":"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"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -3,5 +3,6 @@ import { default as HbDragInstall } from './hb_func_comp_drag';
3
3
  import { default as HbLibSort } from './hb_func_comp_sort';
4
4
  import { default as HbUiConfig } from './hb_ui_config';
5
5
  import { default as HbLibLoading } from './hb_func_loading';
6
- export { HbLibCopy, HbLibSort, HbDragInstall as HbLibFuncCompDrag, HbUiConfig, HbLibLoading };
6
+ import { default as HbLibFilePreview } from './hb_func_file_preview';
7
+ export { HbLibCopy, HbLibSort, HbDragInstall as HbLibFuncCompDrag, HbUiConfig, HbLibLoading, HbLibFilePreview, };
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/func_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,IAAI,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/func_comp/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EACH,SAAS,EACT,SAAS,EACT,aAAa,IAAI,iBAAiB,EAClC,UAAU,EACV,YAAY,EACZ,gBAAgB,GACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './useFilePreview';
2
+ export * from './useListFormItem';
3
+ export * from './useModalDrag';
4
+ export * from './useCalTableHeight';
5
+ export * from './useCalTableWidth';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+ import { HbFileItem_Intf } from '../func_comp/hb_func_file_preview';
3
+ export interface FilePreviewDetail {
4
+ attachmentInfos: HbFileItem_Intf[];
5
+ }
6
+ export interface UseFilePreviewResult {
7
+ filePreviewVisible: Ref<boolean>;
8
+ pdfPreviewUrlRef: Ref<string>;
9
+ previewFileNameRef: Ref<string>;
10
+ previewAttachmentIndexRef: Ref<number>;
11
+ hasPrevAttachment: ComputedRef<boolean>;
12
+ hasNextAttachment: ComputedRef<boolean>;
13
+ showAttachmentNavBar: ComputedRef<boolean>;
14
+ handlePreview: (record: HbFileItem_Intf, listIndex?: number) => void;
15
+ handleDownload: (record: HbFileItem_Intf) => void;
16
+ handleClosePreview: () => void;
17
+ goPrevAttachment: () => void;
18
+ goNextAttachment: () => void;
19
+ triggerBrowserDownload: (url: string, filename: string) => Promise<void>;
20
+ /** 顺序触发下载,间隔开以避免浏览器拦截连续多次程序化下载 */
21
+ handleBatchDownloadAttachment: () => Promise<void>;
22
+ }
23
+ /**
24
+ * @param detailRef 详情 ref,须含 `attachmentInfos`
25
+ */
26
+ export declare function useFilePreview(detailRef: Ref<FilePreviewDetail>): UseFilePreviewResult;
27
+ //# sourceMappingURL=useFilePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFilePreview.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useFilePreview.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAiB,KAAK,GAAG,EAAE,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAIhE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAEhC,eAAe,EAAE,eAAe,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,yBAAyB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvC,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACxC,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACxC,oBAAoB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3C,aAAa,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,kCAAkC;IAClC,6BAA6B,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAG,oBAAoB,CAyItF"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @desc 触发文件下载。优先拉取 Blob 后在本地触发保存,避免 IE/Edge IE 模式下对跨域直链 `a.click()` 新开页签。
3
+ * @remarks 阿里云 OSS 等跨域地址若未配置带 Cookie 的 CORS,须使用 omit 凭证,否则预检会失败。
4
+ */
5
+ /**
6
+ * 将含中文、空格等非 ASCII 的路径规范为百分号编码,便于 XHR/fetch/iframe 在各浏览器中一致请求。
7
+ * 网关拼接的预览 URL 若含未编码空格,`new URL` 可能失败,会先尝试把空格替换为 %20 再解析。
8
+ */
9
+ export declare function normalizeHttpUrlForRequest(raw: string): string;
10
+ export declare function triggerBrowserDownload(url: string, filename: string): Promise<void>;
11
+ //# sourceMappingURL=triggerBrowserDownload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggerBrowserDownload.d.ts","sourceRoot":"","sources":["../../../src/components/utils/triggerBrowserDownload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAY9D;AA6FD,wBAAsB,sBAAsB,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAUf"}
@@ -30,5 +30,15 @@ export declare function throttle(func: Func, interval: number, options?: {
30
30
  */
31
31
  export declare function toLine(name: string): string;
32
32
  export declare function formatNumber(value: number | string, precision?: number, separator?: string, decimal?: string, prefix?: string, suffix?: string): string;
33
+ /**
34
+ * PC / 移动端设备判断
35
+ * 用于路由划分、样式适配等
36
+ */
37
+ /** 视口宽度 >= 此值视为 PC 端(px) */
38
+ export declare const PC_BREAKPOINT = 768;
39
+ export declare function isPC(): boolean;
40
+ export declare function isMobile(): boolean;
41
+ export type DeviceType = 'pc' | 'mobile';
42
+ export declare function getDeviceType(): DeviceType;
33
43
  export {};
34
44
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/utils/util.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;AACnC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,IAAI,EACV,KAAK,GAAE,MAAY,EACnB,SAAS,CAAC,EAAE,OAAO,EACnB,cAAc,CAAC,EAAE,IAAI;WAIa,OAAO,WAAW,GAAG,EAAE;;EAiC1D;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO;;;CAAqC;WAKV,OAAO,WAAW,GAAG,EAAE;;EA0B1D;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,UAElC;AAYD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,SAAS,SAAI,EACb,SAAS,SAAM,EACf,OAAO,SAAM,EACb,MAAM,SAAK,EACX,MAAM,SAAK,GACV,MAAM,CAsBR"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/utils/util.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACpC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAE,MAAY,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,IAAI;WAGhE,OAAO,WAAW,GAAG,EAAE;;EAiC1D;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO;;;CAAqC;WAI/D,OAAO,WAAW,GAAG,EAAE;;EA0B1D;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,UAElC;AAYD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,SAAI,EAAE,SAAS,SAAM,EAAE,OAAO,SAAM,EAAE,MAAM,SAAK,EAAE,MAAM,SAAK,GAAG,MAAM,CAsBpI;AAED;;;GAGG;AAEH,4BAA4B;AAC5B,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,wBAAgB,IAAI,IAAI,OAAO,CAG9B;AAED,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,QAAQ,CAAC;AAEzC,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HbFileViewSafe.vue.d.ts","sourceRoot":"","sources":["../../src/demo/HbFileViewSafe.vue"],"names":[],"mappings":";;AAuIA,wBAKG"}
@@ -0,0 +1,4 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3
+ export default _default;
4
+ //# sourceMappingURL=hb_file_preview.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hb_file_preview.vue.d.ts","sourceRoot":"","sources":["../../src/demo/hb_file_preview.vue"],"names":[],"mappings":";;AAwQA,wBAMG"}