@skyfox2000/webui 1.4.26 → 1.5.0

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 (29) hide show
  1. package/lib/assets/modules/{baseLayout-DiqAUz2h.js → baseLayout-Ck74iWSW.js} +3 -3
  2. package/lib/assets/modules/{file-upload-CKMd0H11.js → file-upload-CYCbA0Go.js} +1 -1
  3. package/lib/assets/modules/{index-BpsqYPCw.js → index-C8QXmnsn.js} +1 -1
  4. package/lib/assets/modules/{index-DvozNhVM.js → index-DGfxQmRW.js} +2 -2
  5. package/lib/assets/modules/{index-gmbMtZa2.js → index-D_-xtDo9.js} +2 -2
  6. package/lib/assets/modules/{menuTabs-CvAiSVNW.js → menuTabs-Dx5VAF5K.js} +108 -111
  7. package/lib/assets/modules/{toolIcon-DWurTPaB.js → toolIcon-BD37QUAw.js} +1 -1
  8. package/lib/assets/modules/upload-template-DPaurj5G.js +6471 -0
  9. package/lib/assets/modules/{uploadList-De6KfTAV.js → uploadList-C0zjgyKg.js} +4 -4
  10. package/lib/es/AceEditor/index.js +3 -3
  11. package/lib/es/BasicLayout/index.js +2 -2
  12. package/lib/es/Error403/index.js +1 -1
  13. package/lib/es/Error404/index.js +1 -1
  14. package/lib/es/ExcelForm/index.js +5 -5
  15. package/lib/es/MenuLayout/index.js +2 -2
  16. package/lib/es/TemplateFile/index.js +4 -4
  17. package/lib/es/UploadForm/index.js +4 -4
  18. package/lib/index.d.ts +1 -0
  19. package/lib/locales/default.d.ts +130 -0
  20. package/lib/locales/index.d.ts +20 -0
  21. package/lib/webui.es.js +90 -84
  22. package/package.json +5 -2
  23. package/src/components/content/list/index.vue +1 -2
  24. package/src/components/content/table/index.vue +2 -2
  25. package/src/components/layout/header/headerExits.vue +8 -4
  26. package/src/index.ts +2 -0
  27. package/src/locales/default.ts +204 -0
  28. package/src/locales/index.ts +290 -0
  29. package/lib/assets/modules/upload-template-BuaWOXY_.js +0 -2584
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as pe, ref as O, computed as $, watch as T, resolveDirective as de, createElementBlock as d, openBlock as c, normalizeClass as z, unref as n, createElementVNode as h, withDirectives as x, createCommentVNode as w, createBlock as V, mergeProps as q, withCtx as v, createVNode as p, createTextVNode as P, toDisplayString as I, Fragment as me, renderList as fe } from "vue";
2
- import { _ as G } from "./index-BpsqYPCw.js";
3
- import { a as B, _ as R } from "./toolIcon-DWurTPaB.js";
2
+ import { _ as G } from "./index-C8QXmnsn.js";
3
+ import { a as B, _ as R } from "./toolIcon-BD37QUAw.js";
4
4
  import { httpPost as K, ResStatus as N } from "@skyfox2000/fapi";
5
- import { L as W, u as X, v as he, _ as ve } from "./upload-template-BuaWOXY_.js";
6
- import { U as i, f as ye, p as H } from "./file-upload-CKMd0H11.js";
5
+ import { L as W, u as X, v as he, _ as ve } from "./upload-template-DPaurj5G.js";
6
+ import { U as i, f as ye, p as H } from "./file-upload-CYCbA0Go.js";
7
7
  import { combineParams as Y } from "@skyfox2000/microbase";
8
8
  import _ from "vue-m-message";
9
9
  import "async-validator";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
2
2
  import "ant-design-vue";
3
- import { _ as q } from "../../assets/modules/toolIcon-DWurTPaB.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-BD37QUAw.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/upload-template-BuaWOXY_.js";
5
+ import "../../assets/modules/upload-template-DPaurj5G.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { _ as D } from "../../assets/modules/index-DvozNhVM.js";
10
+ import { _ as D } from "../../assets/modules/index-DGfxQmRW.js";
11
11
  import "vue-draggable-next";
12
12
  const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
13
13
  const o = document.createElement("script");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
2
- import { _ as g } from "../../assets/modules/baseLayout-DiqAUz2h.js";
3
- import { ah as A, a as S } from "../../assets/modules/upload-template-BuaWOXY_.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-Ck74iWSW.js";
3
+ import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/upload-template-BuaWOXY_.js";
2
+ import { r as s } from "../../assets/modules/upload-template-DPaurj5G.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/upload-template-BuaWOXY_.js";
2
+ import { r as s } from "../../assets/modules/upload-template-DPaurj5G.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as we, ref as f, computed as T, watch as H, onMounted as be, createBlock as W, openBlock as d, unref as n, withCtx as S, renderSlot as J, createElementBlock as g, createCommentVNode as K, createElementVNode as h, createVNode as C, createTextVNode as X, toDisplayString as E, normalizeClass as Ce, Fragment as ie, renderList as ne } from "vue";
2
- import { _ as Y } from "../../assets/modules/index-BpsqYPCw.js";
2
+ import { _ as Y } from "../../assets/modules/index-C8QXmnsn.js";
3
3
  import { Modal as Fe, Upload as ue, Space as _e } from "ant-design-vue";
4
4
  import { httpGet as Ue, ResStatus as fe } from "@skyfox2000/fapi";
5
- import { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-BuaWOXY_.js";
6
- import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CKMd0H11.js";
5
+ import { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-DPaurj5G.js";
6
+ import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CYCbA0Go.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import p from "vue-m-message";
9
- import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-gmbMtZa2.js";
9
+ import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-D_-xtDo9.js";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
12
  import "async-validator";
@@ -307,7 +307,7 @@ const Be = (l) => l.includes(",") || l.includes(`
307
307
  return p.error(v), ue.LIST_IGNORE;
308
308
  try {
309
309
  if (A(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
310
- const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-gmbMtZa2.js").then((he) => he.j), M = await G(O, t.name);
310
+ const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-D_-xtDo9.js").then((he) => he.j), M = await G(O, t.name);
311
311
  if (!M.success)
312
312
  throw new Error(M.error || "CSV文件处理失败");
313
313
  const oe = await (await fetch(M.blobUrl)).arrayBuffer();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as h, resolveComponent as v, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
2
- import { _ as y } from "../../assets/modules/baseLayout-DiqAUz2h.js";
3
- import { ah as A, a as S } from "../../assets/modules/upload-template-BuaWOXY_.js";
2
+ import { _ as y } from "../../assets/modules/baseLayout-Ck74iWSW.js";
3
+ import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import k from "vue-m-message";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as x, ref as o, watch as S, onMounted as h, createBlock as C, openBlock as F, unref as m, withCtx as s, createVNode as f, createTextVNode as q } from "vue";
2
- import { _ as L } from "../../assets/modules/index-BpsqYPCw.js";
2
+ import { _ as L } from "../../assets/modules/index-C8QXmnsn.js";
3
3
  import { Modal as z, Space as D } from "ant-design-vue";
4
4
  import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
5
- import { ak as d } from "../../assets/modules/upload-template-BuaWOXY_.js";
6
- import { U as b } from "../../assets/modules/file-upload-CKMd0H11.js";
5
+ import { ak as d } from "../../assets/modules/upload-template-DPaurj5G.js";
6
+ import { U as b } from "../../assets/modules/file-upload-CYCbA0Go.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- import { U as g } from "../../assets/modules/uploadList-De6KfTAV.js";
12
+ import { U as g } from "../../assets/modules/uploadList-C0zjgyKg.js";
13
13
  const _ = /* @__PURE__ */ x({
14
14
  __name: "templateFile",
15
15
  props: {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as S, ref as s, watch as b, onMounted as F, createBlock as z, openBlock as y, unref as p, withCtx as n, createVNode as v, mergeProps as D, createTextVNode as w } from "vue";
2
- import { _ as c } from "../../assets/modules/index-BpsqYPCw.js";
2
+ import { _ as c } from "../../assets/modules/index-C8QXmnsn.js";
3
3
  import { Modal as _, Space as L } from "ant-design-vue";
4
4
  import { ResStatus as k } from "@skyfox2000/fapi";
5
- import { a7 as T } from "../../assets/modules/upload-template-BuaWOXY_.js";
5
+ import { a7 as T } from "../../assets/modules/upload-template-DPaurj5G.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import E from "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { A as N } from "../../assets/modules/file-upload-CKMd0H11.js";
10
+ import { A as N } from "../../assets/modules/file-upload-CYCbA0Go.js";
11
11
  import "vue-draggable-next";
12
- import { U as A } from "../../assets/modules/uploadList-De6KfTAV.js";
12
+ import { U as A } from "../../assets/modules/uploadList-C0zjgyKg.js";
13
13
  const K = /* @__PURE__ */ S({
14
14
  __name: "uploadForm",
15
15
  props: {
package/lib/index.d.ts CHANGED
@@ -47,3 +47,4 @@ export { useSettingInfo } from './stores/settingInfo';
47
47
  export { Alert, Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon, Loading, Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, GroupTools, ToolPanel, Tree, AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, List, ListOperate, PropEditor, type PropConfigItem, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, TimePicker, Transfer, TransferTable, TreeSelect, ImageList, UploadList, Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs, } from './components/index';
48
48
  export type { ToolPanelGroup, DisplayMode, PanelCollapsed, ToolPanelConfig, ToolPanelEvents, ToolPanelProps, DragConfig, };
49
49
  export { uploadTempOpener, uploadTempBtn } from './utils/upload-template';
50
+ export { initLang, i18n, $t, getAvailableLanguages, getLang, setLang } from './locales/index';
@@ -0,0 +1,130 @@
1
+ export declare const defaultLocale: {
2
+ webui: {
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ yes: string;
7
+ no: string;
8
+ close: string;
9
+ save: string;
10
+ saveAs: string;
11
+ delete: string;
12
+ edit: string;
13
+ add: string;
14
+ upload: string;
15
+ download: string;
16
+ preview: string;
17
+ choose: string;
18
+ placeholder: string;
19
+ };
20
+ layout: {
21
+ header: {
22
+ exitPlatform: string;
23
+ exitSystem: string;
24
+ confirmExit: string;
25
+ exitConfirmMessage: string;
26
+ };
27
+ menu: {};
28
+ };
29
+ toolpanel: {
30
+ tool: string;
31
+ searchResult: string;
32
+ list: string;
33
+ listView: string;
34
+ grid: string;
35
+ gridView: string;
36
+ expand: string;
37
+ collapse: string;
38
+ expandPanel: string;
39
+ collapsePanel: string;
40
+ searchPlaceholder: string;
41
+ };
42
+ toolbar: {};
43
+ listOperate: {
44
+ confirmDelete: string;
45
+ };
46
+ dialog: {
47
+ fileUpload: string;
48
+ templateFileManager: string;
49
+ batchImportUser: string;
50
+ uploadFile: string;
51
+ };
52
+ tableOperate: {
53
+ confirmDelete: string;
54
+ };
55
+ drawer: {};
56
+ upload: {
57
+ unsupportedFileType: string;
58
+ fileSizeExceedsLimit: string;
59
+ maxFilesReached: string;
60
+ deleteSuccess: string;
61
+ onlineOffline: string;
62
+ online: string;
63
+ offline: string;
64
+ uploading: string;
65
+ uploadComplete: string;
66
+ uploadFailed: string;
67
+ onlineStatus: string;
68
+ offlineStatus: string;
69
+ pendingUpload: string;
70
+ chooseFile: string;
71
+ chooseDirectory: string;
72
+ download: string;
73
+ preview: string;
74
+ confirmDeleteFile: string;
75
+ delete: string;
76
+ fileMustBe: string;
77
+ singleFileMax: string;
78
+ maxFiles: string;
79
+ };
80
+ imageUpload: {
81
+ loadImageFailed: string;
82
+ };
83
+ timePicker: {};
84
+ select: {};
85
+ switch: {
86
+ error: string;
87
+ };
88
+ textarea: {};
89
+ aceEditor: {
90
+ title: string;
91
+ };
92
+ transfer: {};
93
+ cascader: {};
94
+ datePicker: {};
95
+ propEditor: {
96
+ configName: string;
97
+ configValue: string;
98
+ inputConfigValue: string;
99
+ };
100
+ input: {};
101
+ autoComplete: {
102
+ placeholder: string;
103
+ };
104
+ radio: {
105
+ noData: string;
106
+ all: string;
107
+ };
108
+ treeSelect: {};
109
+ error: {
110
+ pageNotFound: string;
111
+ forbidden: string;
112
+ };
113
+ excelForm: {
114
+ chooseExcelFile: string;
115
+ chooseCsvFile: string;
116
+ chooseExcelOrCsvFile: string;
117
+ validateDataRules: string;
118
+ validateDuplicateData: string;
119
+ uploadAddressNotConfigured: string;
120
+ fileProcessingFailed: string;
121
+ dataSaveFailed: string;
122
+ validationError: string;
123
+ onlyExcelAllowed: string;
124
+ onlyCsvAllowed: string;
125
+ onlyExcelOrCsvAllowed: string;
126
+ csvProcessingFailed: string;
127
+ followingMustBeUnique: string;
128
+ };
129
+ };
130
+ };
@@ -0,0 +1,20 @@
1
+ import { I18n } from 'vue-i18n';
2
+ export interface LocaleMessages {
3
+ [key: string]: any;
4
+ }
5
+ export declare let LOCALE_DISPLAY_NAMES: Record<string, string>;
6
+ export declare const i18n: I18n<Record<string, LocaleMessages>, {}, {}, string, false>;
7
+ export declare function getAvailableLocales(): string[];
8
+ export declare function addLocaleOption(locale: string, displayName: string): void;
9
+ export declare function setTranslation(locale: string, key: string, value: string): void;
10
+ export declare function setTranslations(locale: string, translations: Record<string, any>): void;
11
+ export declare function getI18nMessages(locale?: string): Record<string, LocaleMessages> | LocaleMessages;
12
+ export declare function initLang(): Promise<void>;
13
+ export declare function setLang(locale: string): Promise<void>;
14
+ export declare function getLang(type?: "code" | "display"): string;
15
+ export declare function getAvailableLanguages(): Array<{
16
+ label: string;
17
+ key: string;
18
+ }>;
19
+ export declare function $t(key: string, params?: Record<string, any>): string;
20
+ export default i18n;
package/lib/webui.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as Me, i as pe, a as Be, L as St, c as $t, P as re, o as qe, b as Tt, d as Dt, e as He, g as Qe, r as de, f as Je, h as Xe, j as Ze, k as Pt, l as me, m as et, _ as tt, n as at, O as Ne, p as Ft, q as lt, s as It, t as Et, v as ee, w as Lt, x as Ut, y as Mt, z as Bt, A as Nt, B as zt, C as se, D as At, E as Ot, F as Rt, G as rt, M as Kt } from "./assets/modules/upload-template-BuaWOXY_.js";
2
- import { ad as Ar, T as Or, U as Rr, Y as Kr, ac as jr, aa as Vr, ab as Yr, ae as Gr, a0 as Wr, W as qr, a8 as Hr, a5 as Qr, R as Jr, a7 as Xr, X as Zr, I as es, a2 as ts, a6 as as, a9 as ls, S as rs, V as ss, af as os, H as ns, a4 as is, ag as us, $ as cs, a1 as ds, Z as ps, al as fs, ak as vs, ah as gs, J as ms, K as hs, ai as bs, Q as ys, aj as xs, N as _s, a3 as ks } from "./assets/modules/upload-template-BuaWOXY_.js";
3
- import { f as jt, p as Re } from "./assets/modules/file-upload-CKMd0H11.js";
4
- import { A as Cs, U as Ss } from "./assets/modules/file-upload-CKMd0H11.js";
1
+ import { u as Me, i as pe, a as Be, L as St, c as $t, P as re, o as qe, b as Tt, d as Dt, e as He, g as Qe, r as de, f as Je, h as Xe, j as Ze, k as Pt, l as me, m as et, _ as tt, n as at, O as Ne, p as Ft, q as lt, s as It, t as Et, v as ee, w as Lt, x as Ut, y as Mt, z as Bt, A as Nt, B as zt, C as se, D as At, E as Ot, F as Rt, G as rt, M as Kt } from "./assets/modules/upload-template-DPaurj5G.js";
2
+ import { ao as Ar, ad as Or, T as Rr, U as Kr, Y as jr, ac as Vr, aa as Yr, ab as Gr, ae as Wr, ap as qr, a0 as Hr, W as Qr, aq as Jr, a8 as Xr, a5 as Zr, R as es, a7 as ts, an as as, am as ls, X as rs, I as ss, a2 as os, a6 as ns, a9 as is, S as us, V as cs, af as ds, H as ps, a4 as fs, ag as vs, $ as gs, a1 as ms, ar as hs, Z as bs, al as ys, ak as xs, ah as _s, J as ks, K as ws, ai as Cs, Q as Ss, aj as $s, N as Ts, a3 as Ds } from "./assets/modules/upload-template-DPaurj5G.js";
3
+ import { f as jt, p as Re } from "./assets/modules/file-upload-CYCbA0Go.js";
4
+ import { A as Fs, U as Is } from "./assets/modules/file-upload-CYCbA0Go.js";
5
5
  import { EnvConfig as Ke, isMicroApp as Vt } from "@skyfox2000/microbase";
6
6
  import { FrontCache as ge, httpPost as ze, ResStatus as Ae, SERVER_HOST as Yt, fieldMapping as he } from "@skyfox2000/fapi";
7
7
  import te from "vue-m-message";
@@ -10,15 +10,15 @@ import "async-validator";
10
10
  import Le from "dayjs";
11
11
  import { Popover as Ht, theme as nt, Drawer as Qt, Space as ce, Form as it, message as Jt, FormItem as ut, ConfigProvider as ye, Popconfirm as ct, DropdownButton as dt, Menu as we, MenuItem as Ce, Dropdown as Ue, Checkbox as Xt, List as Zt, ListItem as ea, Card as ta, Button as pt, Table as ft, Tree as aa, Cascader as la, DatePicker as ra, Input as fe, InputPassword as sa, InputNumber as oa, RangePicker as na, Textarea as ia, TimePicker as ua, Transfer as ca, TreeSelect as da, Upload as pa, Image as fa, LayoutContent as va } from "ant-design-vue";
12
12
  import { VueDraggableNext as ga } from "vue-draggable-next";
13
- import { d as ma } from "./assets/modules/uploadList-De6KfTAV.js";
14
- import { C as Ts, U as Ds, a as Ps, p as Fs } from "./assets/modules/uploadList-De6KfTAV.js";
15
- import { c as vt } from "./assets/modules/index-gmbMtZa2.js";
16
- import { _ as Es, h as Ls, b as Us, a as Ms, d as Bs, e as Ns, g as zs, f as As, n as Os, p as Rs, t as Ks, v as js } from "./assets/modules/index-gmbMtZa2.js";
17
- import { _ as Z } from "./assets/modules/index-BpsqYPCw.js";
18
- import { _ as V } from "./assets/modules/toolIcon-DWurTPaB.js";
19
- import { a as Ys } from "./assets/modules/toolIcon-DWurTPaB.js";
20
- import { _ as Ws, b as qs, c as Hs, d as Qs, e as Js, I as Xs, f as Zs, g as eo, a as to } from "./assets/modules/menuTabs-CvAiSVNW.js";
21
- import { _ as lo } from "./assets/modules/index-DvozNhVM.js";
13
+ import { d as ma } from "./assets/modules/uploadList-C0zjgyKg.js";
14
+ import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-C0zjgyKg.js";
15
+ import { c as vt } from "./assets/modules/index-D_-xtDo9.js";
16
+ import { _ as zs, h as As, b as Os, a as Rs, d as Ks, e as js, g as Vs, f as Ys, n as Gs, p as Ws, t as qs, v as Hs } from "./assets/modules/index-D_-xtDo9.js";
17
+ import { _ as Z } from "./assets/modules/index-C8QXmnsn.js";
18
+ import { _ as V } from "./assets/modules/toolIcon-BD37QUAw.js";
19
+ import { a as Js } from "./assets/modules/toolIcon-BD37QUAw.js";
20
+ import { _ as Zs, b as eo, c as to, d as ao, e as lo, I as ro, f as so, g as oo, a as no } from "./assets/modules/menuTabs-Dx5VAF5K.js";
21
+ import { _ as uo } from "./assets/modules/index-DGfxQmRW.js";
22
22
  import { _ as ne } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
23
  const Ve = (r, a, e, t = "remove") => {
24
24
  if (!e)
@@ -1114,9 +1114,9 @@ const or = async (r, a) => {
1114
1114
  const u = C(!1);
1115
1115
  return ke(() => {
1116
1116
  u.value && t && t.autoload && (t.reload.value = !0);
1117
- }), ae(async () => {
1117
+ }), _e(re.GridControl, t), ae(async () => {
1118
1118
  var v, s, g, p, _;
1119
- _e(re.GridControl, t), t.page && ((v = t.gridUrl) != null && v.url) && (((s = t.gridUrl) == null ? void 0 : s.url) === ((g = t.page.urls.list) == null ? void 0 : g.url) && (t.remotePage = !1), ((p = t.gridUrl) == null ? void 0 : p.url) === ((_ = t.page.urls.find) == null ? void 0 : _.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1119
+ t.page && ((v = t.gridUrl) != null && v.url) && (((s = t.gridUrl) == null ? void 0 : s.url) === ((g = t.page.urls.list) == null ? void 0 : g.url) && (t.remotePage = !1), ((p = t.gridUrl) == null ? void 0 : p.url) === ((_ = t.page.urls.find) == null ? void 0 : _.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1120
1120
  u.value = !0;
1121
1121
  }, 50);
1122
1122
  }), (v, s) => {
@@ -1561,9 +1561,9 @@ const or = async (r, a) => {
1561
1561
  const g = C(!1);
1562
1562
  return ke(() => {
1563
1563
  g.value && t && t.autoload && (t.reload.value = !0);
1564
- }), ae(async () => {
1564
+ }), _e(re.GridControl, t), ae(async () => {
1565
1565
  var p, _, $, y, S;
1566
- _e(re.GridControl, t), t.page && ((p = t.gridUrl) != null && p.url) && (((_ = t.gridUrl) == null ? void 0 : _.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((y = t.gridUrl) == null ? void 0 : y.url) === ((S = t.page.urls.find) == null ? void 0 : S.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1566
+ t.page && ((p = t.gridUrl) != null && p.url) && (((_ = t.gridUrl) == null ? void 0 : _.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((y = t.gridUrl) == null ? void 0 : y.url) === ((S = t.page.urls.find) == null ? void 0 : S.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1567
1567
  g.value = !0;
1568
1568
  }, 50);
1569
1569
  }), (p, _) => {
@@ -3064,33 +3064,34 @@ const wr = /* @__PURE__ */ I({
3064
3064
  }
3065
3065
  });
3066
3066
  export {
3067
- Es as Alert,
3068
- Ws as AppIcon,
3067
+ Ar as $t,
3068
+ zs as Alert,
3069
+ Zs as AppIcon,
3069
3070
  de as AppRouter,
3070
- Cs as AsyncUploader,
3071
+ Fs as AsyncUploader,
3071
3072
  xr as AutoComplete,
3072
- qs as Breadcrumb,
3073
+ eo as Breadcrumb,
3073
3074
  Z as Button,
3074
3075
  mt as Cache,
3075
3076
  Da as CacheKeys,
3076
- Ts as CanPreviewFileExt,
3077
+ Ls as CanPreviewFileExt,
3077
3078
  _r as Cascader,
3078
3079
  kr as Checkbox,
3079
3080
  Br as Content,
3080
3081
  wr as DatePicker,
3081
- Hs as Datetime,
3082
- lo as Dialog,
3082
+ to as Datetime,
3083
+ uo as Dialog,
3083
3084
  pr as Drawer,
3084
- Ar as EventPrefix,
3085
+ Or as EventPrefix,
3085
3086
  fr as Form,
3086
3087
  vr as FormItem,
3087
3088
  cr as Fullscreen,
3088
3089
  Ee as GroupTools,
3089
- Qs as Header,
3090
- Js as HeaderExits,
3090
+ ao as Header,
3091
+ lo as HeaderExits,
3091
3092
  Fa as Helper,
3092
- Or as ICONS_LIB,
3093
- Xs as Icon,
3093
+ Rr as ICONS_LIB,
3094
+ ro as Icon,
3094
3095
  Ba as Icontool,
3095
3096
  Mr as ImageList,
3096
3097
  wt as Input,
@@ -3100,13 +3101,13 @@ export {
3100
3101
  dr as LayoutIcon,
3101
3102
  gr as List,
3102
3103
  Ua as ListOperate,
3103
- Ls as Loading,
3104
- Zs as Menu,
3105
- eo as MenuTabs,
3104
+ As as Loading,
3105
+ so as Menu,
3106
+ oo as MenuTabs,
3106
3107
  Kt as MicroOpenApis,
3107
3108
  Ne as OPTIONS,
3108
3109
  Et as OptionCommProps,
3109
- to as ProjectIcon,
3110
+ no as ProjectIcon,
3110
3111
  Tr as PropEditor,
3111
3112
  re as ProviderKeys,
3112
3113
  $l as Radio,
@@ -3123,60 +3124,64 @@ export {
3123
3124
  V as ToolIcon,
3124
3125
  yr as ToolPanel,
3125
3126
  kt as Toolbar,
3126
- Ys as Tooltip,
3127
+ Js as Tooltip,
3127
3128
  Tl as Transfer,
3128
3129
  Lr as TransferTable,
3129
3130
  br as Tree,
3130
3131
  Ur as TreeSelect,
3131
- Ds as UploadList,
3132
- Ss as UploadStatus,
3133
- Us as appendExcelData,
3134
- Ms as checkExcelDuplicates,
3135
- Rr as checkIconsExpired,
3132
+ Us as UploadList,
3133
+ Is as UploadStatus,
3134
+ Os as appendExcelData,
3135
+ Rs as checkExcelDuplicates,
3136
+ Kr as checkIconsExpired,
3136
3137
  Bt as circleLoading,
3137
3138
  $t as createFromIconfont,
3138
- Bs as createMarkedExcelView,
3139
- Kr as crumbs,
3139
+ Ks as createMarkedExcelView,
3140
+ jr as crumbs,
3140
3141
  or as csvToExcelBlob,
3141
3142
  vt as csvToExcelView,
3142
- Ns as csvToNormalized,
3143
+ js as csvToNormalized,
3143
3144
  We as defaultTools,
3144
- jr as doDelete,
3145
- Vr as doExecute,
3145
+ Vr as doDelete,
3146
+ Yr as doExecute,
3146
3147
  rt as doQuery,
3147
- Yr as doSave,
3148
- Ps as donwloadFromMinio,
3148
+ Gr as doSave,
3149
+ Ms as donwloadFromMinio,
3149
3150
  ma as downloadBlob,
3150
- Gr as eventBus,
3151
- zs as excelToExcelView,
3152
- As as excelToNormalized,
3151
+ Wr as eventBus,
3152
+ Vs as excelToExcelView,
3153
+ Ys as excelToNormalized,
3153
3154
  ur as exportResults,
3154
3155
  ir as exportSelectedRows,
3155
3156
  Ze as filterColumns,
3156
3157
  se as formValidate,
3157
- Wr as getFormDetail,
3158
- qr as getIconTransform,
3159
- Hr as getRecordDetail,
3160
- Qr as getRuleTexts,
3158
+ qr as getAvailableLanguages,
3159
+ Hr as getFormDetail,
3160
+ Qr as getIconTransform,
3161
+ Jr as getLang,
3162
+ Xr as getRecordDetail,
3163
+ Zr as getRuleTexts,
3161
3164
  zt as getSelectedLabels,
3162
- Jr as getSelectedValues,
3165
+ es as getSelectedValues,
3163
3166
  ie as getToolByKey,
3164
3167
  Se as getToolGroup,
3165
3168
  G as getToolStatus,
3166
3169
  Q as getToolVisible,
3167
3170
  me as gridQueryFind,
3168
3171
  et as gridQueryList,
3169
- Xr as gridRowUpdate,
3172
+ ts as gridRowUpdate,
3170
3173
  at as gridStatusUpdate,
3174
+ as as i18n,
3171
3175
  sr as initCacheCheck,
3172
3176
  rr as initDirective,
3173
- Zr as initMenu,
3174
- es as initPageFactory,
3175
- ts as initValidate,
3177
+ ls as initLang,
3178
+ rs as initMenu,
3179
+ ss as initPageFactory,
3180
+ os as initValidate,
3176
3181
  pe as isEmpty,
3177
3182
  Ut as loadOption,
3178
- as as mergeColumns,
3179
- Os as normalizedToExcelView,
3183
+ ns as mergeColumns,
3184
+ Gs as normalizedToExcelView,
3180
3185
  $a as onColumnVisibleChanged,
3181
3186
  Dt as onFormClose,
3182
3187
  qe as onFormSave,
@@ -3184,42 +3189,43 @@ export {
3184
3189
  gt as onFullscreenClick,
3185
3190
  Xe as onGridRowDelete,
3186
3191
  Je as onGridRowEdit,
3187
- ls as onGridRowExpand,
3192
+ is as onGridRowExpand,
3188
3193
  Nt as onOptionChanged,
3189
3194
  ya as onReloadClick,
3190
3195
  J as onToolClicked,
3191
3196
  Pt as openNewForm,
3192
- rs as outFormDataFields,
3193
- ss as parseIcons,
3197
+ us as outFormDataFields,
3198
+ cs as parseIcons,
3194
3199
  Re as path,
3195
- os as pendingNavigation,
3196
- ns as pinia,
3197
- Fs as previewFromMinio,
3200
+ ds as pendingNavigation,
3201
+ ps as pinia,
3202
+ Bs as previewFromMinio,
3198
3203
  nr as processCsvFile,
3199
- Rs as processExcelFile,
3204
+ Ws as processExcelFile,
3200
3205
  lt as queryTree,
3201
- is as resetRules,
3202
- us as routes,
3203
- cs as saveForm,
3204
- ds as setFormData,
3205
- ps as showBreadcrumb,
3206
- Ks as toExcel,
3206
+ fs as resetRules,
3207
+ vs as routes,
3208
+ gs as saveForm,
3209
+ ms as setFormData,
3210
+ hs as setLang,
3211
+ bs as showBreadcrumb,
3212
+ qs as toExcel,
3207
3213
  Mt as unloadOption,
3208
- fs as uploadTempBtn,
3209
- vs as uploadTempOpener,
3210
- gs as useAppInfo,
3211
- ms as useEditorFactory,
3214
+ ys as uploadTempBtn,
3215
+ xs as uploadTempOpener,
3216
+ _s as useAppInfo,
3217
+ ks as useEditorFactory,
3212
3218
  He as useFormItemFactory,
3213
- hs as useGridFactory,
3214
- bs as useHostInfo,
3219
+ ws as useGridFactory,
3220
+ Cs as useHostInfo,
3215
3221
  ee as useInputFactory,
3216
3222
  Lt as useOptionFactory,
3217
- ys as usePageFactory,
3218
- xs as usePageInfo,
3223
+ Ss as usePageFactory,
3224
+ $s as usePageInfo,
3219
3225
  Be as useSettingInfo,
3220
3226
  Ta as useToolFactory,
3221
- _s as useTreeFactory,
3227
+ Ts as useTreeFactory,
3222
3228
  Me as useUserInfo,
3223
- ks as validateData,
3224
- js as validateExcel
3229
+ Ds as validateData,
3230
+ Hs as validateExcel
3225
3231
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.4.26",
4
- "description": "后台前端通用组件定义",
3
+ "version": "1.5.0",
4
+ "description": "后台前端通用组件定义, 支持国际化",
5
5
  "type": "module",
6
6
  "keywords": [],
7
7
  "author": "skyfox2000@github.com",
@@ -70,5 +70,8 @@
70
70
  "vite": "^6.2.3",
71
71
  "vite-plugin-dts": "^4.5.4",
72
72
  "vue-tsc": "^2.2.0"
73
+ },
74
+ "dependencies": {
75
+ "vue-i18n": "^11.2.2"
73
76
  }
74
77
  }
@@ -134,9 +134,8 @@ onActivated(() => {
134
134
  if (visible.value && gridCtrl && gridCtrl.autoload) gridCtrl.reload.value = true;
135
135
  });
136
136
 
137
+ provide(ProviderKeys.GridControl, gridCtrl);
137
138
  onMounted(async () => {
138
- provide(ProviderKeys.GridControl, gridCtrl);
139
-
140
139
  if (gridCtrl.page && gridCtrl.gridUrl?.url) {
141
140
  if (gridCtrl.gridUrl?.url === gridCtrl.page.urls.list?.url) {
142
141
  gridCtrl.remotePage = false;
@@ -170,9 +170,9 @@ onActivated(() => {
170
170
  if (visible.value && gridCtrl && gridCtrl.autoload) gridCtrl.reload.value = true;
171
171
  });
172
172
 
173
- onMounted(async () => {
174
- provide(ProviderKeys.GridControl, gridCtrl);
173
+ provide(ProviderKeys.GridControl, gridCtrl);
175
174
 
175
+ onMounted(async () => {
176
176
  if (gridCtrl.page && gridCtrl.gridUrl?.url) {
177
177
  if (gridCtrl.gridUrl?.url === gridCtrl.page.urls.list?.url) {
178
178
  gridCtrl.remotePage = false;