fangguo-component 1.2.3 → 1.2.5

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 (52) hide show
  1. package/dist/{ErrorImage-CFVt1ht_.js → ErrorImage-Ao9kEEUg.js} +2 -2
  2. package/dist/FgCascader.css +2 -14
  3. package/dist/{FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js → FgCascader.vue_vue_type_style_index_0_lang-CtUPO8fk.js} +20 -26
  4. package/dist/{HSelect-DgFjd08Y.js → HSelect-0w2mSrtm.js} +1 -1
  5. package/dist/{HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js → HSelectAll.vue_vue_type_script_setup_true_lang-xHFbYs59.js} +1 -1
  6. package/dist/{HSelectSJ-DOFUzTZV.js → HSelectSJ-Cm573j6B.js} +1 -1
  7. package/dist/{ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js → ImgViewerHost.vue_vue_type_script_setup_true_lang-DO9s-b9s.js} +42 -3
  8. package/dist/{LazyPopover-7ebuh-QG.js → LazyPopover-CcvilJ6U.js} +25 -3
  9. package/dist/LazyPopover.css +1 -1
  10. package/dist/{SelectTree-DUH92Iwr.js → SelectTree-BHvvkiQi.js} +1 -1
  11. package/dist/ViewImg-CLRjYOUN.js +556 -0
  12. package/dist/ViewImg.css +60 -35
  13. package/dist/ViewImgPopover-BtFnYval.js +463 -0
  14. package/dist/ViewImgPopover.css +28 -26
  15. package/dist/components/cascader/index.js +1 -1
  16. package/dist/components/errorImage/index.js +2 -2
  17. package/dist/components/hSelect/index.js +1 -1
  18. package/dist/components/hSelectAll/index.js +1 -1
  19. package/dist/components/hSelectSJ/index.js +1 -1
  20. package/dist/components/imgViewerHost/ImgViewerHost.vue.d.ts +7 -1
  21. package/dist/components/imgViewerHost/imgViewerAutoHost.d.ts +2 -0
  22. package/dist/components/imgViewerHost/imgViewerHostRegistry.d.ts +5 -0
  23. package/dist/components/imgViewerHost/index.js +2 -2
  24. package/dist/components/index.js +22 -18
  25. package/dist/components/lazyPopover/LazyPopover.vue.d.ts +2 -0
  26. package/dist/components/lazyPopover/index.js +1 -1
  27. package/dist/components/selectTree/index.js +1 -1
  28. package/dist/components/viewImg/ViewImg.vue.d.ts +44 -19
  29. package/dist/components/viewImg/ViewImgErrorFallback.vue.d.ts +17 -0
  30. package/dist/components/viewImg/defaults.d.ts +28 -0
  31. package/dist/components/viewImg/index.d.ts +3 -0
  32. package/dist/components/viewImg/index.js +6 -2
  33. package/dist/components/viewImgPopover/ViewImgPopover.vue.d.ts +207 -99
  34. package/dist/components/viewImgPopover/index.js +1 -1
  35. package/dist/components/viewImgPreview/ViewImgPreview.vue.d.ts +6 -6
  36. package/dist/imgViewerAutoHost-BQVVGop1.js +32 -0
  37. package/dist/{imgViewerStore-DK3zvGf4.js → imgViewerStore-Ajm-L7R5.js} +7 -0
  38. package/dist/{index-Qkq7I01c.js → index-DsfY1yqo.js} +6 -1
  39. package/dist/{index-Ce_edAQB.js → index-wDrpgKQT.js} +17 -13
  40. package/dist/index.d.ts +8 -3
  41. package/dist/index.js +58 -49
  42. package/dist/montageImgUrl-B9ZmJ7TF.js +464 -0
  43. package/dist/tools/ImageParserUtils/index.d.ts +1 -1
  44. package/dist/tools/imgUrl/imageUrl.d.ts +246 -0
  45. package/dist/tools/imgUrl/index.d.ts +2 -0
  46. package/dist/tools/imgUrl/index.js +13 -8
  47. package/dist/tools/imgUrl/montageImgUrl.d.ts +11 -5
  48. package/dist/tools/index.js +19 -14
  49. package/package.json +2 -2
  50. package/dist/ViewImg-DXhF20SL.js +0 -254
  51. package/dist/ViewImgPopover-QblZG0z5.js +0 -343
  52. package/dist/montageImgUrl-CwgYnB2h.js +0 -204
@@ -35,6 +35,12 @@ const state = reactive({
35
35
  onClose: null,
36
36
  onSwitch: null
37
37
  });
38
+ function ensureImgViewerHost() {
39
+ if (typeof window === "undefined" || typeof document === "undefined") return;
40
+ void import("./imgViewerAutoHost-BQVVGop1.js").then(({ ensureImgViewerAutoHost }) => {
41
+ ensureImgViewerAutoHost();
42
+ }).catch(() => void 0);
43
+ }
38
44
  function createImgViewerStore() {
39
45
  return {
40
46
  // 预览宿主是否已经被激活过
@@ -142,6 +148,7 @@ function createImgViewerStore() {
142
148
  * @param options.onSwitch 预览切换图片时回调
143
149
  */
144
150
  showImgViewer(options = {}) {
151
+ ensureImgViewerHost();
145
152
  const {
146
153
  previewImgList = [],
147
154
  defImgPreviewIndex = 0,
@@ -1,4 +1,4 @@
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";
1
+ import { D as DEFAULT_IMG_FASTEN, b as buildPlatformImageResizeUrl, c as configureImgUrl, g as getImageResizeRuleName, a as getImgFasten, d as getNetworkAdaptiveOptions, e as getOssLinks, f as getPlatformOriginalImageUrl, h as hasPlatformImageResizeParams, i as imgUrlConfigKey, j as initNetworkListener, k as isUnsupportedImg, m as montageImgUrl, n as networkKey, l as notSupportedImgTypes, r as removeImageUrlQuery, o as replaceUnsupportedImg, t as temuThumbUrl } from "./montageImgUrl-B9ZmJ7TF.js";
2
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";
3
3
  import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./tools/ImageParserUtils/index.js";
4
4
  import { s as shortcuts } from "./dateShortcuts-DjFC_Txu.js";
@@ -13,6 +13,7 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
13
13
  base64ToBlob,
14
14
  base64ToFile,
15
15
  boldPoint,
16
+ buildPlatformImageResizeUrl,
16
17
  checkGoodValue,
17
18
  cleanEmptyFields,
18
19
  configureImgUrl,
@@ -47,16 +48,19 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
47
48
  getArrayBufferFromInput,
48
49
  getFileFolderToEnums,
49
50
  getFilenameAndExtension,
51
+ getImageResizeRuleName,
50
52
  getImageSizeByFile,
51
53
  getImgFasten,
52
54
  getMobileSubmitParams,
53
55
  getNetworkAdaptiveOptions,
54
56
  getOssLinks,
57
+ getPlatformOriginalImageUrl,
55
58
  getQueryParams,
56
59
  getUUID,
57
60
  getUrlSuffix,
58
61
  getXmlKeyValue,
59
62
  hasInvalidFileNameChars,
63
+ hasPlatformImageResizeParams,
60
64
  imgUrlConfigKey,
61
65
  initNetworkListener,
62
66
  isCmykPsd,
@@ -97,6 +101,7 @@ const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
97
101
  preventDefaultHandler,
98
102
  pwdReg,
99
103
  ratioToNumber,
104
+ removeImageUrlQuery,
100
105
  replaceUnsupportedImg,
101
106
  shortcuts,
102
107
  sleep,
@@ -1,11 +1,11 @@
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-CstlYwHs.js";
2
+ import { _ as _sfc_main$1 } from "./FgCascader.vue_vue_type_style_index_0_lang-CtUPO8fk.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-C6qzdQT-.js";
5
+ import { _ as _sfc_main$4 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-xHFbYs59.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 "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
8
+ import { _ as _sfc_main$7 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DO9s-b9s.js";
9
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";
@@ -20,20 +20,20 @@ import { C as ContentTitle } from "./ContentTitle-By0Zk1u7.js";
20
20
  import { C as CustomInputV2 } from "./CustomInputV2-BqhBSO53.js";
21
21
  import { C as CustomMultipleInput } from "./CustomMultipleInput-DRMTUtkE.js";
22
22
  import { D as DragSort } from "./DragSort-5WetnkmW.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";
23
+ import { E as ErrorImage } from "./ErrorImage-Ao9kEEUg.js";
24
+ import { H as HSelect } from "./HSelect-0w2mSrtm.js";
25
+ import { H as HSelectSJ } from "./HSelectSJ-Cm573j6B.js";
26
+ import { L as LazyPopover } from "./LazyPopover-CcvilJ6U.js";
27
27
  import { L as LoadingBtn } from "./LoadingBtn-DWm2cY9k.js";
28
28
  import { M as MInput } from "./MInput-s_P63myh.js";
29
29
  import { M as MyTable } from "./MyTable-CHvxPYgk.js";
30
30
  import { S as SelectAddress } from "./SelectAddress-CCepDxu8.js";
31
- import { S as SelectTree } from "./SelectTree-DUH92Iwr.js";
31
+ import { S as SelectTree } from "./SelectTree-BHvvkiQi.js";
32
32
  import { S as SvgIcon } from "./SvgIcon-DIg0upEk.js";
33
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";
34
+ import { F as FgViewImg, V as ViewImgErrorFallback, c as configureViewImgDefaults, r as resetViewImgDefaults, u as useViewImgDefaults } from "./ViewImg-CLRjYOUN.js";
35
+ import { V as ViewImgPopover } from "./ViewImgPopover-BtFnYval.js";
36
+ import { I as ImgViewerStore, P as PREVIEW_BASE_Z_INDEX, g as getDialogZindex, u as useImgViewerState, a as useImgViewerStore } from "./imgViewerStore-Ajm-L7R5.js";
37
37
  import { V as VirtualTable } from "./VirtualTable-Cm_L7q9W.js";
38
38
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39
39
  __proto__: null,
@@ -59,7 +59,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
59
59
  FgCustomMultipleInput: CustomMultipleInput,
60
60
  FgDragResizable: _sfc_main$3,
61
61
  FgDragSort: DragSort,
62
- FgErrorImage,
62
+ FgErrorImage: ErrorImage,
63
63
  FgHSelect: HSelect,
64
64
  FgHSelectAll: _sfc_main$4,
65
65
  FgHSelectSJ: HSelectSJ,
@@ -82,17 +82,21 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
82
82
  FgTextCopy: TextCopy,
83
83
  FgTextEllipsisTooltip: _sfc_main$e,
84
84
  FgViewImg,
85
+ FgViewImgErrorFallback: ViewImgErrorFallback,
85
86
  FgViewImgPopover: ViewImgPopover,
86
87
  FgViewImgPreview: _sfc_main$f,
87
88
  ImgViewerStore,
88
89
  NAV_TOOLBAR_KEYS,
89
90
  PREVIEW_BASE_Z_INDEX,
90
91
  VirtualTable,
92
+ configureViewImgDefaults,
91
93
  getDialogZindex,
94
+ resetViewImgDefaults,
92
95
  resolvePreviewSideNav,
93
96
  shouldShowPreviewSideNav,
94
97
  useImgViewerState,
95
- useImgViewerStore
98
+ useImgViewerStore,
99
+ useViewImgDefaults
96
100
  }, Symbol.toStringTag, { value: "Module" }));
97
101
  export {
98
102
  components as c
package/dist/index.d.ts CHANGED
@@ -142,7 +142,7 @@ declare const _default: {
142
142
  text: string;
143
143
  value: Date[];
144
144
  }[]>;
145
- parsePSD: (file: File, options?: tools.ParseOptions, agPsdOptions?: import('./tools/ImageParserUtils/common').AgPsdOptions) => Promise<{
145
+ parsePSD: (file: File, options?: tools.ParseOptions, agPsdOptions?: tools.AgPsdOptions) => Promise<{
146
146
  status: boolean;
147
147
  errMsg: string;
148
148
  dataUrl?: string;
@@ -178,7 +178,7 @@ declare const _default: {
178
178
  originalFileName?: string;
179
179
  hashedFileName?: string;
180
180
  }>;
181
- parsePSDFile: (files: File, options?: tools.ParseOptions, agPsdOptions?: import('./tools/ImageParserUtils/common').AgPsdOptions) => Promise<any>;
181
+ parsePSDFile: (files: File, options?: tools.ParseOptions, agPsdOptions?: tools.AgPsdOptions) => Promise<any>;
182
182
  parseTIFFFile: (files: File, options?: tools.ParseOptions) => Promise<any>;
183
183
  parseImageFile: (files: File, options?: tools.ParseOptions) => Promise<any>;
184
184
  detectFileType: (file: File) => Promise<{
@@ -187,7 +187,7 @@ declare const _default: {
187
187
  fileType: string;
188
188
  }>;
189
189
  formatFileSize: (bytes: number) => string;
190
- parseFile: (file: File, options?: tools.ParseOptions, agPsdOptions?: import('./tools/ImageParserUtils/common').AgPsdOptions) => Promise<tools.ParsedImageInfo>;
190
+ parseFile: (file: File, options?: tools.ParseOptions, agPsdOptions?: tools.AgPsdOptions) => Promise<tools.ParsedImageInfo>;
191
191
  parseFiles: (files: File[], onProgress?: (current: number, total: number) => void, onFileComplete?: (result: tools.ParsedImageInfo, current: number, total: number) => void, options?: tools.ParseOptions) => Promise<{
192
192
  results: tools.ParsedImageInfo[];
193
193
  failedCount: number;
@@ -205,6 +205,11 @@ declare const _default: {
205
205
  notSupportedImgTypes: string[];
206
206
  replaceUnsupportedImg: typeof tools.replaceUnsupportedImg;
207
207
  temuThumbUrl: typeof tools.temuThumbUrl;
208
+ buildPlatformImageResizeUrl: typeof tools.buildPlatformImageResizeUrl;
209
+ getImageResizeRuleName: typeof tools.getImageResizeRuleName;
210
+ getPlatformOriginalImageUrl: typeof tools.getPlatformOriginalImageUrl;
211
+ hasPlatformImageResizeParams: typeof tools.hasPlatformImageResizeParams;
212
+ removeImageUrlQuery: typeof tools.removeImageUrlQuery;
208
213
  install: (app: App, options?: FangguoInstallOptions) => void;
209
214
  };
210
215
  export default _default;
package/dist/index.js CHANGED
@@ -14,20 +14,20 @@ var __spreadValues = (a10, b4) => {
14
14
  }
15
15
  return a10;
16
16
  };
17
- import { c as components } from "./index-Ce_edAQB.js";
18
- import { t as tools } from "./index-Qkq7I01c.js";
17
+ import { c as components } from "./index-wDrpgKQT.js";
18
+ import { t as tools } from "./index-DsfY1yqo.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
+ import { c as configureImgUrl } from "./montageImgUrl-B9ZmJ7TF.js";
22
+ import { D, b, g, a, d, e, f, h, i, j, k, m, n, l, r, o, t } from "./montageImgUrl-B9ZmJ7TF.js";
23
23
  import { _ } from "./ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js";
24
- import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-CstlYwHs.js";
24
+ import { _ as _2 } from "./FgCascader.vue_vue_type_style_index_0_lang-CtUPO8fk.js";
25
25
  import { _ as _3 } from "./CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js";
26
26
  import { _ as _4 } from "./DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js";
27
- import { _ as _5 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C6qzdQT-.js";
27
+ import { _ as _5 } from "./HSelectAll.vue_vue_type_script_setup_true_lang-xHFbYs59.js";
28
28
  import { _ as _6 } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js";
29
29
  import { _ as _7 } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js";
30
- import { _ as _8 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DBs42WOq.js";
30
+ import { _ as _8 } from "./ImgViewerHost.vue_vue_type_script_setup_true_lang-DO9s-b9s.js";
31
31
  import { _ as _9 } from "./LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js";
32
32
  import { _ as _10 } from "./NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js";
33
33
  import { _ as _11 } from "./SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js";
@@ -36,32 +36,32 @@ import { _ as _13 } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-BEZw
36
36
  import { _ as _14 } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js";
37
37
  import { _ as _15 } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js";
38
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";
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 as h2, i as i2, j as j2, k as k2, l as l2, N, r as r2, s } from "./types-Ccn_sb6f.js";
40
40
  import { B } from "./ButtonGroup-DqViorHX.js";
41
41
  import { C } from "./ContentTitle-By0Zk1u7.js";
42
42
  import { C as C2 } from "./CustomInputV2-BqhBSO53.js";
43
43
  import { C as C3 } from "./CustomMultipleInput-DRMTUtkE.js";
44
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";
45
+ import { E } from "./ErrorImage-Ao9kEEUg.js";
46
+ import { H } from "./HSelect-0w2mSrtm.js";
47
+ import { H as H2 } from "./HSelectSJ-Cm573j6B.js";
48
+ import { L } from "./LazyPopover-CcvilJ6U.js";
49
+ import { l as l3 } from "./loading-CGrVcnNl.js";
50
50
  import { L as L2 } from "./LoadingBtn-DWm2cY9k.js";
51
51
  import { M } from "./MInput-s_P63myh.js";
52
52
  import { M as M2 } from "./MyTable-CHvxPYgk.js";
53
53
  import { S } from "./SelectAddress-CCepDxu8.js";
54
- import { S as S2 } from "./SelectTree-DUH92Iwr.js";
54
+ import { S as S2 } from "./SelectTree-BHvvkiQi.js";
55
55
  import { S as S3 } from "./SvgIcon-DIg0upEk.js";
56
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";
57
+ import { F, V, c as c2, r as r3, u } from "./ViewImg-CLRjYOUN.js";
58
+ import { V as V2 } from "./ViewImgPopover-BtFnYval.js";
59
+ import { I, P, g as g3, u as u2, a as a3 } from "./imgViewerStore-Ajm-L7R5.js";
60
+ import { V as V3 } from "./VirtualTable-Cm_L7q9W.js";
61
+ import { a as a4, b as b3, c as c3, d as d3, e as e3, f as f3, g as g4, h as h3, i as i3, j as j3, k as k3, l as l4, m as m2, n as n2, o as o2, p, q, r as r4, s as s2, t as t2, u as u3, v, w, x, y, z, A, B as B2, C as C4, D as D4, E as E2, F as F2, 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 V4, 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";
62
62
  import { detectFileType, formatFileSize, parseFile, parseFiles, parseImage, parseImageFile, parsePSD, parsePSDFile, parseTIFF, parseTIFFFile } from "./tools/ImageParserUtils/index.js";
63
63
  import { s as s3 } from "./dateShortcuts-DjFC_Txu.js";
64
- import { u as u3 } from "./usePagination-C63IRXjZ.js";
64
+ import { u as u4 } from "./usePagination-C63IRXjZ.js";
65
65
  function isDirectiveDef(v2) {
66
66
  if (!v2 || typeof v2 !== "object") return false;
67
67
  const d4 = v2;
@@ -97,11 +97,11 @@ export {
97
97
  e2 as DEFAULT_PREVIEW_MIN_SCALE,
98
98
  f2 as DEFAULT_PREVIEW_SCALE,
99
99
  g2 as DEFAULT_PREVIEW_SHOW_PROGRESS,
100
- h as DEFAULT_PREVIEW_SIDE_NAV,
100
+ h2 as DEFAULT_PREVIEW_SIDE_NAV,
101
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,
102
+ j2 as DEFAULT_PREVIEW_ZOOM_RATE,
103
+ k2 as DEFAULT_TOOLBAR_BG_COLOR,
104
+ l2 as DEFAULT_TOOLBAR_ICON_COLOR,
105
105
  _ as FgArgHover,
106
106
  B as FgButtonGroup,
107
107
  _2 as FgCascader,
@@ -111,7 +111,7 @@ export {
111
111
  C3 as FgCustomMultipleInput,
112
112
  _4 as FgDragResizable,
113
113
  D3 as FgDragSort,
114
- F as FgErrorImage,
114
+ E as FgErrorImage,
115
115
  H as FgHSelect,
116
116
  _5 as FgHSelectAll,
117
117
  H2 as FgHSelectSJ,
@@ -120,7 +120,7 @@ export {
120
120
  _8 as FgImgViewerHost,
121
121
  _9 as FgLazyComponent,
122
122
  L as FgLazyPopover,
123
- l2 as FgLoading,
123
+ l3 as FgLoading,
124
124
  L2 as FgLoadingBtn,
125
125
  M as FgMInput,
126
126
  M2 as FgMyTable,
@@ -134,37 +134,40 @@ export {
134
134
  S3 as FgSvgIcon,
135
135
  T as FgTextCopy,
136
136
  _15 as FgTextEllipsisTooltip,
137
- F2 as FgViewImg,
138
- V as FgViewImgPopover,
137
+ F as FgViewImg,
138
+ V as FgViewImgErrorFallback,
139
+ V2 as FgViewImgPopover,
139
140
  _16 as FgViewImgPreview,
140
141
  I as ImgViewerStore,
141
142
  N as NAV_TOOLBAR_KEYS,
142
143
  P as PREVIEW_BASE_Z_INDEX,
143
- V2 as VirtualTable,
144
+ V3 as VirtualTable,
144
145
  a4 as aesDecrypt,
145
146
  b3 as aesEncrypt,
146
- c2 as allPhoneReq,
147
+ c3 as allPhoneReq,
147
148
  d3 as analyzeFileformat,
148
149
  e3 as argFormate,
149
150
  f3 as base64ToBlob,
150
151
  g4 as base64ToFile,
151
- h2 as boldPoint,
152
+ h3 as boldPoint,
153
+ b as buildPlatformImageResizeUrl,
152
154
  i3 as checkGoodValue,
153
- j2 as cleanEmptyFields,
155
+ j3 as cleanEmptyFields,
154
156
  configureImgUrl,
155
- k2 as convertImageFormat,
156
- l3 as copyText,
157
+ c2 as configureViewImgDefaults,
158
+ k3 as convertImageFormat,
159
+ l4 as copyText,
157
160
  m2 as copyWord,
158
161
  n2 as createFileLocalUrl,
159
- o as createUuid,
162
+ o2 as createUuid,
160
163
  p as currentDaysLessFivedays,
161
164
  q as debounce,
162
165
  index as default,
163
166
  detectFileType,
164
- r3 as dropperColor,
167
+ r4 as dropperColor,
165
168
  s2 as fileUrlToBase64,
166
169
  t2 as filterCountryAreaCodeList,
167
- u2 as filterMethodLowerCase,
170
+ u3 as filterMethodLowerCase,
168
171
  v as filterSearch,
169
172
  w as findNodePath,
170
173
  x as flattenTreeWithPath,
@@ -175,8 +178,8 @@ export {
175
178
  B2 as formatXmlText,
176
179
  C4 as formateDate,
177
180
  D4 as formateOperateLogWord,
178
- E as formateTaskTableData,
179
- F3 as generateFpid,
181
+ E2 as formateTaskTableData,
182
+ F2 as generateFpid,
180
183
  G as generatePassword,
181
184
  H3 as getAddressCode,
182
185
  I2 as getAddressNameByCode,
@@ -185,26 +188,29 @@ export {
185
188
  g3 as getDialogZindex,
186
189
  L3 as getFileFolderToEnums,
187
190
  M3 as getFilenameAndExtension,
191
+ g as getImageResizeRuleName,
188
192
  N2 as getImageSizeByFile,
189
- g as getImgFasten,
193
+ a as getImgFasten,
190
194
  O as getMobileSubmitParams,
191
- a as getNetworkAdaptiveOptions,
192
- b as getOssLinks,
195
+ d as getNetworkAdaptiveOptions,
196
+ e as getOssLinks,
197
+ f as getPlatformOriginalImageUrl,
193
198
  P2 as getQueryParams,
194
199
  Q as getUUID,
195
200
  R as getUrlSuffix,
196
201
  S4 as getXmlKeyValue,
197
202
  T2 as hasInvalidFileNameChars,
203
+ h as hasPlatformImageResizeParams,
198
204
  i as imgUrlConfigKey,
199
- d as initNetworkListener,
205
+ j as initNetworkListener,
200
206
  installComponents,
201
207
  installDirectives,
202
208
  U as isCmykPsd,
203
- V3 as isFuction,
209
+ V4 as isFuction,
204
210
  W as isMobileDevice,
205
211
  X as isPdfUrl,
206
212
  Y as isSameDay,
207
- e as isUnsupportedImg,
213
+ k as isUnsupportedImg,
208
214
  Z as localUrlToFile,
209
215
  _17 as longestContinuousMatch,
210
216
  $ as mergeColumns,
@@ -215,7 +221,7 @@ export {
215
221
  m as montageImgUrl,
216
222
  a42 as nameReg,
217
223
  n as networkKey,
218
- f as notSupportedImgTypes,
224
+ l as notSupportedImgTypes,
219
225
  a5 as numberFilter,
220
226
  a6 as numberToChinese,
221
227
  a7 as numberToRatio,
@@ -237,7 +243,9 @@ export {
237
243
  af as preventDefaultHandler,
238
244
  ag as pwdReg,
239
245
  ah as ratioToNumber,
240
- r as replaceUnsupportedImg,
246
+ r as removeImageUrlQuery,
247
+ o as replaceUnsupportedImg,
248
+ r3 as resetViewImgDefaults,
241
249
  r2 as resolvePreviewSideNav,
242
250
  s3 as shortcuts,
243
251
  s as shouldShowPreviewSideNav,
@@ -251,9 +259,10 @@ export {
251
259
  ao as truncateText,
252
260
  ap as unicodeEscapeToChars,
253
261
  aq as updateOringin,
254
- u as useImgViewerState,
262
+ u2 as useImgViewerState,
255
263
  a3 as useImgViewerStore,
256
- u3 as usePagination,
264
+ u4 as usePagination,
265
+ u as useViewImgDefaults,
257
266
  ar as validateMobileByCountry,
258
267
  as as webpToPng
259
268
  };