@maxtropy/v-components 0.1.12-beta.3 → 0.1.12-beta.4

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.
@@ -24381,53 +24381,56 @@ function ps() {
24381
24381
  function vm() {
24382
24382
  return window.__MICRO_APP_ENVIRONMENT__ ? window.__MICRO_APP_BASE_ROUTE__ ?? "" : window.__MICRO_APP_BASE_APPLICATION__ ? "/" + window.location.pathname.split("/")[1] : "";
24383
24383
  }
24384
- function VP({ router: e }) {
24385
- var o;
24384
+ function VP() {
24385
+ var n;
24386
24386
  window.$location = window.__MICRO_APP_ENVIRONMENT__ ? window.microApp.location : window.location;
24387
- const t = ps();
24388
- if (!t)
24387
+ const e = ps();
24388
+ if (!e)
24389
24389
  return;
24390
- const n = vm();
24391
- window.rawFetch = window.fetch, window.fetch = (r, a) => {
24392
- var f, g;
24393
- const l = t;
24394
- let i = r;
24395
- typeof r == "string" && !r.startsWith("http") && !r.startsWith(n) && (i = l + r), typeof r == "object" && !(r instanceof URL) && !r.url.startsWith("http") && !r.url.startsWith(n) && (i = { ...r, url: l + r.url });
24396
- const c = window.document.cookie.split(";").filter((m) => m.indexOf("GT=GT-") > -1), p = (g = (f = c == null ? void 0 : c[0]) == null ? void 0 : f.split("=")) == null ? void 0 : g[1];
24397
- let d = { ...a };
24398
- return p && (d = {
24399
- ...a,
24390
+ const t = vm();
24391
+ window.rawFetch = window.fetch, window.fetch = (o, r) => {
24392
+ var d, f;
24393
+ const a = e;
24394
+ let l = o;
24395
+ typeof o == "string" && !o.startsWith("http") && !o.startsWith(t) && (l = a + o), typeof o == "object" && !(o instanceof URL) && !o.url.startsWith("http") && !o.url.startsWith(t) && (l = { ...o, url: a + o.url });
24396
+ const u = window.document.cookie.split(";").filter((g) => g.indexOf("GT=GT-") > -1), c = (f = (d = u == null ? void 0 : u[0]) == null ? void 0 : d.split("=")) == null ? void 0 : f[1];
24397
+ let p = { ...r };
24398
+ return c && (p = {
24399
+ ...r,
24400
24400
  headers: {
24401
- "X-GT": p,
24402
- ...a == null ? void 0 : a.headers
24401
+ "X-GT": c,
24402
+ ...r == null ? void 0 : r.headers
24403
24403
  }
24404
- }), window.rawFetch(i, d);
24404
+ }), window.rawFetch(l, p);
24405
24405
  }, window.rawXMLHttpRequest = window.XMLHttpRequest, window.XMLHttpRequest = class extends window.XMLHttpRequest {
24406
24406
  constructor() {
24407
- super(), this.open = (r, a, l, i, u) => {
24408
- var p, d;
24409
- const c = t;
24410
- if (!a.startsWith("http") && !a.startsWith(n)) {
24411
- super.open(r, c + a, l ?? !0, i, u);
24412
- const g = window.document.cookie.split(";").filter((v) => v.indexOf("GT=GT-") > -1), m = (d = (p = g == null ? void 0 : g[0]) == null ? void 0 : p.split("=")) == null ? void 0 : d[1];
24413
- m && super.setRequestHeader("X-GT", m);
24407
+ super(), this.open = (o, r, a, l, i) => {
24408
+ var c, p;
24409
+ const u = e;
24410
+ if (!r.startsWith("http") && !r.startsWith(t)) {
24411
+ super.open(o, u + r, a ?? !0, l, i);
24412
+ const f = window.document.cookie.split(";").filter((m) => m.indexOf("GT=GT-") > -1), g = (p = (c = f == null ? void 0 : f[0]) == null ? void 0 : c.split("=")) == null ? void 0 : p[1];
24413
+ g && super.setRequestHeader("X-GT", g);
24414
24414
  } else
24415
- super.open(r, a, l ?? !0, i, u);
24415
+ super.open(o, r, a ?? !0, l, i);
24416
24416
  };
24417
24417
  }
24418
- }, window.rawOpen = window.open, window.open = (r, a, l) => typeof r == "string" && r.startsWith("/") && !r.startsWith(n) ? window.rawWindow.rawOpen(t + r, a, l) : window.rawOpen(r, a, l), window.addEventListener("click", (r) => {
24419
- if (r.defaultPrevented)
24418
+ }, window.rawOpen = window.open, window.open = (o, r, a) => typeof o == "string" && o.startsWith("/") && !o.startsWith(t) ? window.rawWindow.rawOpen(e + o, r, a) : window.rawOpen(o, r, a), window.addEventListener("click", (o) => {
24419
+ if (o.defaultPrevented)
24420
24420
  return;
24421
- const l = r.target.closest("a");
24422
- if (!l)
24421
+ const a = o.target.closest("a");
24422
+ if (!a)
24423
24423
  return;
24424
- const i = l.getAttribute("href");
24425
- i && (r.preventDefault(), window.open(i, l.getAttribute("target") ?? "_self"));
24426
- }), e.afterEach((r, a) => {
24427
- r.fullPath !== a.fullPath && window.rawWindow.dispatchEvent(new PopStateEvent("popstate", { state: null }));
24428
- }), window.SELECTSTAFFORIGIN = window.location.origin + n + "/ms-cc", window.IOTPLATFORMORIGIN = window.location.origin + n + "/ms-dc", window.DMEPLATFORMSORIGIN = window.location.origin + n + "/ms-ds", window.IDSPLATFORMORIGIN = window.location.origin + n + "/ms-ids", (o = window.SERVERALARM) == null || o.forEach((r) => {
24429
- r.originId === 1 ? r.origin = window.SELECTSTAFFORIGIN : r.originId === 2 ? r.origin = window.IOTPLATFORMORIGIN : r.originId === 3 ? r.origin = window.DMEPLATFORMSORIGIN : r.originId === 4 && (r.origin = window.IDSPLATFORMORIGIN);
24430
- }), window.RAW_ALARMWORKORDER = window.ALARMWORKORDER, window.ALARMWORKORDER = window.location.origin + n + "/ms-wo";
24424
+ const l = a.getAttribute("href");
24425
+ l && (o.preventDefault(), window.open(l, a.getAttribute("target") ?? "_self"));
24426
+ }), window.SELECTSTAFFORIGIN = window.location.origin + t + "/ms-cc", window.IOTPLATFORMORIGIN = window.location.origin + t + "/ms-dc", window.DMEPLATFORMSORIGIN = window.location.origin + t + "/ms-ds", window.IDSPLATFORMORIGIN = window.location.origin + t + "/ms-ids", (n = window.SERVERALARM) == null || n.forEach((o) => {
24427
+ o.originId === 1 ? o.origin = window.SELECTSTAFFORIGIN : o.originId === 2 ? o.origin = window.IOTPLATFORMORIGIN : o.originId === 3 ? o.origin = window.DMEPLATFORMSORIGIN : o.originId === 4 && (o.origin = window.IDSPLATFORMORIGIN);
24428
+ }), window.RAW_ALARMWORKORDER = window.ALARMWORKORDER, window.ALARMWORKORDER = window.location.origin + t + "/ms-wo";
24429
+ }
24430
+ function zP(e) {
24431
+ window.__MICRO_APP_ENVIRONMENT__ && e.afterEach((t, n) => {
24432
+ t.fullPath !== n.fullPath && window.rawWindow.dispatchEvent(new PopStateEvent("popstate", { state: null }));
24433
+ });
24431
24434
  }
24432
24435
  const y5 = { class: "menu-gorups" }, b5 = { class: "menu-group-title" }, C5 = { class: "menu-items" }, w5 = ["href"], E5 = ["href"], Fr = /* @__PURE__ */ U({
24433
24436
  __name: "HeadNavigation",
@@ -27028,9 +27031,9 @@ Qo.closeAll = Gn.closeAll;
27028
27031
  Qo._context = Gn._context;
27029
27032
  const MP = (e, t) => (e.install = (n) => {
27030
27033
  e._context = n._context, n.config.globalProperties[t] = e;
27031
- }, e), zP = MP(Qo, "$mxMessage"), xP = (e, t) => (e.install = (n) => {
27034
+ }, e), HP = MP(Qo, "$mxMessage"), xP = (e, t) => (e.install = (n) => {
27032
27035
  e._context = n._context, n.config.globalProperties[t] = e;
27033
- }, e), TP = xP(No, "$mxMessageBox"), HP = TP;
27036
+ }, e), TP = xP(No, "$mxMessageBox"), UP = TP;
27034
27037
  function OP(e) {
27035
27038
  let t = {};
27036
27039
  return typeof e == "string" || an(e) ? t = { message: e, customClass: "mx-notification" } : Object.prototype.toString.call(e) === "[object Object]" && (t = { ...e }, t.customClass = `mx-notification ${e.customClass}`, e.type === "info" && (t.icon = zl(fs), t.type = null)), {
@@ -27041,7 +27044,7 @@ const Sm = function(e = {}) {
27041
27044
  return am(OP(e));
27042
27045
  };
27043
27046
  Sm.closeAll = am.closeAll;
27044
- const UP = Sm, FP = 100, WP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27047
+ const WP = Sm, FP = 100, jP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27045
27048
  __proto__: null,
27046
27049
  MAGIC_NUM: FP
27047
27050
  }, Symbol.toStringTag, { value: "Module" }));
@@ -27049,12 +27052,12 @@ function RP(e) {
27049
27052
  for (const t in uf)
27050
27053
  e.component(t, uf[t]);
27051
27054
  }
27052
- const jP = { install: RP };
27055
+ const YP = { install: RP };
27053
27056
  export {
27054
27057
  Hr as AuthorizedPermission,
27055
27058
  zr as BasicLayout,
27056
27059
  Vr as BreadCrumb,
27057
- WP as Const,
27060
+ jP as Const,
27058
27061
  Fr as HeadNavigation,
27059
27062
  Yr as MxAlert,
27060
27063
  zn as MxButton,
@@ -27069,9 +27072,9 @@ export {
27069
27072
  la as MxForm,
27070
27073
  $u as MxFormItem,
27071
27074
  Tr as MxInput,
27072
- zP as MxMessage,
27073
- HP as MxMessageBox,
27074
- UP as MxNotification,
27075
+ HP as MxMessage,
27076
+ UP as MxMessageBox,
27077
+ WP as MxNotification,
27075
27078
  Yu as MxOption,
27076
27079
  Gu as MxOptionGroup,
27077
27080
  aa as MxPagination,
@@ -27096,7 +27099,7 @@ export {
27096
27099
  Or as SwitchStaff,
27097
27100
  Lr as SystemContent,
27098
27101
  Qr as UserContent,
27099
- jP as default,
27102
+ YP as default,
27100
27103
  ps as getBase,
27101
27104
  $F as getIntegratedAuthorityCurrent,
27102
27105
  XF as getMenuCurrent,
@@ -27104,6 +27107,7 @@ export {
27104
27107
  ZF as getSystemConfig,
27105
27108
  is as getTenantCurrent,
27106
27109
  VP as microAppRewrite,
27110
+ zP as microAppRouterHandle,
27107
27111
  qF as refreshCurrrent,
27108
27112
  us as useCurrent,
27109
27113
  ds as useIntegratedAuthorityList,
@@ -1,12 +1,12 @@
1
1
  import type { Router } from 'vue-router';
2
2
  export declare function getBase(): string;
3
3
  export declare function getMicroAppBaseRoute(): string;
4
- export declare function microAppRewrite({ router }: {
5
- router: Router;
6
- }): void;
4
+ export declare function microAppRewrite(): void;
5
+ export declare function microAppRouterHandle(router: Router): void;
7
6
  declare const _default: {
8
7
  getBase: typeof getBase;
9
8
  getMicroAppBaseRoute: typeof getMicroAppBaseRoute;
10
9
  microAppRewrite: typeof microAppRewrite;
10
+ microAppRouterHandle: typeof microAppRouterHandle;
11
11
  };
12
12
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.12-beta.3",
3
+ "version": "0.1.12-beta.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],