vome-core 0.1.82 → 0.1.83

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 (83) hide show
  1. package/dist/admin/components/ui/avatar/index.js +1 -1
  2. package/dist/admin/components/ui/badge/index.d.ts +1 -1
  3. package/dist/admin/components/ui/badge/index.js +1 -1
  4. package/dist/admin/components/ui/button/index.d.ts +1 -1
  5. package/dist/admin/components/ui/button/index.js +1 -1
  6. package/dist/admin/components/ui/checkbox/index.js +1 -1
  7. package/dist/admin/components/ui/dialog/index.js +1 -1
  8. package/dist/admin/components/ui/dropdown-menu/index.js +1 -1
  9. package/dist/admin/components/ui/input/index.js +1 -1
  10. package/dist/admin/components/ui/label/index.js +1 -1
  11. package/dist/admin/components/ui/scroll-area/index.js +1 -1
  12. package/dist/admin/components/ui/select/index.js +1 -1
  13. package/dist/admin/components/ui/separator/index.js +1 -1
  14. package/dist/admin/components/ui/sheet/index.js +1 -1
  15. package/dist/admin/components/ui/sonner/index.js +1 -1
  16. package/dist/admin/components/ui/table/index.js +1 -1
  17. package/dist/admin/components/ui/tabs/index.js +1 -1
  18. package/dist/admin/components/ui/tooltip/index.js +1 -1
  19. package/dist/admin/components/vm-role-picker.vue +10 -3
  20. package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
  21. package/dist/admin/crud/config.js +1 -1
  22. package/dist/admin/crud/confirm.js +1 -1
  23. package/dist/admin/crud/crud-page-request.js +1 -1
  24. package/dist/admin/crud/dict.js +1 -1
  25. package/dist/admin/crud/export-fetch.js +1 -1
  26. package/dist/admin/crud/key.js +1 -1
  27. package/dist/admin/crud/plugins.js +1 -1
  28. package/dist/admin/crud/span.js +1 -1
  29. package/dist/admin/crud/style.js +1 -1
  30. package/dist/admin/crud/validate.js +1 -1
  31. package/dist/admin/directives/perm.js +1 -1
  32. package/dist/admin/hooks/useUpload.js +1 -1
  33. package/dist/admin/index.d.ts +0 -5
  34. package/dist/admin/index.js +0 -4
  35. package/dist/admin/lib/browser.js +1 -1
  36. package/dist/admin/lib/cn.js +1 -1
  37. package/dist/admin/lib/dialog-float.js +1 -1
  38. package/dist/admin/lib/export-excel.js +1 -1
  39. package/dist/admin/lib/file-preview.js +6 -2
  40. package/dist/admin/lib/import-excel.js +1 -1
  41. package/dist/admin/lib/json.js +1 -1
  42. package/dist/admin/lib/menu.js +1 -1
  43. package/dist/admin/lib/micro-locale.js +1 -1
  44. package/dist/admin/lib/micro-theme.js +1 -1
  45. package/dist/admin/lib/setup-crud-defaults.js +1 -1
  46. package/dist/admin/lib/shell.js +1 -1
  47. package/dist/admin/lib/theme-color-options.js +1 -1
  48. package/dist/admin/lib/tree.js +1 -1
  49. package/dist/admin/lib/upload.js +1 -1
  50. package/dist/admin/lib/video-frame.js +1 -1
  51. package/dist/admin/router/create.js +1 -1
  52. package/dist/admin/router/guards.js +1 -1
  53. package/dist/admin/themes/dark.js +1 -1
  54. package/dist/admin/themes/index.js +1 -1
  55. package/dist/admin/themes/light.js +1 -1
  56. package/dist/ai/index.js +298 -9
  57. package/dist/client/configure.js +13 -4
  58. package/dist/client/vite-admin.d.ts +16 -1
  59. package/dist/client/vite-admin.js +33 -13
  60. package/dist/client/vite-auto-import.js +3 -3
  61. package/dist/client/vite-resolve.js +28 -4
  62. package/dist/index.js +1 -1
  63. package/dist/server/index.js +1 -1
  64. package/dist/shared/datetime-picker.js +1 -1
  65. package/dist/shared/excel.js +1 -1
  66. package/dist/shared/index.js +1 -1
  67. package/dist/shared/locale-json.js +1 -1
  68. package/dist/shared/tree.js +1 -1
  69. package/package.json +1 -1
  70. package/dist/admin/components/layout/vm-app-header.vue +0 -341
  71. package/dist/admin/components/layout/vm-app-sidebar.vue +0 -187
  72. package/dist/admin/components/layout/vm-sidebar-flyout.vue +0 -268
  73. package/dist/admin/components/layout/vm-sidebar-nav-item.vue +0 -490
  74. package/dist/admin/components/layout/vm-sidebar-nav.vue +0 -104
  75. package/dist/admin/components/layout/vm-tags-view.vue +0 -233
  76. package/dist/admin/lib/document-title.d.ts +0 -6
  77. package/dist/admin/lib/document-title.js +0 -1
  78. package/dist/admin/stores/dict.d.ts +0 -13
  79. package/dist/admin/stores/dict.js +0 -1
  80. package/dist/admin/stores/locale.d.ts +0 -3
  81. package/dist/admin/stores/locale.js +0 -1
  82. package/dist/admin/stores/theme.d.ts +0 -1
  83. package/dist/admin/stores/theme.js +0 -1
package/dist/ai/index.js CHANGED
@@ -50,6 +50,27 @@ var __promiseAll = (args) => Promise.all(args);
50
50
  var __require = import.meta.require;
51
51
 
52
52
  // node_modules/xlsx/xlsx.mjs
53
+ var exports_xlsx = {};
54
+ __export(exports_xlsx, {
55
+ CFB: () => CFB,
56
+ SSF: () => SSF,
57
+ parse_xlscfb: () => parse_xlscfb,
58
+ parse_zip: () => parse_zip,
59
+ read: () => readSync,
60
+ readFile: () => readFileSync,
61
+ readFileSync: () => readFileSync,
62
+ set_cptable: () => set_cptable,
63
+ set_fs: () => set_fs,
64
+ stream: () => __stream,
65
+ utils: () => utils,
66
+ version: () => version,
67
+ write: () => writeSync,
68
+ writeFile: () => writeFileSync,
69
+ writeFileAsync: () => writeFileAsync,
70
+ writeFileSync: () => writeFileSync,
71
+ writeFileXLSX: () => writeFileSyncXLSX,
72
+ writeXLSX: () => writeSyncXLSX
73
+ });
53
74
  function reset_ansi() {
54
75
  set_ansi(1252);
55
76
  }
@@ -75,6 +96,28 @@ function utf16beread(data) {
75
96
  o[i] = String.fromCharCode(data.charCodeAt(2 * i + 1) + (data.charCodeAt(2 * i) << 8));
76
97
  return o.join("");
77
98
  }
99
+ function set_cptable(cptable) {
100
+ $cptable = cptable;
101
+ set_cp = function(cp) {
102
+ current_codepage = cp;
103
+ set_ansi(cp);
104
+ };
105
+ debom = function(data) {
106
+ if (data.charCodeAt(0) === 255 && data.charCodeAt(1) === 254) {
107
+ return $cptable.utils.decode(1200, char_codes(data.slice(2)));
108
+ }
109
+ return data;
110
+ };
111
+ _getchar = function _gc2(x) {
112
+ if (current_codepage === 1200)
113
+ return String.fromCharCode(x);
114
+ return $cptable.utils.decode(current_codepage, [x & 255, x >> 8])[0];
115
+ };
116
+ _getansi = function _ga2(x) {
117
+ return $cptable.utils.decode(current_ansi, [x])[0];
118
+ };
119
+ cpdoit();
120
+ }
78
121
  function Base64_encode(input) {
79
122
  var o = "";
80
123
  var c1 = 0, c2 = 0, c3 = 0, e1 = 0, e2 = 0, e3 = 0, e4 = 0;
@@ -1575,6 +1618,9 @@ function dateNF_fix(str, dateNF, match) {
1575
1618
  return timestr;
1576
1619
  return datestr + "T" + timestr;
1577
1620
  }
1621
+ function set_fs(fs) {
1622
+ _fs = fs;
1623
+ }
1578
1624
  function blobify(data) {
1579
1625
  if (typeof data === "string")
1580
1626
  return s2ab(data);
@@ -17958,6 +18004,11 @@ function readSync(data, opts) {
17958
18004
  return DBF.to_workbook(d, o);
17959
18005
  return read_prn(data, d, o, str);
17960
18006
  }
18007
+ function readFileSync(filename, opts) {
18008
+ var o = opts || {};
18009
+ o.type = "file";
18010
+ return readSync(filename, o);
18011
+ }
17961
18012
  function write_cfb_ctr(cfb, o) {
17962
18013
  switch (o.type) {
17963
18014
  case "base64":
@@ -17981,6 +18032,11 @@ function write_zip_type(wb, opts) {
17981
18032
  var z = write_zip(wb, o);
17982
18033
  return write_zip_denouement(z, o);
17983
18034
  }
18035
+ function write_zip_typeXLSX(wb, opts) {
18036
+ var o = dup(opts || {});
18037
+ var z = write_zip_xlsx(wb, o);
18038
+ return write_zip_denouement(z, o);
18039
+ }
17984
18040
  function write_zip_denouement(z, o) {
17985
18041
  var oopts = {};
17986
18042
  var ftype = has_buf ? "nodebuffer" : typeof Uint8Array !== "undefined" ? "array" : "string";
@@ -18088,6 +18144,22 @@ function write_binary_type(out, opts) {
18088
18144
  throw new Error("Unrecognized type " + opts.type);
18089
18145
  }
18090
18146
  }
18147
+ function writeSyncXLSX(wb, opts) {
18148
+ reset_cp();
18149
+ check_wb(wb);
18150
+ var o = dup(opts || {});
18151
+ if (o.cellStyles) {
18152
+ o.cellNF = true;
18153
+ o.sheetStubs = true;
18154
+ }
18155
+ if (o.type == "array") {
18156
+ o.type = "binary";
18157
+ var out = writeSyncXLSX(wb, o);
18158
+ o.type = "array";
18159
+ return s2ab(out);
18160
+ }
18161
+ return write_zip_typeXLSX(wb, o);
18162
+ }
18091
18163
  function writeSync(wb, opts) {
18092
18164
  reset_cp();
18093
18165
  check_wb(wb);
@@ -18171,6 +18243,46 @@ function writeSync(wb, opts) {
18171
18243
  throw new Error("Unrecognized bookType |" + o.bookType + "|");
18172
18244
  }
18173
18245
  }
18246
+ function resolve_book_type(o) {
18247
+ if (o.bookType)
18248
+ return;
18249
+ var _BT = {
18250
+ xls: "biff8",
18251
+ htm: "html",
18252
+ slk: "sylk",
18253
+ socialcalc: "eth",
18254
+ Sh33tJS: "WTF"
18255
+ };
18256
+ var ext = o.file.slice(o.file.lastIndexOf(".")).toLowerCase();
18257
+ if (ext.match(/^\.[a-z]+$/))
18258
+ o.bookType = ext.slice(1);
18259
+ o.bookType = _BT[o.bookType] || o.bookType;
18260
+ }
18261
+ function writeFileSync(wb, filename, opts) {
18262
+ var o = opts || {};
18263
+ o.type = "file";
18264
+ o.file = filename;
18265
+ resolve_book_type(o);
18266
+ return writeSync(wb, o);
18267
+ }
18268
+ function writeFileSyncXLSX(wb, filename, opts) {
18269
+ var o = opts || {};
18270
+ o.type = "file";
18271
+ o.file = filename;
18272
+ resolve_book_type(o);
18273
+ return writeSyncXLSX(wb, o);
18274
+ }
18275
+ function writeFileAsync(filename, wb, opts, cb) {
18276
+ var o = opts || {};
18277
+ o.type = "file";
18278
+ o.file = filename;
18279
+ resolve_book_type(o);
18280
+ o.type = "buffer";
18281
+ var _cb = cb;
18282
+ if (!(_cb instanceof Function))
18283
+ _cb = opts;
18284
+ return _fs.writeFile(filename, writeSync(wb, o), _cb);
18285
+ }
18174
18286
  function make_json_row(sheet, r, R, cols, header, hdr, dense, o) {
18175
18287
  var rr = encode_row(R);
18176
18288
  var defval = o.defval, raw = o.raw || !Object.prototype.hasOwnProperty.call(o, "raw");
@@ -18634,6 +18746,165 @@ function sheet_set_array_formula(ws, range, formula, dynamic) {
18634
18746
  }
18635
18747
  return ws;
18636
18748
  }
18749
+ function set_readable(R) {
18750
+ _Readable = R;
18751
+ }
18752
+ function write_csv_stream(sheet, opts) {
18753
+ var stream = _Readable();
18754
+ var o = opts == null ? {} : opts;
18755
+ if (sheet == null || sheet["!ref"] == null) {
18756
+ stream.push(null);
18757
+ return stream;
18758
+ }
18759
+ var r = safe_decode_range(sheet["!ref"]);
18760
+ var FS = o.FS !== undefined ? o.FS : ",", fs = FS.charCodeAt(0);
18761
+ var RS = o.RS !== undefined ? o.RS : `
18762
+ `, rs = RS.charCodeAt(0);
18763
+ var endregex = new RegExp((FS == "|" ? "\\|" : FS) + "+$");
18764
+ var row = "", cols = [];
18765
+ o.dense = Array.isArray(sheet);
18766
+ var colinfo = o.skipHidden && sheet["!cols"] || [];
18767
+ var rowinfo = o.skipHidden && sheet["!rows"] || [];
18768
+ for (var C = r.s.c;C <= r.e.c; ++C)
18769
+ if (!(colinfo[C] || {}).hidden)
18770
+ cols[C] = encode_col(C);
18771
+ var R = r.s.r;
18772
+ var BOM = false, w = 0;
18773
+ stream._read = function() {
18774
+ if (!BOM) {
18775
+ BOM = true;
18776
+ return stream.push("\uFEFF");
18777
+ }
18778
+ while (R <= r.e.r) {
18779
+ ++R;
18780
+ if ((rowinfo[R - 1] || {}).hidden)
18781
+ continue;
18782
+ row = make_csv_row(sheet, r, R - 1, cols, fs, rs, FS, o);
18783
+ if (row != null) {
18784
+ if (o.strip)
18785
+ row = row.replace(endregex, "");
18786
+ if (row || o.blankrows !== false)
18787
+ return stream.push((w++ ? RS : "") + row);
18788
+ }
18789
+ }
18790
+ return stream.push(null);
18791
+ };
18792
+ return stream;
18793
+ }
18794
+ function write_html_stream(ws, opts) {
18795
+ var stream = _Readable();
18796
+ var o = opts || {};
18797
+ var header = o.header != null ? o.header : HTML_BEGIN;
18798
+ var footer = o.footer != null ? o.footer : HTML_END;
18799
+ stream.push(header);
18800
+ var r = decode_range(ws["!ref"]);
18801
+ o.dense = Array.isArray(ws);
18802
+ stream.push(make_html_preamble(ws, r, o));
18803
+ var R = r.s.r;
18804
+ var end = false;
18805
+ stream._read = function() {
18806
+ if (R > r.e.r) {
18807
+ if (!end) {
18808
+ end = true;
18809
+ stream.push("</table>" + footer);
18810
+ }
18811
+ return stream.push(null);
18812
+ }
18813
+ while (R <= r.e.r) {
18814
+ stream.push(make_html_row(ws, r, R, o));
18815
+ ++R;
18816
+ break;
18817
+ }
18818
+ };
18819
+ return stream;
18820
+ }
18821
+ function write_json_stream(sheet, opts) {
18822
+ var stream = _Readable({ objectMode: true });
18823
+ if (sheet == null || sheet["!ref"] == null) {
18824
+ stream.push(null);
18825
+ return stream;
18826
+ }
18827
+ var val = { t: "n", v: 0 }, header = 0, offset = 1, hdr = [], v = 0, vv = "";
18828
+ var r = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } };
18829
+ var o = opts || {};
18830
+ var range = o.range != null ? o.range : sheet["!ref"];
18831
+ if (o.header === 1)
18832
+ header = 1;
18833
+ else if (o.header === "A")
18834
+ header = 2;
18835
+ else if (Array.isArray(o.header))
18836
+ header = 3;
18837
+ switch (typeof range) {
18838
+ case "string":
18839
+ r = safe_decode_range(range);
18840
+ break;
18841
+ case "number":
18842
+ r = safe_decode_range(sheet["!ref"]);
18843
+ r.s.r = range;
18844
+ break;
18845
+ default:
18846
+ r = range;
18847
+ }
18848
+ if (header > 0)
18849
+ offset = 0;
18850
+ var rr = encode_row(r.s.r);
18851
+ var cols = [];
18852
+ var counter = 0;
18853
+ var dense = Array.isArray(sheet);
18854
+ var R = r.s.r, C = 0;
18855
+ var header_cnt = {};
18856
+ if (dense && !sheet[R])
18857
+ sheet[R] = [];
18858
+ var colinfo = o.skipHidden && sheet["!cols"] || [];
18859
+ var rowinfo = o.skipHidden && sheet["!rows"] || [];
18860
+ for (C = r.s.c;C <= r.e.c; ++C) {
18861
+ if ((colinfo[C] || {}).hidden)
18862
+ continue;
18863
+ cols[C] = encode_col(C);
18864
+ val = dense ? sheet[R][C] : sheet[cols[C] + rr];
18865
+ switch (header) {
18866
+ case 1:
18867
+ hdr[C] = C - r.s.c;
18868
+ break;
18869
+ case 2:
18870
+ hdr[C] = cols[C];
18871
+ break;
18872
+ case 3:
18873
+ hdr[C] = o.header[C - r.s.c];
18874
+ break;
18875
+ default:
18876
+ if (val == null)
18877
+ val = { w: "__EMPTY", t: "s" };
18878
+ vv = v = format_cell(val, null, o);
18879
+ counter = header_cnt[v] || 0;
18880
+ if (!counter)
18881
+ header_cnt[v] = 1;
18882
+ else {
18883
+ do {
18884
+ vv = v + "_" + counter++;
18885
+ } while (header_cnt[vv]);
18886
+ header_cnt[v] = counter;
18887
+ header_cnt[vv] = 1;
18888
+ }
18889
+ hdr[C] = vv;
18890
+ }
18891
+ }
18892
+ R = r.s.r + offset;
18893
+ stream._read = function() {
18894
+ while (R <= r.e.r) {
18895
+ if ((rowinfo[R - 1] || {}).hidden)
18896
+ continue;
18897
+ var row = make_json_row(sheet, r, R, cols, header, hdr, dense, o);
18898
+ ++R;
18899
+ if (row.isempty === false || (header === 1 ? o.blankrows !== false : !!o.blankrows)) {
18900
+ stream.push(row.row);
18901
+ return;
18902
+ }
18903
+ }
18904
+ return stream.push(null);
18905
+ };
18906
+ return stream;
18907
+ }
18637
18908
  var XLSX, current_codepage = 1200, current_ansi = 1252, VALID_ANSI, CS2CP, set_ansi = function(cp) {
18638
18909
  if (VALID_ANSI.indexOf(cp) == -1)
18639
18910
  return;
@@ -18660,7 +18931,7 @@ var XLSX, current_codepage = 1200, current_ansi = 1252, VALID_ANSI, CS2CP, set_a
18660
18931
  return s.split("").map(function(x) {
18661
18932
  return x.charCodeAt(0) & 255;
18662
18933
  });
18663
- }, bconcat, chr0, chr1, p2_32, days, months, table_fmt, SSF_default_map, SSF_default_str, SSFbasedate, SSFdnthresh, SSFbase1904, pct1, frac1, dec1, closeparen, phone, SSF_abstime, cfregex2, SSFImplicit, dateNFregex, CRC32, CFB, _fs = undefined, basedate, refdate, dnthresh, refoffset, good_pd_date_1, good_pd_date, good_pd, lower_months, split_regex, XML_HEADER = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
18934
+ }, bconcat, chr0, chr1, p2_32, days, months, table_fmt, SSF_default_map, SSF_default_str, SSFbasedate, SSFdnthresh, SSFbase1904, pct1, frac1, dec1, closeparen, phone, SSF_abstime, cfregex2, SSF, SSFImplicit, dateNFregex, CRC32, CFB, _fs = undefined, basedate, refdate, dnthresh, refoffset, good_pd_date_1, good_pd_date, good_pd, lower_months, split_regex, XML_HEADER = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
18664
18935
  `, attregexg, tagregex1, tagregex2, tagregex, nsregex, nsregex2, encodings, rencoding, unescapexml, decregex, charegex, htmlcharegex, xlml_fixstr, utf8corpus = "foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3", utf8read, utf8write, matchtag, htmldecode, vtregex, vtvregex, vtmregex, wtregex, xlmlregex, XMLNS, XMLNS_main, XLMLNS, ___toBuffer = function(bufs) {
18665
18936
  var x = [], w = 10240;
18666
18937
  for (var i = 0;i < bufs[0].length; ++i)
@@ -18749,7 +19020,7 @@ var XLSX, current_codepage = 1200, current_ansi = 1252, VALID_ANSI, CS2CP, set_a
18749
19020
  XorArrayIndex = O[1];
18750
19021
  return O[0];
18751
19022
  };
18752
- }, RTF, DEF_MDW = 6, MAX_MDW = 15, MIN_MDW = 1, MDW, DEF_PPI = 96, PPI, XLMLPatternTypeMap, cellXF_uint, cellXF_bool, parse_sty_xml, XLSBFillPTNames, rev_XLSBFillPTNames, parse_BrtFill, parse_BrtBorder, XLSXThemeClrScheme, clrsregex, fntsregex, fmtsregex, themeltregex, _shapeid = 1024, parse_BrtCommentAuthor, CT_VBA = "application/vnd.ms-office.vbaProject", VBAFMTS, rc_to_a1, crefregex, a1_to_rc, parse_PtgMemErr, parse_PtgMemNoMem, parse_PtgTbl, parse_PtgElfCol, parse_PtgElfColS, parse_PtgElfColSV, parse_PtgElfColV, parse_PtgElfRadical, parse_PtgElfRadicalLel, parse_PtgElfRadicalS, parse_PtgElfRw, parse_PtgElfRwV, PtgListRT, PtgTypes, PtgDupes, Ptg18, Ptg19, PtgBinOp, parse_XLSBArrayParsedFormula, parse_XLSBCellParsedFormula, parse_XLSBNameParsedFormula, parse_XLSBSharedParsedFormula, Cetab, Ftab, FtabArgc, strs, _ssfopts, browser_has_Map, mergecregex, sheetdataregex, hlinkregex, dimregex, colregex, afregex, marginregex, sheetprregex, sheetprregex2, svsregex, sheetprot_deffalse, sheetprot_deftrue, sviewregex, parse_ws_xml_data, parse_BrtWsDim, write_BrtWsDim, parse_BrtMergeCell, write_BrtMergeCell, BrtMarginKeys, WBPropsDef, WBViewDef, SheetDef, CalcPrDef, badchars, wbnsregex, attregexg2, attregex2, XLMLFormatMap, CONTINUE_RT, PSCLSID, XLSBRecordEnum, XLSRecordEnum, HTML_BEGIN = '<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>', HTML_END = "</body></html>", number_formats_ods, write_styles_ods, write_content_ods, qreg, utils, version;
19023
+ }, RTF, DEF_MDW = 6, MAX_MDW = 15, MIN_MDW = 1, MDW, DEF_PPI = 96, PPI, XLMLPatternTypeMap, cellXF_uint, cellXF_bool, parse_sty_xml, XLSBFillPTNames, rev_XLSBFillPTNames, parse_BrtFill, parse_BrtBorder, XLSXThemeClrScheme, clrsregex, fntsregex, fmtsregex, themeltregex, _shapeid = 1024, parse_BrtCommentAuthor, CT_VBA = "application/vnd.ms-office.vbaProject", VBAFMTS, rc_to_a1, crefregex, a1_to_rc, parse_PtgMemErr, parse_PtgMemNoMem, parse_PtgTbl, parse_PtgElfCol, parse_PtgElfColS, parse_PtgElfColSV, parse_PtgElfColV, parse_PtgElfRadical, parse_PtgElfRadicalLel, parse_PtgElfRadicalS, parse_PtgElfRw, parse_PtgElfRwV, PtgListRT, PtgTypes, PtgDupes, Ptg18, Ptg19, PtgBinOp, parse_XLSBArrayParsedFormula, parse_XLSBCellParsedFormula, parse_XLSBNameParsedFormula, parse_XLSBSharedParsedFormula, Cetab, Ftab, FtabArgc, strs, _ssfopts, browser_has_Map, mergecregex, sheetdataregex, hlinkregex, dimregex, colregex, afregex, marginregex, sheetprregex, sheetprregex2, svsregex, sheetprot_deffalse, sheetprot_deftrue, sviewregex, parse_ws_xml_data, parse_BrtWsDim, write_BrtWsDim, parse_BrtMergeCell, write_BrtMergeCell, BrtMarginKeys, WBPropsDef, WBViewDef, SheetDef, CalcPrDef, badchars, wbnsregex, attregexg2, attregex2, XLMLFormatMap, CONTINUE_RT, PSCLSID, XLSBRecordEnum, XLSRecordEnum, HTML_BEGIN = '<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>', HTML_END = "</body></html>", number_formats_ods, write_styles_ods, write_content_ods, qreg, utils, _Readable, __stream, version;
18753
19024
  var init_xlsx = __esm(() => {
18754
19025
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
18755
19026
  XLSX = {};
@@ -18946,6 +19217,17 @@ var init_xlsx = __esm(() => {
18946
19217
  phone = /\(###\) ###\\?-####/;
18947
19218
  SSF_abstime = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
18948
19219
  cfregex2 = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
19220
+ SSF = {
19221
+ format: SSF_format,
19222
+ load: SSF_load,
19223
+ _table: table_fmt,
19224
+ load_table: SSF_load_table,
19225
+ parse_date_code: SSF_parse_date_code,
19226
+ is_date: fmt_is_date,
19227
+ get_table: function get_table() {
19228
+ return SSF._table = table_fmt;
19229
+ }
19230
+ };
18949
19231
  SSFImplicit = {
18950
19232
  "5": '"$"#,##0_);\\("$"#,##0\\)',
18951
19233
  "6": '"$"#,##0_);[Red]\\("$"#,##0\\)',
@@ -27657,6 +27939,12 @@ var init_xlsx = __esm(() => {
27657
27939
  SHEET_VERY_HIDDEN: 2
27658
27940
  }
27659
27941
  };
27942
+ __stream = {
27943
+ to_json: write_json_stream,
27944
+ to_html: write_html_stream,
27945
+ to_csv: write_csv_stream,
27946
+ set_readable
27947
+ };
27660
27948
  version = XLSX.version;
27661
27949
  });
27662
27950
 
@@ -27675,24 +27963,24 @@ function buildExcelBuffer(columns, rows, formatCell, options) {
27675
27963
  return "";
27676
27964
  return String(val);
27677
27965
  }));
27678
- const sheet = utils.aoa_to_sheet([headers, ...body]);
27679
- const book = utils.book_new();
27680
- utils.book_append_sheet(book, sheet, "Sheet1");
27681
- return writeSync(book, { bookType: "xlsx", type: "array" });
27966
+ const sheet = XLSX2.utils.aoa_to_sheet([headers, ...body]);
27967
+ const book = XLSX2.utils.book_new();
27968
+ XLSX2.utils.book_append_sheet(book, sheet, "Sheet1");
27969
+ return XLSX2.write(book, { bookType: "xlsx", type: "array" });
27682
27970
  }
27683
27971
  function buildImportTemplateBuffer(props) {
27684
27972
  const columns = props.map((prop) => ({ prop, label: prop }));
27685
27973
  return buildExcelBuffer(columns, [], undefined, { header: "prop" });
27686
27974
  }
27687
27975
  function parseExcelBuffer(data) {
27688
- const book = readSync(data, { type: "array", cellDates: true });
27976
+ const book = XLSX2.read(data, { type: "array", cellDates: true });
27689
27977
  const name = book.SheetNames[0];
27690
27978
  if (!name)
27691
27979
  return [];
27692
27980
  const sheet = book.Sheets[name];
27693
27981
  if (!sheet)
27694
27982
  return [];
27695
- const aoa = utils.sheet_to_json(sheet, {
27983
+ const aoa = XLSX2.utils.sheet_to_json(sheet, {
27696
27984
  header: 1,
27697
27985
  defval: "",
27698
27986
  raw: false
@@ -27736,9 +28024,10 @@ function excelResponseHeaders(filename) {
27736
28024
  "Content-Disposition": `attachment; filename*=UTF-8''${encodeURIComponent(file)}`
27737
28025
  };
27738
28026
  }
27739
- var IMPORT_SKIP_FIELDS;
28027
+ var XLSX2, IMPORT_SKIP_FIELDS;
27740
28028
  var init_excel = __esm(() => {
27741
28029
  init_xlsx();
28030
+ XLSX2 = utils != null ? exports_xlsx : undefined ?? exports_xlsx;
27742
28031
  IMPORT_SKIP_FIELDS = [
27743
28032
  "id",
27744
28033
  "createTime",
@@ -1,18 +1,27 @@
1
- let hooks = null;
1
+ const CLIENT_HOOKS_KEY = Symbol.for("vome.client.hooks");
2
+ function getHooks() {
3
+ const g = globalThis;
4
+ return g[CLIENT_HOOKS_KEY] ?? null;
5
+ }
6
+ function setHooks(next) {
7
+ const g = globalThis;
8
+ g[CLIENT_HOOKS_KEY] = next;
9
+ }
2
10
  export function configureClient(next) {
3
- hooks = { ...hooks || {}, ...next };
11
+ setHooks({ ...getHooks() || {}, ...next });
4
12
  }
5
13
  export function getClientRequest() {
14
+ const hooks = getHooks();
6
15
  if (!hooks?.request) {
7
16
  throw new Error("[vome-core/client] configureClient({ request }) before loadEps / service");
8
17
  }
9
18
  return hooks.request;
10
19
  }
11
20
  export function getLoadStaticEps() {
12
- return hooks?.loadStaticEps;
21
+ return getHooks()?.loadStaticEps;
13
22
  }
14
23
  export function getClientBaseUrl() {
15
- const baseUrl = hooks?.baseUrl;
24
+ const baseUrl = getHooks()?.baseUrl;
16
25
  if (!baseUrl) {
17
26
  throw new Error("[vome-core/client] configureClient({ baseUrl }) before apiUrl / request");
18
27
  }
@@ -1,3 +1,13 @@
1
+ /**
2
+ * Admin 宿主 Vite 一站式插件 + 别名辅助。
3
+ *
4
+ * 插件顺序须对齐旧版宿主:
5
+ * resolve 插件 → vue → tailwind / eps → autoImport
6
+ * autoImport 不能压在 vue() 前面。
7
+ *
8
+ * Admin **不要** `...coreAlias(root)` 映 `@core/admin`:会被 optimizeDeps 按 `@core/...`
9
+ * 预构建,拆掉 setCrudConfig / vm-search 共享的 style 单例。
10
+ */
1
11
  import type { Plugin, ProxyOptions } from 'vite';
2
12
  export { ensureMicroAppProxy, coreAlias } from './vite-micro-proxy.js';
3
13
  export { createAdminAutoImportPlugins } from './vite-auto-import.js';
@@ -7,11 +17,16 @@ export type CreateAdminViteOptions = {
7
17
  /** 宿主 src,默认 root/src */
8
18
  hostSrc?: string;
9
19
  };
20
+ export declare const adminDedupe: readonly ["vue", "vue-router", "pinia", "@vueuse/core", "reka-ui", "clsx", "tailwind-merge", "@lucide/vue", "lucide-vue-next", "wujie"];
21
+ /**
22
+ * 宿主 optimizeDeps.include:把易踩 CJS/ESM 的 peer 预构建进 Vite。
23
+ * wujie 尤其必须:其 esm 依赖 `@babel/runtime/regenerator` default。
24
+ */
25
+ export declare const adminOptimizeDepsInclude: readonly ["dompurify", "marked", "vue-sonner", "pinia", "wujie", "@lucide/vue", "reka-ui", "xlsx"];
10
26
  /** peer + resolve + 禁 optimize(放在 vue() 之前) */
11
27
  export declare function createAdminResolvePlugins(opts: CreateAdminViteOptions): Plugin[];
12
28
  /** optimizeDeps.esbuildOptions.plugins */
13
29
  export declare function createAdminOptimizeDepsPlugins(opts: CreateAdminViteOptions): import("esbuild").Plugin[];
14
- export declare const adminDedupe: readonly ["vue", "vue-router", "pinia", "@vueuse/core", "reka-ui", "clsx", "tailwind-merge", "@lucide/vue", "lucide-vue-next"];
15
30
  /** 开发代理:补 `/vome/`、`/socket/` */
16
31
  export declare function adminDevProxy<T extends Record<string, string | ProxyOptions>>(proxy: T): T & {
17
32
  '/vome/'?: ProxyOptions;
@@ -1,4 +1,3 @@
1
- import path from "node:path";
2
1
  import { ensureMicroAppProxy, coreAlias } from "./vite-micro-proxy.js";
3
2
  import { createAdminAutoImportPlugins } from "./vite-auto-import.js";
4
3
  import {
@@ -15,17 +14,6 @@ export {
15
14
  vomePeerDepsPlugin,
16
15
  vomeResolvePlugin
17
16
  } from "./vite-resolve.js";
18
- export function createAdminResolvePlugins(opts) {
19
- const root = opts.root;
20
- return [
21
- vomePeerDepsPlugin(root),
22
- vomeResolvePlugin(root),
23
- vomeAdminNoOptimizePlugin()
24
- ];
25
- }
26
- export function createAdminOptimizeDepsPlugins(opts) {
27
- return [vomeHostEsbuildPlugin(opts.root)];
28
- }
29
17
  export const adminDedupe = [
30
18
  "vue",
31
19
  "vue-router",
@@ -35,8 +23,40 @@ export const adminDedupe = [
35
23
  "clsx",
36
24
  "tailwind-merge",
37
25
  "@lucide/vue",
38
- "lucide-vue-next"
26
+ "lucide-vue-next",
27
+ "wujie"
28
+ ];
29
+ export const adminOptimizeDepsInclude = [
30
+ "dompurify",
31
+ "marked",
32
+ "vue-sonner",
33
+ "pinia",
34
+ "wujie",
35
+ "@lucide/vue",
36
+ "reka-ui",
37
+ "xlsx"
39
38
  ];
39
+ export function createAdminResolvePlugins(opts) {
40
+ const root = opts.root;
41
+ return [
42
+ vomePeerDepsPlugin(root),
43
+ vomeResolvePlugin(root),
44
+ vomeAdminNoOptimizePlugin(),
45
+ {
46
+ name: "vome-admin-optimize-deps",
47
+ config() {
48
+ return {
49
+ optimizeDeps: {
50
+ include: [...adminOptimizeDepsInclude]
51
+ }
52
+ };
53
+ }
54
+ }
55
+ ];
56
+ }
57
+ export function createAdminOptimizeDepsPlugins(opts) {
58
+ return [vomeHostEsbuildPlugin(opts.root)];
59
+ }
40
60
  export function adminDevProxy(proxy) {
41
61
  return ensureMicroAppProxy(proxy);
42
62
  }
@@ -111,12 +111,12 @@ export function createAdminAutoImportPlugins(root) {
111
111
  Components({
112
112
  exclude,
113
113
  globs: [
114
+ "src/components/layout/vm-*.vue",
115
+ "src/modules/*/components/vm-*.vue",
114
116
  `${coreAdmin}/components/ui/**/*.vue`,
115
- `${coreAdmin}/components/layout/vm-*.vue`,
116
117
  `${coreAdmin}/components/vm-*.vue`,
117
118
  `${coreAdmin}/crud/vm-*.vue`,
118
- `${coreAdmin}/crud/components/vm-*.vue`,
119
- "src/modules/*/components/vm-*.vue"
119
+ `${coreAdmin}/crud/components/vm-*.vue`
120
120
  ],
121
121
  resolvers: [createVomeCoreVmResolver(root)],
122
122
  dts: r("typings/components.d.ts"),
@@ -22,6 +22,17 @@ function resolveFile(base) {
22
22
  function stripQuery(id) {
23
23
  return id.split("?")[0].split("#")[0];
24
24
  }
25
+ function querySuffix(id) {
26
+ const i = id.indexOf("?");
27
+ if (i === -1)
28
+ return "";
29
+ const q = id.slice(i);
30
+ return q.startsWith("?vue") ? q : "";
31
+ }
32
+ function withVueQuery(file, id) {
33
+ const q = querySuffix(id);
34
+ return q ? `${file}${q}` : file;
35
+ }
25
36
  function normalizeAdminId(id) {
26
37
  const raw = stripQuery(id);
27
38
  if (raw === "/@" || raw === "/@/")
@@ -53,7 +64,7 @@ export function vomePeerDepsPlugin(appRoot) {
53
64
  "@lucide/vue": path.join(nm, "@lucide/vue/dist/esm/lucide-vue.mjs"),
54
65
  "lucide-vue-next": path.join(nm, "lucide-vue-next/dist/esm/lucide-vue-next.js"),
55
66
  "class-variance-authority": path.join(nm, "class-variance-authority/dist/index.mjs"),
56
- wujie: path.join(nm, "wujie/esm/index.js")
67
+ xlsx: path.join(nm, "xlsx/xlsx.mjs")
57
68
  };
58
69
  function isCjsArtifact(file) {
59
70
  const n = file.replace(/\\/g, "/");
@@ -78,7 +89,7 @@ export function vomePeerDepsPlugin(appRoot) {
78
89
  const norm = importer.replace(/\\/g, "/");
79
90
  return norm.includes("/node_modules/vome-core/") || norm.includes("/vome-core/dist/");
80
91
  }
81
- const leaveToVite = new Set(["vue", "vue-router", "@vueuse/core"]);
92
+ const leaveToVite = new Set(["vue", "vue-router", "@vueuse/core", "wujie"]);
82
93
  return {
83
94
  name: "vome-peer-deps",
84
95
  enforce: "pre",
@@ -135,12 +146,25 @@ export function vomeResolvePlugin(root) {
135
146
  resolveId(id, importer) {
136
147
  const serviceId = resolveServiceId(id, importer);
137
148
  if (serviceId)
138
- return serviceId;
149
+ return withVueQuery(serviceId, id);
150
+ if (importer) {
151
+ const imp = stripQuery(importer).replace(/\\/g, "/");
152
+ if (imp.includes("/vome-core/dist/admin/")) {
153
+ const clean = stripQuery(id);
154
+ if (clean.startsWith(".") || path.isAbsolute(clean)) {
155
+ const abs = path.normalize(path.isAbsolute(clean) ? clean : path.resolve(path.dirname(stripQuery(importer)), clean));
156
+ const hit = resolveFile(abs) ?? (fs.existsSync(abs) && fs.statSync(abs).isFile() ? abs : null);
157
+ if (hit)
158
+ return withVueQuery(hit, id);
159
+ }
160
+ }
161
+ }
139
162
  if (!isAdminSpec(id))
140
163
  return;
141
164
  const adminId = normalizeAdminId(id);
142
165
  const sub = adminId === "vome-core/admin" ? "" : adminId.slice("vome-core/admin/".length);
143
- return resolveFile(path.resolve(coreAdmin, sub)) ?? undefined;
166
+ const file = resolveFile(path.resolve(coreAdmin, sub));
167
+ return file ? withVueQuery(file, id) : undefined;
144
168
  }
145
169
  };
146
170
  }