pangea-lib 1.19.17 → 1.19.19
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 +14 -14
- package/dist/main.es.js +28 -14
- package/dist/styles/variables/colors.styl +3 -1
- package/dist/types/default-pangea-options.d.ts +3 -3
- package/dist/types/helpers/css.d.ts +2 -2
- package/dist/types/i18n/create-i18n.d.ts +3 -10
- package/dist/types/i18n/i18n.d.ts +1 -10
- package/dist/types/i18n/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -3204,22 +3204,25 @@ function qM(e, c) {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
function WM(e, c, a) {
|
|
3206
3206
|
const t = qM(e, c);
|
|
3207
|
-
function n(
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3207
|
+
function n(r) {
|
|
3208
|
+
t().setLanguage(r);
|
|
3209
|
+
}
|
|
3210
|
+
function i(r) {
|
|
3211
|
+
return (s, l = {}) => {
|
|
3212
|
+
const o = t().currentLanguage, f = a == null ? void 0 : a[r], u = f == null ? void 0 : f[o], h = (u == null ? void 0 : u[s]) || "", m = l.count ? l.count : 0, v = h.split("|").map((z) => z.trim());
|
|
3213
|
+
let d = v[0];
|
|
3214
|
+
v.length === 2 ? d = m === 1 ? v[0] : v[1] : v.length === 3 && (d = m === 0 ? v[0] : m === 1 ? v[1] : v[2]), d = d.replace(new RegExp("{count}", "g"), m.toString());
|
|
3215
|
+
for (const z in l)
|
|
3216
|
+
z !== "count" && l[z] && (d = d.replace(new RegExp(`{${z}}`, "g"), l[z].toString()));
|
|
3217
|
+
return d;
|
|
3215
3218
|
};
|
|
3216
3219
|
}
|
|
3217
3220
|
return {
|
|
3218
|
-
|
|
3219
|
-
useI18n:
|
|
3221
|
+
setLanguage: n,
|
|
3222
|
+
useI18n: i
|
|
3220
3223
|
};
|
|
3221
3224
|
}
|
|
3222
|
-
const {
|
|
3225
|
+
const { setLanguage: As1, useI18n: vn } = WM("pga-i18n", "es", YM), UM = { class: "modal--header" }, GM = ["textContent"], jM = { class: "modal--body" }, ZM = {
|
|
3223
3226
|
key: 0,
|
|
3224
3227
|
class: "modal--footer"
|
|
3225
3228
|
}, XM = ["textContent"], KM = ["textContent"], QM = /* @__PURE__ */ D1({
|
|
@@ -29386,8 +29389,18 @@ function Ts1(e, c, a = "animate__") {
|
|
|
29386
29389
|
});
|
|
29387
29390
|
}
|
|
29388
29391
|
function Fs1(e, c) {
|
|
29389
|
-
|
|
29390
|
-
|
|
29392
|
+
let a = 0, t = 0, n = 0, i = 0;
|
|
29393
|
+
if (e.startsWith("rgb") || e.startsWith("rgba")) {
|
|
29394
|
+
const r = e.replace(/rgba?\((.*?)\)/, "$1").replace(/\s/g, ""), [, s, l, o, f = "1"] = r.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);
|
|
29395
|
+
a = parseInt(s), t = parseInt(l), n = parseInt(o), i = parseFloat(f);
|
|
29396
|
+
}
|
|
29397
|
+
if (e.startsWith("#")) {
|
|
29398
|
+
let r = e;
|
|
29399
|
+
r.length === 4 && (r = "#" + r[1] + r[1] + r[2] + r[2] + r[3] + r[3]);
|
|
29400
|
+
let [, s, l, o, f] = r.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((u, h) => h === 4 ? parseInt(u, 16) / 255 : parseInt(u, 16));
|
|
29401
|
+
f = f ? parseFloat(f.toFixed(3)) : 1, a = s, t = l, n = o, i = f;
|
|
29402
|
+
}
|
|
29403
|
+
return `rgba(${a}, ${t}, ${n}, ${i * c})`;
|
|
29391
29404
|
}
|
|
29392
29405
|
function Os1(e, c) {
|
|
29393
29406
|
const t = {
|
|
@@ -32059,5 +32072,6 @@ export {
|
|
|
32059
32072
|
Os1 as getDatetimeInString,
|
|
32060
32073
|
xt1 as getNumberInString,
|
|
32061
32074
|
Bs1 as isCurrentUrl,
|
|
32062
|
-
Fs1 as rgba
|
|
32075
|
+
Fs1 as rgba,
|
|
32076
|
+
As1 as setLanguage
|
|
32063
32077
|
};
|
|
@@ -15,6 +15,7 @@ $tertiaryDarkBackgroundColor = #5e5e5e
|
|
|
15
15
|
// unique
|
|
16
16
|
$firstColor = #218c5a
|
|
17
17
|
$secondColor = #218c5a
|
|
18
|
+
|
|
18
19
|
$successColor = #95CD41
|
|
19
20
|
$warningColor = #FFBD35
|
|
20
21
|
$dangerColor = #FF5959
|
|
@@ -24,6 +25,7 @@ $redColor = #DE4795
|
|
|
24
25
|
$purpleColor = #7746DB
|
|
25
26
|
$skyColor = #1AB8C3
|
|
26
27
|
$beigeColor = #FDF5E6
|
|
27
|
-
|
|
28
|
+
|
|
28
29
|
$infoColor = #54B4D3
|
|
30
|
+
$linkColor = #0064FF
|
|
29
31
|
$errorColor = rgba(225, 21, 21, 0.912)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color, ColorAlpha } from '../types';
|
|
2
2
|
|
|
3
3
|
export declare function animation(element: string, animation: string, prefix?: string): Promise<unknown>;
|
|
4
|
-
export declare function rgba(
|
|
4
|
+
export declare function rgba(color: Color, colorAlpha: ColorAlpha): string;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
+
import { UnwrapRef } from 'vue';
|
|
2
|
+
|
|
1
3
|
export type Props = {
|
|
2
4
|
[prop: string]: string | number;
|
|
3
5
|
count?: number;
|
|
4
6
|
};
|
|
5
7
|
export declare function createI18n<L extends string, M extends Record<string, Record<L, Record<string, string>>>>(storeId: string, defaultLanguage: L, messages: M): {
|
|
6
|
-
|
|
7
|
-
currentLanguage: import('vue').Ref<import('vue').UnwrapRef<L>>;
|
|
8
|
-
setLanguage: (language: import('vue').UnwrapRef<L>) => void;
|
|
9
|
-
}, "currentLanguage">>, Pick<{
|
|
10
|
-
currentLanguage: import('vue').Ref<import('vue').UnwrapRef<L>>;
|
|
11
|
-
setLanguage: (language: import('vue').UnwrapRef<L>) => void;
|
|
12
|
-
}, never>, Pick<{
|
|
13
|
-
currentLanguage: import('vue').Ref<import('vue').UnwrapRef<L>>;
|
|
14
|
-
setLanguage: (language: import('vue').UnwrapRef<L>) => void;
|
|
15
|
-
}, "setLanguage">>;
|
|
8
|
+
setLanguage: (language: UnwrapRef<L>) => void;
|
|
16
9
|
useI18n: <FN extends keyof M>(fileName: FN) => <MK extends keyof M[FN][L]>(messageKey: MK, props?: Props) => string;
|
|
17
10
|
};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
currentLanguage: import('vue').Ref<"es">;
|
|
3
|
-
setLanguage: (language: "es") => void;
|
|
4
|
-
}, "currentLanguage">>, Pick<{
|
|
5
|
-
currentLanguage: import('vue').Ref<"es">;
|
|
6
|
-
setLanguage: (language: "es") => void;
|
|
7
|
-
}, never>, Pick<{
|
|
8
|
-
currentLanguage: import('vue').Ref<"es">;
|
|
9
|
-
setLanguage: (language: "es") => void;
|
|
10
|
-
}, "setLanguage">>, useI18n: <FN extends "PgaDatePicker" | "PgaModal">(fileName: FN) => <MK extends keyof {
|
|
1
|
+
export declare const setLanguage: (language: "es") => void, useI18n: <FN extends "PgaDatePicker" | "PgaModal">(fileName: FN) => <MK extends keyof {
|
|
11
2
|
PgaDatePicker: {
|
|
12
3
|
es: {
|
|
13
4
|
cancelBtn: string;
|