@grapadigital/shared-app-modules 0.0.154 → 0.0.155
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/chuncks/{format.util.BcKRgBQI.js → format.util.BPVDuHoX.js} +33 -19
- package/dist/chuncks/{youtube-icon.component.SEaPAD3Z.js → youtube-icon.component.BQUJXvPb.js} +217 -210
- package/dist/components.js +7 -7
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +90 -0
- package/dist/utils.js +31 -15
- package/package.json +9 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { i as n } from "./youtube-icon.component.BQUJXvPb.js";
|
|
2
|
+
function a(e) {
|
|
3
3
|
const r = e.replace(/[^0-9]/g, "");
|
|
4
4
|
return Number(r) / 100;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function c(e) {
|
|
7
7
|
return e.toLocaleString("pt-BR", {
|
|
8
8
|
style: "currency",
|
|
9
9
|
currency: "BRL"
|
|
@@ -12,53 +12,67 @@ function u(e) {
|
|
|
12
12
|
const o = (e) => {
|
|
13
13
|
const r = n(e) ? e : Number(e);
|
|
14
14
|
return `${parseInt(String(r * 100))}%`;
|
|
15
|
-
},
|
|
15
|
+
}, u = (e) => {
|
|
16
16
|
const r = +String(e).replace("%", "");
|
|
17
17
|
if (!n(r)) return !1;
|
|
18
18
|
const t = r / 100;
|
|
19
19
|
return +String(t).split(".")[0] >= 1 ? 1 : t;
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function m(e) {
|
|
22
22
|
return e.replace(/\D/g, "").replace(/^(\d{3})(\d{3})(\d{3})(\d{2})$/, "$1.$2.$3-$4");
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function i(e) {
|
|
25
25
|
return e.replace(/\D/g, "").replace(/^(\d{2})(\d{3})(\d{3})(\d{1})$/, "$1.$2.$3-$4");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function s(e) {
|
|
28
28
|
return e.replace(/\D/g, "").replace(
|
|
29
29
|
/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})$/,
|
|
30
30
|
"$1.$2.$3/$4-$5"
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function l(e) {
|
|
34
34
|
return e.replace(/\D/g, "").replace(/^(\d{5})(\d{3})$/, "$1-$2");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function p(e) {
|
|
37
37
|
return e.replace(/\D/g, "");
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const d = (e) => new Intl.NumberFormat("pt-BR", {
|
|
40
40
|
style: "decimal",
|
|
41
41
|
notation: "compact",
|
|
42
42
|
compactDisplay: "short",
|
|
43
43
|
minimumFractionDigits: 0,
|
|
44
44
|
maximumFractionDigits: 3
|
|
45
|
-
}).format(e),
|
|
45
|
+
}).format(e), f = (e) => new Intl.NumberFormat("pt-BR", {
|
|
46
46
|
style: "percent",
|
|
47
47
|
notation: "compact",
|
|
48
48
|
compactDisplay: "short",
|
|
49
49
|
minimumFractionDigits: 0,
|
|
50
50
|
maximumFractionDigits: 2
|
|
51
|
-
}).format(e)
|
|
51
|
+
}).format(e), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
52
|
+
__proto__: null,
|
|
53
|
+
formatCompactNumber: d,
|
|
54
|
+
formatCompactPercent: f,
|
|
55
|
+
formatCurrency: c,
|
|
56
|
+
formatPercentage: o,
|
|
57
|
+
maskCNPJ: s,
|
|
58
|
+
maskCPF: m,
|
|
59
|
+
maskRG: i,
|
|
60
|
+
maskZipCode: l,
|
|
61
|
+
preFormatCurrency: a,
|
|
62
|
+
preFormatPercentage: u,
|
|
63
|
+
unmask: p
|
|
64
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
52
65
|
export {
|
|
53
|
-
|
|
66
|
+
D as U,
|
|
67
|
+
o as a,
|
|
54
68
|
u as b,
|
|
55
|
-
|
|
69
|
+
i as c,
|
|
56
70
|
s as d,
|
|
57
71
|
l as e,
|
|
58
|
-
|
|
72
|
+
c as f,
|
|
59
73
|
d as g,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
f as h,
|
|
75
|
+
m,
|
|
76
|
+
a as p,
|
|
77
|
+
p as u
|
|
64
78
|
};
|