@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.
- package/dist/mx-vcomponents.es.js +49 -45
- package/dist/types/utils/micro.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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(
|
|
24385
|
-
var
|
|
24384
|
+
function VP() {
|
|
24385
|
+
var n;
|
|
24386
24386
|
window.$location = window.__MICRO_APP_ENVIRONMENT__ ? window.microApp.location : window.location;
|
|
24387
|
-
const
|
|
24388
|
-
if (!
|
|
24387
|
+
const e = ps();
|
|
24388
|
+
if (!e)
|
|
24389
24389
|
return;
|
|
24390
|
-
const
|
|
24391
|
-
window.rawFetch = window.fetch, window.fetch = (
|
|
24392
|
-
var
|
|
24393
|
-
const
|
|
24394
|
-
let
|
|
24395
|
-
typeof
|
|
24396
|
-
const
|
|
24397
|
-
let
|
|
24398
|
-
return
|
|
24399
|
-
...
|
|
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":
|
|
24402
|
-
...
|
|
24401
|
+
"X-GT": c,
|
|
24402
|
+
...r == null ? void 0 : r.headers
|
|
24403
24403
|
}
|
|
24404
|
-
}), window.rawFetch(
|
|
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
|
|
24408
|
-
var
|
|
24409
|
-
const
|
|
24410
|
-
if (!
|
|
24411
|
-
super.open(
|
|
24412
|
-
const
|
|
24413
|
-
|
|
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
|
|
24415
|
+
super.open(o, r, a ?? !0, l, i);
|
|
24416
24416
|
};
|
|
24417
24417
|
}
|
|
24418
|
-
}, window.rawOpen = window.open, window.open = (r, a
|
|
24419
|
-
if (
|
|
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
|
|
24422
|
-
if (!
|
|
24421
|
+
const a = o.target.closest("a");
|
|
24422
|
+
if (!a)
|
|
24423
24423
|
return;
|
|
24424
|
-
const
|
|
24425
|
-
|
|
24426
|
-
}),
|
|
24427
|
-
|
|
24428
|
-
}), window.
|
|
24429
|
-
|
|
24430
|
-
|
|
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),
|
|
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"),
|
|
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
|
|
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
|
|
27055
|
+
const YP = { install: RP };
|
|
27053
27056
|
export {
|
|
27054
27057
|
Hr as AuthorizedPermission,
|
|
27055
27058
|
zr as BasicLayout,
|
|
27056
27059
|
Vr as BreadCrumb,
|
|
27057
|
-
|
|
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
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
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
|
-
|
|
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(
|
|
5
|
-
|
|
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;
|