@appmax_npm/ds-prime 1.0.0-alpha.136 → 1.0.0-alpha.138
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-CZJpjXOE.js → AmChip.vue_vue_type_script_setup_true_lang-DTDfRnFx.js} +1 -1
- package/AmFieldWrapper.vue_vue_type_script_setup_true_lang-qr-if4V7.js +86 -0
- package/{AmHelper.vue_vue_type_script_setup_true_lang-Dt7x4wfY.js → AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN-.js} +1 -1
- package/{AmIcon.vue_vue_type_script_setup_true_lang-BBlov-_d.js → AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js} +1 -0
- package/{AmIconButton.vue_vue_type_script_setup_true_lang-DOK7rCk7.js → AmIconButton.vue_vue_type_script_setup_true_lang-ChfTIqQH.js} +1 -1
- package/{AmToaster.vue_vue_type_style_index_0_global_true_lang-DMwFPN8j.js → AmToaster.vue_vue_type_style_index_0_global_true_lang-CxxKE0ta.js} +1 -1
- package/amalert/index.js +1 -1
- package/ambutton/index.js +1 -1
- package/amchip/index.js +1 -1
- package/amfield/index.js +18 -14
- package/amfieldwrapper/index.js +1 -1
- package/amfilterlevel/index.js +3 -3
- package/amhelper/index.js +1 -1
- package/amicon/index.js +1 -1
- package/amiconbutton/index.js +1 -1
- package/amnotification/index.js +1 -1
- package/amplugins/index.js +1 -1
- package/amradiooptions/index.js +2 -2
- package/amtoaster/index.js +1 -1
- package/discover-vVTOFEvv.js +22 -0
- package/package.json +1 -1
- package/AmFieldWrapper.vue_vue_type_script_setup_true_lang-D31AJx8I.js +0 -74
|
@@ -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-yjw50cPR.js";
|
|
3
|
-
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
4
|
const f = { class: "p-1" }, d = { name: "AmChip" }, b = /* @__PURE__ */ r({
|
|
5
5
|
...d,
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as c, computed as h, openBlock as t, createElementBlock as n, normalizeClass as f, createElementVNode as m, createBlock as r, withCtx as l, toDisplayString as a, createCommentVNode as s, createTextVNode as d, renderSlot as g, createVNode as b } from "vue";
|
|
2
|
+
import { _ as o } from "./AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
3
|
+
import { _ as y } from "./AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
|
+
const _ = ["data-test"], $ = { class: "flex items-end gap-2 justify-between" }, k = ["data-test"], T = ["data-test"], P = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-1"
|
|
7
|
+
}, v = { name: "AmFieldWrapper" }, C = /* @__PURE__ */ c({
|
|
8
|
+
...v,
|
|
9
|
+
props: {
|
|
10
|
+
dataTestPrefix: {},
|
|
11
|
+
label: {},
|
|
12
|
+
labelHint: {},
|
|
13
|
+
hint: {},
|
|
14
|
+
error: { type: [String, null, Boolean] },
|
|
15
|
+
help: {},
|
|
16
|
+
disabled: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(u) {
|
|
19
|
+
const i = u, p = h(() => typeof i.error == "string" ? i.error : "");
|
|
20
|
+
return (e, w) => (t(), n("label", {
|
|
21
|
+
class: f(["grid gap-1 w-full", { "opacity-65": e.disabled }]),
|
|
22
|
+
"data-test": `${e.dataTestPrefix}-wrapper`
|
|
23
|
+
}, [
|
|
24
|
+
m("div", $, [
|
|
25
|
+
e.label ? (t(), r(o, { key: 0 }, {
|
|
26
|
+
default: l(() => [
|
|
27
|
+
m("strong", {
|
|
28
|
+
class: f({ "text-danger": e.error }),
|
|
29
|
+
"data-test": `${e.dataTestPrefix}-label`
|
|
30
|
+
}, a(e.label), 11, k),
|
|
31
|
+
e.labelHint ? (t(), n("span", {
|
|
32
|
+
key: 0,
|
|
33
|
+
"data-test": `${e.dataTestPrefix}-label-hint`,
|
|
34
|
+
class: "text-xs text-muted-color"
|
|
35
|
+
}, " (" + a(e.labelHint) + ")", 9, T)) : s("", !0)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
})) : s("", !0),
|
|
39
|
+
e.hint ? (t(), r(o, {
|
|
40
|
+
key: 1,
|
|
41
|
+
"data-test": `${e.dataTestPrefix}-caption-hint`,
|
|
42
|
+
as: "span",
|
|
43
|
+
variant: "caption"
|
|
44
|
+
}, {
|
|
45
|
+
default: l(() => [
|
|
46
|
+
d(a(e.hint), 1)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["data-test"])) : s("", !0)
|
|
50
|
+
]),
|
|
51
|
+
g(e.$slots, "default"),
|
|
52
|
+
p.value ? (t(), n("div", P, [
|
|
53
|
+
e.error ? (t(), r(y, {
|
|
54
|
+
key: 0,
|
|
55
|
+
"data-test": `${e.dataTestPrefix}-error-icon`,
|
|
56
|
+
size: "sm",
|
|
57
|
+
icon: "warning",
|
|
58
|
+
class: "text-danger"
|
|
59
|
+
}, null, 8, ["data-test"])) : s("", !0),
|
|
60
|
+
b(o, {
|
|
61
|
+
"data-test": `${e.dataTestPrefix}-error-text`,
|
|
62
|
+
class: "text-danger",
|
|
63
|
+
size: "small"
|
|
64
|
+
}, {
|
|
65
|
+
default: l(() => [
|
|
66
|
+
d(a(p.value), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["data-test"])
|
|
70
|
+
])) : e.help ? (t(), r(o, {
|
|
71
|
+
key: 1,
|
|
72
|
+
"data-test": `${e.dataTestPrefix}-help-text`,
|
|
73
|
+
class: "text-muted-color",
|
|
74
|
+
size: "small"
|
|
75
|
+
}, {
|
|
76
|
+
default: l(() => [
|
|
77
|
+
d(a(e.help), 1)
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["data-test"])) : s("", !0)
|
|
81
|
+
], 10, _));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
C as _
|
|
86
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, computed as s, openBlock as n, createElementBlock as c, createVNode as l, withCtx as p, createElementVNode as m, normalizeClass as d, unref as f } from "vue";
|
|
2
2
|
import { _ as u } from "./AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v.js";
|
|
3
|
-
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
4
|
import { cva as x } from "class-variance-authority";
|
|
5
5
|
import { twMerge as v } from "tailwind-merge";
|
|
6
6
|
const h = x(
|
|
@@ -29,6 +29,7 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
|
|
|
29
29
|
diners: () => import("./diners-CN_1suUM.js"),
|
|
30
30
|
elo: () => import("./elo-BaNbqhYS.js"),
|
|
31
31
|
gear: () => import("./gear-BHOWpd7b.js"),
|
|
32
|
+
discover: () => import("./discover-vVTOFEvv.js"),
|
|
32
33
|
grid: () => import("./grid-B7I0mWry.js"),
|
|
33
34
|
hipercard: () => import("./hipercard-DBsszwxC.js"),
|
|
34
35
|
infos: () => import("./infos-8KGPLXoE.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 { _ as a } from "./AmIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as a } from "./AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
4
|
const _ = { name: "AmIconButton" }, f = /* @__PURE__ */ e({
|
|
5
5
|
..._,
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, computed as i, openBlock as n, createElementBlock as g, createElementVNode as l, createBlock as c, normalizeClass as m, createCommentVNode as u, withCtx as s, createTextVNode as p, toDisplayString as _, createVNode as v, 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-DSPwaviT.js";
|
|
4
4
|
import { _ as f } from "./AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
5
5
|
const d = {
|
|
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-yjw50cPR.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-DSPwaviT.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 f, createPropsRestProxy as m, computed as n, openBlock as t, createBlock as i, unref as y, mergeProps as b, withCtx as v, createCommentVNode as a, createElementBlock as B, Fragment as g, createTextVNode as h, toDisplayString as z, renderSlot as k } from "vue";
|
|
2
2
|
import P from "primevue/button";
|
|
3
|
-
import { _ as l } from "../AmIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as l } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
4
|
import { _ as I } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const C = /* @__PURE__ */ f({
|
|
6
6
|
__name: "AmButton",
|
package/amchip/index.js
CHANGED
package/amfield/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as i, createPropsRestProxy as
|
|
1
|
+
import { defineComponent as i, createPropsRestProxy as m, openBlock as t, createBlock as o, unref as p, withCtx as n, createVNode as b, resolveDynamicComponent as u, mergeProps as f } from "vue";
|
|
2
2
|
import { _ as h } from "../AmInputText.vue_vue_type_script_setup_true_lang-DzkxGjuT.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { FormField as
|
|
5
|
-
const
|
|
6
|
-
...
|
|
3
|
+
import { _ as P } from "../AmFieldWrapper.vue_vue_type_script_setup_true_lang-qr-if4V7.js";
|
|
4
|
+
import { FormField as c } from "@primevue/forms";
|
|
5
|
+
const _ = { name: "AmField" }, B = /* @__PURE__ */ i({
|
|
6
|
+
..._,
|
|
7
7
|
props: {
|
|
8
8
|
as: { default: () => h },
|
|
9
9
|
name: {},
|
|
@@ -16,28 +16,32 @@ const c = { name: "AmField" }, B = /* @__PURE__ */ i({
|
|
|
16
16
|
disabled: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
setup(s) {
|
|
19
|
-
const a =
|
|
20
|
-
return (e,
|
|
19
|
+
const a = m(s, ["as", "help", "label", "labelHint", "hint", "dataTestPrefix"]);
|
|
20
|
+
return (e, v) => (t(), o(p(c), {
|
|
21
21
|
name: a.name
|
|
22
22
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
var
|
|
23
|
+
default: n((l) => {
|
|
24
|
+
var r;
|
|
25
25
|
return [
|
|
26
|
-
|
|
26
|
+
b(P, {
|
|
27
27
|
dataTestPrefix: e.dataTestPrefix,
|
|
28
28
|
help: e.help,
|
|
29
29
|
label: e.label,
|
|
30
30
|
labelHint: e.labelHint,
|
|
31
31
|
hint: e.hint,
|
|
32
|
-
error: a.error || ((
|
|
32
|
+
error: a.error || ((r = l == null ? void 0 : l.error) == null ? void 0 : r.message),
|
|
33
33
|
disabled: a.disabled
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
(t(),
|
|
35
|
+
default: n(() => [
|
|
36
|
+
(t(), o(u(e.as), f({
|
|
37
|
+
modelValue: l.value,
|
|
38
|
+
"onUpdate:modelValue": (d) => l.value = d,
|
|
39
|
+
class: "overflow-hidden"
|
|
40
|
+
}, { ...e.$attrs, ...a }, {
|
|
37
41
|
"data-test": `${e.dataTestPrefix}-field`,
|
|
38
42
|
invalid: a.error,
|
|
39
43
|
disabled: e.disabled
|
|
40
|
-
}), null, 16, ["data-test", "invalid", "disabled"]))
|
|
44
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "data-test", "invalid", "disabled"]))
|
|
41
45
|
]),
|
|
42
46
|
_: 2
|
|
43
47
|
}, 1032, ["dataTestPrefix", "help", "label", "labelHint", "hint", "error", "disabled"])
|
package/amfieldwrapper/index.js
CHANGED
package/amfilterlevel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
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 o, createElementVNode as d, createTextVNode as m, toDisplayString as _, renderList as K, createCommentVNode as I, createBlock as Q, resolveDynamicComponent as W, mergeProps as Z } from "vue";
|
|
2
2
|
import N from "primevue/drawer";
|
|
3
|
-
import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-DTDfRnFx.js";
|
|
4
4
|
import { _ as L } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
5
5
|
import C from "../ambutton/index.js";
|
|
6
|
-
import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as B } from "../AmIconButton.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
7
|
+
import { _ as B } from "../AmIconButton.vue_vue_type_script_setup_true_lang-ChfTIqQH.js";
|
|
8
8
|
import { _ as ae } from "../AmLoading.vue_vue_type_script_setup_true_lang-DjatXofa.js";
|
|
9
9
|
const g = (t) => new Date(t), $ = (t) => g(t).toLocaleDateString("pt-BR"), se = ([t, a]) => g(t).getDate() === g(a).getDate(), oe = (t, a) => {
|
|
10
10
|
if (!a || !Array.isArray(a)) return "";
|
package/amhelper/index.js
CHANGED
package/amicon/index.js
CHANGED
package/amiconbutton/index.js
CHANGED
package/amnotification/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as _, openBlock as a, createElementBlock as n, normalizeClass as v, unref as w, createElementVNode as i, createVNode as b, createBlock as c, withCtx as d, createTextVNode as l, toDisplayString as f, createCommentVNode as r, renderSlot as m } from "vue";
|
|
2
2
|
import { _ as u } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
3
|
-
import { _ as x } from "../AmIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as x } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
4
4
|
import { cva as N } from "class-variance-authority";
|
|
5
5
|
import { twMerge as h } from "tailwind-merge";
|
|
6
6
|
import { _ as k } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
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-CxxKE0ta.js";
|
|
3
3
|
const p = /* @__PURE__ */ e({
|
|
4
4
|
__name: "AmPlugins",
|
|
5
5
|
setup(t) {
|
package/amradiooptions/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, mergeModels as p, useModel as c, openBlock as o, createElementBlock as s, Fragment as f, renderList as _, createElementVNode as V, createVNode as l, unref as $, withCtx as v, createTextVNode as h, toDisplayString as b, createBlock as k, createCommentVNode as x } from "vue";
|
|
2
2
|
import { RadioButton as g } from "primevue";
|
|
3
3
|
import { _ as y } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
4
|
-
import { _ as B } from "../AmIcon.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as N } from "../AmHelper.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as B } from "../AmIcon.vue_vue_type_script_setup_true_lang-DSPwaviT.js";
|
|
5
|
+
import { _ as N } from "../AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN-.js";
|
|
6
6
|
import { _ as P } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const T = { class: "space-y-2 am-radio-options" }, C = ["data-test", "for"], I = { class: "flex items-center justify-center relative" }, M = { name: "AmRadioOptions" }, R = /* @__PURE__ */ u({
|
|
8
8
|
...M,
|
package/amtoaster/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { openBlock as c, createElementBlock as v, createElementVNode as e } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
"xml:space": "preserve",
|
|
5
|
+
width: "800",
|
|
6
|
+
height: "800",
|
|
7
|
+
viewBox: "0 -140 780 780"
|
|
8
|
+
};
|
|
9
|
+
function l(r, h) {
|
|
10
|
+
return c(), v("svg", t, h[0] || (h[0] = [
|
|
11
|
+
e("path", {
|
|
12
|
+
fill: "#F47216",
|
|
13
|
+
d: "M409.41 197.26c30.938 0 56.02 23.58 56.02 52.709v.033c0 29.129-25.082 52.742-56.02 52.742-30.941 0-56.022-23.613-56.022-52.742v-.033c0-29.129 25.081-52.709 56.022-52.709"
|
|
14
|
+
}, null, -1),
|
|
15
|
+
e("path", { d: "M321.43 197.94c8.836 0 16.247 1.785 25.27 6.09v22.753c-8.544-7.863-15.955-11.154-25.757-11.154-19.265 0-34.413 15.015-34.413 34.051 0 20.074 14.681 34.195 35.368 34.195 9.312 0 16.586-3.12 24.802-10.856v22.764c-9.343 4.142-16.912 5.775-25.757 5.775-31.277 0-55.581-22.597-55.581-51.736-.002-28.83 24.949-51.882 56.068-51.882m-97.113.626c11.546 0 22.109 3.721 30.942 10.994l-10.748 13.248c-5.351-5.646-10.411-8.027-16.563-8.027-8.854 0-15.301 4.744-15.301 10.988 0 5.354 3.618 8.188 15.944 12.481 23.364 8.043 30.289 15.176 30.289 30.926 0 19.193-14.976 32.554-36.319 32.554-15.631 0-26.993-5.795-36.457-18.871l13.268-12.03c4.73 8.608 12.622 13.223 22.42 13.223 9.163 0 15.947-5.95 15.947-13.983 0-4.164-2.056-7.733-6.158-10.258-2.066-1.195-6.158-2.978-14.199-5.646-19.292-6.538-25.91-13.527-25.91-27.186-.001-16.227 14.213-28.413 32.845-28.413m234.72 1.729h22.436l28.084 66.592 28.447-66.592h22.267l-45.493 101.69h-11.054zm-301.21.152h20.541v99.143h-20.541zm411.73 0h58.253v16.799h-37.726v22.006h36.336v16.791h-36.336v26.762h37.726v16.785h-58.253zm115.59 57.377c15.471-2.965 23.983-12.926 23.983-28.105 0-18.562-13.575-29.271-37.266-29.271H641.41v99.144h20.516v-39.83h2.681l28.43 39.828h25.26zm-17.218-11.736h-6.002v-30.025h6.326c12.791 0 19.744 5.049 19.744 14.697.002 9.967-6.951 15.328-20.068 15.328m-576.09-45.641H61.69v99.143h29.992c15.946 0 27.465-3.543 37.573-11.445 12.014-9.359 19.117-23.467 19.117-38.057.001-29.259-23.221-49.641-56.533-49.641m23.997 74.479c-6.454 5.484-14.837 7.879-28.108 7.879h-5.514v-65.559h5.513c13.271 0 21.323 2.238 28.108 8.018 7.104 5.956 11.377 15.184 11.377 24.682.001 9.513-4.273 19.024-11.376 24.98" }, null, -1)
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
const o = { render: l };
|
|
19
|
+
export {
|
|
20
|
+
o as default,
|
|
21
|
+
l as render
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as h, openBlock as t, createElementBlock as p, normalizeClass as f, createElementVNode as u, createBlock as s, withCtx as r, toDisplayString as a, createCommentVNode as l, createTextVNode as n, renderSlot as b } from "vue";
|
|
2
|
-
import { _ as o } from "./AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
|
|
3
|
-
const y = ["data-test"], g = { class: "flex items-end gap-2 justify-between" }, k = ["data-test"], T = ["data-test"], $ = { name: "AmFieldWrapper" }, v = /* @__PURE__ */ c({
|
|
4
|
-
...$,
|
|
5
|
-
props: {
|
|
6
|
-
dataTestPrefix: {},
|
|
7
|
-
label: {},
|
|
8
|
-
labelHint: {},
|
|
9
|
-
hint: {},
|
|
10
|
-
error: { type: [String, null, Boolean] },
|
|
11
|
-
help: {},
|
|
12
|
-
disabled: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(m) {
|
|
15
|
-
const d = m, i = h(() => typeof d.error == "string" ? d.error : "");
|
|
16
|
-
return (e, P) => (t(), p("label", {
|
|
17
|
-
class: f(["grid gap-1 w-full", { "opacity-65": e.disabled }]),
|
|
18
|
-
"data-test": `${e.dataTestPrefix}-wrapper`
|
|
19
|
-
}, [
|
|
20
|
-
u("div", g, [
|
|
21
|
-
e.label ? (t(), s(o, { key: 0 }, {
|
|
22
|
-
default: r(() => [
|
|
23
|
-
u("strong", {
|
|
24
|
-
class: f({ "text-danger": e.error }),
|
|
25
|
-
"data-test": `${e.dataTestPrefix}-label`
|
|
26
|
-
}, a(e.label), 11, k),
|
|
27
|
-
e.labelHint ? (t(), p("span", {
|
|
28
|
-
key: 0,
|
|
29
|
-
"data-test": `${e.dataTestPrefix}-label-hint`,
|
|
30
|
-
class: "text-xs text-muted-color"
|
|
31
|
-
}, " (" + a(e.labelHint) + ")", 9, T)) : l("", !0)
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
})) : l("", !0),
|
|
35
|
-
e.hint ? (t(), s(o, {
|
|
36
|
-
key: 1,
|
|
37
|
-
"data-test": `${e.dataTestPrefix}-caption-hint`,
|
|
38
|
-
as: "span",
|
|
39
|
-
variant: "caption"
|
|
40
|
-
}, {
|
|
41
|
-
default: r(() => [
|
|
42
|
-
n(a(e.hint), 1)
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 8, ["data-test"])) : l("", !0)
|
|
46
|
-
]),
|
|
47
|
-
b(e.$slots, "default"),
|
|
48
|
-
i.value ? (t(), s(o, {
|
|
49
|
-
key: 0,
|
|
50
|
-
"data-test": `${e.dataTestPrefix}-error-text`,
|
|
51
|
-
class: "text-danger",
|
|
52
|
-
size: "small"
|
|
53
|
-
}, {
|
|
54
|
-
default: r(() => [
|
|
55
|
-
n(a(i.value), 1)
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 8, ["data-test"])) : e.help ? (t(), s(o, {
|
|
59
|
-
key: 1,
|
|
60
|
-
"data-test": `${e.dataTestPrefix}-help-text`,
|
|
61
|
-
class: "text-muted-color",
|
|
62
|
-
size: "small"
|
|
63
|
-
}, {
|
|
64
|
-
default: r(() => [
|
|
65
|
-
n(a(e.help), 1)
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["data-test"])) : l("", !0)
|
|
69
|
-
], 10, y));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
v as _
|
|
74
|
-
};
|