fangguo-component 1.1.5 → 1.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 (64) hide show
  1. package/README.md +57 -0
  2. package/dist/{ErrorImage-Ao9kEEUg.js → ErrorImage-CFVt1ht_.js} +2 -2
  3. package/dist/FgCascader.css +24 -0
  4. package/dist/{FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js → FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js} +45 -4
  5. package/dist/{HSelect-BFkWiCFi.js → HSelect-DgFjd08Y.js} +3 -3
  6. package/dist/{HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js → HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js} +1 -1
  7. package/dist/{HSelectSJ-DZmtdyjF.js → HSelectSJ-DOFUzTZV.js} +3 -3
  8. package/dist/ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js +53 -0
  9. package/dist/LazyPopover-7ebuh-QG.js +188 -0
  10. package/dist/LazyPopover.css +5 -0
  11. package/dist/{SelectTree-DHbWogEU.js → SelectTree-DUH92Iwr.js} +2 -2
  12. package/dist/{TextCopy-th0FAxwl.js → TextCopy-lpbeqOUI.js} +1 -1
  13. package/dist/ViewImg-DXhF20SL.js +254 -0
  14. package/dist/ViewImg.css +56 -0
  15. package/dist/ViewImgPopover-QblZG0z5.js +343 -0
  16. package/dist/ViewImgPopover.css +106 -0
  17. package/dist/ViewImgPreview.css +132 -0
  18. package/dist/ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js +316 -0
  19. package/dist/{common-B1nSpTGn.js → common-D0EYVGB2.js} +1 -1
  20. package/dist/components/cascader/index.js +1 -1
  21. package/dist/components/errorImage/index.js +2 -2
  22. package/dist/components/hSelect/index.js +1 -1
  23. package/dist/components/hSelectAll/index.js +1 -1
  24. package/dist/components/hSelectSJ/index.js +1 -1
  25. package/dist/components/imgViewerHost/ImgViewerHost.vue.d.ts +2 -0
  26. package/dist/components/imgViewerHost/imgViewerStore.d.ts +199 -0
  27. package/dist/components/imgViewerHost/index.d.ts +4 -0
  28. package/dist/components/imgViewerHost/index.js +10 -0
  29. package/dist/components/imgViewerHost/utils.d.ts +4 -0
  30. package/dist/components/index.d.ts +4 -0
  31. package/dist/components/index.js +49 -18
  32. package/dist/components/lazyPopover/LazyPopover.vue.d.ts +12 -15
  33. package/dist/components/lazyPopover/index.js +2 -2
  34. package/dist/components/selectTree/index.js +1 -1
  35. package/dist/components/textCopy/index.js +1 -1
  36. package/dist/components/viewImg/ViewImg.vue.d.ts +149 -0
  37. package/dist/components/viewImg/index.d.ts +1 -0
  38. package/dist/components/viewImg/index.js +4 -0
  39. package/dist/components/viewImgPopover/ViewImgPopover.vue.d.ts +726 -0
  40. package/dist/components/viewImgPopover/index.d.ts +1 -0
  41. package/dist/components/viewImgPopover/index.js +4 -0
  42. package/dist/components/viewImgPreview/ViewImgPreview.vue.d.ts +53 -0
  43. package/dist/components/viewImgPreview/index.d.ts +3 -0
  44. package/dist/components/viewImgPreview/index.js +21 -0
  45. package/dist/components/viewImgPreview/types.d.ts +93 -0
  46. package/dist/imgViewerStore-DK3zvGf4.js +247 -0
  47. package/dist/{index-DzdLpetc.js → index-BtQgIf7F.js} +1414 -1402
  48. package/dist/{index-uQXqC9BF.js → index-Ce_edAQB.js} +44 -13
  49. package/dist/{index-BPnixsfc.js → index-Qkq7I01c.js} +15 -1
  50. package/dist/index.d.ts +17 -3
  51. package/dist/index.js +114 -67
  52. package/dist/montageImgUrl-CwgYnB2h.js +204 -0
  53. package/dist/tools/ImageParserUtils/index.js +346 -346
  54. package/dist/tools/common/index.js +1 -1
  55. package/dist/tools/imgUrl/config.d.ts +10 -0
  56. package/dist/tools/imgUrl/index.d.ts +4 -0
  57. package/dist/tools/imgUrl/index.js +16 -0
  58. package/dist/tools/imgUrl/montageImgUrl.d.ts +15 -0
  59. package/dist/tools/imgUrl/networkAdaptive.d.ts +7 -0
  60. package/dist/tools/index.d.ts +1 -0
  61. package/dist/tools/index.js +29 -15
  62. package/dist/types-Ccn_sb6f.js +49 -0
  63. package/package.json +1 -1
  64. package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js +0 -34
@@ -1,36 +1,55 @@
1
1
  import { _ as _sfc_main } from "./ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js";
2
- import { _ as _sfc_main$1 } from "./FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js";
2
+ import { _ as _sfc_main$1 } from "./FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js";
3
3
  import { _ as _sfc_main$2 } from "./CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js";
4
4
  import { _ as _sfc_main$3 } from "./DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js";
5
- import { _ as _sfc_main$4 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js";
5
+ import { _ as _sfc_main$4 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js";
6
6
  import { _ as _sfc_main$5 } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js";
7
7
  import { _ as _sfc_main$6 } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js";
8
- import { _ as _sfc_main$7 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
9
- import { _ as _sfc_main$8 } from "./LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js";
8
+ import { _ as _sfc_main$7 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
9
+ import { _ as _sfc_main$8 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
10
10
  import { _ as _sfc_main$9 } from "./NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js";
11
11
  import { _ as _sfc_main$a } from "./SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js";
12
12
  import { _ as _sfc_main$b } from "./SelectAll2.vue_vue_type_script_setup_true_lang-CrsaohxU.js";
13
13
  import { _ as _sfc_main$c } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js";
14
14
  import { _ as _sfc_main$d } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js";
15
15
  import { _ as _sfc_main$e } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js";
16
+ import { _ as _sfc_main$f } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js";
17
+ import { D as DEFAULT_ORIGINAL_TOOLBAR, a as DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE, b as DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL, c as DEFAULT_PREVIEW_INFINITE, d as DEFAULT_PREVIEW_MAX_SCALE, e as DEFAULT_PREVIEW_MIN_SCALE, f as DEFAULT_PREVIEW_SCALE, g as DEFAULT_PREVIEW_SHOW_PROGRESS, h as DEFAULT_PREVIEW_SIDE_NAV, i as DEFAULT_PREVIEW_TELEPORTED, j as DEFAULT_PREVIEW_ZOOM_RATE, k as DEFAULT_TOOLBAR_BG_COLOR, l as DEFAULT_TOOLBAR_ICON_COLOR, N as NAV_TOOLBAR_KEYS, r as resolvePreviewSideNav, s as shouldShowPreviewSideNav } from "./types-Ccn_sb6f.js";
16
18
  import { B as ButtonGroup } from "./ButtonGroup-DqViorHX.js";
17
19
  import { C as ContentTitle } from "./ContentTitle-By0Zk1u7.js";
18
20
  import { C as CustomInputV2 } from "./CustomInputV2-BqhBSO53.js";
19
21
  import { C as CustomMultipleInput } from "./CustomMultipleInput-DRMTUtkE.js";
20
22
  import { D as DragSort } from "./DragSort-5WetnkmW.js";
21
- import { E as ErrorImage } from "./ErrorImage-Ao9kEEUg.js";
22
- import { H as HSelect } from "./HSelect-BFkWiCFi.js";
23
- import { H as HSelectSJ } from "./HSelectSJ-DZmtdyjF.js";
23
+ import { F as FgErrorImage } from "./ErrorImage-CFVt1ht_.js";
24
+ import { H as HSelect } from "./HSelect-DgFjd08Y.js";
25
+ import { H as HSelectSJ } from "./HSelectSJ-DOFUzTZV.js";
26
+ import { L as LazyPopover } from "./LazyPopover-7ebuh-QG.js";
24
27
  import { L as LoadingBtn } from "./LoadingBtn-DWm2cY9k.js";
25
28
  import { M as MInput } from "./MInput-s_P63myh.js";
26
29
  import { M as MyTable } from "./MyTable-CHvxPYgk.js";
27
30
  import { S as SelectAddress } from "./SelectAddress-CCepDxu8.js";
28
- import { S as SelectTree } from "./SelectTree-DHbWogEU.js";
31
+ import { S as SelectTree } from "./SelectTree-DUH92Iwr.js";
29
32
  import { S as SvgIcon } from "./SvgIcon-DIg0upEk.js";
30
- import { T as TextCopy } from "./TextCopy-th0FAxwl.js";
33
+ import { T as TextCopy } from "./TextCopy-lpbeqOUI.js";
34
+ import { F as FgViewImg } from "./ViewImg-DXhF20SL.js";
35
+ import { V as ViewImgPopover } from "./ViewImgPopover-QblZG0z5.js";
36
+ import { I as ImgViewerStore, P as PREVIEW_BASE_Z_INDEX, g as getDialogZindex, u as useImgViewerState, a as useImgViewerStore } from "./imgViewerStore-DK3zvGf4.js";
31
37
  import { V as VirtualTable } from "./VirtualTable-Cm_L7q9W.js";
32
38
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33
39
  __proto__: null,
40
+ DEFAULT_ORIGINAL_TOOLBAR,
41
+ DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE,
42
+ DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL,
43
+ DEFAULT_PREVIEW_INFINITE,
44
+ DEFAULT_PREVIEW_MAX_SCALE,
45
+ DEFAULT_PREVIEW_MIN_SCALE,
46
+ DEFAULT_PREVIEW_SCALE,
47
+ DEFAULT_PREVIEW_SHOW_PROGRESS,
48
+ DEFAULT_PREVIEW_SIDE_NAV,
49
+ DEFAULT_PREVIEW_TELEPORTED,
50
+ DEFAULT_PREVIEW_ZOOM_RATE,
51
+ DEFAULT_TOOLBAR_BG_COLOR,
52
+ DEFAULT_TOOLBAR_ICON_COLOR,
34
53
  FgArgHover: _sfc_main,
35
54
  FgButtonGroup: ButtonGroup,
36
55
  FgCascader: _sfc_main$1,
@@ -40,14 +59,15 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
40
59
  FgCustomMultipleInput: CustomMultipleInput,
41
60
  FgDragResizable: _sfc_main$3,
42
61
  FgDragSort: DragSort,
43
- FgErrorImage: ErrorImage,
62
+ FgErrorImage,
44
63
  FgHSelect: HSelect,
45
64
  FgHSelectAll: _sfc_main$4,
46
65
  FgHSelectSJ: HSelectSJ,
47
66
  FgIdentifyAddress: _sfc_main$5,
48
67
  FgImageLoupe: _sfc_main$6,
49
- FgLazyComponent: _sfc_main$7,
50
- FgLazyPopover: _sfc_main$8,
68
+ FgImgViewerHost: _sfc_main$7,
69
+ FgLazyComponent: _sfc_main$8,
70
+ FgLazyPopover: LazyPopover,
51
71
  FgLoadingBtn: LoadingBtn,
52
72
  FgMInput: MInput,
53
73
  FgMyTable: MyTable,
@@ -61,7 +81,18 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
61
81
  FgSvgIcon: SvgIcon,
62
82
  FgTextCopy: TextCopy,
63
83
  FgTextEllipsisTooltip: _sfc_main$e,
64
- VirtualTable
84
+ FgViewImg,
85
+ FgViewImgPopover: ViewImgPopover,
86
+ FgViewImgPreview: _sfc_main$f,
87
+ ImgViewerStore,
88
+ NAV_TOOLBAR_KEYS,
89
+ PREVIEW_BASE_Z_INDEX,
90
+ VirtualTable,
91
+ getDialogZindex,
92
+ resolvePreviewSideNav,
93
+ shouldShowPreviewSideNav,
94
+ useImgViewerState,
95
+ useImgViewerStore
65
96
  }, Symbol.toStringTag, { value: "Module" }));
66
97
  export {
67
98
  components as c
@@ -1,8 +1,10 @@
1
- import { a as aesDecrypt, b as aesEncrypt, c as allPhoneReq, d as analyzeFileformat, e as argFormate, f as base64ToBlob, g as base64ToFile, h as boldPoint, i as checkGoodValue, j as cleanEmptyFields, k as convertImageFormat, l as copyText, m as copyWord, n as createFileLocalUrl, o as createUuid, p as currentDaysLessFivedays, q as debounce, r as dropperColor, s as fileUrlToBase64, t as filterCountryAreaCodeList, u as filterMethodLowerCase, v as filterSearch, w as findNodePath, x as flattenTreeWithPath, y as formatBytes, z as formatDateArray, A as formatTimestamp, B as formatXmlText, C as formateDate, D as formateOperateLogWord, E as formateTaskTableData, F as generateFpid, G as generatePassword, H as getAddressCode, I as getAddressNameByCode, J as getAppType, K as getArrayBufferFromInput, L as getFileFolderToEnums, M as getFilenameAndExtension, N as getImageSizeByFile, O as getMobileSubmitParams, P as getQueryParams, Q as getUUID, R as getUrlSuffix, S as getXmlKeyValue, T as hasInvalidFileNameChars, U as isCmykPsd, V as isFuction, W as isMobileDevice, X as isPdfUrl, Y as isSameDay, Z as localUrlToFile, _ as longestContinuousMatch, $ as mergeColumns, a0 as mergeItem, a1 as mergeTaskTableData, a2 as modelCodeReg, a3 as modelListFilter, a4 as nameReg, a5 as numberFilter, a6 as numberToChinese, a7 as numberToRatio, a8 as opneNewTab, a9 as orderBy, aa as overseasPhoneReg, ab as pasteTextTrim, ac as pdfImg, ad as phoneReg, ae as picFilter, af as preventDefaultHandler, ag as pwdReg, ah as ratioToNumber, ai as sleep, aj as splitArray, ak as strPasteJson, al as stringArrayDiff, am as stringToUnicodeEscape, an as trimAndReduceSpaces, ao as truncateText, ap as unicodeEscapeToChars, aq as updateOringin, ar as validateMobileByCountry, as as webpToPng } from "./common-B1nSpTGn.js";
1
+ import { D as DEFAULT_IMG_FASTEN, c as configureImgUrl, g as getImgFasten, a as getNetworkAdaptiveOptions, b as getOssLinks, i as imgUrlConfigKey, d as initNetworkListener, e as isUnsupportedImg, m as montageImgUrl, n as networkKey, f as notSupportedImgTypes, r as replaceUnsupportedImg, t as temuThumbUrl } from "./montageImgUrl-CwgYnB2h.js";
2
+ import { a as aesDecrypt, b as aesEncrypt, c as allPhoneReq, d as analyzeFileformat, e as argFormate, f as base64ToBlob, g as base64ToFile, h as boldPoint, i as checkGoodValue, j as cleanEmptyFields, k as convertImageFormat, l as copyText, m as copyWord, n as createFileLocalUrl, o as createUuid, p as currentDaysLessFivedays, q as debounce, r as dropperColor, s as fileUrlToBase64, t as filterCountryAreaCodeList, u as filterMethodLowerCase, v as filterSearch, w as findNodePath, x as flattenTreeWithPath, y as formatBytes, z as formatDateArray, A as formatTimestamp, B as formatXmlText, C as formateDate, D as formateOperateLogWord, E as formateTaskTableData, F as generateFpid, G as generatePassword, H as getAddressCode, I as getAddressNameByCode, J as getAppType, K as getArrayBufferFromInput, L as getFileFolderToEnums, M as getFilenameAndExtension, N as getImageSizeByFile, O as getMobileSubmitParams, P as getQueryParams, Q as getUUID, R as getUrlSuffix, S as getXmlKeyValue, T as hasInvalidFileNameChars, U as isCmykPsd, V as isFuction, W as isMobileDevice, X as isPdfUrl, Y as isSameDay, Z as localUrlToFile, _ as longestContinuousMatch, $ as mergeColumns, a0 as mergeItem, a1 as mergeTaskTableData, a2 as modelCodeReg, a3 as modelListFilter, a4 as nameReg, a5 as numberFilter, a6 as numberToChinese, a7 as numberToRatio, a8 as opneNewTab, a9 as orderBy, aa as overseasPhoneReg, ab as pasteTextTrim, ac as pdfImg, ad as phoneReg, ae as picFilter, af as preventDefaultHandler, ag as pwdReg, ah as ratioToNumber, ai as sleep, aj as splitArray, ak as strPasteJson, al as stringArrayDiff, am as stringToUnicodeEscape, an as trimAndReduceSpaces, ao as truncateText, ap as unicodeEscapeToChars, aq as updateOringin, ar as validateMobileByCountry, as as webpToPng } from "./common-D0EYVGB2.js";
2
3
  import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./tools/ImageParserUtils/index.js";
3
4
  import { s as shortcuts } from "./dateShortcuts-DjFC_Txu.js";
4
5
  const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
6
  __proto__: null,
7
+ DEFAULT_IMG_FASTEN,
6
8
  aesDecrypt,
7
9
  aesEncrypt,
8
10
  allPhoneReq,
@@ -13,6 +15,7 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
13
15
  boldPoint,
14
16
  checkGoodValue,
15
17
  cleanEmptyFields,
18
+ configureImgUrl,
16
19
  convertImageFormat,
17
20
  copyText,
18
21
  copyWord,
@@ -45,17 +48,23 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
45
48
  getFileFolderToEnums,
46
49
  getFilenameAndExtension,
47
50
  getImageSizeByFile,
51
+ getImgFasten,
48
52
  getMobileSubmitParams,
53
+ getNetworkAdaptiveOptions,
54
+ getOssLinks,
49
55
  getQueryParams,
50
56
  getUUID,
51
57
  getUrlSuffix,
52
58
  getXmlKeyValue,
53
59
  hasInvalidFileNameChars,
60
+ imgUrlConfigKey,
61
+ initNetworkListener,
54
62
  isCmykPsd,
55
63
  isFuction,
56
64
  isMobileDevice,
57
65
  isPdfUrl,
58
66
  isSameDay,
67
+ isUnsupportedImg,
59
68
  localUrlToFile,
60
69
  longestContinuousMatch,
61
70
  mergeColumns,
@@ -63,7 +72,10 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
63
72
  mergeTaskTableData,
64
73
  modelCodeReg,
65
74
  modelListFilter,
75
+ montageImgUrl,
66
76
  nameReg,
77
+ networkKey,
78
+ notSupportedImgTypes,
67
79
  numberFilter,
68
80
  numberToChinese,
69
81
  numberToRatio,
@@ -85,12 +97,14 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
85
97
  preventDefaultHandler,
86
98
  pwdReg,
87
99
  ratioToNumber,
100
+ replaceUnsupportedImg,
88
101
  shortcuts,
89
102
  sleep,
90
103
  splitArray,
91
104
  strPasteJson,
92
105
  stringArrayDiff,
93
106
  stringToUnicodeEscape,
107
+ temuThumbUrl,
94
108
  trimAndReduceSpaces,
95
109
  truncateText,
96
110
  unicodeEscapeToChars,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { App } from 'vue';
2
+ import { ImgUrlConfig } from './tools/imgUrl';
2
3
  import * as tools from "./tools";
3
4
  export * from './components';
4
5
  export * from './tools';
@@ -10,6 +11,8 @@ export interface FangguoInstallOptions {
10
11
  components?: boolean;
11
12
  /** 是否 `app.directive` 注册全部导出指令,默认 `true` */
12
13
  directives?: boolean;
14
+ /** 图片 OSS 域名与占位图配置,等同 `configureImgUrl` */
15
+ imgUrl?: ImgUrlConfig;
13
16
  }
14
17
  /** 仅全局注册组件 */
15
18
  export declare function installComponents(app: App): void;
@@ -144,9 +147,7 @@ declare const _default: {
144
147
  errMsg: string;
145
148
  dataUrl?: string;
146
149
  width?: number;
147
- height
148
- /** 判断是否是指令定义 */
149
- ?: number;
150
+ height?: number;
150
151
  sizeLimitWidth?: number;
151
152
  sizeLimitHeight?: number;
152
153
  psdData?: any;
@@ -191,6 +192,19 @@ declare const _default: {
191
192
  results: tools.ParsedImageInfo[];
192
193
  failedCount: number;
193
194
  }>;
195
+ configureImgUrl: typeof tools.configureImgUrl;
196
+ DEFAULT_IMG_FASTEN: tools.ImgFastenConfig;
197
+ getImgFasten: typeof tools.getImgFasten;
198
+ getOssLinks: typeof tools.getOssLinks;
199
+ imgUrlConfigKey: import('vue').Ref<number, number>;
200
+ getNetworkAdaptiveOptions: typeof tools.getNetworkAdaptiveOptions;
201
+ initNetworkListener: typeof tools.initNetworkListener;
202
+ networkKey: import('vue').Ref<number, number>;
203
+ isUnsupportedImg: typeof tools.isUnsupportedImg;
204
+ montageImgUrl: typeof tools.montageImgUrl;
205
+ notSupportedImgTypes: string[];
206
+ replaceUnsupportedImg: typeof tools.replaceUnsupportedImg;
207
+ temuThumbUrl: typeof tools.temuThumbUrl;
194
208
  install: (app: App, options?: FangguoInstallOptions) => void;
195
209
  };
196
210
  export default _default;
package/dist/index.js CHANGED
@@ -3,61 +3,69 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
3
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
4
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a10, b2) => {
7
- for (var prop in b2 || (b2 = {}))
8
- if (__hasOwnProp.call(b2, prop))
9
- __defNormalProp(a10, prop, b2[prop]);
6
+ var __spreadValues = (a10, b4) => {
7
+ for (var prop in b4 || (b4 = {}))
8
+ if (__hasOwnProp.call(b4, prop))
9
+ __defNormalProp(a10, prop, b4[prop]);
10
10
  if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b2)) {
12
- if (__propIsEnum.call(b2, prop))
13
- __defNormalProp(a10, prop, b2[prop]);
11
+ for (var prop of __getOwnPropSymbols(b4)) {
12
+ if (__propIsEnum.call(b4, prop))
13
+ __defNormalProp(a10, prop, b4[prop]);
14
14
  }
15
15
  return a10;
16
16
  };
17
- import { c as components } from "./index-uQXqC9BF.js";
18
- import { t as tools } from "./index-BPnixsfc.js";
17
+ import { c as components } from "./index-Ce_edAQB.js";
18
+ import { t as tools } from "./index-Qkq7I01c.js";
19
19
  import { d as directives } from "./index-CSMWzzp0.js";
20
20
  import { h as hooks } from "./index-DfQiknXJ.js";
21
+ import { c as configureImgUrl } from "./montageImgUrl-CwgYnB2h.js";
22
+ import { D, g, a, b, i, d, e, m, n, f, r, t } from "./montageImgUrl-CwgYnB2h.js";
21
23
  import { _ } from "./ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js";
22
- import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js";
24
+ import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js";
23
25
  import { _ as _3 } from "./CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js";
24
26
  import { _ as _4 } from "./DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js";
25
- import { _ as _5 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js";
27
+ import { _ as _5 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js";
26
28
  import { _ as _6 } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js";
27
29
  import { _ as _7 } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js";
28
- import { _ as _8 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
29
- import { _ as _9 } from "./LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js";
30
+ import { _ as _8 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
31
+ import { _ as _9 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
30
32
  import { _ as _10 } from "./NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js";
31
33
  import { _ as _11 } from "./SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js";
32
34
  import { _ as _12 } from "./SelectAll2.vue_vue_type_script_setup_true_lang-CrsaohxU.js";
33
35
  import { _ as _13 } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js";
34
36
  import { _ as _14 } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js";
35
37
  import { _ as _15 } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js";
38
+ import { _ as _16 } from "./ViewImgPreview.vue_vue_type_style_index_0_lang-C2i0p5IK.js";
39
+ import { D as D2, a as a2, b as b2, c, d as d2, e as e2, f as f2, g as g2, h, i as i2, j, k, l, N, r as r2, s } from "./types-Ccn_sb6f.js";
36
40
  import { B } from "./ButtonGroup-DqViorHX.js";
37
41
  import { C } from "./ContentTitle-By0Zk1u7.js";
38
42
  import { C as C2 } from "./CustomInputV2-BqhBSO53.js";
39
43
  import { C as C3 } from "./CustomMultipleInput-DRMTUtkE.js";
40
- import { D } from "./DragSort-5WetnkmW.js";
41
- import { E } from "./ErrorImage-Ao9kEEUg.js";
42
- import { H } from "./HSelect-BFkWiCFi.js";
43
- import { H as H2 } from "./HSelectSJ-DZmtdyjF.js";
44
- import { l } from "./loading-CGrVcnNl.js";
45
- import { L } from "./LoadingBtn-DWm2cY9k.js";
44
+ import { D as D3 } from "./DragSort-5WetnkmW.js";
45
+ import { F } from "./ErrorImage-CFVt1ht_.js";
46
+ import { H } from "./HSelect-DgFjd08Y.js";
47
+ import { H as H2 } from "./HSelectSJ-DOFUzTZV.js";
48
+ import { L } from "./LazyPopover-7ebuh-QG.js";
49
+ import { l as l2 } from "./loading-CGrVcnNl.js";
50
+ import { L as L2 } from "./LoadingBtn-DWm2cY9k.js";
46
51
  import { M } from "./MInput-s_P63myh.js";
47
52
  import { M as M2 } from "./MyTable-CHvxPYgk.js";
48
53
  import { S } from "./SelectAddress-CCepDxu8.js";
49
- import { S as S2 } from "./SelectTree-DHbWogEU.js";
54
+ import { S as S2 } from "./SelectTree-DUH92Iwr.js";
50
55
  import { S as S3 } from "./SvgIcon-DIg0upEk.js";
51
- import { T } from "./TextCopy-th0FAxwl.js";
52
- import { V } from "./VirtualTable-Cm_L7q9W.js";
53
- import { a, b, c, d, e, f, g, h, i, j, k, l as l2, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B as B2, C as C4, D as D2, E as E2, F, G, H as H3, I, J, K, L as L2, M as M3, N, O, P, Q, R, S as S4, T as T2, U, V as V2, W, X, Y, Z, _ as _16, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as } from "./common-B1nSpTGn.js";
56
+ import { T } from "./TextCopy-lpbeqOUI.js";
57
+ import { F as F2 } from "./ViewImg-DXhF20SL.js";
58
+ import { V } from "./ViewImgPopover-QblZG0z5.js";
59
+ import { I, P, g as g3, u, a as a3 } from "./imgViewerStore-DK3zvGf4.js";
60
+ import { V as V2 } from "./VirtualTable-Cm_L7q9W.js";
61
+ import { a as a4, b as b3, c as c2, d as d3, e as e3, f as f3, g as g4, h as h2, i as i3, j as j2, k as k2, l as l3, m as m2, n as n2, o, p, q, r as r3, s as s2, t as t2, u as u2, v, w, x, y, z, A, B as B2, C as C4, D as D4, E, F as F3, G, H as H3, I as I2, J, K, L as L3, M as M3, N as N2, O, P as P2, Q, R, S as S4, T as T2, U, V as V3, W, X, Y, Z, _ as _17, $, a0, a1, a2 as a22, a3 as a32, a4 as a42, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as } from "./common-D0EYVGB2.js";
54
62
  import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./tools/ImageParserUtils/index.js";
55
- import { s as s2 } from "./dateShortcuts-DjFC_Txu.js";
56
- import { u as u2 } from "./usePagination-C63IRXjZ.js";
63
+ import { s as s3 } from "./dateShortcuts-DjFC_Txu.js";
64
+ import { u as u3 } from "./usePagination-C63IRXjZ.js";
57
65
  function isDirectiveDef(v2) {
58
66
  if (!v2 || typeof v2 !== "object") return false;
59
- const d2 = v2;
60
- return "mounted" in d2 || "beforeMount" in d2 || "created" in d2 || "beforeUpdate" in d2 || "updated" in d2 || "beforeUnmount" in d2 || "unmounted" in d2;
67
+ const d4 = v2;
68
+ return "mounted" in d4 || "beforeMount" in d4 || "created" in d4 || "beforeUpdate" in d4 || "updated" in d4 || "beforeUnmount" in d4 || "unmounted" in d4;
61
69
  }
62
70
  function installComponents(app) {
63
71
  Object.entries(components).forEach(([name, component]) => {
@@ -73,12 +81,27 @@ function installDirectives(app) {
73
81
  });
74
82
  }
75
83
  const install = (app, options) => {
76
- const { components: useComponents = true, directives: useDirectives = true } = options != null ? options : {};
84
+ const { components: useComponents = true, directives: useDirectives = true, imgUrl } = options != null ? options : {};
85
+ if (imgUrl) configureImgUrl(imgUrl);
77
86
  if (useComponents) installComponents(app);
78
87
  if (useDirectives) installDirectives(app);
79
88
  };
80
89
  const index = __spreadValues(__spreadValues({ install }, tools), hooks);
81
90
  export {
91
+ D as DEFAULT_IMG_FASTEN,
92
+ D2 as DEFAULT_ORIGINAL_TOOLBAR,
93
+ a2 as DEFAULT_PREVIEW_CLOSE_ON_PRESS_ESCAPE,
94
+ b2 as DEFAULT_PREVIEW_HIDE_ON_CLICK_MODAL,
95
+ c as DEFAULT_PREVIEW_INFINITE,
96
+ d2 as DEFAULT_PREVIEW_MAX_SCALE,
97
+ e2 as DEFAULT_PREVIEW_MIN_SCALE,
98
+ f2 as DEFAULT_PREVIEW_SCALE,
99
+ g2 as DEFAULT_PREVIEW_SHOW_PROGRESS,
100
+ h as DEFAULT_PREVIEW_SIDE_NAV,
101
+ i2 as DEFAULT_PREVIEW_TELEPORTED,
102
+ j as DEFAULT_PREVIEW_ZOOM_RATE,
103
+ k as DEFAULT_TOOLBAR_BG_COLOR,
104
+ l as DEFAULT_TOOLBAR_ICON_COLOR,
82
105
  _ as FgArgHover,
83
106
  B as FgButtonGroup,
84
107
  _2 as FgCascader,
@@ -87,17 +110,18 @@ export {
87
110
  C2 as FgCustomInputV2,
88
111
  C3 as FgCustomMultipleInput,
89
112
  _4 as FgDragResizable,
90
- D as FgDragSort,
91
- E as FgErrorImage,
113
+ D3 as FgDragSort,
114
+ F as FgErrorImage,
92
115
  H as FgHSelect,
93
116
  _5 as FgHSelectAll,
94
117
  H2 as FgHSelectSJ,
95
118
  _6 as FgIdentifyAddress,
96
119
  _7 as FgImageLoupe,
97
- _8 as FgLazyComponent,
98
- _9 as FgLazyPopover,
99
- l as FgLoading,
100
- L as FgLoadingBtn,
120
+ _8 as FgImgViewerHost,
121
+ _9 as FgLazyComponent,
122
+ L as FgLazyPopover,
123
+ l2 as FgLoading,
124
+ L2 as FgLoadingBtn,
101
125
  M as FgMInput,
102
126
  M2 as FgMyTable,
103
127
  _10 as FgNoRender,
@@ -110,30 +134,37 @@ export {
110
134
  S3 as FgSvgIcon,
111
135
  T as FgTextCopy,
112
136
  _15 as FgTextEllipsisTooltip,
113
- V as VirtualTable,
114
- a as aesDecrypt,
115
- b as aesEncrypt,
116
- c as allPhoneReq,
117
- d as analyzeFileformat,
118
- e as argFormate,
119
- f as base64ToBlob,
120
- g as base64ToFile,
121
- h as boldPoint,
122
- i as checkGoodValue,
123
- j as cleanEmptyFields,
124
- k as convertImageFormat,
125
- l2 as copyText,
126
- m as copyWord,
127
- n as createFileLocalUrl,
137
+ F2 as FgViewImg,
138
+ V as FgViewImgPopover,
139
+ _16 as FgViewImgPreview,
140
+ I as ImgViewerStore,
141
+ N as NAV_TOOLBAR_KEYS,
142
+ P as PREVIEW_BASE_Z_INDEX,
143
+ V2 as VirtualTable,
144
+ a4 as aesDecrypt,
145
+ b3 as aesEncrypt,
146
+ c2 as allPhoneReq,
147
+ d3 as analyzeFileformat,
148
+ e3 as argFormate,
149
+ f3 as base64ToBlob,
150
+ g4 as base64ToFile,
151
+ h2 as boldPoint,
152
+ i3 as checkGoodValue,
153
+ j2 as cleanEmptyFields,
154
+ configureImgUrl,
155
+ k2 as convertImageFormat,
156
+ l3 as copyText,
157
+ m2 as copyWord,
158
+ n2 as createFileLocalUrl,
128
159
  o as createUuid,
129
160
  p as currentDaysLessFivedays,
130
161
  q as debounce,
131
162
  index as default,
132
163
  detectFileType,
133
- r as dropperColor,
134
- s as fileUrlToBase64,
135
- t as filterCountryAreaCodeList,
136
- u as filterMethodLowerCase,
164
+ r3 as dropperColor,
165
+ s2 as fileUrlToBase64,
166
+ t2 as filterCountryAreaCodeList,
167
+ u2 as filterMethodLowerCase,
137
168
  v as filterSearch,
138
169
  w as findNodePath,
139
170
  x as flattenTreeWithPath,
@@ -143,38 +174,48 @@ export {
143
174
  A as formatTimestamp,
144
175
  B2 as formatXmlText,
145
176
  C4 as formateDate,
146
- D2 as formateOperateLogWord,
147
- E2 as formateTaskTableData,
148
- F as generateFpid,
177
+ D4 as formateOperateLogWord,
178
+ E as formateTaskTableData,
179
+ F3 as generateFpid,
149
180
  G as generatePassword,
150
181
  H3 as getAddressCode,
151
- I as getAddressNameByCode,
182
+ I2 as getAddressNameByCode,
152
183
  J as getAppType,
153
184
  K as getArrayBufferFromInput,
154
- L2 as getFileFolderToEnums,
185
+ g3 as getDialogZindex,
186
+ L3 as getFileFolderToEnums,
155
187
  M3 as getFilenameAndExtension,
156
- N as getImageSizeByFile,
188
+ N2 as getImageSizeByFile,
189
+ g as getImgFasten,
157
190
  O as getMobileSubmitParams,
158
- P as getQueryParams,
191
+ a as getNetworkAdaptiveOptions,
192
+ b as getOssLinks,
193
+ P2 as getQueryParams,
159
194
  Q as getUUID,
160
195
  R as getUrlSuffix,
161
196
  S4 as getXmlKeyValue,
162
197
  T2 as hasInvalidFileNameChars,
198
+ i as imgUrlConfigKey,
199
+ d as initNetworkListener,
163
200
  installComponents,
164
201
  installDirectives,
165
202
  U as isCmykPsd,
166
- V2 as isFuction,
203
+ V3 as isFuction,
167
204
  W as isMobileDevice,
168
205
  X as isPdfUrl,
169
206
  Y as isSameDay,
207
+ e as isUnsupportedImg,
170
208
  Z as localUrlToFile,
171
- _16 as longestContinuousMatch,
209
+ _17 as longestContinuousMatch,
172
210
  $ as mergeColumns,
173
211
  a0 as mergeItem,
174
212
  a1 as mergeTaskTableData,
175
- a2 as modelCodeReg,
176
- a3 as modelListFilter,
177
- a4 as nameReg,
213
+ a22 as modelCodeReg,
214
+ a32 as modelListFilter,
215
+ m as montageImgUrl,
216
+ a42 as nameReg,
217
+ n as networkKey,
218
+ f as notSupportedImgTypes,
178
219
  a5 as numberFilter,
179
220
  a6 as numberToChinese,
180
221
  a7 as numberToRatio,
@@ -196,17 +237,23 @@ export {
196
237
  af as preventDefaultHandler,
197
238
  ag as pwdReg,
198
239
  ah as ratioToNumber,
199
- s2 as shortcuts,
240
+ r as replaceUnsupportedImg,
241
+ r2 as resolvePreviewSideNav,
242
+ s3 as shortcuts,
243
+ s as shouldShowPreviewSideNav,
200
244
  ai as sleep,
201
245
  aj as splitArray,
202
246
  ak as strPasteJson,
203
247
  al as stringArrayDiff,
204
248
  am as stringToUnicodeEscape,
249
+ t as temuThumbUrl,
205
250
  an as trimAndReduceSpaces,
206
251
  ao as truncateText,
207
252
  ap as unicodeEscapeToChars,
208
253
  aq as updateOringin,
209
- u2 as usePagination,
254
+ u as useImgViewerState,
255
+ a3 as useImgViewerStore,
256
+ u3 as usePagination,
210
257
  ar as validateMobileByCountry,
211
258
  as as webpToPng
212
259
  };