pangea-lib 1.10.7 → 1.10.8
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.cjs.js +2 -2
- package/dist/main.es.js +40 -6
- package/dist/types/main.d.ts +3 -0
- package/package.json +1 -11
- package/dist/helpers/animation.cjs.js +0 -1
- package/dist/helpers/animation.es.js +0 -15
- package/dist/helpers/url.cjs.js +0 -1
- package/dist/helpers/url.es.js +0 -15
- package/dist/types/animationHelpers.d.ts +0 -1
- package/dist/types/urlHelpers.d.ts +0 -1
package/dist/main.es.js
CHANGED
|
@@ -14055,7 +14055,39 @@ const bI = (c, a) => {
|
|
|
14055
14055
|
PgaIcon: hI,
|
|
14056
14056
|
PgaSelect: NI
|
|
14057
14057
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14058
|
-
function kI(c) {
|
|
14058
|
+
function kI(c, a, e = "animate__") {
|
|
14059
|
+
return new Promise((r) => {
|
|
14060
|
+
const i = `${e}${a}`, f = document.querySelector(c);
|
|
14061
|
+
if (f) {
|
|
14062
|
+
f.classList.add(`${e}animated`, i);
|
|
14063
|
+
const s = (l) => {
|
|
14064
|
+
l.stopPropagation(), f == null || f.classList.remove(`${e}animated`, i), r("Animation ended");
|
|
14065
|
+
};
|
|
14066
|
+
f.addEventListener("animationend", s, { once: !0 });
|
|
14067
|
+
}
|
|
14068
|
+
});
|
|
14069
|
+
}
|
|
14070
|
+
const FI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14071
|
+
__proto__: null,
|
|
14072
|
+
animateCSS: kI
|
|
14073
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14074
|
+
function wI(c) {
|
|
14075
|
+
if (!c)
|
|
14076
|
+
return !1;
|
|
14077
|
+
let a = c;
|
|
14078
|
+
const e = ["http://", "https://"];
|
|
14079
|
+
for (const r of e)
|
|
14080
|
+
if (c.startsWith(r)) {
|
|
14081
|
+
a = c.replace(r, "");
|
|
14082
|
+
break;
|
|
14083
|
+
}
|
|
14084
|
+
return a = a.replace(/:(\d*)$/, ""), window.location.href.includes(a);
|
|
14085
|
+
}
|
|
14086
|
+
const TI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14087
|
+
__proto__: null,
|
|
14088
|
+
isCurrentUrl: wI
|
|
14089
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14090
|
+
function AI(c) {
|
|
14059
14091
|
const a = E3;
|
|
14060
14092
|
if (c) {
|
|
14061
14093
|
for (const e in E3)
|
|
@@ -14072,19 +14104,21 @@ function kI(c) {
|
|
|
14072
14104
|
}
|
|
14073
14105
|
return a;
|
|
14074
14106
|
}
|
|
14075
|
-
function
|
|
14107
|
+
function yI(c) {
|
|
14076
14108
|
const a = document.querySelector(":root");
|
|
14077
14109
|
for (const e in c) {
|
|
14078
14110
|
const r = c[e];
|
|
14079
14111
|
a.style.setProperty(`--pga${e.charAt(0).toUpperCase()}${e.slice(1)}Color`, r);
|
|
14080
14112
|
}
|
|
14081
14113
|
}
|
|
14082
|
-
const
|
|
14083
|
-
const e =
|
|
14084
|
-
|
|
14114
|
+
const BI = (c, a) => {
|
|
14115
|
+
const e = AI(a);
|
|
14116
|
+
yI(e.colors), Object.entries(SI).forEach(([r, i]) => {
|
|
14085
14117
|
c.component(r, i);
|
|
14086
14118
|
});
|
|
14087
14119
|
};
|
|
14088
14120
|
export {
|
|
14089
|
-
|
|
14121
|
+
FI as animationHelpers,
|
|
14122
|
+
BI as default,
|
|
14123
|
+
TI as urlHelpers
|
|
14090
14124
|
};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { PangeaOptions } from './types/pangea-options';
|
|
3
3
|
|
|
4
|
+
import * as animationHelpers from './helpers/animation';
|
|
5
|
+
import * as urlHelpers from './helpers/url';
|
|
4
6
|
declare const _default: (app: App, userOptions?: PangeaOptions) => void;
|
|
5
7
|
export default _default;
|
|
8
|
+
export { animationHelpers, urlHelpers };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pangea-lib",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -15,16 +15,6 @@
|
|
|
15
15
|
"import": "./dist/main.es.js",
|
|
16
16
|
"types": "./dist/types/main.d.ts"
|
|
17
17
|
},
|
|
18
|
-
"./animation-helpers": {
|
|
19
|
-
"require": "./dist/helpers/animation.cjs.js",
|
|
20
|
-
"import": "./dist/helpers/animation.es.js",
|
|
21
|
-
"types": "./dist/types/animation.d.ts"
|
|
22
|
-
},
|
|
23
|
-
"./url-helpers": {
|
|
24
|
-
"require": "./dist/helpers/url.cjs.js",
|
|
25
|
-
"import": "./dist/helpers/url.es.js",
|
|
26
|
-
"types": "./dist/types/url.d.ts"
|
|
27
|
-
},
|
|
28
18
|
"./style.css": "./dist/style.css",
|
|
29
19
|
"./package.json": "./package.json"
|
|
30
20
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(a,i,t="animate__"){return new Promise(o=>{const e=`${t}${i}`,n=document.querySelector(a);if(n){n.classList.add(`${t}animated`,e);const m=s=>{s.stopPropagation(),n==null||n.classList.remove(`${t}animated`,e),o("Animation ended")};n.addEventListener("animationend",m,{once:!0})}})}exports.animateCSS=d;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function d(e, i, t = "animate__") {
|
|
2
|
-
return new Promise((o) => {
|
|
3
|
-
const a = `${t}${i}`, n = document.querySelector(e);
|
|
4
|
-
if (n) {
|
|
5
|
-
n.classList.add(`${t}animated`, a);
|
|
6
|
-
const m = (s) => {
|
|
7
|
-
s.stopPropagation(), n == null || n.classList.remove(`${t}animated`, a), o("Animation ended");
|
|
8
|
-
};
|
|
9
|
-
n.addEventListener("animationend", m, { once: !0 });
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
d as animateCSS
|
|
15
|
-
};
|
package/dist/helpers/url.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t){if(!t)return!1;let e=t;const o=["http://","https://"];for(const r of o)if(t.startsWith(r)){e=t.replace(r,"");break}return e=e.replace(/:(\d*)$/,""),window.location.href.includes(e)}exports.isCurrentUrl=n;
|
package/dist/helpers/url.es.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function n(t) {
|
|
2
|
-
if (!t)
|
|
3
|
-
return !1;
|
|
4
|
-
let o = t;
|
|
5
|
-
const e = ["http://", "https://"];
|
|
6
|
-
for (const r of e)
|
|
7
|
-
if (t.startsWith(r)) {
|
|
8
|
-
o = t.replace(r, "");
|
|
9
|
-
break;
|
|
10
|
-
}
|
|
11
|
-
return o = o.replace(/:(\d*)$/, ""), window.location.href.includes(o);
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
n as isCurrentUrl
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './helpers/animation'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './helpers/url'
|