@1doc/1ds-vue 2.12.2 → 2.13.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.
- package/CHANGELOG.md +22 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +578 -567
- package/dist/index.umd.js +3 -3
- package/package.json +2 -2
- package/src/teste/breadcrumb-truncado.test.mjs +46 -0
package/dist/index.mjs
CHANGED
|
@@ -1397,9 +1397,9 @@ function Zi(t) {
|
|
|
1397
1397
|
styles: i = {},
|
|
1398
1398
|
config: u = {}
|
|
1399
1399
|
} = t, c = a === cn, d = e.includes("fa-duotone") || e.includes("fad"), p = u.familyDefault === "duotone", h = n.prefix === "fad" || n.prefix === "fa-duotone";
|
|
1400
|
-
if (!c && (d || p || h) && (n.prefix = "fad"), (e.includes("fa-brands") || e.includes("fab")) && (n.prefix = "fab"), !n.prefix && Gi.includes(a) && (Object.keys(i).find((
|
|
1401
|
-
const
|
|
1402
|
-
n.prefix =
|
|
1400
|
+
if (!c && (d || p || h) && (n.prefix = "fad"), (e.includes("fa-brands") || e.includes("fab")) && (n.prefix = "fab"), !n.prefix && Gi.includes(a) && (Object.keys(i).find((g) => Xi.includes(g)) || u.autoFetchSvg)) {
|
|
1401
|
+
const g = ti.get(a).defaultShortPrefixId;
|
|
1402
|
+
n.prefix = g, n.iconName = ra(n.prefix, n.iconName) || n.iconName;
|
|
1403
1403
|
}
|
|
1404
1404
|
return (n.prefix === "fa" || l === "fa") && (n.prefix = Jt() || "fas"), n;
|
|
1405
1405
|
}
|
|
@@ -1635,8 +1635,8 @@ function yl(t) {
|
|
|
1635
1635
|
extra: h,
|
|
1636
1636
|
watchable: y = !1
|
|
1637
1637
|
} = t, {
|
|
1638
|
-
width:
|
|
1639
|
-
height:
|
|
1638
|
+
width: g,
|
|
1639
|
+
height: k
|
|
1640
1640
|
} = a.found ? a : e, b = si.includes(n), v = [Be.replacementClass, l ? "".concat(Be.cssPrefix, "-").concat(l) : ""].filter((O) => h.classes.indexOf(O) === -1).filter((O) => O !== "" || !!O).concat(h.classes).join(" ");
|
|
1641
1641
|
let L = {
|
|
1642
1642
|
children: [],
|
|
@@ -1646,11 +1646,11 @@ function yl(t) {
|
|
|
1646
1646
|
class: v,
|
|
1647
1647
|
role: h.attributes.role || "img",
|
|
1648
1648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1649
|
-
viewBox: "0 0 ".concat(
|
|
1649
|
+
viewBox: "0 0 ".concat(g, " ").concat(k)
|
|
1650
1650
|
})
|
|
1651
1651
|
};
|
|
1652
1652
|
const w = b && !~h.classes.indexOf("fa-fw") ? {
|
|
1653
|
-
width: "".concat(
|
|
1653
|
+
width: "".concat(g / k * 16 * 0.0625, "em")
|
|
1654
1654
|
} : {};
|
|
1655
1655
|
y && (L.attributes[ca] = ""), c && (L.children.push({
|
|
1656
1656
|
tag: "title",
|
|
@@ -2039,20 +2039,20 @@ function eo(t) {
|
|
|
2039
2039
|
return Promise.resolve();
|
|
2040
2040
|
const d = gl.begin("onTree"), p = c.reduce((h, y) => {
|
|
2041
2041
|
try {
|
|
2042
|
-
const
|
|
2043
|
-
|
|
2044
|
-
} catch (
|
|
2045
|
-
Ko ||
|
|
2042
|
+
const g = fs(y);
|
|
2043
|
+
g && h.push(g);
|
|
2044
|
+
} catch (g) {
|
|
2045
|
+
Ko || g.name === "MissingIcon" && console.error(g);
|
|
2046
2046
|
}
|
|
2047
2047
|
return h;
|
|
2048
2048
|
}, []);
|
|
2049
2049
|
return new Promise((h, y) => {
|
|
2050
|
-
Promise.all(p).then((
|
|
2051
|
-
cs(
|
|
2050
|
+
Promise.all(p).then((g) => {
|
|
2051
|
+
cs(g, () => {
|
|
2052
2052
|
n("active"), n("complete"), l("pending"), typeof e == "function" && e(), d(), h();
|
|
2053
2053
|
});
|
|
2054
|
-
}).catch((
|
|
2055
|
-
d(), y(
|
|
2054
|
+
}).catch((g) => {
|
|
2055
|
+
d(), y(g);
|
|
2056
2056
|
});
|
|
2057
2057
|
});
|
|
2058
2058
|
}
|
|
@@ -2090,8 +2090,8 @@ const Ar = function(t) {
|
|
|
2090
2090
|
if (!t) return;
|
|
2091
2091
|
const {
|
|
2092
2092
|
prefix: y,
|
|
2093
|
-
iconName:
|
|
2094
|
-
icon:
|
|
2093
|
+
iconName: g,
|
|
2094
|
+
icon: k
|
|
2095
2095
|
} = t;
|
|
2096
2096
|
return vn(_e({
|
|
2097
2097
|
type: "icon"
|
|
@@ -2100,7 +2100,7 @@ const Ar = function(t) {
|
|
|
2100
2100
|
params: e
|
|
2101
2101
|
}), Be.autoA11y && (u ? p["aria-labelledby"] = "".concat(Be.replacementClass, "-title-").concat(c || Ma()) : (p["aria-hidden"] = "true", p.focusable = "false")), yl({
|
|
2102
2102
|
icons: {
|
|
2103
|
-
main: Yn(
|
|
2103
|
+
main: Yn(k),
|
|
2104
2104
|
mask: l ? Yn(l.icon) : {
|
|
2105
2105
|
found: !1,
|
|
2106
2106
|
width: null,
|
|
@@ -2109,7 +2109,7 @@ const Ar = function(t) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
},
|
|
2111
2111
|
prefix: y,
|
|
2112
|
-
iconName:
|
|
2112
|
+
iconName: g,
|
|
2113
2113
|
transform: _e(_e({}, zt), a),
|
|
2114
2114
|
symbol: n,
|
|
2115
2115
|
title: u,
|
|
@@ -2155,7 +2155,7 @@ var $r = {
|
|
|
2155
2155
|
maskId: h,
|
|
2156
2156
|
extra: y
|
|
2157
2157
|
} = a;
|
|
2158
|
-
return new Promise((
|
|
2158
|
+
return new Promise((g, k) => {
|
|
2159
2159
|
Promise.all([Gn(n, u), p.iconName ? Gn(p.iconName, p.prefix) : Promise.resolve({
|
|
2160
2160
|
found: !1,
|
|
2161
2161
|
width: 512,
|
|
@@ -2163,7 +2163,7 @@ var $r = {
|
|
|
2163
2163
|
icon: {}
|
|
2164
2164
|
})]).then((b) => {
|
|
2165
2165
|
let [v, L] = b;
|
|
2166
|
-
|
|
2166
|
+
g([e, yl({
|
|
2167
2167
|
icons: {
|
|
2168
2168
|
main: v,
|
|
2169
2169
|
mask: L
|
|
@@ -2178,7 +2178,7 @@ var $r = {
|
|
|
2178
2178
|
extra: y,
|
|
2179
2179
|
watchable: !0
|
|
2180
2180
|
})]);
|
|
2181
|
-
}).catch(
|
|
2181
|
+
}).catch(k);
|
|
2182
2182
|
});
|
|
2183
2183
|
}, t.generateAbstractIcon = function(e) {
|
|
2184
2184
|
let {
|
|
@@ -2342,33 +2342,33 @@ function no(t, e) {
|
|
|
2342
2342
|
return new Promise((n, l) => {
|
|
2343
2343
|
if (t.getAttribute(a) !== null)
|
|
2344
2344
|
return n();
|
|
2345
|
-
const u = _a(t.children).filter((
|
|
2345
|
+
const u = _a(t.children).filter((g) => g.getAttribute(Pn) === e)[0], c = Zt.getComputedStyle(t, e), d = c.getPropertyValue("font-family"), p = d.match(Ci), h = c.getPropertyValue("font-weight"), y = c.getPropertyValue("content");
|
|
2346
2346
|
if (u && !p)
|
|
2347
2347
|
return t.removeChild(u), n();
|
|
2348
2348
|
if (p && y !== "none" && y !== "") {
|
|
2349
|
-
const
|
|
2350
|
-
let
|
|
2349
|
+
const g = c.getPropertyValue("content");
|
|
2350
|
+
let k = Rr(d, h);
|
|
2351
2351
|
const {
|
|
2352
2352
|
value: b,
|
|
2353
2353
|
isSecondary: v
|
|
2354
|
-
} = Dr(
|
|
2355
|
-
let w = bl(
|
|
2354
|
+
} = Dr(g), L = p[0].startsWith("FontAwesome");
|
|
2355
|
+
let w = bl(k, b), M = w;
|
|
2356
2356
|
if (L) {
|
|
2357
2357
|
const N = Ui(b);
|
|
2358
|
-
N.iconName && N.prefix && (w = N.iconName,
|
|
2358
|
+
N.iconName && N.prefix && (w = N.iconName, k = N.prefix);
|
|
2359
2359
|
}
|
|
2360
|
-
if (w && !v && (!u || u.getAttribute(dl) !==
|
|
2360
|
+
if (w && !v && (!u || u.getAttribute(dl) !== k || u.getAttribute(fl) !== M)) {
|
|
2361
2361
|
t.setAttribute(a, M), u && t.removeChild(u);
|
|
2362
2362
|
const N = xr(), {
|
|
2363
2363
|
extra: K
|
|
2364
2364
|
} = N;
|
|
2365
|
-
K.attributes[Pn] = e, Gn(w,
|
|
2365
|
+
K.attributes[Pn] = e, Gn(w, k).then((O) => {
|
|
2366
2366
|
const $ = yl(_e(_e({}, N), {}, {
|
|
2367
2367
|
icons: {
|
|
2368
2368
|
main: O,
|
|
2369
2369
|
mask: ss()
|
|
2370
2370
|
},
|
|
2371
|
-
prefix:
|
|
2371
|
+
prefix: k,
|
|
2372
2372
|
iconName: M,
|
|
2373
2373
|
extra: K,
|
|
2374
2374
|
watchable: !0
|
|
@@ -2520,21 +2520,21 @@ var Fr = {
|
|
|
2520
2520
|
transform: "".concat(c, " ").concat(d, " ").concat(p)
|
|
2521
2521
|
}, y = {
|
|
2522
2522
|
transform: "translate(".concat(i / 2 * -1, " -256)")
|
|
2523
|
-
},
|
|
2523
|
+
}, g = {
|
|
2524
2524
|
outer: u,
|
|
2525
2525
|
inner: h,
|
|
2526
2526
|
path: y
|
|
2527
2527
|
};
|
|
2528
2528
|
return {
|
|
2529
2529
|
tag: "g",
|
|
2530
|
-
attributes: _e({},
|
|
2530
|
+
attributes: _e({}, g.outer),
|
|
2531
2531
|
children: [{
|
|
2532
2532
|
tag: "g",
|
|
2533
|
-
attributes: _e({},
|
|
2533
|
+
attributes: _e({}, g.inner),
|
|
2534
2534
|
children: [{
|
|
2535
2535
|
tag: a.icon.tag,
|
|
2536
2536
|
children: a.icon.children,
|
|
2537
|
-
attributes: _e(_e({}, a.icon.attributes),
|
|
2537
|
+
attributes: _e(_e({}, a.icon.attributes), g.path)
|
|
2538
2538
|
}]
|
|
2539
2539
|
}]
|
|
2540
2540
|
};
|
|
@@ -2579,11 +2579,11 @@ var Vr = {
|
|
|
2579
2579
|
} = l, {
|
|
2580
2580
|
width: h,
|
|
2581
2581
|
icon: y
|
|
2582
|
-
} = i,
|
|
2582
|
+
} = i, g = Di({
|
|
2583
2583
|
transform: c,
|
|
2584
2584
|
containerWidth: h,
|
|
2585
2585
|
iconWidth: d
|
|
2586
|
-
}),
|
|
2586
|
+
}), k = {
|
|
2587
2587
|
tag: "rect",
|
|
2588
2588
|
attributes: _e(_e({}, In), {}, {
|
|
2589
2589
|
fill: "white"
|
|
@@ -2592,14 +2592,14 @@ var Vr = {
|
|
|
2592
2592
|
children: p.children.map(io)
|
|
2593
2593
|
} : {}, v = {
|
|
2594
2594
|
tag: "g",
|
|
2595
|
-
attributes: _e({},
|
|
2595
|
+
attributes: _e({}, g.inner),
|
|
2596
2596
|
children: [io(_e({
|
|
2597
2597
|
tag: p.tag,
|
|
2598
|
-
attributes: _e(_e({}, p.attributes),
|
|
2598
|
+
attributes: _e(_e({}, p.attributes), g.path)
|
|
2599
2599
|
}, b))]
|
|
2600
2600
|
}, L = {
|
|
2601
2601
|
tag: "g",
|
|
2602
|
-
attributes: _e({},
|
|
2602
|
+
attributes: _e({}, g.outer),
|
|
2603
2603
|
children: [v]
|
|
2604
2604
|
}, w = "mask-".concat(u || Ma()), M = "clip-".concat(u || Ma()), N = {
|
|
2605
2605
|
tag: "mask",
|
|
@@ -2608,7 +2608,7 @@ var Vr = {
|
|
|
2608
2608
|
maskUnits: "userSpaceOnUse",
|
|
2609
2609
|
maskContentUnits: "userSpaceOnUse"
|
|
2610
2610
|
}),
|
|
2611
|
-
children: [
|
|
2611
|
+
children: [k, L]
|
|
2612
2612
|
}, K = {
|
|
2613
2613
|
tag: "defs",
|
|
2614
2614
|
children: [{
|
|
@@ -3023,8 +3023,8 @@ const qr = {
|
|
|
3023
3023
|
const e = t, a = _(Array());
|
|
3024
3024
|
tt(() => {
|
|
3025
3025
|
const y = [];
|
|
3026
|
-
e.items && e.items.forEach((
|
|
3027
|
-
|
|
3026
|
+
e.items && e.items.forEach((g) => {
|
|
3027
|
+
g.defaultOpen && y.push(g.id);
|
|
3028
3028
|
}), a.value = e.multiple ? y : y.length > 0 ? [y[0]] : [];
|
|
3029
3029
|
});
|
|
3030
3030
|
const n = s(() => e.items || []), l = s(() => [
|
|
@@ -3045,36 +3045,36 @@ const qr = {
|
|
|
3045
3045
|
function d(y) {
|
|
3046
3046
|
return `umds-accordion-body-${y}`;
|
|
3047
3047
|
}
|
|
3048
|
-
function p(y,
|
|
3049
|
-
if (
|
|
3050
|
-
const
|
|
3048
|
+
function p(y, g) {
|
|
3049
|
+
if (g) return;
|
|
3050
|
+
const k = i();
|
|
3051
3051
|
let b;
|
|
3052
|
-
|
|
3052
|
+
k.includes(y) ? b = k.filter((v) => v !== y) : e.multiple ? b = [...k, y] : b = [y], (e.open === void 0 || e.open === null) && (a.value = b), e.onOpenChange && e.onOpenChange(b);
|
|
3053
3053
|
}
|
|
3054
|
-
function h(y,
|
|
3054
|
+
function h(y, g) {
|
|
3055
3055
|
return [
|
|
3056
3056
|
"umds-accordion__item",
|
|
3057
3057
|
u(y) ? "umds-accordion__item--open" : "",
|
|
3058
|
-
|
|
3058
|
+
g ? "umds-accordion__item--disabled" : ""
|
|
3059
3059
|
].filter(Boolean).join(" ");
|
|
3060
3060
|
}
|
|
3061
|
-
return (y,
|
|
3061
|
+
return (y, g) => (o(), r("div", {
|
|
3062
3062
|
class: Z(l.value)
|
|
3063
3063
|
}, [
|
|
3064
|
-
(o(!0), r(se, null, Te(n.value, (
|
|
3065
|
-
key:
|
|
3066
|
-
class: Z(h(
|
|
3064
|
+
(o(!0), r(se, null, Te(n.value, (k, b) => (o(), r("div", {
|
|
3065
|
+
key: k.id,
|
|
3066
|
+
class: Z(h(k.id, !!k.disabled))
|
|
3067
3067
|
}, [
|
|
3068
3068
|
m("button", {
|
|
3069
3069
|
type: "button",
|
|
3070
3070
|
class: "umds-accordion__trigger",
|
|
3071
|
-
id: c(
|
|
3072
|
-
onClick: async (v) => p(
|
|
3073
|
-
"aria-expanded": u(
|
|
3074
|
-
"aria-controls": d(
|
|
3075
|
-
disabled:
|
|
3071
|
+
id: c(k.id),
|
|
3072
|
+
onClick: async (v) => p(k.id, !!k.disabled),
|
|
3073
|
+
"aria-expanded": u(k.id),
|
|
3074
|
+
"aria-controls": d(k.id),
|
|
3075
|
+
disabled: k.disabled
|
|
3076
3076
|
}, [
|
|
3077
|
-
m("span", Mu, x(
|
|
3077
|
+
m("span", Mu, x(k.title), 1),
|
|
3078
3078
|
m("span", zu, [
|
|
3079
3079
|
q(ce, {
|
|
3080
3080
|
variant: "inherit",
|
|
@@ -3086,15 +3086,15 @@ const qr = {
|
|
|
3086
3086
|
m("div", {
|
|
3087
3087
|
role: "region",
|
|
3088
3088
|
className: "umds-accordion__body",
|
|
3089
|
-
id: d(
|
|
3090
|
-
"aria-labelledby": c(
|
|
3089
|
+
id: d(k.id),
|
|
3090
|
+
"aria-labelledby": c(k.id)
|
|
3091
3091
|
}, [
|
|
3092
3092
|
m("div", Ru, [
|
|
3093
|
-
y.$slots["content-" +
|
|
3093
|
+
y.$slots["content-" + k.id] ? ee(y.$slots, "content-" + k.id, {
|
|
3094
3094
|
key: 0,
|
|
3095
|
-
item:
|
|
3095
|
+
item: k
|
|
3096
3096
|
}) : (o(), r(se, { key: 1 }, [
|
|
3097
|
-
ne(x(
|
|
3097
|
+
ne(x(k.content), 1)
|
|
3098
3098
|
], 64))
|
|
3099
3099
|
])
|
|
3100
3100
|
], 8, Du)
|
|
@@ -3139,16 +3139,16 @@ const qr = {
|
|
|
3139
3139
|
u.value ? "umds-ailabel--aberto" : "",
|
|
3140
3140
|
e.className
|
|
3141
3141
|
].filter(Boolean).join(" "));
|
|
3142
|
-
function h(
|
|
3142
|
+
function h(g) {
|
|
3143
3143
|
if (!c.value) return;
|
|
3144
|
-
|
|
3145
|
-
const
|
|
3146
|
-
a.value =
|
|
3144
|
+
g.stopPropagation();
|
|
3145
|
+
const k = !u.value;
|
|
3146
|
+
a.value = k, e.onOpenChange && e.onOpenChange(k);
|
|
3147
3147
|
}
|
|
3148
|
-
function y(
|
|
3149
|
-
|
|
3148
|
+
function y(g) {
|
|
3149
|
+
g.stopPropagation(), e.onFix && e.onFix(g);
|
|
3150
3150
|
}
|
|
3151
|
-
return (
|
|
3151
|
+
return (g, k) => (o(), r("span", {
|
|
3152
3152
|
class: Z(p.value),
|
|
3153
3153
|
id: l.value
|
|
3154
3154
|
}, [
|
|
@@ -3159,7 +3159,7 @@ const qr = {
|
|
|
3159
3159
|
"aria-expanded": c.value ? u.value : void 0,
|
|
3160
3160
|
"aria-controls": c.value ? i.value : void 0,
|
|
3161
3161
|
disabled: !c.value,
|
|
3162
|
-
onClick:
|
|
3162
|
+
onClick: k[0] || (k[0] = async (b) => h(b))
|
|
3163
3163
|
}, [
|
|
3164
3164
|
q(ce, {
|
|
3165
3165
|
size: "sm",
|
|
@@ -3186,12 +3186,12 @@ const qr = {
|
|
|
3186
3186
|
m("p", Uu, x(t.notIncludedLabel || "Não considerado"), 1),
|
|
3187
3187
|
m("p", qu, x(t.notIncluded), 1)
|
|
3188
3188
|
])) : f("", !0),
|
|
3189
|
-
ee(
|
|
3189
|
+
ee(g.$slots, "default"),
|
|
3190
3190
|
t.onFix ? (o(), r("button", {
|
|
3191
3191
|
key: 3,
|
|
3192
3192
|
type: "button",
|
|
3193
3193
|
class: "umds-ailabel__acao",
|
|
3194
|
-
onClick:
|
|
3194
|
+
onClick: k[1] || (k[1] = async (b) => y(b))
|
|
3195
3195
|
}, x(t.fixLabel || "Corrigir manualmente"), 1)) : f("", !0)
|
|
3196
3196
|
], 8, Bu)) : f("", !0)
|
|
3197
3197
|
], 10, Nu));
|
|
@@ -3333,11 +3333,11 @@ const qr = {
|
|
|
3333
3333
|
}), u = s(() => e.loading && e.loadingPosition === "start"), c = s(() => e.loading && e.loadingPosition === "end"), d = s(() => e.loading && (e.loadingPosition === "center" || !e.loadingPosition)), p = s(() => {
|
|
3334
3334
|
const b = e.loading, v = e.loadingPosition || "center";
|
|
3335
3335
|
return !b || b && v !== "center";
|
|
3336
|
-
}), h = s(() =>
|
|
3337
|
-
function
|
|
3336
|
+
}), h = s(() => g(e.startIcon)), y = s(() => g(e.endIcon));
|
|
3337
|
+
function g(b) {
|
|
3338
3338
|
return typeof b == "string" ? !0 : Array.isArray(b) ? b.length === 2 && typeof b[0] == "string" && typeof b[1] == "string" : !!b && typeof b == "object" && typeof b.iconName == "string" && typeof b.prefix == "string";
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function k(b) {
|
|
3341
3341
|
e.loading || e.onClick && e.onClick(b);
|
|
3342
3342
|
}
|
|
3343
3343
|
return (b, v) => (o(), r("button", {
|
|
@@ -3351,7 +3351,7 @@ const qr = {
|
|
|
3351
3351
|
tabIndex: t.tabIndex,
|
|
3352
3352
|
"aria-label": t.ariaLabel,
|
|
3353
3353
|
"aria-busy": t.loading,
|
|
3354
|
-
onClick: v[0] || (v[0] = async (L) =>
|
|
3354
|
+
onClick: v[0] || (v[0] = async (L) => k(L)),
|
|
3355
3355
|
class: Z(a.value)
|
|
3356
3356
|
}, [
|
|
3357
3357
|
u.value ? (o(), r("span", tc, [
|
|
@@ -3586,7 +3586,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3586
3586
|
tt(() => {
|
|
3587
3587
|
e.id || (n.value = Ht("umds-segmented"));
|
|
3588
3588
|
});
|
|
3589
|
-
const l = s(() => e.id || n.value), i = s(() => e.options || []), u = s(() => e.name || l.value || void 0), c = s(() => l.value ? l.value + "-label" : void 0), d = s(() => l.value ? l.value + "-error" : void 0), p = s(() => e.value !== void 0 ? e.value : a.value), h = s(() => !!e.invalid || !!e.errorMessage), y = s(() => e.label ? c.value : void 0),
|
|
3589
|
+
const l = s(() => e.id || n.value), i = s(() => e.options || []), u = s(() => e.name || l.value || void 0), c = s(() => l.value ? l.value + "-label" : void 0), d = s(() => l.value ? l.value + "-error" : void 0), p = s(() => e.value !== void 0 ? e.value : a.value), h = s(() => !!e.invalid || !!e.errorMessage), y = s(() => e.label ? c.value : void 0), g = s(() => e.label && !l.value ? e.label : void 0), k = s(() => e.errorMessage ? d.value : void 0), b = s(() => h.value ? "true" : void 0), v = s(() => e.required ? "true" : void 0), L = s(() => [
|
|
3590
3590
|
"umds-segmented",
|
|
3591
3591
|
`umds-segmented--${e.size || "md"}`,
|
|
3592
3592
|
e.variant === "surface" ? "umds-segmented--surface" : "",
|
|
@@ -3628,8 +3628,8 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3628
3628
|
role: "radiogroup",
|
|
3629
3629
|
class: "umds-segmented__track",
|
|
3630
3630
|
"aria-labelledby": y.value,
|
|
3631
|
-
"aria-label":
|
|
3632
|
-
"aria-describedby":
|
|
3631
|
+
"aria-label": g.value,
|
|
3632
|
+
"aria-describedby": k.value,
|
|
3633
3633
|
"aria-invalid": b.value,
|
|
3634
3634
|
"aria-required": v.value
|
|
3635
3635
|
}, [
|
|
@@ -3753,7 +3753,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3753
3753
|
onViewChange: { type: Function }
|
|
3754
3754
|
},
|
|
3755
3755
|
setup(t) {
|
|
3756
|
-
const e = t, a = _(""), n = _(e.defaultView === "week" ? "week" : "month"), l = _(""), i = _(null), u = _(null), c = s(() => pa(e.today) || Pa(/* @__PURE__ */ new Date())), d = s(() => pa(e.date) || pa(a.value) || pa(e.defaultDate) || c.value), p = s(() => (e.view !== void 0 ? e.view : n.value) === "week" ? "week" : "month"), h = s(() => e.weekStartsOn === 1 ? 1 : 0), y = s(() => e.locale || "pt-BR"),
|
|
3756
|
+
const e = t, a = _(""), n = _(e.defaultView === "week" ? "week" : "month"), l = _(""), i = _(null), u = _(null), c = s(() => pa(e.today) || Pa(/* @__PURE__ */ new Date())), d = s(() => pa(e.date) || pa(a.value) || pa(e.defaultDate) || c.value), p = s(() => (e.view !== void 0 ? e.view : n.value) === "week" ? "week" : "month"), h = s(() => e.weekStartsOn === 1 ? 1 : 0), y = s(() => e.locale || "pt-BR"), g = s(() => e.maxVisible && e.maxVisible > 0 ? e.maxVisible : 3), k = s(() => p.value === "week" ? [el(d.value, h.value)] : $c(d.value, h.value)), b = s(() => {
|
|
3757
3757
|
if (p.value === "week") {
|
|
3758
3758
|
const E = el(d.value, h.value), T = new Intl.DateTimeFormat(y.value, {
|
|
3759
3759
|
day: "numeric",
|
|
@@ -3765,7 +3765,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3765
3765
|
return A(d.value, {
|
|
3766
3766
|
month: "long"
|
|
3767
3767
|
}) + " " + $t(d.value).getFullYear();
|
|
3768
|
-
}), v = s(() => (
|
|
3768
|
+
}), v = s(() => (k.value[0] || []).map((T) => ({
|
|
3769
3769
|
iso: T,
|
|
3770
3770
|
short: A(T, {
|
|
3771
3771
|
weekday: "short"
|
|
@@ -3788,7 +3788,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3788
3788
|
e.density === "compact" ? "umds-calendar--compact" : "",
|
|
3789
3789
|
e.className
|
|
3790
3790
|
].filter(Boolean).join(" ")), O = s(() => {
|
|
3791
|
-
const E =
|
|
3791
|
+
const E = k.value.reduce(
|
|
3792
3792
|
(B, R) => B.concat(R),
|
|
3793
3793
|
[]
|
|
3794
3794
|
), T = (B) => E.indexOf(B) !== -1 && (p.value === "week" || Mn(B, d.value));
|
|
@@ -3806,10 +3806,10 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3806
3806
|
return E;
|
|
3807
3807
|
}), I = s(() => {
|
|
3808
3808
|
const E = c.value, T = O.value, B = pa(e.selectedDate), R = p.value === "week";
|
|
3809
|
-
return
|
|
3809
|
+
return k.value.map((J) => ({
|
|
3810
3810
|
key: J[0],
|
|
3811
3811
|
days: J.map((H) => {
|
|
3812
|
-
const ie = $.value[H] || [], be = !R && !Mn(H, d.value), Ee = R ? ie : ie.slice(0,
|
|
3812
|
+
const ie = $.value[H] || [], be = !R && !Mn(H, d.value), Ee = R ? ie : ie.slice(0, g.value), Pe = ie.length - Ee.length;
|
|
3813
3813
|
return {
|
|
3814
3814
|
iso: H,
|
|
3815
3815
|
day: $t(H).getDate(),
|
|
@@ -3892,7 +3892,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3892
3892
|
Ae(c.value);
|
|
3893
3893
|
}
|
|
3894
3894
|
function j(E) {
|
|
3895
|
-
const T =
|
|
3895
|
+
const T = k.value.some(
|
|
3896
3896
|
(R) => R.indexOf(E) !== -1
|
|
3897
3897
|
), B = p.value === "week" || Mn(E, d.value);
|
|
3898
3898
|
if ((!T || !B) && Ae(E), E === l.value && T && B) {
|
|
@@ -3940,7 +3940,7 @@ const Ht = (t) => (uo += 1, t + "-" + uo), pc = ["id"], hc = {
|
|
|
3940
3940
|
function ue(E, T) {
|
|
3941
3941
|
E && E.stopPropagation && E.stopPropagation();
|
|
3942
3942
|
const B = $.value[T] || [];
|
|
3943
|
-
e.onMoreClick && e.onMoreClick(T, B.slice(
|
|
3943
|
+
e.onMoreClick && e.onMoreClick(T, B.slice(g.value));
|
|
3944
3944
|
}
|
|
3945
3945
|
return (E, T) => (o(), r("div", {
|
|
3946
3946
|
ref_key: "rootRef",
|
|
@@ -4180,48 +4180,48 @@ function po(t, e, a) {
|
|
|
4180
4180
|
reference: n,
|
|
4181
4181
|
floating: l
|
|
4182
4182
|
} = t;
|
|
4183
|
-
const i = Et(e), u = bs(e), c = hs(u), d = ea(e), p = i === "y", h = n.x + n.width / 2 - l.width / 2, y = n.y + n.height / 2 - l.height / 2,
|
|
4184
|
-
let
|
|
4183
|
+
const i = Et(e), u = bs(e), c = hs(u), d = ea(e), p = i === "y", h = n.x + n.width / 2 - l.width / 2, y = n.y + n.height / 2 - l.height / 2, g = n[c] / 2 - l[c] / 2;
|
|
4184
|
+
let k;
|
|
4185
4185
|
switch (d) {
|
|
4186
4186
|
case "top":
|
|
4187
|
-
|
|
4187
|
+
k = {
|
|
4188
4188
|
x: h,
|
|
4189
4189
|
y: n.y - l.height
|
|
4190
4190
|
};
|
|
4191
4191
|
break;
|
|
4192
4192
|
case "bottom":
|
|
4193
|
-
|
|
4193
|
+
k = {
|
|
4194
4194
|
x: h,
|
|
4195
4195
|
y: n.y + n.height
|
|
4196
4196
|
};
|
|
4197
4197
|
break;
|
|
4198
4198
|
case "right":
|
|
4199
|
-
|
|
4199
|
+
k = {
|
|
4200
4200
|
x: n.x + n.width,
|
|
4201
4201
|
y
|
|
4202
4202
|
};
|
|
4203
4203
|
break;
|
|
4204
4204
|
case "left":
|
|
4205
|
-
|
|
4205
|
+
k = {
|
|
4206
4206
|
x: n.x - l.width,
|
|
4207
4207
|
y
|
|
4208
4208
|
};
|
|
4209
4209
|
break;
|
|
4210
4210
|
default:
|
|
4211
|
-
|
|
4211
|
+
k = {
|
|
4212
4212
|
x: n.x,
|
|
4213
4213
|
y: n.y
|
|
4214
4214
|
};
|
|
4215
4215
|
}
|
|
4216
4216
|
switch (ja(e)) {
|
|
4217
4217
|
case "start":
|
|
4218
|
-
|
|
4218
|
+
k[u] -= g * (a && p ? -1 : 1);
|
|
4219
4219
|
break;
|
|
4220
4220
|
case "end":
|
|
4221
|
-
|
|
4221
|
+
k[u] += g * (a && p ? -1 : 1);
|
|
4222
4222
|
break;
|
|
4223
4223
|
}
|
|
4224
|
-
return
|
|
4224
|
+
return k;
|
|
4225
4225
|
}
|
|
4226
4226
|
async function ed(t, e) {
|
|
4227
4227
|
var a;
|
|
@@ -4237,9 +4237,9 @@ async function ed(t, e) {
|
|
|
4237
4237
|
boundary: p = "clippingAncestors",
|
|
4238
4238
|
rootBoundary: h = "viewport",
|
|
4239
4239
|
elementContext: y = "floating",
|
|
4240
|
-
altBoundary:
|
|
4241
|
-
padding:
|
|
4242
|
-
} = Va(e, t), b = Qc(
|
|
4240
|
+
altBoundary: g = !1,
|
|
4241
|
+
padding: k = 0
|
|
4242
|
+
} = Va(e, t), b = Qc(k), L = c[g ? y === "floating" ? "reference" : "floating" : y], w = rn(await i.getClippingRect({
|
|
4243
4243
|
element: (a = await (i.isElement == null ? void 0 : i.isElement(L))) == null || a ? L : L.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
4244
4244
|
boundary: p,
|
|
4245
4245
|
rootBoundary: h,
|
|
@@ -4285,7 +4285,7 @@ const td = 50, ad = async (t, e, a) => {
|
|
|
4285
4285
|
}), {
|
|
4286
4286
|
x: h,
|
|
4287
4287
|
y
|
|
4288
|
-
} = po(p, n, d),
|
|
4288
|
+
} = po(p, n, d), g = n, k = 0;
|
|
4289
4289
|
const b = {};
|
|
4290
4290
|
for (let v = 0; v < i.length; v++) {
|
|
4291
4291
|
const L = i[v];
|
|
@@ -4303,7 +4303,7 @@ const td = 50, ad = async (t, e, a) => {
|
|
|
4303
4303
|
x: h,
|
|
4304
4304
|
y,
|
|
4305
4305
|
initialPlacement: n,
|
|
4306
|
-
placement:
|
|
4306
|
+
placement: g,
|
|
4307
4307
|
strategy: l,
|
|
4308
4308
|
middlewareData: b,
|
|
4309
4309
|
rects: p,
|
|
@@ -4316,19 +4316,19 @@ const td = 50, ad = async (t, e, a) => {
|
|
|
4316
4316
|
h = N ?? h, y = K ?? y, b[w] = {
|
|
4317
4317
|
...b[w],
|
|
4318
4318
|
...O
|
|
4319
|
-
}, $ &&
|
|
4319
|
+
}, $ && k < td && (k++, typeof $ == "object" && ($.placement && (g = $.placement), $.rects && (p = $.rects === !0 ? await u.getElementRects({
|
|
4320
4320
|
reference: t,
|
|
4321
4321
|
floating: e,
|
|
4322
4322
|
strategy: l
|
|
4323
4323
|
}) : $.rects), {
|
|
4324
4324
|
x: h,
|
|
4325
4325
|
y
|
|
4326
|
-
} = po(p,
|
|
4326
|
+
} = po(p, g, d)), v = -1);
|
|
4327
4327
|
}
|
|
4328
4328
|
return {
|
|
4329
4329
|
x: h,
|
|
4330
4330
|
y,
|
|
4331
|
-
placement:
|
|
4331
|
+
placement: g,
|
|
4332
4332
|
strategy: l,
|
|
4333
4333
|
middlewareData: b
|
|
4334
4334
|
};
|
|
@@ -4348,16 +4348,16 @@ const td = 50, ad = async (t, e, a) => {
|
|
|
4348
4348
|
} = e, {
|
|
4349
4349
|
mainAxis: h = !0,
|
|
4350
4350
|
crossAxis: y = !0,
|
|
4351
|
-
fallbackPlacements:
|
|
4352
|
-
fallbackStrategy:
|
|
4351
|
+
fallbackPlacements: g,
|
|
4352
|
+
fallbackStrategy: k = "bestFit",
|
|
4353
4353
|
fallbackAxisSideDirection: b = "none",
|
|
4354
4354
|
flipAlignment: v = !0,
|
|
4355
4355
|
...L
|
|
4356
4356
|
} = Va(t, e);
|
|
4357
4357
|
if ((a = i.arrow) != null && a.alignmentOffset)
|
|
4358
4358
|
return {};
|
|
4359
|
-
const w = ea(l), M = Et(c), N = ea(c) === c, K = await (d.isRTL == null ? void 0 : d.isRTL(p.floating)), O =
|
|
4360
|
-
!
|
|
4359
|
+
const w = ea(l), M = Et(c), N = ea(c) === c, K = await (d.isRTL == null ? void 0 : d.isRTL(p.floating)), O = g || (N || !v ? [sn(c)] : Wc(c)), $ = b !== "none";
|
|
4360
|
+
!g && $ && O.push(...Zc(c, v, b, K));
|
|
4361
4361
|
const I = [c, ...O], A = await d.detectOverflow(e, L), z = [];
|
|
4362
4362
|
let P = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
4363
4363
|
if (h && z.push(A[w]), y) {
|
|
@@ -4384,7 +4384,7 @@ const td = 50, ad = async (t, e, a) => {
|
|
|
4384
4384
|
};
|
|
4385
4385
|
let te = (le = P.filter((D) => D.overflows[0] <= 0).sort((D, V) => D.overflows[1] - V.overflows[1])[0]) == null ? void 0 : le.placement;
|
|
4386
4386
|
if (!te)
|
|
4387
|
-
switch (
|
|
4387
|
+
switch (k) {
|
|
4388
4388
|
case "bestFit": {
|
|
4389
4389
|
var fe;
|
|
4390
4390
|
const D = (fe = P.filter((V) => {
|
|
@@ -4421,8 +4421,8 @@ async function od(t, e) {
|
|
|
4421
4421
|
elements: l
|
|
4422
4422
|
} = t, i = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), u = ea(a), c = ja(a), d = Et(a) === "y", p = ld.has(u) ? -1 : 1, h = i && d ? -1 : 1, y = Va(e, t);
|
|
4423
4423
|
let {
|
|
4424
|
-
mainAxis:
|
|
4425
|
-
crossAxis:
|
|
4424
|
+
mainAxis: g,
|
|
4425
|
+
crossAxis: k,
|
|
4426
4426
|
alignmentAxis: b
|
|
4427
4427
|
} = typeof y == "number" ? {
|
|
4428
4428
|
mainAxis: y,
|
|
@@ -4433,12 +4433,12 @@ async function od(t, e) {
|
|
|
4433
4433
|
crossAxis: y.crossAxis || 0,
|
|
4434
4434
|
alignmentAxis: y.alignmentAxis
|
|
4435
4435
|
};
|
|
4436
|
-
return c && typeof b == "number" && (
|
|
4437
|
-
x:
|
|
4438
|
-
y:
|
|
4436
|
+
return c && typeof b == "number" && (k = c === "end" ? b * -1 : b), d ? {
|
|
4437
|
+
x: k * h,
|
|
4438
|
+
y: g * p
|
|
4439
4439
|
} : {
|
|
4440
|
-
x:
|
|
4441
|
-
y:
|
|
4440
|
+
x: g * p,
|
|
4441
|
+
y: k * h
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
4444
|
const sd = function(t) {
|
|
@@ -4492,20 +4492,20 @@ const sd = function(t) {
|
|
|
4492
4492
|
} = Va(t, e), h = {
|
|
4493
4493
|
x: a,
|
|
4494
4494
|
y: n
|
|
4495
|
-
}, y = await i.detectOverflow(e, p),
|
|
4496
|
-
let b = h[
|
|
4495
|
+
}, y = await i.detectOverflow(e, p), g = Et(ea(l)), k = ps(g);
|
|
4496
|
+
let b = h[k], v = h[g];
|
|
4497
4497
|
if (u) {
|
|
4498
|
-
const w =
|
|
4498
|
+
const w = k === "y" ? "top" : "left", M = k === "y" ? "bottom" : "right", N = b + y[w], K = b - y[M];
|
|
4499
4499
|
b = fo(N, b, K);
|
|
4500
4500
|
}
|
|
4501
4501
|
if (c) {
|
|
4502
|
-
const w =
|
|
4502
|
+
const w = g === "y" ? "top" : "left", M = g === "y" ? "bottom" : "right", N = v + y[w], K = v - y[M];
|
|
4503
4503
|
v = fo(N, v, K);
|
|
4504
4504
|
}
|
|
4505
4505
|
const L = d.fn({
|
|
4506
4506
|
...e,
|
|
4507
|
-
[
|
|
4508
|
-
[
|
|
4507
|
+
[k]: b,
|
|
4508
|
+
[g]: v
|
|
4509
4509
|
});
|
|
4510
4510
|
return {
|
|
4511
4511
|
...L,
|
|
@@ -4513,8 +4513,8 @@ const sd = function(t) {
|
|
|
4513
4513
|
x: L.x - a,
|
|
4514
4514
|
y: L.y - n,
|
|
4515
4515
|
enabled: {
|
|
4516
|
-
[
|
|
4517
|
-
[
|
|
4516
|
+
[k]: u,
|
|
4517
|
+
[g]: c
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
@@ -4535,17 +4535,17 @@ const sd = function(t) {
|
|
|
4535
4535
|
apply: d = () => {
|
|
4536
4536
|
},
|
|
4537
4537
|
...p
|
|
4538
|
-
} = Va(t, e), h = await u.detectOverflow(e, p), y = ea(l),
|
|
4538
|
+
} = Va(t, e), h = await u.detectOverflow(e, p), y = ea(l), g = ja(l), k = Et(l) === "y", {
|
|
4539
4539
|
width: b,
|
|
4540
4540
|
height: v
|
|
4541
4541
|
} = i.floating;
|
|
4542
4542
|
let L, w;
|
|
4543
|
-
y === "top" || y === "bottom" ? (L = y, w =
|
|
4543
|
+
y === "top" || y === "bottom" ? (L = y, w = g === (await (u.isRTL == null ? void 0 : u.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = y, L = g === "end" ? "top" : "bottom");
|
|
4544
4544
|
const M = v - h.top - h.bottom, N = b - h.left - h.right, K = ka(v - h[L], M), O = ka(b - h[w], N), $ = !e.middlewareData.shift;
|
|
4545
4545
|
let I = K, A = O;
|
|
4546
|
-
if ((a = e.middlewareData.shift) != null && a.enabled.x && (A = N), (n = e.middlewareData.shift) != null && n.enabled.y && (I = M), $ && !
|
|
4546
|
+
if ((a = e.middlewareData.shift) != null && a.enabled.x && (A = N), (n = e.middlewareData.shift) != null && n.enabled.y && (I = M), $ && !g) {
|
|
4547
4547
|
const P = kt(h.left, 0), Y = kt(h.right, 0), le = kt(h.top, 0), fe = kt(h.bottom, 0);
|
|
4548
|
-
|
|
4548
|
+
k ? A = b - 2 * (P !== 0 || Y !== 0 ? P + Y : kt(h.left, h.right)) : I = v - 2 * (le !== 0 || fe !== 0 ? le + fe : kt(h.top, h.bottom));
|
|
4549
4549
|
}
|
|
4550
4550
|
await d({
|
|
4551
4551
|
...e,
|
|
@@ -4722,9 +4722,9 @@ function fa(t, e, a, n) {
|
|
|
4722
4722
|
const c = vd(i, a, n) ? xs(i) : Rt(0);
|
|
4723
4723
|
let d = (l.left + c.x) / u.x, p = (l.top + c.y) / u.y, h = l.width / u.x, y = l.height / u.y;
|
|
4724
4724
|
if (i) {
|
|
4725
|
-
const
|
|
4726
|
-
let b =
|
|
4727
|
-
for (; v && n &&
|
|
4725
|
+
const g = xt(i), k = n && St(n) ? xt(n) : n;
|
|
4726
|
+
let b = g, v = al(b);
|
|
4727
|
+
for (; v && n && k !== b; ) {
|
|
4728
4728
|
const L = ya(v), w = v.getBoundingClientRect(), M = It(v), N = w.left + (v.clientLeft + parseFloat(M.paddingLeft)) * L.x, K = w.top + (v.clientTop + parseFloat(M.paddingTop)) * L.y;
|
|
4729
4729
|
d *= L.x, p *= L.y, h *= L.x, y *= L.y, d += N, p += K, b = xt(v), v = al(b);
|
|
4730
4730
|
}
|
|
@@ -4763,15 +4763,15 @@ function pd(t) {
|
|
|
4763
4763
|
}, p = Rt(1);
|
|
4764
4764
|
const h = Rt(0), y = Kt(n);
|
|
4765
4765
|
if ((y || !y && !i) && ((Ca(n) !== "body" || Ha(u)) && (d = gn(n)), y)) {
|
|
4766
|
-
const
|
|
4767
|
-
p = ya(n), h.x =
|
|
4766
|
+
const k = fa(n);
|
|
4767
|
+
p = ya(n), h.x = k.x + n.clientLeft, h.y = k.y + n.clientTop;
|
|
4768
4768
|
}
|
|
4769
|
-
const
|
|
4769
|
+
const g = u && !y && !i ? _s(u, d) : Rt(0);
|
|
4770
4770
|
return {
|
|
4771
4771
|
width: a.width * p.x,
|
|
4772
4772
|
height: a.height * p.y,
|
|
4773
|
-
x: a.x * p.x - d.scrollLeft * p.x + h.x +
|
|
4774
|
-
y: a.y * p.y - d.scrollTop * p.y + h.y +
|
|
4773
|
+
x: a.x * p.x - d.scrollLeft * p.x + h.x + g.x,
|
|
4774
|
+
y: a.y * p.y - d.scrollTop * p.y + h.y + g.y
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
4777
|
function hd(t) {
|
|
@@ -4799,7 +4799,7 @@ function yd(t, e) {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
const p = kn(n);
|
|
4801
4801
|
if (p <= 0) {
|
|
4802
|
-
const h = n.ownerDocument, y = h.body,
|
|
4802
|
+
const h = n.ownerDocument, y = h.body, g = getComputedStyle(y), k = h.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(n.clientWidth - y.clientWidth - k);
|
|
4803
4803
|
b <= bo && (i -= b);
|
|
4804
4804
|
} else p <= bo && (i += p);
|
|
4805
4805
|
return {
|
|
@@ -4863,9 +4863,9 @@ function xd(t) {
|
|
|
4863
4863
|
} = t;
|
|
4864
4864
|
const u = [...a === "clippingAncestors" ? yn(e) ? [] : kd(e, this._c) : [].concat(a), n], c = yo(e, u[0], l);
|
|
4865
4865
|
let d = c.top, p = c.right, h = c.bottom, y = c.left;
|
|
4866
|
-
for (let
|
|
4867
|
-
const
|
|
4868
|
-
d = kt(
|
|
4866
|
+
for (let g = 1; g < u.length; g++) {
|
|
4867
|
+
const k = yo(e, u[g], l);
|
|
4868
|
+
d = kt(k.top, d), p = ka(k.right, p), h = ka(k.bottom, h), y = kt(k.left, y);
|
|
4869
4869
|
}
|
|
4870
4870
|
return {
|
|
4871
4871
|
width: p - y,
|
|
@@ -4896,14 +4896,14 @@ function Cd(t, e, a) {
|
|
|
4896
4896
|
}
|
|
4897
4897
|
if (n || !n && !i)
|
|
4898
4898
|
if ((Ca(e) !== "body" || Ha(l)) && (c = gn(e)), n) {
|
|
4899
|
-
const
|
|
4900
|
-
d.x =
|
|
4899
|
+
const k = fa(e, !0, i, e);
|
|
4900
|
+
d.x = k.x + e.clientLeft, d.y = k.y + e.clientTop;
|
|
4901
4901
|
} else l && p();
|
|
4902
4902
|
i && !n && l && p();
|
|
4903
|
-
const h = l && !n && !i ? _s(l, c) : Rt(0), y = u.left + c.scrollLeft - d.x - h.x,
|
|
4903
|
+
const h = l && !n && !i ? _s(l, c) : Rt(0), y = u.left + c.scrollLeft - d.x - h.x, g = u.top + c.scrollTop - d.y - h.y;
|
|
4904
4904
|
return {
|
|
4905
4905
|
x: y,
|
|
4906
|
-
y:
|
|
4906
|
+
y: g,
|
|
4907
4907
|
width: u.width,
|
|
4908
4908
|
height: u.height
|
|
4909
4909
|
};
|
|
@@ -4979,12 +4979,12 @@ function $d(t, e) {
|
|
|
4979
4979
|
const p = t.getBoundingClientRect(), {
|
|
4980
4980
|
left: h,
|
|
4981
4981
|
top: y,
|
|
4982
|
-
width:
|
|
4983
|
-
height:
|
|
4982
|
+
width: g,
|
|
4983
|
+
height: k
|
|
4984
4984
|
} = p;
|
|
4985
|
-
if (c || e(), !
|
|
4985
|
+
if (c || e(), !g || !k)
|
|
4986
4986
|
return;
|
|
4987
|
-
const b = Ya(y), v = Ya(l.clientWidth - (h +
|
|
4987
|
+
const b = Ya(y), v = Ya(l.clientWidth - (h + g)), L = Ya(l.clientHeight - (y + k)), w = Ya(h), N = {
|
|
4988
4988
|
rootMargin: -b + "px " + -v + "px " + -L + "px " + -w + "px",
|
|
4989
4989
|
threshold: kt(0, ka(1, d)) || 1
|
|
4990
4990
|
};
|
|
@@ -5028,14 +5028,14 @@ function Ut(t, e, a, n) {
|
|
|
5028
5028
|
}), i && w.addEventListener("resize", a);
|
|
5029
5029
|
});
|
|
5030
5030
|
const y = p && c ? $d(p, a) : null;
|
|
5031
|
-
let
|
|
5032
|
-
u && (
|
|
5031
|
+
let g = -1, k = null;
|
|
5032
|
+
u && (k = new ResizeObserver((w) => {
|
|
5033
5033
|
let [M] = w;
|
|
5034
|
-
M && M.target === p &&
|
|
5034
|
+
M && M.target === p && k && e && (k.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
5035
5035
|
var N;
|
|
5036
|
-
(N =
|
|
5036
|
+
(N = k) == null || N.observe(e);
|
|
5037
5037
|
})), a();
|
|
5038
|
-
}), p && !d &&
|
|
5038
|
+
}), p && !d && k.observe(p), e && k.observe(e));
|
|
5039
5039
|
let b, v = d ? fa(t) : null;
|
|
5040
5040
|
d && L();
|
|
5041
5041
|
function L() {
|
|
@@ -5046,7 +5046,7 @@ function Ut(t, e, a, n) {
|
|
|
5046
5046
|
var w;
|
|
5047
5047
|
h.forEach((M) => {
|
|
5048
5048
|
l && M.removeEventListener("scroll", a), i && M.removeEventListener("resize", a);
|
|
5049
|
-
}), y?.(), (w =
|
|
5049
|
+
}), y?.(), (w = k) == null || w.disconnect(), k = null, d && cancelAnimationFrame(b);
|
|
5050
5050
|
};
|
|
5051
5051
|
}
|
|
5052
5052
|
const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
@@ -5084,7 +5084,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5084
5084
|
onStepChange: { type: Function }
|
|
5085
5085
|
},
|
|
5086
5086
|
setup(t) {
|
|
5087
|
-
const e = t, a = _(e.defaultStep || 0), n = _(""), l = _(!1), i = _(!1), u = _(!1), c = _(0), d = _(0), p = _(0), h = _(0), y = _(0),
|
|
5087
|
+
const e = t, a = _(e.defaultStep || 0), n = _(""), l = _(!1), i = _(!1), u = _(!1), c = _(0), d = _(0), p = _(0), h = _(0), y = _(0), g = _(0), k = _(0), b = _(null), v = _(null), L = _(null), w = _(null), M = _(null);
|
|
5088
5088
|
tt(() => {
|
|
5089
5089
|
n.value = Ht("umds-coachmark"), ie();
|
|
5090
5090
|
}), lt(() => {
|
|
@@ -5115,7 +5115,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5115
5115
|
}), ue = s(() => {
|
|
5116
5116
|
if (i.value)
|
|
5117
5117
|
return {
|
|
5118
|
-
transform: "translate(" + y.value + "px, " +
|
|
5118
|
+
transform: "translate(" + y.value + "px, " + g.value + "px)",
|
|
5119
5119
|
opacity: u.value ? 1 : 0
|
|
5120
5120
|
};
|
|
5121
5121
|
});
|
|
@@ -5149,7 +5149,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5149
5149
|
]
|
|
5150
5150
|
}).then((Oe) => {
|
|
5151
5151
|
const Ke = typeof window < "u" && window.devicePixelRatio || 1;
|
|
5152
|
-
y.value = Math.round(Oe.x * Ke) / Ke,
|
|
5152
|
+
y.value = Math.round(Oe.x * Ke) / Ke, g.value = Math.round(Oe.y * Ke) / Ke, u.value = !0;
|
|
5153
5153
|
});
|
|
5154
5154
|
}
|
|
5155
5155
|
function B() {
|
|
@@ -5184,13 +5184,13 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5184
5184
|
function ie() {
|
|
5185
5185
|
if (!(typeof document > "u")) {
|
|
5186
5186
|
if (U.value && !l.value && !b.value) {
|
|
5187
|
-
|
|
5188
|
-
|
|
5187
|
+
k.value < 30 && requestAnimationFrame(() => {
|
|
5188
|
+
k.value = k.value + 1;
|
|
5189
5189
|
});
|
|
5190
5190
|
return;
|
|
5191
5191
|
}
|
|
5192
5192
|
if (U.value && !l.value)
|
|
5193
|
-
l.value = !0,
|
|
5193
|
+
l.value = !0, k.value = 0, L.value || (L.value = document.activeElement), B(), b.value && b.value.focus({
|
|
5194
5194
|
preventScroll: !0
|
|
5195
5195
|
}), V.value || J();
|
|
5196
5196
|
else if (U.value && l.value && w.value !== O.value)
|
|
@@ -5386,8 +5386,8 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5386
5386
|
e.className
|
|
5387
5387
|
].filter(Boolean).join(" ")), u = s(() => e.maxHeight ? {
|
|
5388
5388
|
maxHeight: e.maxHeight + "px"
|
|
5389
|
-
} : void 0), c = s(() => e.ariaLabel || e.language || "Código"), d = s(() => e.copyLabel || "Copiar"), p = s(() => e.copiedLabel || "Copiado"), h = s(() => a.value ? p.value : d.value), y = s(() => a.value ? Pt : Cu),
|
|
5390
|
-
function
|
|
5389
|
+
} : void 0), c = s(() => e.ariaLabel || e.language || "Código"), d = s(() => e.copyLabel || "Copiar"), p = s(() => e.copiedLabel || "Copiado"), h = s(() => a.value ? p.value : d.value), y = s(() => a.value ? Pt : Cu), g = s(() => a.value ? p.value : "");
|
|
5390
|
+
function k() {
|
|
5391
5391
|
return e.code !== void 0 ? e.code : n.value && n.value.textContent || "";
|
|
5392
5392
|
}
|
|
5393
5393
|
function b(w) {
|
|
@@ -5406,7 +5406,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5406
5406
|
}, 2e3);
|
|
5407
5407
|
}
|
|
5408
5408
|
function L() {
|
|
5409
|
-
const w =
|
|
5409
|
+
const w = k();
|
|
5410
5410
|
if (typeof navigator < "u" && navigator.clipboard && navigator.clipboard.writeText) {
|
|
5411
5411
|
navigator.clipboard.writeText(w).then(
|
|
5412
5412
|
() => v(w),
|
|
@@ -5456,7 +5456,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5456
5456
|
ee(w.$slots, "default")
|
|
5457
5457
|
], 512)
|
|
5458
5458
|
], 12, Bd),
|
|
5459
|
-
m("span", Fd, x(
|
|
5459
|
+
m("span", Fd, x(g.value), 1)
|
|
5460
5460
|
], 10, Dd));
|
|
5461
5461
|
}
|
|
5462
5462
|
}), ua = [], xn = (t) => {
|
|
@@ -5512,7 +5512,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5512
5512
|
"umds-confirm-dialog",
|
|
5513
5513
|
`umds-confirm-dialog--${e.variant || "info"}`,
|
|
5514
5514
|
e.className
|
|
5515
|
-
].filter(Boolean).join(" ")), y = s(() => e.variant === "negative" ? ms : hn),
|
|
5515
|
+
].filter(Boolean).join(" ")), y = s(() => e.variant === "negative" ? ms : hn), g = s(() => e.variant === "negative" ? "umds-confirm-dialog__btn umds-confirm-dialog__btn--negative" : "umds-confirm-dialog__btn umds-confirm-dialog__btn--info"), k = s(() => e.confirmLoading ? e.loadingLabel || "Aguarde..." : e.confirmLabel || "Confirmar");
|
|
5516
5516
|
mt(() => {
|
|
5517
5517
|
c.value = v, M();
|
|
5518
5518
|
});
|
|
@@ -5587,8 +5587,8 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5587
5587
|
type: "button",
|
|
5588
5588
|
onClick: O[1] || (O[1] = async ($) => t.onConfirm?.($)),
|
|
5589
5589
|
disabled: t.confirmLoading || t.confirmDisabled,
|
|
5590
|
-
class: Z(
|
|
5591
|
-
}, x(
|
|
5590
|
+
class: Z(g.value)
|
|
5591
|
+
}, x(k.value), 11, Wd)
|
|
5592
5592
|
])
|
|
5593
5593
|
], 42, Pd)
|
|
5594
5594
|
], 2)) : f("", !0);
|
|
@@ -5632,16 +5632,16 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5632
5632
|
},
|
|
5633
5633
|
setup(t) {
|
|
5634
5634
|
const e = t, a = s(() => e.risk || "medio"), n = s(() => e.confirmPhrase || "CONFIRMAR"), l = s(() => a.value === "alto"), i = s(() => l.value ? (e.typedValue || "").trim().toUpperCase() === n.value.toUpperCase() : !0), u = s(() => (e.typePhraseLabel || "Para confirmar, digite") + " "), c = s(() => a.value === "alto" ? "negative" : "info"), d = s(() => e.affected || []), p = s(() => ["umds-confirmai", `umds-confirmai--${a.value}`, e.className].filter(Boolean).join(" "));
|
|
5635
|
-
function h(
|
|
5636
|
-
e.onTypedValueChange && e.onTypedValueChange(
|
|
5635
|
+
function h(k) {
|
|
5636
|
+
e.onTypedValueChange && e.onTypedValueChange(k.target.value);
|
|
5637
5637
|
}
|
|
5638
|
-
function y(
|
|
5639
|
-
e.onCancel && e.onCancel(
|
|
5638
|
+
function y(k) {
|
|
5639
|
+
e.onCancel && e.onCancel(k);
|
|
5640
5640
|
}
|
|
5641
|
-
function k
|
|
5642
|
-
i.value && e.onConfirm && e.onConfirm(
|
|
5641
|
+
function g(k) {
|
|
5642
|
+
i.value && e.onConfirm && e.onConfirm(k);
|
|
5643
5643
|
}
|
|
5644
|
-
return (
|
|
5644
|
+
return (k, b) => (o(), ke(Yd, {
|
|
5645
5645
|
open: t.open,
|
|
5646
5646
|
title: t.title,
|
|
5647
5647
|
description: t.description,
|
|
@@ -5651,7 +5651,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5651
5651
|
confirmLoading: t.confirmLoading,
|
|
5652
5652
|
loadingLabel: t.loadingLabel,
|
|
5653
5653
|
confirmDisabled: !i.value,
|
|
5654
|
-
onConfirm: (v) =>
|
|
5654
|
+
onConfirm: (v) => g(v),
|
|
5655
5655
|
onCancel: (v) => y(v)
|
|
5656
5656
|
}, {
|
|
5657
5657
|
default: pe(() => [
|
|
@@ -5668,7 +5668,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5668
5668
|
(o(!0), r(se, null, Te(d.value, (v, L) => (o(), r("li", { key: v }, x(v), 1))), 128))
|
|
5669
5669
|
], 8, Zd)
|
|
5670
5670
|
])) : f("", !0),
|
|
5671
|
-
ee(
|
|
5671
|
+
ee(k.$slots, "default"),
|
|
5672
5672
|
l.value ? (o(), r("div", Jd, [
|
|
5673
5673
|
m("p", Qd, [
|
|
5674
5674
|
q(ce, {
|
|
@@ -5891,9 +5891,9 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5891
5891
|
onOpenChange: { type: Function }
|
|
5892
5892
|
},
|
|
5893
5893
|
setup(t) {
|
|
5894
|
-
const e = t, a = _(!1), n = _(!0), l = _(!1), i = _(!1), u = _(!1), c = _(-1), d = _(!1), p = _(0), h = _(0), y = _(null),
|
|
5894
|
+
const e = t, a = _(!1), n = _(!0), l = _(!1), i = _(!1), u = _(!1), c = _(-1), d = _(!1), p = _(0), h = _(0), y = _(null), g = _(null), k = _(null), b = _(null), v = _(null), L = _(null);
|
|
5895
5895
|
tt(() => {
|
|
5896
|
-
V(),
|
|
5896
|
+
V(), g.value && (n.value = !!A(), z());
|
|
5897
5897
|
}), lt(() => {
|
|
5898
5898
|
le(), Ae();
|
|
5899
5899
|
});
|
|
@@ -5914,7 +5914,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5914
5914
|
V(), z(), d.value && a.value && l.value && b.value && (d.value = !1, ue());
|
|
5915
5915
|
});
|
|
5916
5916
|
function A() {
|
|
5917
|
-
return
|
|
5917
|
+
return g.value ? g.value.querySelector(
|
|
5918
5918
|
'button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
5919
5919
|
) : null;
|
|
5920
5920
|
}
|
|
@@ -5923,9 +5923,9 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5923
5923
|
R && (R.setAttribute("aria-haspopup", "menu"), R.setAttribute("aria-expanded", O.value));
|
|
5924
5924
|
}
|
|
5925
5925
|
function P() {
|
|
5926
|
-
if (!y.value || !
|
|
5926
|
+
if (!y.value || !k.value) return;
|
|
5927
5927
|
const R = e.placement ?? "bottom-start";
|
|
5928
|
-
Gt(y.value,
|
|
5928
|
+
Gt(y.value, k.value, {
|
|
5929
5929
|
placement: R,
|
|
5930
5930
|
strategy: "fixed",
|
|
5931
5931
|
middleware: [
|
|
@@ -5941,9 +5941,9 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5941
5941
|
});
|
|
5942
5942
|
}
|
|
5943
5943
|
function Y() {
|
|
5944
|
-
!y.value || !
|
|
5944
|
+
!y.value || !k.value || (v.value = Ut(
|
|
5945
5945
|
y.value,
|
|
5946
|
-
|
|
5946
|
+
k.value,
|
|
5947
5947
|
() => P()
|
|
5948
5948
|
));
|
|
5949
5949
|
}
|
|
@@ -5954,7 +5954,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5954
5954
|
if (typeof document > "u" || L.value) return;
|
|
5955
5955
|
const R = (J) => {
|
|
5956
5956
|
const H = J.target;
|
|
5957
|
-
y.value && y.value.contains(H) ||
|
|
5957
|
+
y.value && y.value.contains(H) || k.value && k.value.contains(H) || te(!1);
|
|
5958
5958
|
};
|
|
5959
5959
|
L.value = R, document.addEventListener("mousedown", R, !0);
|
|
5960
5960
|
}
|
|
@@ -5972,9 +5972,9 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5972
5972
|
a.value && (M.value || (i.value = !1), u.value = !1, c.value = -1, d.value = !1, Ae(), le(), a.value = !1, l.value = !1, e.onOpenChange && e.onOpenChange(!1), R !== !1 && D());
|
|
5973
5973
|
}
|
|
5974
5974
|
function D() {
|
|
5975
|
-
if (!
|
|
5975
|
+
if (!g.value) return;
|
|
5976
5976
|
const R = A();
|
|
5977
|
-
R ? R.focus() :
|
|
5977
|
+
R ? R.focus() : g.value.focus();
|
|
5978
5978
|
}
|
|
5979
5979
|
function V() {
|
|
5980
5980
|
if (!M.value) return;
|
|
@@ -5983,7 +5983,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
5983
5983
|
if (R.value)
|
|
5984
5984
|
oe();
|
|
5985
5985
|
else {
|
|
5986
|
-
const J = typeof document < "u" ? document.activeElement : null, H = !!(J && (
|
|
5986
|
+
const J = typeof document < "u" ? document.activeElement : null, H = !!(J && (k.value && k.value.contains(J) || y.value && y.value.contains(J)));
|
|
5987
5987
|
te(H);
|
|
5988
5988
|
}
|
|
5989
5989
|
}
|
|
@@ -6065,7 +6065,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6065
6065
|
m("span", {
|
|
6066
6066
|
class: "umds-dropdown__trigger",
|
|
6067
6067
|
ref_key: "triggerButtonRef",
|
|
6068
|
-
ref:
|
|
6068
|
+
ref: g,
|
|
6069
6069
|
role: n.value ? void 0 : "button",
|
|
6070
6070
|
tabIndex: n.value ? void 0 : 0,
|
|
6071
6071
|
"aria-haspopup": n.value ? void 0 : "menu",
|
|
@@ -6080,7 +6080,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6080
6080
|
key: 0,
|
|
6081
6081
|
class: "umds-dropdown__floating",
|
|
6082
6082
|
ref_key: "floatingRef",
|
|
6083
|
-
ref:
|
|
6083
|
+
ref: k,
|
|
6084
6084
|
style: Ve($.value)
|
|
6085
6085
|
}, [
|
|
6086
6086
|
m("ul", {
|
|
@@ -6182,7 +6182,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6182
6182
|
"umds-app-header",
|
|
6183
6183
|
e.bordered === !1 ? "umds-app-header--sem-borda" : "",
|
|
6184
6184
|
e.className
|
|
6185
|
-
].filter(Boolean).join(" ")),
|
|
6185
|
+
].filter(Boolean).join(" ")), g = s(() => e.userMenu || e.userMenuOpen !== void 0 ? "menu" : void 0), k = s(() => e.userMenu || e.userMenuOpen !== void 0 ? !!e.userMenuOpen : void 0);
|
|
6186
6186
|
function b(N) {
|
|
6187
6187
|
const K = N.querySelector(".umds-app-nav-item__rotulo"), O = N.querySelector(".umds-app-nav-item__contador");
|
|
6188
6188
|
let $ = "";
|
|
@@ -6330,8 +6330,8 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6330
6330
|
m("button", {
|
|
6331
6331
|
type: "button",
|
|
6332
6332
|
class: "umds-app-header__usuario-gatilho",
|
|
6333
|
-
"aria-haspopup":
|
|
6334
|
-
"aria-expanded":
|
|
6333
|
+
"aria-haspopup": g.value,
|
|
6334
|
+
"aria-expanded": k.value,
|
|
6335
6335
|
onClick: K[2] || (K[2] = async (O) => t.onUserClick && t.onUserClick())
|
|
6336
6336
|
}, [
|
|
6337
6337
|
m("span", zf, x(t.userInitials), 1),
|
|
@@ -6512,25 +6512,25 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6512
6512
|
e.collapsed ? "umds-app-sidebar--fechada" : "",
|
|
6513
6513
|
e.className
|
|
6514
6514
|
].filter(Boolean).join(" ")), n = s(() => e.items || []), l = s(() => e.ariaLabel || "Navegação principal"), i = s(() => e.collapsed ? e.expandLabel || "Abrir a navegação" : e.collapseLabel || "Fechar a navegação"), u = s(() => e.collapsed ? Zr : $u);
|
|
6515
|
-
function c(
|
|
6515
|
+
function c(g) {
|
|
6516
6516
|
return [
|
|
6517
6517
|
"umds-app-sidebar__item",
|
|
6518
|
-
e.activeId ===
|
|
6518
|
+
e.activeId === g.id ? "umds-app-sidebar__item--ativo" : ""
|
|
6519
6519
|
].filter(Boolean).join(" ");
|
|
6520
6520
|
}
|
|
6521
|
-
function d(
|
|
6522
|
-
return e.activeId ===
|
|
6521
|
+
function d(g) {
|
|
6522
|
+
return e.activeId === g.id ? "page" : void 0;
|
|
6523
6523
|
}
|
|
6524
|
-
function p(
|
|
6525
|
-
return e.collapsed ?
|
|
6524
|
+
function p(g) {
|
|
6525
|
+
return e.collapsed ? g.label : void 0;
|
|
6526
6526
|
}
|
|
6527
|
-
function h(
|
|
6528
|
-
|
|
6527
|
+
function h(g) {
|
|
6528
|
+
g.disabled || e.onSelect && e.onSelect(g.id);
|
|
6529
6529
|
}
|
|
6530
6530
|
function y() {
|
|
6531
6531
|
e.onToggle && e.onToggle(!e.collapsed);
|
|
6532
6532
|
}
|
|
6533
|
-
return (
|
|
6533
|
+
return (g, k) => (o(), r("nav", {
|
|
6534
6534
|
class: Z(a.value),
|
|
6535
6535
|
"aria-label": l.value
|
|
6536
6536
|
}, [
|
|
@@ -6560,7 +6560,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6560
6560
|
]))), 128))
|
|
6561
6561
|
]),
|
|
6562
6562
|
m("div", Xf, [
|
|
6563
|
-
ee(
|
|
6563
|
+
ee(g.$slots, "footer", {}, () => [
|
|
6564
6564
|
ne(x(t.footer), 1)
|
|
6565
6565
|
]),
|
|
6566
6566
|
t.toggleable !== !1 ? (o(), r("button", {
|
|
@@ -6569,7 +6569,7 @@ const qt = sd, Wt = id, Yt = nd, Sd = rd, Gt = (t, e, a) => {
|
|
|
6569
6569
|
class: "umds-app-sidebar__alternar",
|
|
6570
6570
|
"aria-label": i.value,
|
|
6571
6571
|
"aria-expanded": !t.collapsed,
|
|
6572
|
-
onClick:
|
|
6572
|
+
onClick: k[0] || (k[0] = async (b) => y())
|
|
6573
6573
|
}, [
|
|
6574
6574
|
q(ce, {
|
|
6575
6575
|
size: "sm",
|
|
@@ -6686,7 +6686,7 @@ const em = {
|
|
|
6686
6686
|
setup(t) {
|
|
6687
6687
|
const e = t, a = Ea(), n = _(!1), l = _(!1), i = _(!1), u = _(!1), c = _(0), d = _(0), p = _(""), h = _(""), y = _(
|
|
6688
6688
|
`umds-attachment-card-${Math.random().toString(36).slice(2, 9)}`
|
|
6689
|
-
),
|
|
6689
|
+
), g = _(null), k = _(null), b = _(null), v = _(null), L = _(null), w = _(null), M = _(null);
|
|
6690
6690
|
lt(() => {
|
|
6691
6691
|
Pe(), Ee();
|
|
6692
6692
|
});
|
|
@@ -6735,7 +6735,7 @@ const em = {
|
|
|
6735
6735
|
return e.copyErrorLabel ? e.copyErrorLabel($e) : `Não foi possível copiar ${$e}`;
|
|
6736
6736
|
}
|
|
6737
6737
|
function H() {
|
|
6738
|
-
!
|
|
6738
|
+
!g.value || !k.value || Gt(g.value, k.value, {
|
|
6739
6739
|
placement: "bottom-start",
|
|
6740
6740
|
strategy: "fixed",
|
|
6741
6741
|
middleware: [
|
|
@@ -6758,14 +6758,14 @@ const em = {
|
|
|
6758
6758
|
$e ? $e.focus() : b.value.focus(), u.value = !1;
|
|
6759
6759
|
}
|
|
6760
6760
|
function be() {
|
|
6761
|
-
if (!L.value &&
|
|
6762
|
-
k.value,
|
|
6761
|
+
if (!L.value && g.value && k.value && (L.value = Ut(
|
|
6763
6762
|
g.value,
|
|
6763
|
+
k.value,
|
|
6764
6764
|
() => H()
|
|
6765
6765
|
)), !w.value && typeof document < "u") {
|
|
6766
6766
|
const $e = (Ne) => {
|
|
6767
6767
|
const je = Ne.target;
|
|
6768
|
-
|
|
6768
|
+
g.value && g.value.contains(je) || k.value && k.value.contains(je) || Ye(!1);
|
|
6769
6769
|
};
|
|
6770
6770
|
w.value = $e, document.addEventListener("mousedown", $e, !0);
|
|
6771
6771
|
}
|
|
@@ -6786,7 +6786,7 @@ const em = {
|
|
|
6786
6786
|
Pe(), $e && (l.value = !0, u.value = !0), n.value = !0;
|
|
6787
6787
|
}
|
|
6788
6788
|
function Ye($e) {
|
|
6789
|
-
Pe(), n.value && (h.value = "", Ee(), n.value = !1, l.value = !1, i.value = !1, u.value = !1, $e &&
|
|
6789
|
+
Pe(), n.value && (h.value = "", Ee(), n.value = !1, l.value = !1, i.value = !1, u.value = !1, $e && g.value && g.value.focus());
|
|
6790
6790
|
}
|
|
6791
6791
|
function Xe() {
|
|
6792
6792
|
l.value || (Pe(), v.value = setTimeout(() => {
|
|
@@ -6798,7 +6798,7 @@ const em = {
|
|
|
6798
6798
|
}
|
|
6799
6799
|
function Le($e) {
|
|
6800
6800
|
const Ne = $e.relatedTarget;
|
|
6801
|
-
Ne && (
|
|
6801
|
+
Ne && (g.value && g.value.contains(Ne) || k.value && k.value.contains(Ne) || Ye(!1));
|
|
6802
6802
|
}
|
|
6803
6803
|
function me($e) {
|
|
6804
6804
|
$e.key === "Escape" && n.value && ($e.preventDefault(), Ye(!0));
|
|
@@ -6864,7 +6864,7 @@ const em = {
|
|
|
6864
6864
|
type: "button",
|
|
6865
6865
|
"aria-haspopup": "dialog",
|
|
6866
6866
|
ref_key: "seloRef",
|
|
6867
|
-
ref:
|
|
6867
|
+
ref: g,
|
|
6868
6868
|
class: Z(O.value),
|
|
6869
6869
|
"aria-expanded": Ae.value,
|
|
6870
6870
|
"aria-controls": oe.value,
|
|
@@ -6888,7 +6888,7 @@ const em = {
|
|
|
6888
6888
|
key: 0,
|
|
6889
6889
|
class: "umds-attachment-card__flutuante",
|
|
6890
6890
|
ref_key: "flutuanteRef",
|
|
6891
|
-
ref:
|
|
6891
|
+
ref: k,
|
|
6892
6892
|
style: Ve(he.value)
|
|
6893
6893
|
}, [
|
|
6894
6894
|
m("div", {
|
|
@@ -7050,21 +7050,21 @@ const em = {
|
|
|
7050
7050
|
},
|
|
7051
7051
|
setup(t) {
|
|
7052
7052
|
const e = t, a = s(() => e.avatars || Array()), n = s(() => e.max || 4), l = s(() => a.value.slice(0, n.value)), i = s(() => {
|
|
7053
|
-
const
|
|
7054
|
-
return (
|
|
7053
|
+
const k = a.value.length;
|
|
7054
|
+
return (k > n.value ? k - n.value : 0) + (e.overflowCount || 0);
|
|
7055
7055
|
}), u = s(() => i.value > 0), c = s(() => e.overflowAriaLabel ? e.overflowAriaLabel(i.value) : "Mais " + i.value + " avatares"), d = s(() => e.overflowTitle ? e.overflowTitle(i.value) : i.value + " outros"), p = s(() => {
|
|
7056
7056
|
if (e.overlap === void 0 && e.ring === void 0)
|
|
7057
7057
|
return;
|
|
7058
|
-
const
|
|
7059
|
-
return e.overlap !== void 0 && (
|
|
7058
|
+
const k = {};
|
|
7059
|
+
return e.overlap !== void 0 && (k["--umds-avatar-group-overlap"] = e.overlap + "px"), e.ring !== void 0 && (k["--umds-avatar-group-ring"] = e.ring + "px"), k;
|
|
7060
7060
|
}), h = s(() => e.size || "md"), y = s(() => ["umds-avatar-group", `umds-avatar-group--${h.value}`, e.className].filter(Boolean).join(" "));
|
|
7061
|
-
function k
|
|
7062
|
-
if (
|
|
7063
|
-
return
|
|
7064
|
-
const b = (
|
|
7061
|
+
function g(k) {
|
|
7062
|
+
if (k.initials)
|
|
7063
|
+
return k.initials.toUpperCase();
|
|
7064
|
+
const b = (k.name || "").trim().split(/\s+/), v = b[0] ? b[0][0] : "", L = b[1] ? b[1][0] : "";
|
|
7065
7065
|
return (v + L).toUpperCase();
|
|
7066
7066
|
}
|
|
7067
|
-
return (
|
|
7067
|
+
return (k, b) => (o(), r("div", {
|
|
7068
7068
|
role: "group",
|
|
7069
7069
|
style: Ve(p.value),
|
|
7070
7070
|
"aria-label": t.ariaLabel || "Grupo de avatares",
|
|
@@ -7082,7 +7082,7 @@ const em = {
|
|
|
7082
7082
|
}, {
|
|
7083
7083
|
default: pe(() => [
|
|
7084
7084
|
v.src ? f("", !0) : (o(), r(se, { key: 0 }, [
|
|
7085
|
-
ne(x(
|
|
7085
|
+
ne(x(g(v)), 1)
|
|
7086
7086
|
], 64))
|
|
7087
7087
|
]),
|
|
7088
7088
|
_: 2
|
|
@@ -7213,7 +7213,7 @@ function Um(t, e, a, n) {
|
|
|
7213
7213
|
const i = jm(l), u = i.ticks.map((A) => ma(A, n));
|
|
7214
7214
|
let c = 0;
|
|
7215
7215
|
for (const A of u) c = Math.max(c, Rn(A));
|
|
7216
|
-
const d = _o / 2 + 2, p = Math.ceil(c) + 8, h = Math.max(1, t.categorias.length), y = Math.max(1, e - p - 8) / h,
|
|
7216
|
+
const d = _o / 2 + 2, p = Math.ceil(c) + 8, h = Math.max(1, t.categorias.length), y = Math.max(1, e - p - 8) / h, g = Rn(t.categorias[t.categorias.length - 1] || ""), k = Math.max(8, Math.ceil(g / 2 - y / 2) + 2), b = a - (_o + 12), L = Math.max(1, e - p - k) / h, w = (A) => d + (i.max - A) / (i.max - i.min) * (b - d), M = (A) => p + L * A + L / 2, N = i.ticks.map((A, z) => ({
|
|
7217
7217
|
y: w(A),
|
|
7218
7218
|
texto: u[z]
|
|
7219
7219
|
}));
|
|
@@ -7251,7 +7251,7 @@ function Um(t, e, a, n) {
|
|
|
7251
7251
|
topo: d,
|
|
7252
7252
|
base: b,
|
|
7253
7253
|
esquerda: p,
|
|
7254
|
-
direita:
|
|
7254
|
+
direita: k,
|
|
7255
7255
|
banda: L,
|
|
7256
7256
|
y0: w(0),
|
|
7257
7257
|
ticks: N,
|
|
@@ -7273,14 +7273,14 @@ function Ym(t, e) {
|
|
|
7273
7273
|
return t.categorias.forEach((c, d) => {
|
|
7274
7274
|
const p = e.esquerda + e.banda * d + (e.banda - i) / 2;
|
|
7275
7275
|
t.series.forEach((h, y) => {
|
|
7276
|
-
const
|
|
7277
|
-
if (
|
|
7278
|
-
const
|
|
7279
|
-
|
|
7276
|
+
const g = h.values[d];
|
|
7277
|
+
if (g === null) return;
|
|
7278
|
+
const k = Wm(p + y * (l + n), l, e.y0, e.escalaY(g));
|
|
7279
|
+
k && u.push({
|
|
7280
7280
|
chave: `${y}-${d}`,
|
|
7281
7281
|
serie: y + 1,
|
|
7282
7282
|
indice: d,
|
|
7283
|
-
d:
|
|
7283
|
+
d: k
|
|
7284
7284
|
});
|
|
7285
7285
|
});
|
|
7286
7286
|
}), u;
|
|
@@ -7328,29 +7328,29 @@ function nl(t, e, a, n, l) {
|
|
|
7328
7328
|
return `M${Ga(t, e, i)}A${e},${e} 0 ${c} 1 ${Ga(t, e, u)}L${Ga(t, a, u)}A${a},${a} 0 ${c} 0 ${Ga(t, a, i)}Z`;
|
|
7329
7329
|
}
|
|
7330
7330
|
function Zm(t, e, a, n) {
|
|
7331
|
-
const l = (t || []).map((
|
|
7332
|
-
nome: String(
|
|
7333
|
-
valor: typeof
|
|
7331
|
+
const l = (t || []).map((k) => ({
|
|
7332
|
+
nome: String(k.label),
|
|
7333
|
+
valor: typeof k.value == "number" && k.value > 0 ? k.value : 0
|
|
7334
7334
|
}));
|
|
7335
7335
|
let i = l, u = !1;
|
|
7336
7336
|
if (l.length > en) {
|
|
7337
|
-
const
|
|
7338
|
-
i = [...
|
|
7337
|
+
const k = l.slice(0, en - 1), b = l.slice(en - 1).reduce((v, L) => v + L.valor, 0);
|
|
7338
|
+
i = [...k, {
|
|
7339
7339
|
nome: n,
|
|
7340
7340
|
valor: b
|
|
7341
7341
|
}], u = !0;
|
|
7342
7342
|
}
|
|
7343
|
-
const c = i.reduce((
|
|
7343
|
+
const c = i.reduce((k, b) => k + b.valor, 0), d = e / 2, p = d - 1, h = p * 0.64;
|
|
7344
7344
|
let y = 0;
|
|
7345
|
-
const
|
|
7346
|
-
const v = c > 0 ?
|
|
7345
|
+
const g = i.map((k, b) => {
|
|
7346
|
+
const v = c > 0 ? k.valor / c : 0, L = y, w = y + v * Math.PI * 2;
|
|
7347
7347
|
return y = w, {
|
|
7348
7348
|
chave: String(b),
|
|
7349
7349
|
serie: u && b === i.length - 1 ? 0 : b + 1,
|
|
7350
7350
|
indice: b,
|
|
7351
|
-
nome:
|
|
7352
|
-
valor:
|
|
7353
|
-
texto: ma(
|
|
7351
|
+
nome: k.nome,
|
|
7352
|
+
valor: k.valor,
|
|
7353
|
+
texto: ma(k.valor, a),
|
|
7354
7354
|
percentual: `${(v * 100).toLocaleString("pt-BR", {
|
|
7355
7355
|
maximumFractionDigits: 1
|
|
7356
7356
|
})}%`,
|
|
@@ -7359,7 +7359,7 @@ function Zm(t, e, a, n) {
|
|
|
7359
7359
|
});
|
|
7360
7360
|
return {
|
|
7361
7361
|
total: c,
|
|
7362
|
-
fatias:
|
|
7362
|
+
fatias: g
|
|
7363
7363
|
};
|
|
7364
7364
|
}
|
|
7365
7365
|
function ll(t) {
|
|
@@ -7399,35 +7399,35 @@ function $s(t, e, a, n) {
|
|
|
7399
7399
|
tabela: []
|
|
7400
7400
|
};
|
|
7401
7401
|
if (!Km(i)) return y;
|
|
7402
|
-
const
|
|
7402
|
+
const g = Um(i, u, c, l), k = u - g.direita, b = t === "linhas" ? Gm(i, g) : [], v = [];
|
|
7403
7403
|
for (const L of b) for (const w of L.pontos) v.push(w);
|
|
7404
7404
|
return {
|
|
7405
7405
|
...y,
|
|
7406
7406
|
vazio: !1,
|
|
7407
|
-
topo:
|
|
7408
|
-
base:
|
|
7409
|
-
esquerda:
|
|
7410
|
-
fimX:
|
|
7411
|
-
y0:
|
|
7412
|
-
grade:
|
|
7407
|
+
topo: g.topo,
|
|
7408
|
+
base: g.base,
|
|
7409
|
+
esquerda: g.esquerda,
|
|
7410
|
+
fimX: k,
|
|
7411
|
+
y0: g.y0,
|
|
7412
|
+
grade: g.ticks.map((L, w) => ({
|
|
7413
7413
|
chave: String(w),
|
|
7414
|
-
x1:
|
|
7415
|
-
x2:
|
|
7414
|
+
x1: g.esquerda,
|
|
7415
|
+
x2: k,
|
|
7416
7416
|
y: L.y,
|
|
7417
|
-
xTexto:
|
|
7417
|
+
xTexto: g.esquerda - 8,
|
|
7418
7418
|
texto: L.texto
|
|
7419
7419
|
})),
|
|
7420
|
-
rotulosX:
|
|
7420
|
+
rotulosX: g.rotulosX.map((L, w) => ({
|
|
7421
7421
|
chave: String(w),
|
|
7422
7422
|
x: L.x,
|
|
7423
|
-
y:
|
|
7423
|
+
y: g.base + 8,
|
|
7424
7424
|
texto: L.texto
|
|
7425
7425
|
})),
|
|
7426
|
-
alvos:
|
|
7426
|
+
alvos: g.alvos.map((L) => ({
|
|
7427
7427
|
...L,
|
|
7428
|
-
cx:
|
|
7428
|
+
cx: g.centroX(L.indice)
|
|
7429
7429
|
})),
|
|
7430
|
-
barras: t === "barras" ? Ym(i,
|
|
7430
|
+
barras: t === "barras" ? Ym(i, g) : [],
|
|
7431
7431
|
tracos: b,
|
|
7432
7432
|
pontos: v,
|
|
7433
7433
|
// Sem o título: a <figcaption> já dá nome à figura, e repetir aqui faria o
|
|
@@ -7523,10 +7523,10 @@ const Qm = {
|
|
|
7523
7523
|
function y(A) {
|
|
7524
7524
|
return `umds-chart__chave umds-chart__serie--${A}`;
|
|
7525
7525
|
}
|
|
7526
|
-
function
|
|
7526
|
+
function g(A) {
|
|
7527
7527
|
return `umds-chart__chave umds-chart__chave--linha umds-chart__serie--${A}`;
|
|
7528
7528
|
}
|
|
7529
|
-
function
|
|
7529
|
+
function k(A, z) {
|
|
7530
7530
|
const P = n.value >= 0 ? n.value : l.value, Y = P >= 0 && P !== z;
|
|
7531
7531
|
return [
|
|
7532
7532
|
"umds-chart__barra",
|
|
@@ -7647,7 +7647,7 @@ const Qm = {
|
|
|
7647
7647
|
(o(!0), r(se, null, Te(h.value.barras, (P, Y) => (o(), r("path", {
|
|
7648
7648
|
key: P.chave,
|
|
7649
7649
|
d: P.d,
|
|
7650
|
-
class: Z(
|
|
7650
|
+
class: Z(k(P.serie, P.indice))
|
|
7651
7651
|
}, null, 10, sv))), 128)),
|
|
7652
7652
|
m("line", {
|
|
7653
7653
|
class: "umds-chart__base",
|
|
@@ -7694,7 +7694,7 @@ const Qm = {
|
|
|
7694
7694
|
class: "umds-chart__tooltip-linha"
|
|
7695
7695
|
}, [
|
|
7696
7696
|
m("span", {
|
|
7697
|
-
class: Z(
|
|
7697
|
+
class: Z(g(le.serie))
|
|
7698
7698
|
}, null, 2),
|
|
7699
7699
|
m("span", fv, x(le.texto), 1),
|
|
7700
7700
|
P.linhas.length > 1 ? (o(), r("span", mv, x(le.nome), 1)) : f("", !0)
|
|
@@ -7772,7 +7772,7 @@ const Qm = {
|
|
|
7772
7772
|
(o(!0), r(se, null, Te(n.value, (h, y) => (o(), r("button", {
|
|
7773
7773
|
key: h.key,
|
|
7774
7774
|
type: "button",
|
|
7775
|
-
onClick: async (
|
|
7775
|
+
onClick: async (g) => c(h),
|
|
7776
7776
|
disabled: h.disabled,
|
|
7777
7777
|
"aria-current": l.value === h.key ? "page" : void 0,
|
|
7778
7778
|
class: Z(u(h))
|
|
@@ -7830,11 +7830,11 @@ const Qm = {
|
|
|
7830
7830
|
}), lt(() => {
|
|
7831
7831
|
d.value && (d.value(), d.value = null), aa(a.value);
|
|
7832
7832
|
});
|
|
7833
|
-
const p = s(() => ["umds-bottomsheet-root", e.className].filter(Boolean).join(" ")), h = s(() => a.value + "-titulo"), y = s(() => e.ariaLabelledby ? e.ariaLabelledby : e.title ? h.value : void 0),
|
|
7833
|
+
const p = s(() => ["umds-bottomsheet-root", e.className].filter(Boolean).join(" ")), h = s(() => a.value + "-titulo"), y = s(() => e.ariaLabelledby ? e.ariaLabelledby : e.title ? h.value : void 0), g = s(() => {
|
|
7834
7834
|
if (e.ariaLabel) return e.ariaLabel;
|
|
7835
7835
|
if (!(e.ariaLabelledby || e.title))
|
|
7836
7836
|
return "Painel";
|
|
7837
|
-
}),
|
|
7837
|
+
}), k = s(() => {
|
|
7838
7838
|
const $ = e.snapPoints || [];
|
|
7839
7839
|
if (!$.length) return "auto";
|
|
7840
7840
|
const I = l.value < $.length ? l.value : $.length - 1;
|
|
@@ -7889,11 +7889,11 @@ const Qm = {
|
|
|
7889
7889
|
class: "umds-bottomsheet",
|
|
7890
7890
|
ref_key: "sheetRef",
|
|
7891
7891
|
ref: i,
|
|
7892
|
-
"aria-label":
|
|
7892
|
+
"aria-label": g.value,
|
|
7893
7893
|
"aria-labelledby": y.value,
|
|
7894
7894
|
tabIndex: -1,
|
|
7895
7895
|
style: Ve({
|
|
7896
|
-
height:
|
|
7896
|
+
height: k.value
|
|
7897
7897
|
}),
|
|
7898
7898
|
onKeydown: I[3] || (I[3] = async (A) => K(A))
|
|
7899
7899
|
}, [
|
|
@@ -7908,7 +7908,7 @@ const Qm = {
|
|
|
7908
7908
|
"aria-valuemin": b.value ? 0 : void 0,
|
|
7909
7909
|
"aria-valuemax": b.value ? (t.snapPoints || []).length - 1 : void 0,
|
|
7910
7910
|
"aria-orientation": b.value ? "vertical" : void 0,
|
|
7911
|
-
"aria-valuetext": b.value ?
|
|
7911
|
+
"aria-valuetext": b.value ? k.value : void 0,
|
|
7912
7912
|
"aria-hidden": b.value ? void 0 : "true",
|
|
7913
7913
|
onKeydown: I[1] || (I[1] = async (A) => N(A))
|
|
7914
7914
|
}, [...I[4] || (I[4] = [
|
|
@@ -8025,50 +8025,61 @@ const Qm = {
|
|
|
8025
8025
|
key: 0,
|
|
8026
8026
|
"aria-hidden": "true",
|
|
8027
8027
|
class: "umds-breadcrumb__sep"
|
|
8028
|
-
}, zv = ["href"], Dv = ["onClick", "onKeydown"], Rv = {
|
|
8029
|
-
key: 3,
|
|
8030
|
-
"aria-current": "page",
|
|
8031
|
-
class: "umds-breadcrumb__current"
|
|
8032
|
-
}, pk = /* @__PURE__ */ we({
|
|
8028
|
+
}, zv = ["href", "title"], Dv = ["title", "onClick", "onKeydown"], Rv = ["title"], pk = /* @__PURE__ */ we({
|
|
8033
8029
|
__name: "Breadcrumb",
|
|
8034
8030
|
props: {
|
|
8035
8031
|
ariaLabel: {},
|
|
8036
8032
|
items: {},
|
|
8037
8033
|
separator: {},
|
|
8034
|
+
truncate: { type: Boolean },
|
|
8038
8035
|
className: {}
|
|
8039
8036
|
},
|
|
8040
8037
|
setup(t) {
|
|
8041
|
-
const e = t, a = s(() => e.separator || "/"), n = s(() => [
|
|
8042
|
-
|
|
8043
|
-
|
|
8038
|
+
const e = t, a = s(() => e.separator || "/"), n = s(() => [
|
|
8039
|
+
"umds-breadcrumb",
|
|
8040
|
+
e.truncate ? "umds-breadcrumb--truncate" : "",
|
|
8041
|
+
e.className
|
|
8042
|
+
].filter(Boolean).join(" ")), l = s(() => e.items || []);
|
|
8043
|
+
function i(d) {
|
|
8044
|
+
return e.truncate ? d.label : void 0;
|
|
8044
8045
|
}
|
|
8045
|
-
function u(
|
|
8046
|
-
|
|
8046
|
+
function u(d) {
|
|
8047
|
+
return d === (e.items || []).length - 1;
|
|
8047
8048
|
}
|
|
8048
|
-
|
|
8049
|
+
function c(d, p) {
|
|
8050
|
+
(d.key === "Enter" || d.key === " " || d.key === "Spacebar") && (d.preventDefault(), p.onClick && p.onClick());
|
|
8051
|
+
}
|
|
8052
|
+
return (d, p) => (o(), r("nav", {
|
|
8049
8053
|
"aria-label": t.ariaLabel || "Navegação estrutural",
|
|
8050
8054
|
class: Z(n.value)
|
|
8051
8055
|
}, [
|
|
8052
8056
|
m("ol", Tv, [
|
|
8053
|
-
(o(!0), r(se, null, Te(l.value, (
|
|
8054
|
-
key:
|
|
8057
|
+
(o(!0), r(se, null, Te(l.value, (h, y) => (o(), r("li", {
|
|
8058
|
+
key: y,
|
|
8055
8059
|
class: "umds-breadcrumb__item"
|
|
8056
8060
|
}, [
|
|
8057
|
-
|
|
8058
|
-
!
|
|
8061
|
+
y > 0 ? (o(), r("span", Mv, x(a.value), 1)) : f("", !0),
|
|
8062
|
+
!u(y) && h.href ? (o(), r("a", {
|
|
8059
8063
|
key: 1,
|
|
8060
8064
|
class: "umds-breadcrumb__link",
|
|
8061
|
-
href:
|
|
8062
|
-
|
|
8063
|
-
|
|
8065
|
+
href: h.href,
|
|
8066
|
+
title: i(h)
|
|
8067
|
+
}, x(h.label), 9, zv)) : f("", !0),
|
|
8068
|
+
!u(y) && !h.href ? (o(), r("span", {
|
|
8064
8069
|
key: 2,
|
|
8065
8070
|
role: "button",
|
|
8066
8071
|
class: "umds-breadcrumb__link",
|
|
8067
8072
|
tabIndex: 0,
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8073
|
+
title: i(h),
|
|
8074
|
+
onClick: async (g) => h.onClick && h.onClick(),
|
|
8075
|
+
onKeydown: async (g) => c(g, h)
|
|
8076
|
+
}, x(h.label), 41, Dv)) : f("", !0),
|
|
8077
|
+
u(y) ? (o(), r("span", {
|
|
8078
|
+
key: 3,
|
|
8079
|
+
"aria-current": "page",
|
|
8080
|
+
class: "umds-breadcrumb__current",
|
|
8081
|
+
title: i(h)
|
|
8082
|
+
}, x(h.label), 9, Rv)) : f("", !0)
|
|
8072
8083
|
]))), 128))
|
|
8073
8084
|
])
|
|
8074
8085
|
], 10, Iv));
|
|
@@ -8146,7 +8157,7 @@ const Qm = {
|
|
|
8146
8157
|
setup(t) {
|
|
8147
8158
|
const e = t, a = _(e.defaultChecked || !1), n = _("umds-checkbox-" + Math.random().toString(36).slice(2, 9)), l = _(null);
|
|
8148
8159
|
tt(() => {
|
|
8149
|
-
|
|
8160
|
+
k();
|
|
8150
8161
|
});
|
|
8151
8162
|
const i = s(() => e.helperText || e.description || ""), u = s(() => !!i.value), c = s(() => e.checked !== void 0 ? e.checked : a.value), d = s(() => !!e.invalid || !!e.errorMessage), p = s(() => (e.id || n.value) + "-error"), h = s(() => e.size === "sm" ? "8px" : e.size === "lg" ? "12px" : "10px"), y = s(() => {
|
|
8152
8163
|
const b = e.checked !== void 0 ? e.checked : a.value;
|
|
@@ -8163,9 +8174,9 @@ const Qm = {
|
|
|
8163
8174
|
].filter(Boolean).join(" ");
|
|
8164
8175
|
});
|
|
8165
8176
|
mt(() => {
|
|
8166
|
-
|
|
8177
|
+
k();
|
|
8167
8178
|
});
|
|
8168
|
-
function
|
|
8179
|
+
function g(b) {
|
|
8169
8180
|
if (e.disabled) return;
|
|
8170
8181
|
if (e.readOnly) {
|
|
8171
8182
|
b.target.checked = c.value;
|
|
@@ -8174,7 +8185,7 @@ const Qm = {
|
|
|
8174
8185
|
const v = b.target.checked;
|
|
8175
8186
|
a.value = v, typeof e.onChange == "function" && e.onChange(v);
|
|
8176
8187
|
}
|
|
8177
|
-
function
|
|
8188
|
+
function k() {
|
|
8178
8189
|
l.value && (l.value.indeterminate = !!e.indeterminate);
|
|
8179
8190
|
}
|
|
8180
8191
|
return (b, v) => (o(), r("label", {
|
|
@@ -8198,7 +8209,7 @@ const Qm = {
|
|
|
8198
8209
|
name: t.name,
|
|
8199
8210
|
value: t.value,
|
|
8200
8211
|
id: t.id,
|
|
8201
|
-
onChange: v[0] || (v[0] = async (L) =>
|
|
8212
|
+
onChange: v[0] || (v[0] = async (L) => g(L))
|
|
8202
8213
|
}, null, 40, Bv)),
|
|
8203
8214
|
m("span", Fv, [
|
|
8204
8215
|
c.value && !t.indeterminate ? (o(), ke(ce, {
|
|
@@ -8347,7 +8358,7 @@ const Qm = {
|
|
|
8347
8358
|
const e = t, a = _(!1), n = _(e.defaultValue || ""), l = _("umds-input-" + Math.random().toString(36).slice(2, 9)), i = _(null), u = _(null), c = s(() => e.id || l.value), d = s(() => a.value ? e.hidePasswordLabel || "Ocultar senha" : e.showPasswordLabel || "Mostrar senha"), p = s(() => (e.id || l.value) + "-error"), h = s(() => (e.id || l.value) + "-helper"), y = s(() => {
|
|
8348
8359
|
const $ = e.id || l.value, I = e.errorMessage ? $ + "-error " : "", A = e.helperText ? $ + "-helper" : "";
|
|
8349
8360
|
return (I + A).trim();
|
|
8350
|
-
}),
|
|
8361
|
+
}), g = s(() => e.type === "password" && a.value ? "text" : e.type || "text"), k = s(() => {
|
|
8351
8362
|
const $ = !!e.invalid || !!(e.errorMessage && e.errorMessage.length > 0);
|
|
8352
8363
|
return [
|
|
8353
8364
|
"umds-input",
|
|
@@ -8397,7 +8408,7 @@ const Qm = {
|
|
|
8397
8408
|
I.type === "change" && A === u.value || (u.value = A, e.mask && $.target.value !== A && ($.target.value = A), n.value = A, e.onChange && e.onChange(A));
|
|
8398
8409
|
}
|
|
8399
8410
|
return ($, I) => (o(), r("div", {
|
|
8400
|
-
class: Z(
|
|
8411
|
+
class: Z(k.value)
|
|
8401
8412
|
}, [
|
|
8402
8413
|
t.label || $.$slots.label ? (o(), ke(Re, {
|
|
8403
8414
|
key: 0,
|
|
@@ -8425,7 +8436,7 @@ const Qm = {
|
|
|
8425
8436
|
m("input", {
|
|
8426
8437
|
className: "umds-input__control",
|
|
8427
8438
|
id: c.value,
|
|
8428
|
-
type:
|
|
8439
|
+
type: g.value,
|
|
8429
8440
|
name: t.name,
|
|
8430
8441
|
min: t.min,
|
|
8431
8442
|
max: t.max,
|
|
@@ -8546,14 +8557,14 @@ const Qm = {
|
|
|
8546
8557
|
if (e.swatches && e.swatches.length) return e.swatches;
|
|
8547
8558
|
const U = e.families;
|
|
8548
8559
|
return !U || !U.length ? Rl : Rl.filter((he) => U.indexOf(he.family) !== -1);
|
|
8549
|
-
}),
|
|
8560
|
+
}), g = s(() => !(e.swatches && e.swatches.length)), k = s(() => [
|
|
8550
8561
|
"umds-color-picker",
|
|
8551
8562
|
`umds-color-picker--${e.size || "md"}`,
|
|
8552
8563
|
e.disabled ? "umds-color-picker--disabled" : "",
|
|
8553
8564
|
e.className
|
|
8554
8565
|
].filter(Boolean).join(" ")), b = s(() => [
|
|
8555
8566
|
"umds-color-picker__swatches",
|
|
8556
|
-
|
|
8567
|
+
g.value ? "umds-color-picker__swatches--familias" : ""
|
|
8557
8568
|
].filter(Boolean).join(" ")), v = s(() => e.ariaLabel ? e.ariaLabel : e.label && !p.value ? e.label : void 0), L = s(() => e.ariaLabelledby || p.value), w = s(() => {
|
|
8558
8569
|
const U = y.value;
|
|
8559
8570
|
for (let he = 0; he < U.length; he++)
|
|
@@ -8585,7 +8596,7 @@ const Qm = {
|
|
|
8585
8596
|
].filter(Boolean).join(" ");
|
|
8586
8597
|
}
|
|
8587
8598
|
function P(U, he) {
|
|
8588
|
-
if (!
|
|
8599
|
+
if (!g.value) return !1;
|
|
8589
8600
|
if (he === 0) return !0;
|
|
8590
8601
|
const Me = y.value[he - 1];
|
|
8591
8602
|
return !!Me && !!U.family && Me.family !== U.family;
|
|
@@ -8642,7 +8653,7 @@ const Qm = {
|
|
|
8642
8653
|
u.value = !0, Ka(l.value) && (i.value = !1, l.value = "");
|
|
8643
8654
|
}
|
|
8644
8655
|
return (U, he) => (o(), r("div", {
|
|
8645
|
-
class: Z(
|
|
8656
|
+
class: Z(k.value)
|
|
8646
8657
|
}, [
|
|
8647
8658
|
t.label ? (o(), r("span", {
|
|
8648
8659
|
key: 0,
|
|
@@ -8782,7 +8793,7 @@ const Qm = {
|
|
|
8782
8793
|
}), lt(() => {
|
|
8783
8794
|
h.value && (clearTimeout(h.value), h.value = null), !(typeof document > "u") && p.value && (document.removeEventListener("mousedown", p.value), p.value = null);
|
|
8784
8795
|
});
|
|
8785
|
-
const y = s(() => e.helperText || e.description || ""),
|
|
8796
|
+
const y = s(() => e.helperText || e.description || ""), g = s(() => !!y.value), k = s(() => e.readOnly ? "true" : void 0), b = s(() => e.invalid || e.errorMessage ? "true" : void 0), v = s(() => a.value ? "true" : "false"), L = s(() => e.value !== void 0 ? e.value : i.value), w = s(() => {
|
|
8786
8797
|
const T = e.value !== void 0 ? e.value : i.value;
|
|
8787
8798
|
return T == null ? "" : String(T);
|
|
8788
8799
|
}), M = s(() => {
|
|
@@ -8800,7 +8811,7 @@ const Qm = {
|
|
|
8800
8811
|
a.value ? "umds-combobox--open" : "",
|
|
8801
8812
|
e.className
|
|
8802
8813
|
].filter(Boolean).join(" ")), O = s(() => (e.id || u.value) + "-listbox"), $ = s(() => (e.id || u.value) + "-input"), I = s(() => (e.id || u.value) + "-label"), A = s(() => (e.id || u.value) + "-error"), z = s(() => (e.id || u.value) + "-helper"), P = s(() => {
|
|
8803
|
-
const T = e.id || u.value, B = e.errorMessage ? T + "-error " : "", R =
|
|
8814
|
+
const T = e.id || u.value, B = e.errorMessage ? T + "-error " : "", R = g.value ? T + "-helper" : "", J = (B + R).trim();
|
|
8804
8815
|
return J || void 0;
|
|
8805
8816
|
}), Y = s(() => {
|
|
8806
8817
|
if (!(!a.value || n.value < 0) && !(n.value >= M.value.length))
|
|
@@ -8918,7 +8929,7 @@ const Qm = {
|
|
|
8918
8929
|
"aria-label": t.ariaLabel,
|
|
8919
8930
|
"aria-invalid": b.value,
|
|
8920
8931
|
"aria-describedby": P.value,
|
|
8921
|
-
"aria-readonly":
|
|
8932
|
+
"aria-readonly": k.value,
|
|
8922
8933
|
"aria-required": t.required,
|
|
8923
8934
|
placeholder: t.placeholder,
|
|
8924
8935
|
value: l.value,
|
|
@@ -9028,7 +9039,7 @@ const Qm = {
|
|
|
9028
9039
|
]),
|
|
9029
9040
|
_: 1
|
|
9030
9041
|
}, 8, ["id"])) : f("", !0),
|
|
9031
|
-
|
|
9042
|
+
g.value ? (o(), ke(Re, {
|
|
9032
9043
|
key: 3,
|
|
9033
9044
|
variant: "caption",
|
|
9034
9045
|
color: "secondary",
|
|
@@ -9138,7 +9149,7 @@ const Qm = {
|
|
|
9138
9149
|
setup(t) {
|
|
9139
9150
|
const e = t, a = _(Array()), n = _(!1), l = _(0), i = s(() => e.columns || []), u = s(() => e.treeData ? d.value.map((C) => C.row) : e.data || []), c = s(() => e.childrenKey || "children"), d = s(() => e.treeData ? A(!1) : []), p = s(() => e.selectedRows || []), h = s(() => e.selectedKeys || []), y = s(() => !!e.rowKey);
|
|
9140
9151
|
s(() => e.variant === "document");
|
|
9141
|
-
const
|
|
9152
|
+
const g = s(() => !!e.selectable && e.variant !== "document"), k = s(() => [
|
|
9142
9153
|
"umds-datatable",
|
|
9143
9154
|
e.variant === "document" ? "umds-datatable--document" : "",
|
|
9144
9155
|
e.density === "compact" ? "umds-datatable--compact" : "",
|
|
@@ -9150,7 +9161,7 @@ const Qm = {
|
|
|
9150
9161
|
e.className
|
|
9151
9162
|
].filter(Boolean).join(" ")), b = s(() => e.skeletonRows || 5), v = s(() => Array.from({
|
|
9152
9163
|
length: b.value
|
|
9153
|
-
})), L = s(() => !e.loading && u.value.length === 0), w = s(() => !e.loading && u.value.length > 0), M = s(() => i.value.length + (
|
|
9164
|
+
})), L = s(() => !e.loading && u.value.length === 0), w = s(() => !e.loading && u.value.length > 0), M = s(() => i.value.length + (g.value ? 1 : 0)), N = s(() => u.value.length === 0 ? !1 : y.value ? u.value.every((C, S) => h.value.includes(be(C, S))) : p.value.length === u.value.length), K = s(() => y.value ? !N.value && u.value.some((C, S) => h.value.includes(be(C, S))) : p.value.length > 0 && !N.value), O = s(() => {
|
|
9154
9165
|
}), $ = s(() => e.treeData ? "treegrid" : void 0);
|
|
9155
9166
|
function I(C, S) {
|
|
9156
9167
|
return S ? !0 : e.expandedKeys ? e.expandedKeys.includes(C) : n.value ? a.value.includes(C) : e.defaultExpandAll ? !0 : (e.defaultExpandedKeys || []).includes(C);
|
|
@@ -9409,7 +9420,7 @@ const Qm = {
|
|
|
9409
9420
|
].filter(Boolean).join(" ");
|
|
9410
9421
|
}
|
|
9411
9422
|
return (C, S) => (o(), r("div", {
|
|
9412
|
-
class: Z(
|
|
9423
|
+
class: Z(k.value)
|
|
9413
9424
|
}, [
|
|
9414
9425
|
m("table", {
|
|
9415
9426
|
class: "umds-datatable__table",
|
|
@@ -9418,7 +9429,7 @@ const Qm = {
|
|
|
9418
9429
|
}, [
|
|
9419
9430
|
m("thead", x1, [
|
|
9420
9431
|
m("tr", null, [
|
|
9421
|
-
|
|
9432
|
+
g.value ? (o(), r("th", _1, [
|
|
9422
9433
|
q(Na, {
|
|
9423
9434
|
checked: N.value,
|
|
9424
9435
|
indeterminate: K.value,
|
|
@@ -9464,7 +9475,7 @@ const Qm = {
|
|
|
9464
9475
|
key: `sk-${G}`,
|
|
9465
9476
|
class: "umds-datatable__row umds-datatable__row--skeleton"
|
|
9466
9477
|
}, [
|
|
9467
|
-
|
|
9478
|
+
g.value ? (o(), r("td", $1, [...S[1] || (S[1] = [
|
|
9468
9479
|
m("div", { class: "umds-datatable__skeleton umds-datatable__skeleton--checkbox" }, null, -1)
|
|
9469
9480
|
])])) : f("", !0),
|
|
9470
9481
|
(o(!0), r(se, null, Te(i.value, (Q, Se) => (o(), r("td", {
|
|
@@ -9521,7 +9532,7 @@ const Qm = {
|
|
|
9521
9532
|
"aria-expanded": D(G),
|
|
9522
9533
|
class: Z(Lt(F, G))
|
|
9523
9534
|
}, [
|
|
9524
|
-
|
|
9535
|
+
g.value ? (o(), r("td", {
|
|
9525
9536
|
key: 0,
|
|
9526
9537
|
class: "umds-datatable__td umds-datatable__td--checkbox",
|
|
9527
9538
|
onClick: S[0] || (S[0] = async (Q) => Q.stopPropagation())
|
|
@@ -9659,9 +9670,9 @@ const Qm = {
|
|
|
9659
9670
|
"umds-datepicker-" + Math.random().toString(36).slice(2, 9)
|
|
9660
9671
|
), y = _(
|
|
9661
9672
|
n.mode !== "range" && n.defaultValue ? n.defaultValue : n.defaultRange && n.defaultRange.from || ""
|
|
9662
|
-
),
|
|
9673
|
+
), g = _(
|
|
9663
9674
|
n.defaultRange && n.defaultRange.to || ""
|
|
9664
|
-
),
|
|
9675
|
+
), k = _(""), b = _(""), v = _(null), L = _(null), w = _(null), M = _(null), N = _(null);
|
|
9665
9676
|
tt(() => {
|
|
9666
9677
|
if (Ie(), typeof document < "u") {
|
|
9667
9678
|
const ae = (ve) => {
|
|
@@ -9673,7 +9684,7 @@ const Qm = {
|
|
|
9673
9684
|
}), lt(() => {
|
|
9674
9685
|
typeof document < "u" && M.value && (document.removeEventListener("mousedown", M.value), M.value = null), Ke();
|
|
9675
9686
|
});
|
|
9676
|
-
const K = s(() => n.mode !== "range" && n.value !== void 0 ? n.value || "" : n.range !== void 0 ? n.range.from || "" : y.value), O = s(() => n.mode !== "range" && n.value !== void 0 ? "" : n.range !== void 0 ? n.range.to || "" :
|
|
9687
|
+
const K = s(() => n.mode !== "range" && n.value !== void 0 ? n.value || "" : n.range !== void 0 ? n.range.from || "" : y.value), O = s(() => n.mode !== "range" && n.value !== void 0 ? "" : n.range !== void 0 ? n.range.to || "" : g.value), $ = s(() => n.locale && n.locale.months && n.locale.months.length === 12 ? n.locale.months : e), I = s(() => n.locale && n.locale.weekdays && n.locale.weekdays.length === 7 ? n.locale.weekdays : a), A = s(() => n.id || h.value), z = s(() => A.value + "-label"), P = s(() => A.value + "-error"), Y = s(() => A.value + "-panel"), le = s(() => A.value + "-helper"), fe = s(() => {
|
|
9677
9688
|
const ae = Ee.value && n.errorMessage ? P.value + " " : "", ve = n.helperText ? le.value : "", ze = (ae + ve).trim();
|
|
9678
9689
|
return ze.length > 0 ? ze : void 0;
|
|
9679
9690
|
}), Ae = s(() => n.label ? z.value : void 0), oe = s(() => n.dialogLabel ? n.dialogLabel : n.mode === "range" ? "Selecionar período" : "Selecionar data"), te = s(() => {
|
|
@@ -9798,7 +9809,7 @@ const Qm = {
|
|
|
9798
9809
|
dt();
|
|
9799
9810
|
return;
|
|
9800
9811
|
}
|
|
9801
|
-
Ie(), Le(),
|
|
9812
|
+
Ie(), Le(), k.value = "", l.value = !0, requestAnimationFrame(() => {
|
|
9802
9813
|
Oe(), requestAnimationFrame(() => {
|
|
9803
9814
|
i.value = !0, Ze();
|
|
9804
9815
|
});
|
|
@@ -9806,7 +9817,7 @@ const Qm = {
|
|
|
9806
9817
|
}
|
|
9807
9818
|
}
|
|
9808
9819
|
function dt() {
|
|
9809
|
-
l.value = !1, i.value = !1,
|
|
9820
|
+
l.value = !1, i.value = !1, k.value = "", Ke();
|
|
9810
9821
|
}
|
|
9811
9822
|
function vt() {
|
|
9812
9823
|
dt(), L.value && L.value.focus();
|
|
@@ -9820,27 +9831,27 @@ const Qm = {
|
|
|
9820
9831
|
function Ne(ae) {
|
|
9821
9832
|
if (C(ae)) return;
|
|
9822
9833
|
if (H.value) {
|
|
9823
|
-
y.value = ae,
|
|
9834
|
+
y.value = ae, g.value = "", k.value = "", b.value = ae, Xe(ae, ""), vt();
|
|
9824
9835
|
return;
|
|
9825
9836
|
}
|
|
9826
9837
|
const ve = K.value, ze = O.value;
|
|
9827
9838
|
if (!ve || ve && ze || ae < ve) {
|
|
9828
|
-
y.value = ae,
|
|
9839
|
+
y.value = ae, g.value = "", k.value = "", Xe(ae, ""), b.value = ae;
|
|
9829
9840
|
return;
|
|
9830
9841
|
}
|
|
9831
|
-
|
|
9842
|
+
g.value = ae, Xe(ve, ae), vt();
|
|
9832
9843
|
}
|
|
9833
9844
|
function je(ae) {
|
|
9834
|
-
y.value = ae.from,
|
|
9845
|
+
y.value = ae.from, g.value = ae.to, Xe(ae.from, ae.to), vt();
|
|
9835
9846
|
}
|
|
9836
9847
|
function qe(ae) {
|
|
9837
|
-
ae && ae.stopPropagation(), !(n.disabled || n.readOnly) && (y.value = "",
|
|
9848
|
+
ae && ae.stopPropagation(), !(n.disabled || n.readOnly) && (y.value = "", g.value = "", k.value = "", Xe("", ""));
|
|
9838
9849
|
}
|
|
9839
9850
|
function ot(ae) {
|
|
9840
|
-
|
|
9851
|
+
k.value = ae;
|
|
9841
9852
|
}
|
|
9842
9853
|
function Lt() {
|
|
9843
|
-
|
|
9854
|
+
k.value = "";
|
|
9844
9855
|
}
|
|
9845
9856
|
function C(ae) {
|
|
9846
9857
|
return !!(n.min && ae < n.min || n.max && ae > n.max);
|
|
@@ -9848,7 +9859,7 @@ const Qm = {
|
|
|
9848
9859
|
function S(ae) {
|
|
9849
9860
|
const ve = K.value, ze = O.value;
|
|
9850
9861
|
let st = ze;
|
|
9851
|
-
ve && !ze &&
|
|
9862
|
+
ve && !ze && k.value && k.value > ve && (st = k.value);
|
|
9852
9863
|
const it = ae.month === "cur" && ve && st && ae.iso > ve && ae.iso < st;
|
|
9853
9864
|
return [
|
|
9854
9865
|
"umds-datepicker__day",
|
|
@@ -10259,48 +10270,48 @@ const Qm = {
|
|
|
10259
10270
|
},
|
|
10260
10271
|
e.size || 160
|
|
10261
10272
|
));
|
|
10262
|
-
function i(
|
|
10273
|
+
function i(k) {
|
|
10263
10274
|
return {
|
|
10264
|
-
width: `${
|
|
10265
|
-
height: `${
|
|
10275
|
+
width: `${k}px`,
|
|
10276
|
+
height: `${k}px`
|
|
10266
10277
|
};
|
|
10267
10278
|
}
|
|
10268
|
-
function u(
|
|
10279
|
+
function u(k) {
|
|
10269
10280
|
return {
|
|
10270
|
-
minHeight: `${
|
|
10281
|
+
minHeight: `${k}px`
|
|
10271
10282
|
};
|
|
10272
10283
|
}
|
|
10273
|
-
function c(
|
|
10284
|
+
function c(k, b) {
|
|
10274
10285
|
const v = a.value >= 0 && a.value !== b;
|
|
10275
10286
|
return [
|
|
10276
10287
|
"umds-chart__fatia",
|
|
10277
|
-
`umds-chart__serie--${
|
|
10288
|
+
`umds-chart__serie--${k}`,
|
|
10278
10289
|
v ? "umds-chart__fatia--recuada" : ""
|
|
10279
10290
|
].filter(Boolean).join(" ");
|
|
10280
10291
|
}
|
|
10281
|
-
function d(
|
|
10282
|
-
return `umds-chart__chave umds-chart__serie--${
|
|
10292
|
+
function d(k) {
|
|
10293
|
+
return `umds-chart__chave umds-chart__serie--${k}`;
|
|
10283
10294
|
}
|
|
10284
|
-
function p(
|
|
10295
|
+
function p(k) {
|
|
10285
10296
|
return [
|
|
10286
10297
|
"umds-chart__legenda",
|
|
10287
10298
|
"umds-chart__legenda--rosca",
|
|
10288
|
-
|
|
10299
|
+
k ? "" : "umds-chart__oculto"
|
|
10289
10300
|
].filter(Boolean).join(" ");
|
|
10290
10301
|
}
|
|
10291
|
-
function h(
|
|
10302
|
+
function h(k) {
|
|
10292
10303
|
return [
|
|
10293
10304
|
"umds-chart__legenda-item",
|
|
10294
|
-
a.value >= 0 && a.value !==
|
|
10305
|
+
a.value >= 0 && a.value !== k ? "umds-chart__legenda-item--recuado" : ""
|
|
10295
10306
|
].filter(Boolean).join(" ");
|
|
10296
10307
|
}
|
|
10297
|
-
function y(
|
|
10298
|
-
a.value =
|
|
10308
|
+
function y(k) {
|
|
10309
|
+
a.value = k;
|
|
10299
10310
|
}
|
|
10300
|
-
function
|
|
10311
|
+
function g() {
|
|
10301
10312
|
a.value = -1;
|
|
10302
10313
|
}
|
|
10303
|
-
return (
|
|
10314
|
+
return (k, b) => (o(), r("figure", {
|
|
10304
10315
|
class: Z(n.value)
|
|
10305
10316
|
}, [
|
|
10306
10317
|
t.title ? (o(), r("figcaption", kp, x(t.title), 1)) : f("", !0),
|
|
@@ -10326,7 +10337,7 @@ const Qm = {
|
|
|
10326
10337
|
key: v.chave,
|
|
10327
10338
|
d: v.d,
|
|
10328
10339
|
onMouseenter: async (w) => y(v.indice),
|
|
10329
|
-
onMouseleave: b[0] || (b[0] = async (w) =>
|
|
10340
|
+
onMouseleave: b[0] || (b[0] = async (w) => g()),
|
|
10330
10341
|
class: Z(c(v.serie, v.indice))
|
|
10331
10342
|
}, null, 42, wp))), 128))
|
|
10332
10343
|
], 8, Cp)),
|
|
@@ -10342,7 +10353,7 @@ const Qm = {
|
|
|
10342
10353
|
(o(!0), r(se, null, Te(l.value.fatias, (v, L) => (o(), r("li", {
|
|
10343
10354
|
key: v.chave,
|
|
10344
10355
|
onMouseenter: async (w) => y(v.indice),
|
|
10345
|
-
onMouseleave: b[1] || (b[1] = async (w) =>
|
|
10356
|
+
onMouseleave: b[1] || (b[1] = async (w) => g()),
|
|
10346
10357
|
class: Z(h(v.indice))
|
|
10347
10358
|
}, [
|
|
10348
10359
|
m("span", {
|
|
@@ -10401,7 +10412,7 @@ const Qm = {
|
|
|
10401
10412
|
if (e.ariaLabel) return e.ariaLabel;
|
|
10402
10413
|
if (!(e.ariaLabelledby || e.title))
|
|
10403
10414
|
return "Painel";
|
|
10404
|
-
}),
|
|
10415
|
+
}), g = s(() => !!e.title || e.closable !== !1), k = s(() => [
|
|
10405
10416
|
e.inline ? "umds-drawer-root--inline" : "umds-drawer-root",
|
|
10406
10417
|
`umds-drawer-root--${e.side || "right"}`,
|
|
10407
10418
|
e.className
|
|
@@ -10448,7 +10459,7 @@ const Qm = {
|
|
|
10448
10459
|
return (O, $) => p.value ? (o(), r("div", {
|
|
10449
10460
|
key: 0,
|
|
10450
10461
|
id: t.id,
|
|
10451
|
-
class: Z(
|
|
10462
|
+
class: Z(k.value)
|
|
10452
10463
|
}, [
|
|
10453
10464
|
m("div", {
|
|
10454
10465
|
class: "umds-drawer__backdrop",
|
|
@@ -10467,7 +10478,7 @@ const Qm = {
|
|
|
10467
10478
|
style: Ve(b.value),
|
|
10468
10479
|
onKeydown: $[3] || ($[3] = async (I) => M(I))
|
|
10469
10480
|
}, [
|
|
10470
|
-
|
|
10481
|
+
g.value ? (o(), r("div", Rp, [
|
|
10471
10482
|
t.title ? (o(), ke(Re, {
|
|
10472
10483
|
key: 0,
|
|
10473
10484
|
variant: "h6",
|
|
@@ -10625,7 +10636,7 @@ const Qm = {
|
|
|
10625
10636
|
onRemove: { type: Function }
|
|
10626
10637
|
},
|
|
10627
10638
|
setup(t) {
|
|
10628
|
-
const e = t, a = _(!1), n = _(Array()), l = _(null), i = s(() => " " + (e.triggerHint || "ou arraste aqui")), u = s(() => " " + (e.orLabel || "ou") + " "), c = s(() => (e.maxSizeLabel || "Máximo") + " " +
|
|
10639
|
+
const e = t, a = _(!1), n = _(Array()), l = _(null), i = s(() => " " + (e.triggerHint || "ou arraste aqui")), u = s(() => " " + (e.orLabel || "ou") + " "), c = s(() => (e.maxSizeLabel || "Máximo") + " " + k(e.maxSize || 0)), d = s(() => [
|
|
10629
10640
|
"umds-file-input",
|
|
10630
10641
|
`umds-file-input--${e.variant || "base"}`,
|
|
10631
10642
|
e.disabled ? "umds-file-input--disabled" : "",
|
|
@@ -10636,10 +10647,10 @@ const Qm = {
|
|
|
10636
10647
|
function y(I) {
|
|
10637
10648
|
return (e.removeAriaLabel || "Remover") + " " + I;
|
|
10638
10649
|
}
|
|
10639
|
-
function
|
|
10650
|
+
function g(I) {
|
|
10640
10651
|
return (e.uploadingAriaLabel || "Enviando") + " " + I;
|
|
10641
10652
|
}
|
|
10642
|
-
function
|
|
10653
|
+
function k(I) {
|
|
10643
10654
|
return I < 1024 ? `${I} B` : I < 1024 * 1024 ? `${(I / 1024).toFixed(1)} KB` : `${(I / (1024 * 1024)).toFixed(1)} MB`;
|
|
10644
10655
|
}
|
|
10645
10656
|
function b(I) {
|
|
@@ -10769,7 +10780,7 @@ const Qm = {
|
|
|
10769
10780
|
]),
|
|
10770
10781
|
m("div", ah, [
|
|
10771
10782
|
m("span", nh, x(z.name), 1),
|
|
10772
|
-
z.status !== "uploading" ? (o(), r("span", lh, x(
|
|
10783
|
+
z.status !== "uploading" ? (o(), r("span", lh, x(k(z.size)), 1)) : f("", !0),
|
|
10773
10784
|
z.error ? (o(), r("span", oh, x(z.error), 1)) : f("", !0)
|
|
10774
10785
|
]),
|
|
10775
10786
|
m("button", {
|
|
@@ -10792,7 +10803,7 @@ const Qm = {
|
|
|
10792
10803
|
"aria-valuenow": z.progress,
|
|
10793
10804
|
"aria-valuemin": 0,
|
|
10794
10805
|
"aria-valuemax": 100,
|
|
10795
|
-
"aria-label":
|
|
10806
|
+
"aria-label": g(z.name)
|
|
10796
10807
|
}, [
|
|
10797
10808
|
m("div", {
|
|
10798
10809
|
class: "umds-file-input__progress-fill",
|
|
@@ -10905,12 +10916,12 @@ const Qm = {
|
|
|
10905
10916
|
tt(() => {
|
|
10906
10917
|
e.id || (l.value = Ht("umds-icon-picker"));
|
|
10907
10918
|
});
|
|
10908
|
-
const c = s(() => e.id || l.value), d = s(() => c.value && e.label ? c.value + "-label" : void 0), p = s(() => e.ariaLabel ? e.ariaLabel : e.label && !d.value ? e.label : void 0), h = s(() => e.value !== void 0 ? e.value : a.value), y = s(() => e.columns && e.columns > 0 ? e.columns : 8),
|
|
10919
|
+
const c = s(() => e.id || l.value), d = s(() => c.value && e.label ? c.value + "-label" : void 0), p = s(() => e.ariaLabel ? e.ariaLabel : e.label && !d.value ? e.label : void 0), h = s(() => e.value !== void 0 ? e.value : a.value), y = s(() => e.columns && e.columns > 0 ? e.columns : 8), g = s(() => [
|
|
10909
10920
|
"umds-icon-picker",
|
|
10910
10921
|
`umds-icon-picker--${e.size || "md"}`,
|
|
10911
10922
|
e.disabled ? "umds-icon-picker--disabled" : "",
|
|
10912
10923
|
e.className
|
|
10913
|
-
].filter(Boolean).join(" ")),
|
|
10924
|
+
].filter(Boolean).join(" ")), k = s(() => {
|
|
10914
10925
|
const oe = {
|
|
10915
10926
|
gridTemplateColumns: "repeat(" + y.value + ", var(--umds-icon-picker-tile))"
|
|
10916
10927
|
};
|
|
@@ -10998,7 +11009,7 @@ const Qm = {
|
|
|
10998
11009
|
!oe || oe.key !== "ArrowDown" || !L.value || (oe.preventDefault(), Y(K.value));
|
|
10999
11010
|
}
|
|
11000
11011
|
return (oe, te) => (o(), r("div", {
|
|
11001
|
-
class: Z(
|
|
11012
|
+
class: Z(g.value)
|
|
11002
11013
|
}, [
|
|
11003
11014
|
t.label ? (o(), r("span", {
|
|
11004
11015
|
key: 0,
|
|
@@ -11030,7 +11041,7 @@ const Qm = {
|
|
|
11030
11041
|
ref: i,
|
|
11031
11042
|
"aria-label": p.value,
|
|
11032
11043
|
"aria-labelledby": d.value,
|
|
11033
|
-
style: Ve(
|
|
11044
|
+
style: Ve(k.value)
|
|
11034
11045
|
}, [
|
|
11035
11046
|
(o(!0), r(se, null, Te(v.value, (D, V) => (o(), r("button", {
|
|
11036
11047
|
key: D.name,
|
|
@@ -11108,7 +11119,7 @@ const Qm = {
|
|
|
11108
11119
|
return v > L ? w = w + ", limite excedido" : v === L && (w = w + ", limite atingido"), w;
|
|
11109
11120
|
}
|
|
11110
11121
|
return v === 1 ? "1 cartão" : v + " cartões";
|
|
11111
|
-
}), h = s(() => e.count === 0 && !e.highlighted), y = s(() => e.emptyText || "Nenhum cartão"),
|
|
11122
|
+
}), h = s(() => e.count === 0 && !e.highlighted), y = s(() => e.emptyText || "Nenhum cartão"), g = s(() => !!e.addLabel && !!e.onAdd), k = s(() => {
|
|
11112
11123
|
const v = typeof e.count == "number" && typeof e.wipLimit == "number" && e.wipLimit > 0 && e.count > e.wipLimit;
|
|
11113
11124
|
return [
|
|
11114
11125
|
"umds-kanban-column",
|
|
@@ -11125,7 +11136,7 @@ const Qm = {
|
|
|
11125
11136
|
id: t.id,
|
|
11126
11137
|
"aria-labelledby": n.value,
|
|
11127
11138
|
"aria-describedby": l.value,
|
|
11128
|
-
class: Z(
|
|
11139
|
+
class: Z(k.value)
|
|
11129
11140
|
}, [
|
|
11130
11141
|
m("div", bh, [
|
|
11131
11142
|
m("div", {
|
|
@@ -11158,7 +11169,7 @@ const Qm = {
|
|
|
11158
11169
|
h.value ? (o(), r("div", _h, x(y.value), 1)) : f("", !0)
|
|
11159
11170
|
]),
|
|
11160
11171
|
m("div", Ch, [
|
|
11161
|
-
|
|
11172
|
+
g.value ? (o(), ke(at, {
|
|
11162
11173
|
key: 0,
|
|
11163
11174
|
variant: "text",
|
|
11164
11175
|
size: "sm",
|
|
@@ -11212,42 +11223,42 @@ const Qm = {
|
|
|
11212
11223
|
].filter(Boolean).join(" ")), n = s(() => (e.size || "md") === "lg" ? "md" : "sm"), l = s(() => {
|
|
11213
11224
|
if (!e.onIconStartClick) return;
|
|
11214
11225
|
if (e.iconStartAriaLabel) return e.iconStartAriaLabel;
|
|
11215
|
-
const
|
|
11216
|
-
if (
|
|
11217
|
-
return typeof
|
|
11226
|
+
const g = e.iconStart;
|
|
11227
|
+
if (g)
|
|
11228
|
+
return typeof g == "string" ? g : Array.isArray(g) ? g[1] : g.iconName;
|
|
11218
11229
|
}), i = s(() => {
|
|
11219
11230
|
if (!e.onIconEndClick) return;
|
|
11220
11231
|
if (e.iconEndAriaLabel) return e.iconEndAriaLabel;
|
|
11221
|
-
const
|
|
11222
|
-
if (
|
|
11223
|
-
return typeof
|
|
11232
|
+
const g = e.iconEnd;
|
|
11233
|
+
if (g)
|
|
11234
|
+
return typeof g == "string" ? g : Array.isArray(g) ? g[1] : g.iconName;
|
|
11224
11235
|
});
|
|
11225
|
-
function u(
|
|
11226
|
-
|
|
11236
|
+
function u(g) {
|
|
11237
|
+
g.stopPropagation(), !e.disabled && e.onClose && e.onClose(g);
|
|
11227
11238
|
}
|
|
11228
|
-
function c(
|
|
11229
|
-
|
|
11239
|
+
function c(g) {
|
|
11240
|
+
g.stopPropagation(), !e.disabled && e.onIconStartClick && e.onIconStartClick(g);
|
|
11230
11241
|
}
|
|
11231
|
-
function d(
|
|
11232
|
-
|
|
11242
|
+
function d(g) {
|
|
11243
|
+
g.stopPropagation(), !e.disabled && e.onIconEndClick && e.onIconEndClick(g);
|
|
11233
11244
|
}
|
|
11234
|
-
function p(
|
|
11235
|
-
(
|
|
11245
|
+
function p(g) {
|
|
11246
|
+
(g.key === "Enter" || g.key === " " || g.key === "Spacebar") && (g.preventDefault(), g.stopPropagation(), !e.disabled && e.onClose && e.onClose(g));
|
|
11236
11247
|
}
|
|
11237
|
-
function h(
|
|
11238
|
-
(
|
|
11248
|
+
function h(g) {
|
|
11249
|
+
(g.key === "Enter" || g.key === " " || g.key === "Spacebar") && (g.preventDefault(), g.stopPropagation(), !e.disabled && e.onIconStartClick && e.onIconStartClick(g));
|
|
11239
11250
|
}
|
|
11240
|
-
function y(
|
|
11241
|
-
(
|
|
11251
|
+
function y(g) {
|
|
11252
|
+
(g.key === "Enter" || g.key === " " || g.key === "Spacebar") && (g.preventDefault(), g.stopPropagation(), !e.disabled && e.onIconEndClick && e.onIconEndClick(g));
|
|
11242
11253
|
}
|
|
11243
|
-
return (
|
|
11254
|
+
return (g, k) => (o(), r("span", {
|
|
11244
11255
|
id: t.id,
|
|
11245
11256
|
class: Z(a.value)
|
|
11246
11257
|
}, [
|
|
11247
11258
|
t.iconStart ? (o(), r("span", {
|
|
11248
11259
|
key: 0,
|
|
11249
|
-
onClick:
|
|
11250
|
-
onKeydown:
|
|
11260
|
+
onClick: k[0] || (k[0] = async (b) => c(b)),
|
|
11261
|
+
onKeydown: k[1] || (k[1] = async (b) => h(b)),
|
|
11251
11262
|
role: t.onIconStartClick ? "button" : void 0,
|
|
11252
11263
|
tabIndex: t.onIconStartClick ? 0 : void 0,
|
|
11253
11264
|
"aria-label": l.value,
|
|
@@ -11264,12 +11275,12 @@ const Qm = {
|
|
|
11264
11275
|
m("span", $h, [
|
|
11265
11276
|
t.label ? (o(), r(se, { key: 0 }, [
|
|
11266
11277
|
ne(x(t.label), 1)
|
|
11267
|
-
], 64)) : ee(
|
|
11278
|
+
], 64)) : ee(g.$slots, "default", { key: 1 })
|
|
11268
11279
|
]),
|
|
11269
11280
|
t.iconEnd ? (o(), r("span", {
|
|
11270
11281
|
key: 1,
|
|
11271
|
-
onClick:
|
|
11272
|
-
onKeydown:
|
|
11282
|
+
onClick: k[2] || (k[2] = async (b) => d(b)),
|
|
11283
|
+
onKeydown: k[3] || (k[3] = async (b) => y(b)),
|
|
11273
11284
|
role: t.onIconEndClick ? "button" : void 0,
|
|
11274
11285
|
tabIndex: t.onIconEndClick ? 0 : void 0,
|
|
11275
11286
|
"aria-label": i.value,
|
|
@@ -11287,8 +11298,8 @@ const Qm = {
|
|
|
11287
11298
|
key: 2,
|
|
11288
11299
|
role: "button",
|
|
11289
11300
|
className: "umds-tag__close",
|
|
11290
|
-
onClick:
|
|
11291
|
-
onKeydown:
|
|
11301
|
+
onClick: k[4] || (k[4] = async (b) => u(b)),
|
|
11302
|
+
onKeydown: k[5] || (k[5] = async (b) => p(b)),
|
|
11292
11303
|
tabIndex: 0,
|
|
11293
11304
|
"aria-label": t.closeAriaLabel || "Remover"
|
|
11294
11305
|
}, [
|
|
@@ -11338,8 +11349,8 @@ const Qm = {
|
|
|
11338
11349
|
].filter(Boolean).join(" ")), i = s(() => e.onClick ? "button" : void 0), u = s(() => e.onClick ? 0 : void 0), c = s(() => {
|
|
11339
11350
|
const y = (e.assignee || "").trim();
|
|
11340
11351
|
if (!y) return "";
|
|
11341
|
-
const
|
|
11342
|
-
return (
|
|
11352
|
+
const g = y.split(/\s+/), k = g[0].charAt(0), b = g.length > 1 ? g[g.length - 1].charAt(0) : "";
|
|
11353
|
+
return (k + b).toUpperCase();
|
|
11343
11354
|
}), d = s(() => (e.assigneeLabel || "Responsável") + ": " + (e.assignee || ""));
|
|
11344
11355
|
function p(y) {
|
|
11345
11356
|
e.onClick && e.onClick(y);
|
|
@@ -11347,20 +11358,20 @@ const Qm = {
|
|
|
11347
11358
|
function h(y) {
|
|
11348
11359
|
!e.onClick || !y || (y.key === "Enter" || y.key === " ") && (y.preventDefault(), e.onClick(y));
|
|
11349
11360
|
}
|
|
11350
|
-
return (y,
|
|
11361
|
+
return (y, g) => (o(), r("div", {
|
|
11351
11362
|
id: t.id,
|
|
11352
11363
|
role: i.value,
|
|
11353
11364
|
tabIndex: u.value,
|
|
11354
|
-
onClick:
|
|
11355
|
-
onKeydown:
|
|
11365
|
+
onClick: g[0] || (g[0] = async (k) => p(k)),
|
|
11366
|
+
onKeydown: g[1] || (g[1] = async (k) => h(k)),
|
|
11356
11367
|
class: Z(l.value)
|
|
11357
11368
|
}, [
|
|
11358
11369
|
n.value ? (o(), r("div", Mh, [
|
|
11359
|
-
(o(!0), r(se, null, Te(a.value, (
|
|
11370
|
+
(o(!0), r(se, null, Te(a.value, (k, b) => (o(), ke(Sl, {
|
|
11360
11371
|
key: b,
|
|
11361
11372
|
size: "sm",
|
|
11362
|
-
variant:
|
|
11363
|
-
label:
|
|
11373
|
+
variant: k.variant,
|
|
11374
|
+
label: k.label
|
|
11364
11375
|
}, null, 8, ["variant", "label"]))), 128))
|
|
11365
11376
|
])) : f("", !0),
|
|
11366
11377
|
m("p", zh, x(t.title), 1),
|
|
@@ -11427,7 +11438,7 @@ const Qm = {
|
|
|
11427
11438
|
columnCountLabel: { type: Function }
|
|
11428
11439
|
},
|
|
11429
11440
|
setup(t) {
|
|
11430
|
-
const e = t, a = _("umds-kanban-" + Math.random().toString(36).slice(2, 9)), n = _(""), l = _(""), i = _(""), u = _(0), c = _(""), d = _(0), p = _(""), h = _(""), y = _(0),
|
|
11441
|
+
const e = t, a = _("umds-kanban-" + Math.random().toString(36).slice(2, 9)), n = _(""), l = _(""), i = _(""), u = _(0), c = _(""), d = _(0), p = _(""), h = _(""), y = _(0), g = _(!1), k = _(""), b = _(-1), v = _(""), L = _(!1), w = _(null), M = _(null), N = _(null), K = s(() => {
|
|
11431
11442
|
const S = (e.columns || []).map(
|
|
11432
11443
|
(Se) => ({
|
|
11433
11444
|
...Se,
|
|
@@ -11535,7 +11546,7 @@ const Qm = {
|
|
|
11535
11546
|
return [
|
|
11536
11547
|
"umds-kanban__item",
|
|
11537
11548
|
C === l.value ? "umds-kanban__item--pego" : "",
|
|
11538
|
-
|
|
11549
|
+
g.value && C === p.value ? "umds-kanban__item--arrastando" : ""
|
|
11539
11550
|
].filter(Boolean).join(" ");
|
|
11540
11551
|
}
|
|
11541
11552
|
function Me(C, S) {
|
|
@@ -11559,7 +11570,7 @@ const Qm = {
|
|
|
11559
11570
|
), S.join(". ");
|
|
11560
11571
|
}
|
|
11561
11572
|
function T(C) {
|
|
11562
|
-
return l.value ? c.value === C && c.value !== i.value : !!p.value &&
|
|
11573
|
+
return l.value ? c.value === C && c.value !== i.value : !!p.value && k.value === C;
|
|
11563
11574
|
}
|
|
11564
11575
|
function B(C) {
|
|
11565
11576
|
return C.emptyText || e.emptyColumnText;
|
|
@@ -11568,7 +11579,7 @@ const Qm = {
|
|
|
11568
11579
|
return C === h.value && (S === y.value || S === y.value + 1);
|
|
11569
11580
|
}
|
|
11570
11581
|
function J(C, S) {
|
|
11571
|
-
return !p.value ||
|
|
11582
|
+
return !p.value || k.value !== C || b.value !== S ? !1 : !R(C, S);
|
|
11572
11583
|
}
|
|
11573
11584
|
function H(C) {
|
|
11574
11585
|
M.value = C, !(typeof window > "u") && requestAnimationFrame(() => {
|
|
@@ -11760,7 +11771,7 @@ const Qm = {
|
|
|
11760
11771
|
}
|
|
11761
11772
|
function ft(C, S, F, G) {
|
|
11762
11773
|
l.value && Xe(!1), p.value = S, h.value = F, y.value = G, C && C.dataTransfer && (C.dataTransfer.effectAllowed = "move", C.dataTransfer.setData("text/plain", S)), typeof window < "u" && requestAnimationFrame(() => {
|
|
11763
|
-
|
|
11774
|
+
g.value = !0;
|
|
11764
11775
|
});
|
|
11765
11776
|
}
|
|
11766
11777
|
function $e(C) {
|
|
@@ -11777,12 +11788,12 @@ const Qm = {
|
|
|
11777
11788
|
if (!p.value || !C) return;
|
|
11778
11789
|
C.preventDefault(), C.dataTransfer && (C.dataTransfer.dropEffect = "move");
|
|
11779
11790
|
const F = $e(C);
|
|
11780
|
-
|
|
11791
|
+
k.value !== S && (k.value = S), b.value !== F && (b.value = F);
|
|
11781
11792
|
}
|
|
11782
11793
|
function je(C, S) {
|
|
11783
11794
|
if (!C) return;
|
|
11784
11795
|
const F = C.relatedTarget, G = C.currentTarget;
|
|
11785
|
-
F && G && G.contains && G.contains(F) ||
|
|
11796
|
+
F && G && G.contains && G.contains(F) || k.value === S && (k.value = "", b.value = -1);
|
|
11786
11797
|
}
|
|
11787
11798
|
function qe(C, S) {
|
|
11788
11799
|
if (!p.value || !C) return;
|
|
@@ -11806,7 +11817,7 @@ const Qm = {
|
|
|
11806
11817
|
Lt();
|
|
11807
11818
|
}
|
|
11808
11819
|
function Lt() {
|
|
11809
|
-
p.value = "",
|
|
11820
|
+
p.value = "", g.value = !1, k.value = "", b.value = -1;
|
|
11810
11821
|
}
|
|
11811
11822
|
return (C, S) => (o(), r("div", {
|
|
11812
11823
|
role: "region",
|
|
@@ -11921,12 +11932,12 @@ const Qm = {
|
|
|
11921
11932
|
class: l.value
|
|
11922
11933
|
}, c()), [
|
|
11923
11934
|
a.value ? ee(p.$slots, "default", { key: 0 }) : f("", !0),
|
|
11924
|
-
(o(!0), r(se, null, Te(n.value, (y,
|
|
11925
|
-
key:
|
|
11935
|
+
(o(!0), r(se, null, Te(n.value, (y, g) => (o(), r("span", {
|
|
11936
|
+
key: g,
|
|
11926
11937
|
class: "umds-kbd-combo__item"
|
|
11927
11938
|
}, [
|
|
11928
11939
|
m("kbd", Yh, x(y), 1),
|
|
11929
|
-
d(
|
|
11940
|
+
d(g) ? f("", !0) : (o(), r("span", Gh, x(i.value), 1))
|
|
11930
11941
|
]))), 128))
|
|
11931
11942
|
], 16, Wh));
|
|
11932
11943
|
}
|
|
@@ -12040,10 +12051,10 @@ const Qm = {
|
|
|
12040
12051
|
function y(z) {
|
|
12041
12052
|
return `umds-chart__chave umds-chart__chave--linha umds-chart__serie--${z}`;
|
|
12042
12053
|
}
|
|
12043
|
-
function
|
|
12054
|
+
function g(z) {
|
|
12044
12055
|
return `umds-chart__linha umds-chart__serie--${z}`;
|
|
12045
12056
|
}
|
|
12046
|
-
function
|
|
12057
|
+
function k(z) {
|
|
12047
12058
|
return `umds-chart__ponto umds-chart__serie--${z}`;
|
|
12048
12059
|
}
|
|
12049
12060
|
function b(z) {
|
|
@@ -12180,7 +12191,7 @@ const Qm = {
|
|
|
12180
12191
|
(o(!0), r(se, null, Te(h.value.tracos, (Y, le) => (o(), r("path", {
|
|
12181
12192
|
key: Y.chave,
|
|
12182
12193
|
d: Y.d,
|
|
12183
|
-
class: Z(
|
|
12194
|
+
class: Z(g(Y.serie))
|
|
12184
12195
|
}, null, 10, ib))), 128)),
|
|
12185
12196
|
(o(!0), r(se, null, Te(h.value.pontos, (Y, le) => (o(), r(se, { key: le }, [
|
|
12186
12197
|
b(Y.indice) ? (o(), r("circle", {
|
|
@@ -12188,7 +12199,7 @@ const Qm = {
|
|
|
12188
12199
|
cx: Y.x,
|
|
12189
12200
|
cy: Y.y,
|
|
12190
12201
|
r: 5,
|
|
12191
|
-
class: Z(
|
|
12202
|
+
class: Z(k(Y.serie))
|
|
12192
12203
|
}, null, 10, rb)) : f("", !0)
|
|
12193
12204
|
], 64))), 128))
|
|
12194
12205
|
], 8, tb))
|
|
@@ -12292,19 +12303,19 @@ const Qm = {
|
|
|
12292
12303
|
actionLabel: e.emptyActionLabel,
|
|
12293
12304
|
onAction: e.onEmptyAction
|
|
12294
12305
|
} : {}), p = s(() => e.emptySize || "sm"), h = na(), y = () => {
|
|
12295
|
-
const
|
|
12296
|
-
for (const b in
|
|
12297
|
-
(b.indexOf("data-") === 0 || b === "style") && (
|
|
12298
|
-
return
|
|
12306
|
+
const g = { ...e, ...h }, k = {};
|
|
12307
|
+
for (const b in g)
|
|
12308
|
+
(b.indexOf("data-") === 0 || b === "style") && (k[b] = g[b]);
|
|
12309
|
+
return k;
|
|
12299
12310
|
};
|
|
12300
|
-
return (
|
|
12311
|
+
return (g, k) => (o(), r(se, null, [
|
|
12301
12312
|
n.value ? (o(), r("div", et({
|
|
12302
12313
|
key: 0,
|
|
12303
12314
|
role: "status",
|
|
12304
12315
|
id: t.id,
|
|
12305
12316
|
class: u.value
|
|
12306
12317
|
}, y()), [
|
|
12307
|
-
ee(
|
|
12318
|
+
ee(g.$slots, "empty", {}, () => [
|
|
12308
12319
|
q(Ss, et({
|
|
12309
12320
|
icon: t.emptyIcon,
|
|
12310
12321
|
title: c.value,
|
|
@@ -12321,7 +12332,7 @@ const Qm = {
|
|
|
12321
12332
|
"aria-labelledby": t.ariaLabelledby,
|
|
12322
12333
|
class: i.value
|
|
12323
12334
|
}, y()), [
|
|
12324
|
-
ee(
|
|
12335
|
+
ee(g.$slots, "default")
|
|
12325
12336
|
], 16, gb)) : f("", !0),
|
|
12326
12337
|
l.value && a.value === "ol" ? (o(), r("ol", et({
|
|
12327
12338
|
key: 2,
|
|
@@ -12331,7 +12342,7 @@ const Qm = {
|
|
|
12331
12342
|
"aria-labelledby": t.ariaLabelledby,
|
|
12332
12343
|
class: i.value
|
|
12333
12344
|
}, y()), [
|
|
12334
|
-
ee(
|
|
12345
|
+
ee(g.$slots, "default")
|
|
12335
12346
|
], 16, kb)) : f("", !0)
|
|
12336
12347
|
], 64));
|
|
12337
12348
|
}
|
|
@@ -12458,13 +12469,13 @@ const Qm = {
|
|
|
12458
12469
|
].filter(Boolean).join(" ")), i = s(() => e.selected ? "true" : void 0), u = s(() => e.disabled ? "true" : void 0), c = s(() => e.disabled ? void 0 : e.href), d = s(() => e.rel ? e.rel : e.target === "_blank" ? "noopener noreferrer" : void 0), p = s(() => e.onClick ? "button" : void 0), h = s(() => {
|
|
12459
12470
|
if (e.onClick)
|
|
12460
12471
|
return e.disabled ? -1 : 0;
|
|
12461
|
-
}), y = na(),
|
|
12472
|
+
}), y = na(), g = () => {
|
|
12462
12473
|
const v = { ...e, ...y }, L = {};
|
|
12463
12474
|
for (const w in v)
|
|
12464
12475
|
(w.indexOf("data-") === 0 || w.indexOf("aria-") === 0 || w === "style" || w === "role" || w === "tabIndex" || w === "class" && e.standalone) && (L[w] = v[w]);
|
|
12465
12476
|
return L;
|
|
12466
12477
|
};
|
|
12467
|
-
function
|
|
12478
|
+
function k(v) {
|
|
12468
12479
|
if (e.disabled) {
|
|
12469
12480
|
v && v.preventDefault && v.preventDefault();
|
|
12470
12481
|
return;
|
|
@@ -12486,9 +12497,9 @@ const Qm = {
|
|
|
12486
12497
|
title: t.tooltip,
|
|
12487
12498
|
disabled: t.disabled,
|
|
12488
12499
|
"aria-current": i.value,
|
|
12489
|
-
onClick: L[0] || (L[0] = async (w) =>
|
|
12500
|
+
onClick: L[0] || (L[0] = async (w) => k(w)),
|
|
12490
12501
|
class: l.value
|
|
12491
|
-
},
|
|
12502
|
+
}, g()), [
|
|
12492
12503
|
t.start || v.$slots.start ? (o(), r("span", _b, [
|
|
12493
12504
|
ee(v.$slots, "start")
|
|
12494
12505
|
])) : f("", !0),
|
|
@@ -12551,9 +12562,9 @@ const Qm = {
|
|
|
12551
12562
|
rel: d.value,
|
|
12552
12563
|
"aria-current": i.value,
|
|
12553
12564
|
"aria-disabled": u.value,
|
|
12554
|
-
onClick: L[1] || (L[1] = async (w) =>
|
|
12565
|
+
onClick: L[1] || (L[1] = async (w) => k(w)),
|
|
12555
12566
|
class: l.value
|
|
12556
|
-
},
|
|
12567
|
+
}, g()), [
|
|
12557
12568
|
t.start || v.$slots.start ? (o(), r("span", Ib, [
|
|
12558
12569
|
ee(v.$slots, "start")
|
|
12559
12570
|
])) : f("", !0),
|
|
@@ -12615,10 +12626,10 @@ const Qm = {
|
|
|
12615
12626
|
tabIndex: h.value,
|
|
12616
12627
|
"aria-current": i.value,
|
|
12617
12628
|
"aria-disabled": u.value,
|
|
12618
|
-
onClick: L[2] || (L[2] = async (w) =>
|
|
12629
|
+
onClick: L[2] || (L[2] = async (w) => k(w)),
|
|
12619
12630
|
onKeydown: L[3] || (L[3] = async (w) => b(w)),
|
|
12620
12631
|
class: l.value
|
|
12621
|
-
},
|
|
12632
|
+
}, g()), [
|
|
12622
12633
|
t.start || v.$slots.start ? (o(), r("span", Eb, [
|
|
12623
12634
|
ee(v.$slots, "start")
|
|
12624
12635
|
])) : f("", !0),
|
|
@@ -12681,9 +12692,9 @@ const Qm = {
|
|
|
12681
12692
|
title: t.tooltip,
|
|
12682
12693
|
disabled: t.disabled,
|
|
12683
12694
|
"aria-current": i.value,
|
|
12684
|
-
onClick: L[4] || (L[4] = async (w) =>
|
|
12695
|
+
onClick: L[4] || (L[4] = async (w) => k(w)),
|
|
12685
12696
|
class: l.value
|
|
12686
|
-
},
|
|
12697
|
+
}, g()), [
|
|
12687
12698
|
t.start || v.$slots.start ? (o(), r("span", Hb, [
|
|
12688
12699
|
ee(v.$slots, "start")
|
|
12689
12700
|
])) : f("", !0),
|
|
@@ -12746,9 +12757,9 @@ const Qm = {
|
|
|
12746
12757
|
rel: d.value,
|
|
12747
12758
|
"aria-current": i.value,
|
|
12748
12759
|
"aria-disabled": u.value,
|
|
12749
|
-
onClick: L[5] || (L[5] = async (w) =>
|
|
12760
|
+
onClick: L[5] || (L[5] = async (w) => k(w)),
|
|
12750
12761
|
class: l.value
|
|
12751
|
-
},
|
|
12762
|
+
}, g()), [
|
|
12752
12763
|
t.start || v.$slots.start ? (o(), r("span", Xb, [
|
|
12753
12764
|
ee(v.$slots, "start")
|
|
12754
12765
|
])) : f("", !0),
|
|
@@ -12810,10 +12821,10 @@ const Qm = {
|
|
|
12810
12821
|
tabIndex: h.value,
|
|
12811
12822
|
"aria-current": i.value,
|
|
12812
12823
|
"aria-disabled": u.value,
|
|
12813
|
-
onClick: L[6] || (L[6] = async (w) =>
|
|
12824
|
+
onClick: L[6] || (L[6] = async (w) => k(w)),
|
|
12814
12825
|
onKeydown: L[7] || (L[7] = async (w) => b(w)),
|
|
12815
12826
|
class: l.value
|
|
12816
|
-
},
|
|
12827
|
+
}, g()), [
|
|
12817
12828
|
t.start || v.$slots.start ? (o(), r("span", n0, [
|
|
12818
12829
|
ee(v.$slots, "start")
|
|
12819
12830
|
])) : f("", !0),
|
|
@@ -12943,7 +12954,7 @@ const Qm = {
|
|
|
12943
12954
|
}), lt(() => {
|
|
12944
12955
|
d.value && (d.value(), d.value = null), y.value && (y.value(), y.value = null), aa(l.value);
|
|
12945
12956
|
});
|
|
12946
|
-
const
|
|
12957
|
+
const g = s(() => l.value + "-title"), k = s(() => l.value + "-description"), b = s(() => e.title ? l.value + "-title" : void 0), v = s(() => {
|
|
12947
12958
|
if (!e.title)
|
|
12948
12959
|
return e.ariaLabel || "Diálogo";
|
|
12949
12960
|
}), L = s(() => e.description ? l.value + "-description" : void 0), w = s(() => (e.variant ? e.variant !== "default" && e.variant !== "primary" : !1) || e.layout === "dialog"), M = s(() => !!e.responsive && u.value), N = s(() => e.responsive && u.value ? !1 : e.windowControls === !0 ? !0 : Array.isArray(e.windowControls) && e.windowControls.includes("normal")), K = s(() => e.responsive && u.value ? !1 : e.windowControls === !0 ? !0 : Array.isArray(e.windowControls) && e.windowControls.includes("expand")), O = s(() => e.responsive && u.value ? !1 : e.windowControls === !0 ? !0 : Array.isArray(e.windowControls) && e.windowControls.includes("fullscreen")), $ = s(() => e.responsive && u.value ? !1 : e.windowControls === !0 ? !0 : Array.isArray(e.windowControls) && e.windowControls.includes("minimize")), I = s(() => e.responsive && u.value ? !1 : e.windowControls === !0 ? !0 : Array.isArray(e.windowControls) && e.windowControls.length > 0);
|
|
@@ -13049,12 +13060,12 @@ const Qm = {
|
|
|
13049
13060
|
t.title ? (o(), r("span", {
|
|
13050
13061
|
key: 0,
|
|
13051
13062
|
class: "umds-modal__title",
|
|
13052
|
-
id:
|
|
13063
|
+
id: g.value
|
|
13053
13064
|
}, x(t.title), 9, m0)) : f("", !0),
|
|
13054
13065
|
t.description ? (o(), r("span", {
|
|
13055
13066
|
key: 1,
|
|
13056
13067
|
class: "umds-modal__subtitle",
|
|
13057
|
-
id:
|
|
13068
|
+
id: k.value
|
|
13058
13069
|
}, x(t.description), 9, v0)) : f("", !0)
|
|
13059
13070
|
]),
|
|
13060
13071
|
m("div", p0, [
|
|
@@ -13192,7 +13203,7 @@ const Qm = {
|
|
|
13192
13203
|
key: 0,
|
|
13193
13204
|
variant: "h5",
|
|
13194
13205
|
weight: "bold",
|
|
13195
|
-
id:
|
|
13206
|
+
id: g.value
|
|
13196
13207
|
}, {
|
|
13197
13208
|
default: pe(() => [
|
|
13198
13209
|
ne(x(t.title), 1)
|
|
@@ -13203,7 +13214,7 @@ const Qm = {
|
|
|
13203
13214
|
key: 1,
|
|
13204
13215
|
variant: "body2",
|
|
13205
13216
|
color: "secondary",
|
|
13206
|
-
id:
|
|
13217
|
+
id: k.value
|
|
13207
13218
|
}, {
|
|
13208
13219
|
default: pe(() => [
|
|
13209
13220
|
ne(x(t.description), 1)
|
|
@@ -13303,10 +13314,10 @@ const Qm = {
|
|
|
13303
13314
|
}), lt(() => {
|
|
13304
13315
|
typeof document < "u" && h.value && (document.removeEventListener("mousedown", h.value), h.value = null);
|
|
13305
13316
|
});
|
|
13306
|
-
const y = s(() => e.helperText || e.description || ""),
|
|
13317
|
+
const y = s(() => e.helperText || e.description || ""), g = s(() => !!y.value), k = s(() => e.readOnly ? "true" : void 0), b = s(() => e.id || c.value), v = s(() => b.value ? b.value + "-combobox" : void 0), L = s(() => b.value ? b.value + "-listbox" : void 0), w = s(() => b.value ? b.value + "-label" : void 0), M = s(() => e.label && b.value ? w.value : void 0), N = s(() => e.label && !b.value ? e.label : void 0), K = s(() => b.value ? b.value + "-error" : void 0), O = s(() => b.value ? b.value + "-helper" : void 0), $ = s(() => !!e.invalid || !!e.errorMessage), I = s(() => $.value ? "true" : void 0), A = s(() => {
|
|
13307
13318
|
if (!b.value) return;
|
|
13308
13319
|
const H = Array();
|
|
13309
|
-
return e.errorMessage && H.push(b.value + "-error"),
|
|
13320
|
+
return e.errorMessage && H.push(b.value + "-error"), g.value && H.push(b.value + "-helper"), H.length > 0 ? H.join(" ") : void 0;
|
|
13310
13321
|
}), z = s(() => e.value !== void 0 ? Array.isArray(e.value) ? e.value : [] : i.value), P = s(() => e.options ? z.value.map((H) => e.options?.find((be) => be.value === H) || {
|
|
13311
13322
|
label: String(H),
|
|
13312
13323
|
value: H
|
|
@@ -13422,7 +13433,7 @@ const Qm = {
|
|
|
13422
13433
|
id: v.value,
|
|
13423
13434
|
onClick: ie[2] || (ie[2] = async (be) => he()),
|
|
13424
13435
|
onKeydown: ie[3] || (ie[3] = async (be) => Me(be)),
|
|
13425
|
-
"aria-readonly":
|
|
13436
|
+
"aria-readonly": k.value,
|
|
13426
13437
|
"aria-expanded": a.value,
|
|
13427
13438
|
"aria-controls": L.value,
|
|
13428
13439
|
"aria-labelledby": M.value,
|
|
@@ -13583,7 +13594,7 @@ const Qm = {
|
|
|
13583
13594
|
]),
|
|
13584
13595
|
_: 1
|
|
13585
13596
|
}, 8, ["id"])) : f("", !0),
|
|
13586
|
-
|
|
13597
|
+
g.value ? (o(), ke(Re, {
|
|
13587
13598
|
key: 3,
|
|
13588
13599
|
variant: "caption",
|
|
13589
13600
|
color: "secondary",
|
|
@@ -13619,7 +13630,7 @@ const Qm = {
|
|
|
13619
13630
|
onCollapsedChange: { type: Function }
|
|
13620
13631
|
},
|
|
13621
13632
|
setup(t) {
|
|
13622
|
-
const e = t, a = Ea(), n = _(e.defaultCollapsedIds || []), l = _(""), i = _(null), u = _(null), c = s(() => e.nodeWidth && e.nodeWidth > 0 ? e.nodeWidth : 176), d = s(() => e.nodeHeight && e.nodeHeight > 0 ? e.nodeHeight : 64), p = s(() => e.gapX !== void 0 && e.gapX >= 0 ? e.gapX : 16), h = s(() => e.gapY !== void 0 && e.gapY >= 0 ? e.gapY : 40), y = s(() => e.collapsedIds !== void 0 ? e.collapsedIds : n.value),
|
|
13633
|
+
const e = t, a = Ea(), n = _(e.defaultCollapsedIds || []), l = _(""), i = _(null), u = _(null), c = s(() => e.nodeWidth && e.nodeWidth > 0 ? e.nodeWidth : 176), d = s(() => e.nodeHeight && e.nodeHeight > 0 ? e.nodeHeight : 64), p = s(() => e.gapX !== void 0 && e.gapX >= 0 ? e.gapX : 16), h = s(() => e.gapY !== void 0 && e.gapY >= 0 ? e.gapY : 40), y = s(() => e.collapsedIds !== void 0 ? e.collapsedIds : n.value), g = s(() => e.ariaLabel || "Organograma"), k = s(() => ["umds-org-chart", e.className].filter(Boolean).join(" ")), b = s(() => {
|
|
13623
13634
|
const W = e.nodes || [], ue = c.value, E = d.value, T = ue + p.value, B = E + h.value, R = y.value, J = [], H = [];
|
|
13624
13635
|
let ie = 0, be = 0;
|
|
13625
13636
|
const Ee = (Pe, Je, Ye, Xe, Ie) => {
|
|
@@ -13781,13 +13792,13 @@ const Qm = {
|
|
|
13781
13792
|
return (W, ue) => (o(), r("div", {
|
|
13782
13793
|
ref_key: "rootRef",
|
|
13783
13794
|
ref: i,
|
|
13784
|
-
class: Z(
|
|
13795
|
+
class: Z(k.value)
|
|
13785
13796
|
}, [
|
|
13786
13797
|
N.value ? (o(), r("div", {
|
|
13787
13798
|
key: 0,
|
|
13788
13799
|
role: "tree",
|
|
13789
13800
|
class: "umds-org-chart__scroller",
|
|
13790
|
-
"aria-label":
|
|
13801
|
+
"aria-label": g.value
|
|
13791
13802
|
}, [
|
|
13792
13803
|
m("div", {
|
|
13793
13804
|
class: "umds-org-chart__surface",
|
|
@@ -13891,10 +13902,10 @@ const Qm = {
|
|
|
13891
13902
|
)), h = s(() => e.type === "alphanumeric"), y = s(() => {
|
|
13892
13903
|
const te = e.value !== void 0 ? e.value : a.value;
|
|
13893
13904
|
return M(te).slice(0, d.value);
|
|
13894
|
-
}),
|
|
13905
|
+
}), g = s(() => !!e.invalid || !!e.errorMessage), k = s(() => c.value && e.label ? c.value + "-label" : void 0), b = s(() => c.value && e.errorMessage ? c.value + "-error" : void 0), v = s(() => e.ariaLabel ? e.ariaLabel : e.label && !k.value ? e.label : void 0), L = s(() => g.value ? "true" : void 0), w = s(() => [
|
|
13895
13906
|
"umds-otp",
|
|
13896
13907
|
`umds-otp--${e.size || "md"}`,
|
|
13897
|
-
|
|
13908
|
+
g.value ? "umds-otp--invalid" : "",
|
|
13898
13909
|
e.disabled ? "umds-otp--disabled" : "",
|
|
13899
13910
|
e.className
|
|
13900
13911
|
].filter(Boolean).join(" "));
|
|
@@ -13990,7 +14001,7 @@ const Qm = {
|
|
|
13990
14001
|
t.label ? (o(), r("span", {
|
|
13991
14002
|
key: 0,
|
|
13992
14003
|
class: "umds-otp__label",
|
|
13993
|
-
id:
|
|
14004
|
+
id: k.value
|
|
13994
14005
|
}, x(t.label), 9, s2)) : f("", !0),
|
|
13995
14006
|
m("div", {
|
|
13996
14007
|
role: "group",
|
|
@@ -13998,7 +14009,7 @@ const Qm = {
|
|
|
13998
14009
|
ref_key: "groupRef",
|
|
13999
14010
|
ref: l,
|
|
14000
14011
|
"aria-label": v.value,
|
|
14001
|
-
"aria-labelledby":
|
|
14012
|
+
"aria-labelledby": k.value
|
|
14002
14013
|
}, [
|
|
14003
14014
|
(o(!0), r(se, null, Te(p.value, (V, j) => (o(), r("input", {
|
|
14004
14015
|
key: V,
|
|
@@ -14257,7 +14268,7 @@ const Qm = {
|
|
|
14257
14268
|
}), u = s(() => !!(e.disabled || (e.page || 1) <= 1)), c = s(() => !!(e.disabled || (e.page || 1) >= (e.totalPages || 1))), d = s(() => {
|
|
14258
14269
|
const $ = e.pageSize || 20, I = e.totalItems != null ? e.totalItems : (e.totalPages || 1) * $, A = e.page || 1, z = (A - 1) * $ + 1, P = Math.min(A * $, I);
|
|
14259
14270
|
return e.itemRangeLabel ? e.itemRangeLabel(z, P, I) : z + "-" + P + " de " + I;
|
|
14260
|
-
}), p = s(() => e.ofLabel || "de"), h = s(() => e.prevLabel || "Anterior"), y = s(() => e.nextLabel || "Próxima"),
|
|
14271
|
+
}), p = s(() => e.ofLabel || "de"), h = s(() => e.prevLabel || "Anterior"), y = s(() => e.nextLabel || "Próxima"), g = s(() => [
|
|
14261
14272
|
"umds-pagination",
|
|
14262
14273
|
`umds-pagination--${l.value}`,
|
|
14263
14274
|
e.disabled ? "umds-pagination--disabled" : "",
|
|
@@ -14266,7 +14277,7 @@ const Qm = {
|
|
|
14266
14277
|
mt(() => {
|
|
14267
14278
|
M();
|
|
14268
14279
|
});
|
|
14269
|
-
function
|
|
14280
|
+
function k($) {
|
|
14270
14281
|
e.onChange && e.onChange($), e.onPageChange && e.onPageChange($);
|
|
14271
14282
|
}
|
|
14272
14283
|
function b($) {
|
|
@@ -14275,7 +14286,7 @@ const Qm = {
|
|
|
14275
14286
|
function v($) {
|
|
14276
14287
|
if (e.disabled) return;
|
|
14277
14288
|
const I = e.totalPages || 1;
|
|
14278
|
-
$ < 1 || $ > I || $ !== (e.page || 1) &&
|
|
14289
|
+
$ < 1 || $ > I || $ !== (e.page || 1) && k($);
|
|
14279
14290
|
}
|
|
14280
14291
|
function L($) {
|
|
14281
14292
|
return [
|
|
@@ -14300,14 +14311,14 @@ const Qm = {
|
|
|
14300
14311
|
return;
|
|
14301
14312
|
}
|
|
14302
14313
|
const z = Math.min(Math.max(A, 1), $);
|
|
14303
|
-
a.value = String(z), z !== I &&
|
|
14314
|
+
a.value = String(z), z !== I && k(z);
|
|
14304
14315
|
}
|
|
14305
14316
|
function O($) {
|
|
14306
14317
|
$ && $.key === "Enter" && ($.preventDefault(), K());
|
|
14307
14318
|
}
|
|
14308
14319
|
return ($, I) => (o(), r("nav", {
|
|
14309
14320
|
"aria-label": t.ariaLabel || "Paginação",
|
|
14310
|
-
class: Z(
|
|
14321
|
+
class: Z(g.value)
|
|
14311
14322
|
}, [
|
|
14312
14323
|
l.value === "default" ? (o(), r(se, { key: 0 }, [
|
|
14313
14324
|
t.showPrevNext !== !1 ? (o(), r("button", {
|
|
@@ -14634,17 +14645,17 @@ const Qm = {
|
|
|
14634
14645
|
a.defaultValue || ""
|
|
14635
14646
|
), h = _(
|
|
14636
14647
|
"umds-phone-input-" + Math.random().toString(36).slice(2, 9)
|
|
14637
|
-
), y = _(null),
|
|
14648
|
+
), y = _(null), g = _(null), k = _(null), b = _(null), v = _(null), L = _(null);
|
|
14638
14649
|
tt(() => {
|
|
14639
14650
|
if (typeof document < "u") {
|
|
14640
14651
|
const T = (B) => {
|
|
14641
14652
|
const R = B.target;
|
|
14642
14653
|
y.value && y.value.contains(R) || v.value && v.value.contains(R) || (n.value = !1, i.value = !1, V());
|
|
14643
14654
|
};
|
|
14644
|
-
|
|
14655
|
+
k.value = T, document.addEventListener("mousedown", T);
|
|
14645
14656
|
}
|
|
14646
14657
|
}), lt(() => {
|
|
14647
|
-
typeof document < "u" &&
|
|
14658
|
+
typeof document < "u" && k.value && (document.removeEventListener("mousedown", k.value), k.value = null), b.value && (clearTimeout(b.value), b.value = null), V();
|
|
14648
14659
|
});
|
|
14649
14660
|
const w = s(() => {
|
|
14650
14661
|
const T = a.countryNames;
|
|
@@ -14725,7 +14736,7 @@ const Qm = {
|
|
|
14725
14736
|
}
|
|
14726
14737
|
}
|
|
14727
14738
|
function he() {
|
|
14728
|
-
n.value = !1, i.value = !1, V(),
|
|
14739
|
+
n.value = !1, i.value = !1, V(), g.value && g.value.focus();
|
|
14729
14740
|
}
|
|
14730
14741
|
function Me(T) {
|
|
14731
14742
|
d.value = T.code, he(), a.onChange && a.onChange(Y.value, T);
|
|
@@ -14762,7 +14773,7 @@ const Qm = {
|
|
|
14762
14773
|
"aria-haspopup": "listbox",
|
|
14763
14774
|
class: "umds-phone-input__flag-btn",
|
|
14764
14775
|
ref_key: "flagBtnRef",
|
|
14765
|
-
ref:
|
|
14776
|
+
ref: g,
|
|
14766
14777
|
onClick: B[0] || (B[0] = async (R) => U()),
|
|
14767
14778
|
disabled: t.disabled || t.readOnly,
|
|
14768
14779
|
"aria-expanded": n.value,
|
|
@@ -14948,14 +14959,14 @@ const Qm = {
|
|
|
14948
14959
|
function y(w) {
|
|
14949
14960
|
return e.size === "sm" ? w === 0 ? "md" : "sm" : w === 0 ? "lg" : "md";
|
|
14950
14961
|
}
|
|
14951
|
-
function
|
|
14962
|
+
function g(w) {
|
|
14952
14963
|
if (w.initials) return w.initials;
|
|
14953
14964
|
const M = (w.name || "").trim().split(/\s+/).filter(Boolean);
|
|
14954
14965
|
if (M.length === 0) return "";
|
|
14955
14966
|
const N = M[0].charAt(0), K = M.length > 1 ? M[M.length - 1].charAt(0) : "";
|
|
14956
14967
|
return (N + K).toUpperCase();
|
|
14957
14968
|
}
|
|
14958
|
-
function
|
|
14969
|
+
function k(w) {
|
|
14959
14970
|
if (w.valueLabel) return w.valueLabel;
|
|
14960
14971
|
const M = e.valueFormatter ? e.valueFormatter(w.value, w) : String(w.value);
|
|
14961
14972
|
return e.unit ? `${M} ${e.unit}` : M;
|
|
@@ -14964,7 +14975,7 @@ const Qm = {
|
|
|
14964
14975
|
return e.positionLabel ? e.positionLabel(w) : `${w}º lugar`;
|
|
14965
14976
|
}
|
|
14966
14977
|
function v(w, M) {
|
|
14967
|
-
const N = [w.name,
|
|
14978
|
+
const N = [w.name, k(w), w.description].filter(Boolean);
|
|
14968
14979
|
return `${b(M)}: ${N.join(", ")}`;
|
|
14969
14980
|
}
|
|
14970
14981
|
function L(w) {
|
|
@@ -14992,7 +15003,7 @@ const Qm = {
|
|
|
14992
15003
|
size: y(K)
|
|
14993
15004
|
}, {
|
|
14994
15005
|
default: pe(() => [
|
|
14995
|
-
ne(x(
|
|
15006
|
+
ne(x(g(N)), 1)
|
|
14996
15007
|
]),
|
|
14997
15008
|
_: 2
|
|
14998
15009
|
}, 1032, ["src", "size"])
|
|
@@ -15006,7 +15017,7 @@ const Qm = {
|
|
|
15006
15017
|
class: "umds-podium__description",
|
|
15007
15018
|
title: N.description
|
|
15008
15019
|
}, x(N.description), 9, ry)) : f("", !0),
|
|
15009
|
-
m("span", uy, x(
|
|
15020
|
+
m("span", uy, x(k(N)), 1)
|
|
15010
15021
|
]),
|
|
15011
15022
|
m("span", cy, [
|
|
15012
15023
|
m("span", dy, x(K + 1), 1)
|
|
@@ -15036,7 +15047,7 @@ const Qm = {
|
|
|
15036
15047
|
src: N.avatarSrc
|
|
15037
15048
|
}, {
|
|
15038
15049
|
default: pe(() => [
|
|
15039
|
-
ne(x(
|
|
15050
|
+
ne(x(g(N)), 1)
|
|
15040
15051
|
]),
|
|
15041
15052
|
_: 2
|
|
15042
15053
|
}, 1032, ["src"]),
|
|
@@ -15051,7 +15062,7 @@ const Qm = {
|
|
|
15051
15062
|
title: N.description
|
|
15052
15063
|
}, x(N.description), 9, wy)) : f("", !0)
|
|
15053
15064
|
]),
|
|
15054
|
-
m("span", Ly, x(
|
|
15065
|
+
m("span", Ly, x(k(N)), 1)
|
|
15055
15066
|
])
|
|
15056
15067
|
]))), 128))
|
|
15057
15068
|
], 8, yy)
|
|
@@ -15163,10 +15174,10 @@ const Qm = {
|
|
|
15163
15174
|
});
|
|
15164
15175
|
function h(y) {
|
|
15165
15176
|
if (e.disabled) return;
|
|
15166
|
-
const
|
|
15167
|
-
a.value =
|
|
15177
|
+
const g = y.target.checked;
|
|
15178
|
+
a.value = g, typeof e.onChange == "function" && e.onChange(g);
|
|
15168
15179
|
}
|
|
15169
|
-
return (y,
|
|
15180
|
+
return (y, g) => (o(), r("label", {
|
|
15170
15181
|
class: Z(p.value)
|
|
15171
15182
|
}, [
|
|
15172
15183
|
m("input", {
|
|
@@ -15181,7 +15192,7 @@ const Qm = {
|
|
|
15181
15192
|
"aria-label": t.ariaLabel,
|
|
15182
15193
|
"aria-invalid": c.value ? "true" : void 0,
|
|
15183
15194
|
"aria-describedby": t.errorMessage ? d.value : void 0,
|
|
15184
|
-
onChange:
|
|
15195
|
+
onChange: g[0] || (g[0] = async (k) => h(k))
|
|
15185
15196
|
}, null, 40, Ty),
|
|
15186
15197
|
m("span", My, [
|
|
15187
15198
|
u.value ? (o(), r("span", zy)) : f("", !0)
|
|
@@ -15212,7 +15223,7 @@ const Qm = {
|
|
|
15212
15223
|
key: 2,
|
|
15213
15224
|
class: "umds-radio__error",
|
|
15214
15225
|
id: d.value,
|
|
15215
|
-
onClick:
|
|
15226
|
+
onClick: g[1] || (g[1] = async (k) => k.preventDefault())
|
|
15216
15227
|
}, [
|
|
15217
15228
|
ee(y.$slots, "error-message", {}, () => [
|
|
15218
15229
|
ne(x(t.errorMessage), 1)
|
|
@@ -15248,13 +15259,13 @@ const Qm = {
|
|
|
15248
15259
|
e.direction === "horizontal" ? "umds-radio-group--horizontal" : "umds-radio-group--vertical",
|
|
15249
15260
|
e.className
|
|
15250
15261
|
].filter(Boolean).join(" "));
|
|
15251
|
-
function y(
|
|
15252
|
-
return i.value ===
|
|
15262
|
+
function y(k) {
|
|
15263
|
+
return i.value === k;
|
|
15253
15264
|
}
|
|
15254
|
-
function k
|
|
15255
|
-
a.value =
|
|
15265
|
+
function g(k) {
|
|
15266
|
+
a.value = k, e.onChange && e.onChange(k);
|
|
15256
15267
|
}
|
|
15257
|
-
return (
|
|
15268
|
+
return (k, b) => (o(), r("div", {
|
|
15258
15269
|
class: Z(h.value)
|
|
15259
15270
|
}, [
|
|
15260
15271
|
t.label ? (o(), r("span", {
|
|
@@ -15284,7 +15295,7 @@ const Qm = {
|
|
|
15284
15295
|
invalid: p.value,
|
|
15285
15296
|
disabled: t.disabled || v.disabled,
|
|
15286
15297
|
checked: y(v.value),
|
|
15287
|
-
onChange: (w) =>
|
|
15298
|
+
onChange: (w) => g(v.value)
|
|
15288
15299
|
}, null, 8, ["name", "value", "label", "description", "size", "background", "invalid", "disabled", "checked", "onChange"]))), 128))
|
|
15289
15300
|
], 8, By),
|
|
15290
15301
|
t.errorMessage ? (o(), r("span", {
|
|
@@ -15387,7 +15398,7 @@ const Qm = {
|
|
|
15387
15398
|
className: {}
|
|
15388
15399
|
},
|
|
15389
15400
|
setup(t) {
|
|
15390
|
-
const e = t, a = Ea(), n = _(!1), l = _(!1), i = _(!1), u = _(!1), c = _(0), d = _(0), p = _(0), h = _(0), y = _(0),
|
|
15401
|
+
const e = t, a = Ea(), n = _(!1), l = _(!1), i = _(!1), u = _(!1), c = _(0), d = _(0), p = _(0), h = _(0), y = _(0), g = _(!1), k = _(""), b = _(
|
|
15391
15402
|
Array.isArray(e.defaultValue) ? e.defaultValue : e.defaultValue !== void 0 && e.defaultValue !== null ? [e.defaultValue] : Array()
|
|
15392
15403
|
), v = _(!1), L = _(!1), w = _(!1), M = _(-1), N = _(!1), K = _(""), O = _(null), $ = _(null), I = _(null), A = _(null), z = _(null), P = _(null), Y = _(null), le = _(null), fe = _(null);
|
|
15393
15404
|
tt(() => {
|
|
@@ -15442,15 +15453,15 @@ const Qm = {
|
|
|
15442
15453
|
return e.emptyOptionLabel && !e.multiple && de.length === 1 && de[0] === "" ? !0 : de.length === 0;
|
|
15443
15454
|
}), ie = s(() => (e.value !== void 0 ? Array.isArray(e.value) ? e.value : e.value === null ? [] : [e.value] : b.value || []).map((ge) => String(ge)).join(",")), be = s(() => {
|
|
15444
15455
|
if (!e.options) return [];
|
|
15445
|
-
const de = e.emptyOptionLabel && !e.multiple && !
|
|
15456
|
+
const de = e.emptyOptionLabel && !e.multiple && !k.value ? [
|
|
15446
15457
|
{
|
|
15447
15458
|
label: e.emptyOptionLabel,
|
|
15448
15459
|
value: ""
|
|
15449
15460
|
}
|
|
15450
15461
|
] : [];
|
|
15451
|
-
if (!e.searchable || !
|
|
15462
|
+
if (!e.searchable || !k.value || e.onSearchChange)
|
|
15452
15463
|
return de.concat(e.options);
|
|
15453
|
-
const ge =
|
|
15464
|
+
const ge = k.value.toLowerCase();
|
|
15454
15465
|
return e.options.filter((De) => De.label.toLowerCase().includes(ge));
|
|
15455
15466
|
}), Ee = s(() => [
|
|
15456
15467
|
"umds-select",
|
|
@@ -15466,7 +15477,7 @@ const Qm = {
|
|
|
15466
15477
|
e.variant === "search" ? "umds-select--filter-search" : "",
|
|
15467
15478
|
e.variant === "combo" ? "umds-select--filter-combo" : "",
|
|
15468
15479
|
D.value && i.value ? "umds-select--floating" : "",
|
|
15469
|
-
D.value &&
|
|
15480
|
+
D.value && g.value ? "umds-select--list-end" : "",
|
|
15470
15481
|
D.value && N.value ? "umds-select--teclado" : "",
|
|
15471
15482
|
e.triggerIcon ? "umds-select--has-trigger-icon" : "",
|
|
15472
15483
|
v.value && e.searchVariant !== "inline" ? "umds-select--placement-top" : "",
|
|
@@ -15498,7 +15509,7 @@ const Qm = {
|
|
|
15498
15509
|
return y.value && (de.maxHeight = y.value + "px"), Le.value && (de.minWidth = "max(100%, " + Le.value + ")"), de;
|
|
15499
15510
|
});
|
|
15500
15511
|
mt(() => {
|
|
15501
|
-
le.value = D.value, fe.value = e.onOpenChange, D.value && !l.value && Ne(), !D.value && l.value && (l.value = !1), !D.value &&
|
|
15512
|
+
le.value = D.value, fe.value = e.onOpenChange, D.value && !l.value && Ne(), !D.value && l.value && (l.value = !1), !D.value && g.value && (g.value = !1), qe(), D.value && i.value && $.value && P.value && !Y.value && (Y.value = Ut(
|
|
15502
15513
|
$.value,
|
|
15503
15514
|
P.value,
|
|
15504
15515
|
() => je()
|
|
@@ -15548,7 +15559,7 @@ const Qm = {
|
|
|
15548
15559
|
function Ne() {
|
|
15549
15560
|
l.value = !0;
|
|
15550
15561
|
const de = ft();
|
|
15551
|
-
i.value = de, u.value = !1,
|
|
15562
|
+
i.value = de, u.value = !1, g.value = !1, v.value = $e(de), M.value = be.value.findIndex(
|
|
15552
15563
|
(ge) => Qe(ge.value)
|
|
15553
15564
|
), e.searchable && (e.autoFocusSearch || e.searchVariant === "inline" || V.value) && (L.value = !0);
|
|
15554
15565
|
}
|
|
@@ -15579,8 +15590,8 @@ const Qm = {
|
|
|
15579
15590
|
});
|
|
15580
15591
|
}
|
|
15581
15592
|
function qe() {
|
|
15582
|
-
if (typeof window > "u" || !P.value || !D.value || !V.value || i.value ||
|
|
15583
|
-
P.value.getBoundingClientRect().right > window.innerWidth - 8 && (
|
|
15593
|
+
if (typeof window > "u" || !P.value || !D.value || !V.value || i.value || g.value) return;
|
|
15594
|
+
P.value.getBoundingClientRect().right > window.innerWidth - 8 && (g.value = !0);
|
|
15584
15595
|
}
|
|
15585
15596
|
function ot() {
|
|
15586
15597
|
if (e.disabled || e.readOnly) return;
|
|
@@ -15592,7 +15603,7 @@ const Qm = {
|
|
|
15592
15603
|
}
|
|
15593
15604
|
function C(de) {
|
|
15594
15605
|
const ge = de.target.value;
|
|
15595
|
-
if (
|
|
15606
|
+
if (k.value = ge, M.value = -1, e.onSearchChange) {
|
|
15596
15607
|
z.value && clearTimeout(z.value);
|
|
15597
15608
|
const De = e.searchDebounce ?? 300;
|
|
15598
15609
|
z.value = setTimeout(() => {
|
|
@@ -15601,7 +15612,7 @@ const Qm = {
|
|
|
15601
15612
|
}
|
|
15602
15613
|
}
|
|
15603
15614
|
function S() {
|
|
15604
|
-
Ge(!1), l.value = !1,
|
|
15615
|
+
Ge(!1), l.value = !1, k.value = "", M.value = -1, e.onSearchChange && e.onSearchChange("");
|
|
15605
15616
|
}
|
|
15606
15617
|
function F(de) {
|
|
15607
15618
|
const ge = be.value;
|
|
@@ -15789,7 +15800,7 @@ const Qm = {
|
|
|
15789
15800
|
ref: I,
|
|
15790
15801
|
placeholder: t.searchPlaceholder || "Buscar...",
|
|
15791
15802
|
"aria-label": t.searchAriaLabel || "Buscar",
|
|
15792
|
-
value:
|
|
15803
|
+
value: k.value,
|
|
15793
15804
|
onInput: ge[2] || (ge[2] = async (De) => C(De))
|
|
15794
15805
|
}, null, 40, Zy),
|
|
15795
15806
|
t.searchVariant === "inline" ? (o(), r("button", {
|
|
@@ -16068,7 +16079,7 @@ const Qm = {
|
|
|
16068
16079
|
onBlur: { type: Function }
|
|
16069
16080
|
},
|
|
16070
16081
|
setup(t) {
|
|
16071
|
-
const e = t, a = _(""), n = _(!1), l = _(""), i = _(!1), u = _(0), c = _(""), d = _(""), p = _(!1), h = _(!1), y = _(""),
|
|
16082
|
+
const e = t, a = _(""), n = _(!1), l = _(""), i = _(!1), u = _(0), c = _(""), d = _(""), p = _(!1), h = _(!1), y = _(""), g = _(""), k = _(""), b = _(""), v = _(""), L = _(!1), w = _("3"), M = _("3"), N = _(!1), K = _(!1), O = _(null), $ = _(null), I = _(null), A = _(null), z = _(null), P = _(null), Y = _(null), le = _(null), fe = _(null), Ae = _(null), oe = _(null), te = _(null);
|
|
16072
16083
|
tt(() => {
|
|
16073
16084
|
a.value = Ht("umds-rte");
|
|
16074
16085
|
const X = e.value !== void 0 ? e.value : e.defaultValue || "";
|
|
@@ -16503,16 +16514,16 @@ const Qm = {
|
|
|
16503
16514
|
}
|
|
16504
16515
|
}
|
|
16505
16516
|
function ze() {
|
|
16506
|
-
!ue.value || typeof window > "u" || h.value || (ve(), y.value = "",
|
|
16517
|
+
!ue.value || typeof window > "u" || h.value || (ve(), y.value = "", g.value = "", k.value = "", b.value = "", v.value = "", n.value = !1, L.value = !1, d.value = "", h.value = !0, P.value = "image");
|
|
16507
16518
|
}
|
|
16508
16519
|
function st() {
|
|
16509
16520
|
h.value = !1, v.value = "", P.value = "editor";
|
|
16510
16521
|
}
|
|
16511
16522
|
function it(X) {
|
|
16512
|
-
y.value = X,
|
|
16523
|
+
y.value = X, k.value = "", b.value = "", v.value && (v.value = "");
|
|
16513
16524
|
}
|
|
16514
16525
|
function At(X) {
|
|
16515
|
-
|
|
16526
|
+
g.value = X;
|
|
16516
16527
|
}
|
|
16517
16528
|
function rt() {
|
|
16518
16529
|
Ae.value && Ae.value.click();
|
|
@@ -16530,13 +16541,13 @@ const Qm = {
|
|
|
16530
16541
|
}
|
|
16531
16542
|
const He = new FileReader();
|
|
16532
16543
|
He.onload = () => {
|
|
16533
|
-
|
|
16544
|
+
k.value = String(He.result || ""), b.value = ye.name, y.value = "", v.value = "";
|
|
16534
16545
|
}, He.readAsDataURL(ye);
|
|
16535
16546
|
}
|
|
16536
16547
|
function ht() {
|
|
16537
16548
|
if (typeof document > "u") return;
|
|
16538
16549
|
const X = Ms(
|
|
16539
|
-
|
|
16550
|
+
k.value || Lo(y.value)
|
|
16540
16551
|
);
|
|
16541
16552
|
if (!X) {
|
|
16542
16553
|
v.value = "invalid";
|
|
@@ -16545,7 +16556,7 @@ const Qm = {
|
|
|
16545
16556
|
Ze(), document.execCommand(
|
|
16546
16557
|
"insertHTML",
|
|
16547
16558
|
!1,
|
|
16548
|
-
xg(X,
|
|
16559
|
+
xg(X, g.value)
|
|
16549
16560
|
), h.value = !1, P.value = "editor", qe();
|
|
16550
16561
|
}
|
|
16551
16562
|
function va(X) {
|
|
@@ -16768,7 +16779,7 @@ const Qm = {
|
|
|
16768
16779
|
q(ia, {
|
|
16769
16780
|
size: "sm",
|
|
16770
16781
|
label: me("imageAlt"),
|
|
16771
|
-
value:
|
|
16782
|
+
value: g.value,
|
|
16772
16783
|
onChange: (ye) => At(ye)
|
|
16773
16784
|
}, null, 8, ["label", "value", "onChange"])
|
|
16774
16785
|
]),
|
|
@@ -17366,7 +17377,7 @@ const Qm = {
|
|
|
17366
17377
|
children: {}
|
|
17367
17378
|
},
|
|
17368
17379
|
setup(t) {
|
|
17369
|
-
const e = t, a = _(!1), n = _(!1), l = _(!1), i = _(0), u = _(0), c = _("top"), d = _("center"), p = _(""), h = _(""), y = _(null),
|
|
17380
|
+
const e = t, a = _(!1), n = _(!1), l = _(!1), i = _(0), u = _(0), c = _("top"), d = _("center"), p = _(""), h = _(""), y = _(null), g = _(null), k = _(null), b = _(null), v = _(null), L = _(null), w = _(null), M = _(null), N = _(null), K = _(null), O = _(null), $ = _(null), I = _(null), A = _(null);
|
|
17370
17381
|
tt(() => {
|
|
17371
17382
|
if (!y.value) return;
|
|
17372
17383
|
$.value = y.value;
|
|
@@ -17418,7 +17429,7 @@ const Qm = {
|
|
|
17418
17429
|
ie.indexOf(K.value) === -1 && (ie.push(K.value), J.setAttribute("aria-describedby", ie.join(" ")));
|
|
17419
17430
|
}
|
|
17420
17431
|
function j() {
|
|
17421
|
-
if (!y.value || !
|
|
17432
|
+
if (!y.value || !g.value) return;
|
|
17422
17433
|
const J = e.side ?? "top", H = e.align ?? "center", ie = H === "center" ? J : `${J}-${H}`, be = [
|
|
17423
17434
|
qt(e.sideOffset ?? 8),
|
|
17424
17435
|
Yt(),
|
|
@@ -17426,7 +17437,7 @@ const Qm = {
|
|
|
17426
17437
|
padding: 8
|
|
17427
17438
|
})
|
|
17428
17439
|
];
|
|
17429
|
-
Gt(y.value,
|
|
17440
|
+
Gt(y.value, g.value, {
|
|
17430
17441
|
placement: ie,
|
|
17431
17442
|
strategy: "fixed",
|
|
17432
17443
|
middleware: be
|
|
@@ -17438,9 +17449,9 @@ const Qm = {
|
|
|
17438
17449
|
});
|
|
17439
17450
|
}
|
|
17440
17451
|
function re() {
|
|
17441
|
-
!y.value || !
|
|
17452
|
+
!y.value || !g.value || (b.value = Ut(
|
|
17442
17453
|
y.value,
|
|
17443
|
-
|
|
17454
|
+
g.value,
|
|
17444
17455
|
() => j()
|
|
17445
17456
|
));
|
|
17446
17457
|
}
|
|
@@ -17449,7 +17460,7 @@ const Qm = {
|
|
|
17449
17460
|
}
|
|
17450
17461
|
function he(J, H) {
|
|
17451
17462
|
const ie = document.elementFromPoint(J, H);
|
|
17452
|
-
return ie ? !!(y.value && y.value.contains(ie) ||
|
|
17463
|
+
return ie ? !!(y.value && y.value.contains(ie) || g.value && g.value.contains(ie)) : !1;
|
|
17453
17464
|
}
|
|
17454
17465
|
function Me() {
|
|
17455
17466
|
if (typeof document > "u" || v.value) return;
|
|
@@ -17490,7 +17501,7 @@ const Qm = {
|
|
|
17490
17501
|
}
|
|
17491
17502
|
function R(J) {
|
|
17492
17503
|
const H = J && J.relatedTarget;
|
|
17493
|
-
H && (y.value && y.value.contains(H) ||
|
|
17504
|
+
H && (y.value && y.value.contains(H) || g.value && g.value.contains(H)) || T();
|
|
17494
17505
|
}
|
|
17495
17506
|
return (J, H) => (o(), r("span", {
|
|
17496
17507
|
ref_key: "triggerRef",
|
|
@@ -17516,7 +17527,7 @@ const Qm = {
|
|
|
17516
17527
|
a.value ? (o(), r("span", {
|
|
17517
17528
|
key: 0,
|
|
17518
17529
|
ref_key: "floatingRef",
|
|
17519
|
-
ref:
|
|
17530
|
+
ref: g,
|
|
17520
17531
|
class: Z(fe.value),
|
|
17521
17532
|
style: Ve(le.value)
|
|
17522
17533
|
}, [
|
|
@@ -17544,7 +17555,7 @@ const Qm = {
|
|
|
17544
17555
|
]),
|
|
17545
17556
|
m("span", {
|
|
17546
17557
|
ref_key: "arrowRef",
|
|
17547
|
-
ref:
|
|
17558
|
+
ref: k,
|
|
17548
17559
|
class: Z(oe.value)
|
|
17549
17560
|
}, null, 2)
|
|
17550
17561
|
], 10, e3)
|
|
@@ -17714,11 +17725,11 @@ const Qm = {
|
|
|
17714
17725
|
const w = i(v, L);
|
|
17715
17726
|
return w === "completed" ? e.completedLabel || "concluído" : w === "error" ? e.errorLabel || "erro" : w === "active" ? e.activeLabel || "atual" : e.pendingLabel || "pendente";
|
|
17716
17727
|
}
|
|
17717
|
-
function
|
|
17728
|
+
function g(v, L) {
|
|
17718
17729
|
const w = [v.title];
|
|
17719
17730
|
return v.description && w.push(v.description), w.push(y(v, L)), w.join(", ");
|
|
17720
17731
|
}
|
|
17721
|
-
function
|
|
17732
|
+
function k(v) {
|
|
17722
17733
|
const L = a.value[v];
|
|
17723
17734
|
return [
|
|
17724
17735
|
"umds-stepper__connector",
|
|
@@ -17736,7 +17747,7 @@ const Qm = {
|
|
|
17736
17747
|
key: M,
|
|
17737
17748
|
role: "listitem",
|
|
17738
17749
|
"aria-current": h(w, M) ? "step" : void 0,
|
|
17739
|
-
"aria-label":
|
|
17750
|
+
"aria-label": g(w, M),
|
|
17740
17751
|
class: Z(u(w, M))
|
|
17741
17752
|
}, [
|
|
17742
17753
|
m("div", y3, [
|
|
@@ -17758,7 +17769,7 @@ const Qm = {
|
|
|
17758
17769
|
b(M) ? f("", !0) : (o(), r("div", {
|
|
17759
17770
|
key: 0,
|
|
17760
17771
|
"aria-hidden": "true",
|
|
17761
|
-
class: Z(
|
|
17772
|
+
class: Z(k(M))
|
|
17762
17773
|
}, null, 2))
|
|
17763
17774
|
]),
|
|
17764
17775
|
m("div", x3, [
|
|
@@ -17942,13 +17953,13 @@ const Qm = {
|
|
|
17942
17953
|
function y() {
|
|
17943
17954
|
e.disabled || typeof a.onChange == "function" && a.onChange(e.index);
|
|
17944
17955
|
}
|
|
17945
|
-
function
|
|
17956
|
+
function g(b) {
|
|
17946
17957
|
b.stopPropagation(), !e.disabled && typeof e.onClose == "function" && e.onClose(e.index, b);
|
|
17947
17958
|
}
|
|
17948
|
-
function
|
|
17959
|
+
function k(b) {
|
|
17949
17960
|
if (e.disabled) return;
|
|
17950
17961
|
if (e.closable && b.key === "Delete") {
|
|
17951
|
-
b.preventDefault(),
|
|
17962
|
+
b.preventDefault(), g(b);
|
|
17952
17963
|
return;
|
|
17953
17964
|
}
|
|
17954
17965
|
if (b.key === "Enter" || b.key === " ") {
|
|
@@ -17979,7 +17990,7 @@ const Qm = {
|
|
|
17979
17990
|
tabIndex: n.value ? 0 : -1,
|
|
17980
17991
|
disabled: t.disabled,
|
|
17981
17992
|
onClick: v[0] || (v[0] = async (L) => y()),
|
|
17982
|
-
onKeydown: v[1] || (v[1] = async (L) =>
|
|
17993
|
+
onKeydown: v[1] || (v[1] = async (L) => k(L)),
|
|
17983
17994
|
class: Z(p.value)
|
|
17984
17995
|
}, [
|
|
17985
17996
|
t.icon ? (o(), ke(ce, {
|
|
@@ -18000,7 +18011,7 @@ const Qm = {
|
|
|
18000
18011
|
"aria-label": d.value,
|
|
18001
18012
|
disabled: t.disabled,
|
|
18002
18013
|
tabIndex: -1,
|
|
18003
|
-
onClick: v[2] || (v[2] = async (L) =>
|
|
18014
|
+
onClick: v[2] || (v[2] = async (L) => g(L))
|
|
18004
18015
|
}, [
|
|
18005
18016
|
q(ce, {
|
|
18006
18017
|
variant: "inherit",
|
|
@@ -18147,7 +18158,7 @@ const Qm = {
|
|
|
18147
18158
|
setup(t) {
|
|
18148
18159
|
const e = t, a = _(e.defaultValue || ""), n = _("umds-textarea-" + Math.random().toString(36).slice(2, 9)), l = _(null);
|
|
18149
18160
|
tt(() => {
|
|
18150
|
-
e.autoSize &&
|
|
18161
|
+
e.autoSize && g();
|
|
18151
18162
|
});
|
|
18152
18163
|
const i = s(() => e.id || n.value), u = s(() => (e.id || n.value) + "-error"), c = s(() => (e.id || n.value) + "-helper"), d = s(() => {
|
|
18153
18164
|
const b = e.id || n.value;
|
|
@@ -18172,7 +18183,7 @@ const Qm = {
|
|
|
18172
18183
|
e.disabled ? "umds-textarea__container--disabled" : "",
|
|
18173
18184
|
e.readOnly ? "umds-textarea__container--readonly" : ""
|
|
18174
18185
|
].filter(Boolean).join(" "));
|
|
18175
|
-
function
|
|
18186
|
+
function g() {
|
|
18176
18187
|
if (e.autoSize && l.value) {
|
|
18177
18188
|
const b = l.value;
|
|
18178
18189
|
b.style.height = "auto";
|
|
@@ -18180,8 +18191,8 @@ const Qm = {
|
|
|
18180
18191
|
b.style.height = I + "px";
|
|
18181
18192
|
}
|
|
18182
18193
|
}
|
|
18183
|
-
function
|
|
18184
|
-
a.value = b.target.value,
|
|
18194
|
+
function k(b) {
|
|
18195
|
+
a.value = b.target.value, g(), e.onInput && e.onInput(b), e.onChange && e.onChange(b.target.value);
|
|
18185
18196
|
}
|
|
18186
18197
|
return (b, v) => (o(), r("div", {
|
|
18187
18198
|
class: Z(h.value)
|
|
@@ -18215,7 +18226,7 @@ const Qm = {
|
|
|
18215
18226
|
value: t.value !== void 0 ? t.value : a.value,
|
|
18216
18227
|
rows: t.autoSize ? t.minRows || 2 : t.rows || 4,
|
|
18217
18228
|
maxLength: t.maxLength,
|
|
18218
|
-
onInput: v[0] || (v[0] = async (L) =>
|
|
18229
|
+
onInput: v[0] || (v[0] = async (L) => k(L)),
|
|
18219
18230
|
onFocus: v[1] || (v[1] = async (L) => t.onFocus?.(L)),
|
|
18220
18231
|
onBlur: v[2] || (v[2] = async (L) => t.onBlur?.(L)),
|
|
18221
18232
|
"aria-label": t.ariaLabel,
|
|
@@ -18311,7 +18322,7 @@ const Qm = {
|
|
|
18311
18322
|
"umds-timepicker-" + Math.random().toString(36).slice(2, 9)
|
|
18312
18323
|
), c = _(
|
|
18313
18324
|
e.defaultValue || ""
|
|
18314
|
-
), d = _(null), p = _(null), h = _(null), y = _(null),
|
|
18325
|
+
), d = _(null), p = _(null), h = _(null), y = _(null), g = _(null);
|
|
18315
18326
|
tt(() => {
|
|
18316
18327
|
if (typeof document < "u") {
|
|
18317
18328
|
const Le = (me) => {
|
|
@@ -18323,14 +18334,14 @@ const Qm = {
|
|
|
18323
18334
|
}), lt(() => {
|
|
18324
18335
|
typeof document < "u" && y.value && (document.removeEventListener("mousedown", y.value), y.value = null), Me();
|
|
18325
18336
|
});
|
|
18326
|
-
const
|
|
18337
|
+
const k = s(() => !!e.invalid || !!e.error), b = s(() => e.value !== void 0 ? e.value : c.value), v = s(() => e.nowLabel || "Agora"), L = s(() => e.okLabel || "OK"), w = s(() => u.value + "-label"), M = s(() => u.value + "-dropdown"), N = s(() => e.label ? w.value : void 0), K = s(() => {
|
|
18327
18338
|
if (!e.label)
|
|
18328
18339
|
return e.ariaLabel || "Selecionar hora";
|
|
18329
18340
|
}), O = s(() => a.value ? M.value : void 0), $ = s(() => b.value && parseInt(b.value.split(":")[0], 10) || 0), I = s(() => b.value && parseInt(b.value.split(":")[1], 10) || 0), A = s(() => !b.value || b.value.split(":").length < 3 ? 0 : parseInt(b.value.split(":")[2], 10) || 0), z = s(() => e.format === "HH:mm:ss"), P = s(() => b.value || ""), Y = s(() => e.placeholder || "--:--"), le = s(() => P.value ? "umds-timepicker__value" : "umds-timepicker__placeholder"), fe = s(() => e.disabled ? -1 : 0), Ae = s(() => String($.value).padStart(2, "0")), oe = s(() => String(I.value).padStart(2, "0")), te = s(() => String(A.value).padStart(2, "0")), D = s(() => [
|
|
18330
18341
|
"umds-timepicker",
|
|
18331
18342
|
e.disabled ? "umds-timepicker--disabled" : "",
|
|
18332
18343
|
e.readOnly ? "umds-timepicker--readonly" : "",
|
|
18333
|
-
|
|
18344
|
+
k.value ? "umds-timepicker--error" : "",
|
|
18334
18345
|
a.value ? "umds-timepicker--open" : "",
|
|
18335
18346
|
e.className
|
|
18336
18347
|
].filter(Boolean).join(" ")), V = s(() => ({
|
|
@@ -18366,14 +18377,14 @@ const Qm = {
|
|
|
18366
18377
|
});
|
|
18367
18378
|
}
|
|
18368
18379
|
function he() {
|
|
18369
|
-
!d.value || !h.value || (
|
|
18380
|
+
!d.value || !h.value || (g.value = Ut(
|
|
18370
18381
|
d.value,
|
|
18371
18382
|
h.value,
|
|
18372
18383
|
() => U()
|
|
18373
18384
|
));
|
|
18374
18385
|
}
|
|
18375
18386
|
function Me() {
|
|
18376
|
-
|
|
18387
|
+
g.value && (g.value(), g.value = null);
|
|
18377
18388
|
}
|
|
18378
18389
|
function W() {
|
|
18379
18390
|
if (!(e.disabled || e.readOnly)) {
|
|
@@ -18482,7 +18493,7 @@ const Qm = {
|
|
|
18482
18493
|
name: t.name,
|
|
18483
18494
|
value: b.value || ""
|
|
18484
18495
|
}, null, 8, q3)) : f("", !0),
|
|
18485
|
-
|
|
18496
|
+
k.value && t.errorMessage ? (o(), r("span", W3, x(t.errorMessage), 1)) : f("", !0),
|
|
18486
18497
|
(o(), ke(Vt, { to: "body" }, [
|
|
18487
18498
|
a.value ? (o(), r("span", {
|
|
18488
18499
|
key: 0,
|
|
@@ -18681,31 +18692,31 @@ const Qm = {
|
|
|
18681
18692
|
e.card ? "umds-timeline--card" : "",
|
|
18682
18693
|
e.className
|
|
18683
18694
|
].filter(Boolean).join(" "));
|
|
18684
|
-
function p(
|
|
18695
|
+
function p(k) {
|
|
18685
18696
|
return [
|
|
18686
18697
|
"umds-timeline__item",
|
|
18687
|
-
|
|
18698
|
+
k.current ? "umds-timeline__item--current" : ""
|
|
18688
18699
|
].filter(Boolean).join(" ");
|
|
18689
18700
|
}
|
|
18690
|
-
function h(
|
|
18701
|
+
function h(k) {
|
|
18691
18702
|
return [
|
|
18692
18703
|
"umds-timeline__marker",
|
|
18693
|
-
`umds-timeline__marker--${
|
|
18694
|
-
|
|
18704
|
+
`umds-timeline__marker--${k.variant || "default"}`,
|
|
18705
|
+
k.icon ? "umds-timeline__marker--icon" : ""
|
|
18695
18706
|
].filter(Boolean).join(" ");
|
|
18696
18707
|
}
|
|
18697
|
-
function y(
|
|
18698
|
-
return
|
|
18708
|
+
function y(k) {
|
|
18709
|
+
return k === (e.items ? e.items.length : 0) - 1;
|
|
18699
18710
|
}
|
|
18700
|
-
function k
|
|
18701
|
-
return !!(
|
|
18711
|
+
function g(k) {
|
|
18712
|
+
return !!(k.title || k.timestamp || k.actor);
|
|
18702
18713
|
}
|
|
18703
|
-
return (
|
|
18714
|
+
return (k, b) => n.value ? (o(), r("div", {
|
|
18704
18715
|
key: 0,
|
|
18705
18716
|
role: "status",
|
|
18706
18717
|
class: Z(l.value)
|
|
18707
18718
|
}, [
|
|
18708
|
-
ee(
|
|
18719
|
+
ee(k.$slots, "empty", {}, () => [
|
|
18709
18720
|
q(Ss, et({
|
|
18710
18721
|
icon: t.emptyIcon,
|
|
18711
18722
|
title: i.value,
|
|
@@ -18737,7 +18748,7 @@ const Qm = {
|
|
|
18737
18748
|
y(L) ? f("", !0) : (o(), r("span", h4))
|
|
18738
18749
|
]),
|
|
18739
18750
|
m("div", b4, [
|
|
18740
|
-
|
|
18751
|
+
g(v) ? (o(), r("div", y4, [
|
|
18741
18752
|
v.title ? (o(), ke(Re, {
|
|
18742
18753
|
key: 0,
|
|
18743
18754
|
as: "span",
|
|
@@ -18845,7 +18856,7 @@ const Qm = {
|
|
|
18845
18856
|
function h(y) {
|
|
18846
18857
|
y && y.stopPropagation(), e.onClose && e.onClose(y);
|
|
18847
18858
|
}
|
|
18848
|
-
return (y,
|
|
18859
|
+
return (y, g) => (o(), ke(Vt, { to: "body" }, [
|
|
18849
18860
|
m("div", {
|
|
18850
18861
|
role: i.value,
|
|
18851
18862
|
"aria-live": l.value
|
|
@@ -18867,20 +18878,20 @@ const Qm = {
|
|
|
18867
18878
|
m("span", C4, x(t.message), 1),
|
|
18868
18879
|
t.description ? (o(), r("span", w4, x(t.description), 1)) : f("", !0),
|
|
18869
18880
|
c.value.length > 0 ? (o(), r("ul", L4, [
|
|
18870
|
-
(o(!0), r(se, null, Te(c.value, (
|
|
18881
|
+
(o(!0), r(se, null, Te(c.value, (k, b) => (o(), r("li", { key: k }, x(k), 1))), 128))
|
|
18871
18882
|
])) : f("", !0),
|
|
18872
18883
|
d.value ? (o(), r("button", {
|
|
18873
18884
|
key: 2,
|
|
18874
18885
|
type: "button",
|
|
18875
18886
|
class: "umds-toast__action",
|
|
18876
|
-
onClick:
|
|
18887
|
+
onClick: g[0] || (g[0] = async (k) => p(k))
|
|
18877
18888
|
}, x(t.actionLabel), 1)) : f("", !0)
|
|
18878
18889
|
]),
|
|
18879
18890
|
t.closable !== !1 ? (o(), r("button", {
|
|
18880
18891
|
key: 0,
|
|
18881
18892
|
type: "button",
|
|
18882
18893
|
class: "umds-toast__close",
|
|
18883
|
-
onClick:
|
|
18894
|
+
onClick: g[1] || (g[1] = async (k) => h(k)),
|
|
18884
18895
|
"aria-label": t.closeLabel || "Fechar notificação"
|
|
18885
18896
|
}, [
|
|
18886
18897
|
q(ce, {
|
|
@@ -18927,19 +18938,19 @@ const Qm = {
|
|
|
18927
18938
|
ref: n,
|
|
18928
18939
|
class: Z(i.value)
|
|
18929
18940
|
}, [
|
|
18930
|
-
(o(!0), r(se, null, Te(a.value, (y,
|
|
18941
|
+
(o(!0), r(se, null, Te(a.value, (y, g) => (o(), ke($4, {
|
|
18931
18942
|
key: y.id,
|
|
18932
18943
|
open: !0,
|
|
18933
18944
|
message: y.message,
|
|
18934
18945
|
description: y.description,
|
|
18935
18946
|
details: y.details,
|
|
18936
18947
|
actionLabel: u(y),
|
|
18937
|
-
onAction: (
|
|
18948
|
+
onAction: (k) => c(y),
|
|
18938
18949
|
variant: y.variant,
|
|
18939
18950
|
duration: y.duration,
|
|
18940
18951
|
closable: y.closable,
|
|
18941
18952
|
portalContainer: n.value,
|
|
18942
|
-
onClose: (
|
|
18953
|
+
onClose: (k) => d(y.id)
|
|
18943
18954
|
}, null, 8, ["message", "description", "details", "actionLabel", "onAction", "variant", "duration", "closable", "portalContainer", "onClose"]))), 128))
|
|
18944
18955
|
], 2));
|
|
18945
18956
|
}
|
|
@@ -18965,9 +18976,9 @@ const Qm = {
|
|
|
18965
18976
|
setup(t) {
|
|
18966
18977
|
const e = t, a = _(!1), n = _(!0), l = _(!1), i = _(!1), u = _(!1), c = _(!1), d = _(0), p = _(0), h = _(
|
|
18967
18978
|
"umds-popover-" + Math.random().toString(36).slice(2, 9)
|
|
18968
|
-
), y = _(null),
|
|
18979
|
+
), y = _(null), g = _(null), k = _(null), b = _(null), v = _(null), L = _(null), w = _(null);
|
|
18969
18980
|
tt(() => {
|
|
18970
|
-
Me(),
|
|
18981
|
+
Me(), g.value && (n.value = !!le(), fe());
|
|
18971
18982
|
}), lt(() => {
|
|
18972
18983
|
te(), j();
|
|
18973
18984
|
});
|
|
@@ -18995,7 +19006,7 @@ const Qm = {
|
|
|
18995
19006
|
Me(), fe(), c.value && a.value && l.value && b.value && (c.value = !1, b.value.focus());
|
|
18996
19007
|
});
|
|
18997
19008
|
function le() {
|
|
18998
|
-
return
|
|
19009
|
+
return g.value ? g.value.querySelector(
|
|
18999
19010
|
'button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
19000
19011
|
) : null;
|
|
19001
19012
|
}
|
|
@@ -19004,9 +19015,9 @@ const Qm = {
|
|
|
19004
19015
|
T && (T.setAttribute("aria-haspopup", "dialog"), T.setAttribute("aria-expanded", A.value));
|
|
19005
19016
|
}
|
|
19006
19017
|
function Ae() {
|
|
19007
|
-
if (!y.value || !
|
|
19018
|
+
if (!y.value || !k.value) return;
|
|
19008
19019
|
const T = e.placement ?? "bottom";
|
|
19009
|
-
Gt(y.value,
|
|
19020
|
+
Gt(y.value, k.value, {
|
|
19010
19021
|
placement: T,
|
|
19011
19022
|
strategy: "fixed",
|
|
19012
19023
|
middleware: [
|
|
@@ -19022,9 +19033,9 @@ const Qm = {
|
|
|
19022
19033
|
});
|
|
19023
19034
|
}
|
|
19024
19035
|
function oe() {
|
|
19025
|
-
!y.value || !
|
|
19036
|
+
!y.value || !k.value || (v.value = Ut(
|
|
19026
19037
|
y.value,
|
|
19027
|
-
|
|
19038
|
+
k.value,
|
|
19028
19039
|
() => Ae()
|
|
19029
19040
|
));
|
|
19030
19041
|
}
|
|
@@ -19036,14 +19047,14 @@ const Qm = {
|
|
|
19036
19047
|
if (!L.value) {
|
|
19037
19048
|
const T = (B) => {
|
|
19038
19049
|
const R = B.target;
|
|
19039
|
-
y.value && y.value.contains(R) ||
|
|
19050
|
+
y.value && y.value.contains(R) || k.value && k.value.contains(R) || V(R) || U(!1);
|
|
19040
19051
|
};
|
|
19041
19052
|
L.value = T, document.addEventListener("mousedown", T, !0);
|
|
19042
19053
|
}
|
|
19043
19054
|
if (!w.value) {
|
|
19044
19055
|
const T = (B) => {
|
|
19045
19056
|
const R = B.target;
|
|
19046
|
-
typeof document < "u" && (R === document.body || R === document.documentElement) || y.value && y.value.contains(R) ||
|
|
19057
|
+
typeof document < "u" && (R === document.body || R === document.documentElement) || y.value && y.value.contains(R) || k.value && k.value.contains(R) || V(R) || U(!1);
|
|
19047
19058
|
};
|
|
19048
19059
|
w.value = T, document.addEventListener("focusin", T, !0);
|
|
19049
19060
|
}
|
|
@@ -19053,7 +19064,7 @@ const Qm = {
|
|
|
19053
19064
|
if (!T || typeof T.closest != "function") return !1;
|
|
19054
19065
|
const B = T.closest(".umds-portal");
|
|
19055
19066
|
if (!B) return !1;
|
|
19056
|
-
const R =
|
|
19067
|
+
const R = k.value && typeof k.value.closest == "function" ? k.value.closest(".umds-portal") : null;
|
|
19057
19068
|
return B === R ? !0 : R ? (R.compareDocumentPosition(B) & 4) !== 0 : !1;
|
|
19058
19069
|
}
|
|
19059
19070
|
function j() {
|
|
@@ -19070,9 +19081,9 @@ const Qm = {
|
|
|
19070
19081
|
a.value && (M.value || (i.value = !1), u.value = !1, c.value = !1, j(), te(), a.value = !1, l.value = !1, e.onOpenChange && e.onOpenChange(!1), T !== !1 && he());
|
|
19071
19082
|
}
|
|
19072
19083
|
function he() {
|
|
19073
|
-
if (!
|
|
19084
|
+
if (!g.value) return;
|
|
19074
19085
|
const T = le();
|
|
19075
|
-
T ? T.focus() :
|
|
19086
|
+
T ? T.focus() : g.value.focus();
|
|
19076
19087
|
}
|
|
19077
19088
|
function Me() {
|
|
19078
19089
|
if (!M.value) return;
|
|
@@ -19081,7 +19092,7 @@ const Qm = {
|
|
|
19081
19092
|
if (T)
|
|
19082
19093
|
re();
|
|
19083
19094
|
else {
|
|
19084
|
-
const B = typeof document < "u" ? document.activeElement : null, R = !!(B && (
|
|
19095
|
+
const B = typeof document < "u" ? document.activeElement : null, R = !!(B && (k.value && k.value.contains(B) || y.value && y.value.contains(B)));
|
|
19085
19096
|
U(R);
|
|
19086
19097
|
}
|
|
19087
19098
|
}
|
|
@@ -19119,7 +19130,7 @@ const Qm = {
|
|
|
19119
19130
|
m("span", {
|
|
19120
19131
|
class: "umds-popover__trigger",
|
|
19121
19132
|
ref_key: "triggerButtonRef",
|
|
19122
|
-
ref:
|
|
19133
|
+
ref: g,
|
|
19123
19134
|
id: $.value,
|
|
19124
19135
|
role: n.value ? void 0 : "button",
|
|
19125
19136
|
tabIndex: n.value ? void 0 : 0,
|
|
@@ -19135,7 +19146,7 @@ const Qm = {
|
|
|
19135
19146
|
key: 0,
|
|
19136
19147
|
class: "umds-popover__floating",
|
|
19137
19148
|
ref_key: "floatingRef",
|
|
19138
|
-
ref:
|
|
19149
|
+
ref: k,
|
|
19139
19150
|
style: Ve(z.value)
|
|
19140
19151
|
}, [
|
|
19141
19152
|
m("div", {
|
|
@@ -19253,7 +19264,7 @@ const Qm = {
|
|
|
19253
19264
|
setup(t) {
|
|
19254
19265
|
const e = t, a = _(Array()), n = _(Array()), l = _(""), i = _(!1);
|
|
19255
19266
|
_("");
|
|
19256
|
-
const u = _(null), c = s(() => e.items || []), d = s(() => e.caret === "chevron"), p = s(() => e.caret === "plus-minus" || e.caret === "chevron"), h = s(() => e.expandedIds ? e.expandedIds : !i.value && e.defaultExpandedIds ? e.defaultExpandedIds : a.value), y = s(() => e.selectedIds ? e.selectedIds : !i.value && e.defaultSelectedIds ? e.defaultSelectedIds : n.value),
|
|
19267
|
+
const u = _(null), c = s(() => e.items || []), d = s(() => e.caret === "chevron"), p = s(() => e.caret === "plus-minus" || e.caret === "chevron"), h = s(() => e.expandedIds ? e.expandedIds : !i.value && e.defaultExpandedIds ? e.defaultExpandedIds : a.value), y = s(() => e.selectedIds ? e.selectedIds : !i.value && e.defaultSelectedIds ? e.defaultSelectedIds : n.value), g = s(() => {
|
|
19257
19268
|
const D = [], V = h.value, j = [], re = c.value;
|
|
19258
19269
|
for (let U = re.length - 1; U >= 0; U--)
|
|
19259
19270
|
j.push({
|
|
@@ -19289,7 +19300,7 @@ const Qm = {
|
|
|
19289
19300
|
});
|
|
19290
19301
|
}
|
|
19291
19302
|
return D;
|
|
19292
|
-
}),
|
|
19303
|
+
}), k = s(() => [
|
|
19293
19304
|
"umds-tree",
|
|
19294
19305
|
`umds-tree--${e.size || "md"}`,
|
|
19295
19306
|
d.value ? "umds-tree--chevron" : "",
|
|
@@ -19322,7 +19333,7 @@ const Qm = {
|
|
|
19322
19333
|
return y.value.indexOf(D) !== -1;
|
|
19323
19334
|
}
|
|
19324
19335
|
function K(D) {
|
|
19325
|
-
const V =
|
|
19336
|
+
const V = g.value;
|
|
19326
19337
|
if (!V.length) return -1;
|
|
19327
19338
|
let j = l.value;
|
|
19328
19339
|
return (!j || !V.some((re) => re.node.id === j)) && (j = V[0].node.id), j === D ? 0 : -1;
|
|
@@ -19392,7 +19403,7 @@ const Qm = {
|
|
|
19392
19403
|
});
|
|
19393
19404
|
}
|
|
19394
19405
|
function fe(D) {
|
|
19395
|
-
const V =
|
|
19406
|
+
const V = g.value;
|
|
19396
19407
|
if (!V.length) return;
|
|
19397
19408
|
let j = 0;
|
|
19398
19409
|
for (let U = 0; U < V.length; U++)
|
|
@@ -19401,13 +19412,13 @@ const Qm = {
|
|
|
19401
19412
|
re < 0 && (re = 0), re > V.length - 1 && (re = V.length - 1), l.value = V[re].node.id, le();
|
|
19402
19413
|
}
|
|
19403
19414
|
function Ae(D) {
|
|
19404
|
-
const V =
|
|
19415
|
+
const V = g.value;
|
|
19405
19416
|
if (!V.length) return;
|
|
19406
19417
|
const j = D < 0 ? V.length - 1 : 0;
|
|
19407
19418
|
l.value = V[j].node.id, le();
|
|
19408
19419
|
}
|
|
19409
19420
|
function oe() {
|
|
19410
|
-
const D =
|
|
19421
|
+
const D = g.value;
|
|
19411
19422
|
for (let V = 0; V < D.length; V++)
|
|
19412
19423
|
if (D[V].node.id === l.value) return D[V];
|
|
19413
19424
|
return D.length ? D[0] : null;
|
|
@@ -19433,14 +19444,14 @@ const Qm = {
|
|
|
19433
19444
|
D.preventDefault(), (e.selectionMode || "none") === "none" ? z(V) : P(V);
|
|
19434
19445
|
else if (j === "*") {
|
|
19435
19446
|
D.preventDefault();
|
|
19436
|
-
const re =
|
|
19447
|
+
const re = g.value.filter(
|
|
19437
19448
|
(he) => he.parentId === V.parentId && he.hasToggle
|
|
19438
19449
|
), U = h.value.slice();
|
|
19439
19450
|
for (let he = 0; he < re.length; he++)
|
|
19440
19451
|
U.indexOf(re[he].node.id) === -1 && U.push(re[he].node.id);
|
|
19441
19452
|
I(U);
|
|
19442
19453
|
} else if (j && j.length === 1 && j !== " " && !D.ctrlKey && !D.altKey && !D.metaKey) {
|
|
19443
|
-
const re = j.toLowerCase(), U =
|
|
19454
|
+
const re = j.toLowerCase(), U = g.value;
|
|
19444
19455
|
for (let he = 0; he < U.length; he++)
|
|
19445
19456
|
if ((U[he].node.label || "").toLowerCase().indexOf(re) === 0) {
|
|
19446
19457
|
l.value = U[he].node.id, le();
|
|
@@ -19458,9 +19469,9 @@ const Qm = {
|
|
|
19458
19469
|
"aria-multiselectable": t.selectionMode === "multiple",
|
|
19459
19470
|
"aria-disabled": t.disabled,
|
|
19460
19471
|
onKeydown: V[0] || (V[0] = async (j) => te(j)),
|
|
19461
|
-
class:
|
|
19472
|
+
class: k.value
|
|
19462
19473
|
}, v()), [
|
|
19463
|
-
(o(!0), r(se, null, Te(
|
|
19474
|
+
(o(!0), r(se, null, Te(g.value, (j, re) => (o(), r("div", {
|
|
19464
19475
|
key: j.node.id,
|
|
19465
19476
|
role: "treeitem",
|
|
19466
19477
|
"data-tree-id": j.node.id,
|