pangea-lib 4.0.111 → 4.0.112

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
@@ -1494,29 +1494,6 @@ 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
- }
1520
1497
  function Lv(e, t) {
1521
1498
  return function() {
1522
1499
  return e.apply(t, arguments);
@@ -3214,7 +3191,7 @@ Ze.getAdapter = Gv.getAdapter;
3214
3191
  Ze.HttpStatusCode = sD;
3215
3192
  Ze.default = Ze;
3216
3193
  const ha = Ze;
3217
- class qG1 {
3194
+ class WG1 {
3218
3195
  static UploadFile(t, a) {
3219
3196
  return ha.put(t, a, { headers: { "Content-Type": a.type, "x-amz-acl": "public-read" } });
3220
3197
  }
@@ -3741,7 +3718,7 @@ function tg() {
3741
3718
  }, t;
3742
3719
  }
3743
3720
  var ag = tg();
3744
- function jG1(e) {
3721
+ function qG1(e) {
3745
3722
  return ag.sanitize(e);
3746
3723
  }
3747
3724
  function LD(e) {
@@ -6388,13 +6365,13 @@ function a3(e) {
6388
6365
  function kR() {
6389
6366
  window.scrollTo({ top: 0, behavior: "smooth" });
6390
6367
  }
6391
- function YG1(e) {
6368
+ function jG1(e) {
6392
6369
  return typeof e != "string" ? !1 : /^[a-fA-F0-9]{24}$/.test(e);
6393
6370
  }
6394
6371
  function ti() {
6395
6372
  return window.innerWidth <= 768;
6396
6373
  }
6397
- function GG1() {
6374
+ function YG1() {
6398
6375
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
6399
6376
  }
6400
6377
  let E6 = {
@@ -9740,7 +9717,7 @@ const El = /* @__PURE__ */ Z1(II, [["__scopeId", "data-v-b25b0aa2"]]), $I = { cl
9740
9717
  ]));
9741
9718
  }
9742
9719
  });
9743
- const WI = /* @__PURE__ */ Z1(UI, [["__scopeId", "data-v-2976a89b"]]), XG1 = /* @__PURE__ */ D1({
9720
+ const WI = /* @__PURE__ */ Z1(UI, [["__scopeId", "data-v-2976a89b"]]), GG1 = /* @__PURE__ */ D1({
9744
9721
  __name: "App",
9745
9722
  setup(e) {
9746
9723
  return (t, a) => (q(), J(j1, null, [
@@ -34887,10 +34864,10 @@ var Ye1 = Z0(/(^[0-9]*$)|(^-[0-9]+$)/), Ge1 = {
34887
34864
  }
34888
34865
  };
34889
34866
  Z0(/^[-]?\d*(\.\d+)?$/);
34890
- const p8 = I2("validations"), qm = I6.withMessage(() => p8("requiredRuleError"), qe1), KG1 = I6.withMessage(
34867
+ const p8 = I2("validations"), qm = I6.withMessage(() => p8("requiredRuleError"), qe1), XG1 = I6.withMessage(
34891
34868
  () => p8("requiredRuleError"),
34892
34869
  I6.withParams({}, (e) => typeof e != "number" ? !1 : e > 0)
34893
- ), jm = (e) => Ib("minLength", e), Ym = (e) => Ib("maxLength", e), ZG1 = I6.withMessage(() => p8("integerRuleError"), Ge1), QG1 = (e) => Ac("greaterEqual", e), JG1 = (e) => Ac("greaterThan", e), eX1 = (e) => Ac("lessEqual", e), tX1 = (e) => Ac("lessThan", e);
34870
+ ), jm = (e) => Ib("minLength", e), Ym = (e) => Ib("maxLength", e), KG1 = I6.withMessage(() => p8("integerRuleError"), Ge1), ZG1 = (e) => Ac("greaterEqual", e), QG1 = (e) => Ac("greaterThan", e), JG1 = (e) => Ac("lessEqual", e), eX1 = (e) => Ac("lessThan", e);
34894
34871
  function Ib(e, t) {
34895
34872
  const a = {
34896
34873
  minLength: Ue1,
@@ -78034,7 +78011,7 @@ function d7(e, t) {
78034
78011
  function ua(e, t) {
78035
78012
  return e ? Array.isArray(t) ? t.map((a) => new e(a)) : new e(t) : t;
78036
78013
  }
78037
- function aX1(e, t, a) {
78014
+ function tX1(e, t, a) {
78038
78015
  return {
78039
78016
  getOne(r, n, i, c) {
78040
78017
  const s = d7(r, n), o = e[r].getOne, l = ua(o.params, i);
@@ -78111,7 +78088,7 @@ class Ya {
78111
78088
  pl(t, a, r);
78112
78089
  }
78113
78090
  }
78114
- class rX1 extends Ya {
78091
+ class aX1 extends Ya {
78115
78092
  constructor(a) {
78116
78093
  super(a);
78117
78094
  b1(this, "urls", []);
@@ -78141,7 +78118,7 @@ class Ii extends nu {
78141
78118
  Ii.CopyFields(this, a);
78142
78119
  }
78143
78120
  }
78144
- class nX1 extends Ya {
78121
+ class rX1 extends Ya {
78145
78122
  constructor(a) {
78146
78123
  super(a);
78147
78124
  b1(this, "user", new Ii());
@@ -78158,7 +78135,7 @@ class u3 {
78158
78135
  pl(t, a, r);
78159
78136
  }
78160
78137
  }
78161
- class iX1 extends u3 {
78138
+ class nX1 extends u3 {
78162
78139
  constructor(a) {
78163
78140
  super(a);
78164
78141
  b1(this, "page");
@@ -78167,54 +78144,54 @@ class iX1 extends u3 {
78167
78144
  u3.CopyFields(this, a);
78168
78145
  }
78169
78146
  }
78170
- class cX1 extends u3 {
78147
+ class iX1 extends u3 {
78171
78148
  constructor(a) {
78172
78149
  super(a);
78173
78150
  b1(this, "fileTypes");
78174
78151
  u3.CopyFields(this, a);
78175
78152
  }
78176
78153
  }
78177
- class sX1 extends u3 {
78154
+ class cX1 extends u3 {
78178
78155
  constructor(a) {
78179
78156
  super(a);
78180
78157
  b1(this, "fileName");
78181
78158
  u3.CopyFields(this, a);
78182
78159
  }
78183
78160
  }
78184
- class oX1 extends u3 {
78161
+ class sX1 extends u3 {
78185
78162
  constructor(a) {
78186
78163
  super(a);
78187
78164
  b1(this, "fileNames");
78188
78165
  u3.CopyFields(this, a);
78189
78166
  }
78190
78167
  }
78191
- class lX1 extends u3 {
78168
+ class oX1 extends u3 {
78192
78169
  constructor(a) {
78193
78170
  super(a);
78194
78171
  b1(this, "file");
78195
78172
  u3.CopyFields(this, a);
78196
78173
  }
78197
78174
  }
78198
- class fX1 extends u3 {
78175
+ class lX1 extends u3 {
78199
78176
  constructor(a) {
78200
78177
  super(a);
78201
78178
  b1(this, "file");
78202
78179
  u3.CopyFields(this, a);
78203
78180
  }
78204
78181
  }
78205
- class uX1 extends u3 {
78182
+ class fX1 extends u3 {
78206
78183
  constructor(t) {
78207
78184
  super(t), u3.CopyFields(this, t);
78208
78185
  }
78209
78186
  }
78210
- class hX1 extends u3 {
78187
+ class uX1 extends u3 {
78211
78188
  constructor(a) {
78212
78189
  super(a);
78213
78190
  b1(this, "index", 0);
78214
78191
  u3.CopyFields(this, a);
78215
78192
  }
78216
78193
  }
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}`, "");
78194
+ const hX1 = window.location.origin, dX1 = window.location.protocol, un = window.location.host, vv = un.includes("localhost") ? un.split(".").slice(-1)[0] : un.split(".").slice(-2).join("."), mX1 = un === vv ? void 0 : un.replace(`.${vv}`, "");
78218
78195
  function SG1(e, t, a) {
78219
78196
  return a || { top: 0 };
78220
78197
  }
@@ -78244,11 +78221,11 @@ async function DG1() {
78244
78221
  return;
78245
78222
  }
78246
78223
  }
78247
- function mX1(e) {
78224
+ function pX1(e) {
78248
78225
  const t = aE({ history: rE(), routes: e, scrollBehavior: SG1 });
78249
78226
  return t.beforeEach(TG1), t.afterEach(EG1), t;
78250
78227
  }
78251
- function pX1(e, t, a) {
78228
+ function vX1(e, t, a) {
78252
78229
  const r = nE();
78253
78230
  r.use(KI({ storage: localStorage })), e.use(r), e.use(t.router), e.use(Sy), e.use(Q$, {
78254
78231
  themes: { tooltip: { triggers: ["hover", "focus", "touch"], hideTriggers: (i) => [...i] } }
@@ -78257,32 +78234,31 @@ function pX1(e, t, a) {
78257
78234
  Object.entries(n).forEach(([i, c]) => e.component(i, c));
78258
78235
  }
78259
78236
  export {
78260
- XG1 as App,
78261
- nX1 as AuthUser,
78237
+ GG1 as App,
78238
+ rX1 as AuthUser,
78262
78239
  nu as BaseModel,
78263
78240
  u3 as BaseParams,
78264
78241
  Ya as BaseResponse,
78265
- sX1 as ConfirmUploadedFileParams,
78266
- oX1 as ConfirmUploadedFilesParams,
78267
- WG1 as Env,
78268
- qG1 as FileStorage,
78269
- cX1 as GenerateUploadUrlsParams,
78270
- rX1 as GenerateUploadUrlsResponse,
78271
- iX1 as GetManyBaseParams,
78272
- uX1 as RemoveFileParams,
78273
- hX1 as RemoveFilesParams,
78274
- lX1 as UploadFileParams,
78275
- fX1 as UploadFilesParams,
78242
+ cX1 as ConfirmUploadedFileParams,
78243
+ sX1 as ConfirmUploadedFilesParams,
78244
+ WG1 as FileStorage,
78245
+ iX1 as GenerateUploadUrlsParams,
78246
+ aX1 as GenerateUploadUrlsResponse,
78247
+ nX1 as GetManyBaseParams,
78248
+ fX1 as RemoveFileParams,
78249
+ uX1 as RemoveFilesParams,
78250
+ oX1 as UploadFileParams,
78251
+ lX1 as UploadFilesParams,
78276
78252
  Ii as User,
78277
78253
  ct as addNotification,
78278
78254
  IG1 as animateElement,
78279
78255
  TR as clearNotifications,
78280
78256
  wv as colorSelectorColors,
78281
78257
  pl as copyModelFields,
78282
- aX1 as createApiConnections,
78258
+ tX1 as createApiConnections,
78283
78259
  LE as createI18n,
78284
- mX1 as createRouter,
78285
- pX1 as default,
78260
+ pX1 as createRouter,
78261
+ vX1 as default,
78286
78262
  Nq as displayAlert,
78287
78263
  vv as domain,
78288
78264
  sE as getAccessToken,
@@ -78301,33 +78277,36 @@ export {
78301
78277
  vl as getRoutesByNavigationSection,
78302
78278
  Gg as getRoutesToDisplay,
78303
78279
  VE as getTimeStr,
78304
- QG1 as greaterEqualRule,
78305
- JG1 as greaterThanRule,
78306
- KG1 as idRequiredRule,
78280
+ ZG1 as greaterEqualRule,
78281
+ QG1 as greaterThanRule,
78282
+ un as host,
78283
+ XG1 as idRequiredRule,
78307
78284
  AR as initAppOptions,
78308
- ZG1 as integerRule,
78309
- YG1 as isAValidId,
78285
+ KG1 as integerRule,
78286
+ jG1 as isAValidId,
78310
78287
  $i as isColorTemplateVariable,
78311
- GG1 as isMobileDevice,
78312
- eX1 as lessEqualRule,
78313
- tX1 as lessThanRule,
78288
+ YG1 as isMobileDevice,
78289
+ JG1 as lessEqualRule,
78290
+ eX1 as lessThanRule,
78314
78291
  oE as login,
78315
78292
  BG1 as logout,
78316
78293
  Ym as maxLengthRule,
78317
78294
  jm as minLengthRule,
78295
+ hX1 as origin,
78318
78296
  _v as pangeaOptionsColors,
78297
+ dX1 as protocol,
78319
78298
  LD as removeHtmlTags,
78320
78299
  Zg as removeNotification,
78321
78300
  qm as requiredRule,
78322
78301
  fE as rgba,
78323
- jG1 as sanitizeHtml,
78302
+ qG1 as sanitizeHtml,
78324
78303
  kR as scrollToTop,
78325
78304
  j5 as setBodyOverflow,
78326
78305
  Kg as setColorProperties,
78327
78306
  lu as setColorRootProperties,
78328
78307
  SR as setLayoutProperties,
78329
78308
  m7 as setRootProperty,
78330
- dX1 as subdomain,
78309
+ mX1 as subdomain,
78331
78310
  pt as useAppOptionsStore,
78332
78311
  _71 as useElementPosition,
78333
78312
  Ct as useRouteStore,
@@ -2,7 +2,6 @@ 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';
6
5
  export * from './file-storage.helpers';
7
6
  export * from './html-sanitize.helpers';
8
7
  export * from './number.helpers';
@@ -1,2 +1,5 @@
1
+ export declare const origin: string;
2
+ export declare const protocol: string;
3
+ export declare const host: string;
1
4
  export declare const domain: string;
2
5
  export declare const subdomain: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "4.0.111",
4
+ "version": "4.0.112",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",
@@ -1,7 +0,0 @@
1
- export declare abstract class Env {
2
- private static __GetEnv;
3
- static GetStr(key: string): string;
4
- static GetInt(key: string): number;
5
- static GetFloat(key: string): number;
6
- static GetBool(key: string): boolean;
7
- }