pangea-lib 2.11.626 → 2.11.628

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
@@ -1083,7 +1083,7 @@ function Bd(e, a, t) {
1083
1083
  n = !0;
1084
1084
  }, 0), e[D7] = (i) => {
1085
1085
  if ((!e || !e.contains(i.target)) && r && n && typeof r == "function")
1086
- return r.call(c, i);
1086
+ return i.stopPropagation(), r.call(c, i);
1087
1087
  }, document.addEventListener(Rd(), e[D7], !1);
1088
1088
  }
1089
1089
  function Rk(e, a, t) {
@@ -17724,11 +17724,14 @@ function KR1(e, a, t, c = !0) {
17724
17724
  let r = Xn(e, a);
17725
17725
  return c && (r = r += ` ${t}`), r;
17726
17726
  }
17727
+ function JR1() {
17728
+ return window.innerWidth <= 768;
17729
+ }
17727
17730
  function Zn(e) {
17728
17731
  const a = e ? "visible" : "hidden";
17729
17732
  document.body.style.overflow = a;
17730
17733
  }
17731
- function JR1(e, a) {
17734
+ function eB1(e, a) {
17732
17735
  let t = 0, c = 0, r = 0, n = 0;
17733
17736
  if (e.startsWith("rgb") || e.startsWith("rgba")) {
17734
17737
  const i = e.replace(/rgba?\((.*?)\)/, "$1").replace(/\s/g, ""), [, s, o, l, f = "1"] = i.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);
@@ -17742,7 +17745,7 @@ function JR1(e, a) {
17742
17745
  }
17743
17746
  return `rgba(${t}, ${c}, ${r}, ${n * a})`;
17744
17747
  }
17745
- function eB1(e, a, t = "animate__") {
17748
+ function aB1(e, a, t = "animate__") {
17746
17749
  return new Promise((c) => {
17747
17750
  const r = `${t}${a}`, n = document.querySelector(e);
17748
17751
  if (n) {
@@ -17754,7 +17757,7 @@ function eB1(e, a, t = "animate__") {
17754
17757
  }
17755
17758
  });
17756
17759
  }
17757
- function aB1(e, a) {
17760
+ function tB1(e, a) {
17758
17761
  const c = {
17759
17762
  ...{
17760
17763
  format: "short",
@@ -20351,7 +20354,7 @@ R1.HTML5_FMT = {
20351
20354
  MONTH: "YYYY-MM"
20352
20355
  // <input type="month" />
20353
20356
  };
20354
- function tB1(e, a, t) {
20357
+ function cB1(e, a, t) {
20355
20358
  a && Object.keys(a).forEach((c) => {
20356
20359
  if (e.hasOwnProperty(c) && a[c] !== void 0) {
20357
20360
  if (a[c] === null) {
@@ -20387,7 +20390,7 @@ function tB1(e, a, t) {
20387
20390
  }
20388
20391
  });
20389
20392
  }
20390
- function cB1(e) {
20393
+ function rB1(e) {
20391
20394
  if (!e)
20392
20395
  return !1;
20393
20396
  let a = e;
@@ -63358,23 +63361,23 @@ function WR1() {
63358
63361
  }
63359
63362
  }).mount(e);
63360
63363
  }
63361
- const Me = $3("validations"), rB1 = S4.withMessage(() => Me("requiredRuleError"), N9), nB1 = (e) => S4.withMessage(() => Me("minLengthRuleError", { minLength: e }), tk1(e)), iB1 = (e) => S4.withMessage(() => Me("maxLengthRuleError", { maxLength: e }), ek1(e)), sB1 = S4.withMessage(() => Me("integerRuleError"), ik1), oB1 = (e) => S4.withMessage(
63364
+ const Me = $3("validations"), nB1 = S4.withMessage(() => Me("requiredRuleError"), N9), iB1 = (e) => S4.withMessage(() => Me("minLengthRuleError", { minLength: e }), tk1(e)), sB1 = (e) => S4.withMessage(() => Me("maxLengthRuleError", { maxLength: e }), ek1(e)), oB1 = S4.withMessage(() => Me("integerRuleError"), ik1), lB1 = (e) => S4.withMessage(
63362
63365
  () => Me("lessEqualRuleError", { number: e }),
63363
63366
  S4.withParams({}, (a) => typeof a != "number" ? !0 : a <= e)
63364
- ), lB1 = (e) => S4.withMessage(
63367
+ ), fB1 = (e) => S4.withMessage(
63365
63368
  () => Me("greaterEqualRuleError", { number: e }),
63366
63369
  S4.withParams({}, (a) => typeof a != "number" ? !0 : a >= e)
63367
- ), fB1 = (e) => S4.withMessage(
63370
+ ), uB1 = (e) => S4.withMessage(
63368
63371
  () => Me("lessThanRuleError", { number: e }),
63369
63372
  S4.withParams({}, (a) => typeof a != "number" ? !0 : a < e)
63370
- ), uB1 = (e) => S4.withMessage(
63373
+ ), hB1 = (e) => S4.withMessage(
63371
63374
  () => Me("greaterThanRuleError", { number: e }),
63372
63375
  S4.withParams({}, (a) => typeof a != "number" ? !0 : a > e)
63373
63376
  );
63374
63377
  mi.add(G61);
63375
63378
  mi.add(ca1);
63376
63379
  mi.add(lo1);
63377
- function hB1(e, a) {
63380
+ function dB1(e, a) {
63378
63381
  const t = c0.mergeDeep(do1, a);
63379
63382
  K3().options = c0.removeProps(t, "colors"), po1(t.colors), e.use($d), e.use(BA, Ok), Object.entries(BR1).forEach(([c, r]) => {
63380
63383
  e.component(c, r);
@@ -63382,31 +63385,32 @@ function hB1(e, a) {
63382
63385
  }
63383
63386
  export {
63384
63387
  Vk1 as addNotification,
63385
- eB1 as animation,
63388
+ aB1 as animation,
63386
63389
  wk1 as clearNotifications,
63387
- tB1 as copyModelFields,
63390
+ cB1 as copyModelFields,
63388
63391
  Eo1 as createI18n,
63389
- hB1 as default,
63392
+ dB1 as default,
63390
63393
  ox1 as displayAlert,
63391
63394
  KR1 as getCoinAmountInString,
63392
63395
  It as getColorType,
63393
- aB1 as getDatetimeInString,
63396
+ tB1 as getDatetimeInString,
63394
63397
  We as getFinalValue,
63395
63398
  qn as getLanguage,
63396
63399
  Xn as getNumberInString,
63397
63400
  qR1 as getRandomColorSelector,
63398
63401
  tf as getTheme,
63399
- lB1 as greaterEqualRule,
63400
- uB1 as greaterThanRule,
63401
- sB1 as integerRule,
63402
- cB1 as isCurrentUrl,
63403
- oB1 as lessEqualRule,
63404
- fB1 as lessThanRule,
63405
- iB1 as maxLengthRule,
63406
- nB1 as minLengthRule,
63402
+ fB1 as greaterEqualRule,
63403
+ hB1 as greaterThanRule,
63404
+ oB1 as integerRule,
63405
+ rB1 as isCurrentUrl,
63406
+ JR1 as isSmallDevice,
63407
+ lB1 as lessEqualRule,
63408
+ uB1 as lessThanRule,
63409
+ sB1 as maxLengthRule,
63410
+ iB1 as minLengthRule,
63407
63411
  R_ as removeNotification,
63408
- rB1 as requiredRule,
63409
- JR1 as rgba,
63412
+ nB1 as requiredRule,
63413
+ eB1 as rgba,
63410
63414
  Zh1 as scrollToTop,
63411
63415
  Zn as setBodyOverflow,
63412
63416
  ZR1 as setColor,
@@ -1,5 +1,6 @@
1
1
  import { ColorAlpha, ColorRgba, Color } from '../types/color';
2
2
 
3
+ export declare function isSmallDevice(): boolean;
3
4
  export declare function setBodyOverflow(visible: boolean): void;
4
5
  export declare function rgba(color: Color, colorAlpha: ColorAlpha): ColorRgba;
5
6
  export declare function animation(element: string, animation: string, prefix?: string): Promise<unknown>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.626",
4
+ "version": "2.11.628",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",