@appmax_npm/ds-prime 1.0.0-alpha.82 → 1.0.0-alpha.84
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/{AmChip.vue_vue_type_script_setup_true_lang-BMxK8yMe.js → AmChip.vue_vue_type_script_setup_true_lang-w3BVVrh4.js} +1 -1
- package/AmFilterLevelDateSelect-BbVyzCa5.js +40 -0
- package/AmFilterLevelMultiSelectFilter-yu5Z0IJF.js +48 -0
- package/AmFilterLevelSelectFilter-fMWXxlpp.js +65 -0
- package/{AmIcon.vue_vue_type_script_setup_true_lang-BVNnd-E1.js → AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js} +1 -0
- package/{AmIconButton.vue_vue_type_script_setup_true_lang-BbPbbVqM.js → AmIconButton.vue_vue_type_script_setup_true_lang-CpZ9Rmxa.js} +1 -1
- package/{AmToaster.vue_vue_type_style_index_0_global_true_lang-X1KQQIWE.js → AmToaster.vue_vue_type_style_index_0_global_true_lang-BbAePpaG.js} +1 -1
- package/amalert/index.js +1 -1
- package/ambutton/index.js +1 -1
- package/amchip/index.js +1 -1
- package/amfilterlevel/index.d.ts +2 -0
- package/amfilterlevel/index.js +161 -136
- package/amhelper/index.js +1 -1
- package/amicon/index.js +1 -1
- package/amiconbutton/index.js +1 -1
- package/amplugins/index.js +1 -1
- package/amtoaster/index.js +1 -1
- package/apple_pay-DtsAzVjF.js +20 -0
- package/css/index.css +1 -1
- package/package.json +1 -1
- package/AmFilterLevelDateSelect-D5mO5OlD.js +0 -37
- package/AmFilterLevelMultiSelectFilter-DWMAl6Ny.js +0 -47
- package/AmFilterLevelSelectFilter-Cjp0hFKC.js +0 -57
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as c, createBlock as a, withCtx as i, createElementVNode as e, renderSlot as m, createVNode as l } from "vue";
|
|
2
2
|
import { _ as p } from "./AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
3
|
-
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang
|
|
3
|
+
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
4
4
|
const f = { class: "p-1" }, d = { name: "AmChip" }, b = /* @__PURE__ */ r({
|
|
5
5
|
...d,
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as m, mergeModels as r, useModel as n, openBlock as u, createElementBlock as i, createVNode as c, unref as f } from "vue";
|
|
2
|
+
import p from "primevue/datepicker";
|
|
3
|
+
const V = { class: "flex w-full justify-center" }, x = { name: "AmFilterLevelDateSelect" }, T = /* @__PURE__ */ m({
|
|
4
|
+
...x,
|
|
5
|
+
props: /* @__PURE__ */ r({
|
|
6
|
+
modelValue: {},
|
|
7
|
+
dataTestPrefix: { default: "am-filter-level-date-select" },
|
|
8
|
+
label: {},
|
|
9
|
+
name: {},
|
|
10
|
+
component: {},
|
|
11
|
+
formatChipLabel: {},
|
|
12
|
+
options: {}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: { default: [] },
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(e) {
|
|
19
|
+
const l = e, t = n(e, "modelValue"), o = {
|
|
20
|
+
day: {
|
|
21
|
+
class: "!w-auto !h-auto !aspect-square !max-h-[2.5rem]",
|
|
22
|
+
"data-test": `${l.dataTestPrefix}-day`
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return (d, a) => (u(), i("div", V, [
|
|
26
|
+
c(f(p), {
|
|
27
|
+
inline: "",
|
|
28
|
+
modelValue: t.value,
|
|
29
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => t.value = s),
|
|
30
|
+
pt: o,
|
|
31
|
+
class: "w-full !max-w-[37.5rem]",
|
|
32
|
+
selectionMode: "range",
|
|
33
|
+
dataTest: d.dataTestPrefix
|
|
34
|
+
}, null, 8, ["modelValue", "dataTest"])
|
|
35
|
+
]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
T as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as i, mergeModels as u, useModel as p, openBlock as a, createElementBlock as l, Fragment as f, renderList as c, createVNode as d, unref as v, withCtx as V, createTextVNode as $, toDisplayString as _ } from "vue";
|
|
2
|
+
import { _ as b } from "./AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
3
|
+
import g from "primevue/checkbox";
|
|
4
|
+
const y = { class: "space-y-2 divide-y divide-gray-200" }, h = ["data-test", "for"], k = { name: "AmFilterLevelMultiSelectFilter" }, F = /* @__PURE__ */ i({
|
|
5
|
+
...k,
|
|
6
|
+
props: /* @__PURE__ */ u({
|
|
7
|
+
modelValue: {},
|
|
8
|
+
dataTestPrefix: { default: "am-filter-level-multi-select-filter" },
|
|
9
|
+
label: {},
|
|
10
|
+
name: {},
|
|
11
|
+
component: {},
|
|
12
|
+
formatChipLabel: {},
|
|
13
|
+
options: {}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { default: () => [] },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(s) {
|
|
20
|
+
const o = p(s, "modelValue");
|
|
21
|
+
return (e, n) => (a(), l("div", y, [
|
|
22
|
+
(a(!0), l(f, null, c(e.options, (r, t) => (a(), l("label", {
|
|
23
|
+
class: "flex items-center gap-2 pt-2 cursor-pointer",
|
|
24
|
+
key: t,
|
|
25
|
+
"data-test": `${e.dataTestPrefix}-option-${t}`,
|
|
26
|
+
for: `${e.name}-${t + 1}`
|
|
27
|
+
}, [
|
|
28
|
+
d(v(g), {
|
|
29
|
+
modelValue: o.value,
|
|
30
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => o.value = m),
|
|
31
|
+
inputId: `${e.name}-${t + 1}`,
|
|
32
|
+
name: e.name,
|
|
33
|
+
value: r.value,
|
|
34
|
+
"data-test": `${e.dataTestPrefix}-input-${e.name}`
|
|
35
|
+
}, null, 8, ["modelValue", "inputId", "name", "value", "data-test"]),
|
|
36
|
+
d(b, { as: "span" }, {
|
|
37
|
+
default: V(() => [
|
|
38
|
+
$(_(r.label), 1)
|
|
39
|
+
]),
|
|
40
|
+
_: 2
|
|
41
|
+
}, 1024)
|
|
42
|
+
], 8, h))), 128))
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
F as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as p, mergeModels as f, ref as V, useModel as v, onMounted as _, openBlock as o, createElementBlock as n, Fragment as $, renderList as h, createVNode as u, unref as b, withCtx as g, createTextVNode as y, toDisplayString as M } from "vue";
|
|
2
|
+
import { _ as k } from "./AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
3
|
+
import x from "primevue/checkbox";
|
|
4
|
+
const C = { class: "space-y-2 divide-y divide-gray-200" }, P = ["data-test", "for"], T = { name: "AmFilterLevelSelectFilter" }, I = /* @__PURE__ */ p({
|
|
5
|
+
...T,
|
|
6
|
+
props: /* @__PURE__ */ f({
|
|
7
|
+
modelValue: {},
|
|
8
|
+
dataTestPrefix: { default: "am-filter-level-select-filter" },
|
|
9
|
+
label: {},
|
|
10
|
+
name: {},
|
|
11
|
+
component: {},
|
|
12
|
+
formatChipLabel: {},
|
|
13
|
+
options: {}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {
|
|
16
|
+
default: () => null
|
|
17
|
+
},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(i) {
|
|
22
|
+
const s = (e) => {
|
|
23
|
+
const [t] = l.value;
|
|
24
|
+
return t !== e && (l.value = t === null ? [] : [e]), e;
|
|
25
|
+
}, l = V([]), d = v(i, "modelValue", {
|
|
26
|
+
set: s
|
|
27
|
+
}), m = (e) => {
|
|
28
|
+
const t = e[e.length - 1];
|
|
29
|
+
d.value = t === void 0 ? null : t, l.value = t === void 0 ? [] : [t];
|
|
30
|
+
};
|
|
31
|
+
_(() => s(d.value));
|
|
32
|
+
const c = {
|
|
33
|
+
box: {
|
|
34
|
+
class: "!rounded-full"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (e, t) => (o(), n("div", C, [
|
|
38
|
+
(o(!0), n($, null, h(e.options, (r, a) => (o(), n("label", {
|
|
39
|
+
class: "flex items-center gap-2 pt-2 cursor-pointer",
|
|
40
|
+
key: a,
|
|
41
|
+
"data-test": `${e.dataTestPrefix}-option-${a}`,
|
|
42
|
+
for: `${e.name}-${a + 1}`
|
|
43
|
+
}, [
|
|
44
|
+
u(b(x), {
|
|
45
|
+
modelValue: l.value,
|
|
46
|
+
"onUpdate:modelValue": m,
|
|
47
|
+
pt: c,
|
|
48
|
+
inputId: `${e.name}-${a + 1}`,
|
|
49
|
+
name: e.name,
|
|
50
|
+
value: r.value,
|
|
51
|
+
"data-test": `${e.dataTestPrefix}-input-${e.name}`
|
|
52
|
+
}, null, 8, ["modelValue", "inputId", "name", "value", "data-test"]),
|
|
53
|
+
u(k, { as: "span" }, {
|
|
54
|
+
default: g(() => [
|
|
55
|
+
y(M(r.label), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1024)
|
|
59
|
+
], 8, P))), 128))
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
I as default
|
|
65
|
+
};
|
|
@@ -14,6 +14,7 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
|
|
|
14
14
|
}
|
|
15
15
|
}), f = (r, o) => I(E(r), o), m = {
|
|
16
16
|
affiliate: () => import("./affiliate-Bgt9fadK.js"),
|
|
17
|
+
apple_pay: () => import("./apple_pay-DtsAzVjF.js"),
|
|
17
18
|
archive: () => import("./archive-CFoPOir7.js"),
|
|
18
19
|
boleto: () => import("./boleto-BQZRi0Q5.js"),
|
|
19
20
|
box: () => import("./box-DNrK38w2.js"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as t, createBlock as n, withCtx as r, createVNode as c } from "vue";
|
|
2
2
|
import s from "./ambutton/index.js";
|
|
3
|
-
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang
|
|
3
|
+
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
4
4
|
const a = { name: "AmIconButton" }, f = /* @__PURE__ */ e({
|
|
5
5
|
...a,
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as i, openBlock as n, createElementBlock as v, createBlock as c, normalizeClass as l, createCommentVNode as m, createElementVNode as g, withCtx as s, createTextVNode as u, toDisplayString as p, createVNode as y, unref as x } from "vue";
|
|
2
2
|
import w from "primevue/toast";
|
|
3
|
-
import { _ as C } from "./AmIcon.vue_vue_type_script_setup_true_lang
|
|
3
|
+
import { _ as C } from "./AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
4
4
|
import { _ } from "./AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
5
5
|
const f = {
|
|
6
6
|
info: {
|
package/amalert/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as w, computed as _, openBlock as o, createElementBlock
|
|
|
2
2
|
import { cva as z } from "class-variance-authority";
|
|
3
3
|
import { twMerge as C } from "tailwind-merge";
|
|
4
4
|
import { _ as f } from "../AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
5
|
-
import { _ as u } from "../AmIcon.vue_vue_type_script_setup_true_lang
|
|
5
|
+
import { _ as u } from "../AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
6
6
|
const V = z("w-fit bg-green-100 shadow-sm rounded-md p-3 flex flex-row gap-2", {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
package/ambutton/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, computed as t, openBlock as o, createBlock as a, unref as f, mergeProps as p, withCtx as c, createCommentVNode as m, renderSlot as b } from "vue";
|
|
2
2
|
import _ from "primevue/button";
|
|
3
|
-
import { _ as g } from "../AmIcon.vue_vue_type_script_setup_true_lang
|
|
3
|
+
import { _ as g } from "../AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
4
4
|
import { _ as y } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const v = /* @__PURE__ */ u({
|
|
6
6
|
__name: "AmButton",
|
package/amchip/index.js
CHANGED
package/amfilterlevel/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface AmFilterLevelProps {
|
|
|
23
23
|
fields: AmFilterField[];
|
|
24
24
|
values?: AmFilterLevelValues;
|
|
25
25
|
modelValue?: AmFilterLevelValues;
|
|
26
|
+
dataTestPrefix?: string;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export interface AmFilterLevelSlots {}
|
|
@@ -51,4 +52,5 @@ export interface AmFilterLevelComponentConfig {
|
|
|
51
52
|
|
|
52
53
|
export interface AmFilterLevelComponentProps extends AmFilterField {
|
|
53
54
|
modelValue: unknown[];
|
|
55
|
+
dataTestPrefix?: string;
|
|
54
56
|
}
|
package/amfilterlevel/index.js
CHANGED
|
@@ -1,215 +1,240 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
2
|
-
import
|
|
3
|
-
import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang
|
|
7
|
-
import { _ as
|
|
8
|
-
const g = (
|
|
9
|
-
if (!
|
|
10
|
-
const [r,
|
|
11
|
-
return r ? !
|
|
12
|
-
}, le = (
|
|
13
|
-
if (!Array.isArray(
|
|
14
|
-
const r =
|
|
15
|
-
if (r === void 0 || !Array.isArray(
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
const { label:
|
|
19
|
-
return
|
|
20
|
-
},
|
|
21
|
-
if (
|
|
22
|
-
const { label: r = "" } =
|
|
1
|
+
import { defineComponent as q, ref as E, computed as v, defineAsyncComponent as G, onMounted as H, watch as J, openBlock as f, createElementBlock as b, Fragment as x, createVNode as n, unref as F, withCtx as l, createElementVNode as d, createTextVNode as m, toDisplayString as C, renderList as K, createCommentVNode as I, createBlock as Q, resolveDynamicComponent as W, mergeProps as Z } from "vue";
|
|
2
|
+
import N from "primevue/drawer";
|
|
3
|
+
import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-w3BVVrh4.js";
|
|
4
|
+
import { _ as L } from "../AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
5
|
+
import _ from "../ambutton/index.js";
|
|
6
|
+
import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
7
|
+
import { _ as B } from "../AmIconButton.vue_vue_type_script_setup_true_lang-CpZ9Rmxa.js";
|
|
8
|
+
const g = (t) => new Date(t), $ = (t) => g(t).toLocaleDateString("pt-BR"), ae = ([t, a]) => g(t).getDate() === g(a).getDate(), se = (t, a) => {
|
|
9
|
+
if (!a || !Array.isArray(a)) return "";
|
|
10
|
+
const [r, o] = a;
|
|
11
|
+
return r ? !o || ae(a) ? $(r) : `${$(r)} à ${$(o)}` : "";
|
|
12
|
+
}, le = (t, a) => {
|
|
13
|
+
if (!Array.isArray(a)) return "";
|
|
14
|
+
const r = a[a.length - 1];
|
|
15
|
+
if (r === void 0 || !Array.isArray(t == null ? void 0 : t.options)) return "";
|
|
16
|
+
const o = a.length;
|
|
17
|
+
if (o === 0) return "";
|
|
18
|
+
const { label: p = "" } = t.options.find((y) => y.value === r) || {};
|
|
19
|
+
return o === 1 ? p : `${p}, +${o - 1}`;
|
|
20
|
+
}, oe = (t, a) => {
|
|
21
|
+
if (a === void 0 || !Array.isArray(t.options)) return "";
|
|
22
|
+
const { label: r = "" } = t.options.find((o) => o.value === a) || {};
|
|
23
23
|
return r;
|
|
24
|
-
},
|
|
24
|
+
}, k = {
|
|
25
25
|
date: {
|
|
26
|
-
component: () => import("../AmFilterLevelDateSelect-
|
|
27
|
-
formatChipLabel:
|
|
26
|
+
component: () => import("../AmFilterLevelDateSelect-BbVyzCa5.js"),
|
|
27
|
+
formatChipLabel: se
|
|
28
28
|
},
|
|
29
29
|
multiselect: {
|
|
30
|
-
component: () => import("../AmFilterLevelMultiSelectFilter-
|
|
30
|
+
component: () => import("../AmFilterLevelMultiSelectFilter-yu5Z0IJF.js"),
|
|
31
31
|
formatChipLabel: le
|
|
32
32
|
},
|
|
33
33
|
select: {
|
|
34
|
-
component: () => import("../AmFilterLevelSelectFilter-
|
|
35
|
-
formatChipLabel:
|
|
34
|
+
component: () => import("../AmFilterLevelSelectFilter-fMWXxlpp.js"),
|
|
35
|
+
formatChipLabel: oe
|
|
36
36
|
}
|
|
37
|
-
},
|
|
38
|
-
key:
|
|
39
|
-
class: "
|
|
40
|
-
},
|
|
41
|
-
...
|
|
37
|
+
}, ne = () => "Selecionado", re = ({ component: t }) => typeof t == "string" ? Object.keys(k).includes(t) ? k[t].component : null : t, ie = (t) => t.formatChipLabel ? t.formatChipLabel : typeof t.component != "string" ? ne : k[t.component].formatChipLabel, ue = { class: "flex justify-between w-full" }, ce = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "px-6"
|
|
40
|
+
}, de = ["data-test"], me = { class: "p-4 flex items-center justify-between gap-2" }, fe = { class: "flex items-center" }, pe = { class: "p-4" }, ve = { name: "AmFilterLevel" }, ge = /* @__PURE__ */ q({
|
|
41
|
+
...ve,
|
|
42
42
|
props: {
|
|
43
43
|
title: { default: "Filtros" },
|
|
44
44
|
visible: { type: Boolean, default: !1 },
|
|
45
45
|
fields: { default: () => [] },
|
|
46
46
|
values: {},
|
|
47
|
-
modelValue: { default: () => ({}) }
|
|
47
|
+
modelValue: { default: () => ({}) },
|
|
48
|
+
dataTestPrefix: { default: "am-filter-level" }
|
|
48
49
|
},
|
|
49
50
|
emits: ["update:modelValue", "update:visible"],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
() =>
|
|
53
|
-
...
|
|
54
|
-
component: re(
|
|
55
|
-
formatChipLabel: ie(
|
|
56
|
-
options:
|
|
51
|
+
setup(t, { emit: a }) {
|
|
52
|
+
const o = t, p = a, y = () => p("update:visible", !1), u = E({}), h = E(-1), D = v(
|
|
53
|
+
() => o.fields.map((e) => ({
|
|
54
|
+
...e,
|
|
55
|
+
component: re(e),
|
|
56
|
+
formatChipLabel: ie(e),
|
|
57
|
+
options: e.options || []
|
|
57
58
|
}))
|
|
58
|
-
),
|
|
59
|
-
|
|
60
|
-
}, Y = (
|
|
61
|
-
const
|
|
62
|
-
return Array.isArray(
|
|
63
|
-
}, z = (
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
59
|
+
), c = v(() => D.value[h.value]), M = v(() => h.value > -1), S = v(() => c.value.component ? G(c.value.component) : null), X = v(() => u.value[c.value.name]), P = (e, s) => {
|
|
60
|
+
u.value = { ...u.value, [e]: s };
|
|
61
|
+
}, Y = (e) => P(c.value.name, e), j = (e) => {
|
|
62
|
+
const s = u.value[e];
|
|
63
|
+
return Array.isArray(s) ? s.length > 0 : s != null && s !== "";
|
|
64
|
+
}, z = (e) => P(e, void 0), R = (e) => {
|
|
65
|
+
h.value = e;
|
|
66
|
+
}, T = () => {
|
|
67
|
+
h.value = -1;
|
|
68
|
+
}, w = () => {
|
|
69
|
+
p("update:modelValue", u.value), y();
|
|
70
|
+
}, V = () => {
|
|
71
|
+
o.visible && (u.value = o.modelValue);
|
|
71
72
|
}, O = () => {
|
|
72
|
-
|
|
73
|
+
u.value = {}, w();
|
|
73
74
|
};
|
|
74
|
-
return H(
|
|
75
|
-
|
|
75
|
+
return H(V), J(() => o.visible, V), (e, s) => (f(), b(x, null, [
|
|
76
|
+
n(F(N), {
|
|
76
77
|
class: "am-filter-level",
|
|
77
|
-
visible:
|
|
78
|
+
visible: e.visible,
|
|
78
79
|
position: "right",
|
|
79
80
|
"show-close-icon": !1,
|
|
80
|
-
"block-scroll": ""
|
|
81
|
+
"block-scroll": "",
|
|
82
|
+
"data-test": `${e.dataTestPrefix}-drawer-level-1`
|
|
81
83
|
}, {
|
|
82
84
|
header: l(() => [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
d("div", ue, [
|
|
86
|
+
n(L, {
|
|
85
87
|
as: "h1",
|
|
86
88
|
variant: "title",
|
|
87
|
-
size: "small"
|
|
89
|
+
size: "small",
|
|
90
|
+
"data-test": `${e.dataTestPrefix}-title`
|
|
88
91
|
}, {
|
|
89
92
|
default: l(() => [
|
|
90
|
-
|
|
93
|
+
m(C(e.title), 1)
|
|
91
94
|
]),
|
|
92
95
|
_: 1
|
|
93
|
-
}),
|
|
94
|
-
|
|
96
|
+
}, 8, ["data-test"]),
|
|
97
|
+
n(B, {
|
|
95
98
|
icon: "close",
|
|
96
|
-
onClick:
|
|
97
|
-
|
|
99
|
+
onClick: y,
|
|
100
|
+
"data-test": `${e.dataTestPrefix}-close-button`
|
|
101
|
+
}, null, 8, ["data-test"])
|
|
98
102
|
])
|
|
99
103
|
]),
|
|
100
104
|
default: l(() => [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1024),
|
|
118
|
-
s(te, {
|
|
119
|
-
icon: "chevron_right",
|
|
120
|
-
class: "ml-auto",
|
|
121
|
-
size: "sm"
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
_: 2
|
|
125
|
-
}, 1032, ["onClick"]),
|
|
126
|
-
j(u.name) ? (p(), d("div", me, [
|
|
127
|
-
s(ee, {
|
|
128
|
-
onRemove: (U) => z(u.name),
|
|
129
|
-
removable: ""
|
|
105
|
+
d("div", null, [
|
|
106
|
+
(f(!0), b(x, null, K(D.value, (i, A) => (f(), b("div", {
|
|
107
|
+
class: "grid mx-[-1.5rem]",
|
|
108
|
+
key: i.name
|
|
109
|
+
}, [
|
|
110
|
+
A > 0 ? (f(), b("div", ce, s[0] || (s[0] = [
|
|
111
|
+
d("hr", null, null, -1)
|
|
112
|
+
]))) : I("", !0),
|
|
113
|
+
n(_, {
|
|
114
|
+
class: "flex !rounded-none w-full !px-6",
|
|
115
|
+
severity: "secondary",
|
|
116
|
+
text: "",
|
|
117
|
+
onClick: (U) => R(A),
|
|
118
|
+
"data-test": `${e.dataTestPrefix}-${i.name}-field`
|
|
130
119
|
}, {
|
|
131
120
|
default: l(() => [
|
|
132
|
-
|
|
121
|
+
n(L, { as: "span" }, {
|
|
122
|
+
default: l(() => [
|
|
123
|
+
m(C(i.label), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1024),
|
|
127
|
+
n(te, {
|
|
128
|
+
icon: "chevron_right",
|
|
129
|
+
class: "ml-auto",
|
|
130
|
+
size: "sm"
|
|
131
|
+
})
|
|
133
132
|
]),
|
|
134
133
|
_: 2
|
|
135
|
-
}, 1032, ["
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
}, 1032, ["onClick", "data-test"]),
|
|
135
|
+
j(i.name) ? (f(), b("div", {
|
|
136
|
+
key: 1,
|
|
137
|
+
class: "pb-2 px-6 pt-0",
|
|
138
|
+
"data-test": `${e.dataTestPrefix}-${i.name}-chip-group`
|
|
139
|
+
}, [
|
|
140
|
+
n(ee, {
|
|
141
|
+
onRemove: (U) => z(i.name),
|
|
142
|
+
removable: "",
|
|
143
|
+
"data-test": `${e.dataTestPrefix}-${i.name}-chip-item`
|
|
144
|
+
}, {
|
|
145
|
+
default: l(() => [
|
|
146
|
+
m(C(i.formatChipLabel(i, u.value[i.name], u.value)), 1)
|
|
147
|
+
]),
|
|
148
|
+
_: 2
|
|
149
|
+
}, 1032, ["onRemove", "data-test"])
|
|
150
|
+
], 8, de)) : I("", !0)
|
|
151
|
+
]))), 128))
|
|
152
|
+
])
|
|
138
153
|
]),
|
|
139
154
|
footer: l(() => [
|
|
140
|
-
|
|
141
|
-
|
|
155
|
+
d("div", me, [
|
|
156
|
+
n(_, {
|
|
142
157
|
class: "w-full",
|
|
143
158
|
onClick: O,
|
|
144
|
-
severity: "secondary"
|
|
159
|
+
severity: "secondary",
|
|
160
|
+
"data-test": `${e.dataTestPrefix}-reset-filter-button`
|
|
145
161
|
}, {
|
|
146
|
-
default: l(() =>
|
|
147
|
-
|
|
162
|
+
default: l(() => s[1] || (s[1] = [
|
|
163
|
+
m("Limpar")
|
|
148
164
|
])),
|
|
149
165
|
_: 1
|
|
150
|
-
}),
|
|
151
|
-
|
|
166
|
+
}, 8, ["data-test"]),
|
|
167
|
+
n(_, {
|
|
152
168
|
class: "w-full",
|
|
153
|
-
onClick:
|
|
169
|
+
onClick: w,
|
|
170
|
+
"data-test": `${e.dataTestPrefix}-apply-filter-button`
|
|
154
171
|
}, {
|
|
155
|
-
default: l(() =>
|
|
156
|
-
|
|
172
|
+
default: l(() => s[2] || (s[2] = [
|
|
173
|
+
m("Aplicar")
|
|
157
174
|
])),
|
|
158
175
|
_: 1
|
|
159
|
-
})
|
|
176
|
+
}, 8, ["data-test"])
|
|
160
177
|
])
|
|
161
178
|
]),
|
|
162
179
|
_: 1
|
|
163
|
-
}, 8, ["visible"]),
|
|
164
|
-
|
|
180
|
+
}, 8, ["visible", "data-test"]),
|
|
181
|
+
n(F(N), {
|
|
165
182
|
class: "am-filter-level",
|
|
166
|
-
visible:
|
|
183
|
+
visible: M.value,
|
|
167
184
|
position: "right",
|
|
168
|
-
"show-close-icon": !1
|
|
185
|
+
"show-close-icon": !1,
|
|
186
|
+
"data-test": `${e.dataTestPrefix}-drawer-level-2`
|
|
169
187
|
}, {
|
|
170
188
|
header: l(() => [
|
|
171
|
-
|
|
172
|
-
|
|
189
|
+
d("div", fe, [
|
|
190
|
+
n(B, {
|
|
173
191
|
icon: "arrow_back",
|
|
174
|
-
onClick:
|
|
175
|
-
class: "translate-x-[-.5rem]"
|
|
176
|
-
|
|
177
|
-
|
|
192
|
+
onClick: T,
|
|
193
|
+
class: "translate-x-[-.5rem]",
|
|
194
|
+
"data-test": `${e.dataTestPrefix}-go-back-button`
|
|
195
|
+
}, null, 8, ["data-test"]),
|
|
196
|
+
n(L, {
|
|
178
197
|
as: "h2",
|
|
179
198
|
variant: "title",
|
|
180
|
-
size: "small"
|
|
199
|
+
size: "small",
|
|
200
|
+
"data-test": `${e.dataTestPrefix}-field-title`
|
|
181
201
|
}, {
|
|
182
202
|
default: l(() => [
|
|
183
|
-
|
|
203
|
+
m(C(c.value.label), 1)
|
|
184
204
|
]),
|
|
185
205
|
_: 1
|
|
186
|
-
})
|
|
206
|
+
}, 8, ["data-test"])
|
|
187
207
|
])
|
|
188
208
|
]),
|
|
189
209
|
default: l(() => [
|
|
190
|
-
(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
210
|
+
d("div", null, [
|
|
211
|
+
(f(), Q(W(S.value), Z({
|
|
212
|
+
modelValue: X.value,
|
|
213
|
+
"onUpdate:modelValue": Y
|
|
214
|
+
}, c.value, {
|
|
215
|
+
"data-test": `${e.dataTestPrefix}-${c.value.name}`
|
|
216
|
+
}), null, 16, ["modelValue", "data-test"]))
|
|
217
|
+
])
|
|
194
218
|
]),
|
|
195
219
|
footer: l(() => [
|
|
196
|
-
|
|
197
|
-
|
|
220
|
+
d("div", pe, [
|
|
221
|
+
n(_, {
|
|
198
222
|
class: "w-full",
|
|
199
|
-
onClick:
|
|
223
|
+
onClick: T,
|
|
224
|
+
"data-test": `${e.dataTestPrefix}-confirm-button`
|
|
200
225
|
}, {
|
|
201
|
-
default: l(() =>
|
|
202
|
-
|
|
226
|
+
default: l(() => s[3] || (s[3] = [
|
|
227
|
+
m("Confirmar")
|
|
203
228
|
])),
|
|
204
229
|
_: 1
|
|
205
|
-
})
|
|
230
|
+
}, 8, ["data-test"])
|
|
206
231
|
])
|
|
207
232
|
]),
|
|
208
233
|
_: 1
|
|
209
|
-
}, 8, ["visible"])
|
|
234
|
+
}, 8, ["visible", "data-test"])
|
|
210
235
|
], 64));
|
|
211
236
|
}
|
|
212
237
|
});
|
|
213
238
|
export {
|
|
214
|
-
|
|
239
|
+
ge as default
|
|
215
240
|
};
|
package/amhelper/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, computed as i, openBlock as c, createBlock as m, withCtx as d, createElementVNode as s, normalizeClass as _, normalizeStyle as u, createVNode as f } from "vue";
|
|
2
2
|
import { _ as z } from "../AmTooltip.vue_vue_type_script_setup_true_lang-Bimhrnhu.js";
|
|
3
|
-
import { _ as h } from "../AmIcon.vue_vue_type_script_setup_true_lang
|
|
3
|
+
import { _ as h } from "../AmIcon.vue_vue_type_script_setup_true_lang--fpcDP0n.js";
|
|
4
4
|
import { _ as v } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const x = { class: "am-prime-helper__icon-container" }, C = /* @__PURE__ */ p({
|
|
6
6
|
__name: "AmHelper",
|
package/amicon/index.js
CHANGED
package/amiconbutton/index.js
CHANGED
package/amplugins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as o, createBlock as n } from "vue";
|
|
2
|
-
import { _ as r } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-
|
|
2
|
+
import { _ as r } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-BbAePpaG.js";
|
|
3
3
|
const p = /* @__PURE__ */ e({
|
|
4
4
|
__name: "AmPlugins",
|
|
5
5
|
setup(t) {
|