@dskripchenko/ui 1.5.0 → 1.5.1
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/composables/useRouterLink.d.ts +18 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +729 -733
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1902,14 +1902,26 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1902
1902
|
style: b({ "--uid-breadcrumb-sep": `'${e.separator}'` })
|
|
1903
1903
|
}, [A(t.$slots, "default")], 4)], 8, Nr));
|
|
1904
1904
|
}
|
|
1905
|
-
})
|
|
1905
|
+
});
|
|
1906
|
+
//#endregion
|
|
1907
|
+
//#region src/composables/useRouterLink.ts
|
|
1908
|
+
function Fr(e) {
|
|
1909
|
+
let t = p();
|
|
1910
|
+
return {
|
|
1911
|
+
routerLink: a(() => e.to === void 0 ? null : t?.appContext.components.RouterLink ?? null),
|
|
1912
|
+
fallbackHref: a(() => e.href ?? (typeof e.to == "string" ? e.to : void 0))
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1915
|
+
//#endregion
|
|
1916
|
+
//#region src/components/Breadcrumb/UidBreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
1917
|
+
var Ir = {
|
|
1906
1918
|
key: 0,
|
|
1907
1919
|
class: "uid-breadcrumb__current",
|
|
1908
1920
|
"aria-current": "page"
|
|
1909
|
-
},
|
|
1921
|
+
}, Lr = ["href"], Rr = {
|
|
1910
1922
|
key: 4,
|
|
1911
1923
|
class: "uid-breadcrumb__text"
|
|
1912
|
-
},
|
|
1924
|
+
}, zr = /* @__PURE__ */ f({
|
|
1913
1925
|
__name: "UidBreadcrumbItem",
|
|
1914
1926
|
props: {
|
|
1915
1927
|
href: { default: void 0 },
|
|
@@ -1927,7 +1939,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1927
1939
|
u.value = !!e && e.nextElementSibling === null;
|
|
1928
1940
|
}
|
|
1929
1941
|
S(d), w(d), s && U(s.tick, d, { flush: "post" });
|
|
1930
|
-
let f = a(() => n.current ?? u.value),
|
|
1942
|
+
let f = a(() => n.current ?? u.value), { routerLink: m, fallbackHref: g } = Fr(n);
|
|
1931
1943
|
function _() {
|
|
1932
1944
|
return !!i?.vnode.props?.onClick;
|
|
1933
1945
|
}
|
|
@@ -1938,7 +1950,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1938
1950
|
ref_key: "itemRef",
|
|
1939
1951
|
ref: l,
|
|
1940
1952
|
class: "uid-breadcrumb__item"
|
|
1941
|
-
}, [f.value ? (T(), c("span",
|
|
1953
|
+
}, [f.value ? (T(), c("span", Ir, [A(t.$slots, "default")])) : F(m) ? (T(), o(M(F(m)), {
|
|
1942
1954
|
key: 1,
|
|
1943
1955
|
class: "uid-breadcrumb__link",
|
|
1944
1956
|
to: e.to,
|
|
@@ -1946,19 +1958,19 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1946
1958
|
}, {
|
|
1947
1959
|
default: G(() => [A(t.$slots, "default")]),
|
|
1948
1960
|
_: 3
|
|
1949
|
-
}, 8, ["to"])) : g
|
|
1961
|
+
}, 8, ["to"])) : F(g) ? (T(), c("a", {
|
|
1950
1962
|
key: 2,
|
|
1951
1963
|
class: "uid-breadcrumb__link",
|
|
1952
|
-
href: g
|
|
1964
|
+
href: F(g),
|
|
1953
1965
|
onClick: v
|
|
1954
|
-
}, [A(t.$slots, "default")], 8,
|
|
1966
|
+
}, [A(t.$slots, "default")], 8, Lr)) : _() ? (T(), c("button", {
|
|
1955
1967
|
key: 3,
|
|
1956
1968
|
type: "button",
|
|
1957
1969
|
class: "uid-breadcrumb__link uid-breadcrumb__link--button",
|
|
1958
1970
|
onClick: v
|
|
1959
|
-
}, [A(t.$slots, "default")])) : (T(), c("span",
|
|
1971
|
+
}, [A(t.$slots, "default")])) : (T(), c("span", Rr, [A(t.$slots, "default")]))], 512));
|
|
1960
1972
|
}
|
|
1961
|
-
}),
|
|
1973
|
+
}), Br = /* @__PURE__ */ f({
|
|
1962
1974
|
__name: "UidLink",
|
|
1963
1975
|
props: {
|
|
1964
1976
|
href: { default: void 0 },
|
|
@@ -1974,20 +1986,12 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1974
1986
|
as: { default: void 0 }
|
|
1975
1987
|
},
|
|
1976
1988
|
setup(e) {
|
|
1977
|
-
let t = e, n = a(() => {
|
|
1978
|
-
|
|
1979
|
-
if (t.to !== void 0) try {
|
|
1980
|
-
return j("RouterLink");
|
|
1981
|
-
} catch {
|
|
1982
|
-
return "a";
|
|
1983
|
-
}
|
|
1984
|
-
return "a";
|
|
1985
|
-
}), r = a(() => t.to === void 0 ? {
|
|
1986
|
-
href: t.disabled ? void 0 : t.href,
|
|
1989
|
+
let t = e, { routerLink: n, fallbackHref: r } = Fr(t), i = a(() => t.as ?? n.value ?? "a"), s = a(() => t.as === void 0 && n.value ? { to: t.to } : {
|
|
1990
|
+
href: t.disabled ? void 0 : r.value,
|
|
1987
1991
|
target: t.external ? "_blank" : void 0,
|
|
1988
1992
|
rel: t.external ? "noopener noreferrer" : void 0
|
|
1989
|
-
}
|
|
1990
|
-
return (t,
|
|
1993
|
+
});
|
|
1994
|
+
return (t, n) => (T(), o(M(i.value), _({ class: ["uid-link", { "uid-link--disabled": e.disabled }] }, s.value, {
|
|
1991
1995
|
"aria-disabled": e.disabled || void 0,
|
|
1992
1996
|
tabindex: e.disabled ? -1 : void 0
|
|
1993
1997
|
}), {
|
|
@@ -1999,18 +2003,18 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
1999
2003
|
"tabindex"
|
|
2000
2004
|
]));
|
|
2001
2005
|
}
|
|
2002
|
-
}),
|
|
2006
|
+
}), Vr = {
|
|
2003
2007
|
class: "uid-pagination",
|
|
2004
2008
|
"aria-label": "Пагинация"
|
|
2005
|
-
},
|
|
2009
|
+
}, Hr = ["disabled", "aria-label"], Ur = {
|
|
2006
2010
|
key: 0,
|
|
2007
2011
|
class: "uid-pagination__ellipsis",
|
|
2008
2012
|
"aria-hidden": "true"
|
|
2009
|
-
},
|
|
2013
|
+
}, Wr = [
|
|
2010
2014
|
"aria-label",
|
|
2011
2015
|
"aria-current",
|
|
2012
2016
|
"onClick"
|
|
2013
|
-
],
|
|
2017
|
+
], Gr = ["disabled", "aria-label"], Kr = /* @__PURE__ */ f({
|
|
2014
2018
|
__name: "UidPagination",
|
|
2015
2019
|
props: /* @__PURE__ */ g({
|
|
2016
2020
|
total: {},
|
|
@@ -2039,7 +2043,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2039
2043
|
function p(e) {
|
|
2040
2044
|
e < 1 || e > s.value || e === i.value || (i.value = e);
|
|
2041
2045
|
}
|
|
2042
|
-
return (n, a) => (T(), c("nav",
|
|
2046
|
+
return (n, a) => (T(), c("nav", Vr, [
|
|
2043
2047
|
l("button", {
|
|
2044
2048
|
type: "button",
|
|
2045
2049
|
class: "uid-pagination__btn uid-pagination__btn--nav",
|
|
@@ -2049,15 +2053,15 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2049
2053
|
}, [d(e, {
|
|
2050
2054
|
icon: F(oe),
|
|
2051
2055
|
size: 16
|
|
2052
|
-
}, null, 8, ["icon"])], 8,
|
|
2053
|
-
(T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: `${n}-${e}` }, [e === "..." ? (T(), c("span",
|
|
2056
|
+
}, null, 8, ["icon"])], 8, Hr),
|
|
2057
|
+
(T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: `${n}-${e}` }, [e === "..." ? (T(), c("span", Ur, " … ")) : (T(), c("button", {
|
|
2054
2058
|
key: 1,
|
|
2055
2059
|
type: "button",
|
|
2056
2060
|
class: y(["uid-pagination__btn", { "uid-pagination__btn--active": e === i.value }]),
|
|
2057
2061
|
"aria-label": F(r).pagination.page(e),
|
|
2058
2062
|
"aria-current": e === i.value ? "page" : void 0,
|
|
2059
2063
|
onClick: (t) => p(e)
|
|
2060
|
-
}, N(e), 11,
|
|
2064
|
+
}, N(e), 11, Wr))], 64))), 128)),
|
|
2061
2065
|
l("button", {
|
|
2062
2066
|
type: "button",
|
|
2063
2067
|
class: "uid-pagination__btn uid-pagination__btn--nav",
|
|
@@ -2067,13 +2071,13 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2067
2071
|
}, [d(e, {
|
|
2068
2072
|
icon: F(se),
|
|
2069
2073
|
size: 16
|
|
2070
|
-
}, null, 8, ["icon"])], 8,
|
|
2074
|
+
}, null, 8, ["icon"])], 8, Gr)
|
|
2071
2075
|
]));
|
|
2072
2076
|
}
|
|
2073
|
-
}),
|
|
2077
|
+
}), qr = {
|
|
2074
2078
|
class: "uid-pagination uid-pagination--cursor",
|
|
2075
2079
|
"aria-label": "Навигация по страницам"
|
|
2076
|
-
},
|
|
2080
|
+
}, Jr = ["disabled", "aria-label"], Yr = ["disabled", "aria-label"], Xr = /* @__PURE__ */ f({
|
|
2077
2081
|
__name: "UidPaginationCursor",
|
|
2078
2082
|
props: {
|
|
2079
2083
|
hasPrev: {
|
|
@@ -2090,7 +2094,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2090
2094
|
emits: ["prev", "next"],
|
|
2091
2095
|
setup(t, { emit: n }) {
|
|
2092
2096
|
let r = n;
|
|
2093
|
-
return (n, i) => (T(), c("nav",
|
|
2097
|
+
return (n, i) => (T(), c("nav", qr, [l("button", {
|
|
2094
2098
|
type: "button",
|
|
2095
2099
|
class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
|
|
2096
2100
|
disabled: !t.hasPrev,
|
|
@@ -2099,7 +2103,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2099
2103
|
}, [d(e, {
|
|
2100
2104
|
icon: F(oe),
|
|
2101
2105
|
size: 16
|
|
2102
|
-
}, null, 8, ["icon"]), u(" " + N(t.prevLabel), 1)], 8,
|
|
2106
|
+
}, null, 8, ["icon"]), u(" " + N(t.prevLabel), 1)], 8, Jr), l("button", {
|
|
2103
2107
|
type: "button",
|
|
2104
2108
|
class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
|
|
2105
2109
|
disabled: !t.hasNext,
|
|
@@ -2108,9 +2112,9 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2108
2112
|
}, [u(N(t.nextLabel) + " ", 1), d(e, {
|
|
2109
2113
|
icon: F(se),
|
|
2110
2114
|
size: 16
|
|
2111
|
-
}, null, 8, ["icon"])], 8,
|
|
2115
|
+
}, null, 8, ["icon"])], 8, Yr)]));
|
|
2112
2116
|
}
|
|
2113
|
-
}),
|
|
2117
|
+
}), Zr = { class: "uid-load-more" }, Qr = ["disabled"], $r = /* @__PURE__ */ f({
|
|
2114
2118
|
__name: "UidLoadMore",
|
|
2115
2119
|
props: {
|
|
2116
2120
|
loading: {
|
|
@@ -2126,7 +2130,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2126
2130
|
emits: ["load"],
|
|
2127
2131
|
setup(e, { emit: t }) {
|
|
2128
2132
|
let n = t;
|
|
2129
|
-
return (t, r) => (T(), c("div",
|
|
2133
|
+
return (t, r) => (T(), c("div", Zr, [l("button", {
|
|
2130
2134
|
type: "button",
|
|
2131
2135
|
class: "uid-load-more__btn",
|
|
2132
2136
|
disabled: e.disabled || e.loading,
|
|
@@ -2134,12 +2138,12 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2134
2138
|
}, [e.loading ? (T(), o(Xt, {
|
|
2135
2139
|
key: 0,
|
|
2136
2140
|
size: "sm"
|
|
2137
|
-
})) : s("", !0), l("span", null, N(e.label), 1)], 8,
|
|
2141
|
+
})) : s("", !0), l("span", null, N(e.label), 1)], 8, Qr)]));
|
|
2138
2142
|
}
|
|
2139
|
-
}),
|
|
2143
|
+
}), ei = { class: "uid-infinite-scroll" }, ti = {
|
|
2140
2144
|
key: 0,
|
|
2141
2145
|
class: "uid-infinite-scroll__loader"
|
|
2142
|
-
},
|
|
2146
|
+
}, ni = /* @__PURE__ */ f({
|
|
2143
2147
|
__name: "UidInfiniteScroll",
|
|
2144
2148
|
props: {
|
|
2145
2149
|
loading: {
|
|
@@ -2167,14 +2171,14 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2167
2171
|
e && u();
|
|
2168
2172
|
}, { immediate: !0 }), U(() => n.disabled, (e) => {
|
|
2169
2173
|
e ? o() : u();
|
|
2170
|
-
}), C(o), (t, n) => (T(), c("div",
|
|
2174
|
+
}), C(o), (t, n) => (T(), c("div", ei, [e.loading ? (T(), c("div", ti, [d(Xt, { size: "sm" })])) : s("", !0), l("div", {
|
|
2171
2175
|
ref_key: "sentinelRef",
|
|
2172
2176
|
ref: i,
|
|
2173
2177
|
class: "uid-infinite-scroll__sentinel",
|
|
2174
2178
|
"aria-hidden": "true"
|
|
2175
2179
|
}, null, 512)]));
|
|
2176
2180
|
}
|
|
2177
|
-
}),
|
|
2181
|
+
}), ri = { class: "uid-page-size" }, ii = { class: "uid-page-size__label" }, ai = ["value"], oi = ["value"], si = /* @__PURE__ */ f({
|
|
2178
2182
|
__name: "UidPageSize",
|
|
2179
2183
|
props: /* @__PURE__ */ g({
|
|
2180
2184
|
options: { default: () => [
|
|
@@ -2191,25 +2195,25 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2191
2195
|
emits: ["update:modelValue"],
|
|
2192
2196
|
setup(e) {
|
|
2193
2197
|
let n = R(e, "modelValue");
|
|
2194
|
-
return (r, i) => (T(), c("div",
|
|
2198
|
+
return (r, i) => (T(), c("div", ri, [l("span", ii, N(e.label), 1), l("select", {
|
|
2195
2199
|
class: "uid-page-size__select",
|
|
2196
2200
|
value: n.value,
|
|
2197
2201
|
onChange: i[0] ||= (e) => n.value = Number(e.target.value)
|
|
2198
2202
|
}, [(T(!0), c(t, null, k(e.options, (e) => (T(), c("option", {
|
|
2199
2203
|
key: e,
|
|
2200
2204
|
value: e
|
|
2201
|
-
}, N(e), 9,
|
|
2205
|
+
}, N(e), 9, oi))), 128))], 40, ai)]));
|
|
2202
2206
|
}
|
|
2203
|
-
}),
|
|
2207
|
+
}), ci = ["role", "tabindex"], li = {
|
|
2204
2208
|
key: 0,
|
|
2205
2209
|
class: "uid-card__media"
|
|
2206
|
-
},
|
|
2210
|
+
}, ui = {
|
|
2207
2211
|
key: 1,
|
|
2208
2212
|
class: "uid-card__header"
|
|
2209
|
-
},
|
|
2213
|
+
}, di = { class: "uid-card__body" }, fi = {
|
|
2210
2214
|
key: 2,
|
|
2211
2215
|
class: "uid-card__footer"
|
|
2212
|
-
},
|
|
2216
|
+
}, pi = /* @__PURE__ */ f({
|
|
2213
2217
|
__name: "UidCard",
|
|
2214
2218
|
props: {
|
|
2215
2219
|
padding: { default: "md" },
|
|
@@ -2231,13 +2235,13 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2231
2235
|
onKeydown: i,
|
|
2232
2236
|
onClick: n[0] ||= (t) => e.clickable && r("click", t)
|
|
2233
2237
|
}, [
|
|
2234
|
-
t.$slots.media ? (T(), c("div",
|
|
2235
|
-
t.$slots.header ? (T(), c("div",
|
|
2236
|
-
l("div",
|
|
2237
|
-
t.$slots.footer ? (T(), c("div",
|
|
2238
|
-
], 42,
|
|
2238
|
+
t.$slots.media ? (T(), c("div", li, [A(t.$slots, "media")])) : s("", !0),
|
|
2239
|
+
t.$slots.header ? (T(), c("div", ui, [A(t.$slots, "header")])) : s("", !0),
|
|
2240
|
+
l("div", di, [A(t.$slots, "default")]),
|
|
2241
|
+
t.$slots.footer ? (T(), c("div", fi, [A(t.$slots, "footer")])) : s("", !0)
|
|
2242
|
+
], 42, ci));
|
|
2239
2243
|
}
|
|
2240
|
-
}),
|
|
2244
|
+
}), mi = ["title", "aria-label"], hi = ["src", "alt"], gi = /* @__PURE__ */ f({
|
|
2241
2245
|
__name: "UidAvatar",
|
|
2242
2246
|
props: {
|
|
2243
2247
|
src: { default: void 0 },
|
|
@@ -2275,26 +2279,26 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2275
2279
|
alt: e.alt ?? e.name,
|
|
2276
2280
|
class: "uid-avatar__img",
|
|
2277
2281
|
onError: l
|
|
2278
|
-
}, null, 40,
|
|
2282
|
+
}, null, 40, hi)) : (T(), c("span", {
|
|
2279
2283
|
key: 1,
|
|
2280
2284
|
class: "uid-avatar__initials",
|
|
2281
2285
|
style: b({ background: s.value }),
|
|
2282
2286
|
"aria-hidden": "true"
|
|
2283
|
-
}, N(r.value), 5))], 10,
|
|
2287
|
+
}, N(r.value), 5))], 10, mi));
|
|
2284
2288
|
}
|
|
2285
|
-
}),
|
|
2289
|
+
}), _i = { class: "uid-avatar-group" }, vi = ["aria-label"], yi = /* @__PURE__ */ f({
|
|
2286
2290
|
__name: "UidAvatarGroup",
|
|
2287
2291
|
props: { max: { default: void 0 } },
|
|
2288
2292
|
setup(e) {
|
|
2289
2293
|
let n = e, r = z(), i = a(() => r.default?.()?.flatMap((e) => e.type === Symbol.for("v-fgt") ? e.children : [e]) ?? []), l = a(() => n.max === void 0 ? i.value : i.value.slice(0, n.max)), u = a(() => n.max === void 0 ? 0 : Math.max(0, i.value.length - n.max));
|
|
2290
|
-
return (e, n) => (T(), c("div",
|
|
2294
|
+
return (e, n) => (T(), c("div", _i, [(T(!0), c(t, null, k(l.value, (e, t) => (T(), o(M(e), { key: t }))), 128)), u.value > 0 ? (T(), c("span", {
|
|
2291
2295
|
key: 0,
|
|
2292
2296
|
class: "uid-avatar uid-avatar--md uid-avatar--circle uid-avatar-group__overflow",
|
|
2293
2297
|
"aria-label": `Ещё ${u.value}`,
|
|
2294
2298
|
role: "img"
|
|
2295
|
-
}, " +" + N(u.value), 9,
|
|
2299
|
+
}, " +" + N(u.value), 9, vi)) : s("", !0)]));
|
|
2296
2300
|
}
|
|
2297
|
-
}),
|
|
2301
|
+
}), bi = ["aria-label"], xi = /* @__PURE__ */ f({
|
|
2298
2302
|
__name: "UidTag",
|
|
2299
2303
|
props: {
|
|
2300
2304
|
variant: { default: "default" },
|
|
@@ -2316,12 +2320,12 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2316
2320
|
}, [d(e, {
|
|
2317
2321
|
icon: F(we),
|
|
2318
2322
|
size: 10
|
|
2319
|
-
}, null, 8, ["icon"])], 8,
|
|
2323
|
+
}, null, 8, ["icon"])], 8, bi)) : s("", !0)], 2));
|
|
2320
2324
|
}
|
|
2321
|
-
}),
|
|
2325
|
+
}), Si = {
|
|
2322
2326
|
key: 0,
|
|
2323
2327
|
class: "uid-divider__label"
|
|
2324
|
-
},
|
|
2328
|
+
}, Ci = /* @__PURE__ */ f({
|
|
2325
2329
|
__name: "UidDivider",
|
|
2326
2330
|
props: {
|
|
2327
2331
|
label: { default: void 0 },
|
|
@@ -2331,9 +2335,9 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2331
2335
|
return (t, n) => (T(), c("div", {
|
|
2332
2336
|
class: y(["uid-divider", `uid-divider--${e.orientation}`]),
|
|
2333
2337
|
role: "separator"
|
|
2334
|
-
}, [e.label && e.orientation === "horizontal" ? (T(), c("span",
|
|
2338
|
+
}, [e.label && e.orientation === "horizontal" ? (T(), c("span", Si, N(e.label), 1)) : s("", !0)], 2));
|
|
2335
2339
|
}
|
|
2336
|
-
}),
|
|
2340
|
+
}), wi = Symbol("uid-accordion"), Ti = { class: "uid-accordion" }, Ei = /* @__PURE__ */ f({
|
|
2337
2341
|
__name: "UidAccordion",
|
|
2338
2342
|
props: /* @__PURE__ */ g({ multiple: {
|
|
2339
2343
|
type: Boolean,
|
|
@@ -2358,15 +2362,15 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2358
2362
|
r.has(e) ? r.delete(e) : r.add(e), t.value = [...r];
|
|
2359
2363
|
} else t.value = n === e ? "" : e;
|
|
2360
2364
|
}
|
|
2361
|
-
return E(
|
|
2365
|
+
return E(wi, {
|
|
2362
2366
|
isOpen: r,
|
|
2363
2367
|
toggle: i
|
|
2364
|
-
}), (e, t) => (T(), c("div",
|
|
2368
|
+
}), (e, t) => (T(), c("div", Ti, [A(e.$slots, "default")]));
|
|
2365
2369
|
}
|
|
2366
|
-
}),
|
|
2370
|
+
}), Di = ["aria-expanded", "disabled"], Oi = { class: "uid-accordion-item__title" }, ki = {
|
|
2367
2371
|
class: "uid-accordion-item__chevron",
|
|
2368
2372
|
"aria-hidden": "true"
|
|
2369
|
-
},
|
|
2373
|
+
}, Ai = ["hidden"], ji = { class: "uid-accordion-item__body-inner" }, Mi = /* @__PURE__ */ f({
|
|
2370
2374
|
__name: "UidAccordionItem",
|
|
2371
2375
|
props: {
|
|
2372
2376
|
value: {},
|
|
@@ -2377,7 +2381,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2377
2381
|
}
|
|
2378
2382
|
},
|
|
2379
2383
|
setup(t) {
|
|
2380
|
-
let n = t, r = L(), i = `${r}-header`, o = `${r}-panel`, s = h(
|
|
2384
|
+
let n = t, r = L(), i = `${r}-header`, o = `${r}-panel`, s = h(wi), f = a(() => s.isOpen(n.value));
|
|
2381
2385
|
function p() {
|
|
2382
2386
|
n.disabled || s.toggle(n.value);
|
|
2383
2387
|
}
|
|
@@ -2392,24 +2396,24 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2392
2396
|
"aria-controls": o,
|
|
2393
2397
|
disabled: t.disabled || void 0,
|
|
2394
2398
|
onClick: p
|
|
2395
|
-
}, [l("span",
|
|
2399
|
+
}, [l("span", Oi, [A(n.$slots, "title", {}, () => [u(N(t.title), 1)])]), l("span", ki, [d(e, {
|
|
2396
2400
|
icon: F(ae),
|
|
2397
2401
|
size: 16
|
|
2398
|
-
}, null, 8, ["icon"])])], 8,
|
|
2402
|
+
}, null, 8, ["icon"])])], 8, Di), l("div", {
|
|
2399
2403
|
id: o,
|
|
2400
2404
|
class: "uid-accordion-item__body",
|
|
2401
2405
|
role: "region",
|
|
2402
2406
|
"aria-labelledby": i,
|
|
2403
2407
|
hidden: !f.value
|
|
2404
|
-
}, [l("div",
|
|
2408
|
+
}, [l("div", ji, [A(n.$slots, "default")])], 8, Ai)], 2));
|
|
2405
2409
|
}
|
|
2406
|
-
}),
|
|
2410
|
+
}), Ni = { class: "uid-table__head" }, Pi = [
|
|
2407
2411
|
"tabindex",
|
|
2408
2412
|
"role",
|
|
2409
2413
|
"aria-sort",
|
|
2410
2414
|
"onClick",
|
|
2411
2415
|
"onKeydown"
|
|
2412
|
-
],
|
|
2416
|
+
], Fi = { class: "uid-table__th-content" }, Ii = { class: "uid-table__body" }, Li = { key: 0 }, Ri = ["colspan"], zi = { key: 1 }, Bi = ["colspan"], Vi = ["onClick"], Hi = /* @__PURE__ */ f({
|
|
2413
2417
|
__name: "UidTable",
|
|
2414
2418
|
props: {
|
|
2415
2419
|
columns: {},
|
|
@@ -2561,7 +2565,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2561
2565
|
}, [l("table", { class: y(["uid-table", {
|
|
2562
2566
|
"uid-table--striped": n.striped,
|
|
2563
2567
|
"uid-table--has-fixed": R.value
|
|
2564
|
-
}]) }, [l("thead",
|
|
2568
|
+
}]) }, [l("thead", Ni, [l("tr", {
|
|
2565
2569
|
ref_key: "headRowRef",
|
|
2566
2570
|
ref: F
|
|
2567
2571
|
}, [n.selectable ? (T(), c("th", {
|
|
@@ -2588,18 +2592,18 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2588
2592
|
"aria-sort": E(t),
|
|
2589
2593
|
onClick: (e) => C(t),
|
|
2590
2594
|
onKeydown: [q(J((e) => C(t), ["prevent"]), ["enter"]), q(J((e) => C(t), ["prevent"]), ["space"])]
|
|
2591
|
-
}, [l("span",
|
|
2595
|
+
}, [l("span", Fi, [u(N(t.label) + " ", 1), t.sortable ? (T(), o(e, {
|
|
2592
2596
|
key: 0,
|
|
2593
2597
|
icon: w(t),
|
|
2594
2598
|
size: 14,
|
|
2595
2599
|
class: "uid-table__sort-icon"
|
|
2596
|
-
}, null, 8, ["icon"])) : s("", !0)])], 46,
|
|
2600
|
+
}, null, 8, ["icon"])) : s("", !0)])], 46, Pi))), 128))], 512)]), l("tbody", Ii, [n.loading ? (T(), c("tr", Li, [l("td", {
|
|
2597
2601
|
colspan: m.value,
|
|
2598
2602
|
class: "uid-table__td uid-table__td--center"
|
|
2599
|
-
}, [d(Xt, { size: "md" })], 8,
|
|
2603
|
+
}, [d(Xt, { size: "md" })], 8, Ri)])) : M.value ? (T(), c("tr", zi, [l("td", {
|
|
2600
2604
|
colspan: m.value,
|
|
2601
2605
|
class: "uid-table__td uid-table__td--empty"
|
|
2602
|
-
}, [A(r.$slots, "empty", {}, () => [u(N(n.emptyText), 1)])], 8,
|
|
2606
|
+
}, [A(r.$slots, "empty", {}, () => [u(N(n.emptyText), 1)])], 8, Bi)])) : (T(!0), c(t, { key: 2 }, k(n.data, (e, a) => (T(), c("tr", {
|
|
2603
2607
|
key: a,
|
|
2604
2608
|
class: y(["uid-table__row", { "uid-table__row--selected": n.selectable && n.selection.has(p(e)) }]),
|
|
2605
2609
|
onClick: (t) => f("row-click", e)
|
|
@@ -2620,34 +2624,34 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2620
2624
|
key: t.key,
|
|
2621
2625
|
class: y(["uid-table__td", [`uid-table__td--${t.align ?? "left"}`, Z(t)]]),
|
|
2622
2626
|
style: b(ne(t))
|
|
2623
|
-
}, [A(r.$slots, t.key, { row: e }, () => [u(N(e[t.key]), 1)])], 6))), 128))], 10,
|
|
2627
|
+
}, [A(r.$slots, t.key, { row: e }, () => [u(N(e[t.key]), 1)])], 6))), 128))], 10, Vi))), 128))])], 2)], 34)], 2));
|
|
2624
2628
|
}
|
|
2625
|
-
}),
|
|
2629
|
+
}), Ui = [
|
|
2626
2630
|
"aria-expanded",
|
|
2627
2631
|
"aria-controls",
|
|
2628
2632
|
"aria-disabled"
|
|
2629
|
-
],
|
|
2633
|
+
], Wi = {
|
|
2630
2634
|
key: 0,
|
|
2631
2635
|
class: "uid-select__tags"
|
|
2632
|
-
},
|
|
2636
|
+
}, Gi = { class: "uid-select__tag-label" }, Ki = ["aria-label", "onClick"], qi = {
|
|
2633
2637
|
key: 0,
|
|
2634
2638
|
class: "uid-select__tag uid-select__tag--more"
|
|
2635
|
-
},
|
|
2639
|
+
}, Ji = { class: "uid-select__suffix" }, Yi = ["aria-label"], Xi = {
|
|
2636
2640
|
key: 0,
|
|
2637
2641
|
class: "uid-select__search"
|
|
2638
|
-
},
|
|
2642
|
+
}, Zi = ["placeholder"], Qi = ["id", "aria-multiselectable"], $i = {
|
|
2639
2643
|
key: 0,
|
|
2640
2644
|
class: "uid-select__group-label"
|
|
2641
|
-
},
|
|
2645
|
+
}, ea = [
|
|
2642
2646
|
"data-active",
|
|
2643
2647
|
"aria-selected",
|
|
2644
2648
|
"aria-disabled",
|
|
2645
2649
|
"onClick",
|
|
2646
2650
|
"onMouseenter"
|
|
2647
|
-
],
|
|
2651
|
+
], ta = {
|
|
2648
2652
|
key: 1,
|
|
2649
2653
|
class: "uid-select__empty"
|
|
2650
|
-
},
|
|
2654
|
+
}, na = /* @__PURE__ */ f({
|
|
2651
2655
|
__name: "UidSelect",
|
|
2652
2656
|
props: /* @__PURE__ */ g({
|
|
2653
2657
|
options: {},
|
|
@@ -2793,10 +2797,10 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2793
2797
|
"aria-disabled": i.disabled,
|
|
2794
2798
|
onClick: oe,
|
|
2795
2799
|
onKeydown: fe
|
|
2796
|
-
}, [i.multiple && J.value.length > 0 ? (T(), c("span",
|
|
2800
|
+
}, [i.multiple && J.value.length > 0 ? (T(), c("span", Wi, [(T(!0), c(t, null, k(Y.value, (t) => (T(), c("span", {
|
|
2797
2801
|
key: t.value,
|
|
2798
2802
|
class: "uid-select__tag"
|
|
2799
|
-
}, [l("span",
|
|
2803
|
+
}, [l("span", Gi, N(t.label), 1), i.disabled ? s("", !0) : (T(), c("button", {
|
|
2800
2804
|
key: 0,
|
|
2801
2805
|
type: "button",
|
|
2802
2806
|
class: "uid-select__tag-remove",
|
|
@@ -2806,10 +2810,10 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2806
2810
|
}, [d(e, {
|
|
2807
2811
|
icon: F(we),
|
|
2808
2812
|
size: 12
|
|
2809
|
-
}, null, 8, ["icon"])], 8,
|
|
2813
|
+
}, null, 8, ["icon"])], 8, Ki))]))), 128)), ee.value > 0 ? (T(), c("span", qi, "+" + N(ee.value), 1)) : s("", !0)])) : (T(), c("span", {
|
|
2810
2814
|
key: 1,
|
|
2811
2815
|
class: y(["uid-select__value", { "uid-select__value--placeholder": !W.value }])
|
|
2812
|
-
}, N(W.value?.label ?? m.value), 3)), l("div",
|
|
2816
|
+
}, N(W.value?.label ?? m.value), 3)), l("div", Ji, [i.clearable && X.value ? (T(), c("button", {
|
|
2813
2817
|
key: 0,
|
|
2814
2818
|
type: "button",
|
|
2815
2819
|
class: "uid-select__clear",
|
|
@@ -2818,19 +2822,19 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2818
2822
|
}, [d(e, {
|
|
2819
2823
|
icon: F(we),
|
|
2820
2824
|
size: 12
|
|
2821
|
-
}, null, 8, ["icon"])], 8,
|
|
2825
|
+
}, null, 8, ["icon"])], 8, Yi)) : s("", !0), d(e, {
|
|
2822
2826
|
icon: F(ae),
|
|
2823
2827
|
size: 16,
|
|
2824
2828
|
class: y(["uid-select__chevron", { "uid-select__chevron--open": _.value }]),
|
|
2825
2829
|
"aria-hidden": "true"
|
|
2826
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
2830
|
+
}, null, 8, ["icon", "class"])])], 40, Ui), (T(), o(n, { to: "body" }, [d(r, { name: "uid-select-dropdown" }, {
|
|
2827
2831
|
default: G(() => [_.value ? (T(), c("div", {
|
|
2828
2832
|
key: 0,
|
|
2829
2833
|
ref_key: "dropdownRef",
|
|
2830
2834
|
ref: D,
|
|
2831
2835
|
class: "uid-select__dropdown",
|
|
2832
2836
|
style: b(H.value)
|
|
2833
|
-
}, [i.searchable ? (T(), c("div",
|
|
2837
|
+
}, [i.searchable ? (T(), c("div", Xi, [K(l("input", {
|
|
2834
2838
|
ref_key: "searchRef",
|
|
2835
2839
|
ref: j,
|
|
2836
2840
|
"onUpdate:modelValue": u[0] ||= (e) => x.value = e,
|
|
@@ -2839,7 +2843,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2839
2843
|
placeholder: F(p).common.search,
|
|
2840
2844
|
autocomplete: "off",
|
|
2841
2845
|
onKeydown: pe
|
|
2842
|
-
}, null, 40,
|
|
2846
|
+
}, null, 40, Zi), [[V, x.value]])])) : s("", !0), l("div", {
|
|
2843
2847
|
id: F(M),
|
|
2844
2848
|
ref_key: "listRef",
|
|
2845
2849
|
ref: A,
|
|
@@ -2847,7 +2851,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2847
2851
|
role: "listbox",
|
|
2848
2852
|
"aria-multiselectable": i.multiple ? "true" : void 0,
|
|
2849
2853
|
onKeydown: pe
|
|
2850
|
-
}, [Q.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(te.value, ([n, r]) => (T(), c(t, { key: n }, [n ? (T(), c("div",
|
|
2854
|
+
}, [Q.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(te.value, ([n, r]) => (T(), c(t, { key: n }, [n ? (T(), c("div", $i, N(n), 1)) : s("", !0), (T(!0), c(t, null, k(r, (t) => (T(), c("button", {
|
|
2851
2855
|
key: t.value,
|
|
2852
2856
|
type: "button",
|
|
2853
2857
|
class: y(["uid-select__option", {
|
|
@@ -2867,27 +2871,27 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
2867
2871
|
size: 14,
|
|
2868
2872
|
"aria-hidden": "true",
|
|
2869
2873
|
class: "uid-select__check"
|
|
2870
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
2874
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, ea))), 128))], 64))), 128)) : (T(), c("div", ta, N(F(p).select.noResults), 1))], 40, Qi)], 4)) : s("", !0)]),
|
|
2871
2875
|
_: 1
|
|
2872
2876
|
})]))], 2));
|
|
2873
2877
|
}
|
|
2874
|
-
}),
|
|
2878
|
+
}), ra = [
|
|
2875
2879
|
"aria-expanded",
|
|
2876
2880
|
"aria-label",
|
|
2877
2881
|
"aria-disabled"
|
|
2878
|
-
],
|
|
2882
|
+
], ia = { class: "uid-datepicker__suffix" }, aa = ["aria-label"], oa = {
|
|
2879
2883
|
key: 0,
|
|
2880
2884
|
class: "uid-datepicker__panel",
|
|
2881
2885
|
role: "dialog",
|
|
2882
2886
|
"aria-label": "Выбор даты"
|
|
2883
|
-
},
|
|
2887
|
+
}, sa = { class: "uid-datepicker__nav" }, ca = ["aria-label"], la = { class: "uid-datepicker__month-label" }, ua = ["aria-label"], da = [
|
|
2884
2888
|
"data-iso",
|
|
2885
2889
|
"tabindex",
|
|
2886
2890
|
"disabled",
|
|
2887
2891
|
"aria-current",
|
|
2888
2892
|
"aria-selected",
|
|
2889
2893
|
"onClick"
|
|
2890
|
-
],
|
|
2894
|
+
], fa = /* @__PURE__ */ f({
|
|
2891
2895
|
__name: "UidDatePicker",
|
|
2892
2896
|
props: /* @__PURE__ */ g({
|
|
2893
2897
|
min: { default: void 0 },
|
|
@@ -3055,19 +3059,19 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3055
3059
|
"aria-disabled": n.disabled,
|
|
3056
3060
|
onClick: K,
|
|
3057
3061
|
onKeydown: Z
|
|
3058
|
-
}, [l("span", { class: y(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !m.value }]) }, N(m.value ? M.value : u.value), 3), l("div",
|
|
3062
|
+
}, [l("span", { class: y(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !m.value }]) }, N(m.value ? M.value : u.value), 3), l("div", ia, [m.value ? (T(), c("button", {
|
|
3059
3063
|
key: 0,
|
|
3060
3064
|
type: "button",
|
|
3061
3065
|
class: "uid-datepicker__clear",
|
|
3062
3066
|
"aria-label": F(o).common.clear,
|
|
3063
3067
|
onClick: ee
|
|
3064
|
-
}, " × ", 8,
|
|
3068
|
+
}, " × ", 8, aa)) : s("", !0), d(e, {
|
|
3065
3069
|
icon: F(ae),
|
|
3066
3070
|
size: 16,
|
|
3067
3071
|
class: y(["uid-datepicker__chevron", { "uid-datepicker__chevron--open": h.value }]),
|
|
3068
3072
|
"aria-hidden": "true"
|
|
3069
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
3070
|
-
default: G(() => [h.value ? (T(), c("div",
|
|
3073
|
+
}, null, 8, ["icon", "class"])])], 40, ra), d(r, { name: "uid-datepicker-panel" }, {
|
|
3074
|
+
default: G(() => [h.value ? (T(), c("div", oa, [l("div", sa, [
|
|
3071
3075
|
l("button", {
|
|
3072
3076
|
type: "button",
|
|
3073
3077
|
class: "uid-datepicker__nav-btn",
|
|
@@ -3076,8 +3080,8 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3076
3080
|
}, [d(e, {
|
|
3077
3081
|
icon: F(oe),
|
|
3078
3082
|
size: 16
|
|
3079
|
-
}, null, 8, ["icon"])], 8,
|
|
3080
|
-
l("span",
|
|
3083
|
+
}, null, 8, ["icon"])], 8, ca),
|
|
3084
|
+
l("span", la, N(f.value[E.value]) + " " + N(w.value), 1),
|
|
3081
3085
|
l("button", {
|
|
3082
3086
|
type: "button",
|
|
3083
3087
|
class: "uid-datepicker__nav-btn",
|
|
@@ -3086,7 +3090,7 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3086
3090
|
}, [d(e, {
|
|
3087
3091
|
icon: F(se),
|
|
3088
3092
|
size: 16
|
|
3089
|
-
}, null, 8, ["icon"])], 8,
|
|
3093
|
+
}, null, 8, ["icon"])], 8, ua)
|
|
3090
3094
|
]), l("div", {
|
|
3091
3095
|
ref_key: "gridRef",
|
|
3092
3096
|
ref: b,
|
|
@@ -3110,11 +3114,11 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3110
3114
|
"aria-current": e.iso === I.value ? "date" : void 0,
|
|
3111
3115
|
"aria-selected": e.iso === m.value,
|
|
3112
3116
|
onClick: (t) => q(e)
|
|
3113
|
-
}, N(e.date.getDate()), 11,
|
|
3117
|
+
}, N(e.date.getDate()), 11, da))), 128))], 544)])) : s("", !0)]),
|
|
3114
3118
|
_: 1
|
|
3115
3119
|
})], 2));
|
|
3116
3120
|
}
|
|
3117
|
-
}),
|
|
3121
|
+
}), pa = /* @__PURE__ */ f({
|
|
3118
3122
|
__name: "UidVirtualList",
|
|
3119
3123
|
props: {
|
|
3120
3124
|
items: {},
|
|
@@ -3156,14 +3160,14 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3156
3160
|
index: r
|
|
3157
3161
|
})], 4))), 128))], 4)], 4)], 36));
|
|
3158
3162
|
}
|
|
3159
|
-
}),
|
|
3163
|
+
}), ma = {
|
|
3160
3164
|
key: 0,
|
|
3161
3165
|
class: "uid-slider__header"
|
|
3162
|
-
},
|
|
3166
|
+
}, ha = ["for"], ga = {
|
|
3163
3167
|
key: 1,
|
|
3164
3168
|
class: "uid-slider__value",
|
|
3165
3169
|
"aria-live": "polite"
|
|
3166
|
-
},
|
|
3170
|
+
}, _a = [
|
|
3167
3171
|
"id",
|
|
3168
3172
|
"min",
|
|
3169
3173
|
"max",
|
|
@@ -3175,10 +3179,10 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3175
3179
|
"aria-valuemin",
|
|
3176
3180
|
"aria-valuemax",
|
|
3177
3181
|
"aria-valuenow"
|
|
3178
|
-
],
|
|
3182
|
+
], va = {
|
|
3179
3183
|
key: 1,
|
|
3180
3184
|
class: "uid-slider__marks"
|
|
3181
|
-
},
|
|
3185
|
+
}, ya = ["disabled", "onClick"], ba = { class: "uid-slider__mark-label" }, xa = /* @__PURE__ */ f({
|
|
3182
3186
|
__name: "UidSlider",
|
|
3183
3187
|
props: /* @__PURE__ */ g({
|
|
3184
3188
|
min: { default: 0 },
|
|
@@ -3225,11 +3229,11 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3225
3229
|
"uid-slider--disabled": e.disabled,
|
|
3226
3230
|
"uid-slider--marked": f.value.length > 0
|
|
3227
3231
|
}]) }, [
|
|
3228
|
-
e.label || e.showValue ? (T(), c("div",
|
|
3232
|
+
e.label || e.showValue ? (T(), c("div", ma, [e.label ? (T(), c("label", {
|
|
3229
3233
|
key: 0,
|
|
3230
3234
|
class: "uid-slider__label",
|
|
3231
3235
|
for: F(r)
|
|
3232
|
-
}, N(e.label), 9,
|
|
3236
|
+
}, N(e.label), 9, ha)) : s("", !0), e.showValue ? (T(), c("span", ga, N(m.value), 1)) : s("", !0)])) : s("", !0),
|
|
3233
3237
|
K(l("input", {
|
|
3234
3238
|
id: F(r),
|
|
3235
3239
|
"onUpdate:modelValue": a[0] ||= (e) => o.value = e,
|
|
@@ -3246,13 +3250,13 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3246
3250
|
"aria-valuemax": e.max,
|
|
3247
3251
|
"aria-valuenow": o.value,
|
|
3248
3252
|
style: b({ "--_fill": `${u.value}%` })
|
|
3249
|
-
}, null, 12,
|
|
3253
|
+
}, null, 12, _a), [[
|
|
3250
3254
|
V,
|
|
3251
3255
|
o.value,
|
|
3252
3256
|
void 0,
|
|
3253
3257
|
{ number: !0 }
|
|
3254
3258
|
]]),
|
|
3255
|
-
f.value.length ? (T(), c("div",
|
|
3259
|
+
f.value.length ? (T(), c("div", va, [(T(!0), c(t, null, k(f.value, (t) => (T(), c("button", {
|
|
3256
3260
|
key: t.value,
|
|
3257
3261
|
type: "button",
|
|
3258
3262
|
class: y(["uid-slider__mark", { "uid-slider__mark--active": t.value <= o.value }]),
|
|
@@ -3263,29 +3267,29 @@ var hr = /* @__PURE__ */ dr(fr, [["render", mr]]), gr = [
|
|
|
3263
3267
|
}, [a[1] ||= l("span", {
|
|
3264
3268
|
class: "uid-slider__mark-tick",
|
|
3265
3269
|
"aria-hidden": "true"
|
|
3266
|
-
}, null, -1), l("span",
|
|
3270
|
+
}, null, -1), l("span", ba, N(t.label), 1)], 14, ya))), 128))])) : s("", !0)
|
|
3267
3271
|
], 2));
|
|
3268
3272
|
}
|
|
3269
|
-
}),
|
|
3270
|
-
function
|
|
3273
|
+
}), Sa = "[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?";
|
|
3274
|
+
function Ca(e, t, n) {
|
|
3271
3275
|
return Math.max(t, Math.min(n, e));
|
|
3272
3276
|
}
|
|
3273
|
-
function
|
|
3277
|
+
function wa(e) {
|
|
3274
3278
|
if (e === void 0) return 100;
|
|
3275
3279
|
let t = e.endsWith("%"), n = parseFloat(t ? e.slice(0, -1) : e);
|
|
3276
|
-
return Number.isNaN(n) ? null : Math.round(
|
|
3280
|
+
return Number.isNaN(n) ? null : Math.round(Ca(t ? n : n * 100, 0, 100));
|
|
3277
3281
|
}
|
|
3278
|
-
function
|
|
3282
|
+
function Ta(e) {
|
|
3279
3283
|
let t = e.endsWith("%"), n = parseFloat(t ? e.slice(0, -1) : e);
|
|
3280
|
-
return Number.isNaN(n) ? null : Math.round(
|
|
3284
|
+
return Number.isNaN(n) ? null : Math.round(Ca(t ? n / 100 * 255 : n, 0, 255));
|
|
3281
3285
|
}
|
|
3282
|
-
function
|
|
3283
|
-
let t = e.match(RegExp(`^(${
|
|
3286
|
+
function Ea(e) {
|
|
3287
|
+
let t = e.match(RegExp(`^(${Sa})(deg|rad|grad|turn)?$`, "i"));
|
|
3284
3288
|
if (!t) return null;
|
|
3285
3289
|
let n = parseFloat(t[1]), r = (t[2] ?? "deg").toLowerCase();
|
|
3286
3290
|
return r === "rad" ? n = n * 180 / Math.PI : r === "grad" ? n *= .9 : r === "turn" && (n *= 360), (n % 360 + 360) % 360;
|
|
3287
3291
|
}
|
|
3288
|
-
function
|
|
3292
|
+
function Da(e) {
|
|
3289
3293
|
let t = e.trim();
|
|
3290
3294
|
if (t.includes(",")) {
|
|
3291
3295
|
let e = t.split(",").map((e) => e.trim());
|
|
@@ -3300,7 +3304,7 @@ function Ea(e) {
|
|
|
3300
3304
|
}
|
|
3301
3305
|
return a;
|
|
3302
3306
|
}
|
|
3303
|
-
function
|
|
3307
|
+
function Oa(e, t, n) {
|
|
3304
3308
|
let r = t / 100, i = n / 100, a = (t) => (t + e / 30) % 12, o = r * Math.min(i, 1 - i), s = (e) => i - o * Math.max(-1, Math.min(a(e) - 3, Math.min(9 - a(e), 1)));
|
|
3305
3309
|
return [
|
|
3306
3310
|
Math.round(s(0) * 255),
|
|
@@ -3308,7 +3312,7 @@ function Da(e, t, n) {
|
|
|
3308
3312
|
Math.round(s(4) * 255)
|
|
3309
3313
|
];
|
|
3310
3314
|
}
|
|
3311
|
-
function
|
|
3315
|
+
function ka(e) {
|
|
3312
3316
|
if (!/^[0-9a-f]+$/i.test(e)) return null;
|
|
3313
3317
|
let t = e;
|
|
3314
3318
|
return (t.length === 3 || t.length === 4) && (t = t.split("").map((e) => e + e).join("")), t.length !== 6 && t.length !== 8 ? null : [
|
|
@@ -3318,18 +3322,18 @@ function Oa(e) {
|
|
|
3318
3322
|
t.length === 8 ? Math.round(parseInt(t.slice(6, 8), 16) / 255 * 100) : 100
|
|
3319
3323
|
];
|
|
3320
3324
|
}
|
|
3321
|
-
function
|
|
3325
|
+
function Aa(e) {
|
|
3322
3326
|
if (!e) return null;
|
|
3323
3327
|
let t = e.trim().toLowerCase();
|
|
3324
|
-
if (t.startsWith("#")) return
|
|
3328
|
+
if (t.startsWith("#")) return ka(t.slice(1));
|
|
3325
3329
|
let n = t.match(/^(rgba?|hsla?)\(([^)]*)\)$/);
|
|
3326
|
-
if (!n) return /^[0-9a-f]{3,8}$/.test(t) ?
|
|
3327
|
-
let r =
|
|
3330
|
+
if (!n) return /^[0-9a-f]{3,8}$/.test(t) ? ka(t) : null;
|
|
3331
|
+
let r = Da(n[2]);
|
|
3328
3332
|
if (!r || r.length < 3 || r.length > 4) return null;
|
|
3329
|
-
let i =
|
|
3333
|
+
let i = wa(r[3]);
|
|
3330
3334
|
if (i === null) return null;
|
|
3331
3335
|
if (n[1].startsWith("rgb")) {
|
|
3332
|
-
let e = r.slice(0, 3).map(
|
|
3336
|
+
let e = r.slice(0, 3).map(Ta);
|
|
3333
3337
|
if (e.some((e) => e === null)) return null;
|
|
3334
3338
|
let [t, n, a] = e;
|
|
3335
3339
|
return [
|
|
@@ -3339,11 +3343,11 @@ function ka(e) {
|
|
|
3339
3343
|
i
|
|
3340
3344
|
];
|
|
3341
3345
|
}
|
|
3342
|
-
let a =
|
|
3346
|
+
let a = Ea(r[0]);
|
|
3343
3347
|
if (a === null) return null;
|
|
3344
3348
|
let o = parseFloat(r[1]), s = parseFloat(r[2]);
|
|
3345
3349
|
if (Number.isNaN(o) || Number.isNaN(s)) return null;
|
|
3346
|
-
let [c, l, u] =
|
|
3350
|
+
let [c, l, u] = Oa(a, Ca(o, 0, 100), Ca(s, 0, 100));
|
|
3347
3351
|
return [
|
|
3348
3352
|
c,
|
|
3349
3353
|
l,
|
|
@@ -3351,28 +3355,28 @@ function ka(e) {
|
|
|
3351
3355
|
i
|
|
3352
3356
|
];
|
|
3353
3357
|
}
|
|
3354
|
-
function
|
|
3355
|
-
return
|
|
3358
|
+
function ja(e) {
|
|
3359
|
+
return Ca(Math.round(e), 0, 255).toString(16).padStart(2, "0");
|
|
3356
3360
|
}
|
|
3357
|
-
function
|
|
3358
|
-
let i = `#${
|
|
3359
|
-
return r < 100 ? `${i}${
|
|
3361
|
+
function Ma([e, t, n, r]) {
|
|
3362
|
+
let i = `#${ja(e)}${ja(t)}${ja(n)}`;
|
|
3363
|
+
return r < 100 ? `${i}${ja(r / 100 * 255)}` : i;
|
|
3360
3364
|
}
|
|
3361
|
-
function
|
|
3362
|
-
let t =
|
|
3363
|
-
return t ?
|
|
3365
|
+
function Na(e) {
|
|
3366
|
+
let t = Aa(e);
|
|
3367
|
+
return t ? Ma(t) : null;
|
|
3364
3368
|
}
|
|
3365
3369
|
//#endregion
|
|
3366
3370
|
//#region src/components/ColorPicker/UidColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
3367
|
-
var
|
|
3371
|
+
var Pa = ["aria-expanded", "aria-disabled"], Fa = {
|
|
3368
3372
|
key: 0,
|
|
3369
3373
|
class: "uid-colorpicker__panel",
|
|
3370
3374
|
role: "dialog",
|
|
3371
3375
|
"aria-label": "Выбор цвета"
|
|
3372
|
-
},
|
|
3376
|
+
}, Ia = { class: "uid-colorpicker__controls" }, La = { class: "uid-colorpicker__sliders" }, Ra = ["aria-valuenow"], za = ["aria-valuenow"], Ba = { class: "uid-colorpicker__inputs" }, Va = ["value"], Ha = {
|
|
3373
3377
|
key: 0,
|
|
3374
3378
|
class: "uid-colorpicker__presets"
|
|
3375
|
-
},
|
|
3379
|
+
}, Ua = ["aria-label", "onClick"], Wa = /* @__PURE__ */ f({
|
|
3376
3380
|
__name: "UidColorPicker",
|
|
3377
3381
|
props: /* @__PURE__ */ g({
|
|
3378
3382
|
disabled: {
|
|
@@ -3416,7 +3420,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3416
3420
|
}
|
|
3417
3421
|
function I() {
|
|
3418
3422
|
if (!u.value) return;
|
|
3419
|
-
let e =
|
|
3423
|
+
let e = Aa(u.value);
|
|
3420
3424
|
if (!e) return;
|
|
3421
3425
|
let [t, n, r, i] = e, [a, o, s] = M(t, n, r);
|
|
3422
3426
|
f.value = a, p.value = o, m.value = s, h.value = i, w.value = F().toUpperCase();
|
|
@@ -3425,7 +3429,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3425
3429
|
let e = F();
|
|
3426
3430
|
u.value = e, o("change", e), w.value = e.toUpperCase();
|
|
3427
3431
|
}
|
|
3428
|
-
let z = a(() =>
|
|
3432
|
+
let z = a(() => Na(u.value)), B = a(() => z.value ?? u.value ?? null), V = a(() => `hsl(${f.value}, 100%, 50%)`), H = a(() => `${p.value}%`), W = a(() => `${100 - m.value}%`), K = a(() => `${f.value / 360 * 100}%`), q = a(() => `${h.value}%`), [J, Y, ee] = [
|
|
3429
3433
|
a(() => j(f.value, p.value, m.value)[0]),
|
|
3430
3434
|
a(() => j(f.value, p.value, m.value)[1]),
|
|
3431
3435
|
a(() => j(f.value, p.value, m.value)[2])
|
|
@@ -3481,7 +3485,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3481
3485
|
w.value = e.target.value;
|
|
3482
3486
|
}
|
|
3483
3487
|
function ue() {
|
|
3484
|
-
let e =
|
|
3488
|
+
let e = Aa(w.value);
|
|
3485
3489
|
if (e) {
|
|
3486
3490
|
let [t, n, r, a] = e, [o, s, c] = M(t, n, r);
|
|
3487
3491
|
f.value = o, p.value = s, m.value = c, i.alpha && (h.value = a), L();
|
|
@@ -3506,7 +3510,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3506
3510
|
e.key === "ArrowLeft" || e.key === "ArrowDown" ? (e.preventDefault(), h.value = fe(h.value - t, 0, 100), L()) : e.key === "ArrowRight" || e.key === "ArrowUp" ? (e.preventDefault(), h.value = fe(h.value + t, 0, 100), L()) : e.key === "Home" ? (e.preventDefault(), h.value = 0, L()) : e.key === "End" && (e.preventDefault(), h.value = 100, L());
|
|
3507
3511
|
}
|
|
3508
3512
|
function ge(e) {
|
|
3509
|
-
let t =
|
|
3513
|
+
let t = Aa(e);
|
|
3510
3514
|
if (!t) return;
|
|
3511
3515
|
let [n, r, a, o] = t, [s, c, l] = M(n, r, a);
|
|
3512
3516
|
f.value = s, p.value = c, m.value = l, i.alpha && (h.value = o), L();
|
|
@@ -3514,7 +3518,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3514
3518
|
function _e(e) {
|
|
3515
3519
|
if (!u.value) return !1;
|
|
3516
3520
|
if (u.value.toUpperCase() === e.toUpperCase()) return !0;
|
|
3517
|
-
let t =
|
|
3521
|
+
let t = Na(e);
|
|
3518
3522
|
return t !== null && t === z.value;
|
|
3519
3523
|
}
|
|
3520
3524
|
function ve() {
|
|
@@ -3547,8 +3551,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3547
3551
|
}, [l("span", {
|
|
3548
3552
|
class: "uid-colorpicker__swatch",
|
|
3549
3553
|
style: b(B.value ? { background: B.value } : {})
|
|
3550
|
-
}, null, 4), l("span", { class: y(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, N(B.value ? B.value.toUpperCase() : "Выберите цвет"), 3)], 8,
|
|
3551
|
-
default: G(() => [g.value ? (T(), c("div",
|
|
3554
|
+
}, null, 4), l("span", { class: y(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, N(B.value ? B.value.toUpperCase() : "Выберите цвет"), 3)], 8, Pa), d(r, { name: "uid-colorpicker-panel" }, {
|
|
3555
|
+
default: G(() => [g.value ? (T(), c("div", Fa, [
|
|
3552
3556
|
l("div", {
|
|
3553
3557
|
ref_key: "gradientRef",
|
|
3554
3558
|
ref: v,
|
|
@@ -3568,7 +3572,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3568
3572
|
top: W.value
|
|
3569
3573
|
})
|
|
3570
3574
|
}, null, 4)], 36),
|
|
3571
|
-
l("div",
|
|
3575
|
+
l("div", Ia, [l("div", La, [l("div", {
|
|
3572
3576
|
ref_key: "hueSliderRef",
|
|
3573
3577
|
ref: x,
|
|
3574
3578
|
class: "uid-colorpicker__hue-track",
|
|
@@ -3585,7 +3589,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3585
3589
|
}, [l("div", {
|
|
3586
3590
|
class: "uid-colorpicker__track-thumb",
|
|
3587
3591
|
style: b({ left: K.value })
|
|
3588
|
-
}, null, 4)], 40,
|
|
3592
|
+
}, null, 4)], 40, Ra), e.alpha ? (T(), c("div", {
|
|
3589
3593
|
key: 0,
|
|
3590
3594
|
ref_key: "alphaSliderRef",
|
|
3591
3595
|
ref: S,
|
|
@@ -3604,11 +3608,11 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3604
3608
|
}, [l("div", {
|
|
3605
3609
|
class: "uid-colorpicker__track-thumb",
|
|
3606
3610
|
style: b({ left: q.value })
|
|
3607
|
-
}, null, 4)], 44,
|
|
3611
|
+
}, null, 4)], 44, za)) : s("", !0)]), l("span", {
|
|
3608
3612
|
class: "uid-colorpicker__preview",
|
|
3609
3613
|
style: b({ background: X.value })
|
|
3610
3614
|
}, null, 4)]),
|
|
3611
|
-
l("div",
|
|
3615
|
+
l("div", Ba, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
|
|
3612
3616
|
class: "uid-colorpicker__hex-input",
|
|
3613
3617
|
type: "text",
|
|
3614
3618
|
value: w.value,
|
|
@@ -3618,37 +3622,37 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3618
3622
|
onInput: le,
|
|
3619
3623
|
onBlur: ue,
|
|
3620
3624
|
onKeydown: de
|
|
3621
|
-
}, null, 40,
|
|
3622
|
-
e.presets && e.presets.length ? (T(), c("div",
|
|
3625
|
+
}, null, 40, Va)]),
|
|
3626
|
+
e.presets && e.presets.length ? (T(), c("div", Ha, [(T(!0), c(t, null, k(e.presets, (e) => (T(), c("button", {
|
|
3623
3627
|
key: e,
|
|
3624
3628
|
type: "button",
|
|
3625
3629
|
class: y(["uid-colorpicker__preset", { "uid-colorpicker__preset--active": _e(e) }]),
|
|
3626
3630
|
style: b({ background: e }),
|
|
3627
3631
|
"aria-label": e,
|
|
3628
3632
|
onClick: (t) => ge(e)
|
|
3629
|
-
}, null, 14,
|
|
3633
|
+
}, null, 14, Ua))), 128))])) : s("", !0)
|
|
3630
3634
|
])) : s("", !0)]),
|
|
3631
3635
|
_: 1
|
|
3632
3636
|
})], 2));
|
|
3633
3637
|
}
|
|
3634
|
-
}),
|
|
3638
|
+
}), Ga = { class: "uid-command__search" }, Ka = ["placeholder"], qa = {
|
|
3635
3639
|
key: 0,
|
|
3636
3640
|
class: "uid-command__group-label"
|
|
3637
|
-
},
|
|
3641
|
+
}, Ja = [
|
|
3638
3642
|
"data-active",
|
|
3639
3643
|
"aria-selected",
|
|
3640
3644
|
"onClick",
|
|
3641
3645
|
"onMouseenter"
|
|
3642
|
-
],
|
|
3646
|
+
], Ya = { class: "uid-command__item-text" }, Xa = { class: "uid-command__item-label" }, Za = {
|
|
3643
3647
|
key: 0,
|
|
3644
3648
|
class: "uid-command__item-desc"
|
|
3645
|
-
},
|
|
3649
|
+
}, Qa = {
|
|
3646
3650
|
key: 0,
|
|
3647
3651
|
class: "uid-command__item-shortcut"
|
|
3648
|
-
},
|
|
3652
|
+
}, $a = {
|
|
3649
3653
|
key: 1,
|
|
3650
3654
|
class: "uid-command__empty"
|
|
3651
|
-
},
|
|
3655
|
+
}, eo = /* @__PURE__ */ f({
|
|
3652
3656
|
__name: "UidCommand",
|
|
3653
3657
|
props: /* @__PURE__ */ g({
|
|
3654
3658
|
commands: {},
|
|
@@ -3718,7 +3722,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3718
3722
|
"aria-modal": "true",
|
|
3719
3723
|
"aria-label": "Палитра команд",
|
|
3720
3724
|
onKeydown: I
|
|
3721
|
-
}, [l("div",
|
|
3725
|
+
}, [l("div", Ga, [d(e, {
|
|
3722
3726
|
icon: F(ye),
|
|
3723
3727
|
size: 16,
|
|
3724
3728
|
class: "uid-command__search-icon",
|
|
@@ -3733,12 +3737,12 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3733
3737
|
autocomplete: "off",
|
|
3734
3738
|
spellcheck: "false",
|
|
3735
3739
|
"aria-autocomplete": "list"
|
|
3736
|
-
}, null, 8,
|
|
3740
|
+
}, null, 8, Ka), [[V, p.value]])]), l("div", {
|
|
3737
3741
|
ref_key: "listRef",
|
|
3738
3742
|
ref: _,
|
|
3739
3743
|
class: "uid-command__list",
|
|
3740
3744
|
role: "listbox"
|
|
3741
|
-
}, [D.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(A.value, ([e, n]) => (T(), c(t, { key: e }, [e ? (T(), c("div",
|
|
3745
|
+
}, [D.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(A.value, ([e, n]) => (T(), c(t, { key: e }, [e ? (T(), c("div", qa, N(e), 1)) : s("", !0), (T(!0), c(t, null, k(n, (e) => (T(), c("button", {
|
|
3742
3746
|
key: e.id,
|
|
3743
3747
|
class: y(["uid-command__item", { "uid-command__item--active": D.value.indexOf(e) === m.value }]),
|
|
3744
3748
|
"data-active": D.value.indexOf(e) === m.value ? "true" : void 0,
|
|
@@ -3747,18 +3751,18 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3747
3751
|
type: "button",
|
|
3748
3752
|
onClick: (t) => M(e),
|
|
3749
3753
|
onMouseenter: (t) => m.value = D.value.indexOf(e)
|
|
3750
|
-
}, [l("div",
|
|
3754
|
+
}, [l("div", Ya, [l("span", Xa, N(e.label), 1), e.description ? (T(), c("span", Za, N(e.description), 1)) : s("", !0)]), e.shortcut ? (T(), c("div", Qa, [(T(!0), c(t, null, k(e.shortcut, (e) => (T(), c("kbd", {
|
|
3751
3755
|
key: e,
|
|
3752
3756
|
class: "uid-command__kbd"
|
|
3753
|
-
}, N(e), 1))), 128))])) : s("", !0)], 42,
|
|
3757
|
+
}, N(e), 1))), 128))])) : s("", !0)], 42, Ja))), 128))], 64))), 128)) : (T(), c("div", $a, N(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
|
|
3754
3758
|
_: 1
|
|
3755
3759
|
})]));
|
|
3756
3760
|
}
|
|
3757
|
-
}),
|
|
3761
|
+
}), to = ["for"], no = {
|
|
3758
3762
|
key: 0,
|
|
3759
3763
|
class: "uid-number-input__required",
|
|
3760
3764
|
"aria-hidden": "true"
|
|
3761
|
-
},
|
|
3765
|
+
}, ro = { class: "uid-number-input__control" }, io = ["disabled", "aria-label"], ao = [
|
|
3762
3766
|
"id",
|
|
3763
3767
|
"name",
|
|
3764
3768
|
"placeholder",
|
|
@@ -3771,7 +3775,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3771
3775
|
"value",
|
|
3772
3776
|
"aria-invalid",
|
|
3773
3777
|
"aria-describedby"
|
|
3774
|
-
],
|
|
3778
|
+
], oo = ["disabled", "aria-label"], so = ["id"], co = /* @__PURE__ */ f({
|
|
3775
3779
|
__name: "UidNumberInput",
|
|
3776
3780
|
props: /* @__PURE__ */ g({
|
|
3777
3781
|
min: { default: void 0 },
|
|
@@ -3864,8 +3868,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3864
3868
|
key: 0,
|
|
3865
3869
|
for: F(h),
|
|
3866
3870
|
class: "uid-number-input__label"
|
|
3867
|
-
}, [u(N(t.label) + " ", 1), t.required ? (T(), c("span",
|
|
3868
|
-
l("div",
|
|
3871
|
+
}, [u(N(t.label) + " ", 1), t.required ? (T(), c("span", no, "*")) : s("", !0)], 8, to)) : s("", !0),
|
|
3872
|
+
l("div", ro, [
|
|
3869
3873
|
t.controls ? (T(), c("button", {
|
|
3870
3874
|
key: 0,
|
|
3871
3875
|
type: "button",
|
|
@@ -3877,7 +3881,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3877
3881
|
}, [d(e, {
|
|
3878
3882
|
icon: F(_e),
|
|
3879
3883
|
size: 14
|
|
3880
|
-
}, null, 8, ["icon"])], 8,
|
|
3884
|
+
}, null, 8, ["icon"])], 8, io)) : s("", !0),
|
|
3881
3885
|
l("input", {
|
|
3882
3886
|
id: F(h),
|
|
3883
3887
|
class: "uid-number-input__input",
|
|
@@ -3898,7 +3902,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3898
3902
|
onBlur: O,
|
|
3899
3903
|
onFocus: r[0] ||= (e) => i("focus", e),
|
|
3900
3904
|
onKeydown: k
|
|
3901
|
-
}, null, 40,
|
|
3905
|
+
}, null, 40, ao),
|
|
3902
3906
|
t.controls ? (T(), c("button", {
|
|
3903
3907
|
key: 1,
|
|
3904
3908
|
type: "button",
|
|
@@ -3910,37 +3914,37 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
3910
3914
|
}, [d(e, {
|
|
3911
3915
|
icon: F(ve),
|
|
3912
3916
|
size: 14
|
|
3913
|
-
}, null, 8, ["icon"])], 8,
|
|
3917
|
+
}, null, 8, ["icon"])], 8, oo)) : s("", !0)
|
|
3914
3918
|
]),
|
|
3915
3919
|
_.value ? (T(), c("p", {
|
|
3916
3920
|
key: 1,
|
|
3917
3921
|
id: `${F(h)}-hint`,
|
|
3918
3922
|
class: y(["uid-number-input__hint", g.value && "uid-number-input__hint--error"])
|
|
3919
|
-
}, N(_.value), 11,
|
|
3923
|
+
}, N(_.value), 11, so)) : s("", !0)
|
|
3920
3924
|
], 2));
|
|
3921
3925
|
}
|
|
3922
|
-
}),
|
|
3926
|
+
}), lo = [
|
|
3923
3927
|
"aria-expanded",
|
|
3924
3928
|
"aria-label",
|
|
3925
3929
|
"aria-disabled"
|
|
3926
|
-
],
|
|
3930
|
+
], uo = ["aria-label"], fo = {
|
|
3927
3931
|
key: 0,
|
|
3928
3932
|
class: "uid-timepicker__panel",
|
|
3929
3933
|
role: "dialog",
|
|
3930
3934
|
"aria-label": "Выбор времени"
|
|
3931
|
-
},
|
|
3935
|
+
}, po = { class: "uid-timepicker__columns" }, mo = [
|
|
3932
3936
|
"aria-selected",
|
|
3933
3937
|
"tabindex",
|
|
3934
3938
|
"onClick"
|
|
3935
|
-
],
|
|
3939
|
+
], ho = [
|
|
3936
3940
|
"aria-selected",
|
|
3937
3941
|
"tabindex",
|
|
3938
3942
|
"onClick"
|
|
3939
|
-
],
|
|
3943
|
+
], go = [
|
|
3940
3944
|
"aria-selected",
|
|
3941
3945
|
"tabindex",
|
|
3942
3946
|
"onClick"
|
|
3943
|
-
],
|
|
3947
|
+
], _o = { class: "uid-timepicker__footer" }, vo = /* @__PURE__ */ f({
|
|
3944
3948
|
__name: "UidTimePicker",
|
|
3945
3949
|
props: /* @__PURE__ */ g({
|
|
3946
3950
|
step: { default: 5 },
|
|
@@ -4135,9 +4139,9 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4135
4139
|
class: "uid-timepicker__clear",
|
|
4136
4140
|
"aria-label": F(u).common.clear,
|
|
4137
4141
|
onClick: J
|
|
4138
|
-
}, " × ", 8,
|
|
4139
|
-
], 40,
|
|
4140
|
-
default: G(() => [h.value ? (T(), c("div",
|
|
4142
|
+
}, " × ", 8, uo)) : s("", !0)
|
|
4143
|
+
], 40, lo), d(r, { name: "uid-timepicker-panel" }, {
|
|
4144
|
+
default: G(() => [h.value ? (T(), c("div", fo, [l("div", po, [
|
|
4141
4145
|
l("div", {
|
|
4142
4146
|
ref_key: "hourColRef",
|
|
4143
4147
|
ref: b,
|
|
@@ -4153,7 +4157,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4153
4157
|
"aria-selected": D.value.h === e,
|
|
4154
4158
|
tabindex: D.value.h === e ? 0 : -1,
|
|
4155
4159
|
onClick: (t) => V(e)
|
|
4156
|
-
}, N(I(e)), 11,
|
|
4160
|
+
}, N(I(e)), 11, mo))), 128))], 544),
|
|
4157
4161
|
l("div", {
|
|
4158
4162
|
ref_key: "minuteColRef",
|
|
4159
4163
|
ref: x,
|
|
@@ -4169,7 +4173,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4169
4173
|
"aria-selected": D.value.m === e,
|
|
4170
4174
|
tabindex: D.value.m === e ? 0 : -1,
|
|
4171
4175
|
onClick: (t) => H(e)
|
|
4172
|
-
}, N(I(e)), 11,
|
|
4176
|
+
}, N(I(e)), 11, ho))), 128))], 544),
|
|
4173
4177
|
n.withSeconds ? (T(), c("div", {
|
|
4174
4178
|
key: 0,
|
|
4175
4179
|
ref_key: "secondColRef",
|
|
@@ -4186,8 +4190,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4186
4190
|
"aria-selected": D.value.s === e,
|
|
4187
4191
|
tabindex: D.value.s === e ? 0 : -1,
|
|
4188
4192
|
onClick: (t) => W(e)
|
|
4189
|
-
}, N(I(e)), 11,
|
|
4190
|
-
]), l("div",
|
|
4193
|
+
}, N(I(e)), 11, go))), 128))], 544)) : s("", !0)
|
|
4194
|
+
]), l("div", _o, [l("button", {
|
|
4191
4195
|
type: "button",
|
|
4192
4196
|
class: "uid-timepicker__btn",
|
|
4193
4197
|
onClick: q
|
|
@@ -4199,30 +4203,30 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4199
4203
|
_: 1
|
|
4200
4204
|
})], 2));
|
|
4201
4205
|
}
|
|
4202
|
-
}),
|
|
4206
|
+
}), yo = [
|
|
4203
4207
|
"aria-expanded",
|
|
4204
4208
|
"aria-label",
|
|
4205
4209
|
"aria-disabled"
|
|
4206
|
-
],
|
|
4210
|
+
], bo = ["aria-label"], xo = {
|
|
4207
4211
|
key: 0,
|
|
4208
4212
|
class: "uid-daterange__panel",
|
|
4209
4213
|
role: "dialog",
|
|
4210
4214
|
"aria-label": "Выбор диапазона дат"
|
|
4211
|
-
},
|
|
4215
|
+
}, So = { class: "uid-daterange__months" }, Co = { class: "uid-daterange__month" }, wo = { class: "uid-daterange__nav" }, To = ["aria-label"], Eo = { class: "uid-daterange__month-label" }, Do = ["aria-label"], Oo = { class: "uid-daterange__grid" }, ko = [
|
|
4212
4216
|
"disabled",
|
|
4213
4217
|
"onClick",
|
|
4214
4218
|
"onMouseenter"
|
|
4215
|
-
],
|
|
4219
|
+
], Ao = { class: "uid-daterange__month" }, jo = { class: "uid-daterange__nav" }, Mo = ["aria-label"], No = { class: "uid-daterange__month-label" }, Po = ["aria-label"], Fo = { class: "uid-daterange__grid" }, Io = [
|
|
4216
4220
|
"disabled",
|
|
4217
4221
|
"onClick",
|
|
4218
4222
|
"onMouseenter"
|
|
4219
|
-
],
|
|
4223
|
+
], Lo = {
|
|
4220
4224
|
key: 0,
|
|
4221
4225
|
class: "uid-daterange__times"
|
|
4222
|
-
},
|
|
4226
|
+
}, Ro = { class: "uid-daterange__time-field" }, zo = { class: "uid-daterange__time-label" }, Bo = ["value", "disabled"], Vo = { class: "uid-daterange__time-field" }, Ho = { class: "uid-daterange__time-label" }, Uo = ["value", "disabled"], Wo = {
|
|
4223
4227
|
key: 1,
|
|
4224
4228
|
class: "uid-daterange__footer"
|
|
4225
|
-
},
|
|
4229
|
+
}, Go = ["onClick"], Ko = "00:00", qo = "23:59", Jo = /* @__PURE__ */ f({
|
|
4226
4230
|
__name: "UidDateRangePicker",
|
|
4227
4231
|
props: /* @__PURE__ */ g({
|
|
4228
4232
|
min: { default: void 0 },
|
|
@@ -4362,8 +4366,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4362
4366
|
let [t, n] = S.value <= e.iso ? [S.value, e.iso] : [e.iso, S.value];
|
|
4363
4367
|
if (o.withTime) {
|
|
4364
4368
|
ce({
|
|
4365
|
-
start: M(t, j(m.value.start) ??
|
|
4366
|
-
end: M(n, j(m.value.end) ??
|
|
4369
|
+
start: M(t, j(m.value.start) ?? Ko),
|
|
4370
|
+
end: M(n, j(m.value.end) ?? qo)
|
|
4367
4371
|
}), S.value = null, w.value = null;
|
|
4368
4372
|
return;
|
|
4369
4373
|
}
|
|
@@ -4417,8 +4421,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4417
4421
|
function ge(e) {
|
|
4418
4422
|
let t = e.range();
|
|
4419
4423
|
ce(o.withTime ? {
|
|
4420
|
-
start: t.start && !j(t.start) ? M(t.start,
|
|
4421
|
-
end: t.end && !j(t.end) ? M(t.end,
|
|
4424
|
+
start: t.start && !j(t.start) ? M(t.start, Ko) : t.start,
|
|
4425
|
+
end: t.end && !j(t.end) ? M(t.end, qo) : t.end
|
|
4422
4426
|
} : t), re();
|
|
4423
4427
|
}
|
|
4424
4428
|
function _e(e) {
|
|
@@ -4464,10 +4468,10 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4464
4468
|
class: "uid-daterange__clear",
|
|
4465
4469
|
"aria-label": F(u).common.clear,
|
|
4466
4470
|
onClick: pe
|
|
4467
|
-
}, " × ", 8,
|
|
4468
|
-
], 40,
|
|
4469
|
-
default: G(() => [h.value ? (T(), c("div",
|
|
4470
|
-
l("div",
|
|
4471
|
+
}, " × ", 8, bo)) : s("", !0)
|
|
4472
|
+
], 40, yo), d(r, { name: "uid-daterange-panel" }, {
|
|
4473
|
+
default: G(() => [h.value ? (T(), c("div", xo, [
|
|
4474
|
+
l("div", So, [l("div", Co, [l("div", wo, [
|
|
4471
4475
|
l("button", {
|
|
4472
4476
|
type: "button",
|
|
4473
4477
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
@@ -4476,8 +4480,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4476
4480
|
}, [d(e, {
|
|
4477
4481
|
icon: F(oe),
|
|
4478
4482
|
size: 16
|
|
4479
|
-
}, null, 8, ["icon"])], 8,
|
|
4480
|
-
l("span",
|
|
4483
|
+
}, null, 8, ["icon"])], 8, To),
|
|
4484
|
+
l("span", Eo, N(q.value), 1),
|
|
4481
4485
|
l("button", {
|
|
4482
4486
|
type: "button",
|
|
4483
4487
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
@@ -4486,8 +4490,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4486
4490
|
}, [d(e, {
|
|
4487
4491
|
icon: F(se),
|
|
4488
4492
|
size: 16
|
|
4489
|
-
}, null, 8, ["icon"])], 8,
|
|
4490
|
-
]), l("div",
|
|
4493
|
+
}, null, 8, ["icon"])], 8, Do)
|
|
4494
|
+
]), l("div", Oo, [(T(!0), c(t, null, k(D.value, (e) => (T(), c("span", {
|
|
4491
4495
|
key: e,
|
|
4492
4496
|
class: "uid-daterange__weekday"
|
|
4493
4497
|
}, N(e), 1))), 128)), (T(!0), c(t, null, k(W.value, (e) => (T(), c("button", {
|
|
@@ -4504,7 +4508,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4504
4508
|
disabled: ee(e.iso) || !e.current,
|
|
4505
4509
|
onClick: (t) => ae(e),
|
|
4506
4510
|
onMouseenter: (t) => ue(e.iso)
|
|
4507
|
-
}, N(e.date.getDate()), 43,
|
|
4511
|
+
}, N(e.date.getDate()), 43, ko))), 128))])]), l("div", Ao, [l("div", jo, [
|
|
4508
4512
|
l("button", {
|
|
4509
4513
|
type: "button",
|
|
4510
4514
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
@@ -4513,8 +4517,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4513
4517
|
}, [d(e, {
|
|
4514
4518
|
icon: F(oe),
|
|
4515
4519
|
size: 16
|
|
4516
|
-
}, null, 8, ["icon"])], 8,
|
|
4517
|
-
l("span",
|
|
4520
|
+
}, null, 8, ["icon"])], 8, Mo),
|
|
4521
|
+
l("span", No, N(J.value), 1),
|
|
4518
4522
|
l("button", {
|
|
4519
4523
|
type: "button",
|
|
4520
4524
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
@@ -4523,8 +4527,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4523
4527
|
}, [d(e, {
|
|
4524
4528
|
icon: F(se),
|
|
4525
4529
|
size: 16
|
|
4526
|
-
}, null, 8, ["icon"])], 8,
|
|
4527
|
-
]), l("div",
|
|
4530
|
+
}, null, 8, ["icon"])], 8, Po)
|
|
4531
|
+
]), l("div", Fo, [(T(!0), c(t, null, k(D.value, (e) => (T(), c("span", {
|
|
4528
4532
|
key: e,
|
|
4529
4533
|
class: "uid-daterange__weekday"
|
|
4530
4534
|
}, N(e), 1))), 128)), (T(!0), c(t, null, k(K.value, (e) => (T(), c("button", {
|
|
@@ -4541,35 +4545,35 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4541
4545
|
disabled: ee(e.iso) || !e.current,
|
|
4542
4546
|
onClick: (t) => ae(e),
|
|
4543
4547
|
onMouseenter: (t) => ue(e.iso)
|
|
4544
|
-
}, N(e.date.getDate()), 43,
|
|
4545
|
-
n.withTime ? (T(), c("div",
|
|
4548
|
+
}, N(e.date.getDate()), 43, Io))), 128))])])]),
|
|
4549
|
+
n.withTime ? (T(), c("div", Lo, [l("label", Ro, [l("span", zo, N(F(u).dateRangePicker.startTime ?? "Start time"), 1), l("input", {
|
|
4546
4550
|
type: "time",
|
|
4547
4551
|
class: "uid-daterange__time uid-daterange__time--start",
|
|
4548
4552
|
value: j(m.value.start) ?? "",
|
|
4549
4553
|
disabled: !m.value.start,
|
|
4550
4554
|
onChange: a[0] ||= (e) => le("start", e)
|
|
4551
|
-
}, null, 40,
|
|
4555
|
+
}, null, 40, Bo)]), l("label", Vo, [l("span", Ho, N(F(u).dateRangePicker.endTime ?? "End time"), 1), l("input", {
|
|
4552
4556
|
type: "time",
|
|
4553
4557
|
class: "uid-daterange__time uid-daterange__time--end",
|
|
4554
4558
|
value: j(m.value.end) ?? "",
|
|
4555
4559
|
disabled: !m.value.end,
|
|
4556
4560
|
onChange: a[1] ||= (e) => le("end", e)
|
|
4557
|
-
}, null, 40,
|
|
4558
|
-
he.value.length ? (T(), c("div",
|
|
4561
|
+
}, null, 40, Uo)])])) : s("", !0),
|
|
4562
|
+
he.value.length ? (T(), c("div", Wo, [(T(!0), c(t, null, k(he.value, (e) => (T(), c("button", {
|
|
4559
4563
|
key: e.label,
|
|
4560
4564
|
type: "button",
|
|
4561
4565
|
class: "uid-daterange__btn",
|
|
4562
4566
|
onClick: (t) => ge(e)
|
|
4563
|
-
}, N(e.label), 9,
|
|
4567
|
+
}, N(e.label), 9, Go))), 128))])) : s("", !0)
|
|
4564
4568
|
])) : s("", !0)]),
|
|
4565
4569
|
_: 1
|
|
4566
4570
|
})], 2));
|
|
4567
4571
|
}
|
|
4568
|
-
}),
|
|
4572
|
+
}), Yo = ["for"], Xo = {
|
|
4569
4573
|
key: 0,
|
|
4570
4574
|
class: "uid-tags-input__required",
|
|
4571
4575
|
"aria-hidden": "true"
|
|
4572
|
-
},
|
|
4576
|
+
}, Zo = ["aria-label", "onClick"], Qo = [
|
|
4573
4577
|
"id",
|
|
4574
4578
|
"placeholder",
|
|
4575
4579
|
"disabled",
|
|
@@ -4577,7 +4581,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4577
4581
|
"value",
|
|
4578
4582
|
"aria-invalid",
|
|
4579
4583
|
"aria-describedby"
|
|
4580
|
-
],
|
|
4584
|
+
], $o = ["id"], es = /* @__PURE__ */ f({
|
|
4581
4585
|
__name: "UidTagsInput",
|
|
4582
4586
|
props: /* @__PURE__ */ g({
|
|
4583
4587
|
separators: { default: () => [",", "Enter"] },
|
|
@@ -4678,7 +4682,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4678
4682
|
key: 0,
|
|
4679
4683
|
for: F(p),
|
|
4680
4684
|
class: "uid-tags-input__label"
|
|
4681
|
-
}, [u(N(e.label) + " ", 1), e.required ? (T(), c("span",
|
|
4685
|
+
}, [u(N(e.label) + " ", 1), e.required ? (T(), c("span", Xo, "*")) : s("", !0)], 8, Yo)) : s("", !0),
|
|
4682
4686
|
l("div", {
|
|
4683
4687
|
class: "uid-tags-input__control",
|
|
4684
4688
|
role: "list",
|
|
@@ -4693,7 +4697,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4693
4697
|
class: "uid-tags-input__chip-remove",
|
|
4694
4698
|
"aria-label": F(m).tagsInput.remove(t),
|
|
4695
4699
|
onClick: J((e) => x(n), ["stop"])
|
|
4696
|
-
}, "×", 8,
|
|
4700
|
+
}, "×", 8, Zo))], 2))), 128)), l("input", {
|
|
4697
4701
|
id: F(p),
|
|
4698
4702
|
ref_key: "inputRef",
|
|
4699
4703
|
ref: f,
|
|
@@ -4709,19 +4713,19 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4709
4713
|
onKeydown: S,
|
|
4710
4714
|
onPaste: w,
|
|
4711
4715
|
onBlur: b
|
|
4712
|
-
}, null, 40,
|
|
4716
|
+
}, null, 40, Qo)]),
|
|
4713
4717
|
g.value ? (T(), c("p", {
|
|
4714
4718
|
key: 1,
|
|
4715
4719
|
id: `${F(p)}-hint`,
|
|
4716
4720
|
class: y(["uid-tags-input__hint", h.value && "uid-tags-input__hint--error"])
|
|
4717
|
-
}, N(g.value), 11,
|
|
4721
|
+
}, N(g.value), 11, $o)) : s("", !0)
|
|
4718
4722
|
], 2));
|
|
4719
4723
|
}
|
|
4720
|
-
}),
|
|
4724
|
+
}), ts = ["for"], ns = {
|
|
4721
4725
|
key: 0,
|
|
4722
4726
|
class: "uid-combobox__required",
|
|
4723
4727
|
"aria-hidden": "true"
|
|
4724
|
-
},
|
|
4728
|
+
}, rs = { class: "uid-combobox__control" }, is = [
|
|
4725
4729
|
"id",
|
|
4726
4730
|
"aria-expanded",
|
|
4727
4731
|
"aria-controls",
|
|
@@ -4731,20 +4735,20 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4731
4735
|
"disabled",
|
|
4732
4736
|
"required",
|
|
4733
4737
|
"value"
|
|
4734
|
-
],
|
|
4738
|
+
], as = { class: "uid-combobox__suffix" }, os = ["aria-label"], ss = ["id"], cs = [
|
|
4735
4739
|
"id",
|
|
4736
4740
|
"data-active",
|
|
4737
4741
|
"aria-selected",
|
|
4738
4742
|
"aria-disabled",
|
|
4739
4743
|
"onClick",
|
|
4740
4744
|
"onMouseenter"
|
|
4741
|
-
],
|
|
4745
|
+
], ls = { class: "uid-combobox__option-label" }, us = {
|
|
4742
4746
|
key: 0,
|
|
4743
4747
|
class: "uid-combobox__option-hint"
|
|
4744
|
-
},
|
|
4748
|
+
}, ds = ["id", "data-active"], fs = { class: "uid-combobox__option-label" }, ps = {
|
|
4745
4749
|
key: 2,
|
|
4746
4750
|
class: "uid-combobox__empty"
|
|
4747
|
-
},
|
|
4751
|
+
}, ms = /* @__PURE__ */ f({
|
|
4748
4752
|
__name: "UidCombobox",
|
|
4749
4753
|
props: /* @__PURE__ */ g({
|
|
4750
4754
|
options: {},
|
|
@@ -4870,8 +4874,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4870
4874
|
key: 0,
|
|
4871
4875
|
for: F(D),
|
|
4872
4876
|
class: "uid-combobox__label"
|
|
4873
|
-
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span",
|
|
4874
|
-
l("div",
|
|
4877
|
+
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span", ns, "*")) : s("", !0)], 8, ts)) : s("", !0),
|
|
4878
|
+
l("div", rs, [l("input", {
|
|
4875
4879
|
id: F(D),
|
|
4876
4880
|
ref_key: "inputRef",
|
|
4877
4881
|
ref: w,
|
|
@@ -4892,7 +4896,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4892
4896
|
onInput: K,
|
|
4893
4897
|
onFocus: q,
|
|
4894
4898
|
onKeydown: J
|
|
4895
|
-
}, null, 40,
|
|
4899
|
+
}, null, 40, is), l("div", as, [n.clearable && g.value !== null ? (T(), c("button", {
|
|
4896
4900
|
key: 0,
|
|
4897
4901
|
type: "button",
|
|
4898
4902
|
class: "uid-combobox__clear",
|
|
@@ -4901,7 +4905,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4901
4905
|
}, [d(e, {
|
|
4902
4906
|
icon: F(we),
|
|
4903
4907
|
size: 12
|
|
4904
|
-
}, null, 8, ["icon"])], 8,
|
|
4908
|
+
}, null, 8, ["icon"])], 8, os)) : s("", !0), d(e, {
|
|
4905
4909
|
icon: F(ae),
|
|
4906
4910
|
size: 16,
|
|
4907
4911
|
class: y(["uid-combobox__chevron", { "uid-combobox__chevron--open": _.value }]),
|
|
@@ -4932,8 +4936,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4932
4936
|
onClick: (e) => H(t),
|
|
4933
4937
|
onMouseenter: (e) => !t.disabled && (x.value = n)
|
|
4934
4938
|
}, [
|
|
4935
|
-
l("span",
|
|
4936
|
-
t.hint ? (T(), c("span",
|
|
4939
|
+
l("span", ls, N(t.label), 1),
|
|
4940
|
+
t.hint ? (T(), c("span", us, N(t.hint), 1)) : s("", !0),
|
|
4937
4941
|
t.value === g.value ? (T(), o(e, {
|
|
4938
4942
|
key: 1,
|
|
4939
4943
|
icon: F(re),
|
|
@@ -4941,7 +4945,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4941
4945
|
class: "uid-combobox__check",
|
|
4942
4946
|
"aria-hidden": "true"
|
|
4943
4947
|
}, null, 8, ["icon"])) : s("", !0)
|
|
4944
|
-
], 42,
|
|
4948
|
+
], 42, cs))), 128)) : s("", !0),
|
|
4945
4949
|
P.value ? (T(), c("button", {
|
|
4946
4950
|
key: 1,
|
|
4947
4951
|
id: `${F(A)}-${M.value.length}`,
|
|
@@ -4951,35 +4955,35 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
4951
4955
|
"data-active": x.value === M.value.length ? "true" : void 0,
|
|
4952
4956
|
onClick: W,
|
|
4953
4957
|
onMouseenter: i[0] ||= (e) => x.value = M.value.length
|
|
4954
|
-
}, [l("span",
|
|
4955
|
-
M.value.length === 0 && !P.value ? (T(), c("div",
|
|
4956
|
-
], 8,
|
|
4958
|
+
}, [l("span", fs, N(F(f).combobox.create(b.value)), 1)], 42, ds)) : s("", !0),
|
|
4959
|
+
M.value.length === 0 && !P.value ? (T(), c("div", ps, N(m.value), 1)) : s("", !0)
|
|
4960
|
+
], 8, ss)) : s("", !0),
|
|
4957
4961
|
z.value ? (T(), c("p", {
|
|
4958
4962
|
key: 2,
|
|
4959
4963
|
class: y(["uid-combobox__hint", I.value && "uid-combobox__hint--error"])
|
|
4960
4964
|
}, N(z.value), 3)) : s("", !0)
|
|
4961
4965
|
], 2));
|
|
4962
4966
|
}
|
|
4963
|
-
}),
|
|
4967
|
+
}), hs = Symbol("UidTree"), gs = [
|
|
4964
4968
|
"aria-expanded",
|
|
4965
4969
|
"aria-selected",
|
|
4966
4970
|
"aria-disabled"
|
|
4967
|
-
],
|
|
4971
|
+
], _s = ["tabindex"], vs = ["aria-label"], ys = {
|
|
4968
4972
|
key: 1,
|
|
4969
4973
|
class: "uid-tree-item__chevron uid-tree-item__chevron--placeholder",
|
|
4970
4974
|
"aria-hidden": "true"
|
|
4971
|
-
},
|
|
4975
|
+
}, bs = ["aria-checked"], xs = { class: "uid-tree-item__label" }, Ss = {
|
|
4972
4976
|
key: 0,
|
|
4973
4977
|
class: "uid-tree-item__children",
|
|
4974
4978
|
role: "group"
|
|
4975
|
-
},
|
|
4979
|
+
}, Cs = /* @__PURE__ */ f({
|
|
4976
4980
|
__name: "UidTreeItem",
|
|
4977
4981
|
props: {
|
|
4978
4982
|
node: {},
|
|
4979
4983
|
level: {}
|
|
4980
4984
|
},
|
|
4981
4985
|
setup(n) {
|
|
4982
|
-
let r = n, i = h(
|
|
4986
|
+
let r = n, i = h(hs);
|
|
4983
4987
|
if (!i) throw Error("UidTreeItem must be used inside UidTree");
|
|
4984
4988
|
let u = i, f = $(), p = O(null), m = a(() => !!r.node.children && r.node.children.length > 0), g = a(() => u.isExpanded(r.node.key)), _ = a(() => r.node.icon ? r.node.icon : m.value ? g.value ? me : pe : de), x = a(() => u.isSelected(r.node.key)), S = a(() => u.isChecked(r.node.key)), C = a(() => u.isIndeterminate(r.node.key)), w = a(() => u.disabled.value || !!r.node.disabled), E = a(() => u.focusedKey.value === r.node.key), D = a(() => w.value ? -1 : E.value || u.focusedKey.value === null && u.isFirst(r.node.key) ? 0 : -1);
|
|
4985
4989
|
U(E, (e) => {
|
|
@@ -5041,7 +5045,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5041
5045
|
}, [d(e, {
|
|
5042
5046
|
icon: F(se),
|
|
5043
5047
|
size: 14
|
|
5044
|
-
}, null, 8, ["icon"])], 10,
|
|
5048
|
+
}, null, 8, ["icon"])], 10, vs)) : (T(), c("span", ys)),
|
|
5045
5049
|
F(u).checkable.value ? (T(), c("span", {
|
|
5046
5050
|
key: 2,
|
|
5047
5051
|
class: y(["uid-tree-item__check", {
|
|
@@ -5055,7 +5059,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5055
5059
|
key: 0,
|
|
5056
5060
|
icon: F(re),
|
|
5057
5061
|
size: 12
|
|
5058
|
-
}, null, 8, ["icon"])) : s("", !0)], 10,
|
|
5062
|
+
}, null, 8, ["icon"])) : s("", !0)], 10, bs)) : s("", !0),
|
|
5059
5063
|
l("span", { class: y(["uid-tree-item__icon", {
|
|
5060
5064
|
"uid-tree-item__icon--branch": m.value,
|
|
5061
5065
|
"uid-tree-item__icon--leaf": !m.value
|
|
@@ -5063,15 +5067,15 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5063
5067
|
icon: _.value,
|
|
5064
5068
|
size: 16
|
|
5065
5069
|
}, null, 8, ["icon"])], 2),
|
|
5066
|
-
l("span",
|
|
5067
|
-
], 44,
|
|
5070
|
+
l("span", xs, N(n.node.label), 1)
|
|
5071
|
+
], 44, _s), m.value && g.value ? (T(), c("ul", Ss, [(T(!0), c(t, null, k(n.node.children, (e) => (T(), o(a, {
|
|
5068
5072
|
key: e.key,
|
|
5069
5073
|
node: e,
|
|
5070
5074
|
level: n.level + 1
|
|
5071
|
-
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10,
|
|
5075
|
+
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, gs);
|
|
5072
5076
|
};
|
|
5073
5077
|
}
|
|
5074
|
-
}),
|
|
5078
|
+
}), ws = "__virtual_root__", Ts = /* @__PURE__ */ f({
|
|
5075
5079
|
__name: "UidTreeView",
|
|
5076
5080
|
props: /* @__PURE__ */ g({
|
|
5077
5081
|
nodes: {},
|
|
@@ -5117,7 +5121,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5117
5121
|
let r = e, i = a(() => {
|
|
5118
5122
|
if (!r.virtualRoot) return r.nodes;
|
|
5119
5123
|
let e = typeof r.virtualRoot == "string" ? {
|
|
5120
|
-
key:
|
|
5124
|
+
key: ws,
|
|
5121
5125
|
label: r.virtualRoot,
|
|
5122
5126
|
selectable: !1
|
|
5123
5127
|
} : { ...r.virtualRoot };
|
|
@@ -5230,7 +5234,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5230
5234
|
function P(e) {
|
|
5231
5235
|
return D.value.get(e) ?? null;
|
|
5232
5236
|
}
|
|
5233
|
-
return E(
|
|
5237
|
+
return E(hs, {
|
|
5234
5238
|
selectable: a(() => r.selectable),
|
|
5235
5239
|
checkable: a(() => r.checkable),
|
|
5236
5240
|
disabled: a(() => r.disabled),
|
|
@@ -5253,13 +5257,13 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5253
5257
|
}), (n, r) => (T(), c("ul", {
|
|
5254
5258
|
class: y(["uid-tree", { "uid-tree--guides": e.showGuides }]),
|
|
5255
5259
|
role: "tree"
|
|
5256
|
-
}, [(T(!0), c(t, null, k(i.value, (e) => (T(), o(
|
|
5260
|
+
}, [(T(!0), c(t, null, k(i.value, (e) => (T(), o(Cs, {
|
|
5257
5261
|
key: e.key,
|
|
5258
5262
|
node: e,
|
|
5259
5263
|
level: 0
|
|
5260
5264
|
}, null, 8, ["node"]))), 128))], 2));
|
|
5261
5265
|
}
|
|
5262
|
-
}),
|
|
5266
|
+
}), Es = /* @__PURE__ */ f({
|
|
5263
5267
|
__name: "UidTimeline",
|
|
5264
5268
|
props: { alternate: {
|
|
5265
5269
|
type: Boolean,
|
|
@@ -5268,19 +5272,19 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5268
5272
|
setup(e) {
|
|
5269
5273
|
return (t, n) => (T(), c("ol", { class: y(["uid-timeline", { "uid-timeline--alternate": e.alternate }]) }, [A(t.$slots, "default")], 2));
|
|
5270
5274
|
}
|
|
5271
|
-
}),
|
|
5275
|
+
}), Ds = { class: "uid-timeline-item__rail" }, Os = { class: "uid-timeline-item__marker" }, ks = { class: "uid-timeline-item__content" }, As = {
|
|
5272
5276
|
key: 0,
|
|
5273
5277
|
class: "uid-timeline-item__time"
|
|
5274
|
-
},
|
|
5278
|
+
}, js = {
|
|
5275
5279
|
key: 1,
|
|
5276
5280
|
class: "uid-timeline-item__title"
|
|
5277
|
-
},
|
|
5281
|
+
}, Ms = {
|
|
5278
5282
|
key: 2,
|
|
5279
5283
|
class: "uid-timeline-item__description"
|
|
5280
|
-
},
|
|
5284
|
+
}, Ns = {
|
|
5281
5285
|
key: 3,
|
|
5282
5286
|
class: "uid-timeline-item__description"
|
|
5283
|
-
},
|
|
5287
|
+
}, Ps = /* @__PURE__ */ f({
|
|
5284
5288
|
__name: "UidTimelineItem",
|
|
5285
5289
|
props: {
|
|
5286
5290
|
title: {},
|
|
@@ -5290,37 +5294,37 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5290
5294
|
icon: {}
|
|
5291
5295
|
},
|
|
5292
5296
|
setup(t) {
|
|
5293
|
-
return (n, r) => (T(), c("li", { class: y(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div",
|
|
5297
|
+
return (n, r) => (T(), c("li", { class: y(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div", Ds, [l("div", Os, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
5294
5298
|
key: 0,
|
|
5295
5299
|
icon: t.icon,
|
|
5296
5300
|
size: 14
|
|
5297
5301
|
}, null, 8, ["icon"])) : s("", !0)])]), r[0] ||= l("div", {
|
|
5298
5302
|
class: "uid-timeline-item__line",
|
|
5299
5303
|
"aria-hidden": "true"
|
|
5300
|
-
}, null, -1)]), l("div",
|
|
5301
|
-
t.time || n.$slots.time ? (T(), c("p",
|
|
5302
|
-
t.title ? (T(), c("h4",
|
|
5303
|
-
t.description && !n.$slots.default ? (T(), c("p",
|
|
5304
|
-
n.$slots.default ? (T(), c("div",
|
|
5304
|
+
}, null, -1)]), l("div", ks, [
|
|
5305
|
+
t.time || n.$slots.time ? (T(), c("p", As, [A(n.$slots, "time", {}, () => [u(N(t.time), 1)])])) : s("", !0),
|
|
5306
|
+
t.title ? (T(), c("h4", js, N(t.title), 1)) : s("", !0),
|
|
5307
|
+
t.description && !n.$slots.default ? (T(), c("p", Ms, N(t.description), 1)) : s("", !0),
|
|
5308
|
+
n.$slots.default ? (T(), c("div", Ns, [A(n.$slots, "default")])) : s("", !0)
|
|
5305
5309
|
])], 2));
|
|
5306
5310
|
}
|
|
5307
|
-
}),
|
|
5311
|
+
}), Fs = ["for"], Is = {
|
|
5308
5312
|
key: 0,
|
|
5309
5313
|
class: "uid-file-upload__required",
|
|
5310
5314
|
"aria-hidden": "true"
|
|
5311
|
-
},
|
|
5315
|
+
}, Ls = ["aria-disabled", "aria-invalid"], Rs = { class: "uid-file-upload__primary-text" }, zs = ["innerHTML"], Bs = { class: "uid-file-upload__secondary-text" }, Vs = [
|
|
5312
5316
|
"id",
|
|
5313
5317
|
"multiple",
|
|
5314
5318
|
"accept",
|
|
5315
5319
|
"disabled",
|
|
5316
5320
|
"required"
|
|
5317
|
-
],
|
|
5321
|
+
], Hs = {
|
|
5318
5322
|
key: 1,
|
|
5319
5323
|
class: "uid-file-upload__list"
|
|
5320
|
-
},
|
|
5324
|
+
}, Us = { class: "uid-file-upload__file-info" }, Ws = { class: "uid-file-upload__file-name" }, Gs = { class: "uid-file-upload__file-meta" }, Ks = { key: 0 }, qs = { key: 1 }, Js = {
|
|
5321
5325
|
key: 0,
|
|
5322
5326
|
class: "uid-file-upload__progress"
|
|
5323
|
-
},
|
|
5327
|
+
}, Ys = ["aria-label", "onClick"], Xs = /* @__PURE__ */ f({
|
|
5324
5328
|
__name: "UidFileUpload",
|
|
5325
5329
|
props: /* @__PURE__ */ g({
|
|
5326
5330
|
multiple: {
|
|
@@ -5413,7 +5417,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5413
5417
|
key: 0,
|
|
5414
5418
|
for: F(v),
|
|
5415
5419
|
class: "uid-file-upload__label"
|
|
5416
|
-
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span",
|
|
5420
|
+
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span", Is, "*")) : s("", !0)], 8, Fs)) : s("", !0),
|
|
5417
5421
|
l("div", {
|
|
5418
5422
|
class: y(["uid-file-upload__dropzone", { "uid-file-upload__dropzone--active": _.value }]),
|
|
5419
5423
|
role: "button",
|
|
@@ -5432,8 +5436,8 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5432
5436
|
class: "uid-file-upload__icon",
|
|
5433
5437
|
"aria-hidden": "true"
|
|
5434
5438
|
}, null, 8, ["icon"]),
|
|
5435
|
-
l("p",
|
|
5436
|
-
l("p",
|
|
5439
|
+
l("p", Rs, [l("span", { innerHTML: f.value }, null, 8, zs)]),
|
|
5440
|
+
l("p", Bs, N(p.value), 1),
|
|
5437
5441
|
l("input", {
|
|
5438
5442
|
id: F(v),
|
|
5439
5443
|
ref_key: "inputRef",
|
|
@@ -5447,9 +5451,9 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5447
5451
|
disabled: n.disabled,
|
|
5448
5452
|
required: n.required,
|
|
5449
5453
|
onChange: D
|
|
5450
|
-
}, null, 40,
|
|
5451
|
-
], 42,
|
|
5452
|
-
h.value.length > 0 ? (T(), c("ul",
|
|
5454
|
+
}, null, 40, Vs)
|
|
5455
|
+
], 42, Ls),
|
|
5456
|
+
h.value.length > 0 ? (T(), c("ul", Hs, [(T(!0), c(t, null, k(h.value, (t) => (T(), c("li", {
|
|
5453
5457
|
key: t.id,
|
|
5454
5458
|
class: y(["uid-file-upload__item", { "uid-file-upload__item--error": t.error }])
|
|
5455
5459
|
}, [
|
|
@@ -5459,10 +5463,10 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5459
5463
|
class: "uid-file-upload__file-icon",
|
|
5460
5464
|
"aria-hidden": "true"
|
|
5461
5465
|
}, null, 8, ["icon"]),
|
|
5462
|
-
l("div",
|
|
5463
|
-
l("div",
|
|
5464
|
-
l("div",
|
|
5465
|
-
t.progress !== void 0 && !t.error ? (T(), c("div",
|
|
5466
|
+
l("div", Us, [
|
|
5467
|
+
l("div", Ws, N(t.file.name), 1),
|
|
5468
|
+
l("div", Gs, [l("span", null, N(C(t.file.size)), 1), t.error ? (T(), c("span", Ks, "— " + N(t.error), 1)) : t.progress === void 0 ? s("", !0) : (T(), c("span", qs, "— " + N(t.progress) + "%", 1))]),
|
|
5469
|
+
t.progress !== void 0 && !t.error ? (T(), c("div", Js, [l("div", {
|
|
5466
5470
|
class: "uid-file-upload__progress-bar",
|
|
5467
5471
|
style: b({ width: `${t.progress}%` })
|
|
5468
5472
|
}, null, 4)])) : s("", !0)
|
|
@@ -5475,7 +5479,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5475
5479
|
}, [d(e, {
|
|
5476
5480
|
icon: F(we),
|
|
5477
5481
|
size: 16
|
|
5478
|
-
}, null, 8, ["icon"])], 8,
|
|
5482
|
+
}, null, 8, ["icon"])], 8, Ys)
|
|
5479
5483
|
], 2))), 128))])) : s("", !0),
|
|
5480
5484
|
S.value ? (T(), c("p", {
|
|
5481
5485
|
key: 2,
|
|
@@ -5483,53 +5487,53 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5483
5487
|
}, N(S.value), 3)) : s("", !0)
|
|
5484
5488
|
], 2));
|
|
5485
5489
|
}
|
|
5486
|
-
}),
|
|
5490
|
+
}), Zs = (e, t = "") => RegExp(`\\b(?:${e.replace(/ /g, "|")})\\b`, t), Qs = /\/\*[\s\S]*?(?:\*\/|$)/, $s = /"(?:\\[\s\S]|[^"\\\n])*"?/, ec = /'(?:\\[\s\S]|[^'\\\n])*'?/, tc = /\b(?:0[xob][\da-f_]+|\d[\d_]*(?:\.\d+)?(?:e[+-]?\d+)?n?)\b/i, nc = /[A-Za-z_$][\w$]*(?=\s*\()/, rc = /[A-Za-z_$][\w$]*/, ic = /[{}()[\];,.<>=+\-*/%!&|^~?:@\\]+/, ac = { main: [
|
|
5487
5491
|
["comment", /\/\/.*/],
|
|
5488
|
-
["comment",
|
|
5489
|
-
["string", Qs],
|
|
5492
|
+
["comment", Qs],
|
|
5490
5493
|
["string", $s],
|
|
5494
|
+
["string", ec],
|
|
5491
5495
|
["string", /`(?:\\[\s\S]|[^`\\])*`?/],
|
|
5492
|
-
["number",
|
|
5493
|
-
["keyword",
|
|
5494
|
-
["literal",
|
|
5495
|
-
["function",
|
|
5496
|
-
["plain",
|
|
5497
|
-
["punctuation",
|
|
5498
|
-
] },
|
|
5496
|
+
["number", tc],
|
|
5497
|
+
["keyword", Zs("abstract as async await break case catch class const continue debugger declare default delete do else enum export extends finally for from function get if implements import in instanceof interface keyof let namespace new of private protected public readonly return set static super switch this throw try type typeof var void while with yield")],
|
|
5498
|
+
["literal", Zs("true false null undefined NaN Infinity")],
|
|
5499
|
+
["function", nc],
|
|
5500
|
+
["plain", rc],
|
|
5501
|
+
["punctuation", ic]
|
|
5502
|
+
] }, oc = { main: [
|
|
5499
5503
|
["tag", /<\?(?:php|=)?|\?>/i],
|
|
5500
5504
|
["comment", /(?:\/\/|#(?!\[)).*/],
|
|
5501
|
-
["comment",
|
|
5505
|
+
["comment", Qs],
|
|
5502
5506
|
["variable", /\$\w+/],
|
|
5503
|
-
["string", Qs],
|
|
5504
5507
|
["string", $s],
|
|
5505
|
-
["
|
|
5506
|
-
["
|
|
5507
|
-
["
|
|
5508
|
-
["
|
|
5509
|
-
["
|
|
5510
|
-
["
|
|
5511
|
-
|
|
5508
|
+
["string", ec],
|
|
5509
|
+
["number", tc],
|
|
5510
|
+
["keyword", Zs("abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty enum extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or parent print private protected public readonly require require_once return self static switch throw trait try unset use var while xor yield", "i")],
|
|
5511
|
+
["literal", Zs("true false null", "i")],
|
|
5512
|
+
["function", nc],
|
|
5513
|
+
["plain", rc],
|
|
5514
|
+
["punctuation", ic]
|
|
5515
|
+
] }, sc = { main: [
|
|
5512
5516
|
["property", /"(?:\\.|[^"\\\n])*"(?=\s*:)/],
|
|
5513
|
-
["string",
|
|
5517
|
+
["string", $s],
|
|
5514
5518
|
["number", /-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],
|
|
5515
|
-
["literal",
|
|
5519
|
+
["literal", Zs("true false null")],
|
|
5516
5520
|
["punctuation", /[{}[\],:]+/]
|
|
5517
|
-
] },
|
|
5521
|
+
] }, cc = { main: [
|
|
5518
5522
|
["comment", /--.*/],
|
|
5519
|
-
["comment",
|
|
5523
|
+
["comment", Qs],
|
|
5520
5524
|
["string", /'(?:''|[^'])*'?/],
|
|
5521
5525
|
["property", /"[^"]*"?|`[^`]*`?/],
|
|
5522
5526
|
["variable", /[:@]\w+/],
|
|
5523
|
-
["number",
|
|
5524
|
-
["keyword",
|
|
5525
|
-
["literal",
|
|
5526
|
-
["function",
|
|
5527
|
-
["plain",
|
|
5528
|
-
["punctuation",
|
|
5529
|
-
] },
|
|
5530
|
-
["comment",
|
|
5531
|
-
["string", Qs],
|
|
5527
|
+
["number", tc],
|
|
5528
|
+
["keyword", Zs("add all alter and as asc begin between by case cast check commit constraint create cross database default delete desc distinct drop else end exists foreign from full grant group having if in index inner insert into is join key left like limit not offset on or order outer over partition primary references replace returning revoke right rollback select set table then transaction truncate union unique update using values view when where with", "i")],
|
|
5529
|
+
["literal", Zs("true false null", "i")],
|
|
5530
|
+
["function", nc],
|
|
5531
|
+
["plain", rc],
|
|
5532
|
+
["punctuation", ic]
|
|
5533
|
+
] }, lc = { main: [
|
|
5534
|
+
["comment", Qs],
|
|
5532
5535
|
["string", $s],
|
|
5536
|
+
["string", ec],
|
|
5533
5537
|
["keyword", /@[\w-]+|!important/],
|
|
5534
5538
|
["property", /-{0,2}[A-Za-z][\w-]*(?=\s*:[^{;]*(?:[;}]|$))/],
|
|
5535
5539
|
["tag", /[.#]?-?[A-Za-z_][\w-]*(?=[^{};]*\{)/],
|
|
@@ -5537,7 +5541,7 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5537
5541
|
["function", /[\w-]+(?=\()/],
|
|
5538
5542
|
["plain", /[\w-]+/],
|
|
5539
5543
|
["punctuation", /[{}()[\];,:>+~*=]+/]
|
|
5540
|
-
] },
|
|
5544
|
+
] }, uc = {
|
|
5541
5545
|
main: [
|
|
5542
5546
|
["comment", /<!--[\s\S]*?(?:-->|$)/],
|
|
5543
5547
|
["keyword", /<![\s\S]*?>|<\?[\s\S]*?\?>/],
|
|
@@ -5560,51 +5564,51 @@ var Na = ["aria-expanded", "aria-disabled"], Pa = {
|
|
|
5560
5564
|
["attr", /[^\s=/>"']+/],
|
|
5561
5565
|
["plain", /\s+/]
|
|
5562
5566
|
]
|
|
5563
|
-
},
|
|
5567
|
+
}, dc = { main: [
|
|
5564
5568
|
["comment", /(?:^|[ \t])#.*/m],
|
|
5565
5569
|
["string", /"(?:\\[\s\S]|[^"\\])*"?/],
|
|
5566
5570
|
["string", /'[^']*'?/],
|
|
5567
5571
|
["variable", /\$(?:\{[^}]*\}?|\w+|[@#?$!*-])/],
|
|
5568
|
-
["keyword",
|
|
5572
|
+
["keyword", Zs("alias break case cd continue declare do done echo elif else esac eval exec exit export fi for function if in local read readonly return select set shift source then trap unset until while")],
|
|
5569
5573
|
["attr", /\s--?[A-Za-z][\w-]*/],
|
|
5570
5574
|
["number", /\b\d+\b/],
|
|
5571
5575
|
["function", /[A-Za-z_][\w-]*(?=\s*\(\s*\))/],
|
|
5572
5576
|
["plain", /[\w./-]+/],
|
|
5573
5577
|
["punctuation", /[|&;<>(){}[\]=!]+/]
|
|
5574
|
-
] },
|
|
5575
|
-
js:
|
|
5576
|
-
javascript:
|
|
5577
|
-
jsx:
|
|
5578
|
-
mjs:
|
|
5579
|
-
ts:
|
|
5580
|
-
typescript:
|
|
5581
|
-
tsx:
|
|
5582
|
-
php:
|
|
5583
|
-
json:
|
|
5584
|
-
sql:
|
|
5585
|
-
mysql:
|
|
5586
|
-
pgsql:
|
|
5587
|
-
postgresql:
|
|
5588
|
-
css:
|
|
5589
|
-
html:
|
|
5590
|
-
xml:
|
|
5591
|
-
vue:
|
|
5592
|
-
svg:
|
|
5593
|
-
markup:
|
|
5594
|
-
bash:
|
|
5595
|
-
sh:
|
|
5596
|
-
shell:
|
|
5597
|
-
zsh:
|
|
5598
|
-
},
|
|
5599
|
-
function pc(e) {
|
|
5600
|
-
let t = fc.get(e);
|
|
5601
|
-
return t || (t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "y"), fc.set(e, t)), t;
|
|
5602
|
-
}
|
|
5578
|
+
] }, fc = {
|
|
5579
|
+
js: ac,
|
|
5580
|
+
javascript: ac,
|
|
5581
|
+
jsx: ac,
|
|
5582
|
+
mjs: ac,
|
|
5583
|
+
ts: ac,
|
|
5584
|
+
typescript: ac,
|
|
5585
|
+
tsx: ac,
|
|
5586
|
+
php: oc,
|
|
5587
|
+
json: sc,
|
|
5588
|
+
sql: cc,
|
|
5589
|
+
mysql: cc,
|
|
5590
|
+
pgsql: cc,
|
|
5591
|
+
postgresql: cc,
|
|
5592
|
+
css: lc,
|
|
5593
|
+
html: uc,
|
|
5594
|
+
xml: uc,
|
|
5595
|
+
vue: uc,
|
|
5596
|
+
svg: uc,
|
|
5597
|
+
markup: uc,
|
|
5598
|
+
bash: dc,
|
|
5599
|
+
sh: dc,
|
|
5600
|
+
shell: dc,
|
|
5601
|
+
zsh: dc
|
|
5602
|
+
}, pc = /* @__PURE__ */ new WeakMap();
|
|
5603
5603
|
function mc(e) {
|
|
5604
|
-
|
|
5604
|
+
let t = pc.get(e);
|
|
5605
|
+
return t || (t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "y"), pc.set(e, t)), t;
|
|
5606
|
+
}
|
|
5607
|
+
function hc(e) {
|
|
5608
|
+
return !!e && e.toLowerCase() in fc;
|
|
5605
5609
|
}
|
|
5606
|
-
function
|
|
5607
|
-
let n = t ?
|
|
5610
|
+
function gc(e, t) {
|
|
5611
|
+
let n = t ? fc[t.toLowerCase()] : void 0;
|
|
5608
5612
|
if (!n) return e ? [{
|
|
5609
5613
|
type: "plain",
|
|
5610
5614
|
text: e
|
|
@@ -5619,7 +5623,7 @@ function hc(e, t) {
|
|
|
5619
5623
|
for (; o < e.length;) {
|
|
5620
5624
|
let t = !1;
|
|
5621
5625
|
for (let [r, s, c] of n[a]) {
|
|
5622
|
-
let n =
|
|
5626
|
+
let n = mc(s);
|
|
5623
5627
|
n.lastIndex = o;
|
|
5624
5628
|
let l = n.exec(e);
|
|
5625
5629
|
if (l && l[0]) {
|
|
@@ -5634,17 +5638,17 @@ function hc(e, t) {
|
|
|
5634
5638
|
}
|
|
5635
5639
|
//#endregion
|
|
5636
5640
|
//#region src/components/Code/UidCode.vue?vue&type=script&setup=true&lang.ts
|
|
5637
|
-
var
|
|
5641
|
+
var _c = {
|
|
5638
5642
|
key: 0,
|
|
5639
5643
|
class: "uid-code uid-code--inline"
|
|
5640
|
-
},
|
|
5644
|
+
}, vc = {
|
|
5641
5645
|
key: 0,
|
|
5642
5646
|
class: "uid-code__header"
|
|
5643
|
-
},
|
|
5647
|
+
}, yc = { class: "uid-code__lang" }, bc = ["aria-label"], xc = { class: "uid-code__body" }, Sc = {
|
|
5644
5648
|
key: 0,
|
|
5645
5649
|
class: "uid-code__line-numbers",
|
|
5646
5650
|
"aria-hidden": "true"
|
|
5647
|
-
},
|
|
5651
|
+
}, Cc = { class: "uid-code__pre" }, wc = ["data-language"], Tc = /* @__PURE__ */ f({
|
|
5648
5652
|
__name: "UidCode",
|
|
5649
5653
|
props: {
|
|
5650
5654
|
code: { default: "" },
|
|
@@ -5672,7 +5676,7 @@ var gc = {
|
|
|
5672
5676
|
}
|
|
5673
5677
|
},
|
|
5674
5678
|
setup(n) {
|
|
5675
|
-
let r = $(), i = n, f = O(!1), p = a(() => i.code.split("\n")), h = a(() => i.highlight &&
|
|
5679
|
+
let r = $(), i = n, f = O(!1), p = a(() => i.code.split("\n")), h = a(() => i.highlight && hc(i.language) ? gc(i.code, i.language) : null), g = () => h.value?.map((e) => e.type === "plain" ? e.text : m("span", { class: `uid-code__tok uid-code__tok--${e.type}` }, e.text)), _ = a(() => !i.inline && (i.language !== void 0 || i.copy));
|
|
5676
5680
|
async function v() {
|
|
5677
5681
|
if (navigator?.clipboard) try {
|
|
5678
5682
|
await navigator.clipboard.writeText(i.code), f.value = !0, setTimeout(() => {
|
|
@@ -5680,14 +5684,14 @@ var gc = {
|
|
|
5680
5684
|
}, 1500);
|
|
5681
5685
|
} catch {}
|
|
5682
5686
|
}
|
|
5683
|
-
return (i, a) => n.inline ? (T(), c("code",
|
|
5687
|
+
return (i, a) => n.inline ? (T(), c("code", _c, [A(i.$slots, "default", {}, () => [u(N(n.code), 1)])])) : (T(), c("div", {
|
|
5684
5688
|
key: 1,
|
|
5685
5689
|
class: y(["uid-code", {
|
|
5686
5690
|
"uid-code--minimal": !_.value,
|
|
5687
5691
|
"uid-code--wrap": n.wrap
|
|
5688
5692
|
}]),
|
|
5689
5693
|
style: b(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
5690
|
-
}, [_.value ? (T(), c("div",
|
|
5694
|
+
}, [_.value ? (T(), c("div", vc, [l("span", yc, N(n.language || ""), 1), n.copy ? (T(), c("button", {
|
|
5691
5695
|
key: 0,
|
|
5692
5696
|
type: "button",
|
|
5693
5697
|
class: y(["uid-code__copy", { "uid-code__copy--copied": f.value }]),
|
|
@@ -5697,24 +5701,24 @@ var gc = {
|
|
|
5697
5701
|
icon: f.value ? F(re) : F(ue),
|
|
5698
5702
|
size: 12,
|
|
5699
5703
|
"aria-hidden": "true"
|
|
5700
|
-
}, null, 8, ["icon"]), l("span", null, N(f.value ? F(r).copy.copied : F(r).copy.copy), 1)], 10,
|
|
5704
|
+
}, null, 8, ["icon"]), l("span", null, N(f.value ? F(r).copy.copied : F(r).copy.copy), 1)], 10, bc)) : s("", !0)])) : s("", !0), l("div", xc, [n.lineNumbers ? (T(), c("div", Sc, [(T(!0), c(t, null, k(p.value, (e, t) => (T(), c("span", {
|
|
5701
5705
|
key: t,
|
|
5702
5706
|
class: "uid-code__line-number"
|
|
5703
|
-
}, N(t + 1), 1))), 128))])) : s("", !0), l("pre",
|
|
5707
|
+
}, N(t + 1), 1))), 128))])) : s("", !0), l("pre", Cc, [l("code", { "data-language": n.language || void 0 }, [A(i.$slots, "default", {}, () => [h.value ? (T(), o(g, { key: 0 })) : (T(), c(t, { key: 1 }, [u(N(n.code), 1)], 64))])], 8, wc)])])], 6));
|
|
5704
5708
|
}
|
|
5705
|
-
}),
|
|
5709
|
+
}), Ec = ["data-status"], Dc = ["aria-label"], Oc = {
|
|
5706
5710
|
key: 0,
|
|
5707
5711
|
class: "uid-image__placeholder",
|
|
5708
5712
|
"aria-hidden": "true"
|
|
5709
|
-
},
|
|
5713
|
+
}, kc = ["aria-label"], Ac = [
|
|
5710
5714
|
"src",
|
|
5711
5715
|
"alt",
|
|
5712
5716
|
"loading"
|
|
5713
|
-
],
|
|
5717
|
+
], jc = [
|
|
5714
5718
|
"src",
|
|
5715
5719
|
"alt",
|
|
5716
5720
|
"loading"
|
|
5717
|
-
],
|
|
5721
|
+
], Mc = { class: "uid-image__preview" }, Nc = ["src", "alt"], Pc = /* @__PURE__ */ f({
|
|
5718
5722
|
__name: "UidImage",
|
|
5719
5723
|
props: {
|
|
5720
5724
|
src: {},
|
|
@@ -5784,7 +5788,7 @@ var gc = {
|
|
|
5784
5788
|
}, [A(r.$slots, "fallback", {}, () => [d(e, {
|
|
5785
5789
|
icon: F(he),
|
|
5786
5790
|
size: 24
|
|
5787
|
-
}, null, 8, ["icon"])])], 8,
|
|
5791
|
+
}, null, 8, ["icon"])])], 8, Dc)) : (T(), c(t, { key: 1 }, [p.value === "loading" ? (T(), c("div", Oc, [A(r.$slots, "placeholder")])) : s("", !0), _.value ? (T(), c("button", {
|
|
5788
5792
|
key: 1,
|
|
5789
5793
|
type: "button",
|
|
5790
5794
|
class: "uid-image__trigger",
|
|
@@ -5799,7 +5803,7 @@ var gc = {
|
|
|
5799
5803
|
decoding: "async",
|
|
5800
5804
|
onLoad: C,
|
|
5801
5805
|
onError: w
|
|
5802
|
-
}, null, 40,
|
|
5806
|
+
}, null, 40, Ac)], 8, kc)) : (T(), c("img", {
|
|
5803
5807
|
key: 2,
|
|
5804
5808
|
class: "uid-image__img",
|
|
5805
5809
|
src: g.value,
|
|
@@ -5808,40 +5812,40 @@ var gc = {
|
|
|
5808
5812
|
decoding: "async",
|
|
5809
5813
|
onLoad: C,
|
|
5810
5814
|
onError: w
|
|
5811
|
-
}, null, 40,
|
|
5815
|
+
}, null, 40, jc))], 64)), n.preview ? (T(), o(Ln, {
|
|
5812
5816
|
key: 2,
|
|
5813
5817
|
modelValue: h.value,
|
|
5814
5818
|
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
5815
5819
|
size: "full",
|
|
5816
5820
|
title: n.alt
|
|
5817
5821
|
}, {
|
|
5818
|
-
default: G(() => [l("div",
|
|
5822
|
+
default: G(() => [l("div", Mc, [l("img", {
|
|
5819
5823
|
class: "uid-image__preview-img",
|
|
5820
5824
|
src: n.previewSrc || g.value,
|
|
5821
5825
|
alt: n.alt
|
|
5822
|
-
}, null, 8,
|
|
5826
|
+
}, null, 8, Nc)])]),
|
|
5823
5827
|
_: 1
|
|
5824
|
-
}, 8, ["modelValue", "title"])) : s("", !0)], 14,
|
|
5828
|
+
}, 8, ["modelValue", "title"])) : s("", !0)], 14, Ec));
|
|
5825
5829
|
}
|
|
5826
|
-
}),
|
|
5830
|
+
}), Fc = [
|
|
5827
5831
|
"aria-valuemax",
|
|
5828
5832
|
"aria-valuenow",
|
|
5829
5833
|
"aria-readonly",
|
|
5830
5834
|
"aria-disabled",
|
|
5831
5835
|
"aria-label"
|
|
5832
|
-
],
|
|
5836
|
+
], Ic = [
|
|
5833
5837
|
"tabindex",
|
|
5834
5838
|
"aria-label",
|
|
5835
5839
|
"onClick",
|
|
5836
5840
|
"onMousemove",
|
|
5837
5841
|
"onKeydown"
|
|
5838
|
-
],
|
|
5842
|
+
], Lc = {
|
|
5839
5843
|
class: "uid-rating__icon",
|
|
5840
5844
|
"aria-hidden": "true"
|
|
5841
|
-
},
|
|
5845
|
+
}, Rc = ["data-half"], zc = {
|
|
5842
5846
|
key: 0,
|
|
5843
5847
|
class: "uid-rating__label"
|
|
5844
|
-
},
|
|
5848
|
+
}, Bc = /* @__PURE__ */ f({
|
|
5845
5849
|
__name: "UidRating",
|
|
5846
5850
|
props: /* @__PURE__ */ g({
|
|
5847
5851
|
max: { default: 5 },
|
|
@@ -5945,21 +5949,21 @@ var gc = {
|
|
|
5945
5949
|
onClick: (e) => v(e, t),
|
|
5946
5950
|
onMousemove: (e) => b(e, t),
|
|
5947
5951
|
onKeydown: (e) => S(e, t)
|
|
5948
|
-
}, [l("span",
|
|
5952
|
+
}, [l("span", Lc, [d(e, { icon: h.value }, null, 8, ["icon"])]), g(t).full ? (T(), c("span", {
|
|
5949
5953
|
key: 0,
|
|
5950
5954
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
5951
5955
|
"data-half": g(t).half ? "true" : "false",
|
|
5952
5956
|
"aria-hidden": "true"
|
|
5953
|
-
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8,
|
|
5957
|
+
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8, Rc)) : s("", !0)], 40, Ic))), 128)), n.showLabel ? (T(), c("span", zc, N(u.value.toFixed(+!!n.allowHalf)) + " / " + N(n.max), 1)) : s("", !0)], 42, Fc));
|
|
5954
5958
|
}
|
|
5955
|
-
}),
|
|
5959
|
+
}), Vc = [
|
|
5956
5960
|
"tabindex",
|
|
5957
5961
|
"aria-orientation",
|
|
5958
5962
|
"aria-valuemin",
|
|
5959
5963
|
"aria-valuemax",
|
|
5960
5964
|
"aria-valuenow",
|
|
5961
5965
|
"aria-disabled"
|
|
5962
|
-
],
|
|
5966
|
+
], Hc = { class: "uid-splitter__pane uid-splitter__pane--end" }, Uc = /* @__PURE__ */ f({
|
|
5963
5967
|
__name: "UidSplitter",
|
|
5964
5968
|
props: /* @__PURE__ */ g({
|
|
5965
5969
|
direction: { default: "horizontal" },
|
|
@@ -6037,27 +6041,27 @@ var gc = {
|
|
|
6037
6041
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6038
6042
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6039
6043
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
6040
|
-
], -1)]], 40,
|
|
6041
|
-
l("div",
|
|
6044
|
+
], -1)]], 40, Vc),
|
|
6045
|
+
l("div", Hc, [A(t.$slots, "end")])
|
|
6042
6046
|
], 2));
|
|
6043
6047
|
}
|
|
6044
|
-
}),
|
|
6048
|
+
}), Wc = {
|
|
6045
6049
|
key: 0,
|
|
6046
6050
|
class: "uid-stat__icon",
|
|
6047
6051
|
"aria-hidden": "true"
|
|
6048
|
-
},
|
|
6052
|
+
}, Gc = { class: "uid-stat__body" }, Kc = {
|
|
6049
6053
|
key: 0,
|
|
6050
6054
|
class: "uid-stat__title"
|
|
6051
|
-
},
|
|
6055
|
+
}, qc = { class: "uid-stat__value-row" }, Jc = { class: "uid-stat__value" }, Yc = {
|
|
6052
6056
|
key: 0,
|
|
6053
6057
|
class: "uid-stat__prefix"
|
|
6054
|
-
},
|
|
6058
|
+
}, Xc = {
|
|
6055
6059
|
key: 1,
|
|
6056
6060
|
class: "uid-stat__suffix"
|
|
6057
|
-
},
|
|
6061
|
+
}, Zc = {
|
|
6058
6062
|
key: 1,
|
|
6059
6063
|
class: "uid-stat__footer"
|
|
6060
|
-
},
|
|
6064
|
+
}, Qc = /* @__PURE__ */ f({
|
|
6061
6065
|
__name: "UidStat",
|
|
6062
6066
|
props: {
|
|
6063
6067
|
title: {},
|
|
@@ -6083,16 +6087,16 @@ var gc = {
|
|
|
6083
6087
|
`uid-stat--${t.tone}`,
|
|
6084
6088
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
6085
6089
|
t.loading && "uid-stat--loading"
|
|
6086
|
-
]]) }, [t.icon || n.$slots.icon ? (T(), c("span",
|
|
6090
|
+
]]) }, [t.icon || n.$slots.icon ? (T(), c("span", Wc, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
6087
6091
|
key: 0,
|
|
6088
6092
|
icon: t.icon,
|
|
6089
6093
|
size: 20
|
|
6090
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
6091
|
-
t.title ? (T(), c("p",
|
|
6092
|
-
l("div",
|
|
6093
|
-
t.prefix ? (T(), c("span",
|
|
6094
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", Gc, [
|
|
6095
|
+
t.title ? (T(), c("p", Kc, N(t.title), 1)) : s("", !0),
|
|
6096
|
+
l("div", qc, [l("span", Jc, [A(n.$slots, "value", {}, () => [
|
|
6097
|
+
t.prefix ? (T(), c("span", Yc, N(t.prefix), 1)) : s("", !0),
|
|
6094
6098
|
l("span", null, N(r.value), 1),
|
|
6095
|
-
t.suffix ? (T(), c("span",
|
|
6099
|
+
t.suffix ? (T(), c("span", Xc, N(t.suffix), 1)) : s("", !0)
|
|
6096
6100
|
])]), t.trend !== void 0 || n.$slots.trend ? (T(), c("span", {
|
|
6097
6101
|
key: 0,
|
|
6098
6102
|
class: y(["uid-stat__trend", i.value && `uid-stat__trend--${i.value}`])
|
|
@@ -6101,13 +6105,13 @@ var gc = {
|
|
|
6101
6105
|
icon: d.value,
|
|
6102
6106
|
size: 12
|
|
6103
6107
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, N(f.value), 1)])], 2)) : s("", !0)]),
|
|
6104
|
-
t.footer || n.$slots.footer ? (T(), c("p",
|
|
6108
|
+
t.footer || n.$slots.footer ? (T(), c("p", Zc, [A(n.$slots, "footer", {}, () => [u(N(t.footer), 1)])])) : s("", !0)
|
|
6105
6109
|
])], 2));
|
|
6106
6110
|
}
|
|
6107
|
-
}),
|
|
6111
|
+
}), $c = Symbol("UidDescriptionList"), el = {
|
|
6108
6112
|
key: 0,
|
|
6109
6113
|
class: "uid-description-list__title"
|
|
6110
|
-
},
|
|
6114
|
+
}, tl = /* @__PURE__ */ f({
|
|
6111
6115
|
__name: "UidDescriptionList",
|
|
6112
6116
|
props: {
|
|
6113
6117
|
title: {},
|
|
@@ -6122,7 +6126,7 @@ var gc = {
|
|
|
6122
6126
|
},
|
|
6123
6127
|
setup(e) {
|
|
6124
6128
|
let t = e;
|
|
6125
|
-
E(
|
|
6129
|
+
E($c, {
|
|
6126
6130
|
direction: a(() => t.direction),
|
|
6127
6131
|
bordered: a(() => t.bordered)
|
|
6128
6132
|
});
|
|
@@ -6134,12 +6138,12 @@ var gc = {
|
|
|
6134
6138
|
`uid-description-list--${e.direction}`,
|
|
6135
6139
|
`uid-description-list--${e.size}`,
|
|
6136
6140
|
e.bordered && "uid-description-list--bordered"
|
|
6137
|
-
]]) }, [e.title || t.$slots.title ? (T(), c("h3",
|
|
6141
|
+
]]) }, [e.title || t.$slots.title ? (T(), c("h3", el, [A(t.$slots, "title", {}, () => [u(N(e.title), 1)])])) : s("", !0), l("dl", {
|
|
6138
6142
|
class: "uid-description-list__grid",
|
|
6139
6143
|
style: b(n.value)
|
|
6140
6144
|
}, [A(t.$slots, "default")], 4)], 2));
|
|
6141
6145
|
}
|
|
6142
|
-
}),
|
|
6146
|
+
}), nl = { class: "uid-description-item__label" }, rl = { class: "uid-description-item__value" }, il = ["aria-label"], al = /* @__PURE__ */ f({
|
|
6143
6147
|
__name: "UidDescriptionItem",
|
|
6144
6148
|
props: {
|
|
6145
6149
|
label: {},
|
|
@@ -6152,7 +6156,7 @@ var gc = {
|
|
|
6152
6156
|
},
|
|
6153
6157
|
setup(t) {
|
|
6154
6158
|
let n = $(), r = t;
|
|
6155
|
-
h(
|
|
6159
|
+
h($c, null);
|
|
6156
6160
|
let i = O(null), o = O(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
6157
6161
|
async function p() {
|
|
6158
6162
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -6167,7 +6171,7 @@ var gc = {
|
|
|
6167
6171
|
ref: i,
|
|
6168
6172
|
class: "uid-description-item",
|
|
6169
6173
|
style: b(f.value)
|
|
6170
|
-
}, [l("dt",
|
|
6174
|
+
}, [l("dt", nl, [A(r.$slots, "label", {}, () => [u(N(t.label), 1)])]), l("dd", rl, [A(r.$slots, "default"), t.copyable ? (T(), c("button", {
|
|
6171
6175
|
key: 0,
|
|
6172
6176
|
type: "button",
|
|
6173
6177
|
class: y(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -6176,24 +6180,24 @@ var gc = {
|
|
|
6176
6180
|
}, [d(e, {
|
|
6177
6181
|
icon: o.value ? F(re) : F(ue),
|
|
6178
6182
|
size: 12
|
|
6179
|
-
}, null, 8, ["icon"])], 10,
|
|
6183
|
+
}, null, 8, ["icon"])], 10, il)) : s("", !0)])], 4));
|
|
6180
6184
|
}
|
|
6181
|
-
}),
|
|
6185
|
+
}), ol = {
|
|
6182
6186
|
class: "uid-pattern-result__icon",
|
|
6183
6187
|
"aria-hidden": "true"
|
|
6184
|
-
},
|
|
6188
|
+
}, sl = {
|
|
6185
6189
|
key: 0,
|
|
6186
6190
|
class: "uid-pattern-result__title"
|
|
6187
|
-
},
|
|
6191
|
+
}, cl = {
|
|
6188
6192
|
key: 1,
|
|
6189
6193
|
class: "uid-pattern-result__description"
|
|
6190
|
-
},
|
|
6194
|
+
}, ll = {
|
|
6191
6195
|
key: 2,
|
|
6192
6196
|
class: "uid-pattern-result__content"
|
|
6193
|
-
},
|
|
6197
|
+
}, ul = {
|
|
6194
6198
|
key: 3,
|
|
6195
6199
|
class: "uid-pattern-result__actions"
|
|
6196
|
-
},
|
|
6200
|
+
}, dl = /* @__PURE__ */ f({
|
|
6197
6201
|
__name: "UidResult",
|
|
6198
6202
|
props: {
|
|
6199
6203
|
status: { default: "success" },
|
|
@@ -6215,17 +6219,17 @@ var gc = {
|
|
|
6215
6219
|
class: y(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
6216
6220
|
role: "status"
|
|
6217
6221
|
}, [
|
|
6218
|
-
l("div",
|
|
6222
|
+
l("div", ol, [A(n.$slots, "icon", {}, () => [d(e, {
|
|
6219
6223
|
icon: i.value,
|
|
6220
6224
|
size: t.compact ? 32 : 40
|
|
6221
6225
|
}, null, 8, ["icon", "size"])])]),
|
|
6222
|
-
t.title || n.$slots.title ? (T(), c("h2",
|
|
6223
|
-
t.description || n.$slots.description ? (T(), c("p",
|
|
6224
|
-
n.$slots.default ? (T(), c("div",
|
|
6225
|
-
n.$slots.actions ? (T(), c("div",
|
|
6226
|
+
t.title || n.$slots.title ? (T(), c("h2", sl, [A(n.$slots, "title", {}, () => [u(N(t.title), 1)])])) : s("", !0),
|
|
6227
|
+
t.description || n.$slots.description ? (T(), c("p", cl, [A(n.$slots, "description", {}, () => [u(N(t.description), 1)])])) : s("", !0),
|
|
6228
|
+
n.$slots.default ? (T(), c("div", ll, [A(n.$slots, "default")])) : s("", !0),
|
|
6229
|
+
n.$slots.actions ? (T(), c("div", ul, [A(n.$slots, "actions")])) : s("", !0)
|
|
6226
6230
|
], 2));
|
|
6227
6231
|
}
|
|
6228
|
-
}),
|
|
6232
|
+
}), fl = ["aria-label"], pl = /* @__PURE__ */ f({
|
|
6229
6233
|
__name: "UidBackTop",
|
|
6230
6234
|
props: {
|
|
6231
6235
|
visibleAfter: { default: 200 },
|
|
@@ -6273,11 +6277,11 @@ var gc = {
|
|
|
6273
6277
|
}, [A(t.$slots, "default", {}, () => [d(e, {
|
|
6274
6278
|
icon: F(Q),
|
|
6275
6279
|
size: 20
|
|
6276
|
-
}, null, 8, ["icon"])])], 8,
|
|
6280
|
+
}, null, 8, ["icon"])])], 8, fl), [[H, f.value]])]),
|
|
6277
6281
|
_: 3
|
|
6278
6282
|
}));
|
|
6279
6283
|
}
|
|
6280
|
-
}),
|
|
6284
|
+
}), ml = { class: "uid-affix__content" }, hl = /* @__PURE__ */ f({
|
|
6281
6285
|
__name: "UidAffix",
|
|
6282
6286
|
props: {
|
|
6283
6287
|
offsetTop: {},
|
|
@@ -6307,9 +6311,9 @@ var gc = {
|
|
|
6307
6311
|
ref: o,
|
|
6308
6312
|
class: "uid-affix__sentinel",
|
|
6309
6313
|
"aria-hidden": "true"
|
|
6310
|
-
}, null, 512), l("div",
|
|
6314
|
+
}, null, 512), l("div", ml, [A(e.$slots, "default")])], 6));
|
|
6311
6315
|
}
|
|
6312
|
-
}),
|
|
6316
|
+
}), gl = { class: "uid-watermark" }, _l = { class: "uid-watermark__content" }, vl = /* @__PURE__ */ f({
|
|
6313
6317
|
__name: "UidWatermark",
|
|
6314
6318
|
props: {
|
|
6315
6319
|
content: { default: "" },
|
|
@@ -6356,27 +6360,27 @@ var gc = {
|
|
|
6356
6360
|
i();
|
|
6357
6361
|
}), C(() => {
|
|
6358
6362
|
n.value = "";
|
|
6359
|
-
}), (e, t) => (T(), c("div",
|
|
6363
|
+
}), (e, t) => (T(), c("div", gl, [l("div", {
|
|
6360
6364
|
class: "uid-watermark__overlay",
|
|
6361
6365
|
style: b(o.value),
|
|
6362
6366
|
"aria-hidden": "true"
|
|
6363
|
-
}, null, 4), l("div",
|
|
6367
|
+
}, null, 4), l("div", _l, [A(e.$slots, "default")])]));
|
|
6364
6368
|
}
|
|
6365
|
-
}),
|
|
6369
|
+
}), yl = {
|
|
6366
6370
|
class: "uid-anchor",
|
|
6367
6371
|
"aria-label": "Содержание"
|
|
6368
|
-
},
|
|
6372
|
+
}, bl = { class: "uid-anchor__list" }, xl = [
|
|
6369
6373
|
"href",
|
|
6370
6374
|
"aria-current",
|
|
6371
6375
|
"onClick"
|
|
6372
|
-
],
|
|
6376
|
+
], Sl = {
|
|
6373
6377
|
key: 0,
|
|
6374
6378
|
class: "uid-anchor__sublist"
|
|
6375
|
-
},
|
|
6379
|
+
}, Cl = [
|
|
6376
6380
|
"href",
|
|
6377
6381
|
"aria-current",
|
|
6378
6382
|
"onClick"
|
|
6379
|
-
],
|
|
6383
|
+
], wl = /* @__PURE__ */ f({
|
|
6380
6384
|
__name: "UidAnchor",
|
|
6381
6385
|
props: /* @__PURE__ */ g({
|
|
6382
6386
|
items: {},
|
|
@@ -6440,7 +6444,7 @@ var gc = {
|
|
|
6440
6444
|
behavior: r.smooth ? "smooth" : "auto"
|
|
6441
6445
|
});
|
|
6442
6446
|
}
|
|
6443
|
-
return (n, r) => (T(), c("nav",
|
|
6447
|
+
return (n, r) => (T(), c("nav", yl, [l("ul", bl, [(T(!0), c(t, null, k(e.items, (e) => (T(), c("li", {
|
|
6444
6448
|
key: e.key,
|
|
6445
6449
|
class: "uid-anchor__item"
|
|
6446
6450
|
}, [l("a", {
|
|
@@ -6448,7 +6452,7 @@ var gc = {
|
|
|
6448
6452
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
6449
6453
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
6450
6454
|
onClick: (t) => m(t, e)
|
|
6451
|
-
}, N(e.title), 11,
|
|
6455
|
+
}, N(e.title), 11, xl), e.children?.length ? (T(), c("ul", Sl, [(T(!0), c(t, null, k(e.children, (e) => (T(), c("li", {
|
|
6452
6456
|
key: e.key,
|
|
6453
6457
|
class: "uid-anchor__item"
|
|
6454
6458
|
}, [l("a", {
|
|
@@ -6456,18 +6460,18 @@ var gc = {
|
|
|
6456
6460
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
6457
6461
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
6458
6462
|
onClick: (t) => m(t, e)
|
|
6459
|
-
}, N(e.title), 11,
|
|
6463
|
+
}, N(e.title), 11, Cl)]))), 128))])) : s("", !0)]))), 128))])]));
|
|
6460
6464
|
}
|
|
6461
|
-
}),
|
|
6465
|
+
}), Tl = ["aria-label"], El = {
|
|
6462
6466
|
key: 0,
|
|
6463
6467
|
class: "uid-tour__title"
|
|
6464
|
-
},
|
|
6468
|
+
}, Dl = {
|
|
6465
6469
|
key: 1,
|
|
6466
6470
|
class: "uid-tour__description"
|
|
6467
|
-
},
|
|
6471
|
+
}, Ol = { class: "uid-tour__footer" }, kl = {
|
|
6468
6472
|
key: 0,
|
|
6469
6473
|
class: "uid-tour__progress"
|
|
6470
|
-
},
|
|
6474
|
+
}, Al = { key: 1 }, jl = { class: "uid-tour__actions" }, Ml = /* @__PURE__ */ f({
|
|
6471
6475
|
__name: "UidTour",
|
|
6472
6476
|
props: /* @__PURE__ */ g({
|
|
6473
6477
|
steps: {},
|
|
@@ -6606,9 +6610,9 @@ var gc = {
|
|
|
6606
6610
|
class: y(["uid-tour__popover", { "uid-tour__popover--center": P.value }]),
|
|
6607
6611
|
style: b(P.value ? void 0 : M.value)
|
|
6608
6612
|
}, [
|
|
6609
|
-
E.value.title ? (T(), c("h3",
|
|
6610
|
-
E.value.description ? (T(), c("p",
|
|
6611
|
-
l("div",
|
|
6613
|
+
E.value.title ? (T(), c("h3", El, N(E.value.title), 1)) : s("", !0),
|
|
6614
|
+
E.value.description ? (T(), c("p", Dl, N(E.value.description), 1)) : s("", !0),
|
|
6615
|
+
l("div", Ol, [e.showProgress ? (T(), c("span", kl, N(g.value + 1) + " / " + N(e.steps.length), 1)) : (T(), c("span", Al)), l("div", jl, [
|
|
6612
6616
|
e.showSkip && g.value < e.steps.length - 1 ? (T(), c("button", {
|
|
6613
6617
|
key: 0,
|
|
6614
6618
|
type: "button",
|
|
@@ -6628,21 +6632,21 @@ var gc = {
|
|
|
6628
6632
|
}, N(g.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
6629
6633
|
])])
|
|
6630
6634
|
], 6)
|
|
6631
|
-
], 8,
|
|
6635
|
+
], 8, Tl)) : s("", !0)]));
|
|
6632
6636
|
}
|
|
6633
|
-
}),
|
|
6637
|
+
}), Nl = ["for"], Pl = [
|
|
6634
6638
|
"id",
|
|
6635
6639
|
"value",
|
|
6636
6640
|
"placeholder",
|
|
6637
6641
|
"rows",
|
|
6638
6642
|
"disabled"
|
|
6639
|
-
],
|
|
6643
|
+
], Fl = ["onMousedown", "onMouseenter"], Il = { class: "uid-mention__option-label" }, Ll = {
|
|
6640
6644
|
key: 0,
|
|
6641
6645
|
class: "uid-mention__option-hint"
|
|
6642
|
-
},
|
|
6646
|
+
}, Rl = {
|
|
6643
6647
|
key: 0,
|
|
6644
6648
|
class: "uid-mention__empty"
|
|
6645
|
-
},
|
|
6649
|
+
}, zl = /* @__PURE__ */ f({
|
|
6646
6650
|
__name: "UidMention",
|
|
6647
6651
|
props: /* @__PURE__ */ g({
|
|
6648
6652
|
options: {},
|
|
@@ -6720,7 +6724,7 @@ var gc = {
|
|
|
6720
6724
|
key: 0,
|
|
6721
6725
|
for: F(p),
|
|
6722
6726
|
class: "uid-mention__label"
|
|
6723
|
-
}, N(e.label), 9,
|
|
6727
|
+
}, N(e.label), 9, Nl)) : s("", !0),
|
|
6724
6728
|
l("textarea", {
|
|
6725
6729
|
id: F(p),
|
|
6726
6730
|
ref_key: "fieldRef",
|
|
@@ -6735,7 +6739,7 @@ var gc = {
|
|
|
6735
6739
|
onKeydown: P,
|
|
6736
6740
|
onKeyup: E,
|
|
6737
6741
|
onBlur: r[0] ||= (e) => m.value = !1
|
|
6738
|
-
}, null, 40,
|
|
6742
|
+
}, null, 40, Pl),
|
|
6739
6743
|
m.value ? (T(), c("div", {
|
|
6740
6744
|
key: 1,
|
|
6741
6745
|
class: "uid-mention__dropdown",
|
|
@@ -6746,30 +6750,30 @@ var gc = {
|
|
|
6746
6750
|
class: y(["uid-mention__option", { "uid-mention__option--active": t === g.value }]),
|
|
6747
6751
|
onMousedown: J((t) => A(e), ["prevent"]),
|
|
6748
6752
|
onMouseenter: (e) => g.value = t
|
|
6749
|
-
}, [l("span",
|
|
6753
|
+
}, [l("span", Il, N(e.label), 1), e.hint ? (T(), c("span", Ll, N(e.hint), 1)) : s("", !0)], 42, Fl))), 128)), w.value.length === 0 ? (T(), c("div", Rl, N(o.value), 1)) : s("", !0)], 4)) : s("", !0)
|
|
6750
6754
|
], 2));
|
|
6751
6755
|
}
|
|
6752
|
-
}),
|
|
6756
|
+
}), Bl = ["for"], Vl = {
|
|
6753
6757
|
key: 0,
|
|
6754
6758
|
class: "uid-tree-select__required",
|
|
6755
6759
|
"aria-hidden": "true"
|
|
6756
|
-
},
|
|
6760
|
+
}, Hl = [
|
|
6757
6761
|
"id",
|
|
6758
6762
|
"aria-expanded",
|
|
6759
6763
|
"aria-controls",
|
|
6760
6764
|
"aria-label",
|
|
6761
6765
|
"aria-disabled",
|
|
6762
6766
|
"aria-invalid"
|
|
6763
|
-
],
|
|
6767
|
+
], Ul = { class: "uid-tree-select__value" }, Wl = ["aria-label", "onClick"], Gl = {
|
|
6764
6768
|
key: 0,
|
|
6765
6769
|
class: "uid-tree-select__chip"
|
|
6766
|
-
},
|
|
6770
|
+
}, Kl = {
|
|
6767
6771
|
key: 1,
|
|
6768
6772
|
class: "uid-tree-select__placeholder"
|
|
6769
|
-
},
|
|
6773
|
+
}, ql = { key: 0 }, Jl = {
|
|
6770
6774
|
key: 1,
|
|
6771
6775
|
class: "uid-tree-select__placeholder"
|
|
6772
|
-
},
|
|
6776
|
+
}, Yl = { class: "uid-tree-select__suffix" }, Xl = ["aria-label"], Zl = ["id"], Ql = /* @__PURE__ */ f({
|
|
6773
6777
|
__name: "UidTreeSelect",
|
|
6774
6778
|
props: /* @__PURE__ */ g({
|
|
6775
6779
|
nodes: {},
|
|
@@ -6897,7 +6901,7 @@ var gc = {
|
|
|
6897
6901
|
key: 0,
|
|
6898
6902
|
for: F(x),
|
|
6899
6903
|
class: "uid-tree-select__label"
|
|
6900
|
-
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span",
|
|
6904
|
+
}, [u(N(n.label) + " ", 1), n.required ? (T(), c("span", Vl, "*")) : s("", !0)], 8, Bl)) : s("", !0),
|
|
6901
6905
|
l("div", {
|
|
6902
6906
|
id: F(x),
|
|
6903
6907
|
ref_key: "triggerRef",
|
|
@@ -6913,7 +6917,7 @@ var gc = {
|
|
|
6913
6917
|
"aria-invalid": w.value ? "true" : void 0,
|
|
6914
6918
|
onClick: W,
|
|
6915
6919
|
onKeydown: Z
|
|
6916
|
-
}, [l("div",
|
|
6920
|
+
}, [l("div", Ul, [j.value ? (T(), c(t, { key: 0 }, [
|
|
6917
6921
|
(T(!0), c(t, null, k(z.value, (e) => (T(), c("span", {
|
|
6918
6922
|
key: e.key,
|
|
6919
6923
|
class: "uid-tree-select__chip"
|
|
@@ -6922,10 +6926,10 @@ var gc = {
|
|
|
6922
6926
|
class: "uid-tree-select__chip-remove",
|
|
6923
6927
|
"aria-label": F(f).treeSelect.removeTag(e.label),
|
|
6924
6928
|
onClick: J((t) => X(t, e.key), ["stop"])
|
|
6925
|
-
}, "×", 8,
|
|
6926
|
-
B.value > 0 ? (T(), c("span",
|
|
6927
|
-
I.value.length === 0 ? (T(), c("span",
|
|
6928
|
-
], 64)) : (T(), c(t, { key: 1 }, [I.value.length > 0 ? (T(), c("span",
|
|
6929
|
+
}, "×", 8, Wl)]))), 128)),
|
|
6930
|
+
B.value > 0 ? (T(), c("span", Gl, "+" + N(B.value), 1)) : s("", !0),
|
|
6931
|
+
I.value.length === 0 ? (T(), c("span", Kl, N(p.value), 1)) : s("", !0)
|
|
6932
|
+
], 64)) : (T(), c(t, { key: 1 }, [I.value.length > 0 ? (T(), c("span", ql, N(I.value[0].label), 1)) : (T(), c("span", Jl, N(p.value), 1))], 64))]), l("div", Yl, [n.clearable && P.value.length > 0 ? (T(), c("button", {
|
|
6929
6933
|
key: 0,
|
|
6930
6934
|
type: "button",
|
|
6931
6935
|
class: "uid-tree-select__clear",
|
|
@@ -6934,17 +6938,17 @@ var gc = {
|
|
|
6934
6938
|
}, [d(e, {
|
|
6935
6939
|
icon: F(we),
|
|
6936
6940
|
size: 14
|
|
6937
|
-
}, null, 8, ["icon"])], 8,
|
|
6941
|
+
}, null, 8, ["icon"])], 8, Xl)) : s("", !0), d(e, {
|
|
6938
6942
|
icon: F(ae),
|
|
6939
6943
|
size: 16,
|
|
6940
6944
|
class: y(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": _.value }]),
|
|
6941
6945
|
"aria-hidden": "true"
|
|
6942
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
6946
|
+
}, null, 8, ["icon", "class"])])], 40, Hl),
|
|
6943
6947
|
_.value ? (T(), c("div", {
|
|
6944
6948
|
key: 1,
|
|
6945
6949
|
id: F(S),
|
|
6946
6950
|
class: "uid-tree-select__dropdown"
|
|
6947
|
-
}, [n.checkable ? (T(), o(
|
|
6951
|
+
}, [n.checkable ? (T(), o(Ts, {
|
|
6948
6952
|
key: 0,
|
|
6949
6953
|
"expanded-keys": g.value,
|
|
6950
6954
|
"onUpdate:expandedKeys": i[0] ||= (e) => g.value = e,
|
|
@@ -6963,7 +6967,7 @@ var gc = {
|
|
|
6963
6967
|
"check-strictly",
|
|
6964
6968
|
"default-expand-all",
|
|
6965
6969
|
"show-guides"
|
|
6966
|
-
])) : (T(), o(
|
|
6970
|
+
])) : (T(), o(Ts, {
|
|
6967
6971
|
key: 1,
|
|
6968
6972
|
"expanded-keys": g.value,
|
|
6969
6973
|
"onUpdate:expandedKeys": i[2] ||= (e) => g.value = e,
|
|
@@ -6980,19 +6984,19 @@ var gc = {
|
|
|
6980
6984
|
"selectable",
|
|
6981
6985
|
"default-expand-all",
|
|
6982
6986
|
"show-guides"
|
|
6983
|
-
]))], 8,
|
|
6987
|
+
]))], 8, Zl)) : s("", !0),
|
|
6984
6988
|
E.value ? (T(), c("p", {
|
|
6985
6989
|
key: 2,
|
|
6986
6990
|
class: y(["uid-tree-select__hint", w.value && "uid-tree-select__hint--error"])
|
|
6987
6991
|
}, N(E.value), 3)) : s("", !0)
|
|
6988
6992
|
], 2));
|
|
6989
6993
|
}
|
|
6990
|
-
}),
|
|
6994
|
+
}), $l = {
|
|
6991
6995
|
key: 0,
|
|
6992
6996
|
class: "uid-notification-badge__dot",
|
|
6993
6997
|
role: "status",
|
|
6994
6998
|
"aria-hidden": "true"
|
|
6995
|
-
},
|
|
6999
|
+
}, eu = ["aria-label"], tu = /* @__PURE__ */ f({
|
|
6996
7000
|
__name: "UidNotificationBadge",
|
|
6997
7001
|
props: {
|
|
6998
7002
|
count: { default: 0 },
|
|
@@ -7019,22 +7023,22 @@ var gc = {
|
|
|
7019
7023
|
return (t, a) => (T(), c("span", {
|
|
7020
7024
|
class: y(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
7021
7025
|
style: b(i.value)
|
|
7022
|
-
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span",
|
|
7026
|
+
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span", $l)) : n.value ? (T(), c("span", {
|
|
7023
7027
|
key: 1,
|
|
7024
7028
|
class: "uid-notification-badge__count",
|
|
7025
7029
|
role: "status",
|
|
7026
7030
|
"aria-label": `${e.count}`
|
|
7027
|
-
}, N(r.value), 9,
|
|
7031
|
+
}, N(r.value), 9, eu)) : s("", !0)], 6));
|
|
7028
7032
|
}
|
|
7029
|
-
}),
|
|
7033
|
+
}), nu = ["aria-hidden", "aria-label"], ru = ["disabled"], iu = ["disabled"], au = {
|
|
7030
7034
|
key: 2,
|
|
7031
7035
|
class: "uid-carousel__indicators",
|
|
7032
7036
|
role: "tablist"
|
|
7033
|
-
},
|
|
7037
|
+
}, ou = [
|
|
7034
7038
|
"aria-selected",
|
|
7035
7039
|
"aria-label",
|
|
7036
7040
|
"onClick"
|
|
7037
|
-
],
|
|
7041
|
+
], su = /* @__PURE__ */ f({
|
|
7038
7042
|
__name: "UidCarousel",
|
|
7039
7043
|
props: /* @__PURE__ */ g({
|
|
7040
7044
|
items: {},
|
|
@@ -7126,7 +7130,7 @@ var gc = {
|
|
|
7126
7130
|
}, [A(r.$slots, "default", {
|
|
7127
7131
|
item: e,
|
|
7128
7132
|
index: t
|
|
7129
|
-
})], 8,
|
|
7133
|
+
})], 8, nu))), 128))], 4),
|
|
7130
7134
|
n.showArrows && g.value > 1 ? (T(), c("button", {
|
|
7131
7135
|
key: 0,
|
|
7132
7136
|
type: "button",
|
|
@@ -7137,7 +7141,7 @@ var gc = {
|
|
|
7137
7141
|
}, [d(e, {
|
|
7138
7142
|
icon: n.direction === "vertical" ? F(ce) : F(oe),
|
|
7139
7143
|
size: 20
|
|
7140
|
-
}, null, 8, ["icon"])], 8,
|
|
7144
|
+
}, null, 8, ["icon"])], 8, ru)) : s("", !0),
|
|
7141
7145
|
n.showArrows && g.value > 1 ? (T(), c("button", {
|
|
7142
7146
|
key: 1,
|
|
7143
7147
|
type: "button",
|
|
@@ -7148,8 +7152,8 @@ var gc = {
|
|
|
7148
7152
|
}, [d(e, {
|
|
7149
7153
|
icon: n.direction === "vertical" ? F(ae) : F(se),
|
|
7150
7154
|
size: 20
|
|
7151
|
-
}, null, 8, ["icon"])], 8,
|
|
7152
|
-
n.showIndicators && g.value > 1 ? (T(), c("div",
|
|
7155
|
+
}, null, 8, ["icon"])], 8, iu)) : s("", !0),
|
|
7156
|
+
n.showIndicators && g.value > 1 ? (T(), c("div", au, [(T(!0), c(t, null, k(n.items, (e, t) => (T(), c("button", {
|
|
7153
7157
|
key: t,
|
|
7154
7158
|
type: "button",
|
|
7155
7159
|
class: y(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === f.value }]),
|
|
@@ -7157,38 +7161,38 @@ var gc = {
|
|
|
7157
7161
|
"aria-selected": t === f.value,
|
|
7158
7162
|
"aria-label": `Слайд ${t + 1}`,
|
|
7159
7163
|
onClick: (e) => v(t)
|
|
7160
|
-
}, null, 10,
|
|
7164
|
+
}, null, 10, ou))), 128))])) : s("", !0)
|
|
7161
7165
|
], 34));
|
|
7162
7166
|
}
|
|
7163
|
-
}),
|
|
7167
|
+
}), cu = { class: "uid-transfer__panel" }, lu = { class: "uid-transfer__header" }, uu = { class: "uid-transfer__title" }, du = ["aria-checked"], fu = { class: "uid-transfer__count" }, pu = {
|
|
7164
7168
|
key: 0,
|
|
7165
7169
|
class: "uid-transfer__search"
|
|
7166
|
-
},
|
|
7170
|
+
}, mu = ["placeholder"], hu = {
|
|
7167
7171
|
class: "uid-transfer__list",
|
|
7168
7172
|
role: "listbox",
|
|
7169
7173
|
"aria-multiselectable": "true"
|
|
7170
|
-
},
|
|
7174
|
+
}, gu = [
|
|
7171
7175
|
"aria-selected",
|
|
7172
7176
|
"aria-disabled",
|
|
7173
7177
|
"onClick"
|
|
7174
|
-
],
|
|
7178
|
+
], _u = { class: "uid-transfer__label" }, vu = {
|
|
7175
7179
|
key: 0,
|
|
7176
7180
|
class: "uid-transfer__empty"
|
|
7177
|
-
},
|
|
7181
|
+
}, yu = { class: "uid-transfer__ops" }, bu = ["disabled"], xu = ["disabled"], Su = { class: "uid-transfer__panel" }, Cu = { class: "uid-transfer__header" }, wu = { class: "uid-transfer__title" }, Tu = ["aria-checked"], Eu = { class: "uid-transfer__count" }, Du = {
|
|
7178
7182
|
key: 0,
|
|
7179
7183
|
class: "uid-transfer__search"
|
|
7180
|
-
},
|
|
7184
|
+
}, Ou = ["placeholder"], ku = {
|
|
7181
7185
|
class: "uid-transfer__list",
|
|
7182
7186
|
role: "listbox",
|
|
7183
7187
|
"aria-multiselectable": "true"
|
|
7184
|
-
},
|
|
7188
|
+
}, Au = [
|
|
7185
7189
|
"aria-selected",
|
|
7186
7190
|
"aria-disabled",
|
|
7187
7191
|
"onClick"
|
|
7188
|
-
],
|
|
7192
|
+
], ju = { class: "uid-transfer__label" }, Mu = {
|
|
7189
7193
|
key: 0,
|
|
7190
7194
|
class: "uid-transfer__empty"
|
|
7191
|
-
},
|
|
7195
|
+
}, Nu = /* @__PURE__ */ f({
|
|
7192
7196
|
__name: "UidTransfer",
|
|
7193
7197
|
props: /* @__PURE__ */ g({
|
|
7194
7198
|
items: {},
|
|
@@ -7239,8 +7243,8 @@ var gc = {
|
|
|
7239
7243
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
7240
7244
|
}
|
|
7241
7245
|
return (r, i) => (T(), c("div", { class: y(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
7242
|
-
l("div",
|
|
7243
|
-
l("div",
|
|
7246
|
+
l("div", cu, [
|
|
7247
|
+
l("div", lu, [l("span", uu, [l("span", {
|
|
7244
7248
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": j.value }]),
|
|
7245
7249
|
role: "checkbox",
|
|
7246
7250
|
"aria-checked": j.value,
|
|
@@ -7251,14 +7255,14 @@ var gc = {
|
|
|
7251
7255
|
key: 0,
|
|
7252
7256
|
icon: F(re),
|
|
7253
7257
|
size: 10
|
|
7254
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7255
|
-
n.searchable ? (T(), c("div",
|
|
7258
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, du), u(" " + N(b.value[0]), 1)]), l("span", fu, N(h.value.size) + " / " + N(w.value.length), 1)]),
|
|
7259
|
+
n.searchable ? (T(), c("div", pu, [K(l("input", {
|
|
7256
7260
|
"onUpdate:modelValue": i[3] ||= (e) => _.value = e,
|
|
7257
7261
|
class: "uid-transfer__search-input",
|
|
7258
7262
|
type: "text",
|
|
7259
7263
|
placeholder: F(m).common.search
|
|
7260
|
-
}, null, 8,
|
|
7261
|
-
l("ul",
|
|
7264
|
+
}, null, 8, mu), [[V, _.value]])])) : s("", !0),
|
|
7265
|
+
l("ul", hu, [(T(!0), c(t, null, k(w.value, (t) => (T(), c("li", {
|
|
7262
7266
|
key: t.key,
|
|
7263
7267
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7264
7268
|
role: "option",
|
|
@@ -7272,9 +7276,9 @@ var gc = {
|
|
|
7272
7276
|
key: 0,
|
|
7273
7277
|
icon: F(re),
|
|
7274
7278
|
size: 10
|
|
7275
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
7279
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", _u, N(t.label), 1)], 10, gu))), 128)), w.value.length === 0 ? (T(), c("li", vu, N(F(m).common.noResults), 1)) : s("", !0)])
|
|
7276
7280
|
]),
|
|
7277
|
-
l("div",
|
|
7281
|
+
l("div", yu, [l("button", {
|
|
7278
7282
|
type: "button",
|
|
7279
7283
|
class: "uid-transfer__op",
|
|
7280
7284
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -7283,7 +7287,7 @@ var gc = {
|
|
|
7283
7287
|
}, [d(e, {
|
|
7284
7288
|
icon: F(se),
|
|
7285
7289
|
size: 16
|
|
7286
|
-
}, null, 8, ["icon"])], 8,
|
|
7290
|
+
}, null, 8, ["icon"])], 8, bu), l("button", {
|
|
7287
7291
|
type: "button",
|
|
7288
7292
|
class: "uid-transfer__op",
|
|
7289
7293
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -7292,9 +7296,9 @@ var gc = {
|
|
|
7292
7296
|
}, [d(e, {
|
|
7293
7297
|
icon: F(oe),
|
|
7294
7298
|
size: 16
|
|
7295
|
-
}, null, 8, ["icon"])], 8,
|
|
7296
|
-
l("div",
|
|
7297
|
-
l("div",
|
|
7299
|
+
}, null, 8, ["icon"])], 8, xu)]),
|
|
7300
|
+
l("div", Su, [
|
|
7301
|
+
l("div", Cu, [l("span", wu, [l("span", {
|
|
7298
7302
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": M.value }]),
|
|
7299
7303
|
role: "checkbox",
|
|
7300
7304
|
"aria-checked": M.value,
|
|
@@ -7305,14 +7309,14 @@ var gc = {
|
|
|
7305
7309
|
key: 0,
|
|
7306
7310
|
icon: F(re),
|
|
7307
7311
|
size: 10
|
|
7308
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7309
|
-
n.searchable ? (T(), c("div",
|
|
7312
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Tu), u(" " + N(b.value[1]), 1)]), l("span", Eu, N(g.value.size) + " / " + N(E.value.length), 1)]),
|
|
7313
|
+
n.searchable ? (T(), c("div", Du, [K(l("input", {
|
|
7310
7314
|
"onUpdate:modelValue": i[7] ||= (e) => v.value = e,
|
|
7311
7315
|
class: "uid-transfer__search-input",
|
|
7312
7316
|
type: "text",
|
|
7313
7317
|
placeholder: F(m).common.search
|
|
7314
|
-
}, null, 8,
|
|
7315
|
-
l("ul",
|
|
7318
|
+
}, null, 8, Ou), [[V, v.value]])])) : s("", !0),
|
|
7319
|
+
l("ul", ku, [(T(!0), c(t, null, k(E.value, (t) => (T(), c("li", {
|
|
7316
7320
|
key: t.key,
|
|
7317
7321
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7318
7322
|
role: "option",
|
|
@@ -7326,63 +7330,63 @@ var gc = {
|
|
|
7326
7330
|
key: 0,
|
|
7327
7331
|
icon: F(re),
|
|
7328
7332
|
size: 10
|
|
7329
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
7333
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", ju, N(t.label), 1)], 10, Au))), 128)), E.value.length === 0 ? (T(), c("li", Mu, N(F(m).common.noResults), 1)) : s("", !0)])
|
|
7330
7334
|
])
|
|
7331
7335
|
], 2));
|
|
7332
7336
|
}
|
|
7333
|
-
}),
|
|
7337
|
+
}), Pu = {
|
|
7334
7338
|
key: 0,
|
|
7335
7339
|
class: "uid-cascader__label"
|
|
7336
|
-
},
|
|
7340
|
+
}, Fu = [
|
|
7337
7341
|
"aria-expanded",
|
|
7338
7342
|
"aria-disabled",
|
|
7339
7343
|
"aria-label"
|
|
7340
|
-
],
|
|
7344
|
+
], Iu = { class: "uid-cascader__value" }, Lu = {
|
|
7341
7345
|
key: 0,
|
|
7342
7346
|
class: "uid-cascader__separator"
|
|
7343
|
-
},
|
|
7347
|
+
}, Ru = {
|
|
7344
7348
|
key: 1,
|
|
7345
7349
|
class: "uid-cascader__placeholder"
|
|
7346
|
-
},
|
|
7350
|
+
}, zu = { class: "uid-cascader__suffix" }, Bu = ["aria-label"], Vu = {
|
|
7347
7351
|
key: 1,
|
|
7348
7352
|
class: "uid-cascader__dropdown"
|
|
7349
|
-
},
|
|
7353
|
+
}, Hu = {
|
|
7350
7354
|
key: 0,
|
|
7351
7355
|
class: "uid-cascader__search"
|
|
7352
|
-
},
|
|
7356
|
+
}, Uu = [
|
|
7353
7357
|
"aria-expanded",
|
|
7354
7358
|
"aria-controls",
|
|
7355
7359
|
"aria-activedescendant",
|
|
7356
7360
|
"aria-label",
|
|
7357
7361
|
"placeholder"
|
|
7358
|
-
],
|
|
7362
|
+
], Wu = ["id"], Gu = [
|
|
7359
7363
|
"id",
|
|
7360
7364
|
"aria-selected",
|
|
7361
7365
|
"onMouseenter",
|
|
7362
7366
|
"onClick"
|
|
7363
|
-
],
|
|
7367
|
+
], Ku = {
|
|
7364
7368
|
key: 0,
|
|
7365
7369
|
class: "uid-cascader__separator"
|
|
7366
|
-
},
|
|
7370
|
+
}, qu = {
|
|
7367
7371
|
key: 0,
|
|
7368
7372
|
class: "uid-cascader__highlight"
|
|
7369
|
-
},
|
|
7373
|
+
}, Ju = {
|
|
7370
7374
|
key: 0,
|
|
7371
7375
|
class: "uid-cascader__empty",
|
|
7372
7376
|
role: "presentation"
|
|
7373
|
-
},
|
|
7377
|
+
}, Yu = {
|
|
7374
7378
|
key: 2,
|
|
7375
7379
|
class: "uid-cascader__columns"
|
|
7376
|
-
},
|
|
7380
|
+
}, Xu = [
|
|
7377
7381
|
"aria-haspopup",
|
|
7378
7382
|
"aria-expanded",
|
|
7379
7383
|
"aria-disabled",
|
|
7380
7384
|
"onClick",
|
|
7381
7385
|
"onMouseenter"
|
|
7382
|
-
],
|
|
7386
|
+
], Zu = { class: "uid-cascader__option-label" }, Qu = {
|
|
7383
7387
|
key: 2,
|
|
7384
7388
|
class: "uid-cascader__hint"
|
|
7385
|
-
},
|
|
7389
|
+
}, $u = /* @__PURE__ */ f({
|
|
7386
7390
|
__name: "UidCascader",
|
|
7387
7391
|
props: /* @__PURE__ */ g({
|
|
7388
7392
|
options: {},
|
|
@@ -7560,7 +7564,7 @@ var gc = {
|
|
|
7560
7564
|
"uid-cascader--disabled": n.disabled
|
|
7561
7565
|
}])
|
|
7562
7566
|
}, [
|
|
7563
|
-
n.label ? (T(), c("label",
|
|
7567
|
+
n.label ? (T(), c("label", Pu, N(n.label), 1)) : s("", !0),
|
|
7564
7568
|
l("div", {
|
|
7565
7569
|
ref_key: "triggerRef",
|
|
7566
7570
|
ref: S,
|
|
@@ -7573,7 +7577,7 @@ var gc = {
|
|
|
7573
7577
|
"aria-label": h.value,
|
|
7574
7578
|
onClick: Z,
|
|
7575
7579
|
onKeydown: ce
|
|
7576
|
-
}, [l("div",
|
|
7580
|
+
}, [l("div", Iu, [Y.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(Y.value, (e, r) => (T(), c(t, { key: r }, [l("span", null, N(e), 1), r < Y.value.length - 1 ? (T(), c("span", Lu, N(n.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", Ru, N(h.value), 1))]), l("div", zu, [n.clearable && p.value.length > 0 ? (T(), c("button", {
|
|
7577
7581
|
key: 0,
|
|
7578
7582
|
type: "button",
|
|
7579
7583
|
class: "uid-cascader__clear",
|
|
@@ -7582,12 +7586,12 @@ var gc = {
|
|
|
7582
7586
|
}, [d(e, {
|
|
7583
7587
|
icon: F(we),
|
|
7584
7588
|
size: 14
|
|
7585
|
-
}, null, 8, ["icon"])], 8,
|
|
7589
|
+
}, null, 8, ["icon"])], 8, Bu)) : s("", !0), d(e, {
|
|
7586
7590
|
icon: F(ae),
|
|
7587
7591
|
size: 16,
|
|
7588
7592
|
class: y(["uid-cascader__chevron", { "uid-cascader__chevron--open": g.value }])
|
|
7589
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
7590
|
-
g.value ? (T(), c("div",
|
|
7593
|
+
}, null, 8, ["icon", "class"])])], 40, Fu),
|
|
7594
|
+
g.value ? (T(), c("div", Vu, [n.searchable ? (T(), c("div", Hu, [K(l("input", {
|
|
7591
7595
|
ref_key: "searchRef",
|
|
7592
7596
|
ref: x,
|
|
7593
7597
|
"onUpdate:modelValue": i[0] ||= (e) => w.value = e,
|
|
@@ -7602,7 +7606,7 @@ var gc = {
|
|
|
7602
7606
|
"aria-label": n.searchPlaceholder ?? F(m).common.search,
|
|
7603
7607
|
placeholder: n.searchPlaceholder ?? F(m).common.search,
|
|
7604
7608
|
onKeydown: H
|
|
7605
|
-
}, null, 40,
|
|
7609
|
+
}, null, 40, Uu), [[V, w.value]])])) : s("", !0), P.value ? (T(), c("ul", {
|
|
7606
7610
|
key: 1,
|
|
7607
7611
|
id: F(D),
|
|
7608
7612
|
class: "uid-cascader__results",
|
|
@@ -7616,7 +7620,7 @@ var gc = {
|
|
|
7616
7620
|
onMousedown: i[1] ||= J(() => {}, ["prevent"]),
|
|
7617
7621
|
onMouseenter: (e) => E.value = r,
|
|
7618
7622
|
onClick: (t) => B(e)
|
|
7619
|
-
}, [(T(!0), c(t, null, k(e.path, (e, r) => (T(), c(t, { key: r }, [r > 0 ? (T(), c("span",
|
|
7623
|
+
}, [(T(!0), c(t, null, k(e.path, (e, r) => (T(), c(t, { key: r }, [r > 0 ? (T(), c("span", Ku, N(n.separator), 1)) : s("", !0), l("span", null, [(T(!0), c(t, null, k(I(e.label), (e, n) => (T(), c(t, { key: n }, [e.match ? (T(), c("mark", qu, N(e.text), 1)) : (T(), c(t, { key: 1 }, [u(N(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, Gu))), 128)), M.value.length === 0 ? (T(), c("li", Ju, N(F(m).common.noResults), 1)) : s("", !0)], 8, Wu)) : (T(), c("div", Yu, [(T(!0), c(t, null, k(G.value, (r, i) => (T(), c("div", {
|
|
7620
7624
|
key: i,
|
|
7621
7625
|
class: "uid-cascader__column"
|
|
7622
7626
|
}, [(T(!0), c(t, null, k(r, (t) => (T(), c("button", {
|
|
@@ -7632,27 +7636,27 @@ var gc = {
|
|
|
7632
7636
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
7633
7637
|
onClick: (e) => ne(t, i),
|
|
7634
7638
|
onMouseenter: (e) => re(t, i)
|
|
7635
|
-
}, [l("span",
|
|
7639
|
+
}, [l("span", Zu, N(t.label), 1), t.children?.length ? (T(), o(e, {
|
|
7636
7640
|
key: 0,
|
|
7637
7641
|
icon: F(se),
|
|
7638
7642
|
size: 14,
|
|
7639
7643
|
class: "uid-cascader__option-arrow",
|
|
7640
7644
|
"aria-hidden": "true"
|
|
7641
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7642
|
-
n.hint ? (T(), c("p",
|
|
7645
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Xu))), 128))]))), 128))]))])) : s("", !0),
|
|
7646
|
+
n.hint ? (T(), c("p", Qu, N(n.hint), 1)) : s("", !0)
|
|
7643
7647
|
], 2));
|
|
7644
7648
|
}
|
|
7645
|
-
}),
|
|
7649
|
+
}), ed = { class: "uid-calendar__header" }, td = { class: "uid-calendar__title" }, nd = { class: "uid-calendar__nav" }, rd = ["aria-label"], id = ["aria-label"], ad = { class: "uid-calendar__weekdays" }, od = { class: "uid-calendar__grid" }, sd = [
|
|
7646
7650
|
"tabindex",
|
|
7647
7651
|
"aria-current",
|
|
7648
7652
|
"aria-selected",
|
|
7649
7653
|
"aria-label",
|
|
7650
7654
|
"onClick",
|
|
7651
7655
|
"onKeydown"
|
|
7652
|
-
],
|
|
7656
|
+
], cd = { class: "uid-calendar__date" }, ld = { class: "uid-calendar__events" }, ud = ["title", "onClick"], dd = { class: "uid-calendar__event-label" }, fd = {
|
|
7653
7657
|
key: 0,
|
|
7654
7658
|
class: "uid-calendar__more"
|
|
7655
|
-
},
|
|
7659
|
+
}, pd = /* @__PURE__ */ f({
|
|
7656
7660
|
__name: "UidCalendar",
|
|
7657
7661
|
props: /* @__PURE__ */ g({
|
|
7658
7662
|
events: { default: () => [] },
|
|
@@ -7739,7 +7743,7 @@ var gc = {
|
|
|
7739
7743
|
e.stopPropagation(), o("event-click", t);
|
|
7740
7744
|
}
|
|
7741
7745
|
return (r, i) => (T(), c("div", { class: y(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
7742
|
-
l("div",
|
|
7746
|
+
l("div", ed, [l("span", td, N(x.value), 1), l("div", nd, [
|
|
7743
7747
|
l("button", {
|
|
7744
7748
|
type: "button",
|
|
7745
7749
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -7748,7 +7752,7 @@ var gc = {
|
|
|
7748
7752
|
}, [d(e, {
|
|
7749
7753
|
icon: F(oe),
|
|
7750
7754
|
size: 14
|
|
7751
|
-
}, null, 8, ["icon"])], 8,
|
|
7755
|
+
}, null, 8, ["icon"])], 8, rd),
|
|
7752
7756
|
l("button", {
|
|
7753
7757
|
type: "button",
|
|
7754
7758
|
class: "uid-calendar__btn",
|
|
@@ -7762,13 +7766,13 @@ var gc = {
|
|
|
7762
7766
|
}, [d(e, {
|
|
7763
7767
|
icon: F(se),
|
|
7764
7768
|
size: 14
|
|
7765
|
-
}, null, 8, ["icon"])], 8,
|
|
7769
|
+
}, null, 8, ["icon"])], 8, id)
|
|
7766
7770
|
])]),
|
|
7767
|
-
l("div",
|
|
7771
|
+
l("div", ad, [(T(!0), c(t, null, k(F(f).datePicker.weekdaysShort, (e) => (T(), c("span", {
|
|
7768
7772
|
key: e,
|
|
7769
7773
|
class: "uid-calendar__weekday"
|
|
7770
7774
|
}, N(e), 1))), 128))]),
|
|
7771
|
-
l("div",
|
|
7775
|
+
l("div", od, [(T(!0), c(t, null, k(w.value, (e) => (T(), c("div", {
|
|
7772
7776
|
key: e.iso,
|
|
7773
7777
|
class: y(["uid-calendar__day", {
|
|
7774
7778
|
"uid-calendar__day--other": !e.current,
|
|
@@ -7783,30 +7787,30 @@ var gc = {
|
|
|
7783
7787
|
"aria-label": e.iso,
|
|
7784
7788
|
onClick: (t) => M(e),
|
|
7785
7789
|
onKeydown: [q(J((t) => M(e), ["prevent"]), ["enter"]), q(J((t) => M(e), ["prevent"]), ["space"])]
|
|
7786
|
-
}, [l("span",
|
|
7790
|
+
}, [l("span", cd, N(e.date.getDate()), 1), l("div", ld, [(T(!0), c(t, null, k(e.events.slice(0, n.maxEventsPerDay), (t, n) => (T(), c("button", {
|
|
7787
7791
|
key: t.id ?? `${e.iso}-${n}`,
|
|
7788
7792
|
type: "button",
|
|
7789
7793
|
class: "uid-calendar__event",
|
|
7790
7794
|
style: b(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
7791
7795
|
title: t.title,
|
|
7792
7796
|
onClick: (e) => P(e, t)
|
|
7793
|
-
}, [l("span",
|
|
7797
|
+
}, [l("span", dd, N(t.title), 1)], 12, ud))), 128)), e.events.length > n.maxEventsPerDay ? (T(), c("span", fd, "+" + N(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, sd))), 128))])
|
|
7794
7798
|
], 2));
|
|
7795
7799
|
}
|
|
7796
|
-
}),
|
|
7800
|
+
}), md = ["aria-label"], hd = [
|
|
7797
7801
|
"viewBox",
|
|
7798
7802
|
"width",
|
|
7799
7803
|
"height"
|
|
7800
|
-
],
|
|
7804
|
+
], gd = [
|
|
7801
7805
|
"x2",
|
|
7802
7806
|
"y1",
|
|
7803
7807
|
"y2"
|
|
7804
|
-
],
|
|
7808
|
+
], _d = [
|
|
7805
7809
|
"x",
|
|
7806
7810
|
"y",
|
|
7807
7811
|
"width",
|
|
7808
7812
|
"height"
|
|
7809
|
-
],
|
|
7813
|
+
], vd = ["d"], yd = ["d"], bd = ["cx", "cy"], xd = ["cx", "cy"], Sd = 2, Cd = /* @__PURE__ */ f({
|
|
7810
7814
|
__name: "UidSparkline",
|
|
7811
7815
|
props: {
|
|
7812
7816
|
data: {},
|
|
@@ -7849,11 +7853,11 @@ var gc = {
|
|
|
7849
7853
|
};
|
|
7850
7854
|
});
|
|
7851
7855
|
function i(e, t) {
|
|
7852
|
-
return t <= 1 ? n.width / 2 :
|
|
7856
|
+
return t <= 1 ? n.width / 2 : Sd + e / (t - 1) * (n.width - Sd * 2);
|
|
7853
7857
|
}
|
|
7854
7858
|
function o(e) {
|
|
7855
7859
|
let t = r.value, i = (e - t.min) / (t.max - t.min);
|
|
7856
|
-
return n.height -
|
|
7860
|
+
return n.height - Sd - i * (n.height - Sd * 2);
|
|
7857
7861
|
}
|
|
7858
7862
|
let u = a(() => n.data.map((e, t) => ({
|
|
7859
7863
|
x: i(t, n.data.length),
|
|
@@ -7872,14 +7876,14 @@ var gc = {
|
|
|
7872
7876
|
}), f = a(() => {
|
|
7873
7877
|
let e = u.value;
|
|
7874
7878
|
if (e.length === 0) return "";
|
|
7875
|
-
let t = n.height -
|
|
7879
|
+
let t = n.height - Sd;
|
|
7876
7880
|
return `${d.value} L ${e[e.length - 1].x.toFixed(2)} ${t.toFixed(2)} L ${e[0].x.toFixed(2)} ${t.toFixed(2)} Z`;
|
|
7877
7881
|
}), p = a(() => {
|
|
7878
7882
|
let e = u.value, t = e.length;
|
|
7879
7883
|
if (t === 0) return [];
|
|
7880
|
-
let r = n.width -
|
|
7884
|
+
let r = n.width - Sd * 2, i = Math.max(1, r / t * .7), a = o(0);
|
|
7881
7885
|
return e.map((e, n) => {
|
|
7882
|
-
let o =
|
|
7886
|
+
let o = Sd + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
7883
7887
|
return {
|
|
7884
7888
|
x: o,
|
|
7885
7889
|
y: c,
|
|
@@ -7911,59 +7915,59 @@ var gc = {
|
|
|
7911
7915
|
x2: e.width,
|
|
7912
7916
|
y1: m.value,
|
|
7913
7917
|
y2: m.value
|
|
7914
|
-
}, null, 8,
|
|
7918
|
+
}, null, 8, gd)) : s("", !0), e.type === "bar" ? (T(!0), c(t, { key: 1 }, k(p.value, (e, t) => (T(), c("rect", {
|
|
7915
7919
|
key: t,
|
|
7916
7920
|
class: y(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
7917
7921
|
x: e.x,
|
|
7918
7922
|
y: e.y,
|
|
7919
7923
|
width: e.width,
|
|
7920
7924
|
height: e.height
|
|
7921
|
-
}, null, 10,
|
|
7925
|
+
}, null, 10, _d))), 128)) : (T(), c(t, { key: 2 }, [
|
|
7922
7926
|
e.type === "area" ? (T(), c("path", {
|
|
7923
7927
|
key: 0,
|
|
7924
7928
|
class: "uid-sparkline__area",
|
|
7925
7929
|
d: f.value
|
|
7926
|
-
}, null, 8,
|
|
7930
|
+
}, null, 8, vd)) : s("", !0),
|
|
7927
7931
|
l("path", {
|
|
7928
7932
|
class: "uid-sparkline__line",
|
|
7929
7933
|
d: d.value
|
|
7930
|
-
}, null, 8,
|
|
7934
|
+
}, null, 8, yd),
|
|
7931
7935
|
e.showDots ? (T(!0), c(t, { key: 1 }, k(u.value, (e, t) => (T(), c("circle", {
|
|
7932
7936
|
key: t,
|
|
7933
7937
|
class: "uid-sparkline__dot",
|
|
7934
7938
|
cx: e.x,
|
|
7935
7939
|
cy: e.y,
|
|
7936
7940
|
r: "2.5"
|
|
7937
|
-
}, null, 8,
|
|
7941
|
+
}, null, 8, bd))), 128)) : s("", !0),
|
|
7938
7942
|
e.showLast && g.value && !e.showDots ? (T(), c("circle", {
|
|
7939
7943
|
key: 2,
|
|
7940
7944
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
7941
7945
|
cx: g.value.x,
|
|
7942
7946
|
cy: g.value.y,
|
|
7943
7947
|
r: "2.5"
|
|
7944
|
-
}, null, 8,
|
|
7945
|
-
], 64))], 8,
|
|
7948
|
+
}, null, 8, xd)) : s("", !0)
|
|
7949
|
+
], 64))], 8, hd))], 12, md));
|
|
7946
7950
|
}
|
|
7947
|
-
}),
|
|
7951
|
+
}), wd = ["aria-valuemax", "aria-valuenow"], Td = [
|
|
7948
7952
|
"width",
|
|
7949
7953
|
"height",
|
|
7950
7954
|
"viewBox"
|
|
7951
|
-
],
|
|
7955
|
+
], Ed = [
|
|
7952
7956
|
"cx",
|
|
7953
7957
|
"cy",
|
|
7954
7958
|
"r",
|
|
7955
7959
|
"stroke-width"
|
|
7956
|
-
],
|
|
7960
|
+
], Dd = [
|
|
7957
7961
|
"cx",
|
|
7958
7962
|
"cy",
|
|
7959
7963
|
"r",
|
|
7960
7964
|
"stroke-width",
|
|
7961
7965
|
"stroke-dasharray",
|
|
7962
7966
|
"stroke-dashoffset"
|
|
7963
|
-
],
|
|
7967
|
+
], Od = {
|
|
7964
7968
|
key: 0,
|
|
7965
7969
|
class: "uid-progress-ring__label"
|
|
7966
|
-
},
|
|
7970
|
+
}, kd = /* @__PURE__ */ f({
|
|
7967
7971
|
__name: "UidProgressRing",
|
|
7968
7972
|
props: {
|
|
7969
7973
|
value: { default: 0 },
|
|
@@ -8008,7 +8012,7 @@ var gc = {
|
|
|
8008
8012
|
cy: i.value,
|
|
8009
8013
|
r: n.value,
|
|
8010
8014
|
"stroke-width": e.strokeWidth
|
|
8011
|
-
}, null, 8,
|
|
8015
|
+
}, null, 8, Ed), l("circle", {
|
|
8012
8016
|
class: "uid-progress-ring__progress",
|
|
8013
8017
|
cx: i.value,
|
|
8014
8018
|
cy: i.value,
|
|
@@ -8016,50 +8020,50 @@ var gc = {
|
|
|
8016
8020
|
"stroke-width": e.strokeWidth,
|
|
8017
8021
|
"stroke-dasharray": r.value,
|
|
8018
8022
|
"stroke-dashoffset": f.value
|
|
8019
|
-
}, null, 8,
|
|
8023
|
+
}, null, 8, Dd)], 8, Td)), e.showLabel || t.$slots.default ? (T(), c("div", Od, [A(t.$slots, "default", {}, () => [u(N(p.value), 1)])])) : s("", !0)], 14, wd));
|
|
8020
8024
|
}
|
|
8021
|
-
}),
|
|
8025
|
+
}), Ad = [
|
|
8022
8026
|
"aria-valuemin",
|
|
8023
8027
|
"aria-valuemax",
|
|
8024
8028
|
"aria-valuenow",
|
|
8025
8029
|
"aria-label"
|
|
8026
|
-
],
|
|
8030
|
+
], jd = [
|
|
8027
8031
|
"width",
|
|
8028
8032
|
"height",
|
|
8029
8033
|
"viewBox"
|
|
8030
|
-
],
|
|
8034
|
+
], Md = ["d", "stroke-width"], Nd = [
|
|
8031
8035
|
"d",
|
|
8032
8036
|
"stroke",
|
|
8033
8037
|
"stroke-width",
|
|
8034
8038
|
"stroke-dasharray",
|
|
8035
8039
|
"stroke-dashoffset"
|
|
8036
|
-
],
|
|
8040
|
+
], Pd = [
|
|
8037
8041
|
"d",
|
|
8038
8042
|
"stroke-width",
|
|
8039
8043
|
"stroke-dasharray",
|
|
8040
8044
|
"stroke-dashoffset"
|
|
8041
|
-
],
|
|
8045
|
+
], Fd = { key: 2 }, Id = [
|
|
8042
8046
|
"x1",
|
|
8043
8047
|
"y1",
|
|
8044
8048
|
"x2",
|
|
8045
8049
|
"y2",
|
|
8046
8050
|
"transform"
|
|
8047
|
-
],
|
|
8051
|
+
], Ld = ["cx", "cy"], Rd = {
|
|
8048
8052
|
key: 0,
|
|
8049
8053
|
class: "uid-gauge__content"
|
|
8050
|
-
},
|
|
8054
|
+
}, zd = {
|
|
8051
8055
|
key: 0,
|
|
8052
8056
|
class: "uid-gauge__value"
|
|
8053
|
-
},
|
|
8057
|
+
}, Bd = {
|
|
8054
8058
|
key: 0,
|
|
8055
8059
|
class: "uid-gauge__suffix"
|
|
8056
|
-
},
|
|
8060
|
+
}, Vd = {
|
|
8057
8061
|
key: 1,
|
|
8058
8062
|
class: "uid-gauge__label"
|
|
8059
|
-
},
|
|
8063
|
+
}, Hd = {
|
|
8060
8064
|
key: 1,
|
|
8061
8065
|
class: "uid-gauge__limits"
|
|
8062
|
-
},
|
|
8066
|
+
}, Ud = 4, Wd = /* @__PURE__ */ f({
|
|
8063
8067
|
__name: "UidGauge",
|
|
8064
8068
|
props: {
|
|
8065
8069
|
value: { default: 0 },
|
|
@@ -8088,7 +8092,7 @@ var gc = {
|
|
|
8088
8092
|
formatValue: {}
|
|
8089
8093
|
},
|
|
8090
8094
|
setup(e) {
|
|
8091
|
-
let n = e, r = a(() => (n.size - n.strokeWidth) / 2 -
|
|
8095
|
+
let n = e, r = a(() => (n.size - n.strokeWidth) / 2 - Ud), i = a(() => n.size / 2), o = a(() => n.size / 2), u = a(() => n.size / 2 + n.strokeWidth / 2 + Ud), d = a(() => Math.PI * r.value), f = a(() => Math.max(n.min, Math.min(n.max, n.value))), p = a(() => {
|
|
8092
8096
|
let e = n.max - n.min;
|
|
8093
8097
|
return e <= 0 ? 0 : (f.value - n.min) / e;
|
|
8094
8098
|
}), m = a(() => {
|
|
@@ -8126,7 +8130,7 @@ var gc = {
|
|
|
8126
8130
|
class: "uid-gauge__track",
|
|
8127
8131
|
d: m.value,
|
|
8128
8132
|
"stroke-width": e.strokeWidth
|
|
8129
|
-
}, null, 8,
|
|
8133
|
+
}, null, 8, Md),
|
|
8130
8134
|
e.ranges && e.ranges.length ? (T(!0), c(t, { key: 0 }, k(e.ranges, (t, n) => (T(), c("path", {
|
|
8131
8135
|
key: n,
|
|
8132
8136
|
class: "uid-gauge__range",
|
|
@@ -8135,7 +8139,7 @@ var gc = {
|
|
|
8135
8139
|
"stroke-width": e.strokeWidth,
|
|
8136
8140
|
"stroke-dasharray": g(t).dasharray,
|
|
8137
8141
|
"stroke-dashoffset": g(t).dashoffset
|
|
8138
|
-
}, null, 8,
|
|
8142
|
+
}, null, 8, Nd))), 128)) : s("", !0),
|
|
8139
8143
|
!e.ranges || e.ranges.length === 0 ? (T(), c("path", {
|
|
8140
8144
|
key: 1,
|
|
8141
8145
|
class: "uid-gauge__progress",
|
|
@@ -8143,43 +8147,43 @@ var gc = {
|
|
|
8143
8147
|
"stroke-width": e.strokeWidth,
|
|
8144
8148
|
"stroke-dasharray": d.value,
|
|
8145
8149
|
"stroke-dashoffset": h.value
|
|
8146
|
-
}, null, 8,
|
|
8147
|
-
e.showNeedle ? (T(), c("g",
|
|
8150
|
+
}, null, 8, Pd)) : s("", !0),
|
|
8151
|
+
e.showNeedle ? (T(), c("g", Fd, [l("line", {
|
|
8148
8152
|
class: "uid-gauge__needle",
|
|
8149
8153
|
x1: i.value,
|
|
8150
8154
|
y1: o.value,
|
|
8151
8155
|
x2: i.value + r.value - e.strokeWidth,
|
|
8152
8156
|
y2: o.value,
|
|
8153
8157
|
transform: `rotate(${_.value} ${i.value} ${o.value})`
|
|
8154
|
-
}, null, 8,
|
|
8158
|
+
}, null, 8, Id), l("circle", {
|
|
8155
8159
|
class: "uid-gauge__needle-pivot",
|
|
8156
8160
|
cx: i.value,
|
|
8157
8161
|
cy: o.value,
|
|
8158
8162
|
r: "4"
|
|
8159
|
-
}, null, 8,
|
|
8160
|
-
], 8,
|
|
8161
|
-
e.showValue || e.label ? (T(), c("div",
|
|
8162
|
-
e.showLimits ? (T(), c("div",
|
|
8163
|
-
], 14,
|
|
8163
|
+
}, null, 8, Ld)])) : s("", !0)
|
|
8164
|
+
], 8, jd)),
|
|
8165
|
+
e.showValue || e.label ? (T(), c("div", Rd, [e.showValue ? (T(), c("div", zd, [l("span", null, N(v.value), 1), e.suffix ? (T(), c("span", Bd, N(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (T(), c("div", Vd, N(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
8166
|
+
e.showLimits ? (T(), c("div", Hd, [l("span", null, N(e.min), 1), l("span", null, N(e.max), 1)])) : s("", !0)
|
|
8167
|
+
], 14, Ad));
|
|
8164
8168
|
}
|
|
8165
|
-
}),
|
|
8169
|
+
}), Gd = ["aria-label"], Kd = { class: "uid-heatmap__chart" }, qd = {
|
|
8166
8170
|
key: 0,
|
|
8167
8171
|
class: "uid-heatmap__weekdays",
|
|
8168
8172
|
"aria-hidden": "true"
|
|
8169
|
-
},
|
|
8173
|
+
}, Jd = { class: "uid-heatmap__grid-wrapper" }, Yd = [
|
|
8170
8174
|
"width",
|
|
8171
8175
|
"height",
|
|
8172
8176
|
"viewBox"
|
|
8173
|
-
],
|
|
8177
|
+
], Xd = [
|
|
8174
8178
|
"x",
|
|
8175
8179
|
"y",
|
|
8176
8180
|
"width",
|
|
8177
8181
|
"height",
|
|
8178
8182
|
"fill"
|
|
8179
|
-
],
|
|
8183
|
+
], Zd = {
|
|
8180
8184
|
key: 0,
|
|
8181
8185
|
class: "uid-heatmap__legend"
|
|
8182
|
-
},
|
|
8186
|
+
}, Qd = /* @__PURE__ */ f({
|
|
8183
8187
|
__name: "UidHeatmap",
|
|
8184
8188
|
props: {
|
|
8185
8189
|
data: {},
|
|
@@ -8285,10 +8289,10 @@ var gc = {
|
|
|
8285
8289
|
style: b(w.value),
|
|
8286
8290
|
role: "img",
|
|
8287
8291
|
"aria-label": A.value
|
|
8288
|
-
}, [l("div",
|
|
8292
|
+
}, [l("div", Kd, [e.showWeekdays ? (T(), c("div", qd, [(T(!0), c(t, null, k(F(r).datePicker.weekdaysShort, (e, t) => (T(), c("span", {
|
|
8289
8293
|
key: e,
|
|
8290
8294
|
class: y(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
8291
|
-
}, N(e), 3))), 128))])) : s("", !0), l("div",
|
|
8295
|
+
}, N(e), 3))), 128))])) : s("", !0), l("div", Jd, [e.showMonths ? (T(), c("div", {
|
|
8292
8296
|
key: 0,
|
|
8293
8297
|
class: "uid-heatmap__months",
|
|
8294
8298
|
style: b({ width: `${S.value}px` }),
|
|
@@ -8311,7 +8315,7 @@ var gc = {
|
|
|
8311
8315
|
width: e.cellSize,
|
|
8312
8316
|
height: e.cellSize,
|
|
8313
8317
|
fill: v(t.level)
|
|
8314
|
-
}, [l("title", null, N(D(t)), 1)], 8,
|
|
8318
|
+
}, [l("title", null, N(D(t)), 1)], 8, Xd))), 128))], 8, Yd))])]), e.showLegend ? (T(), c("div", Zd, [
|
|
8315
8319
|
i[0] ||= l("span", null, "Меньше", -1),
|
|
8316
8320
|
(T(!0), c(t, null, k(E.value, (e) => (T(), c("span", {
|
|
8317
8321
|
key: e,
|
|
@@ -8319,15 +8323,15 @@ var gc = {
|
|
|
8319
8323
|
style: b(e === 0 ? void 0 : { background: v(e) })
|
|
8320
8324
|
}, null, 4))), 128)),
|
|
8321
8325
|
i[1] ||= l("span", null, "Больше", -1)
|
|
8322
|
-
])) : s("", !0)], 12,
|
|
8326
|
+
])) : s("", !0)], 12, Gd));
|
|
8323
8327
|
}
|
|
8324
|
-
}),
|
|
8328
|
+
}), $d = ["aria-label"], ef = ["aria-current"], tf = { class: "uid-stepper__indicator" }, nf = {
|
|
8325
8329
|
key: 1,
|
|
8326
8330
|
"aria-hidden": "true"
|
|
8327
|
-
},
|
|
8331
|
+
}, rf = { class: "uid-stepper__content" }, af = { class: "uid-stepper__label" }, of = {
|
|
8328
8332
|
key: 0,
|
|
8329
8333
|
class: "uid-stepper__description"
|
|
8330
|
-
},
|
|
8334
|
+
}, sf = /* @__PURE__ */ f({
|
|
8331
8335
|
__name: "UidStepper",
|
|
8332
8336
|
props: {
|
|
8333
8337
|
steps: {},
|
|
@@ -8356,20 +8360,20 @@ var gc = {
|
|
|
8356
8360
|
class: y(["uid-stepper__target", { "uid-stepper__target--selectable": u(r) }]),
|
|
8357
8361
|
onClick: (e) => u(r) && a("select", r)
|
|
8358
8362
|
}, {
|
|
8359
|
-
default: G(() => [l("div",
|
|
8363
|
+
default: G(() => [l("div", tf, [d(r, n.current) === "completed" ? (T(), o(e, {
|
|
8360
8364
|
key: 0,
|
|
8361
8365
|
icon: F(re),
|
|
8362
8366
|
size: 16,
|
|
8363
8367
|
"aria-hidden": "true"
|
|
8364
|
-
}, null, 8, ["icon"])) : (T(), c("span",
|
|
8368
|
+
}, null, 8, ["icon"])) : (T(), c("span", nf, N(r + 1), 1))]), l("div", rf, [l("span", af, N(t.label), 1), t.description ? (T(), c("span", of, N(t.description), 1)) : s("", !0)])]),
|
|
8365
8369
|
_: 2
|
|
8366
8370
|
}, 1032, [
|
|
8367
8371
|
"type",
|
|
8368
8372
|
"class",
|
|
8369
8373
|
"onClick"
|
|
8370
|
-
]))], 10,
|
|
8374
|
+
]))], 10, ef))), 128))], 10, $d));
|
|
8371
8375
|
}
|
|
8372
|
-
}),
|
|
8376
|
+
}), cf = /* @__PURE__ */ f({
|
|
8373
8377
|
__name: "UidStack",
|
|
8374
8378
|
props: {
|
|
8375
8379
|
direction: { default: "column" },
|
|
@@ -8415,7 +8419,7 @@ var gc = {
|
|
|
8415
8419
|
_: 3
|
|
8416
8420
|
}, 8, ["class", "style"]));
|
|
8417
8421
|
}
|
|
8418
|
-
}),
|
|
8422
|
+
}), lf = /* @__PURE__ */ f({
|
|
8419
8423
|
__name: "UidGrid",
|
|
8420
8424
|
props: {
|
|
8421
8425
|
cols: { default: 12 },
|
|
@@ -8448,7 +8452,7 @@ var gc = {
|
|
|
8448
8452
|
_: 3
|
|
8449
8453
|
}, 8, ["style"]));
|
|
8450
8454
|
}
|
|
8451
|
-
}),
|
|
8455
|
+
}), uf = /* @__PURE__ */ f({
|
|
8452
8456
|
__name: "UidContainer",
|
|
8453
8457
|
props: {
|
|
8454
8458
|
size: { default: "lg" },
|
|
@@ -8464,7 +8468,7 @@ var gc = {
|
|
|
8464
8468
|
_: 3
|
|
8465
8469
|
}, 8, ["class"]));
|
|
8466
8470
|
}
|
|
8467
|
-
}),
|
|
8471
|
+
}), df = Symbol("uid-wizard"), ff = { class: "uid-wizard" }, pf = /* @__PURE__ */ f({
|
|
8468
8472
|
__name: "UidWizard",
|
|
8469
8473
|
props: /* @__PURE__ */ g({ steps: {} }, {
|
|
8470
8474
|
modelValue: { default: 0 },
|
|
@@ -8489,7 +8493,7 @@ var gc = {
|
|
|
8489
8493
|
function m(e) {
|
|
8490
8494
|
i.delete(e);
|
|
8491
8495
|
}
|
|
8492
|
-
return E(
|
|
8496
|
+
return E(df, {
|
|
8493
8497
|
current: r,
|
|
8494
8498
|
steps: o,
|
|
8495
8499
|
isFirst: s,
|
|
@@ -8506,9 +8510,9 @@ var gc = {
|
|
|
8506
8510
|
goTo: f,
|
|
8507
8511
|
isFirst: s,
|
|
8508
8512
|
isLast: l
|
|
8509
|
-
}), (e, t) => (T(), c("div",
|
|
8513
|
+
}), (e, t) => (T(), c("div", ff, [A(e.$slots, "default")]));
|
|
8510
8514
|
}
|
|
8511
|
-
}),
|
|
8515
|
+
}), mf = ["aria-label"], hf = /* @__PURE__ */ f({
|
|
8512
8516
|
__name: "UidWizardStep",
|
|
8513
8517
|
props: {
|
|
8514
8518
|
index: {},
|
|
@@ -8518,7 +8522,7 @@ var gc = {
|
|
|
8518
8522
|
}
|
|
8519
8523
|
},
|
|
8520
8524
|
setup(e) {
|
|
8521
|
-
let t = e, n = h(
|
|
8525
|
+
let t = e, n = h(df);
|
|
8522
8526
|
if (!n) throw Error("UidWizardStep must be inside UidWizard");
|
|
8523
8527
|
U(() => t.validate, (e, r) => {
|
|
8524
8528
|
r !== void 0 && n.unregisterValidator(t.index), e !== void 0 && n.registerValidator(t.index, e);
|
|
@@ -8529,22 +8533,22 @@ var gc = {
|
|
|
8529
8533
|
class: "uid-wizard-step",
|
|
8530
8534
|
role: "tabpanel",
|
|
8531
8535
|
"aria-label": `Шаг ${e.index + 1}`
|
|
8532
|
-
}, [A(t.$slots, "default")], 8,
|
|
8536
|
+
}, [A(t.$slots, "default")], 8, mf)) : s("", !0);
|
|
8533
8537
|
}
|
|
8534
|
-
}),
|
|
8538
|
+
}), gf = { class: "uid-pattern-header__inner" }, _f = {
|
|
8535
8539
|
key: 0,
|
|
8536
8540
|
class: "uid-pattern-header__logo"
|
|
8537
|
-
},
|
|
8541
|
+
}, vf = {
|
|
8538
8542
|
key: 1,
|
|
8539
8543
|
class: "uid-pattern-header__nav",
|
|
8540
8544
|
"aria-label": "Основная навигация"
|
|
8541
|
-
},
|
|
8545
|
+
}, yf = {
|
|
8542
8546
|
key: 2,
|
|
8543
8547
|
class: "uid-pattern-header__actions"
|
|
8544
|
-
},
|
|
8548
|
+
}, bf = {
|
|
8545
8549
|
key: 3,
|
|
8546
8550
|
class: "uid-pattern-header__mobile"
|
|
8547
|
-
},
|
|
8551
|
+
}, xf = /* @__PURE__ */ f({
|
|
8548
8552
|
__name: "UidHeader",
|
|
8549
8553
|
props: {
|
|
8550
8554
|
sticky: {
|
|
@@ -8565,38 +8569,38 @@ var gc = {
|
|
|
8565
8569
|
"uid-pattern-header--sticky": e.sticky,
|
|
8566
8570
|
"uid-pattern-header--bordered": e.bordered,
|
|
8567
8571
|
"uid-pattern-header--transparent": e.transparent
|
|
8568
|
-
}]) }, [l("div",
|
|
8569
|
-
t.$slots.logo ? (T(), c("div",
|
|
8570
|
-
t.$slots.nav ? (T(), c("nav",
|
|
8571
|
-
t.$slots.actions ? (T(), c("div",
|
|
8572
|
-
t.$slots.mobile ? (T(), c("div",
|
|
8572
|
+
}]) }, [l("div", gf, [
|
|
8573
|
+
t.$slots.logo ? (T(), c("div", _f, [A(t.$slots, "logo")])) : s("", !0),
|
|
8574
|
+
t.$slots.nav ? (T(), c("nav", vf, [A(t.$slots, "nav")])) : s("", !0),
|
|
8575
|
+
t.$slots.actions ? (T(), c("div", yf, [A(t.$slots, "actions")])) : s("", !0),
|
|
8576
|
+
t.$slots.mobile ? (T(), c("div", bf, [A(t.$slots, "mobile")])) : s("", !0)
|
|
8573
8577
|
])], 2));
|
|
8574
8578
|
}
|
|
8575
|
-
}),
|
|
8579
|
+
}), Sf = { class: "uid-pattern-footer__inner" }, Cf = {
|
|
8576
8580
|
key: 0,
|
|
8577
8581
|
class: "uid-pattern-footer__columns"
|
|
8578
|
-
},
|
|
8582
|
+
}, wf = {
|
|
8579
8583
|
key: 1,
|
|
8580
8584
|
class: "uid-pattern-footer__content"
|
|
8581
|
-
},
|
|
8585
|
+
}, Tf = {
|
|
8582
8586
|
key: 2,
|
|
8583
8587
|
class: "uid-pattern-footer__bottom"
|
|
8584
|
-
},
|
|
8588
|
+
}, Ef = /* @__PURE__ */ f({
|
|
8585
8589
|
__name: "UidFooter",
|
|
8586
8590
|
props: { variant: { default: "minimal" } },
|
|
8587
8591
|
setup(e) {
|
|
8588
|
-
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
8592
|
+
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Sf, [t.$slots.columns ? (T(), c("div", Cf, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", wf, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", Tf, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
8589
8593
|
}
|
|
8590
|
-
}),
|
|
8594
|
+
}), Df = {
|
|
8591
8595
|
key: 0,
|
|
8592
8596
|
class: "uid-pattern-sidebar__header"
|
|
8593
|
-
},
|
|
8597
|
+
}, Of = {
|
|
8594
8598
|
class: "uid-pattern-sidebar__nav",
|
|
8595
8599
|
"aria-label": "Навигация"
|
|
8596
|
-
},
|
|
8600
|
+
}, kf = {
|
|
8597
8601
|
key: 1,
|
|
8598
8602
|
class: "uid-pattern-sidebar__footer"
|
|
8599
|
-
},
|
|
8603
|
+
}, Af = /* @__PURE__ */ f({
|
|
8600
8604
|
__name: "UidSidebar",
|
|
8601
8605
|
props: {
|
|
8602
8606
|
collapsed: {
|
|
@@ -8612,19 +8616,19 @@ var gc = {
|
|
|
8612
8616
|
style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
8613
8617
|
"aria-label": "Боковая навигация"
|
|
8614
8618
|
}, [
|
|
8615
|
-
t.$slots.header ? (T(), c("div",
|
|
8616
|
-
l("nav",
|
|
8617
|
-
t.$slots.footer ? (T(), c("div",
|
|
8619
|
+
t.$slots.header ? (T(), c("div", Df, [A(t.$slots, "header")])) : s("", !0),
|
|
8620
|
+
l("nav", Of, [A(t.$slots, "nav")]),
|
|
8621
|
+
t.$slots.footer ? (T(), c("div", kf, [A(t.$slots, "footer")])) : s("", !0)
|
|
8618
8622
|
], 6));
|
|
8619
8623
|
}
|
|
8620
|
-
}),
|
|
8624
|
+
}), jf = {
|
|
8621
8625
|
key: 0,
|
|
8622
8626
|
class: "uid-sidebar-item__icon",
|
|
8623
8627
|
"aria-hidden": "true"
|
|
8624
|
-
},
|
|
8628
|
+
}, Mf = { class: "uid-sidebar-item__label" }, Nf = {
|
|
8625
8629
|
key: 1,
|
|
8626
8630
|
class: "uid-sidebar-item__badge"
|
|
8627
|
-
},
|
|
8631
|
+
}, Pf = /* @__PURE__ */ f({
|
|
8628
8632
|
__name: "UidSidebarItem",
|
|
8629
8633
|
props: {
|
|
8630
8634
|
href: { default: void 0 },
|
|
@@ -8641,27 +8645,19 @@ var gc = {
|
|
|
8641
8645
|
as: { default: void 0 }
|
|
8642
8646
|
},
|
|
8643
8647
|
setup(e) {
|
|
8644
|
-
let t = e, n = a(() => {
|
|
8645
|
-
|
|
8646
|
-
if (t.to !== void 0) try {
|
|
8647
|
-
return j("RouterLink");
|
|
8648
|
-
} catch {
|
|
8649
|
-
return "a";
|
|
8650
|
-
}
|
|
8651
|
-
return "a";
|
|
8652
|
-
}), r = a(() => t.to === void 0 ? { href: t.disabled ? void 0 : t.href } : { to: t.to });
|
|
8653
|
-
return (t, i) => (T(), o(M(n.value), _({ class: ["uid-sidebar-item", {
|
|
8648
|
+
let t = e, { routerLink: n, fallbackHref: r } = Fr(t), i = a(() => t.as ?? n.value ?? "a"), u = a(() => t.as === void 0 && n.value ? { to: t.to } : { href: t.disabled ? void 0 : r.value });
|
|
8649
|
+
return (t, n) => (T(), o(M(i.value), _({ class: ["uid-sidebar-item", {
|
|
8654
8650
|
"uid-sidebar-item--active": e.active,
|
|
8655
8651
|
"uid-sidebar-item--disabled": e.disabled
|
|
8656
|
-
}] },
|
|
8652
|
+
}] }, u.value, {
|
|
8657
8653
|
"aria-current": e.active ? "page" : void 0,
|
|
8658
8654
|
"aria-disabled": e.disabled || void 0,
|
|
8659
8655
|
tabindex: e.disabled ? -1 : void 0
|
|
8660
8656
|
}), {
|
|
8661
8657
|
default: G(() => [
|
|
8662
|
-
t.$slots.icon ? (T(), c("span",
|
|
8663
|
-
l("span",
|
|
8664
|
-
e.badge === void 0 ? s("", !0) : (T(), c("span",
|
|
8658
|
+
t.$slots.icon ? (T(), c("span", jf, [A(t.$slots, "icon")])) : s("", !0),
|
|
8659
|
+
l("span", Mf, [A(t.$slots, "default")]),
|
|
8660
|
+
e.badge === void 0 ? s("", !0) : (T(), c("span", Nf, N(e.badge), 1))
|
|
8665
8661
|
]),
|
|
8666
8662
|
_: 3
|
|
8667
8663
|
}, 16, [
|
|
@@ -8671,10 +8667,10 @@ var gc = {
|
|
|
8671
8667
|
"tabindex"
|
|
8672
8668
|
]));
|
|
8673
8669
|
}
|
|
8674
|
-
}),
|
|
8670
|
+
}), Ff = { class: "uid-sidebar-group" }, If = {
|
|
8675
8671
|
key: 0,
|
|
8676
8672
|
class: "uid-sidebar-group__title"
|
|
8677
|
-
},
|
|
8673
|
+
}, Lf = /* @__PURE__ */ f({
|
|
8678
8674
|
__name: "UidSidebarGroup",
|
|
8679
8675
|
props: {
|
|
8680
8676
|
title: { default: void 0 },
|
|
@@ -8684,29 +8680,29 @@ var gc = {
|
|
|
8684
8680
|
}
|
|
8685
8681
|
},
|
|
8686
8682
|
setup(e) {
|
|
8687
|
-
return (t, n) => (T(), c("div",
|
|
8683
|
+
return (t, n) => (T(), c("div", Ff, [e.title ? (T(), c("p", If, N(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
|
|
8688
8684
|
}
|
|
8689
|
-
}),
|
|
8685
|
+
}), Rf = {}, zf = {
|
|
8690
8686
|
class: "uid-sidebar-divider",
|
|
8691
8687
|
role: "separator",
|
|
8692
8688
|
"aria-hidden": "true"
|
|
8693
8689
|
};
|
|
8694
|
-
function
|
|
8695
|
-
return T(), c("div",
|
|
8690
|
+
function Bf(e, t) {
|
|
8691
|
+
return T(), c("div", zf);
|
|
8696
8692
|
}
|
|
8697
|
-
var
|
|
8693
|
+
var Vf = /* @__PURE__ */ dr(Rf, [["render", Bf]]), Hf = { class: "uid-pattern-page-header" }, Uf = {
|
|
8698
8694
|
key: 0,
|
|
8699
8695
|
class: "uid-pattern-page-header__breadcrumb"
|
|
8700
|
-
},
|
|
8696
|
+
}, Wf = { class: "uid-pattern-page-header__row" }, Gf = { class: "uid-pattern-page-header__heading" }, Kf = { class: "uid-pattern-page-header__title" }, qf = {
|
|
8701
8697
|
key: 0,
|
|
8702
8698
|
class: "uid-pattern-page-header__description"
|
|
8703
|
-
},
|
|
8699
|
+
}, Jf = {
|
|
8704
8700
|
key: 0,
|
|
8705
8701
|
class: "uid-pattern-page-header__actions"
|
|
8706
|
-
},
|
|
8702
|
+
}, Yf = {
|
|
8707
8703
|
key: 1,
|
|
8708
8704
|
class: "uid-pattern-page-header__tabs"
|
|
8709
|
-
},
|
|
8705
|
+
}, Xf = /* @__PURE__ */ f({
|
|
8710
8706
|
__name: "UidPageHeader",
|
|
8711
8707
|
props: {
|
|
8712
8708
|
title: { default: void 0 },
|
|
@@ -8719,9 +8715,9 @@ var Bf = /* @__PURE__ */ dr(Lf, [["render", zf]]), Vf = { class: "uid-pattern-pa
|
|
|
8719
8715
|
emits: ["back"],
|
|
8720
8716
|
setup(t, { emit: n }) {
|
|
8721
8717
|
let r = n;
|
|
8722
|
-
return (n, i) => (T(), c("div",
|
|
8723
|
-
n.$slots.breadcrumb ? (T(), c("div",
|
|
8724
|
-
l("div",
|
|
8718
|
+
return (n, i) => (T(), c("div", Hf, [
|
|
8719
|
+
n.$slots.breadcrumb ? (T(), c("div", Uf, [A(n.$slots, "breadcrumb")])) : s("", !0),
|
|
8720
|
+
l("div", Wf, [l("div", Gf, [t.back ? (T(), c("button", {
|
|
8725
8721
|
key: 0,
|
|
8726
8722
|
type: "button",
|
|
8727
8723
|
class: "uid-pattern-page-header__back",
|
|
@@ -8730,42 +8726,42 @@ var Bf = /* @__PURE__ */ dr(Lf, [["render", zf]]), Vf = { class: "uid-pattern-pa
|
|
|
8730
8726
|
}, [d(e, {
|
|
8731
8727
|
icon: F(Z),
|
|
8732
8728
|
size: 20
|
|
8733
|
-
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1",
|
|
8734
|
-
n.$slots.tabs ? (T(), c("div",
|
|
8729
|
+
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", Kf, [A(n.$slots, "title", {}, () => [u(N(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", qf, [A(n.$slots, "description", {}, () => [u(N(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", Jf, [A(n.$slots, "actions")])) : s("", !0)]),
|
|
8730
|
+
n.$slots.tabs ? (T(), c("div", Yf, [A(n.$slots, "tabs")])) : s("", !0)
|
|
8735
8731
|
]));
|
|
8736
8732
|
}
|
|
8737
|
-
}),
|
|
8733
|
+
}), Zf = { class: "uid-pattern-empty-state" }, Qf = { class: "uid-pattern-empty-state__illustration" }, $f = { class: "uid-pattern-empty-state__content" }, ep = { class: "uid-pattern-empty-state__title" }, tp = {
|
|
8738
8734
|
key: 0,
|
|
8739
8735
|
class: "uid-pattern-empty-state__description"
|
|
8740
|
-
},
|
|
8736
|
+
}, np = {
|
|
8741
8737
|
key: 0,
|
|
8742
8738
|
class: "uid-pattern-empty-state__actions"
|
|
8743
|
-
},
|
|
8739
|
+
}, rp = /* @__PURE__ */ f({
|
|
8744
8740
|
__name: "UidEmptyState",
|
|
8745
8741
|
props: {
|
|
8746
8742
|
title: { default: "Ничего не найдено" },
|
|
8747
8743
|
description: { default: void 0 }
|
|
8748
8744
|
},
|
|
8749
8745
|
setup(t) {
|
|
8750
|
-
return (n, r) => (T(), c("div",
|
|
8751
|
-
l("div",
|
|
8746
|
+
return (n, r) => (T(), c("div", Zf, [
|
|
8747
|
+
l("div", Qf, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
8752
8748
|
icon: F(me),
|
|
8753
8749
|
size: 48
|
|
8754
8750
|
}, null, 8, ["icon"])])]),
|
|
8755
|
-
l("div",
|
|
8756
|
-
n.$slots.actions ? (T(), c("div",
|
|
8751
|
+
l("div", $f, [l("h2", ep, [A(n.$slots, "title", {}, () => [u(N(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", tp, [A(n.$slots, "description", {}, () => [u(N(t.description), 1)])])) : s("", !0)]),
|
|
8752
|
+
n.$slots.actions ? (T(), c("div", np, [A(n.$slots, "actions")])) : s("", !0)
|
|
8757
8753
|
]));
|
|
8758
8754
|
}
|
|
8759
|
-
}),
|
|
8755
|
+
}), ip = { class: "uid-pattern-error-state" }, ap = { class: "uid-pattern-error-state__illustration" }, op = {
|
|
8760
8756
|
key: 0,
|
|
8761
8757
|
class: "uid-pattern-error-state__code"
|
|
8762
|
-
},
|
|
8758
|
+
}, sp = { class: "uid-pattern-error-state__content" }, cp = { class: "uid-pattern-error-state__title" }, lp = {
|
|
8763
8759
|
key: 0,
|
|
8764
8760
|
class: "uid-pattern-error-state__description"
|
|
8765
|
-
},
|
|
8761
|
+
}, up = {
|
|
8766
8762
|
key: 1,
|
|
8767
8763
|
class: "uid-pattern-error-state__actions"
|
|
8768
|
-
},
|
|
8764
|
+
}, dp = /* @__PURE__ */ f({
|
|
8769
8765
|
__name: "UidErrorState",
|
|
8770
8766
|
props: {
|
|
8771
8767
|
code: { default: void 0 },
|
|
@@ -8790,23 +8786,23 @@ var Bf = /* @__PURE__ */ dr(Lf, [["render", zf]]), Vf = { class: "uid-pattern-pa
|
|
|
8790
8786
|
description: "Проверьте подключение к интернету и попробуйте снова."
|
|
8791
8787
|
}
|
|
8792
8788
|
}, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? Y), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
|
|
8793
|
-
return (n, r) => (T(), c("div",
|
|
8794
|
-
l("div",
|
|
8789
|
+
return (n, r) => (T(), c("div", ip, [
|
|
8790
|
+
l("div", ap, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
8795
8791
|
icon: o.value,
|
|
8796
8792
|
size: 48
|
|
8797
8793
|
}, null, 8, ["icon"])])]),
|
|
8798
|
-
t.code ? (T(), c("div",
|
|
8799
|
-
l("div",
|
|
8800
|
-
n.$slots.actions ? (T(), c("div",
|
|
8794
|
+
t.code ? (T(), c("div", op, N(t.code), 1)) : s("", !0),
|
|
8795
|
+
l("div", sp, [l("h2", cp, [A(n.$slots, "title", {}, () => [u(N(f.value), 1)])]), p.value || n.$slots.description ? (T(), c("p", lp, [A(n.$slots, "description", {}, () => [u(N(p.value), 1)])])) : s("", !0)]),
|
|
8796
|
+
n.$slots.actions ? (T(), c("div", up, [A(n.$slots, "actions")])) : s("", !0)
|
|
8801
8797
|
]));
|
|
8802
8798
|
}
|
|
8803
|
-
}),
|
|
8799
|
+
}), fp = {
|
|
8804
8800
|
key: 0,
|
|
8805
8801
|
class: "uid-layout-simple__header"
|
|
8806
|
-
},
|
|
8802
|
+
}, pp = { class: "uid-layout-simple__content" }, mp = {
|
|
8807
8803
|
key: 1,
|
|
8808
8804
|
class: "uid-layout-simple__footer"
|
|
8809
|
-
},
|
|
8805
|
+
}, hp = /* @__PURE__ */ f({
|
|
8810
8806
|
__name: "UidSimpleLayout",
|
|
8811
8807
|
props: { full: {
|
|
8812
8808
|
type: Boolean,
|
|
@@ -8814,26 +8810,26 @@ var Bf = /* @__PURE__ */ dr(Lf, [["render", zf]]), Vf = { class: "uid-pattern-pa
|
|
|
8814
8810
|
} },
|
|
8815
8811
|
setup(e) {
|
|
8816
8812
|
return (t, n) => (T(), c("div", { class: y(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
8817
|
-
t.$slots.header ? (T(), c("div",
|
|
8818
|
-
l("main",
|
|
8819
|
-
t.$slots.footer ? (T(), c("div",
|
|
8813
|
+
t.$slots.header ? (T(), c("div", fp, [A(t.$slots, "header")])) : s("", !0),
|
|
8814
|
+
l("main", pp, [A(t.$slots, "default")]),
|
|
8815
|
+
t.$slots.footer ? (T(), c("div", mp, [A(t.$slots, "footer")])) : s("", !0)
|
|
8820
8816
|
], 2));
|
|
8821
8817
|
}
|
|
8822
|
-
}),
|
|
8823
|
-
function
|
|
8824
|
-
let e = h(
|
|
8818
|
+
}), gp = Symbol("uid-sidebar-layout");
|
|
8819
|
+
function _p() {
|
|
8820
|
+
let e = h(gp);
|
|
8825
8821
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
8826
8822
|
return e;
|
|
8827
8823
|
}
|
|
8828
8824
|
//#endregion
|
|
8829
8825
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
8830
|
-
var
|
|
8826
|
+
var vp = { class: "uid-layout-sidebar__sidebar" }, yp = { class: "uid-layout-sidebar__main" }, bp = {
|
|
8831
8827
|
key: 0,
|
|
8832
8828
|
class: "uid-layout-sidebar__main-header"
|
|
8833
|
-
},
|
|
8829
|
+
}, xp = { class: "uid-layout-sidebar__main-content" }, Sp = {
|
|
8834
8830
|
key: 1,
|
|
8835
8831
|
class: "uid-layout-sidebar__main-footer"
|
|
8836
|
-
},
|
|
8832
|
+
}, Cp = /* @__PURE__ */ f({
|
|
8837
8833
|
__name: "UidSidebarLayout",
|
|
8838
8834
|
props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
|
|
8839
8835
|
modelValue: {
|
|
@@ -8851,7 +8847,7 @@ var _p = { class: "uid-layout-sidebar__sidebar" }, vp = { class: "uid-layout-sid
|
|
|
8851
8847
|
}, o = () => {
|
|
8852
8848
|
n.value = !0;
|
|
8853
8849
|
};
|
|
8854
|
-
E(
|
|
8850
|
+
E(gp, {
|
|
8855
8851
|
collapsed: n,
|
|
8856
8852
|
toggle: r,
|
|
8857
8853
|
open: i,
|
|
@@ -8862,58 +8858,58 @@ var _p = { class: "uid-layout-sidebar__sidebar" }, vp = { class: "uid-layout-sid
|
|
|
8862
8858
|
class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
8863
8859
|
style: b(u.value)
|
|
8864
8860
|
}, [
|
|
8865
|
-
l("aside",
|
|
8861
|
+
l("aside", vp, [A(e.$slots, "sidebar")]),
|
|
8866
8862
|
l("div", {
|
|
8867
8863
|
class: "uid-layout-sidebar__backdrop",
|
|
8868
8864
|
"aria-hidden": "true",
|
|
8869
8865
|
onClick: o
|
|
8870
8866
|
}),
|
|
8871
|
-
l("div",
|
|
8872
|
-
e.$slots.header ? (T(), c("div",
|
|
8873
|
-
l("main",
|
|
8874
|
-
e.$slots.footer ? (T(), c("div",
|
|
8867
|
+
l("div", yp, [
|
|
8868
|
+
e.$slots.header ? (T(), c("div", bp, [A(e.$slots, "header")])) : s("", !0),
|
|
8869
|
+
l("main", xp, [A(e.$slots, "default")]),
|
|
8870
|
+
e.$slots.footer ? (T(), c("div", Sp, [A(e.$slots, "footer")])) : s("", !0)
|
|
8875
8871
|
])
|
|
8876
8872
|
], 6));
|
|
8877
8873
|
}
|
|
8878
|
-
}),
|
|
8874
|
+
}), wp = {
|
|
8879
8875
|
key: 0,
|
|
8880
8876
|
class: "uid-layout-auth__brand"
|
|
8881
|
-
},
|
|
8877
|
+
}, Tp = { class: "uid-layout-auth__main" }, Ep = { class: "uid-layout-auth__card" }, Dp = {
|
|
8882
8878
|
key: 0,
|
|
8883
8879
|
class: "uid-layout-auth__footer"
|
|
8884
|
-
},
|
|
8880
|
+
}, Op = /* @__PURE__ */ f({
|
|
8885
8881
|
__name: "UidAuthLayout",
|
|
8886
8882
|
props: { variant: { default: "centered" } },
|
|
8887
8883
|
setup(e) {
|
|
8888
|
-
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",
|
|
8884
|
+
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", wp, [A(t.$slots, "brand")])) : s("", !0), l("div", Tp, [l("div", Ep, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", Dp, [A(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
8889
8885
|
}
|
|
8890
|
-
}),
|
|
8886
|
+
}), kp = { class: "uid-layout-wizard" }, Ap = {
|
|
8891
8887
|
key: 0,
|
|
8892
8888
|
class: "uid-layout-wizard__header"
|
|
8893
|
-
},
|
|
8889
|
+
}, jp = {
|
|
8894
8890
|
key: 1,
|
|
8895
8891
|
class: "uid-layout-wizard__stepper"
|
|
8896
|
-
},
|
|
8892
|
+
}, Mp = { class: "uid-layout-wizard__content" }, Np = {
|
|
8897
8893
|
key: 2,
|
|
8898
8894
|
class: "uid-layout-wizard__nav"
|
|
8899
|
-
},
|
|
8895
|
+
}, Pp = /* @__PURE__ */ f({
|
|
8900
8896
|
__name: "UidWizardLayout",
|
|
8901
8897
|
setup(e) {
|
|
8902
|
-
return (e, t) => (T(), c("div",
|
|
8903
|
-
e.$slots.header ? (T(), c("div",
|
|
8904
|
-
e.$slots.stepper ? (T(), c("div",
|
|
8905
|
-
l("main",
|
|
8906
|
-
e.$slots.nav ? (T(), c("div",
|
|
8898
|
+
return (e, t) => (T(), c("div", kp, [
|
|
8899
|
+
e.$slots.header ? (T(), c("div", Ap, [A(e.$slots, "header")])) : s("", !0),
|
|
8900
|
+
e.$slots.stepper ? (T(), c("div", jp, [A(e.$slots, "stepper")])) : s("", !0),
|
|
8901
|
+
l("main", Mp, [A(e.$slots, "default")]),
|
|
8902
|
+
e.$slots.nav ? (T(), c("div", Np, [A(e.$slots, "nav")])) : s("", !0)
|
|
8907
8903
|
]));
|
|
8908
8904
|
}
|
|
8909
|
-
}),
|
|
8905
|
+
}), Fp = /* @__PURE__ */ f({
|
|
8910
8906
|
__name: "UidLocaleProvider",
|
|
8911
8907
|
props: { locale: {} },
|
|
8912
8908
|
setup(e) {
|
|
8913
8909
|
let t = e;
|
|
8914
8910
|
return rn(a(() => t.locale)), (e, t) => A(e.$slots, "default");
|
|
8915
8911
|
}
|
|
8916
|
-
}),
|
|
8912
|
+
}), Ip = {
|
|
8917
8913
|
common: {
|
|
8918
8914
|
clear: "Clear",
|
|
8919
8915
|
close: "Close",
|
|
@@ -9018,19 +9014,19 @@ var _p = { class: "uid-layout-sidebar__sidebar" }, vp = { class: "uid-layout-sid
|
|
|
9018
9014
|
page: (e) => `Page ${e}`,
|
|
9019
9015
|
pageSize: (e) => `${e} per page`
|
|
9020
9016
|
}
|
|
9021
|
-
},
|
|
9022
|
-
function
|
|
9017
|
+
}, Lp = O("light");
|
|
9018
|
+
function Rp() {
|
|
9023
9019
|
let e = null;
|
|
9024
9020
|
function t(e) {
|
|
9025
|
-
|
|
9021
|
+
Lp.value = e, document.documentElement.dataset.theme = e;
|
|
9026
9022
|
}
|
|
9027
9023
|
function n() {
|
|
9028
|
-
t(
|
|
9024
|
+
t(Lp.value === "light" ? "dark" : "light");
|
|
9029
9025
|
}
|
|
9030
9026
|
function r() {
|
|
9031
9027
|
let e = document.documentElement.dataset.theme;
|
|
9032
9028
|
if (e === "light" || e === "dark") {
|
|
9033
|
-
|
|
9029
|
+
Lp.value = e;
|
|
9034
9030
|
return;
|
|
9035
9031
|
}
|
|
9036
9032
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -9042,7 +9038,7 @@ function Lp() {
|
|
|
9042
9038
|
e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
|
|
9043
9039
|
}
|
|
9044
9040
|
return {
|
|
9045
|
-
theme:
|
|
9041
|
+
theme: Lp,
|
|
9046
9042
|
setTheme: t,
|
|
9047
9043
|
toggle: n,
|
|
9048
9044
|
initFromSystem: r,
|
|
@@ -9051,27 +9047,27 @@ function Lp() {
|
|
|
9051
9047
|
}
|
|
9052
9048
|
//#endregion
|
|
9053
9049
|
//#region src/composables/useWizard.ts
|
|
9054
|
-
function
|
|
9055
|
-
let e = h(
|
|
9050
|
+
function zp() {
|
|
9051
|
+
let e = h(df);
|
|
9056
9052
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
9057
9053
|
return e;
|
|
9058
9054
|
}
|
|
9059
9055
|
//#endregion
|
|
9060
9056
|
//#region src/composables/useCommandPalette.ts
|
|
9061
|
-
var
|
|
9062
|
-
function
|
|
9057
|
+
var Bp = O(!1);
|
|
9058
|
+
function Vp() {
|
|
9063
9059
|
return {
|
|
9064
|
-
open:
|
|
9060
|
+
open: Bp,
|
|
9065
9061
|
show: () => {
|
|
9066
|
-
|
|
9062
|
+
Bp.value = !0;
|
|
9067
9063
|
},
|
|
9068
9064
|
hide: () => {
|
|
9069
|
-
|
|
9065
|
+
Bp.value = !1;
|
|
9070
9066
|
},
|
|
9071
9067
|
toggle: () => {
|
|
9072
|
-
|
|
9068
|
+
Bp.value = !Bp.value;
|
|
9073
9069
|
}
|
|
9074
9070
|
};
|
|
9075
9071
|
}
|
|
9076
9072
|
//#endregion
|
|
9077
|
-
export {
|
|
9073
|
+
export { Ei as UidAccordion, Mi as UidAccordionItem, hl as UidAffix, un as UidAlert, wl as UidAnchor, Op as UidAuthLayout, gi as UidAvatar, yi as UidAvatarGroup, pl as UidBackTop, $t as UidBadge, Pr as UidBreadcrumb, zr as UidBreadcrumbItem, ke as UidButton, pd as UidCalendar, pi as UidCard, su as UidCarousel, $u as UidCascader, yt as UidCheckbox, Tt as UidCheckboxGroup, Tc as UidCode, Wa as UidColorPicker, ms as UidCombobox, eo as UidCommand, uf as UidContainer, fa as UidDatePicker, Jo as UidDateRangePicker, al as UidDescriptionItem, tl as UidDescriptionList, Ci as UidDivider, Wn as UidDrawer, rp as UidEmptyState, dp as UidErrorState, Xs as UidFileUpload, Ef as UidFooter, Jt as UidFormField, Wd as UidGauge, lf as UidGrid, xf as UidHeader, Qd as UidHeatmap, e as UidIcon, Pc as UidImage, ni as UidInfiniteScroll, lt as UidInput, Ut as UidLabel, Br as UidLink, $r as UidLoadMore, Fp as UidLocaleProvider, zl as UidMention, cr as UidMenu, ur as UidMenuItem, hr as UidMenuSeparator, Ln as UidModal, tu as UidNotificationBadge, co as UidNumberInput, Xf as UidPageHeader, si as UidPageSize, Kr as UidPagination, Xr as UidPaginationCursor, $n as UidPopover, En as UidProgress, kd as UidProgressRing, kt as UidRadio, Ft as UidRadioGroup, Bc as UidRating, dl as UidResult, na as UidSelect, Af as UidSidebar, Vf as UidSidebarDivider, Lf as UidSidebarGroup, Pf as UidSidebarItem, Cp as UidSidebarLayout, hp as UidSimpleLayout, Qt as UidSkeleton, xa as UidSlider, Cd as UidSparkline, Xt as UidSpinner, Uc as UidSplitter, cf as UidStack, Qc as UidStat, sf as UidStepper, Cr as UidSubMenu, Bt as UidSwitch, kr as UidTab, jr as UidTabPanel, Hi as UidTable, Dr as UidTabs, xi as UidTag, es as UidTagsInput, mt as UidTextarea, vo as UidTimePicker, Es as UidTimeline, Ps as UidTimelineItem, gn as UidToast, bn as UidToastProvider, Xn as UidTooltip, Ml as UidTour, Nu as UidTransfer, Cs as UidTreeItem, Ql as UidTreeSelect, Ts as UidTreeView, pa as UidVirtualList, vl as UidWatermark, pf as UidWizard, Pp as UidWizardLayout, hf as UidWizardStep, ze as email, Ip as en, Ne as getMessage, Je as inList, He as integer, hc as isHighlightable, We as max, Ke as maxValue, Ue as min, Ge as minValue, Na as normalizeColor, Re as nullable, Ve as numeric, Aa as parseColor, $e as parseRules, rn as provideLocale, qe as regex, Le as required, Xe as requiredIf, Ze as requiredUnless, en as ru, et as runRules, Ye as sameAs, Me as setMessages, gc as tokenize, Be as url, Vp as useCommandPalette, tt as useField, On as useFocusTrap, $ as useLocale, qn as usePopover, An as useScrollLock, _p as useSidebar, Rp as useTheme, yn as useToast, zp as useWizard };
|