@dskripchenko/ui 1.9.0 → 1.10.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/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./UidIcon-5947kXOj.js";
2
2
  import { Fragment as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, h as m, inject as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, vModelDynamic as H, vModelText as U, vShow as W, watch as G, watchEffect as K, withCtx as q, withDirectives as J, withKeys as Y, withModifiers as X } from "vue";
3
- import { AlertCircle as ee, AlertTriangle as te, ArrowDown as ne, ArrowLeft as Z, ArrowUp as re, ArrowUpDown as ie, Calendar as ae, Check as Q, CheckCircle2 as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronUp as ue, Clock as de, Copy as fe, CornerDownRight as pe, FileText as me, Folder as he, FolderOpen as ge, ImageOff as _e, Info as ve, Minus as ye, Plus as be, Search as xe, ServerCrash as Se, Star as Ce, Upload as we, WifiOff as Te, X as Ee, XCircle as De } from "lucide-vue-next";
3
+ import { AlertCircle as Z, AlertTriangle as ee, ArrowDown as te, ArrowLeft as ne, ArrowUp as re, ArrowUpDown as ie, Calendar as ae, Check as Q, CheckCircle2 as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronUp as ue, Clock as de, Copy as fe, CornerDownRight as pe, FileText as me, Folder as he, FolderOpen as ge, ImageOff as _e, Info as ve, Minus as ye, Plus as be, Search as xe, ServerCrash as Se, Star as Ce, Upload as we, WifiOff as Te, X as Ee, XCircle as De } from "lucide-vue-next";
4
4
  //#region src/components/Button/UidButton.vue?vue&type=script&setup=true&lang.ts
5
5
  var Oe = [
6
6
  "type",
@@ -247,7 +247,9 @@ var Oe = [
247
247
  heatmap: {
248
248
  summary: (e) => `Тепловая карта активности: ${e} событий`,
249
249
  less: "Меньше",
250
- more: "Больше"
250
+ more: "Больше",
251
+ matrixSummary: (e, t) => `Тепловая карта: ${e} строк × ${t} столбцов`,
252
+ noData: "Нет данных"
251
253
  },
252
254
  validation: {
253
255
  value: "значение",
@@ -1144,8 +1146,8 @@ var on = ["aria-label"], sn = /* @__PURE__ */ f({
1144
1146
  let r = $(), i = t, o = n, u = {
1145
1147
  info: ve,
1146
1148
  success: oe,
1147
- warning: te,
1148
- danger: ee
1149
+ warning: ee,
1150
+ danger: Z
1149
1151
  }, f = a(() => u[i.variant ?? "info"]);
1150
1152
  return (n, i) => (T(), c("div", {
1151
1153
  class: y(["uid-alert", `uid-alert--${t.variant}`]),
@@ -1184,8 +1186,8 @@ var on = ["aria-label"], sn = /* @__PURE__ */ f({
1184
1186
  let r = $(), i = t, o = n, u = {
1185
1187
  info: ve,
1186
1188
  success: oe,
1187
- warning: te,
1188
- danger: ee
1189
+ warning: ee,
1190
+ danger: Z
1189
1191
  }, f = a(() => u[i.variant ?? "info"]);
1190
1192
  return (n, i) => (T(), c("div", {
1191
1193
  class: y(["uid-toast", `uid-toast--${t.variant}`]),
@@ -2091,9 +2093,9 @@ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
2091
2093
  S(() => {
2092
2094
  B(), M();
2093
2095
  }), G(() => i.collapse, () => {
2094
- B(), M(), i.collapse || Z();
2096
+ B(), M(), i.collapse || ne();
2095
2097
  }), x(() => {
2096
- V(), ne();
2098
+ V(), te();
2097
2099
  });
2098
2100
  let H = O(!1), U = O(null), W = O(null), K = z(), { floatingStyle: q, update: J } = tr(U, W, {
2099
2101
  placement: "bottom-start",
@@ -2110,34 +2112,34 @@ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
2110
2112
  target: n
2111
2113
  };
2112
2114
  }));
2113
- function ee() {
2115
+ function Z() {
2114
2116
  return Array.from(W.value?.querySelectorAll("[role=\"menuitem\"]") ?? []);
2115
2117
  }
2116
- async function te(e) {
2117
- U.value = e, H.value = !0, await v(), J(), ee()[0]?.focus(), document.addEventListener("pointerdown", ie), window.addEventListener("resize", J), window.addEventListener("scroll", J, !0);
2118
+ async function ee(e) {
2119
+ U.value = e, H.value = !0, await v(), J(), Z()[0]?.focus(), document.addEventListener("pointerdown", ie), window.addEventListener("resize", J), window.addEventListener("scroll", J, !0);
2118
2120
  }
2119
- function ne() {
2121
+ function te() {
2120
2122
  document.removeEventListener("pointerdown", ie), window.removeEventListener("resize", J), window.removeEventListener("scroll", J, !0);
2121
2123
  }
2122
- function Z(e = !1) {
2123
- H.value && (H.value = !1, ne(), e && U.value?.focus());
2124
+ function ne(e = !1) {
2125
+ H.value && (H.value = !1, te(), e && U.value?.focus());
2124
2126
  }
2125
2127
  function re(e) {
2126
- H.value ? Z() : te(e);
2128
+ H.value ? ne() : ee(e);
2127
2129
  }
2128
2130
  function ie(e) {
2129
2131
  let t = e.target;
2130
- W.value?.contains(t) || U.value?.contains(t) || Z();
2132
+ W.value?.contains(t) || U.value?.contains(t) || ne();
2131
2133
  }
2132
2134
  function ae(e) {
2133
- e.target && (Z(), e.target.click());
2135
+ e.target && (ne(), e.target.click());
2134
2136
  }
2135
2137
  function Q(e) {
2136
- let t = ee(), n = t.indexOf(document.activeElement);
2137
- e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" ? (e.preventDefault(), t[t.length - 1]?.focus()) : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), Z(!0)) : e.key === "Tab" && Z();
2138
+ let t = Z(), n = t.indexOf(document.activeElement);
2139
+ e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" ? (e.preventDefault(), t[t.length - 1]?.focus()) : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), ne(!0)) : e.key === "Tab" && ne();
2138
2140
  }
2139
2141
  return G(h, (e) => {
2140
- e.length === 0 && Z();
2142
+ e.length === 0 && ne();
2141
2143
  }), E(Br, {
2142
2144
  tick: d,
2143
2145
  hidden: h,
@@ -2786,7 +2788,7 @@ var Kr = [
2786
2788
  e.sortable && (i.sortKey === e.key ? i.sortDirection === "asc" ? p("update:sortDirection", "desc") : i.sortDirection === "desc" ? (p("update:sortKey", null), p("update:sortDirection", null)) : p("update:sortDirection", "asc") : (p("update:sortKey", e.key), p("update:sortDirection", "asc")));
2787
2789
  }
2788
2790
  function E(e) {
2789
- return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? re : i.sortDirection === "desc" ? ne : ie : ie : null;
2791
+ return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? re : i.sortDirection === "desc" ? te : ie : ie : null;
2790
2792
  }
2791
2793
  function D(e) {
2792
2794
  if (e.sortable) return i.sortKey === e.key ? i.sortDirection === "asc" ? "ascending" : i.sortDirection === "desc" ? "descending" : "none" : "none";
@@ -2833,26 +2835,26 @@ var Kr = [
2833
2835
  let t = /^\s*(\d+(?:\.\d+)?)px\s*$/.exec(e);
2834
2836
  return t ? Number(t[1]) : 0;
2835
2837
  }
2836
- function ee(e) {
2838
+ function Z(e) {
2837
2839
  let t = W.value[e] ?? 0;
2838
2840
  if (t > 0) return t;
2839
2841
  let n = e - +!!i.selectable;
2840
2842
  return n >= 0 ? J(i.columns[n]?.width) : 40;
2841
2843
  }
2842
- let te = a(() => {
2843
- let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = +!!i.selectable, r = H.value ? ee(0) : 0;
2844
+ let ee = a(() => {
2845
+ let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = +!!i.selectable, r = H.value ? Z(0) : 0;
2844
2846
  i.columns.forEach((t, i) => {
2845
- t.fixed === "left" && (e.set(t.key, r), r += ee(i + n));
2847
+ t.fixed === "left" && (e.set(t.key, r), r += Z(i + n));
2846
2848
  }), r = 0;
2847
2849
  for (let e = i.columns.length - 1; e >= 0; e--) {
2848
2850
  let a = i.columns[e];
2849
- a.fixed === "right" && (t.set(a.key, r), r += ee(e + n));
2851
+ a.fixed === "right" && (t.set(a.key, r), r += Z(e + n));
2850
2852
  }
2851
2853
  return {
2852
2854
  left: e,
2853
2855
  right: t
2854
2856
  };
2855
- }), Z = a(() => {
2857
+ }), ne = a(() => {
2856
2858
  let e = i.columns.filter((e) => e.fixed === "left");
2857
2859
  return e.length > 0 ? e[e.length - 1].key : null;
2858
2860
  }), ae = a(() => i.columns.find((e) => e.fixed === "right")?.key ?? null);
@@ -2861,13 +2863,13 @@ var Kr = [
2861
2863
  "uid-table__cell--fixed": !!e.fixed,
2862
2864
  "uid-table__cell--fixed-left": e.fixed === "left",
2863
2865
  "uid-table__cell--fixed-right": e.fixed === "right",
2864
- "uid-table__cell--fixed-left-last": e.fixed === "left" && e.key === Z.value,
2866
+ "uid-table__cell--fixed-left-last": e.fixed === "left" && e.key === ne.value,
2865
2867
  "uid-table__cell--fixed-right-first": e.fixed === "right" && e.key === ae.value
2866
2868
  };
2867
2869
  }
2868
2870
  function oe(e) {
2869
- if (e.fixed === "left") return { left: `${te.value.left.get(e.key) ?? 0}px` };
2870
- if (e.fixed === "right") return { right: `${te.value.right.get(e.key) ?? 0}px` };
2871
+ if (e.fixed === "left") return { left: `${ee.value.left.get(e.key) ?? 0}px` };
2872
+ if (e.fixed === "right") return { right: `${ee.value.right.get(e.key) ?? 0}px` };
2871
2873
  }
2872
2874
  function se(e) {
2873
2875
  let t = { ...oe(e) };
@@ -2876,7 +2878,7 @@ var Kr = [
2876
2878
  let ce = a(() => ({
2877
2879
  "uid-table__cell--fixed": H.value,
2878
2880
  "uid-table__cell--fixed-left": H.value,
2879
- "uid-table__cell--fixed-left-last": H.value && Z.value === null
2881
+ "uid-table__cell--fixed-left-last": H.value && ne.value === null
2880
2882
  })), le = a(() => H.value ? { left: "0px" } : void 0);
2881
2883
  function ue() {
2882
2884
  if (!U.value) return;
@@ -3053,17 +3055,17 @@ var Kr = [
3053
3055
  })), W = a(() => f.multiple ? null : f.options.find((e) => e.value === _.value) ?? null), K = a(() => {
3054
3056
  let e = _.value;
3055
3057
  return Array.isArray(e) ? e : e === null ? [] : [e];
3056
- }), Y = a(() => K.value.map((e) => f.options.find((t) => t.value === e)).filter((e) => !!e)), X = a(() => f.maxTagCount !== void 0 && f.maxTagCount >= 0 ? Y.value.slice(0, f.maxTagCount) : Y.value), ee = a(() => Y.value.length - X.value.length), te = a(() => f.multiple ? K.value.length > 0 : _.value !== null);
3057
- function ne(e) {
3058
+ }), Y = a(() => K.value.map((e) => f.options.find((t) => t.value === e)).filter((e) => !!e)), X = a(() => f.maxTagCount !== void 0 && f.maxTagCount >= 0 ? Y.value.slice(0, f.maxTagCount) : Y.value), Z = a(() => Y.value.length - X.value.length), ee = a(() => f.multiple ? K.value.length > 0 : _.value !== null);
3059
+ function te(e) {
3058
3060
  return f.multiple ? K.value.includes(e.value) : e.value === _.value;
3059
3061
  }
3060
- let Z = a(() => {
3062
+ let ne = a(() => {
3061
3063
  if (!f.searchable || !w.value.trim()) return f.options;
3062
3064
  let e = w.value.toLowerCase();
3063
3065
  return f.options.filter((t) => t.label.toLowerCase().includes(e));
3064
3066
  }), re = a(() => {
3065
3067
  let e = /* @__PURE__ */ new Map();
3066
- for (let t of Z.value) {
3068
+ for (let t of ne.value) {
3067
3069
  let n = t.group ?? "";
3068
3070
  e.has(n) || e.set(n, []), e.get(n).push(t);
3069
3071
  }
@@ -3072,7 +3074,7 @@ var Kr = [
3072
3074
  G(S, async (e) => {
3073
3075
  if (e) {
3074
3076
  w.value = "";
3075
- let e = Z.value.findIndex((e) => ne(e));
3077
+ let e = ne.value.findIndex((e) => te(e));
3076
3078
  E.value = e >= 0 ? e : 0, V(), await v(), R(), requestAnimationFrame(() => R()), f.searchable && N.value?.focus(), ve(), document.addEventListener("pointerdown", fe), window.addEventListener("resize", R), window.addEventListener("scroll", R, !0);
3077
3079
  } else document.removeEventListener("pointerdown", fe), window.removeEventListener("resize", R), window.removeEventListener("scroll", R, !0);
3078
3080
  }), G(w, () => {
@@ -3121,13 +3123,13 @@ var Kr = [
3121
3123
  e.key === "ArrowDown" ? (e.preventDefault(), he()) : e.key === "ArrowUp" ? (e.preventDefault(), ge()) : e.key === "Enter" ? (e.preventDefault(), _e()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), ae(), A.value?.focus());
3122
3124
  }
3123
3125
  function he() {
3124
- E.value = Math.min(E.value + 1, Z.value.length - 1), ve();
3126
+ E.value = Math.min(E.value + 1, ne.value.length - 1), ve();
3125
3127
  }
3126
3128
  function ge() {
3127
3129
  E.value = Math.max(E.value - 1, 0), ve();
3128
3130
  }
3129
3131
  function _e() {
3130
- let e = Z.value[E.value];
3132
+ let e = ne.value[E.value];
3131
3133
  e && le(e);
3132
3134
  }
3133
3135
  function ve() {
@@ -3170,10 +3172,10 @@ var Kr = [
3170
3172
  }, [d(e, {
3171
3173
  icon: L(Ee),
3172
3174
  size: 12
3173
- }, null, 8, ["icon"])], 8, ra))]))), 128)), ee.value > 0 ? (T(), c("span", ia, "+" + P(ee.value), 1)) : s("", !0)])) : (T(), c("span", {
3175
+ }, null, 8, ["icon"])], 8, ra))]))), 128)), Z.value > 0 ? (T(), c("span", ia, "+" + P(Z.value), 1)) : s("", !0)])) : (T(), c("span", {
3174
3176
  key: 1,
3175
3177
  class: y(["uid-select__value", { "uid-select__value--placeholder": !W.value }])
3176
- }, P(W.value?.label ?? m.value), 3)), l("div", aa, [i.clearable && te.value ? (T(), c("button", {
3178
+ }, P(W.value?.label ?? m.value), 3)), l("div", aa, [i.clearable && ee.value ? (T(), c("button", {
3177
3179
  key: 0,
3178
3180
  type: "button",
3179
3181
  class: "uid-select__clear",
@@ -3211,21 +3213,21 @@ var Kr = [
3211
3213
  role: "listbox",
3212
3214
  "aria-multiselectable": i.multiple ? "true" : void 0,
3213
3215
  onKeydown: me
3214
- }, [Z.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(re.value, ([n, r]) => (T(), c(t, { key: n }, [n ? (T(), c("div", ua, P(n), 1)) : s("", !0), (T(!0), c(t, null, k(r, (t) => (T(), c("button", {
3216
+ }, [ne.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(re.value, ([n, r]) => (T(), c(t, { key: n }, [n ? (T(), c("div", ua, P(n), 1)) : s("", !0), (T(!0), c(t, null, k(r, (t) => (T(), c("button", {
3215
3217
  key: t.value,
3216
3218
  type: "button",
3217
3219
  class: y(["uid-select__option", {
3218
- "uid-select__option--selected": ne(t),
3219
- "uid-select__option--active": Z.value.indexOf(t) === E.value,
3220
+ "uid-select__option--selected": te(t),
3221
+ "uid-select__option--active": ne.value.indexOf(t) === E.value,
3220
3222
  "uid-select__option--disabled": t.disabled
3221
3223
  }]),
3222
- "data-active": Z.value.indexOf(t) === E.value ? "true" : void 0,
3224
+ "data-active": ne.value.indexOf(t) === E.value ? "true" : void 0,
3223
3225
  role: "option",
3224
- "aria-selected": ne(t),
3226
+ "aria-selected": te(t),
3225
3227
  "aria-disabled": t.disabled,
3226
3228
  onClick: (e) => le(t),
3227
- onMouseenter: (e) => !t.disabled && (E.value = Z.value.indexOf(t))
3228
- }, [l("span", null, P(t.label), 1), ne(t) ? (T(), o(e, {
3229
+ onMouseenter: (e) => !t.disabled && (E.value = ne.value.indexOf(t))
3230
+ }, [l("span", null, P(t.label), 1), te(t) ? (T(), o(e, {
3229
3231
  key: 0,
3230
3232
  icon: L(Q),
3231
3233
  size: 14,
@@ -3404,24 +3406,24 @@ var ga = [
3404
3406
  if (j.value) {
3405
3407
  e.preventDefault();
3406
3408
  let t = H.value.find((e) => e.iso === j.value);
3407
- t && ne(t);
3409
+ t && te(t);
3408
3410
  }
3409
3411
  break;
3410
3412
  case "Escape":
3411
- e.stopPropagation(), e.preventDefault(), ee(), S.value?.focus();
3413
+ e.stopPropagation(), e.preventDefault(), Z(), S.value?.focus();
3412
3414
  break;
3413
3415
  }
3414
3416
  }
3415
- function ee() {
3417
+ function Z() {
3416
3418
  _.value = !1;
3417
3419
  }
3418
- function te() {
3419
- _.value ? ee() : K();
3420
+ function ee() {
3421
+ _.value ? Z() : K();
3420
3422
  }
3421
- function ne(e) {
3422
- W(e.iso) || (g.value = e.iso, ee(), S.value?.focus());
3423
+ function te(e) {
3424
+ W(e.iso) || (g.value = e.iso, Z(), S.value?.focus());
3423
3425
  }
3424
- function Z() {
3426
+ function ne() {
3425
3427
  F.value === 0 ? (F.value = 11, N.value--) : F.value--;
3426
3428
  }
3427
3429
  function re() {
@@ -3432,13 +3434,13 @@ var ga = [
3432
3434
  }
3433
3435
  function ae(e) {
3434
3436
  let t = e.target;
3435
- !x.value?.contains(t) && !A(t) && ee();
3437
+ !x.value?.contains(t) && !A(t) && Z();
3436
3438
  }
3437
3439
  G(_, (e) => {
3438
3440
  e ? document.addEventListener("pointerdown", ae) : document.removeEventListener("pointerdown", ae);
3439
3441
  });
3440
3442
  function Q(e) {
3441
- e.key === "Enter" || e.key === " " ? (e.preventDefault(), te()) : e.key === "Escape" && _.value && (e.stopPropagation(), ee());
3443
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), ee()) : e.key === "Escape" && _.value && (e.stopPropagation(), Z());
3442
3444
  }
3443
3445
  return C(() => document.removeEventListener("pointerdown", ae)), (a, u) => (T(), c("div", {
3444
3446
  ref_key: "containerRef",
@@ -3457,7 +3459,7 @@ var ga = [
3457
3459
  "aria-expanded": _.value,
3458
3460
  "aria-label": p.value,
3459
3461
  "aria-disabled": i.disabled,
3460
- onClick: te,
3462
+ onClick: ee,
3461
3463
  onKeydown: Q
3462
3464
  }, [l("span", { class: y(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !g.value }]) }, P(g.value ? V.value : p.value), 3), l("div", _a, [g.value ? (T(), c("button", {
3463
3465
  key: 0,
@@ -3484,7 +3486,7 @@ var ga = [
3484
3486
  type: "button",
3485
3487
  class: "uid-datepicker__nav-btn",
3486
3488
  "aria-label": L(f).datePicker.prevMonth,
3487
- onClick: Z
3489
+ onClick: ne
3488
3490
  }, [d(e, {
3489
3491
  icon: L(ce),
3490
3492
  size: 16
@@ -3521,7 +3523,7 @@ var ga = [
3521
3523
  disabled: W(e.iso),
3522
3524
  "aria-current": e.iso === U.value ? "date" : void 0,
3523
3525
  "aria-selected": e.iso === g.value,
3524
- onClick: (t) => ne(e)
3526
+ onClick: (t) => te(e)
3525
3527
  }, P(e.date.getDate()), 11, wa))), 128))], 544)], 12, ya)) : s("", !0)]),
3526
3528
  _: 1
3527
3529
  })]))], 2));
@@ -3835,7 +3837,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
3835
3837
  let e = K();
3836
3838
  h.value = e, m("change", e), I.value = e.toUpperCase();
3837
3839
  }
3838
- let X = a(() => Ka(h.value)), ee = a(() => X.value ?? h.value ?? null), te = a(() => `hsl(${g.value}, 100%, 50%)`), ne = a(() => `${_.value}%`), Z = a(() => `${100 - v.value}%`), re = a(() => `${g.value / 360 * 100}%`), ie = a(() => `${x.value}%`), [ae, Q, oe] = [
3840
+ let X = a(() => Ka(h.value)), Z = a(() => X.value ?? h.value ?? null), ee = a(() => `hsl(${g.value}, 100%, 50%)`), te = a(() => `${_.value}%`), ne = a(() => `${100 - v.value}%`), re = a(() => `${g.value / 360 * 100}%`), ie = a(() => `${x.value}%`), [ae, Q, oe] = [
3839
3841
  a(() => H(g.value, _.value, v.value)[0]),
3840
3842
  a(() => H(g.value, _.value, v.value)[1]),
3841
3843
  a(() => H(g.value, _.value, v.value)[2])
@@ -3958,8 +3960,8 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
3958
3960
  onClick: ke
3959
3961
  }, [l("span", {
3960
3962
  class: "uid-colorpicker__swatch",
3961
- style: b(ee.value ? { background: ee.value } : {})
3962
- }, null, 4), l("span", { class: y(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !h.value }]) }, P(ee.value ? ee.value.toUpperCase() : p.value), 3)], 8, qa), (T(), o(n, { to: "body" }, [d(r, { name: "uid-colorpicker-panel" }, {
3963
+ style: b(Z.value ? { background: Z.value } : {})
3964
+ }, null, 4), l("span", { class: y(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !h.value }]) }, P(Z.value ? Z.value.toUpperCase() : p.value), 3)], 8, qa), (T(), o(n, { to: "body" }, [d(r, { name: "uid-colorpicker-panel" }, {
3963
3965
  default: q(() => [S.value ? (T(), c("div", {
3964
3966
  key: 0,
3965
3967
  ref_key: "panelRef",
@@ -3973,7 +3975,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
3973
3975
  ref_key: "gradientRef",
3974
3976
  ref: M,
3975
3977
  class: "uid-colorpicker__gradient",
3976
- style: b({ "--_hue": te.value }),
3978
+ style: b({ "--_hue": ee.value }),
3977
3979
  tabindex: "0",
3978
3980
  role: "application",
3979
3981
  "aria-label": L(f).colorPicker.saturation,
@@ -3984,8 +3986,8 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
3984
3986
  }, [l("div", {
3985
3987
  class: "uid-colorpicker__gradient-thumb",
3986
3988
  style: b({
3987
- left: ne.value,
3988
- top: Z.value
3989
+ left: te.value,
3990
+ top: ne.value
3989
3991
  })
3990
3992
  }, null, 4)], 44, Ya),
3991
3993
  l("div", Xa, [l("div", Za, [l("div", {
@@ -4438,17 +4440,17 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4438
4440
  m: e
4439
4441
  };
4440
4442
  }
4441
- function ee(e) {
4443
+ function Z(e) {
4442
4444
  I.value = {
4443
4445
  ...I.value,
4444
4446
  s: e
4445
4447
  };
4446
4448
  }
4447
- function te() {
4449
+ function ee() {
4448
4450
  let e = F(I.value);
4449
4451
  g.value = e, h("change", e), K(), S.value?.focus();
4450
4452
  }
4451
- function ne() {
4453
+ function te() {
4452
4454
  let e = /* @__PURE__ */ new Date(), t = f.step;
4453
4455
  I.value = {
4454
4456
  h: e.getHours(),
@@ -4456,7 +4458,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4456
4458
  s: f.withSeconds ? Math.floor(e.getSeconds() / t) * t : 0
4457
4459
  };
4458
4460
  }
4459
- function Z(e) {
4461
+ function ne(e) {
4460
4462
  e.stopPropagation(), g.value = null, h("change", null);
4461
4463
  }
4462
4464
  function re(e) {
@@ -4493,7 +4495,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4493
4495
  ...I.value,
4494
4496
  [t]: r
4495
4497
  }, Q(t, r);
4496
- } else e.key === "Enter" ? (e.preventDefault(), te()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), K(), S.value?.focus());
4498
+ } else e.key === "Enter" ? (e.preventDefault(), ee()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), K(), S.value?.focus());
4497
4499
  }
4498
4500
  function Q(e, t) {
4499
4501
  let n = {
@@ -4552,7 +4554,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4552
4554
  type: "button",
4553
4555
  class: "uid-timepicker__clear",
4554
4556
  "aria-label": L(p).common.clear,
4555
- onClick: Z
4557
+ onClick: ne
4556
4558
  }, " × ", 8, Eo)) : s("", !0)
4557
4559
  ], 40, To), (T(), o(n, { to: "body" }, [d(r, { name: "uid-timepicker-panel" }, {
4558
4560
  default: q(() => [_.value ? (T(), c("div", {
@@ -4611,16 +4613,16 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4611
4613
  role: "option",
4612
4614
  "aria-selected": I.value.s === e,
4613
4615
  tabindex: I.value.s === e ? 0 : -1,
4614
- onClick: (t) => ee(e)
4616
+ onClick: (t) => Z(e)
4615
4617
  }, P(U(e)), 11, Po))), 128))], 40, No)) : s("", !0)
4616
4618
  ]), l("div", Fo, [l("button", {
4617
4619
  type: "button",
4618
4620
  class: "uid-timepicker__btn",
4619
- onClick: ne
4621
+ onClick: te
4620
4622
  }, P(L(p).timePicker.now), 1), l("button", {
4621
4623
  type: "button",
4622
4624
  class: "uid-timepicker__btn uid-timepicker__btn--primary",
4623
- onClick: te
4625
+ onClick: ee
4624
4626
  }, P(L(p).timePicker.confirm), 1)])], 12, Do)) : s("", !0)]),
4625
4627
  _: 1
4626
4628
  })]))], 2));
@@ -4704,7 +4706,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4704
4706
  return r ? `${n} ${r}` : n;
4705
4707
  }
4706
4708
  let J = a(() => _.value.start ? z(_.value.start) : null), Y = a(() => _.value.end ? z(_.value.end) : null), X = a(() => !_.value.start && !_.value.end ? "" : `${_.value.start ? K(_.value.start) : "..."} — ${_.value.end ? K(_.value.end) : "..."}`);
4707
- function ee(e, t, n) {
4709
+ function Z(e, t, n) {
4708
4710
  let r = new Date(e, t, 1), i = new Date(e, t + 1, 0), a = (r.getDay() + 6) % 7, o = [];
4709
4711
  for (let r = a; r > 0; r--) {
4710
4712
  let i = new Date(e, t, 1 - r);
@@ -4736,10 +4738,10 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4736
4738
  }
4737
4739
  return o;
4738
4740
  }
4739
- let te = a(() => ee(j.value, M.value, 0)), ne = a(() => {
4741
+ let ee = a(() => Z(j.value, M.value, 0)), te = a(() => {
4740
4742
  let e = M.value === 11 ? 0 : M.value + 1;
4741
- return ee(M.value === 11 ? j.value + 1 : j.value, e, 1);
4742
- }), Z = a(() => `${I.value[M.value]} ${j.value}`), re = a(() => {
4743
+ return Z(M.value === 11 ? j.value + 1 : j.value, e, 1);
4744
+ }), ne = a(() => `${I.value[M.value]} ${j.value}`), re = a(() => {
4743
4745
  let e = M.value === 11 ? 0 : M.value + 1, t = M.value === 11 ? j.value + 1 : j.value;
4744
4746
  return `${I.value[e]} ${t}`;
4745
4747
  }), ie = a(() => W(A));
@@ -4910,7 +4912,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4910
4912
  icon: L(ce),
4911
4913
  size: 16
4912
4914
  }, null, 8, ["icon"])], 8, Uo),
4913
- l("span", Wo, P(Z.value), 1),
4915
+ l("span", Wo, P(ne.value), 1),
4914
4916
  l("button", {
4915
4917
  type: "button",
4916
4918
  class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
@@ -4923,7 +4925,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4923
4925
  ]), l("div", Ko, [(T(!0), c(t, null, k(R.value, (e) => (T(), c("span", {
4924
4926
  key: e,
4925
4927
  class: "uid-daterange__weekday"
4926
- }, P(e), 1))), 128)), (T(!0), c(t, null, k(te.value, (e) => (T(), c("button", {
4928
+ }, P(e), 1))), 128)), (T(!0), c(t, null, k(ee.value, (e) => (T(), c("button", {
4927
4929
  key: e.iso,
4928
4930
  type: "button",
4929
4931
  class: y(["uid-daterange__day", {
@@ -4960,7 +4962,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
4960
4962
  ]), l("div", $o, [(T(!0), c(t, null, k(R.value, (e) => (T(), c("span", {
4961
4963
  key: e,
4962
4964
  class: "uid-daterange__weekday"
4963
- }, P(e), 1))), 128)), (T(!0), c(t, null, k(ne.value, (e) => (T(), c("button", {
4965
+ }, P(e), 1))), 128)), (T(!0), c(t, null, k(te.value, (e) => (T(), c("button", {
4964
4966
  key: e.iso,
4965
4967
  type: "button",
4966
4968
  class: y(["uid-daterange__day", {
@@ -5233,17 +5235,17 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5233
5235
  function X() {
5234
5236
  E.value = !1, D.value = U.value?.label ?? "";
5235
5237
  }
5236
- function ee(e) {
5238
+ function Z(e) {
5237
5239
  e.disabled || (w.value = e.value, S("change", e.value), D.value = e.label, E.value = !1, M.value?.blur());
5238
5240
  }
5239
- function te() {
5241
+ function ee() {
5240
5242
  let e = D.value.trim();
5241
5243
  e && (S("create", e), E.value = !1);
5242
5244
  }
5243
- function ne(e) {
5245
+ function te(e) {
5244
5246
  e.stopPropagation(), w.value = null, S("change", null), D.value = "", M.value?.focus();
5245
5247
  }
5246
- function Z(e) {
5248
+ function ne(e) {
5247
5249
  D.value = e.target.value, E.value || Y();
5248
5250
  }
5249
5251
  function re() {
@@ -5274,11 +5276,11 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5274
5276
  }
5275
5277
  function ce() {
5276
5278
  if (K.value && A.value === W.value.length) {
5277
- te();
5279
+ ee();
5278
5280
  return;
5279
5281
  }
5280
5282
  let e = W.value[A.value];
5281
- e && ee(e);
5283
+ e && Z(e);
5282
5284
  }
5283
5285
  function le() {
5284
5286
  v(() => {
@@ -5328,7 +5330,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5328
5330
  disabled: r.disabled,
5329
5331
  required: r.required,
5330
5332
  value: D.value,
5331
- onInput: Z,
5333
+ onInput: ne,
5332
5334
  onFocus: re,
5333
5335
  onKeydown: ie
5334
5336
  }), null, 16, xs), l("div", Ss, [r.clearable && w.value !== null ? (T(), c("button", {
@@ -5336,7 +5338,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5336
5338
  type: "button",
5337
5339
  class: "uid-combobox__clear",
5338
5340
  "aria-label": L(h).common.clear,
5339
- onClick: ne
5341
+ onClick: te
5340
5342
  }, [d(e, {
5341
5343
  icon: L(Ee),
5342
5344
  size: 12
@@ -5369,7 +5371,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5369
5371
  "data-active": n === A.value ? "true" : void 0,
5370
5372
  "aria-selected": t.value === w.value,
5371
5373
  "aria-disabled": t.disabled,
5372
- onClick: (e) => ee(t),
5374
+ onClick: (e) => Z(t),
5373
5375
  onMouseenter: (e) => !t.disabled && (A.value = n)
5374
5376
  }, [
5375
5377
  l("span", Es, P(t.label), 1),
@@ -5389,7 +5391,7 @@ var qa = ["aria-expanded", "aria-disabled"], Ja = ["aria-label"], Ya = ["aria-la
5389
5391
  role: "option",
5390
5392
  class: y(["uid-combobox__option uid-combobox__create", { "uid-combobox__option--active": A.value === W.value.length }]),
5391
5393
  "data-active": A.value === W.value.length ? "true" : void 0,
5392
- onClick: te,
5394
+ onClick: ee,
5393
5395
  onMouseenter: a[0] ||= (e) => A.value = W.value.length
5394
5396
  }, [l("span", ks, P(L(h).combobox.create(D.value)), 1)], 42, Os)) : s("", !0),
5395
5397
  W.value.length === 0 && !K.value ? (T(), c("div", As, P(x.value), 1)) : s("", !0)
@@ -6565,7 +6567,7 @@ var Lc = {
6565
6567
  let n = t, r = $(), i = a(() => n.locale ?? r.value.code ?? "ru-RU"), d = a(() => n.value === void 0 ? "" : n.formatter ? n.formatter(n.value) : typeof n.value == "number" ? n.value.toLocaleString(i.value, {
6566
6568
  minimumFractionDigits: n.precision,
6567
6569
  maximumFractionDigits: n.precision
6568
- }) : String(n.value)), f = a(() => n.trend === void 0 ? null : n.trend > 0 ? "up" : n.trend < 0 ? "down" : "flat"), p = a(() => f.value === "up" ? re : f.value === "down" ? ne : null), m = a(() => n.trend === void 0 ? "" : `${Math.abs(n.trend).toLocaleString(i.value, { maximumFractionDigits: 2 })}${n.trendSuffix}`);
6570
+ }) : String(n.value)), f = a(() => n.trend === void 0 ? null : n.trend > 0 ? "up" : n.trend < 0 ? "down" : "flat"), p = a(() => f.value === "up" ? re : f.value === "down" ? te : null), m = a(() => n.trend === void 0 ? "" : `${Math.abs(n.trend).toLocaleString(i.value, { maximumFractionDigits: 2 })}${n.trendSuffix}`);
6569
6571
  return (n, r) => (T(), c("div", { class: y(["uid-stat", [
6570
6572
  `uid-stat--${t.tone}`,
6571
6573
  t.variant === "ghost" && "uid-stat--ghost",
@@ -6696,7 +6698,7 @@ var Lc = {
6696
6698
  let n = t, r = {
6697
6699
  success: oe,
6698
6700
  info: ve,
6699
- warning: te,
6701
+ warning: ee,
6700
6702
  error: De
6701
6703
  }, i = a(() => r[n.status]);
6702
6704
  return (n, r) => (T(), c("div", {
@@ -7315,18 +7317,18 @@ var Lc = {
7315
7317
  function Y() {
7316
7318
  v.value ? J() : q();
7317
7319
  }
7318
- function ee(e, t) {
7320
+ function Z(e, t) {
7319
7321
  if (e.length !== t.length) return !1;
7320
7322
  let n = new Set(e);
7321
7323
  return t.every((e) => n.has(e));
7322
7324
  }
7323
- let te = a({
7325
+ let ee = a({
7324
7326
  get: () => H.value,
7325
7327
  set: (e) => {
7326
- ee(e, H.value) || (g.value = [...e], h("change", [...e]));
7328
+ Z(e, H.value) || (g.value = [...e], h("change", [...e]));
7327
7329
  }
7328
7330
  });
7329
- function ne(e) {
7331
+ function te(e) {
7330
7332
  let t = new Set([e]);
7331
7333
  if (!f.checkable || f.checkStrictly) return t;
7332
7334
  let n = I.value.find((t) => t.key === e), r = (e) => {
@@ -7337,7 +7339,7 @@ var Lc = {
7337
7339
  for (; i;) t.add(i.key), i = V.value.get(i.key) ?? null;
7338
7340
  return t;
7339
7341
  }
7340
- function Z(e) {
7342
+ function ne(e) {
7341
7343
  if (f.multiple) {
7342
7344
  let t = Array.isArray(g.value) ? [...g.value] : [], n = t.indexOf(e.key);
7343
7345
  n >= 0 ? t.splice(n, 1) : t.push(e.key), g.value = t, h("change", t);
@@ -7350,7 +7352,7 @@ var Lc = {
7350
7352
  }
7351
7353
  function ie(e, t) {
7352
7354
  if (e.stopPropagation(), !Array.isArray(g.value)) return;
7353
- let n = ne(t), r = g.value.filter((e) => !n.has(e));
7355
+ let n = te(t), r = g.value.filter((e) => !n.has(e));
7354
7356
  g.value = r, h("change", r);
7355
7357
  }
7356
7358
  function ae(e) {
@@ -7429,8 +7431,8 @@ var Lc = {
7429
7431
  key: 0,
7430
7432
  "expanded-keys": _.value,
7431
7433
  "onUpdate:expandedKeys": a[0] ||= (e) => _.value = e,
7432
- "checked-keys": te.value,
7433
- "onUpdate:checkedKeys": a[1] ||= (e) => te.value = e,
7434
+ "checked-keys": ee.value,
7435
+ "onUpdate:checkedKeys": a[1] ||= (e) => ee.value = e,
7434
7436
  nodes: r.nodes,
7435
7437
  selectable: !1,
7436
7438
  checkable: "",
@@ -7453,7 +7455,7 @@ var Lc = {
7453
7455
  selectable: r.multiple ? "multiple" : "single",
7454
7456
  "default-expand-all": r.defaultExpandAll,
7455
7457
  "show-guides": r.showGuides,
7456
- onSelect: Z
7458
+ onSelect: ne
7457
7459
  }, null, 8, [
7458
7460
  "expanded-keys",
7459
7461
  "nodes",
@@ -7952,7 +7954,7 @@ var Lc = {
7952
7954
  t && q(t);
7953
7955
  } else e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), ie(), E.value?.focus());
7954
7956
  }
7955
- function ee(e) {
7957
+ function Z(e) {
7956
7958
  let t = f.options;
7957
7959
  for (let n of e) {
7958
7960
  let e = t.find((e) => e.value === n);
@@ -7961,15 +7963,15 @@ var Lc = {
7961
7963
  }
7962
7964
  return t;
7963
7965
  }
7964
- let te = a(() => {
7966
+ let ee = a(() => {
7965
7967
  let e = [f.options];
7966
7968
  for (let t = 0; t < S.value.length; t++) {
7967
- let n = ee(S.value.slice(0, t + 1));
7969
+ let n = Z(S.value.slice(0, t + 1));
7968
7970
  if (n.length === 0) break;
7969
7971
  e.push(n);
7970
7972
  }
7971
7973
  return e;
7972
- }), ne = a(() => {
7974
+ }), te = a(() => {
7973
7975
  if (m.value.length === 0) return [];
7974
7976
  let e = [], t = f.options;
7975
7977
  for (let n of m.value) {
@@ -7978,7 +7980,7 @@ var Lc = {
7978
7980
  e.push(r), t = r.children ?? [];
7979
7981
  }
7980
7982
  return e;
7981
- }), Z = a(() => ne.value.map((e) => e.label));
7983
+ }), ne = a(() => te.value.map((e) => e.label));
7982
7984
  function re() {
7983
7985
  f.disabled || (_.value = !0);
7984
7986
  }
@@ -8052,7 +8054,7 @@ var Lc = {
8052
8054
  "aria-label": g.value,
8053
8055
  onClick: ae,
8054
8056
  onKeydown: pe
8055
- }, [l("div", nd, [Z.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(Z.value, (e, n) => (T(), c(t, { key: n }, [l("span", null, P(e), 1), n < Z.value.length - 1 ? (T(), c("span", rd, P(r.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", id, P(g.value), 1))]), l("div", ad, [r.clearable && m.value.length > 0 ? (T(), c("button", {
8057
+ }, [l("div", nd, [ne.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(ne.value, (e, n) => (T(), c(t, { key: n }, [l("span", null, P(e), 1), n < ne.value.length - 1 ? (T(), c("span", rd, P(r.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", id, P(g.value), 1))]), l("div", ad, [r.clearable && m.value.length > 0 ? (T(), c("button", {
8056
8058
  key: 0,
8057
8059
  type: "button",
8058
8060
  class: "uid-cascader__clear",
@@ -8101,7 +8103,7 @@ var Lc = {
8101
8103
  onMousedown: a[1] ||= X(() => {}, ["prevent"]),
8102
8104
  onMouseenter: (e) => N.value = n,
8103
8105
  onClick: (t) => q(e)
8104
- }, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span", dd, P(r.separator), 1)) : s("", !0), l("span", null, [(T(!0), c(t, null, k(W(e.label), (e, n) => (T(), c(t, { key: n }, [e.match ? (T(), c("mark", fd, P(e.text), 1)) : (T(), c(t, { key: 1 }, [u(P(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, ud))), 128)), V.value.length === 0 ? (T(), c("li", pd, P(L(h).common.noResults), 1)) : s("", !0)], 8, ld)) : (T(), c("div", md, [(T(!0), c(t, null, k(te.value, (n, i) => (T(), c("div", {
8106
+ }, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span", dd, P(r.separator), 1)) : s("", !0), l("span", null, [(T(!0), c(t, null, k(W(e.label), (e, n) => (T(), c(t, { key: n }, [e.match ? (T(), c("mark", fd, P(e.text), 1)) : (T(), c(t, { key: 1 }, [u(P(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, ud))), 128)), V.value.length === 0 ? (T(), c("li", pd, P(L(h).common.noResults), 1)) : s("", !0)], 8, ld)) : (T(), c("div", md, [(T(!0), c(t, null, k(ee.value, (n, i) => (T(), c("div", {
8105
8107
  key: i,
8106
8108
  class: "uid-cascader__column"
8107
8109
  }, [(T(!0), c(t, null, k(n, (t) => (T(), c("button", {
@@ -8812,13 +8814,417 @@ var Lc = {
8812
8814
  l("span", null, P(L(r).heatmap.more), 1)
8813
8815
  ])) : s("", !0)], 12, df));
8814
8816
  }
8815
- }), yf = ["aria-label"], bf = ["aria-current"], xf = { class: "uid-stepper__indicator" }, Sf = {
8817
+ }), yf = {
8818
+ default: ["color-mix(in srgb, var(--uid-heatmap-matrix-color) 14%, var(--uid-color-bg))", "var(--uid-heatmap-matrix-color)"],
8819
+ viridis: [
8820
+ "#440154",
8821
+ "#482878",
8822
+ "#3e4989",
8823
+ "#31688e",
8824
+ "#26828e",
8825
+ "#1f9e89",
8826
+ "#35b779",
8827
+ "#6ece58",
8828
+ "#b5de2b",
8829
+ "#fde725"
8830
+ ],
8831
+ magma: [
8832
+ "#000004",
8833
+ "#1c1044",
8834
+ "#4f127b",
8835
+ "#812581",
8836
+ "#b5367a",
8837
+ "#e55064",
8838
+ "#fb8761",
8839
+ "#fec287",
8840
+ "#fcfdbf"
8841
+ ],
8842
+ plasma: [
8843
+ "#0d0887",
8844
+ "#46039f",
8845
+ "#7201a8",
8846
+ "#9c179e",
8847
+ "#bd3786",
8848
+ "#d8576b",
8849
+ "#ed7953",
8850
+ "#fb9f3a",
8851
+ "#fdca26",
8852
+ "#f0f921"
8853
+ ],
8854
+ inferno: [
8855
+ "#000004",
8856
+ "#1b0c41",
8857
+ "#4a0c6b",
8858
+ "#781c6d",
8859
+ "#a52c60",
8860
+ "#cf4446",
8861
+ "#ed6925",
8862
+ "#fb9b06",
8863
+ "#f7d13d",
8864
+ "#fcffa4"
8865
+ ],
8866
+ blues: [
8867
+ "#deebf7",
8868
+ "#c6dbef",
8869
+ "#9ecae1",
8870
+ "#6baed6",
8871
+ "#4292c6",
8872
+ "#2171b5",
8873
+ "#08519c",
8874
+ "#08306b"
8875
+ ],
8876
+ greens: [
8877
+ "#e5f5e0",
8878
+ "#c7e9c0",
8879
+ "#a1d99b",
8880
+ "#74c476",
8881
+ "#41ab5d",
8882
+ "#238b45",
8883
+ "#006d2c",
8884
+ "#00441b"
8885
+ ],
8886
+ reds: [
8887
+ "#fee0d2",
8888
+ "#fcbba1",
8889
+ "#fc9272",
8890
+ "#fb6a4a",
8891
+ "#ef3b2c",
8892
+ "#cb181d",
8893
+ "#a50f15",
8894
+ "#67000d"
8895
+ ]
8896
+ };
8897
+ function bf(e) {
8898
+ return Object.prototype.hasOwnProperty.call(yf, e);
8899
+ }
8900
+ function xf(e) {
8901
+ if (Array.isArray(e)) {
8902
+ let t = e.filter((e) => typeof e == "string" && e.trim() !== "");
8903
+ return t.length > 0 ? t : [...yf.default];
8904
+ }
8905
+ let t = typeof e == "string" ? e.trim() : "";
8906
+ if (t === "") return [...yf.default];
8907
+ let n = t.toLowerCase();
8908
+ return bf(n) ? [...yf[n]] : Sf(t) ? [`color-mix(in srgb, ${t} 14%, var(--uid-color-bg))`, t] : [...yf.default];
8909
+ }
8910
+ function Sf(e) {
8911
+ return /^(#|rgba?\(|hsla?\(|hwb\(|lab\(|lch\(|oklab\(|oklch\(|color\(|color-mix\(|var\()/i.test(e) ? !0 : typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("color", e);
8912
+ }
8913
+ function Cf(e, t) {
8914
+ if (e.length === 0) return "transparent";
8915
+ if (e.length === 1) return e[0];
8916
+ let n = (Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0) * (e.length - 1), r = Math.min(e.length - 2, Math.floor(n)), i = n - r;
8917
+ return i <= 5e-4 ? e[r] : i >= .9995 ? e[r + 1] : `color-mix(in srgb, ${e[r + 1]} ${(i * 100).toFixed(1)}%, ${e[r]})`;
8918
+ }
8919
+ function wf(e) {
8920
+ return e.length === 1 ? e[0] : `linear-gradient(to right, ${e.join(", ")})`;
8921
+ }
8922
+ //#endregion
8923
+ //#region src/components/Heatmap/UidHeatmapMatrix.vue?vue&type=script&setup=true&lang.ts
8924
+ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
8925
+ "aria-label",
8926
+ "aria-rowcount",
8927
+ "aria-colcount"
8928
+ ], Df = {
8929
+ class: "uid-heatmap-matrix__row uid-heatmap-matrix__row--head",
8930
+ role: "row",
8931
+ "aria-rowindex": "1"
8932
+ }, Of = ["aria-colindex", "aria-label"], kf = ["title"], Af = ["aria-rowindex"], jf = ["title"], Mf = [
8933
+ "aria-colindex",
8934
+ "aria-label",
8935
+ "tabindex",
8936
+ "data-r",
8937
+ "data-c",
8938
+ "onMouseenter",
8939
+ "onFocus"
8940
+ ], Nf = { class: "uid-heatmap-matrix__tooltip-label" }, Pf = { class: "uid-heatmap-matrix__tooltip-value" }, Ff = {
8941
+ key: 1,
8942
+ class: "uid-heatmap-matrix__legend",
8943
+ "aria-hidden": "true"
8944
+ }, If = { class: "uid-heatmap-matrix__legend-value" }, Lf = { class: "uid-heatmap-matrix__legend-value" }, Rf = {
8945
+ key: 0,
8946
+ class: "uid-heatmap-matrix__legend-empty"
8947
+ }, zf = 11, Bf = 96, Vf = 18, Hf = /* @__PURE__ */ f({
8948
+ __name: "UidHeatmapMatrix",
8949
+ props: {
8950
+ rows: {},
8951
+ cols: {},
8952
+ values: {},
8953
+ colorScale: { default: "default" },
8954
+ min: { default: void 0 },
8955
+ max: { default: void 0 },
8956
+ formatValue: {
8957
+ type: Function,
8958
+ default: void 0
8959
+ },
8960
+ cellHeight: { default: 20 },
8961
+ minCellWidth: { default: 10 },
8962
+ gap: { default: 2 },
8963
+ colLabels: { default: "auto" },
8964
+ showLegend: {
8965
+ type: Boolean,
8966
+ default: !0
8967
+ },
8968
+ ariaLabel: { default: void 0 }
8969
+ },
8970
+ setup(e) {
8971
+ let n = e, r = $(), i = Math.SQRT1_2, o = O(null), d = O([]), f = O(null), p = O(0), m = O(0);
8972
+ function h(e, t) {
8973
+ let r = n.values[e]?.[t];
8974
+ return typeof r == "number" && Number.isFinite(r) ? r : null;
8975
+ }
8976
+ let g = a(() => n.rows.map((e, t) => n.cols.map((e, n) => h(t, n)))), _ = a(() => {
8977
+ let e = Infinity, t = -Infinity;
8978
+ for (let n of g.value) for (let r of n) r !== null && (r < e && (e = r), r > t && (t = r));
8979
+ return e === Infinity && (e = 0, t = 0), {
8980
+ min: typeof n.min == "number" ? n.min : e,
8981
+ max: typeof n.max == "number" ? n.max : t
8982
+ };
8983
+ }), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() => xf(n.colorScale));
8984
+ function E(e) {
8985
+ let { min: t, max: n } = _.value;
8986
+ return n <= t ? +(e > t) : (e - t) / (n - t);
8987
+ }
8988
+ function D(e) {
8989
+ if (e !== null) return Cf(w.value, E(e));
8990
+ }
8991
+ function j(e) {
8992
+ return n.formatValue ? n.formatValue(e) : new Intl.NumberFormat(r.value.code).format(e);
8993
+ }
8994
+ function M(e) {
8995
+ return e === null ? r.value.heatmap.noData : j(e);
8996
+ }
8997
+ function N(e, t) {
8998
+ return {
8999
+ row: n.rows[e] ?? "",
9000
+ col: n.cols[t] ?? "",
9001
+ rowIndex: e,
9002
+ colIndex: t,
9003
+ value: g.value[e]?.[t] ?? null
9004
+ };
9005
+ }
9006
+ function F(e, t) {
9007
+ let n = N(e, t);
9008
+ return `${n.row} × ${n.col}: ${M(n.value)}`;
9009
+ }
9010
+ function I(e) {
9011
+ return Math.min(Bf, e.length * zf * .6);
9012
+ }
9013
+ let R = a(() => n.cols.reduce((e, t) => Math.max(e, I(t)), 0)), z = a(() => {
9014
+ let e = n.cols.length, t = p.value, r = n.colLabels;
9015
+ if (e === 0 || t <= 0) return {
9016
+ mode: r === "rotated" ? "rotated" : "horizontal",
9017
+ step: 1,
9018
+ reserve: 0
9019
+ };
9020
+ let a = t - 4 - m.value - n.gap * e, o = Math.max(n.minCellWidth, a / e), s = R.value, c = Math.max(1, Math.ceil((s + 6) / o)), l = (s + zf) * i, u = Math.max(n.minCellWidth, (a - l) / Math.max(.5, e - .5)), d = Math.max(0, Math.ceil(l - u / 2)), f = Math.max(1, Math.ceil(Vf / u));
9021
+ return r === "horizontal" ? {
9022
+ mode: "horizontal",
9023
+ step: c,
9024
+ reserve: 0
9025
+ } : r === "rotated" ? {
9026
+ mode: "rotated",
9027
+ step: f,
9028
+ reserve: d
9029
+ } : c === 1 || f >= c ? {
9030
+ mode: "horizontal",
9031
+ step: c,
9032
+ reserve: 0
9033
+ } : {
9034
+ mode: "rotated",
9035
+ step: f,
9036
+ reserve: d
9037
+ };
9038
+ });
9039
+ function B(e) {
9040
+ return e % z.value.step === 0;
9041
+ }
9042
+ let V = a(() => z.value.mode === "horizontal" ? 18 : Math.ceil((R.value + 14) * i) + 6), H = a(() => ({
9043
+ "--uid-heatmap-matrix-cols": String(n.cols.length),
9044
+ "--uid-heatmap-matrix-cell-height": `${n.cellHeight}px`,
9045
+ "--uid-heatmap-matrix-min-cell": `${n.minCellWidth}px`,
9046
+ "--uid-heatmap-matrix-gap": `${n.gap}px`,
9047
+ "--uid-heatmap-matrix-header-height": `${V.value}px`
9048
+ })), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() => wf(w.value)), K = a(() => n.ariaLabel ?? r.value.heatmap.matrixSummary(n.rows.length, n.cols.length)), q = O({
9049
+ r: 0,
9050
+ c: 0
9051
+ }), J = O(null), Y = O(!1), X = a(() => J.value ?? (Y.value ? q.value : null)), Z = a(() => X.value ? N(X.value.r, X.value.c) : null), ee = O({});
9052
+ async function te() {
9053
+ let e = X.value, t = o.value;
9054
+ if (!e || !t) return;
9055
+ let n = t.querySelector(`[data-r="${e.r}"][data-c="${e.c}"]`);
9056
+ if (!n) return;
9057
+ let r = t.getBoundingClientRect(), i = n.getBoundingClientRect(), a = i.left - r.left + i.width / 2, s = i.top - r.top;
9058
+ ee.value = {
9059
+ left: `${a}px`,
9060
+ top: `${s}px`
9061
+ }, await v();
9062
+ let c = f.value;
9063
+ if (!c) return;
9064
+ let l = c.offsetWidth / 2, u = r.width - l, d = Math.max(l, Math.min(u, a));
9065
+ u >= l && d !== a && (ee.value = {
9066
+ left: `${d}px`,
9067
+ top: `${s}px`
9068
+ });
9069
+ }
9070
+ G(X, () => {
9071
+ te();
9072
+ });
9073
+ function ne(e, t) {
9074
+ J.value = {
9075
+ r: e,
9076
+ c: t
9077
+ };
9078
+ }
9079
+ function re() {
9080
+ J.value = null;
9081
+ }
9082
+ function ie(e, t) {
9083
+ q.value = {
9084
+ r: e,
9085
+ c: t
9086
+ }, Y.value = !0;
9087
+ }
9088
+ function ae(e) {
9089
+ let t = e.relatedTarget;
9090
+ (!t || !o.value?.contains(t)) && (Y.value = !1);
9091
+ }
9092
+ function Q(e, t) {
9093
+ let r = n.rows.length, i = n.cols.length;
9094
+ if (r === 0 || i === 0) return;
9095
+ let a = Math.max(0, Math.min(r - 1, e)), s = Math.max(0, Math.min(i - 1, t));
9096
+ q.value = {
9097
+ r: a,
9098
+ c: s
9099
+ }, J.value = null, v(() => {
9100
+ o.value?.querySelector(`[data-r="${a}"][data-c="${s}"]`)?.focus();
9101
+ });
9102
+ }
9103
+ function oe(e) {
9104
+ let { r: t, c: r } = q.value, i = {
9105
+ r: n.rows.length - 1,
9106
+ c: n.cols.length - 1
9107
+ }, a = {
9108
+ ArrowRight: () => Q(t, r + 1),
9109
+ ArrowLeft: () => Q(t, r - 1),
9110
+ ArrowDown: () => Q(t + 1, r),
9111
+ ArrowUp: () => Q(t - 1, r),
9112
+ Home: () => e.ctrlKey ? Q(0, 0) : Q(t, 0),
9113
+ End: () => e.ctrlKey ? Q(i.r, i.c) : Q(t, i.c),
9114
+ PageUp: () => Q(0, r),
9115
+ PageDown: () => Q(i.r, r),
9116
+ Escape: () => {
9117
+ J.value = null, Y.value = !1;
9118
+ }
9119
+ }[e.key];
9120
+ a && (e.preventDefault(), a());
9121
+ }
9122
+ G(() => [n.rows.length, n.cols.length], ([e, t]) => {
9123
+ let { r: n, c: r } = q.value;
9124
+ (n >= e || r >= t) && (q.value = {
9125
+ r: 0,
9126
+ c: 0
9127
+ });
9128
+ });
9129
+ function se() {
9130
+ let e = o.value;
9131
+ e && (p.value = e.getBoundingClientRect().width, m.value = d.value.reduce((e, t) => Math.max(e, t.getBoundingClientRect().width), 0));
9132
+ }
9133
+ let ce = null;
9134
+ return S(() => {
9135
+ se(), typeof ResizeObserver < "u" && o.value && (ce = new ResizeObserver(() => se()), ce.observe(o.value));
9136
+ }), G(() => n.rows, () => {
9137
+ v(se);
9138
+ }), x(() => {
9139
+ ce?.disconnect(), ce = null;
9140
+ }), (n, i) => (T(), c("div", {
9141
+ ref_key: "rootRef",
9142
+ ref: o,
9143
+ class: y(["uid-heatmap-matrix", `uid-heatmap-matrix--labels-${z.value.mode}`]),
9144
+ style: b(H.value)
9145
+ }, [
9146
+ l("div", Tf, [l("div", {
9147
+ class: "uid-heatmap-matrix__grid",
9148
+ role: "grid",
9149
+ style: b(U.value),
9150
+ "aria-label": K.value,
9151
+ "aria-rowcount": e.rows.length + 1,
9152
+ "aria-colcount": e.cols.length + 1,
9153
+ onMouseleave: re,
9154
+ onKeydown: oe
9155
+ }, [l("div", Df, [i[0] ||= l("div", {
9156
+ class: "uid-heatmap-matrix__corner",
9157
+ role: "columnheader",
9158
+ "aria-colindex": "1"
9159
+ }, null, -1), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
9160
+ key: `h-${t}`,
9161
+ class: "uid-heatmap-matrix__col-header",
9162
+ role: "columnheader",
9163
+ "aria-colindex": t + 2,
9164
+ "aria-label": e
9165
+ }, [l("span", {
9166
+ class: y(["uid-heatmap-matrix__col-label", { "uid-heatmap-matrix__col-label--hidden": !B(t) }]),
9167
+ title: e,
9168
+ "aria-hidden": "true"
9169
+ }, P(e), 11, kf)], 8, Of))), 128))]), (T(!0), c(t, null, k(e.rows, (n, r) => (T(), c("div", {
9170
+ key: `r-${r}`,
9171
+ class: "uid-heatmap-matrix__row",
9172
+ role: "row",
9173
+ "aria-rowindex": r + 2
9174
+ }, [l("div", {
9175
+ ref_for: !0,
9176
+ ref_key: "rowHeaderRef",
9177
+ ref: d,
9178
+ class: "uid-heatmap-matrix__row-header",
9179
+ role: "rowheader",
9180
+ "aria-colindex": "1",
9181
+ title: n
9182
+ }, P(n), 9, jf), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
9183
+ key: `c-${r}-${t}`,
9184
+ class: y(["uid-heatmap-matrix__cell", {
9185
+ "uid-heatmap-matrix__cell--empty": g.value[r][t] === null,
9186
+ "uid-heatmap-matrix__cell--active": X.value && X.value.r === r && X.value.c === t
9187
+ }]),
9188
+ role: "gridcell",
9189
+ "aria-colindex": t + 2,
9190
+ "aria-label": F(r, t),
9191
+ tabindex: q.value.r === r && q.value.c === t ? 0 : -1,
9192
+ "data-r": r,
9193
+ "data-c": t,
9194
+ style: b(g.value[r][t] === null ? void 0 : { background: D(g.value[r][t]) }),
9195
+ onMouseenter: (e) => ne(r, t),
9196
+ onFocus: (e) => ie(r, t),
9197
+ onBlur: ae
9198
+ }, null, 46, Mf))), 128))], 8, Af))), 128))], 44, Ef)]),
9199
+ Z.value ? (T(), c("div", {
9200
+ key: 0,
9201
+ ref_key: "tooltipRef",
9202
+ ref: f,
9203
+ class: "uid-heatmap-matrix__tooltip",
9204
+ role: "tooltip",
9205
+ style: b(ee.value)
9206
+ }, [A(n.$slots, "tooltip", {
9207
+ cell: Z.value,
9208
+ formatted: M(Z.value.value)
9209
+ }, () => [l("span", Nf, P(Z.value.row) + " × " + P(Z.value.col), 1), l("strong", Pf, P(M(Z.value.value)), 1)])], 4)) : s("", !0),
9210
+ e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div", Ff, [
9211
+ l("span", If, P(j(_.value.min)), 1),
9212
+ l("span", {
9213
+ class: "uid-heatmap-matrix__legend-bar",
9214
+ style: b({ background: W.value })
9215
+ }, null, 4),
9216
+ l("span", Lf, P(j(_.value.max)), 1),
9217
+ C.value ? (T(), c("span", Rf, [i[1] ||= l("span", { class: "uid-heatmap-matrix__legend-swatch" }, null, -1), u(" " + P(L(r).heatmap.noData), 1)])) : s("", !0)
9218
+ ])) : s("", !0)
9219
+ ], 6));
9220
+ }
9221
+ }), Uf = ["aria-label"], Wf = ["aria-current"], Gf = { class: "uid-stepper__indicator" }, Kf = {
8816
9222
  key: 1,
8817
9223
  "aria-hidden": "true"
8818
- }, Cf = { class: "uid-stepper__content" }, wf = { class: "uid-stepper__label" }, Tf = {
9224
+ }, qf = { class: "uid-stepper__content" }, Jf = { class: "uid-stepper__label" }, Yf = {
8819
9225
  key: 0,
8820
9226
  class: "uid-stepper__description"
8821
- }, Ef = /* @__PURE__ */ f({
9227
+ }, Xf = /* @__PURE__ */ f({
8822
9228
  __name: "UidStepper",
8823
9229
  props: {
8824
9230
  steps: {},
@@ -8847,20 +9253,20 @@ var Lc = {
8847
9253
  class: y(["uid-stepper__target", { "uid-stepper__target--selectable": d(r) }]),
8848
9254
  onClick: (e) => d(r) && u("select", r)
8849
9255
  }, {
8850
- default: q(() => [l("div", xf, [f(r, n.current) === "completed" ? (T(), o(e, {
9256
+ default: q(() => [l("div", Gf, [f(r, n.current) === "completed" ? (T(), o(e, {
8851
9257
  key: 0,
8852
9258
  icon: L(Q),
8853
9259
  size: 16,
8854
9260
  "aria-hidden": "true"
8855
- }, null, 8, ["icon"])) : (T(), c("span", Sf, P(r + 1), 1))]), l("div", Cf, [l("span", wf, P(t.label), 1), t.description ? (T(), c("span", Tf, P(t.description), 1)) : s("", !0)])]),
9261
+ }, null, 8, ["icon"])) : (T(), c("span", Kf, P(r + 1), 1))]), l("div", qf, [l("span", Jf, P(t.label), 1), t.description ? (T(), c("span", Yf, P(t.description), 1)) : s("", !0)])]),
8856
9262
  _: 2
8857
9263
  }, 1032, [
8858
9264
  "type",
8859
9265
  "class",
8860
9266
  "onClick"
8861
- ]))], 10, bf))), 128))], 10, yf));
9267
+ ]))], 10, Wf))), 128))], 10, Uf));
8862
9268
  }
8863
- }), Df = /* @__PURE__ */ f({
9269
+ }), Zf = /* @__PURE__ */ f({
8864
9270
  __name: "UidStack",
8865
9271
  props: {
8866
9272
  direction: { default: "column" },
@@ -8906,7 +9312,7 @@ var Lc = {
8906
9312
  _: 3
8907
9313
  }, 8, ["class", "style"]));
8908
9314
  }
8909
- }), Of = /* @__PURE__ */ f({
9315
+ }), Qf = /* @__PURE__ */ f({
8910
9316
  __name: "UidGrid",
8911
9317
  props: {
8912
9318
  cols: { default: 12 },
@@ -8941,7 +9347,7 @@ var Lc = {
8941
9347
  _: 3
8942
9348
  }, 8, ["style"]));
8943
9349
  }
8944
- }), kf = /* @__PURE__ */ f({
9350
+ }), $f = /* @__PURE__ */ f({
8945
9351
  __name: "UidContainer",
8946
9352
  props: {
8947
9353
  size: { default: "lg" },
@@ -8957,7 +9363,7 @@ var Lc = {
8957
9363
  _: 3
8958
9364
  }, 8, ["class"]));
8959
9365
  }
8960
- }), Af = Symbol("uid-wizard"), jf = { class: "uid-wizard" }, Mf = /* @__PURE__ */ f({
9366
+ }), ep = Symbol("uid-wizard"), tp = { class: "uid-wizard" }, np = /* @__PURE__ */ f({
8961
9367
  __name: "UidWizard",
8962
9368
  props: /* @__PURE__ */ g({ steps: {} }, {
8963
9369
  modelValue: { default: 0 },
@@ -8982,7 +9388,7 @@ var Lc = {
8982
9388
  function m(e) {
8983
9389
  i.delete(e);
8984
9390
  }
8985
- return E(Af, {
9391
+ return E(ep, {
8986
9392
  current: r,
8987
9393
  steps: o,
8988
9394
  isFirst: s,
@@ -8999,9 +9405,9 @@ var Lc = {
8999
9405
  goTo: f,
9000
9406
  isFirst: s,
9001
9407
  isLast: l
9002
- }), (e, t) => (T(), c("div", jf, [A(e.$slots, "default")]));
9408
+ }), (e, t) => (T(), c("div", tp, [A(e.$slots, "default")]));
9003
9409
  }
9004
- }), Nf = ["aria-label"], Pf = /* @__PURE__ */ f({
9410
+ }), rp = ["aria-label"], ip = /* @__PURE__ */ f({
9005
9411
  __name: "UidWizardStep",
9006
9412
  props: {
9007
9413
  index: {},
@@ -9011,7 +9417,7 @@ var Lc = {
9011
9417
  }
9012
9418
  },
9013
9419
  setup(e) {
9014
- let t = e, n = $(), r = h(Af);
9420
+ let t = e, n = $(), r = h(ep);
9015
9421
  if (!r) throw Error("UidWizardStep must be inside UidWizard");
9016
9422
  G(() => t.validate, (e, n) => {
9017
9423
  n !== void 0 && r.unregisterValidator(t.index), e !== void 0 && r.registerValidator(t.index, e);
@@ -9022,18 +9428,18 @@ var Lc = {
9022
9428
  class: "uid-wizard-step",
9023
9429
  role: "tabpanel",
9024
9430
  "aria-label": L(n).wizard.step(e.index + 1)
9025
- }, [A(t.$slots, "default")], 8, Nf)) : s("", !0);
9431
+ }, [A(t.$slots, "default")], 8, rp)) : s("", !0);
9026
9432
  }
9027
- }), Ff = { class: "uid-pattern-header__inner" }, If = {
9433
+ }), ap = { class: "uid-pattern-header__inner" }, op = {
9028
9434
  key: 0,
9029
9435
  class: "uid-pattern-header__logo"
9030
- }, Lf = ["aria-label"], Rf = {
9436
+ }, sp = ["aria-label"], cp = {
9031
9437
  key: 2,
9032
9438
  class: "uid-pattern-header__actions"
9033
- }, zf = {
9439
+ }, lp = {
9034
9440
  key: 3,
9035
9441
  class: "uid-pattern-header__mobile"
9036
- }, Bf = /* @__PURE__ */ f({
9442
+ }, up = /* @__PURE__ */ f({
9037
9443
  __name: "UidHeader",
9038
9444
  props: {
9039
9445
  sticky: {
@@ -9055,39 +9461,39 @@ var Lc = {
9055
9461
  "uid-pattern-header--sticky": e.sticky,
9056
9462
  "uid-pattern-header--bordered": e.bordered,
9057
9463
  "uid-pattern-header--transparent": e.transparent
9058
- }]) }, [l("div", Ff, [
9059
- n.$slots.logo ? (T(), c("div", If, [A(n.$slots, "logo")])) : s("", !0),
9464
+ }]) }, [l("div", ap, [
9465
+ n.$slots.logo ? (T(), c("div", op, [A(n.$slots, "logo")])) : s("", !0),
9060
9466
  n.$slots.nav ? (T(), c("nav", {
9061
9467
  key: 1,
9062
9468
  class: "uid-pattern-header__nav",
9063
9469
  "aria-label": L(t).header.nav
9064
- }, [A(n.$slots, "nav")], 8, Lf)) : s("", !0),
9065
- n.$slots.actions ? (T(), c("div", Rf, [A(n.$slots, "actions")])) : s("", !0),
9066
- n.$slots.mobile ? (T(), c("div", zf, [A(n.$slots, "mobile")])) : s("", !0)
9470
+ }, [A(n.$slots, "nav")], 8, sp)) : s("", !0),
9471
+ n.$slots.actions ? (T(), c("div", cp, [A(n.$slots, "actions")])) : s("", !0),
9472
+ n.$slots.mobile ? (T(), c("div", lp, [A(n.$slots, "mobile")])) : s("", !0)
9067
9473
  ])], 2));
9068
9474
  }
9069
- }), Vf = { class: "uid-pattern-footer__inner" }, Hf = {
9475
+ }), dp = { class: "uid-pattern-footer__inner" }, fp = {
9070
9476
  key: 0,
9071
9477
  class: "uid-pattern-footer__columns"
9072
- }, Uf = {
9478
+ }, pp = {
9073
9479
  key: 1,
9074
9480
  class: "uid-pattern-footer__content"
9075
- }, Wf = {
9481
+ }, mp = {
9076
9482
  key: 2,
9077
9483
  class: "uid-pattern-footer__bottom"
9078
- }, Gf = /* @__PURE__ */ f({
9484
+ }, hp = /* @__PURE__ */ f({
9079
9485
  __name: "UidFooter",
9080
9486
  props: { variant: { default: "minimal" } },
9081
9487
  setup(e) {
9082
- return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Vf, [t.$slots.columns ? (T(), c("div", Hf, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", Uf, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", Wf, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
9488
+ return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", dp, [t.$slots.columns ? (T(), c("div", fp, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", pp, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", mp, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
9083
9489
  }
9084
- }), Kf = ["aria-label"], qf = {
9490
+ }), gp = ["aria-label"], _p = {
9085
9491
  key: 0,
9086
9492
  class: "uid-pattern-sidebar__header"
9087
- }, Jf = ["aria-label"], Yf = {
9493
+ }, vp = ["aria-label"], yp = {
9088
9494
  key: 1,
9089
9495
  class: "uid-pattern-sidebar__footer"
9090
- }, Xf = /* @__PURE__ */ f({
9496
+ }, bp = /* @__PURE__ */ f({
9091
9497
  __name: "UidSidebar",
9092
9498
  props: {
9093
9499
  collapsed: {
@@ -9104,22 +9510,22 @@ var Lc = {
9104
9510
  style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
9105
9511
  "aria-label": L(t).sidebar.label
9106
9512
  }, [
9107
- n.$slots.header ? (T(), c("div", qf, [A(n.$slots, "header")])) : s("", !0),
9513
+ n.$slots.header ? (T(), c("div", _p, [A(n.$slots, "header")])) : s("", !0),
9108
9514
  l("nav", {
9109
9515
  class: "uid-pattern-sidebar__nav",
9110
9516
  "aria-label": L(t).sidebar.nav
9111
- }, [A(n.$slots, "nav")], 8, Jf),
9112
- n.$slots.footer ? (T(), c("div", Yf, [A(n.$slots, "footer")])) : s("", !0)
9113
- ], 14, Kf));
9517
+ }, [A(n.$slots, "nav")], 8, vp),
9518
+ n.$slots.footer ? (T(), c("div", yp, [A(n.$slots, "footer")])) : s("", !0)
9519
+ ], 14, gp));
9114
9520
  }
9115
- }), Zf = {
9521
+ }), xp = {
9116
9522
  key: 0,
9117
9523
  class: "uid-sidebar-item__icon",
9118
9524
  "aria-hidden": "true"
9119
- }, Qf = { class: "uid-sidebar-item__label" }, $f = {
9525
+ }, Sp = { class: "uid-sidebar-item__label" }, Cp = {
9120
9526
  key: 1,
9121
9527
  class: "uid-sidebar-item__badge"
9122
- }, ep = /* @__PURE__ */ f({
9528
+ }, wp = /* @__PURE__ */ f({
9123
9529
  __name: "UidSidebarItem",
9124
9530
  props: {
9125
9531
  href: { default: void 0 },
@@ -9146,9 +9552,9 @@ var Lc = {
9146
9552
  tabindex: e.disabled ? -1 : void 0
9147
9553
  }), {
9148
9554
  default: q(() => [
9149
- t.$slots.icon ? (T(), c("span", Zf, [A(t.$slots, "icon")])) : s("", !0),
9150
- l("span", Qf, [A(t.$slots, "default")]),
9151
- e.badge === void 0 ? s("", !0) : (T(), c("span", $f, P(e.badge), 1))
9555
+ t.$slots.icon ? (T(), c("span", xp, [A(t.$slots, "icon")])) : s("", !0),
9556
+ l("span", Sp, [A(t.$slots, "default")]),
9557
+ e.badge === void 0 ? s("", !0) : (T(), c("span", Cp, P(e.badge), 1))
9152
9558
  ]),
9153
9559
  _: 3
9154
9560
  }, 16, [
@@ -9158,10 +9564,10 @@ var Lc = {
9158
9564
  "tabindex"
9159
9565
  ]));
9160
9566
  }
9161
- }), tp = { class: "uid-sidebar-group" }, np = {
9567
+ }), Tp = { class: "uid-sidebar-group" }, Ep = {
9162
9568
  key: 0,
9163
9569
  class: "uid-sidebar-group__title"
9164
- }, rp = /* @__PURE__ */ f({
9570
+ }, Dp = /* @__PURE__ */ f({
9165
9571
  __name: "UidSidebarGroup",
9166
9572
  props: {
9167
9573
  title: { default: void 0 },
@@ -9171,29 +9577,29 @@ var Lc = {
9171
9577
  }
9172
9578
  },
9173
9579
  setup(e) {
9174
- return (t, n) => (T(), c("div", tp, [e.title ? (T(), c("p", np, P(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
9580
+ return (t, n) => (T(), c("div", Tp, [e.title ? (T(), c("p", Ep, P(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
9175
9581
  }
9176
- }), ip = {}, ap = {
9582
+ }), Op = {}, kp = {
9177
9583
  class: "uid-sidebar-divider",
9178
9584
  role: "separator",
9179
9585
  "aria-hidden": "true"
9180
9586
  };
9181
- function op(e, t) {
9182
- return T(), c("div", ap);
9587
+ function Ap(e, t) {
9588
+ return T(), c("div", kp);
9183
9589
  }
9184
- var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-page-header" }, lp = {
9590
+ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-page-header" }, Np = {
9185
9591
  key: 0,
9186
9592
  class: "uid-pattern-page-header__breadcrumb"
9187
- }, up = { class: "uid-pattern-page-header__row" }, dp = { class: "uid-pattern-page-header__heading" }, fp = ["aria-label"], pp = { class: "uid-pattern-page-header__title" }, mp = {
9593
+ }, Pp = { class: "uid-pattern-page-header__row" }, Fp = { class: "uid-pattern-page-header__heading" }, Ip = ["aria-label"], Lp = { class: "uid-pattern-page-header__title" }, Rp = {
9188
9594
  key: 0,
9189
9595
  class: "uid-pattern-page-header__description"
9190
- }, hp = {
9596
+ }, zp = {
9191
9597
  key: 0,
9192
9598
  class: "uid-pattern-page-header__actions"
9193
- }, gp = {
9599
+ }, Bp = {
9194
9600
  key: 1,
9195
9601
  class: "uid-pattern-page-header__tabs"
9196
- }, _p = /* @__PURE__ */ f({
9602
+ }, Vp = /* @__PURE__ */ f({
9197
9603
  __name: "UidPageHeader",
9198
9604
  props: {
9199
9605
  title: { default: void 0 },
@@ -9206,28 +9612,28 @@ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-pa
9206
9612
  emits: ["back"],
9207
9613
  setup(t, { emit: n }) {
9208
9614
  let r = $(), i = n;
9209
- return (n, a) => (T(), c("div", cp, [
9210
- n.$slots.breadcrumb ? (T(), c("div", lp, [A(n.$slots, "breadcrumb")])) : s("", !0),
9211
- l("div", up, [l("div", dp, [t.back ? (T(), c("button", {
9615
+ return (n, a) => (T(), c("div", Mp, [
9616
+ n.$slots.breadcrumb ? (T(), c("div", Np, [A(n.$slots, "breadcrumb")])) : s("", !0),
9617
+ l("div", Pp, [l("div", Fp, [t.back ? (T(), c("button", {
9212
9618
  key: 0,
9213
9619
  type: "button",
9214
9620
  class: "uid-pattern-page-header__back",
9215
9621
  "aria-label": L(r).pageHeader.back,
9216
9622
  onClick: a[0] ||= (e) => i("back")
9217
9623
  }, [d(e, {
9218
- icon: L(Z),
9624
+ icon: L(ne),
9219
9625
  size: 20
9220
- }, null, 8, ["icon"])], 8, fp)) : s("", !0), l("div", null, [l("h1", pp, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", mp, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", hp, [A(n.$slots, "actions")])) : s("", !0)]),
9221
- n.$slots.tabs ? (T(), c("div", gp, [A(n.$slots, "tabs")])) : s("", !0)
9626
+ }, null, 8, ["icon"])], 8, Ip)) : s("", !0), l("div", null, [l("h1", Lp, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", Rp, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", zp, [A(n.$slots, "actions")])) : s("", !0)]),
9627
+ n.$slots.tabs ? (T(), c("div", Bp, [A(n.$slots, "tabs")])) : s("", !0)
9222
9628
  ]));
9223
9629
  }
9224
- }), vp = { class: "uid-pattern-empty-state" }, yp = { class: "uid-pattern-empty-state__illustration" }, bp = { class: "uid-pattern-empty-state__content" }, xp = { class: "uid-pattern-empty-state__title" }, Sp = {
9630
+ }), Hp = { class: "uid-pattern-empty-state" }, Up = { class: "uid-pattern-empty-state__illustration" }, Wp = { class: "uid-pattern-empty-state__content" }, Gp = { class: "uid-pattern-empty-state__title" }, Kp = {
9225
9631
  key: 0,
9226
9632
  class: "uid-pattern-empty-state__description"
9227
- }, Cp = {
9633
+ }, qp = {
9228
9634
  key: 0,
9229
9635
  class: "uid-pattern-empty-state__actions"
9230
- }, wp = /* @__PURE__ */ f({
9636
+ }, Jp = /* @__PURE__ */ f({
9231
9637
  __name: "UidEmptyState",
9232
9638
  props: {
9233
9639
  title: { default: void 0 },
@@ -9235,25 +9641,25 @@ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-pa
9235
9641
  },
9236
9642
  setup(t) {
9237
9643
  let n = $();
9238
- return (r, i) => (T(), c("div", vp, [
9239
- l("div", yp, [A(r.$slots, "illustration", {}, () => [d(e, {
9644
+ return (r, i) => (T(), c("div", Hp, [
9645
+ l("div", Up, [A(r.$slots, "illustration", {}, () => [d(e, {
9240
9646
  icon: L(ge),
9241
9647
  size: 48
9242
9648
  }, null, 8, ["icon"])])]),
9243
- l("div", bp, [l("h2", xp, [A(r.$slots, "title", {}, () => [u(P(t.title ?? L(n).emptyState.title), 1)])]), t.description || r.$slots.description ? (T(), c("p", Sp, [A(r.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)]),
9244
- r.$slots.actions ? (T(), c("div", Cp, [A(r.$slots, "actions")])) : s("", !0)
9649
+ l("div", Wp, [l("h2", Gp, [A(r.$slots, "title", {}, () => [u(P(t.title ?? L(n).emptyState.title), 1)])]), t.description || r.$slots.description ? (T(), c("p", Kp, [A(r.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)]),
9650
+ r.$slots.actions ? (T(), c("div", qp, [A(r.$slots, "actions")])) : s("", !0)
9245
9651
  ]));
9246
9652
  }
9247
- }), Tp = { class: "uid-pattern-error-state" }, Ep = { class: "uid-pattern-error-state__illustration" }, Dp = {
9653
+ }), Yp = { class: "uid-pattern-error-state" }, Xp = { class: "uid-pattern-error-state__illustration" }, Zp = {
9248
9654
  key: 0,
9249
9655
  class: "uid-pattern-error-state__code"
9250
- }, Op = { class: "uid-pattern-error-state__content" }, kp = { class: "uid-pattern-error-state__title" }, Ap = {
9656
+ }, Qp = { class: "uid-pattern-error-state__content" }, $p = { class: "uid-pattern-error-state__title" }, em = {
9251
9657
  key: 0,
9252
9658
  class: "uid-pattern-error-state__description"
9253
- }, jp = {
9659
+ }, tm = {
9254
9660
  key: 1,
9255
9661
  class: "uid-pattern-error-state__actions"
9256
- }, Mp = /* @__PURE__ */ f({
9662
+ }, nm = /* @__PURE__ */ f({
9257
9663
  __name: "UidErrorState",
9258
9664
  props: {
9259
9665
  code: { default: void 0 },
@@ -9263,7 +9669,7 @@ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-pa
9263
9669
  setup(t) {
9264
9670
  let n = t, r = $(), i = a(() => ({
9265
9671
  404: {
9266
- icon: ee,
9672
+ icon: Z,
9267
9673
  title: r.value.errorState.notFoundTitle,
9268
9674
  description: r.value.errorState.notFoundDescription
9269
9675
  },
@@ -9277,24 +9683,24 @@ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-pa
9277
9683
  title: r.value.errorState.offlineTitle,
9278
9684
  description: r.value.errorState.offlineDescription
9279
9685
  }
9280
- })), o = a(() => n.code ? i.value[n.code] ?? null : null), f = a(() => o.value?.icon ?? ee), p = a(() => n.title ?? o.value?.title ?? r.value.errorState.title), m = a(() => n.description ?? o.value?.description);
9281
- return (n, r) => (T(), c("div", Tp, [
9282
- l("div", Ep, [A(n.$slots, "illustration", {}, () => [d(e, {
9686
+ })), o = a(() => n.code ? i.value[n.code] ?? null : null), f = a(() => o.value?.icon ?? Z), p = a(() => n.title ?? o.value?.title ?? r.value.errorState.title), m = a(() => n.description ?? o.value?.description);
9687
+ return (n, r) => (T(), c("div", Yp, [
9688
+ l("div", Xp, [A(n.$slots, "illustration", {}, () => [d(e, {
9283
9689
  icon: f.value,
9284
9690
  size: 48
9285
9691
  }, null, 8, ["icon"])])]),
9286
- t.code ? (T(), c("div", Dp, P(t.code), 1)) : s("", !0),
9287
- l("div", Op, [l("h2", kp, [A(n.$slots, "title", {}, () => [u(P(p.value), 1)])]), m.value || n.$slots.description ? (T(), c("p", Ap, [A(n.$slots, "description", {}, () => [u(P(m.value), 1)])])) : s("", !0)]),
9288
- n.$slots.actions ? (T(), c("div", jp, [A(n.$slots, "actions")])) : s("", !0)
9692
+ t.code ? (T(), c("div", Zp, P(t.code), 1)) : s("", !0),
9693
+ l("div", Qp, [l("h2", $p, [A(n.$slots, "title", {}, () => [u(P(p.value), 1)])]), m.value || n.$slots.description ? (T(), c("p", em, [A(n.$slots, "description", {}, () => [u(P(m.value), 1)])])) : s("", !0)]),
9694
+ n.$slots.actions ? (T(), c("div", tm, [A(n.$slots, "actions")])) : s("", !0)
9289
9695
  ]));
9290
9696
  }
9291
- }), Np = {
9697
+ }), rm = {
9292
9698
  key: 0,
9293
9699
  class: "uid-layout-simple__header"
9294
- }, Pp = { class: "uid-layout-simple__content" }, Fp = {
9700
+ }, im = { class: "uid-layout-simple__content" }, am = {
9295
9701
  key: 1,
9296
9702
  class: "uid-layout-simple__footer"
9297
- }, Ip = /* @__PURE__ */ f({
9703
+ }, om = /* @__PURE__ */ f({
9298
9704
  __name: "UidSimpleLayout",
9299
9705
  props: { full: {
9300
9706
  type: Boolean,
@@ -9302,26 +9708,26 @@ var sp = /* @__PURE__ */ yr(ip, [["render", op]]), cp = { class: "uid-pattern-pa
9302
9708
  } },
9303
9709
  setup(e) {
9304
9710
  return (t, n) => (T(), c("div", { class: y(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
9305
- t.$slots.header ? (T(), c("div", Np, [A(t.$slots, "header")])) : s("", !0),
9306
- l("main", Pp, [A(t.$slots, "default")]),
9307
- t.$slots.footer ? (T(), c("div", Fp, [A(t.$slots, "footer")])) : s("", !0)
9711
+ t.$slots.header ? (T(), c("div", rm, [A(t.$slots, "header")])) : s("", !0),
9712
+ l("main", im, [A(t.$slots, "default")]),
9713
+ t.$slots.footer ? (T(), c("div", am, [A(t.$slots, "footer")])) : s("", !0)
9308
9714
  ], 2));
9309
9715
  }
9310
- }), Lp = Symbol("uid-sidebar-layout");
9311
- function Rp() {
9312
- let e = h(Lp);
9716
+ }), sm = Symbol("uid-sidebar-layout");
9717
+ function cm() {
9718
+ let e = h(sm);
9313
9719
  if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
9314
9720
  return e;
9315
9721
  }
9316
9722
  //#endregion
9317
9723
  //#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
9318
- var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sidebar__main" }, Vp = {
9724
+ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sidebar__main" }, dm = {
9319
9725
  key: 0,
9320
9726
  class: "uid-layout-sidebar__main-header"
9321
- }, Hp = { class: "uid-layout-sidebar__main-content" }, Up = {
9727
+ }, fm = { class: "uid-layout-sidebar__main-content" }, pm = {
9322
9728
  key: 1,
9323
9729
  class: "uid-layout-sidebar__main-footer"
9324
- }, Wp = /* @__PURE__ */ f({
9730
+ }, mm = /* @__PURE__ */ f({
9325
9731
  __name: "UidSidebarLayout",
9326
9732
  props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
9327
9733
  modelValue: {
@@ -9339,7 +9745,7 @@ var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sid
9339
9745
  }, o = () => {
9340
9746
  n.value = !0;
9341
9747
  };
9342
- E(Lp, {
9748
+ E(sm, {
9343
9749
  collapsed: n,
9344
9750
  toggle: r,
9345
9751
  open: i,
@@ -9350,58 +9756,58 @@ var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sid
9350
9756
  class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
9351
9757
  style: b(u.value)
9352
9758
  }, [
9353
- l("aside", zp, [A(e.$slots, "sidebar")]),
9759
+ l("aside", lm, [A(e.$slots, "sidebar")]),
9354
9760
  l("div", {
9355
9761
  class: "uid-layout-sidebar__backdrop",
9356
9762
  "aria-hidden": "true",
9357
9763
  onClick: o
9358
9764
  }),
9359
- l("div", Bp, [
9360
- e.$slots.header ? (T(), c("div", Vp, [A(e.$slots, "header")])) : s("", !0),
9361
- l("main", Hp, [A(e.$slots, "default")]),
9362
- e.$slots.footer ? (T(), c("div", Up, [A(e.$slots, "footer")])) : s("", !0)
9765
+ l("div", um, [
9766
+ e.$slots.header ? (T(), c("div", dm, [A(e.$slots, "header")])) : s("", !0),
9767
+ l("main", fm, [A(e.$slots, "default")]),
9768
+ e.$slots.footer ? (T(), c("div", pm, [A(e.$slots, "footer")])) : s("", !0)
9363
9769
  ])
9364
9770
  ], 6));
9365
9771
  }
9366
- }), Gp = {
9772
+ }), hm = {
9367
9773
  key: 0,
9368
9774
  class: "uid-layout-auth__brand"
9369
- }, Kp = { class: "uid-layout-auth__main" }, qp = { class: "uid-layout-auth__card" }, Jp = {
9775
+ }, gm = { class: "uid-layout-auth__main" }, _m = { class: "uid-layout-auth__card" }, vm = {
9370
9776
  key: 0,
9371
9777
  class: "uid-layout-auth__footer"
9372
- }, Yp = /* @__PURE__ */ f({
9778
+ }, ym = /* @__PURE__ */ f({
9373
9779
  __name: "UidAuthLayout",
9374
9780
  props: { variant: { default: "centered" } },
9375
9781
  setup(e) {
9376
- return (t, n) => (T(), c("div", { class: y(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (T(), c("div", Gp, [A(t.$slots, "brand")])) : s("", !0), l("div", Kp, [l("div", qp, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", Jp, [A(t.$slots, "footer")])) : s("", !0)])], 2));
9782
+ return (t, n) => (T(), c("div", { class: y(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (T(), c("div", hm, [A(t.$slots, "brand")])) : s("", !0), l("div", gm, [l("div", _m, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", vm, [A(t.$slots, "footer")])) : s("", !0)])], 2));
9377
9783
  }
9378
- }), Xp = { class: "uid-layout-wizard" }, Zp = {
9784
+ }), bm = { class: "uid-layout-wizard" }, xm = {
9379
9785
  key: 0,
9380
9786
  class: "uid-layout-wizard__header"
9381
- }, Qp = {
9787
+ }, Sm = {
9382
9788
  key: 1,
9383
9789
  class: "uid-layout-wizard__stepper"
9384
- }, $p = { class: "uid-layout-wizard__content" }, em = {
9790
+ }, Cm = { class: "uid-layout-wizard__content" }, wm = {
9385
9791
  key: 2,
9386
9792
  class: "uid-layout-wizard__nav"
9387
- }, tm = /* @__PURE__ */ f({
9793
+ }, Tm = /* @__PURE__ */ f({
9388
9794
  __name: "UidWizardLayout",
9389
9795
  setup(e) {
9390
- return (e, t) => (T(), c("div", Xp, [
9391
- e.$slots.header ? (T(), c("div", Zp, [A(e.$slots, "header")])) : s("", !0),
9392
- e.$slots.stepper ? (T(), c("div", Qp, [A(e.$slots, "stepper")])) : s("", !0),
9393
- l("main", $p, [A(e.$slots, "default")]),
9394
- e.$slots.nav ? (T(), c("div", em, [A(e.$slots, "nav")])) : s("", !0)
9796
+ return (e, t) => (T(), c("div", bm, [
9797
+ e.$slots.header ? (T(), c("div", xm, [A(e.$slots, "header")])) : s("", !0),
9798
+ e.$slots.stepper ? (T(), c("div", Sm, [A(e.$slots, "stepper")])) : s("", !0),
9799
+ l("main", Cm, [A(e.$slots, "default")]),
9800
+ e.$slots.nav ? (T(), c("div", wm, [A(e.$slots, "nav")])) : s("", !0)
9395
9801
  ]));
9396
9802
  }
9397
- }), nm = /* @__PURE__ */ f({
9803
+ }), Em = /* @__PURE__ */ f({
9398
9804
  __name: "UidLocaleProvider",
9399
9805
  props: { locale: {} },
9400
9806
  setup(e) {
9401
9807
  let t = e;
9402
9808
  return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
9403
9809
  }
9404
- }), rm = {
9810
+ }), Dm = {
9405
9811
  code: "en-US",
9406
9812
  common: {
9407
9813
  clear: "Clear",
@@ -9580,7 +9986,9 @@ var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sid
9580
9986
  heatmap: {
9581
9987
  summary: (e) => `Activity heatmap: ${e} events`,
9582
9988
  less: "Less",
9583
- more: "More"
9989
+ more: "More",
9990
+ matrixSummary: (e, t) => `Heatmap: ${e} rows × ${t} columns`,
9991
+ noData: "No data"
9584
9992
  },
9585
9993
  validation: {
9586
9994
  value: "value",
@@ -9598,19 +10006,19 @@ var zp = { class: "uid-layout-sidebar__sidebar" }, Bp = { class: "uid-layout-sid
9598
10006
  sameAs: "The values do not match",
9599
10007
  unknown: (e) => `Validation failed: ${e}`
9600
10008
  }
9601
- }, im = O("light");
9602
- function am() {
10009
+ }, Om = O("light");
10010
+ function km() {
9603
10011
  let e = null;
9604
10012
  function t(e) {
9605
- im.value = e, document.documentElement.dataset.theme = e;
10013
+ Om.value = e, document.documentElement.dataset.theme = e;
9606
10014
  }
9607
10015
  function n() {
9608
- t(im.value === "light" ? "dark" : "light");
10016
+ t(Om.value === "light" ? "dark" : "light");
9609
10017
  }
9610
10018
  function r() {
9611
10019
  let e = document.documentElement.dataset.theme;
9612
10020
  if (e === "light" || e === "dark") {
9613
- im.value = e;
10021
+ Om.value = e;
9614
10022
  return;
9615
10023
  }
9616
10024
  let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -9622,7 +10030,7 @@ function am() {
9622
10030
  e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
9623
10031
  }
9624
10032
  return {
9625
- theme: im,
10033
+ theme: Om,
9626
10034
  setTheme: t,
9627
10035
  toggle: n,
9628
10036
  initFromSystem: r,
@@ -9631,27 +10039,27 @@ function am() {
9631
10039
  }
9632
10040
  //#endregion
9633
10041
  //#region src/composables/useWizard.ts
9634
- function om() {
9635
- let e = h(Af);
10042
+ function Am() {
10043
+ let e = h(ep);
9636
10044
  if (!e) throw Error("useWizard() must be used inside UidWizard");
9637
10045
  return e;
9638
10046
  }
9639
10047
  //#endregion
9640
10048
  //#region src/composables/useCommandPalette.ts
9641
- var sm = O(!1);
9642
- function cm() {
10049
+ var jm = O(!1);
10050
+ function Mm() {
9643
10051
  return {
9644
- open: sm,
10052
+ open: jm,
9645
10053
  show: () => {
9646
- sm.value = !0;
10054
+ jm.value = !0;
9647
10055
  },
9648
10056
  hide: () => {
9649
- sm.value = !1;
10057
+ jm.value = !1;
9650
10058
  },
9651
10059
  toggle: () => {
9652
- sm.value = !sm.value;
10060
+ jm.value = !jm.value;
9653
10061
  }
9654
10062
  };
9655
10063
  }
9656
10064
  //#endregion
9657
- export { Li as UidAccordion, Ui as UidAccordionItem, Fl as UidAffix, gn as UidAlert, Wl as UidAnchor, Yp as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, Nl as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, Md as UidCalendar, wi as UidCard, Du as UidCarousel, vd as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, Gc as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, kf as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, Tl as UidDescriptionItem, xl as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, wp as UidEmptyState, Mp as UidErrorState, gc as UidFileUpload, Gf as UidFooter, tn as UidFormField, uf as UidGauge, Of as UidGrid, Bf as UidHeader, vf as UidHeatmap, e as UidIcon, el as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, nm as UidLocaleProvider, au as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, xu as UidNotificationBadge, wo as UidNumberInput, _p as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, Jd as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, ol as UidRating, jl as UidResult, pa as UidSelect, Xf as UidSidebar, sp as UidSidebarDivider, rp as UidSidebarGroup, ep as UidSidebarItem, Wp as UidSidebarLayout, Ip as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Hd as UidSparkline, sn as UidSpinner, ll as UidSplitter, Df as UidStack, vl as UidStat, Ef as UidStepper, jr as UidSubMenu, qt as UidSwitch, Lr as UidTab, zr as UidTabPanel, $i as UidTable, Fr as UidTabs, Mi as UidTag, vs as UidTagsInput, xt as UidTextarea, Io as UidTimePicker, Us as UidTimeline, Zs as UidTimelineItem, Sn as UidToast, En as UidToastProvider, ir as UidTooltip, Ql as UidTour, $u as UidTransfer, Bs as UidTreeItem, vu as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, Rl as UidWatermark, Mf as UidWizard, tm as UidWizardLayout, Pf as UidWizardStep, Ge as email, rm as en, ze as getMessage, et as inList, Je as integer, Fc as isHighlightable, Xe as max, Qe as maxValue, Ye as min, Ze as minValue, Ka as normalizeColor, We as nullable, qe as numeric, Ua as parseColor, at as parseRules, an as provideLocale, $e as regex, Ue as required, nt as requiredIf, rt as requiredUnless, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, Ic as tokenize, Ke as url, cm as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, tr as usePopover, In as useScrollLock, Rp as useSidebar, am as useTheme, Tn as useToast, om as useWizard };
10065
+ export { Li as UidAccordion, Ui as UidAccordionItem, Fl as UidAffix, gn as UidAlert, Wl as UidAnchor, ym as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, Nl as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, Md as UidCalendar, wi as UidCard, Du as UidCarousel, vd as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, Gc as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, $f as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, Tl as UidDescriptionItem, xl as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, Jp as UidEmptyState, nm as UidErrorState, gc as UidFileUpload, hp as UidFooter, tn as UidFormField, uf as UidGauge, Qf as UidGrid, up as UidHeader, vf as UidHeatmap, Hf as UidHeatmapMatrix, e as UidIcon, el as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, Em as UidLocaleProvider, au as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, xu as UidNotificationBadge, wo as UidNumberInput, Vp as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, Jd as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, ol as UidRating, jl as UidResult, pa as UidSelect, bp as UidSidebar, jp as UidSidebarDivider, Dp as UidSidebarGroup, wp as UidSidebarItem, mm as UidSidebarLayout, om as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Hd as UidSparkline, sn as UidSpinner, ll as UidSplitter, Zf as UidStack, vl as UidStat, Xf as UidStepper, jr as UidSubMenu, qt as UidSwitch, Lr as UidTab, zr as UidTabPanel, $i as UidTable, Fr as UidTabs, Mi as UidTag, vs as UidTagsInput, xt as UidTextarea, Io as UidTimePicker, Us as UidTimeline, Zs as UidTimelineItem, Sn as UidToast, En as UidToastProvider, ir as UidTooltip, Ql as UidTour, $u as UidTransfer, Bs as UidTreeItem, vu as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, Rl as UidWatermark, np as UidWizard, Tm as UidWizardLayout, ip as UidWizardStep, Ge as email, Dm as en, ze as getMessage, Cf as heatmapColorAt, yf as heatmapColorScales, et as inList, Je as integer, Fc as isHighlightable, Xe as max, Qe as maxValue, Ye as min, Ze as minValue, Ka as normalizeColor, We as nullable, qe as numeric, Ua as parseColor, at as parseRules, an as provideLocale, $e as regex, Ue as required, nt as requiredIf, rt as requiredUnless, xf as resolveHeatmapStops, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, Ic as tokenize, Ke as url, Mm as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, tr as usePopover, In as useScrollLock, cm as useSidebar, km as useTheme, Tn as useToast, Am as useWizard };