pangea-lib 4.0.110 → 4.0.111
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/main.es.js
CHANGED
|
@@ -1217,7 +1217,7 @@ async function lE() {
|
|
|
1217
1217
|
t.setAuthUser(a, null);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function BG1(e) {
|
|
1221
1221
|
const t = be.getConfig();
|
|
1222
1222
|
t.stores.useAuthStore().setAuthUser(e, null);
|
|
1223
1223
|
const r = { name: `login${z3.getFirstChartInUppercase(e)}` };
|
|
@@ -1231,7 +1231,7 @@ function j5(e) {
|
|
|
1231
1231
|
const t = e ? "visible" : "hidden";
|
|
1232
1232
|
document.body.style.overflow = t;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function IG1(e, t, a = "animate__") {
|
|
1235
1235
|
return new Promise((r) => {
|
|
1236
1236
|
const n = `${a}${t}`, i = document.querySelector(e);
|
|
1237
1237
|
if (!i)
|
|
@@ -1269,7 +1269,7 @@ function lu(e, t) {
|
|
|
1269
1269
|
m7(`${r}-0${c}`, fE(t, i), n);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function $G1() {
|
|
1273
1273
|
const e = wv, t = Math.floor(Math.random() * Object.keys(e).length);
|
|
1274
1274
|
return e[Object.keys(e)[t]];
|
|
1275
1275
|
}
|
|
@@ -1470,7 +1470,7 @@ function vt(e, t) {
|
|
|
1470
1470
|
}, i = e.toLocaleString(pt().language, n);
|
|
1471
1471
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function UG1(e) {
|
|
1474
1474
|
return vt(e, { format: "short", withoutDay: !0, withTime: !1 });
|
|
1475
1475
|
}
|
|
1476
1476
|
function S8(e) {
|
|
@@ -1494,6 +1494,29 @@ function fu(e) {
|
|
|
1494
1494
|
function VE(e) {
|
|
1495
1495
|
return vt(e, { justTime: !0 });
|
|
1496
1496
|
}
|
|
1497
|
+
class WG1 {
|
|
1498
|
+
static __GetEnv(t) {
|
|
1499
|
+
return { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }[t];
|
|
1500
|
+
}
|
|
1501
|
+
static GetStr(t) {
|
|
1502
|
+
return this.__GetEnv(t);
|
|
1503
|
+
}
|
|
1504
|
+
static GetInt(t) {
|
|
1505
|
+
const a = this.__GetEnv(t);
|
|
1506
|
+
if (a)
|
|
1507
|
+
return parseInt(a);
|
|
1508
|
+
}
|
|
1509
|
+
static GetFloat(t) {
|
|
1510
|
+
const a = this.__GetEnv(t);
|
|
1511
|
+
if (a)
|
|
1512
|
+
return parseFloat(a);
|
|
1513
|
+
}
|
|
1514
|
+
static GetBool(t) {
|
|
1515
|
+
const a = this.__GetEnv(t);
|
|
1516
|
+
if (a)
|
|
1517
|
+
return a.toLowerCase() === "true";
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1497
1520
|
function Lv(e, t) {
|
|
1498
1521
|
return function() {
|
|
1499
1522
|
return e.apply(t, arguments);
|
|
@@ -78191,34 +78214,11 @@ class hX1 extends u3 {
|
|
|
78191
78214
|
u3.CopyFields(this, a);
|
|
78192
78215
|
}
|
|
78193
78216
|
}
|
|
78194
|
-
|
|
78195
|
-
|
|
78196
|
-
return { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }[t];
|
|
78197
|
-
}
|
|
78198
|
-
static GetStr(t) {
|
|
78199
|
-
return this.__GetEnv(t);
|
|
78200
|
-
}
|
|
78201
|
-
static GetInt(t) {
|
|
78202
|
-
const a = this.__GetEnv(t);
|
|
78203
|
-
if (a)
|
|
78204
|
-
return parseInt(a);
|
|
78205
|
-
}
|
|
78206
|
-
static GetFloat(t) {
|
|
78207
|
-
const a = this.__GetEnv(t);
|
|
78208
|
-
if (a)
|
|
78209
|
-
return parseFloat(a);
|
|
78210
|
-
}
|
|
78211
|
-
static GetBool(t) {
|
|
78212
|
-
const a = this.__GetEnv(t);
|
|
78213
|
-
if (a)
|
|
78214
|
-
return a.toLowerCase() === "true";
|
|
78215
|
-
}
|
|
78216
|
-
}
|
|
78217
|
-
const un = window.location.host, vv = un.includes("localhost") ? un.split(".").slice(-1)[0] : un.split(".").slice(-2).join("."), dX1 = un === vv ? void 0 : un.replace(`.${vv}`, ""), mX1 = SG1.GetStr("VITE_ENVIRONMENT");
|
|
78218
|
-
function TG1(e, t, a) {
|
|
78217
|
+
const un = window.location.host, vv = un.includes("localhost") ? un.split(".").slice(-1)[0] : un.split(".").slice(-2).join("."), dX1 = un === vv ? void 0 : un.replace(`.${vv}`, "");
|
|
78218
|
+
function SG1(e, t, a) {
|
|
78219
78219
|
return a || { top: 0 };
|
|
78220
78220
|
}
|
|
78221
|
-
async function
|
|
78221
|
+
async function TG1(e, t, a) {
|
|
78222
78222
|
if (t.name && t.name === e.name) {
|
|
78223
78223
|
a();
|
|
78224
78224
|
return;
|
|
@@ -78230,25 +78230,25 @@ async function EG1(e, t, a) {
|
|
|
78230
78230
|
}
|
|
78231
78231
|
a();
|
|
78232
78232
|
}
|
|
78233
|
-
async function
|
|
78234
|
-
Ct().currentRoute = e,
|
|
78233
|
+
async function EG1(e) {
|
|
78234
|
+
Ct().currentRoute = e, NG1(e.name), DG1();
|
|
78235
78235
|
}
|
|
78236
|
-
function
|
|
78236
|
+
function NG1(e) {
|
|
78237
78237
|
const t = Ct().routeType;
|
|
78238
78238
|
document.title = `${sc(t, e)} | ${be.getConfig().appName}`;
|
|
78239
78239
|
}
|
|
78240
|
-
async function
|
|
78240
|
+
async function DG1() {
|
|
78241
78241
|
const e = be.getConfig(), t = e.routerHelpers;
|
|
78242
78242
|
if (await lE(), !t.validateRouteAccess(Ct().routeAccess)) {
|
|
78243
78243
|
e.router.push({ name: t.getDefaultRouteName() });
|
|
78244
78244
|
return;
|
|
78245
78245
|
}
|
|
78246
78246
|
}
|
|
78247
|
-
function
|
|
78248
|
-
const t = aE({ history: rE(), routes: e, scrollBehavior:
|
|
78249
|
-
return t.beforeEach(
|
|
78247
|
+
function mX1(e) {
|
|
78248
|
+
const t = aE({ history: rE(), routes: e, scrollBehavior: SG1 });
|
|
78249
|
+
return t.beforeEach(TG1), t.afterEach(EG1), t;
|
|
78250
78250
|
}
|
|
78251
|
-
function
|
|
78251
|
+
function pX1(e, t, a) {
|
|
78252
78252
|
const r = nE();
|
|
78253
78253
|
r.use(KI({ storage: localStorage })), e.use(r), e.use(t.router), e.use(Sy), e.use(Q$, {
|
|
78254
78254
|
themes: { tooltip: { triggers: ["hover", "focus", "touch"], hideTriggers: (i) => [...i] } }
|
|
@@ -78264,6 +78264,7 @@ export {
|
|
|
78264
78264
|
Ya as BaseResponse,
|
|
78265
78265
|
sX1 as ConfirmUploadedFileParams,
|
|
78266
78266
|
oX1 as ConfirmUploadedFilesParams,
|
|
78267
|
+
WG1 as Env,
|
|
78267
78268
|
qG1 as FileStorage,
|
|
78268
78269
|
cX1 as GenerateUploadUrlsParams,
|
|
78269
78270
|
rX1 as GenerateUploadUrlsResponse,
|
|
@@ -78274,28 +78275,27 @@ export {
|
|
|
78274
78275
|
fX1 as UploadFilesParams,
|
|
78275
78276
|
Ii as User,
|
|
78276
78277
|
ct as addNotification,
|
|
78277
|
-
|
|
78278
|
+
IG1 as animateElement,
|
|
78278
78279
|
TR as clearNotifications,
|
|
78279
78280
|
wv as colorSelectorColors,
|
|
78280
78281
|
pl as copyModelFields,
|
|
78281
78282
|
aX1 as createApiConnections,
|
|
78282
78283
|
LE as createI18n,
|
|
78283
|
-
|
|
78284
|
-
|
|
78284
|
+
mX1 as createRouter,
|
|
78285
|
+
pX1 as default,
|
|
78285
78286
|
Nq as displayAlert,
|
|
78286
78287
|
vv as domain,
|
|
78287
|
-
mX1 as environment,
|
|
78288
78288
|
sE as getAccessToken,
|
|
78289
78289
|
U3 as getAppOptions,
|
|
78290
78290
|
fu as getDateStr,
|
|
78291
78291
|
vt as getDatetimeStr,
|
|
78292
78292
|
a3 as getFinalValue,
|
|
78293
78293
|
ti as getIsSmallDevice,
|
|
78294
|
-
|
|
78294
|
+
UG1 as getMonthStr,
|
|
78295
78295
|
Xg as getNavigationSectionsToDisplay,
|
|
78296
78296
|
Nu as getNumberStr,
|
|
78297
78297
|
S8 as getNumericDateStr,
|
|
78298
|
-
|
|
78298
|
+
$G1 as getRandomColorSelectorColor,
|
|
78299
78299
|
sc as getRouteTitle,
|
|
78300
78300
|
VR as getRouteType,
|
|
78301
78301
|
vl as getRoutesByNavigationSection,
|
|
@@ -78312,7 +78312,7 @@ export {
|
|
|
78312
78312
|
eX1 as lessEqualRule,
|
|
78313
78313
|
tX1 as lessThanRule,
|
|
78314
78314
|
oE as login,
|
|
78315
|
-
|
|
78315
|
+
BG1 as logout,
|
|
78316
78316
|
Ym as maxLengthRule,
|
|
78317
78317
|
jm as minLengthRule,
|
|
78318
78318
|
_v as pangeaOptionsColors,
|
|
@@ -2,6 +2,7 @@ export * from './auth.helpers';
|
|
|
2
2
|
export * from './color.helpers';
|
|
3
3
|
export * from './css.helpers';
|
|
4
4
|
export * from './datetime.helpers';
|
|
5
|
+
export * from './env.helpers';
|
|
5
6
|
export * from './file-storage.helpers';
|
|
6
7
|
export * from './html-sanitize.helpers';
|
|
7
8
|
export * from './number.helpers';
|