@sysvale/citizen-components 1.6.0 → 1.7.0
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.
|
@@ -3708,10 +3708,10 @@ class ma {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
async indexMock(a) {
|
|
3710
3710
|
let r = Ra(150);
|
|
3711
|
-
a.
|
|
3711
|
+
a.search_string && (r = this.citizensFilter(r, a.search_string));
|
|
3712
3712
|
let n = r.slice(
|
|
3713
|
-
(a.page - 1) * (a.
|
|
3714
|
-
a.page * (a.
|
|
3713
|
+
(a.page - 1) * (a.per_page ?? 1),
|
|
3714
|
+
a.page * (a.per_page ?? 1)
|
|
3715
3715
|
);
|
|
3716
3716
|
return a.fields && a.fields.length && (n = n.map((t) => Object.fromEntries(
|
|
3717
3717
|
Object.entries(t).filter(
|
|
@@ -3724,9 +3724,9 @@ class ma {
|
|
|
3724
3724
|
data: n,
|
|
3725
3725
|
meta: {
|
|
3726
3726
|
current_page: a.page,
|
|
3727
|
-
per_page: a.
|
|
3727
|
+
per_page: a.per_page ?? 1,
|
|
3728
3728
|
total: r.length,
|
|
3729
|
-
last_page: Math.ceil(r.length / (a.
|
|
3729
|
+
last_page: Math.ceil(r.length / (a.per_page ?? 1))
|
|
3730
3730
|
}
|
|
3731
3731
|
};
|
|
3732
3732
|
}
|
|
@@ -3891,9 +3891,9 @@ const oc = {
|
|
|
3891
3891
|
const a = $a("useToast"), r = Je(e, "modelValue"), n = e, i = new ma(), t = N([]), o = N(!1), u = N(!1), s = N(""), l = N(""), h = Zr("selectContainer"), m = Z(() => n.disabled || o.value || s.value.length < 2), g = Z(
|
|
3892
3892
|
() => u.value && l.value !== s.value && t.value.length ? "Buscar*" : "Buscar"
|
|
3893
3893
|
), f = Z(() => o.value ? "Carregando..." : s.value.length < 2 ? "Digite 2 ou mais caracteres." : ""), d = Z(() => ({
|
|
3894
|
-
|
|
3894
|
+
search_string: s.value,
|
|
3895
3895
|
page: 1,
|
|
3896
|
-
|
|
3896
|
+
per_page: 1e3
|
|
3897
3897
|
}));
|
|
3898
3898
|
me(r, () => {
|
|
3899
3899
|
if (!r.value)
|
|
@@ -3986,14 +3986,14 @@ const oc = {
|
|
|
3986
3986
|
T(B, { as: "body-2" }, {
|
|
3987
3987
|
default: w(() => [
|
|
3988
3988
|
b[3] || (b[3] = ne("br", null, null, -1)),
|
|
3989
|
-
H(" CPF: " + x(G(Za)(v.cpf)), 1)
|
|
3989
|
+
H(" CPF: " + x(v.cpf ? G(Za)(v.cpf) : "--"), 1)
|
|
3990
3990
|
]),
|
|
3991
3991
|
_: 2
|
|
3992
3992
|
}, 1024),
|
|
3993
3993
|
T(B, { as: "body-2" }, {
|
|
3994
3994
|
default: w(() => [
|
|
3995
3995
|
b[4] || (b[4] = ne("br", null, null, -1)),
|
|
3996
|
-
H(" CNS: " + x(G(Xa)(v.cns)), 1)
|
|
3996
|
+
H(" CNS: " + x(v.cns ? G(Xa)(v.cns) : "--"), 1)
|
|
3997
3997
|
]),
|
|
3998
3998
|
_: 2
|
|
3999
3999
|
}, 1024),
|