@unizhen/ui 0.1.42 → 0.1.43

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.
package/lib/ui.js CHANGED
@@ -2024,18 +2024,18 @@ var Ru = /*#__PURE__*/ W(Fu, [["render", Lu]]), zu = /* @__PURE__ */ ut({
2024
2024
  r(e);
2025
2025
  }), () => t.value ? n.value && n.value.render(null, []) : null;
2026
2026
  }
2027
- }), Vu = zu, G;
2028
- function Hu(e, t = "/") {
2029
- return G = Ge({
2027
+ }), Vu = zu, Hu;
2028
+ function Uu(e, t = "/") {
2029
+ return Hu = Ge({
2030
2030
  history: Ke(t),
2031
2031
  routes: e,
2032
2032
  scrollBehavior: () => ({
2033
2033
  left: 0,
2034
2034
  top: 0
2035
2035
  })
2036
- }), G;
2036
+ }), Hu;
2037
2037
  }
2038
- var Uu = Ye({
2038
+ var G = Ye({
2039
2039
  legacy: !1,
2040
2040
  locale: "zh-CN",
2041
2041
  messages: {
@@ -2132,7 +2132,7 @@ function Gu(e) {
2132
2132
  let t;
2133
2133
  t = e || (K.lang === "zh-CN" ? "en-US" : "zh-CN"), J("lang", t, 0), K.lang = t;
2134
2134
  let n = document.body;
2135
- n.dataset.lang = t, Uu.global.locale.value = t;
2135
+ n.dataset.lang = t, G.global.locale.value = t;
2136
2136
  }
2137
2137
  function Ku(e) {
2138
2138
  let t = document.body;
@@ -2379,7 +2379,7 @@ bd.interceptors.request.use((e) => {
2379
2379
  return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
2380
2380
  }, (e) => Promise.reject(e)), bd.interceptors.response.use((e) => {
2381
2381
  let t = e.data;
2382
- if (t.code === 401 && (sd("token"), G.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
2382
+ if (t.code === 401 && (sd("token"), Hu.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
2383
2383
  let t = yd(e.headers);
2384
2384
  return Promise.resolve({
2385
2385
  fileName: decodeURIComponent(t),
@@ -2393,17 +2393,17 @@ bd.interceptors.request.use((e) => {
2393
2393
  ad.destroyAll();
2394
2394
  let e = t.message;
2395
2395
  return ad.error({
2396
- content: e || Uu.global.t("Notice.error"),
2396
+ content: e || G.global.t("Notice.error"),
2397
2397
  duration: 3e3
2398
2398
  }), Promise.reject(e);
2399
2399
  }
2400
2400
  }, (e) => e ? (ad.destroyAll(), e.code === "ERR_NETWORK" ? (ad.error({
2401
- content: Uu.global.t("Notice.network"),
2401
+ content: G.global.t("Notice.network"),
2402
2402
  duration: 3e3
2403
2403
  }), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (sd("token"), window.location.href = "/login"), ad.error({
2404
- content: Uu.global.t("Notice.error"),
2404
+ content: G.global.t("Notice.error"),
2405
2405
  duration: 3e3
2406
- }), Promise.reject(Uu.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(Uu.global.t("Notice.error")));
2406
+ }), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
2407
2407
  var Sd = "/apiserver/", Cd = () => {
2408
2408
  xd.cancel(), xd = We.CancelToken.source();
2409
2409
  }, wd = (e, t, n = "json", r = 3e5) => {
@@ -7005,7 +7005,8 @@ var cm = /*#__PURE__*/ W(rm, [["render", sm]]), lm = d({
7005
7005
  NDrawer: ce,
7006
7006
  NSkeleton: Ae,
7007
7007
  NSpin: Me,
7008
- NPopover: Ee
7008
+ NPopover: Ee,
7009
+ NModal: Ce
7009
7010
  },
7010
7011
  emits: ["update:show", "on-submit"],
7011
7012
  setup(e, { emit: n, expose: r }) {
@@ -7167,7 +7168,7 @@ var cm = /*#__PURE__*/ W(rm, [["render", sm]]), lm = d({
7167
7168
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7168
7169
  }, fm = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, pm = { class: "uz-flex uz-gap-2" };
7169
7170
  function mm(t, s, u, d, f, p) {
7170
- let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("n-modal");
7171
+ let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
7171
7172
  return x(), i(e, null, [l(S, {
7172
7173
  show: t.drawer,
7173
7174
  "onUpdate:show": s[2] ||= (e) => t.drawer = e,
@@ -7576,7 +7577,7 @@ function Em(e) {
7576
7577
  }];
7577
7578
  }
7578
7579
  function Dm(e) {
7579
- Q.active = e, G.push(e), J(Q.cache, Q, 0);
7580
+ Q.active = e, Hu.push(e), J(Q.cache, Q, 0);
7580
7581
  }
7581
7582
  function Om(e, t) {
7582
7583
  let n = Q.thumbnail.find((t) => t.key === e);
@@ -7584,22 +7585,22 @@ function Om(e, t) {
7584
7585
  }
7585
7586
  function km(e) {
7586
7587
  let t = Q.thumbnail.find((t) => t.path === e.key);
7587
- t ? (Q.active = t.key, J(Q.cache, Q, 0), G.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
7588
+ t ? (Q.active = t.key, J(Q.cache, Q, 0), Hu.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
7588
7589
  ...e,
7589
7590
  path: e.key,
7590
7591
  closable: !0
7591
- }), G.push(e.key));
7592
+ }), Hu.push(e.key));
7592
7593
  }
7593
7594
  function Am(e) {
7594
7595
  let t = Q.thumbnail.findIndex((t) => t.key === e);
7595
7596
  if (Q.thumbnail.splice(t, 1), Q.active === e) {
7596
7597
  let e = Q.thumbnail[t - 1]?.key || "";
7597
- Q.active = e, G.push(e);
7598
+ Q.active = e, Hu.push(e);
7598
7599
  }
7599
7600
  J(Q.cache, Q, 0);
7600
7601
  }
7601
7602
  function jm() {
7602
- Q.active = Q.page.path, Q.thumbnail = [Q.page], G.push(Q.page.path), J(Q.cache, Q, 0);
7603
+ Q.active = Q.page.path, Q.thumbnail = [Q.page], Hu.push(Q.page.path), J(Q.cache, Q, 0);
7603
7604
  }
7604
7605
  //#endregion
7605
7606
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
@@ -9073,7 +9074,7 @@ var pg = /*#__PURE__*/ W(Vh, [["render", fg], ["__scopeId", "data-v-d3a8d519"]])
9073
9074
  fnTableSimplify: () => Op,
9074
9075
  fnTriggersReduction: () => jp,
9075
9076
  fnTriggersSimplify: () => Ap,
9076
- i18n: () => Uu
9077
+ i18n: () => G
9077
9078
  }), hg = 3840, gg = 2160, _g = C({ scale: 1 });
9078
9079
  function vg(e, t) {
9079
9080
  hg = e, gg = t;
@@ -9192,7 +9193,7 @@ function wg(e, t, n) {
9192
9193
  }
9193
9194
  //#endregion
9194
9195
  //#region package.json
9195
- var Tg = "0.1.42", Eg;
9196
+ var Tg = "0.1.43", Eg;
9196
9197
  async function Dg() {
9197
9198
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
9198
9199
  method: "HEAD",
@@ -9334,7 +9335,7 @@ function zg({ components: e = [] } = {}) {
9334
9335
  });
9335
9336
  }), i)) {
9336
9337
  let { title: e = "杭州宇臻智能", monitor: t = !1, monitorFn: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
9337
- Ju(e), Wu(o), Gu(l), Ku(c), Uu.global.locale.value = l, a && kg(), t && Lg(r, t, n);
9338
+ Ju(e), Wu(o), Gu(l), Ku(c), G.global.locale.value = l, a && kg(), t && Lg(r, t, n);
9338
9339
  }
9339
9340
  }
9340
9341
  return {
@@ -9346,4 +9347,4 @@ function zg({ components: e = [] } = {}) {
9346
9347
  //#region components/preset.ts
9347
9348
  var Bg = zg({ components: Object.keys(mg).map((e) => mg[e]) }), Vg = Bg.install;
9348
9349
  //#endregion
9349
- export { vt as AccessPoint, St as Activity, Et as Adjustments, At as AdjustmentsHorizontal, Pt as Affiliate, Rt as Alarm, Ht as AlertCircle, Kt as ApiApp, en as AppWindow, Xt as Apps, an as Archive, ln as ArrowNarrowLeft, pn as AspectRatio, _n as Atom, xn as Atom2, Tn as Award, Td as BLOB, kn as Barcode, Nn as Basket, Ln as Bell, Vn as Bluetooth, Gn as Book2, Eu as Books, Yn as Box, $n as BrandAsana, Ru as BrandStackoverflow, rr as Briefcase, sr as Building, dr as BuildingArch, uu as BuildingWarehouse, Ed as CUSTOM, yr as Calculator, Cr as Calendar, Dr as CalendarPlus, jr as CalendarStats, Fr as Camera, zr as CaretDown, Ur as CaretUp, qr as ChartArea, Zr as ChartBar, ti as ChartBubble, ai as ChartDonut, li as ChartLine, pi as ChartPie, _i as ChartRadar, nu as CheckMark, xi as Checkbox, Ti as CheckupList, Ql as CircleMinus, ki as Clipboard, Ni as ClipboardCheck, Li as ClipboardList, Vi as ClipboardPlus, Gi as Clock, Yi as Cloud, $i as CloudDownload, ra as CloudUpload, sa as Command, Au as Confetti, vu as Container, da as Copy, hr as Cpu, ha as CreditCard, ya as Crosshair, Ca as CurrencyYen, Su as Dashboard, Da as Database, ja as DatabaseExport, Fa as DatabaseImport, za as DeviceAnalytics, Ua as DeviceDesktop, qa as DeviceDesktopAnalytics, Za as DeviceLaptop, to as DeviceMobile, ao as Diamond, lo as Dots, mo as DotsVertical, vo as Edit, So as Eraser, Eo as Eye, Dd as FILE, Ao as File, Po as FileAlert, Ro as FileAnalytics, Ho as FileText, Ko as Filter, wd as GET, Xo as GitCompare, es as GitPullRequest, is as GridDots, cs as Home, Vu as IconList, fs as Id, gs as LayoutSidebarLeftCollapse, bs as LayoutSidebarLeftExpand, ws as Link, Os as List, Ms as ListCheck, Is as ListDetails, Bs as Mail, Ws as Map, Js as MapPin, mu as Menu2, ou as Message2, Pu as MinusRound, Qs as MoonStars, Z as POST, nc as Paperclip, oc as Photo, uc as PhotoOff, mc as Plus, vc as Presentation, Sc as PresentationAnalytics, Ec as Printer, Ac as Qrcode, Pc as Refresh, Rc as Report, Hc as ReportAnalytics, Kc as ReportMoney, Xc as ReportSearch, el as Search, il as Settings, cl as SmartHome, fl as Sun, gl as TransferIn, bl as TransferOut, wl as Trash, Ol as User, Jl as UserCircle, Ml as UserMinus, Il as UserPlus, Bl as Users, mt as UzActionButton, Xd as UzBack, ap as UzCamera, Tf as UzCircle, Rf as UzDraggableForm, Nf as UzForm, kf as UzFormItem, Jf as UzFormItemImage, Qf as UzFormItemTimesPicker, Wf as UzFormItemUpload, Bu as UzIcon, pg as UzOcr, dp as UzSearchBar, _p as UzSearchMobileBar, Rp as UzSpin, Jp as UzTable, nm as UzTableChild, hm as UzTableDrawer, Tm as UzTableMobile, cm as UzTableQuestChild, Pm as UzThumbnail, Ym as UzWrap, Wl as X, K as commonStore, zg as create, Km as darkTheme, Bg as default, qd as fnActionReduction, Kd as fnActionSimplify, km as fnAddThumbnail, Cd as fnCancelFetch, jm as fnClearAllThumbnail, yg as fnComputedScale, Hu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, Am as fnDeleteThumbnail, od as fnDialog, q as fnErrorLog, fd as fnFormatTime, gd as fnFormatUnits, hd as fnFullScreen, Y as fnGetStorage, Dp as fnGetTableData, bg as fnListenerScale, ad as fnNotification, Np as fnOptionReduction, Mp as fnOptionSimplify, dd as fnPageModel2Naive, Pp as fnPrepareFormData, Fp as fnPrepareTableData, zd as fnRenderAction, ud as fnScrollTop, Gu as fnSetLang, vg as fnSetNormalWidthAndHeight, J as fnSetStorage, Ku as fnSetTheme, Dm as fnSetThumbnail, kp as fnTableReduction, Op as fnTableSimplify, md as fnThrottle, pd as fnTitle, jp as fnTriggersReduction, Ap as fnTriggersSimplify, Uu as i18n, Vg as install, Gm as lightTheme, G as router, _g as scaleStore, xg as useDebounceFn, Cg as useLocalStorage, wg as useQuery, Sg as useThrottleFn };
9350
+ export { vt as AccessPoint, St as Activity, Et as Adjustments, At as AdjustmentsHorizontal, Pt as Affiliate, Rt as Alarm, Ht as AlertCircle, Kt as ApiApp, en as AppWindow, Xt as Apps, an as Archive, ln as ArrowNarrowLeft, pn as AspectRatio, _n as Atom, xn as Atom2, Tn as Award, Td as BLOB, kn as Barcode, Nn as Basket, Ln as Bell, Vn as Bluetooth, Gn as Book2, Eu as Books, Yn as Box, $n as BrandAsana, Ru as BrandStackoverflow, rr as Briefcase, sr as Building, dr as BuildingArch, uu as BuildingWarehouse, Ed as CUSTOM, yr as Calculator, Cr as Calendar, Dr as CalendarPlus, jr as CalendarStats, Fr as Camera, zr as CaretDown, Ur as CaretUp, qr as ChartArea, Zr as ChartBar, ti as ChartBubble, ai as ChartDonut, li as ChartLine, pi as ChartPie, _i as ChartRadar, nu as CheckMark, xi as Checkbox, Ti as CheckupList, Ql as CircleMinus, ki as Clipboard, Ni as ClipboardCheck, Li as ClipboardList, Vi as ClipboardPlus, Gi as Clock, Yi as Cloud, $i as CloudDownload, ra as CloudUpload, sa as Command, Au as Confetti, vu as Container, da as Copy, hr as Cpu, ha as CreditCard, ya as Crosshair, Ca as CurrencyYen, Su as Dashboard, Da as Database, ja as DatabaseExport, Fa as DatabaseImport, za as DeviceAnalytics, Ua as DeviceDesktop, qa as DeviceDesktopAnalytics, Za as DeviceLaptop, to as DeviceMobile, ao as Diamond, lo as Dots, mo as DotsVertical, vo as Edit, So as Eraser, Eo as Eye, Dd as FILE, Ao as File, Po as FileAlert, Ro as FileAnalytics, Ho as FileText, Ko as Filter, wd as GET, Xo as GitCompare, es as GitPullRequest, is as GridDots, cs as Home, Vu as IconList, fs as Id, gs as LayoutSidebarLeftCollapse, bs as LayoutSidebarLeftExpand, ws as Link, Os as List, Ms as ListCheck, Is as ListDetails, Bs as Mail, Ws as Map, Js as MapPin, mu as Menu2, ou as Message2, Pu as MinusRound, Qs as MoonStars, Z as POST, nc as Paperclip, oc as Photo, uc as PhotoOff, mc as Plus, vc as Presentation, Sc as PresentationAnalytics, Ec as Printer, Ac as Qrcode, Pc as Refresh, Rc as Report, Hc as ReportAnalytics, Kc as ReportMoney, Xc as ReportSearch, el as Search, il as Settings, cl as SmartHome, fl as Sun, gl as TransferIn, bl as TransferOut, wl as Trash, Ol as User, Jl as UserCircle, Ml as UserMinus, Il as UserPlus, Bl as Users, mt as UzActionButton, Xd as UzBack, ap as UzCamera, Tf as UzCircle, Rf as UzDraggableForm, Nf as UzForm, kf as UzFormItem, Jf as UzFormItemImage, Qf as UzFormItemTimesPicker, Wf as UzFormItemUpload, Bu as UzIcon, pg as UzOcr, dp as UzSearchBar, _p as UzSearchMobileBar, Rp as UzSpin, Jp as UzTable, nm as UzTableChild, hm as UzTableDrawer, Tm as UzTableMobile, cm as UzTableQuestChild, Pm as UzThumbnail, Ym as UzWrap, Wl as X, K as commonStore, zg as create, Km as darkTheme, Bg as default, qd as fnActionReduction, Kd as fnActionSimplify, km as fnAddThumbnail, Cd as fnCancelFetch, jm as fnClearAllThumbnail, yg as fnComputedScale, Uu as fnCreateRouter, sd as fnDelStorage, ld as fnDelStorageAll, cd as fnDelStorageByPrefix, Am as fnDeleteThumbnail, od as fnDialog, q as fnErrorLog, fd as fnFormatTime, gd as fnFormatUnits, hd as fnFullScreen, Y as fnGetStorage, Dp as fnGetTableData, bg as fnListenerScale, ad as fnNotification, Np as fnOptionReduction, Mp as fnOptionSimplify, dd as fnPageModel2Naive, Pp as fnPrepareFormData, Fp as fnPrepareTableData, zd as fnRenderAction, ud as fnScrollTop, Gu as fnSetLang, vg as fnSetNormalWidthAndHeight, J as fnSetStorage, Ku as fnSetTheme, Dm as fnSetThumbnail, kp as fnTableReduction, Op as fnTableSimplify, md as fnThrottle, pd as fnTitle, jp as fnTriggersReduction, Ap as fnTriggersSimplify, G as i18n, Vg as install, Gm as lightTheme, Hu as router, _g as scaleStore, xg as useDebounceFn, Cg as useLocalStorage, wg as useQuery, Sg as useThrottleFn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },