prlg-ui 1.8.293 → 1.8.295
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/prlg-ui.css +1 -1
- package/dist/reka-ui/index.cjs.js +1 -1
- package/dist/reka-ui/index.es.js +87 -89
- package/dist/rekaUI.d.ts +3 -3
- package/package.json +1 -1
package/dist/reka-ui/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as bl from "vue";
|
|
2
|
-
import { onMounted as fe, nextTick as pe, getCurrentInstance as nt, hasInjectionContext as uo, inject as Sn, watch as ne, getCurrentScope as co, onScopeDispose as fo, shallowRef as Ye, computed as D, toValue as qe, watchEffect as Se, unref as l, h as ct, provide as po, Fragment as
|
|
2
|
+
import { onMounted as fe, nextTick as pe, getCurrentInstance as nt, hasInjectionContext as uo, inject as Sn, watch as ne, getCurrentScope as co, onScopeDispose as fo, shallowRef as Ye, computed as D, toValue as qe, watchEffect as Se, unref as l, h as ct, provide as po, Fragment as ge, readonly as $n, effectScope as vo, customRef as Di, onBeforeUnmount as yo, isRef as wt, reactive as Da, toRefs as me, ref as k, toHandlerKey as Si, camelize as mo, toRef as Sa, onUnmounted as Ve, defineComponent as h, Comment as ho, mergeProps as $, cloneVNode as $i, createBlock as y, openBlock as f, withCtx as v, renderSlot as g, createVNode as V, createCommentVNode as j, withKeys as Ee, normalizeStyle as Ae, Teleport as Pn, normalizeProps as L, guardReactiveProps as H, withModifiers as De, createElementVNode as te, toDisplayString as le, createTextVNode as ie, markRaw as Pi, createElementBlock as M, renderList as Me, watchPostEffect as go, mergeDefaults as _o, watchSyncEffect as Bi, withMemo as ki, resolveDynamicComponent as ft, toHandlers as vr, onBeforeMount as Ai, useSlots as Ti, normalizeClass as ke, useCssVars as vt, resolveComponent as bo, resolveDirective as Bn, withDirectives as oa, mergeModels as je, useModel as tt, useId as kn, vModelRadio as Ii, vModelDynamic as xi, vModelText as Oi, useTemplateRef as Ei, createApp as Ri } from "vue";
|
|
3
3
|
import { d as yt, l as Mi, r as Vi, i as Fi, a as Ni, b as Li, c as Hi, e as Ui, f as Wi, g as Ki } from "../ru-DQ91TLXh.js";
|
|
4
4
|
import { C as Co, I as ji, A as yr, a as mr, S as zi, d as Gi, Q as Yi, W as rn, c as An, E as wo, B as Zi, b as Ji } from "../QuestionIcon-_dT5K9nH.js";
|
|
5
5
|
import { _ as N, C as hr, E as qo } from "../EyeIcon-D6SZWKKH.js";
|
|
@@ -338,7 +338,7 @@ function xu(e, t) {
|
|
|
338
338
|
return ut(e) ? !1 : Array.isArray(e) ? e.some((a) => qt(a, t)) : qt(e, t);
|
|
339
339
|
}
|
|
340
340
|
function xn(e) {
|
|
341
|
-
return e ? e.flatMap((t) => t.type ===
|
|
341
|
+
return e ? e.flatMap((t) => t.type === ge ? xn(t.children) : [t]) : [];
|
|
342
342
|
}
|
|
343
343
|
const Ou = ["INPUT", "TEXTAREA"];
|
|
344
344
|
function Po(e, t, a, r = {}) {
|
|
@@ -6189,8 +6189,8 @@ var Op = /* @__PURE__ */ h({
|
|
|
6189
6189
|
defaultValue: a.defaultPlaceholder ?? G.copy(),
|
|
6190
6190
|
passive: a.placeholder === void 0
|
|
6191
6191
|
});
|
|
6192
|
-
function ae(
|
|
6193
|
-
ee.value =
|
|
6192
|
+
function ae(_e) {
|
|
6193
|
+
ee.value = _e.copy();
|
|
6194
6194
|
}
|
|
6195
6195
|
const { fullCalendarLabel: ce, headingValue: re, isDateDisabled: Q, isDateUnavailable: K, isNextButtonDisabled: ye, isPrevButtonDisabled: se, weekdays: we, isOutsideVisibleView: Y, nextPage: J, prevPage: Pe, formatter: X, grid: oe } = Ds({
|
|
6196
6196
|
locale: z,
|
|
@@ -6213,21 +6213,21 @@ var Op = /* @__PURE__ */ h({
|
|
|
6213
6213
|
isDateDisabled: Q,
|
|
6214
6214
|
isDateUnavailable: K
|
|
6215
6215
|
});
|
|
6216
|
-
ne(U, (
|
|
6217
|
-
if (Array.isArray(
|
|
6218
|
-
const Oe =
|
|
6216
|
+
ne(U, (_e) => {
|
|
6217
|
+
if (Array.isArray(_e) && _e.length) {
|
|
6218
|
+
const Oe = _e[_e.length - 1];
|
|
6219
6219
|
Oe && !Le(ee.value, Oe) && ae(Oe);
|
|
6220
|
-
} else !Array.isArray(
|
|
6220
|
+
} else !Array.isArray(_e) && _e && !Le(ee.value, _e) && ae(_e);
|
|
6221
6221
|
});
|
|
6222
|
-
function Ne(
|
|
6222
|
+
function Ne(_e) {
|
|
6223
6223
|
if (p.value) {
|
|
6224
|
-
if (!U.value) U.value = [
|
|
6224
|
+
if (!U.value) U.value = [_e.copy()];
|
|
6225
6225
|
else if (Array.isArray(U.value)) {
|
|
6226
|
-
if (U.value.findIndex((Zt) => Ie(Zt,
|
|
6226
|
+
if (U.value.findIndex((Zt) => Ie(Zt, _e)) === -1) U.value = [...U.value, _e];
|
|
6227
6227
|
else if (!w.value) {
|
|
6228
|
-
const Zt = U.value.filter((va) => !Ie(va,
|
|
6228
|
+
const Zt = U.value.filter((va) => !Ie(va, _e));
|
|
6229
6229
|
if (!Zt.length) {
|
|
6230
|
-
ee.value =
|
|
6230
|
+
ee.value = _e.copy(), U.value = void 0;
|
|
6231
6231
|
return;
|
|
6232
6232
|
}
|
|
6233
6233
|
U.value = Zt.map((va) => va.copy());
|
|
@@ -6235,10 +6235,10 @@ var Op = /* @__PURE__ */ h({
|
|
|
6235
6235
|
}
|
|
6236
6236
|
} else {
|
|
6237
6237
|
if (!U.value) {
|
|
6238
|
-
U.value =
|
|
6238
|
+
U.value = _e.copy();
|
|
6239
6239
|
return;
|
|
6240
6240
|
}
|
|
6241
|
-
!w.value && Le(U.value,
|
|
6241
|
+
!w.value && Le(U.value, _e) ? (ee.value = _e.copy(), U.value = void 0) : U.value = _e.copy();
|
|
6242
6242
|
}
|
|
6243
6243
|
}
|
|
6244
6244
|
return fe(() => {
|
|
@@ -6278,11 +6278,11 @@ var Op = /* @__PURE__ */ h({
|
|
|
6278
6278
|
disableDaysOutsideCurrentView: F,
|
|
6279
6279
|
minValue: m,
|
|
6280
6280
|
maxValue: b
|
|
6281
|
-
}), (
|
|
6281
|
+
}), (_e, Oe) => (f(), y(l(R), {
|
|
6282
6282
|
ref_key: "primitiveElement",
|
|
6283
6283
|
ref: B,
|
|
6284
|
-
as:
|
|
6285
|
-
"as-child":
|
|
6284
|
+
as: _e.as,
|
|
6285
|
+
"as-child": _e.asChild,
|
|
6286
6286
|
role: "application",
|
|
6287
6287
|
"aria-label": l(ce),
|
|
6288
6288
|
"data-readonly": l(o) ? "" : void 0,
|
|
@@ -6290,7 +6290,7 @@ var Op = /* @__PURE__ */ h({
|
|
|
6290
6290
|
"data-invalid": l(ue) ? "" : void 0,
|
|
6291
6291
|
dir: l(Z)
|
|
6292
6292
|
}, {
|
|
6293
|
-
default: v(() => [g(
|
|
6293
|
+
default: v(() => [g(_e.$slots, "default", {
|
|
6294
6294
|
date: l(ee),
|
|
6295
6295
|
grid: l(oe),
|
|
6296
6296
|
weekDays: l(we),
|
|
@@ -7160,13 +7160,13 @@ var rv = /* @__PURE__ */ h({
|
|
|
7160
7160
|
name: `${t.name}[${n}]`,
|
|
7161
7161
|
value: o
|
|
7162
7162
|
})) : []);
|
|
7163
|
-
return (n, o) => (f(), M(
|
|
7163
|
+
return (n, o) => (f(), M(ge, null, [j(" We render single input if it's required "), a.value ? (f(), y(Zl, $({ key: n.name }, {
|
|
7164
7164
|
...t,
|
|
7165
7165
|
...n.$attrs
|
|
7166
7166
|
}, {
|
|
7167
7167
|
name: n.name,
|
|
7168
7168
|
value: n.value
|
|
7169
|
-
}), null, 16, ["name", "value"])) : (f(!0), M(
|
|
7169
|
+
}), null, 16, ["name", "value"])) : (f(!0), M(ge, { key: 1 }, Me(r.value, (s) => (f(), y(Zl, $({ key: s.name }, { ref_for: !0 }, {
|
|
7170
7170
|
...t,
|
|
7171
7171
|
...n.$attrs
|
|
7172
7172
|
}, {
|
|
@@ -7788,8 +7788,8 @@ var $v = /* @__PURE__ */ h({
|
|
|
7788
7788
|
const be = p().filter((Oe) => Oe.ref.dataset.disabled !== "");
|
|
7789
7789
|
let Ne = be.find((Oe) => Oe.ref === oe)?.value;
|
|
7790
7790
|
if (X.key === w.END ? Ne = be[be.length - 1].value : X.key === w.HOME && (Ne = be[0].value), !Ne || !T.value) return;
|
|
7791
|
-
const
|
|
7792
|
-
A.value =
|
|
7791
|
+
const _e = Iu(be.map((Oe) => Oe.value), T.value, Ne);
|
|
7792
|
+
A.value = _e;
|
|
7793
7793
|
}
|
|
7794
7794
|
}
|
|
7795
7795
|
async function Pe(X) {
|
|
@@ -8810,7 +8810,7 @@ var Xv = /* @__PURE__ */ h({
|
|
|
8810
8810
|
},
|
|
8811
8811
|
setup(e) {
|
|
8812
8812
|
const t = e, { forwardRef: a } = O(), { nonce: r } = me(t), n = il(r), o = Mt();
|
|
8813
|
-
return (s, i) => (f(), M(
|
|
8813
|
+
return (s, i) => (f(), M(ge, null, [V(l(R), $({
|
|
8814
8814
|
...s.$attrs,
|
|
8815
8815
|
...t
|
|
8816
8816
|
}, {
|
|
@@ -12726,7 +12726,7 @@ var lh = /* @__PURE__ */ h({
|
|
|
12726
12726
|
function Y(he) {
|
|
12727
12727
|
we.value = he.copy();
|
|
12728
12728
|
}
|
|
12729
|
-
const { fullCalendarLabel: J, headingValue: Pe, isDateDisabled: X, isDateUnavailable: oe, isNextButtonDisabled: ue, isPrevButtonDisabled: be, grid: Ne, weekdays:
|
|
12729
|
+
const { fullCalendarLabel: J, headingValue: Pe, isDateDisabled: X, isDateUnavailable: oe, isNextButtonDisabled: ue, isPrevButtonDisabled: be, grid: Ne, weekdays: _e, isOutsideVisibleView: Oe, nextPage: Zt, prevPage: va, formatter: vi } = Ds({
|
|
12730
12730
|
locale: G,
|
|
12731
12731
|
placeholder: we,
|
|
12732
12732
|
weekStartsOn: u,
|
|
@@ -12791,7 +12791,7 @@ var lh = /* @__PURE__ */ h({
|
|
|
12791
12791
|
initialFocus: s,
|
|
12792
12792
|
pagedNavigation: i,
|
|
12793
12793
|
grid: Ne,
|
|
12794
|
-
weekDays:
|
|
12794
|
+
weekDays: _e,
|
|
12795
12795
|
weekStartsOn: u,
|
|
12796
12796
|
weekdayFormat: d,
|
|
12797
12797
|
fixedWeeks: c,
|
|
@@ -12842,7 +12842,7 @@ var lh = /* @__PURE__ */ h({
|
|
|
12842
12842
|
default: v(() => [te("div", ah, [te("div", rh, le(l(J)), 1)]), g(he.$slots, "default", {
|
|
12843
12843
|
date: l(we),
|
|
12844
12844
|
grid: l(Ne),
|
|
12845
|
-
weekDays: l(
|
|
12845
|
+
weekDays: l(_e),
|
|
12846
12846
|
weekStartsOn: l(u),
|
|
12847
12847
|
locale: l(G),
|
|
12848
12848
|
fixedWeeks: l(c),
|
|
@@ -15783,7 +15783,7 @@ var B_ = /* @__PURE__ */ h({
|
|
|
15783
15783
|
o.onViewportChange(s.value), o.onContentChange(u.value);
|
|
15784
15784
|
}), t({ viewportElement: s });
|
|
15785
15785
|
const { forwardRef: i, currentElement: u } = O();
|
|
15786
|
-
return (d, c) => (f(), M(
|
|
15786
|
+
return (d, c) => (f(), M(ge, null, [te("div", $({
|
|
15787
15787
|
ref_key: "viewportElement",
|
|
15788
15788
|
ref: s,
|
|
15789
15789
|
"data-reka-scroll-area-viewport": "",
|
|
@@ -16010,7 +16010,7 @@ var N_ = /* @__PURE__ */ h({
|
|
|
16010
16010
|
disabled: l(o),
|
|
16011
16011
|
value: l(u)
|
|
16012
16012
|
}, {
|
|
16013
|
-
default: v(() => [l(ut)(l(u)) ? (f(), M("option", F_)) : j("v-if", !0), (f(!0), M(
|
|
16013
|
+
default: v(() => [l(ut)(l(u)) ? (f(), M("option", F_)) : j("v-if", !0), (f(!0), M(ge, null, Me(Array.from(q.value), (I) => (f(), M("option", $({ key: I.value ?? "" }, { ref_for: !0 }, I), null, 16))), 128))]),
|
|
16014
16014
|
_: 1
|
|
16015
16015
|
}, 8, [
|
|
16016
16016
|
"multiple",
|
|
@@ -16379,10 +16379,10 @@ var z_ = /* @__PURE__ */ h({
|
|
|
16379
16379
|
if (o.triggerElement.value && o.valueElement.value && d.value && p.value && m?.value && b?.value && _?.value) {
|
|
16380
16380
|
const C = o.triggerElement.value.getBoundingClientRect(), S = p.value.getBoundingClientRect(), A = o.valueElement.value.getBoundingClientRect(), I = _.value.getBoundingClientRect();
|
|
16381
16381
|
if (o.dir.value !== "rtl") {
|
|
16382
|
-
const X = I.left - S.left, oe = A.left - X, ue = C.left - oe, be = C.width + ue, Ne = Math.max(be, S.width),
|
|
16382
|
+
const X = I.left - S.left, oe = A.left - X, ue = C.left - oe, be = C.width + ue, Ne = Math.max(be, S.width), _e = window.innerWidth - et, Oe = nn(oe, et, Math.max(et, _e - Ne));
|
|
16383
16383
|
d.value.style.minWidth = `${be}px`, d.value.style.left = `${Oe}px`;
|
|
16384
16384
|
} else {
|
|
16385
|
-
const X = S.right - I.right, oe = window.innerWidth - A.right - X, ue = window.innerWidth - C.right - oe, be = C.width + ue, Ne = Math.max(be, S.width),
|
|
16385
|
+
const X = S.right - I.right, oe = window.innerWidth - A.right - X, ue = window.innerWidth - C.right - oe, be = C.width + ue, Ne = Math.max(be, S.width), _e = window.innerWidth - et, Oe = nn(oe, et, Math.max(et, _e - Ne));
|
|
16386
16386
|
d.value.style.minWidth = `${be}px`, d.value.style.right = `${Oe}px`;
|
|
16387
16387
|
}
|
|
16388
16388
|
const x = n().map((X) => X.ref), F = window.innerHeight - et * 2, B = m.value.scrollHeight, E = window.getComputedStyle(p.value), z = Number.parseInt(E.borderTopWidth, 10), Z = Number.parseInt(E.paddingTop, 10), U = Number.parseInt(E.borderBottomWidth, 10), G = Number.parseInt(E.paddingBottom, 10), ee = z + Z + B + G + U, ae = Math.min(b.value.offsetHeight * 5, ee), ce = window.getComputedStyle(m.value), re = Number.parseInt(ce.paddingTop, 10), Q = Number.parseInt(ce.paddingBottom, 10), K = C.top + C.height / 2 - et, ye = F - K, se = b.value.offsetHeight / 2, we = b.value.offsetTop + se, Y = z + Z + we, J = ee - Y;
|
|
@@ -17125,7 +17125,7 @@ var lb = /* @__PURE__ */ h({
|
|
|
17125
17125
|
}
|
|
17126
17126
|
u.value = p.scrollTop;
|
|
17127
17127
|
}
|
|
17128
|
-
return (c, p) => (f(), M(
|
|
17128
|
+
return (c, p) => (f(), M(ge, null, [V(l(R), $({
|
|
17129
17129
|
ref: l(s),
|
|
17130
17130
|
"data-reka-select-viewport": "",
|
|
17131
17131
|
role: "presentation"
|
|
@@ -18064,7 +18064,7 @@ var a0 = /* @__PURE__ */ h({
|
|
|
18064
18064
|
i.onToastAdd();
|
|
18065
18065
|
}), Ve(() => {
|
|
18066
18066
|
i.onToastRemove();
|
|
18067
|
-
}), t0({ onClose: P }), (C, S) => (f(), M(
|
|
18067
|
+
}), t0({ onClose: P }), (C, S) => (f(), M(ge, null, [T.value ? (f(), y(Gb, {
|
|
18068
18068
|
key: 0,
|
|
18069
18069
|
role: "alert",
|
|
18070
18070
|
"aria-live": C.type === "foreground" ? "assertive" : "polite",
|
|
@@ -19406,7 +19406,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
19406
19406
|
setup(e) {
|
|
19407
19407
|
const t = (a) => a.url ? bo("RouterLink") : "div";
|
|
19408
19408
|
return (a, r) => (f(), M("div", W0, [
|
|
19409
|
-
(f(!0), M(
|
|
19409
|
+
(f(!0), M(ge, null, Me(a.items, (n, o) => (f(), M(ge, null, [
|
|
19410
19410
|
n.command ? (f(), M("button", {
|
|
19411
19411
|
key: 0,
|
|
19412
19412
|
class: ke(["breadcrumb__item", { "breadcrumb__item--disabled": !n.command || n.disabled }]),
|
|
@@ -19873,7 +19873,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
19873
19873
|
for: l(r),
|
|
19874
19874
|
class: "radio__label"
|
|
19875
19875
|
}, [
|
|
19876
|
-
i.label ? (f(), M(
|
|
19876
|
+
i.label ? (f(), M(ge, { key: 0 }, [
|
|
19877
19877
|
ie(le(i.label), 1)
|
|
19878
19878
|
], 64)) : g(i.$slots, "default", { key: 1 })
|
|
19879
19879
|
], 8, pC)) : j("", !0)
|
|
@@ -19893,7 +19893,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
19893
19893
|
const t = e, a = Sa(t, "value"), r = W(t), n = Mt();
|
|
19894
19894
|
return (o, s) => (f(), y(l(Gv), $(l(r), { class: "combobox-item" }), {
|
|
19895
19895
|
default: v(() => [
|
|
19896
|
-
o.$slots.default ? j("", !0) : (f(), M(
|
|
19896
|
+
o.$slots.default ? j("", !0) : (f(), M(ge, { key: 0 }, [
|
|
19897
19897
|
l(n).multiple.value ? (f(), y(l(Ia), {
|
|
19898
19898
|
key: 0,
|
|
19899
19899
|
modelValue: l(n).modelValue.value,
|
|
@@ -19934,11 +19934,11 @@ const pD = /* @__PURE__ */ h({
|
|
|
19934
19934
|
},
|
|
19935
19935
|
setup(e) {
|
|
19936
19936
|
return (t, a) => (f(), M("thead", mC, [
|
|
19937
|
-
(f(!0), M(
|
|
19937
|
+
(f(!0), M(ge, null, Me(t.table.getHeaderGroups(), (r) => (f(), M("tr", {
|
|
19938
19938
|
key: r.id,
|
|
19939
19939
|
class: "table__row table__row--header"
|
|
19940
19940
|
}, [
|
|
19941
|
-
(f(!0), M(
|
|
19941
|
+
(f(!0), M(ge, null, Me(r.headers, (n) => (f(), M("th", {
|
|
19942
19942
|
key: n.id,
|
|
19943
19943
|
colspan: n.colSpan,
|
|
19944
19944
|
scope: "col",
|
|
@@ -19980,12 +19980,12 @@ const pD = /* @__PURE__ */ h({
|
|
|
19980
19980
|
return (t, a) => {
|
|
19981
19981
|
const r = Bn("loading");
|
|
19982
19982
|
return f(), M("tbody", CC, [
|
|
19983
|
-
(f(!0), M(
|
|
19983
|
+
(f(!0), M(ge, null, Me(t.table.getRowModel().rows, (n) => oa((f(), M("tr", {
|
|
19984
19984
|
key: n.id,
|
|
19985
19985
|
class: "table__row",
|
|
19986
19986
|
style: Ae({ background: n.original.bgColor && n.original.viewBgColor ? n.original.bgColor : "transparent" })
|
|
19987
19987
|
}, [
|
|
19988
|
-
(f(!0), M(
|
|
19988
|
+
(f(!0), M(ge, null, Me(n.getVisibleCells(), (o) => (f(), M("td", {
|
|
19989
19989
|
key: o.id,
|
|
19990
19990
|
class: ke(["table__cell", { "table__cell--selected": o.id.includes("checkbox") }]),
|
|
19991
19991
|
style: Ae({ verticalAlign: o.column.columnDef.meta?.verticalAlign, textAlign: o.column.columnDef.meta?.align })
|
|
@@ -20030,11 +20030,11 @@ const pD = /* @__PURE__ */ h({
|
|
|
20030
20030
|
},
|
|
20031
20031
|
setup(e) {
|
|
20032
20032
|
return (t, a) => (f(), M("tfoot", kC, [
|
|
20033
|
-
(f(!0), M(
|
|
20033
|
+
(f(!0), M(ge, null, Me(t.table.getFooterGroups(), (r) => (f(), M("tr", {
|
|
20034
20034
|
key: r.id,
|
|
20035
20035
|
class: "table__row table__row--footer"
|
|
20036
20036
|
}, [
|
|
20037
|
-
(f(!0), M(
|
|
20037
|
+
(f(!0), M(ge, null, Me(r.headers, (n) => (f(), M("th", {
|
|
20038
20038
|
key: n.id,
|
|
20039
20039
|
colspan: n.colSpan,
|
|
20040
20040
|
scope: "row",
|
|
@@ -20188,7 +20188,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
20188
20188
|
default: v(({ items: u }) => [
|
|
20189
20189
|
n("FirstPageLink") ? (f(), y(l(NC), { key: 0 })) : j("", !0),
|
|
20190
20190
|
n("PrevPageLink") ? (f(), y(l(HC), { key: 1 })) : j("", !0),
|
|
20191
|
-
(f(!0), M(
|
|
20191
|
+
(f(!0), M(ge, null, Me(u, (d, c) => (f(), M(ge, null, [
|
|
20192
20192
|
d.type === "page" ? (f(), y(l(RC), {
|
|
20193
20193
|
key: c,
|
|
20194
20194
|
value: d.value
|
|
@@ -20668,7 +20668,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
20668
20668
|
return (n, o) => (f(), y(l(_h), $(l(a), { class: "date-range-picker-field" }), {
|
|
20669
20669
|
default: v(({ segments: s }) => [
|
|
20670
20670
|
V(ro, { class: "date-range-picker-field__trigger-overlay" }),
|
|
20671
|
-
(f(!0), M(
|
|
20671
|
+
(f(!0), M(ge, null, Me(s.start, (i) => (f(), M(ge, {
|
|
20672
20672
|
key: i.part
|
|
20673
20673
|
}, [
|
|
20674
20674
|
i.part === "literal" ? (f(), y(Qa, {
|
|
@@ -20692,7 +20692,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
20692
20692
|
}, 1032, ["part"]))
|
|
20693
20693
|
], 64))), 128)),
|
|
20694
20694
|
o[0] || (o[0] = te("span", { class: "date-range-picker-field__seporator" }, "-", -1)),
|
|
20695
|
-
(f(!0), M(
|
|
20695
|
+
(f(!0), M(ge, null, Me(s.end, (i) => (f(), M(ge, {
|
|
20696
20696
|
key: i.part
|
|
20697
20697
|
}, [
|
|
20698
20698
|
i.part === "literal" ? (f(), y(Qa, {
|
|
@@ -21027,7 +21027,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
21027
21027
|
class: "dialog-content__title"
|
|
21028
21028
|
}), {
|
|
21029
21029
|
default: v(() => [
|
|
21030
|
-
u.title?.text ? (f(), M(
|
|
21030
|
+
u.title?.text ? (f(), M(ge, { key: 0 }, [
|
|
21031
21031
|
ie(le(u.title.text), 1)
|
|
21032
21032
|
], 64)) : g(u.$slots, "title", { key: 1 }, void 0, !0)
|
|
21033
21033
|
]),
|
|
@@ -21371,7 +21371,7 @@ const pD = /* @__PURE__ */ h({
|
|
|
21371
21371
|
(f(), y(ft(r[t.type])))
|
|
21372
21372
|
]),
|
|
21373
21373
|
te("p", jw, [
|
|
21374
|
-
n.$slots.default ? g(n.$slots, "default", { key: 0 }, void 0, !0) : (f(), M(
|
|
21374
|
+
n.$slots.default ? g(n.$slots, "default", { key: 0 }, void 0, !0) : (f(), M(ge, { key: 1 }, [
|
|
21375
21375
|
ie(le(t.message), 1)
|
|
21376
21376
|
], 64))
|
|
21377
21377
|
])
|
|
@@ -22053,7 +22053,7 @@ const HS = /* @__PURE__ */ h({
|
|
|
22053
22053
|
const { toasts: t } = M1();
|
|
22054
22054
|
return (a, r) => (f(), y(l(q1), null, {
|
|
22055
22055
|
default: v(() => [
|
|
22056
|
-
(f(!0), M(
|
|
22056
|
+
(f(!0), M(ge, null, Me(l(t), (n) => (f(), y(l(B1), $({
|
|
22057
22057
|
key: n.id
|
|
22058
22058
|
}, { ref_for: !0 }, n), {
|
|
22059
22059
|
default: v(() => [
|
|
@@ -22260,7 +22260,7 @@ const HS = /* @__PURE__ */ h({
|
|
|
22260
22260
|
disabled: a.disabled
|
|
22261
22261
|
}), {
|
|
22262
22262
|
default: v(({ segments: i }) => [
|
|
22263
|
-
(f(!0), M(
|
|
22263
|
+
(f(!0), M(ge, null, Me(i, (u) => (f(), M(ge, {
|
|
22264
22264
|
key: u.part
|
|
22265
22265
|
}, [
|
|
22266
22266
|
u.part === "literal" ? (f(), y(l(Ql), {
|
|
@@ -22379,7 +22379,7 @@ const HS = /* @__PURE__ */ h({
|
|
|
22379
22379
|
}),
|
|
22380
22380
|
emits: ["update:modelValue"],
|
|
22381
22381
|
setup(e) {
|
|
22382
|
-
const t = tt(e, "modelValue"), a = k(
|
|
22382
|
+
const t = tt(e, "modelValue"), a = k({
|
|
22383
22383
|
monday: "Понедельник",
|
|
22384
22384
|
tuesday: "Вторник",
|
|
22385
22385
|
wednesday: "Среда",
|
|
@@ -22389,19 +22389,15 @@ const HS = /* @__PURE__ */ h({
|
|
|
22389
22389
|
sunday: "Воскресенье"
|
|
22390
22390
|
});
|
|
22391
22391
|
return fe(() => {
|
|
22392
|
-
if (Object.keys(t.value).length === 0) {
|
|
22393
|
-
const
|
|
22394
|
-
t.value =
|
|
22392
|
+
if (!t.value || Object.keys(t.value).length === 0) {
|
|
22393
|
+
const r = Object.keys(a.value);
|
|
22394
|
+
t.value = r.reduce((n, o) => (n[o] = { active: !1, time: [] }, n), {});
|
|
22395
22395
|
}
|
|
22396
|
-
}), (
|
|
22397
|
-
class: "shedule",
|
|
22398
|
-
open: a.value,
|
|
22399
|
-
"onUpdate:open": o[0] || (o[0] = (s) => a.value = s)
|
|
22400
|
-
}, {
|
|
22396
|
+
}), (r, n) => (f(), y(l(ug), { class: "shedule" }, {
|
|
22401
22397
|
default: v(() => [
|
|
22402
22398
|
V(l(kg), { "as-child": "" }, {
|
|
22403
22399
|
default: v(() => [
|
|
22404
|
-
te("button", G1, le(
|
|
22400
|
+
te("button", G1, le(r.placeholder), 1)
|
|
22405
22401
|
]),
|
|
22406
22402
|
_: 1
|
|
22407
22403
|
}),
|
|
@@ -22413,33 +22409,35 @@ const HS = /* @__PURE__ */ h({
|
|
|
22413
22409
|
}, {
|
|
22414
22410
|
default: v(() => [
|
|
22415
22411
|
te("div", Y1, [
|
|
22416
|
-
(f(!0), M(
|
|
22412
|
+
(f(!0), M(ge, null, Me(a.value, (o, s) => (f(), M("div", {
|
|
22417
22413
|
class: "shedule__item",
|
|
22418
|
-
key:
|
|
22414
|
+
key: s
|
|
22419
22415
|
}, [
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
-
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
|
|
22432
|
-
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
22436
|
-
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22416
|
+
t.value ? (f(), M(ge, { key: 0 }, [
|
|
22417
|
+
V(l(Ia), {
|
|
22418
|
+
modelValue: t.value[s].active,
|
|
22419
|
+
"onUpdate:modelValue": (i) => t.value[s].active = i,
|
|
22420
|
+
class: "shedule__item-checkbox",
|
|
22421
|
+
checked: t.value[s].active
|
|
22422
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "checked"]),
|
|
22423
|
+
te("span", Z1, le(o), 1),
|
|
22424
|
+
te("div", J1, [
|
|
22425
|
+
n[0] || (n[0] = te("span", { class: "shedule__item-time__text" }, "с", -1)),
|
|
22426
|
+
V(l(so), {
|
|
22427
|
+
modelValue: t.value[s].time[0],
|
|
22428
|
+
"onUpdate:modelValue": (i) => t.value[s].time[0] = i,
|
|
22429
|
+
disabled: !t.value[s].active
|
|
22430
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
22431
|
+
]),
|
|
22432
|
+
te("div", X1, [
|
|
22433
|
+
n[1] || (n[1] = te("span", { class: "shedule__item-time__text" }, "по", -1)),
|
|
22434
|
+
V(l(so), {
|
|
22435
|
+
modelValue: t.value[s].time[1],
|
|
22436
|
+
"onUpdate:modelValue": (i) => t.value[s].time[1] = i,
|
|
22437
|
+
disabled: !t.value[s].active
|
|
22438
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
22439
|
+
])
|
|
22440
|
+
], 64)) : j("", !0)
|
|
22443
22441
|
]))), 128))
|
|
22444
22442
|
])
|
|
22445
22443
|
]),
|
|
@@ -22450,9 +22448,9 @@ const HS = /* @__PURE__ */ h({
|
|
|
22450
22448
|
})
|
|
22451
22449
|
]),
|
|
22452
22450
|
_: 1
|
|
22453
|
-
}
|
|
22451
|
+
}));
|
|
22454
22452
|
}
|
|
22455
|
-
}), zS = /* @__PURE__ */ N(Q1, [["__scopeId", "data-v-
|
|
22453
|
+
}), zS = /* @__PURE__ */ N(Q1, [["__scopeId", "data-v-cf5b3fac"]]), eq = ["width", "height"], tq = /* @__PURE__ */ h({
|
|
22456
22454
|
__name: "Spinner",
|
|
22457
22455
|
props: {
|
|
22458
22456
|
color: { default: "currentColor" },
|
|
@@ -22578,8 +22576,8 @@ const lq = /* @__PURE__ */ h({
|
|
|
22578
22576
|
selectLabel: d,
|
|
22579
22577
|
modelValue: c
|
|
22580
22578
|
}, void 0, !0) : (f(), M("div", oq, [
|
|
22581
|
-
Array.isArray(c) && c.length > 0 ? (f(), M(
|
|
22582
|
-
(f(!0), M(
|
|
22579
|
+
Array.isArray(c) && c.length > 0 ? (f(), M(ge, { key: 0 }, [
|
|
22580
|
+
(f(!0), M(ge, null, Me(s.value, (p) => (f(), y(l(no), {
|
|
22583
22581
|
colors: { background: "#F1F4F5", text: "#292929" },
|
|
22584
22582
|
key: p
|
|
22585
22583
|
}, {
|
|
@@ -22656,7 +22654,7 @@ const lq = /* @__PURE__ */ h({
|
|
|
22656
22654
|
const t = e, a = Sa(t, "value"), r = W(t), n = St();
|
|
22657
22655
|
return (o, s) => (f(), y(l(ob), $(l(r), { class: "select-item" }), {
|
|
22658
22656
|
default: v(() => [
|
|
22659
|
-
o.$slots.default ? j("", !0) : (f(), M(
|
|
22657
|
+
o.$slots.default ? j("", !0) : (f(), M(ge, { key: 0 }, [
|
|
22660
22658
|
l(n).multiple.value ? (f(), y(l(Ia), {
|
|
22661
22659
|
key: 0,
|
|
22662
22660
|
modelValue: l(n).modelValue.value,
|
package/dist/rekaUI.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ declare type __VLS_PublicProps_5 = {
|
|
|
829
829
|
} & __VLS_Props_9;
|
|
830
830
|
|
|
831
831
|
declare type __VLS_PublicProps_6 = {
|
|
832
|
-
modelValue: TShedule;
|
|
832
|
+
modelValue: TShedule | null;
|
|
833
833
|
} & __VLS_Props_10;
|
|
834
834
|
|
|
835
835
|
declare function __VLS_template(): {
|
|
@@ -2942,9 +2942,9 @@ size: "small" | "default" | "large";
|
|
|
2942
2942
|
export { RadioGroupRoot }
|
|
2943
2943
|
|
|
2944
2944
|
export declare const Schedule: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2945
|
-
"update:modelValue": (value: TShedule) => any;
|
|
2945
|
+
"update:modelValue": (value: TShedule | null) => any;
|
|
2946
2946
|
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
2947
|
-
"onUpdate:modelValue"?: ((value: TShedule) => any) | undefined;
|
|
2947
|
+
"onUpdate:modelValue"?: ((value: TShedule | null) => any) | undefined;
|
|
2948
2948
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2949
2949
|
|
|
2950
2950
|
export declare const ScrollAreaRoot: __VLS_WithTemplateSlots_66<typeof __VLS_component_66, __VLS_TemplateResult_66["slots"]>;
|