@central-design-system/components 3.8.0 → 3.8.2
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/cds.css +1 -1
- package/dist/cds.es.js +104 -100
- package/dist/cds.es.js.map +1 -1
- package/dist/cds.umd.js +4 -4
- package/dist/cds.umd.js.map +1 -1
- package/dist/components/CdsAutocomplete/CdsAutocomplete.d.ts +5 -5
- package/dist/components/CdsButton/CdsButton.d.ts +5 -5
- package/dist/components/CdsButton/CdsFunctionalButton.d.ts +2 -2
- package/dist/components/CdsCard/CdsCard.d.ts +2 -2
- package/dist/components/CdsCard/CdsCardItem.d.ts +2 -2
- package/dist/components/CdsCheckbox/CdsCheckbox.d.ts +2 -2
- package/dist/components/CdsCheckbox/CdsCheckboxGroup.d.ts +2 -2
- package/dist/components/CdsCombobox/CdsCombobox.d.ts +77 -77
- package/dist/components/CdsContainer/CdsContainer.d.ts +10 -10
- package/dist/components/CdsContentSwitcher/CdsContentSwitcherItem.d.ts +6 -6
- package/dist/components/CdsDropdown/CdsDropdown.d.ts +87 -87
- package/dist/components/CdsExpandablePanel/CdsExpandablePanel.d.ts +2 -2
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.d.ts +2 -2
- package/dist/components/CdsIcon/CdsIcon.d.ts +1 -1
- package/dist/components/CdsInput/CdsInput.d.ts +2 -2
- package/dist/components/CdsList/CdsListGroup.d.ts +3 -3
- package/dist/components/CdsList/CdsListItem.d.ts +3 -3
- package/dist/components/CdsNotification/CdsNotification.d.ts +3 -3
- package/dist/components/CdsNotification/CdsNotificationAlert.d.ts +3 -3
- package/dist/components/CdsRadioButton/CdsRadio.d.ts +6 -6
- package/dist/components/CdsRadioButton/CdsRadioButton.d.ts +2 -2
- package/dist/components/CdsSelect/CdsSelect.d.ts +21 -21
- package/dist/components/CdsSidebar/CdsSidebar.d.ts +2 -2
- package/dist/components/CdsSlideGroup/CdsSlideGroup.d.ts +10 -10
- package/dist/components/CdsSlideView/CdsSlideView.d.ts +2 -2
- package/dist/components/CdsStatus/CdsStatus.d.ts +2 -2
- package/dist/components/CdsTabs/CdsTab.d.ts +2 -2
- package/dist/components/CdsTabs/CdsTabs.d.ts +10 -10
- package/dist/components/CdsTabsV2/CdsTabV2.d.ts +2 -2
- package/dist/components/CdsTabsV2/CdsTabsV2.d.ts +10 -10
- package/dist/components/CdsTag/CdsTag.d.ts +3 -3
- package/dist/components/CdsTextArea/CdsTextArea.d.ts +21 -21
- package/dist/components/CdsTextInput/CdsTextInput.d.ts +21 -21
- package/dist/components/CdsUploader/CdsUploader.d.ts +10 -10
- package/dist/components/CdsUploader/components/AjaxUploader.d.ts +8 -8
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +3 -3
- package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +3 -3
- package/package.json +1 -1
package/dist/cds.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Gf = Object.defineProperty;
|
|
2
2
|
var qf = (e, t, n) => t in e ? Gf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var xo = (e, t, n) => qf(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { reactive as ft, computed as y, watchEffect as
|
|
4
|
+
import { reactive as ft, computed as y, watchEffect as rt, toRefs as ln, isVNode as Pn, Comment as tc, Fragment as ze, getCurrentInstance as gs, isRef as ar, unref as o, toRef as at, shallowRef as be, camelize as Na, inject as We, nextTick as je, resolveDynamicComponent as Vt, defineComponent as $, watch as ne, onScopeDispose as Ut, effectScope as ys, ref as B, toRaw as At, onBeforeUnmount as ct, provide as et, onBeforeMount as ps, onMounted as ut, TransitionGroup as bs, Transition as wn, h as g, mergeProps as Ge, readonly as ks, onBeforeUpdate as Xf, onUnmounted as go, createElementBlock as pe, openBlock as G, normalizeClass as St, createBlock as Ae, createCommentVNode as me, renderSlot as fe, resolveComponent as Pe, withCtx as xe, createElementVNode as tt, renderList as pn, toDisplayString as lt, createTextVNode as Ln, createVNode as vt, normalizeProps as eo, guardReactiveProps as to, withDirectives as Yt, vShow as Vn, Teleport as Zf, createSlots as Bo, withModifiers as Ka, warn as Jf, normalizeStyle as nc, withKeys as oc, onUpdated as Vo, Text as Qf, onActivated as eh, vModelText as th, cloneVNode as ac } from "vue";
|
|
5
5
|
const Oe = typeof window != "undefined", za = Oe && "IntersectionObserver" in window, rc = Oe && ("ontouchstart" in window || window.navigator.maxTouchPoints > 0), nh = Oe && typeof CSS != "undefined" && typeof CSS.supports != "undefined" && CSS.supports("selector(:focus-visible)"), Tn = "cds-scroll-blocked", ye = Object.freeze({
|
|
6
6
|
enter: "Enter",
|
|
7
7
|
tab: "Tab",
|
|
@@ -143,7 +143,7 @@ function Ir(e, t, n) {
|
|
|
143
143
|
}
|
|
144
144
|
function fc(e) {
|
|
145
145
|
const t = ft({}), n = y(e);
|
|
146
|
-
return
|
|
146
|
+
return rt(
|
|
147
147
|
() => {
|
|
148
148
|
for (const a in n.value)
|
|
149
149
|
t[a] = n.value[a];
|
|
@@ -399,12 +399,12 @@ function ch(e) {
|
|
|
399
399
|
function Fr(e, ...t) {
|
|
400
400
|
const n = t.flat(), a = n[0];
|
|
401
401
|
return lh(
|
|
402
|
-
() => Object.fromEntries(typeof a == "function" ? Object.entries(ln(e)).filter(([r, s]) => a(ch(s), r)) : n.map((r) => [r,
|
|
402
|
+
() => Object.fromEntries(typeof a == "function" ? Object.entries(ln(e)).filter(([r, s]) => a(ch(s), r)) : n.map((r) => [r, at(e, r)]))
|
|
403
403
|
);
|
|
404
404
|
}
|
|
405
405
|
function Nt(e) {
|
|
406
406
|
const t = be();
|
|
407
|
-
return
|
|
407
|
+
return rt(
|
|
408
408
|
() => {
|
|
409
409
|
t.value = e();
|
|
410
410
|
},
|
|
@@ -2095,7 +2095,9 @@ $({ name: "IconStar" });
|
|
|
2095
2095
|
$({ name: "IconTabBackward" });
|
|
2096
2096
|
$({ name: "IconTabForward" });
|
|
2097
2097
|
$({ name: "IconTelegram" });
|
|
2098
|
+
$({ name: "IconThumbDownFill" });
|
|
2098
2099
|
$({ name: "IconThumbDown" });
|
|
2100
|
+
$({ name: "IconThumbUpFill" });
|
|
2099
2101
|
$({ name: "IconThumbUp" });
|
|
2100
2102
|
$({ name: "IconTimer" });
|
|
2101
2103
|
$({ name: "IconTool" });
|
|
@@ -2220,7 +2222,9 @@ const gt = [
|
|
|
2220
2222
|
"tab-backward",
|
|
2221
2223
|
"tab-forward",
|
|
2222
2224
|
"telegram",
|
|
2225
|
+
"thumb-down-fill",
|
|
2223
2226
|
"thumb-down",
|
|
2227
|
+
"thumb-up-fill",
|
|
2224
2228
|
"thumb-up",
|
|
2225
2229
|
"timer",
|
|
2226
2230
|
"tool",
|
|
@@ -3201,7 +3205,7 @@ function Tm(e) {
|
|
|
3201
3205
|
isReadonly: a,
|
|
3202
3206
|
isValidating: r,
|
|
3203
3207
|
items: s,
|
|
3204
|
-
validateOn:
|
|
3208
|
+
validateOn: at(e, "validateOn")
|
|
3205
3209
|
}), {
|
|
3206
3210
|
errors: i,
|
|
3207
3211
|
isDisabled: n,
|
|
@@ -3780,7 +3784,7 @@ const Bm = ["xs", "sm", "md", "lg", "xl"], rw = ["smUp", "smDown", "mdUp", "mdDo
|
|
|
3780
3784
|
}, Hr = Symbol.for("cds:display");
|
|
3781
3785
|
function Rm(e, t) {
|
|
3782
3786
|
const { thresholds: n, mobileBreakpoint: a } = Lm(e), r = be(Ui(t)), s = be(Gi(t)), i = be(qi(t)), l = be(Oe ? window.innerWidth : 0), c = be(Oe ? window.innerHeight : 0), h = ft({});
|
|
3783
|
-
|
|
3787
|
+
rt(() => {
|
|
3784
3788
|
const m = r.value < n.xs, v = r.value < n.md && !m, p = r.value < n.lg && !(v || m), b = r.value < n.xl && !(p || v || m), w = r.value >= n.xl, S = m ? "xs" : v ? "sm" : p ? "md" : b ? "lg" : "xl", k = typeof a == "number" ? a : n[a], _ = r.value < k;
|
|
3785
3789
|
h.xs = m, h.sm = v, h.md = p, h.lg = b, h.xl = w, h.smUp = !m, h.mdUp = !(m || v), h.lgUp = !(m || v || p), h.xlUp = !(m || v || p || b), h.smDown = !(p || b || w), h.mdDown = !(b || w), h.lgDown = !w, h.name = S, h.height = s.value, h.width = r.value, h.mobile = _, h.mobileBreakpoint = a, h.platform = i.value, h.thresholds = n, h.screenWidth = l.value, h.screenHeight = c.value;
|
|
3786
3790
|
}), Oe && window.addEventListener("resize", u, { passive: !0 });
|
|
@@ -4005,7 +4009,7 @@ function vd(e, t, n, a) {
|
|
|
4005
4009
|
const r = B([]), s = B(/* @__PURE__ */ new Map()), i = y(
|
|
4006
4010
|
() => a != null && a.transform ? o(t).map((c) => [c, a.transform(c)]) : o(t)
|
|
4007
4011
|
);
|
|
4008
|
-
|
|
4012
|
+
rt(() => {
|
|
4009
4013
|
const c = typeof n == "function" ? n() : o(n), h = typeof c != "string" && typeof c != "number" ? "" : String(c), u = Vm(o(i), h, {
|
|
4010
4014
|
customKeyFilter: e.customKeyFilter,
|
|
4011
4015
|
default: e.customFilter,
|
|
@@ -4502,7 +4506,7 @@ function Sd(e, t) {
|
|
|
4502
4506
|
let r = typeof e == "function" ? e() : e;
|
|
4503
4507
|
a.value !== void 0 && (r = o(a)), n !== void 0 && (r = typeof n == "function" ? n() : n);
|
|
4504
4508
|
const s = B(r), i = B(r);
|
|
4505
|
-
|
|
4509
|
+
rt(() => {
|
|
4506
4510
|
let c = a.value !== void 0 ? a.value : s.value;
|
|
4507
4511
|
t != null && t.postState && (c = t.postState(c)), i.value = c;
|
|
4508
4512
|
});
|
|
@@ -4678,7 +4682,7 @@ function Gn(e, t, n = !0) {
|
|
|
4678
4682
|
if (!n) return s;
|
|
4679
4683
|
throw new Error(`[CDS] Could not find useGroup injection with symbol ${t.description}`);
|
|
4680
4684
|
}
|
|
4681
|
-
const i =
|
|
4685
|
+
const i = at(e, "value"), l = y(() => s.disabled.value || e.disabled);
|
|
4682
4686
|
s.register({ id: r, value: i, disabled: l }, a), ct(() => {
|
|
4683
4687
|
s.unregister(r);
|
|
4684
4688
|
});
|
|
@@ -4758,7 +4762,7 @@ function So(e, t) {
|
|
|
4758
4762
|
unregister: l,
|
|
4759
4763
|
select: h,
|
|
4760
4764
|
selected: r,
|
|
4761
|
-
disabled:
|
|
4765
|
+
disabled: at(e, "disabled"),
|
|
4762
4766
|
prev: () => u(a.length - 1),
|
|
4763
4767
|
next: () => u(1),
|
|
4764
4768
|
isSelected: (m) => r.value.includes(m),
|
|
@@ -6607,7 +6611,7 @@ function O0(e) {
|
|
|
6607
6611
|
const m = f.push(l);
|
|
6608
6612
|
Oe && ne(i, () => m.patch(l));
|
|
6609
6613
|
} else
|
|
6610
|
-
Oe ? (f.addHeadObjs(y(l)),
|
|
6614
|
+
Oe ? (f.addHeadObjs(y(l)), rt(() => f.updateDOM())) : f.addHeadObjs(l());
|
|
6611
6615
|
else if (t.isShadowDom)
|
|
6612
6616
|
R0(i);
|
|
6613
6617
|
else {
|
|
@@ -6810,7 +6814,7 @@ function N0(e, t, n = !1) {
|
|
|
6810
6814
|
}
|
|
6811
6815
|
s == null || s.activeChildren.delete(a.uid);
|
|
6812
6816
|
});
|
|
6813
|
-
}), r &&
|
|
6817
|
+
}), r && rt(() => {
|
|
6814
6818
|
var f;
|
|
6815
6819
|
const u = ((f = Eo.at(-1)) == null ? void 0 : f[0]) === a.uid;
|
|
6816
6820
|
setTimeout(() => l.value = u);
|
|
@@ -6941,7 +6945,7 @@ function H0(e, { isActive: t, isTop: n }) {
|
|
|
6941
6945
|
{ flush: "post" }
|
|
6942
6946
|
);
|
|
6943
6947
|
const S = B();
|
|
6944
|
-
|
|
6948
|
+
rt(() => {
|
|
6945
6949
|
S.value && je(() => {
|
|
6946
6950
|
r.value = Lo(o(S));
|
|
6947
6951
|
});
|
|
@@ -7370,7 +7374,7 @@ const wa = {
|
|
|
7370
7374
|
function Z0(e, t) {
|
|
7371
7375
|
if (!Oe) return;
|
|
7372
7376
|
let n;
|
|
7373
|
-
|
|
7377
|
+
rt(async () => {
|
|
7374
7378
|
n == null || n.stop(), t.isActive.value && e.scrollStrategy && (n = ys(), await new Promise((a) => setTimeout(a)), n.active && n.run(() => {
|
|
7375
7379
|
var a;
|
|
7376
7380
|
typeof e.scrollStrategy == "function" ? e.scrollStrategy(t, e, n) : (a = wa[e.scrollStrategy]) == null || a.call(wa, t, e, n);
|
|
@@ -7693,7 +7697,7 @@ function hv(e, t, n, a, r, s) {
|
|
|
7693
7697
|
fe(e.$slots, "default")
|
|
7694
7698
|
], 2);
|
|
7695
7699
|
}
|
|
7696
|
-
const
|
|
7700
|
+
const it = /* @__PURE__ */ dt(fv, [["render", hv]]);
|
|
7697
7701
|
function an(e, t = "top center 0", n) {
|
|
7698
7702
|
return $({
|
|
7699
7703
|
name: e,
|
|
@@ -8062,7 +8066,7 @@ const Xd = /* @__PURE__ */ dt(kv, [["render", Cv]]), Io = "CdsInput", rn = $({
|
|
|
8062
8066
|
[
|
|
8063
8067
|
o(E) && g("div", { class: "cds-input__prepend", onClick: C }, [
|
|
8064
8068
|
(I = t.prepend) == null ? void 0 : I.call(t),
|
|
8065
|
-
!!e.prependIcon && g(
|
|
8069
|
+
!!e.prependIcon && g(it, { name: e.prependIcon })
|
|
8066
8070
|
]),
|
|
8067
8071
|
o(O) && g(
|
|
8068
8072
|
"div",
|
|
@@ -8075,7 +8079,7 @@ const Xd = /* @__PURE__ */ dt(kv, [["render", Cv]]), Io = "CdsInput", rn = $({
|
|
|
8075
8079
|
),
|
|
8076
8080
|
o(x) && g("div", { class: "cds-input__append", onClick: F }, [
|
|
8077
8081
|
(z = t.append) == null ? void 0 : z.call(t),
|
|
8078
|
-
!!e.appendIcon && g(
|
|
8082
|
+
!!e.appendIcon && g(it, { name: e.appendIcon })
|
|
8079
8083
|
]),
|
|
8080
8084
|
o(L) && g(
|
|
8081
8085
|
Xd,
|
|
@@ -8607,7 +8611,7 @@ const cl = "CdsList", Nn = $({
|
|
|
8607
8611
|
}
|
|
8608
8612
|
}), dl = "CdsListItem", Nv = $({
|
|
8609
8613
|
name: dl,
|
|
8610
|
-
components: { CdsIcon:
|
|
8614
|
+
components: { CdsIcon: it },
|
|
8611
8615
|
inheritAttrs: !1,
|
|
8612
8616
|
props: {
|
|
8613
8617
|
/**
|
|
@@ -8834,7 +8838,7 @@ const Et = /* @__PURE__ */ dt(Nv, [["render", Wv]]), Yv = $({
|
|
|
8834
8838
|
...ot()
|
|
8835
8839
|
},
|
|
8836
8840
|
setup(e, { expose: t }) {
|
|
8837
|
-
const { isOpen: n, open: a, id: r } = fd(
|
|
8841
|
+
const { isOpen: n, open: a, id: r } = fd(at(e, "value"), !0), s = eu(), i = y(() => `cds-list-group--id-${String(r.value)}`), l = y(() => o(n) ? e.collapseIcon : e.expandIcon), c = y(() => !e.subgroup), h = y(() => ({
|
|
8838
8842
|
onClick: f,
|
|
8839
8843
|
id: o(i),
|
|
8840
8844
|
appendIcon: o(l),
|
|
@@ -9105,7 +9109,7 @@ const Jr = {
|
|
|
9105
9109
|
}), { teleportTarget: l } = ym(
|
|
9106
9110
|
y(() => e.attach || e.contained),
|
|
9107
9111
|
"cds-overlay-container"
|
|
9108
|
-
), { hasContent: c, onAfterLeave: h } = Ua(e, i), { globalTop: u, localTop: f, stackStyles: m } = N0(i,
|
|
9112
|
+
), { hasContent: c, onAfterLeave: h } = Ua(e, i), { globalTop: u, localTop: f, stackStyles: m } = N0(i, at(e, "zIndex"), e._disableGlobalStack), { activatorEl: v, activatorRef: p, target: b, targetEl: w, targetRef: S, activatorEvents: k, contentEvents: _, scrimEvents: x } = H0(e, {
|
|
9109
9113
|
isActive: i,
|
|
9110
9114
|
isTop: f
|
|
9111
9115
|
}), { dimensionsStyles: E } = Co(e), C = Nm(), { scopeId: F } = Jo();
|
|
@@ -9405,7 +9409,7 @@ function hg(e, t, n, a, r, s) {
|
|
|
9405
9409
|
}
|
|
9406
9410
|
const In = /* @__PURE__ */ dt(ug, [["render", hg]]), mg = Symbol.for("cds:button-toggle"), Do = "CdsButton", vg = $({
|
|
9407
9411
|
name: Do,
|
|
9408
|
-
components: { CdsLoader: In, CdsIcon:
|
|
9412
|
+
components: { CdsLoader: In, CdsIcon: it },
|
|
9409
9413
|
props: {
|
|
9410
9414
|
/**
|
|
9411
9415
|
* Кнопка активна
|
|
@@ -9569,7 +9573,7 @@ const It = /* @__PURE__ */ dt(vg, [["render", bg]]), kg = "CdsFunctionalButton",
|
|
|
9569
9573
|
CdsInputLabel: Mt,
|
|
9570
9574
|
CdsInputDescription: jt,
|
|
9571
9575
|
CdsInputCounter: ri,
|
|
9572
|
-
CdsIcon:
|
|
9576
|
+
CdsIcon: it,
|
|
9573
9577
|
CdsLoader: In,
|
|
9574
9578
|
CdsFunctionalButton: qe,
|
|
9575
9579
|
CdsTransition: bt
|
|
@@ -10200,7 +10204,7 @@ const Tt = /* @__PURE__ */ dt(Cg, [["render", xg]]), $g = "CdsDivider", zn = $({
|
|
|
10200
10204
|
hideMessages: !0,
|
|
10201
10205
|
tabindex: "-1"
|
|
10202
10206
|
}) : void 0,
|
|
10203
|
-
De.props.prependIcon && g(
|
|
10207
|
+
De.props.prependIcon && g(it, { name: De.props.prependIcon })
|
|
10204
10208
|
]) : void 0,
|
|
10205
10209
|
title: () => {
|
|
10206
10210
|
var T, j, q;
|
|
@@ -10245,7 +10249,7 @@ const Tt = /* @__PURE__ */ dt(Cg, [["render", xg]]), $g = "CdsDivider", zn = $({
|
|
|
10245
10249
|
var oe;
|
|
10246
10250
|
return [
|
|
10247
10251
|
(oe = t["append-inner"]) == null ? void 0 : oe.call(t),
|
|
10248
|
-
o(de) && g(
|
|
10252
|
+
o(de) && g(it, {
|
|
10249
10253
|
name: e.menuIcon,
|
|
10250
10254
|
onClick: zt,
|
|
10251
10255
|
class: "cds-autocomplete__menu-icon",
|
|
@@ -11029,7 +11033,7 @@ const ci = /* @__PURE__ */ dt(Kg, [["render", zg]]), Hg = "CdsCardActions", du =
|
|
|
11029
11033
|
r && g(
|
|
11030
11034
|
"div",
|
|
11031
11035
|
{ key: "prepend", class: "cds-card-item__prepend" },
|
|
11032
|
-
t.prepend ? t.prepend() : g(
|
|
11036
|
+
t.prepend ? t.prepend() : g(it, { key: "prepend-icon", name: e.prependIcon })
|
|
11033
11037
|
),
|
|
11034
11038
|
g("div", { class: "cds-card-item__content" }, [
|
|
11035
11039
|
n && g(
|
|
@@ -11057,7 +11061,7 @@ const ci = /* @__PURE__ */ dt(Kg, [["render", zg]]), Hg = "CdsCardActions", du =
|
|
|
11057
11061
|
s && g(
|
|
11058
11062
|
"div",
|
|
11059
11063
|
{ key: "append", class: "cds-card-item__append" },
|
|
11060
|
-
t.append ? t.append() : g(
|
|
11064
|
+
t.append ? t.append() : g(it, { key: "append-icon", name: e.appendIcon })
|
|
11061
11065
|
)
|
|
11062
11066
|
]
|
|
11063
11067
|
);
|
|
@@ -11281,7 +11285,7 @@ const ci = /* @__PURE__ */ dt(Kg, [["render", zg]]), Hg = "CdsCardActions", du =
|
|
|
11281
11285
|
}
|
|
11282
11286
|
}), ur = "CdsTag", Zg = $({
|
|
11283
11287
|
name: ur,
|
|
11284
|
-
components: { CdsIcon:
|
|
11288
|
+
components: { CdsIcon: it },
|
|
11285
11289
|
props: {
|
|
11286
11290
|
removable: {
|
|
11287
11291
|
type: Boolean,
|
|
@@ -11375,7 +11379,7 @@ function ty(e, t, n, a, r, s) {
|
|
|
11375
11379
|
}
|
|
11376
11380
|
const Pa = /* @__PURE__ */ dt(Zg, [["render", ty]]), fr = "CdsCombobox", ny = $({
|
|
11377
11381
|
name: fr,
|
|
11378
|
-
components: { CdsTextInput: Tt, CdsMenu: Kn, CdsList: Nn, CdsListItem: Et, CdsCheckbox: Ht, CdsTag: Pa, CdsIcon:
|
|
11382
|
+
components: { CdsTextInput: Tt, CdsMenu: Kn, CdsList: Nn, CdsListItem: Et, CdsCheckbox: Ht, CdsTag: Pa, CdsIcon: it, CdsDivider: zn, CdsHighlight: qr },
|
|
11379
11383
|
props: {
|
|
11380
11384
|
/**
|
|
11381
11385
|
* Разделители для ввода нескольких значений, при вводе будет создавать новый элемент.
|
|
@@ -11746,7 +11750,7 @@ const Pa = /* @__PURE__ */ dt(Zg, [["render", ty]]), fr = "CdsCombobox", ny = $(
|
|
|
11746
11750
|
var ue;
|
|
11747
11751
|
return [
|
|
11748
11752
|
(ue = n["append-inner"]) == null ? void 0 : ue.call(n),
|
|
11749
|
-
o(we) ? g(
|
|
11753
|
+
o(we) ? g(it, {
|
|
11750
11754
|
name: e.menuIcon,
|
|
11751
11755
|
onClick: zt,
|
|
11752
11756
|
class: "cds-combobox__menu-icon",
|
|
@@ -13813,7 +13817,7 @@ function $y(e, t, n, a, r, s) {
|
|
|
13813
13817
|
}
|
|
13814
13818
|
const Ey = /* @__PURE__ */ dt(wy, [["render", $y]]), Ao = "CdsDropdown", Iy = $({
|
|
13815
13819
|
name: Ao,
|
|
13816
|
-
components: { CdsTextInput: Tt, CdsMenu: Kn, CdsList: Nn, CdsListItem: Et, CdsCheckbox: Ht, CdsTag: Pa, CdsIcon:
|
|
13820
|
+
components: { CdsTextInput: Tt, CdsMenu: Kn, CdsList: Nn, CdsListItem: Et, CdsCheckbox: Ht, CdsTag: Pa, CdsIcon: it, CdsDivider: zn },
|
|
13817
13821
|
props: {
|
|
13818
13822
|
...qs(),
|
|
13819
13823
|
...Un(),
|
|
@@ -14780,7 +14784,7 @@ const Uy = /* @__PURE__ */ dt(Ny, [["render", Yy]]), Gy = ["default", "accordion
|
|
|
14780
14784
|
class: "cds-expandable-panel__title-icon"
|
|
14781
14785
|
},
|
|
14782
14786
|
[
|
|
14783
|
-
t.action ? t.action(o(i)) : g(
|
|
14787
|
+
t.action ? t.action(o(i)) : g(it, {
|
|
14784
14788
|
class: "cds-expandable-panel__title-icon",
|
|
14785
14789
|
name: o(a.isSelected) ? e.collapseIcon : e.expandIcon
|
|
14786
14790
|
})
|
|
@@ -15625,7 +15629,7 @@ const gr = "CdsNotification", Fu = $({
|
|
|
15625
15629
|
u && g(
|
|
15626
15630
|
"div",
|
|
15627
15631
|
{ key: "prepend", class: "cds-notification__prepend" },
|
|
15628
|
-
t.prepend || g(
|
|
15632
|
+
t.prepend || g(it, { name: o(s) })
|
|
15629
15633
|
),
|
|
15630
15634
|
g("div", { class: "cds-notification__content" }, [
|
|
15631
15635
|
m && g("div", { key: "title", class: "cds-notification__title" }, (S = (w = t.title) == null ? void 0 : w.call(t)) != null ? S : e.title),
|
|
@@ -16110,9 +16114,9 @@ const yr = "cds-notification-alert__wrapper", _l = "CdsNotificationAlert", Fp =
|
|
|
16110
16114
|
return et(Tu, {
|
|
16111
16115
|
model: n,
|
|
16112
16116
|
isGroup: B(!0),
|
|
16113
|
-
disabledGroup:
|
|
16114
|
-
readonlyGroup:
|
|
16115
|
-
errorGroup:
|
|
16117
|
+
disabledGroup: at(e, "disabled"),
|
|
16118
|
+
readonlyGroup: at(e, "readonly"),
|
|
16119
|
+
errorGroup: at(e, "error"),
|
|
16116
16120
|
handleChangeRadio: c
|
|
16117
16121
|
}), {
|
|
16118
16122
|
inputProps: l,
|
|
@@ -16270,7 +16274,7 @@ function zp(e, t, n, a, r, s) {
|
|
|
16270
16274
|
}
|
|
16271
16275
|
const hi = /* @__PURE__ */ dt(Np, [["render", zp]]), To = "CdsSelect", Hp = $({
|
|
16272
16276
|
name: To,
|
|
16273
|
-
components: { CdsInput: rn, CdsInputLabel: Mt, CdsInputDescription: jt, CdsIcon:
|
|
16277
|
+
components: { CdsInput: rn, CdsInputLabel: Mt, CdsInputDescription: jt, CdsIcon: it, CdsLoader: In, CdsFunctionalButton: qe, CdsTransition: bt },
|
|
16274
16278
|
props: {
|
|
16275
16279
|
...Un(),
|
|
16276
16280
|
...Pt(),
|
|
@@ -17077,7 +17081,7 @@ function bb(e, t, n, a, r, s) {
|
|
|
17077
17081
|
const kb = /* @__PURE__ */ dt(gb, [["render", bb]]), Fl = "CdsStatus", Cb = $({
|
|
17078
17082
|
name: Fl,
|
|
17079
17083
|
components: {
|
|
17080
|
-
CdsIcon:
|
|
17084
|
+
CdsIcon: it
|
|
17081
17085
|
},
|
|
17082
17086
|
props: {
|
|
17083
17087
|
icon: {
|
|
@@ -18034,7 +18038,7 @@ const yi = _e(
|
|
|
18034
18038
|
);
|
|
18035
18039
|
function Xu(e) {
|
|
18036
18040
|
const t = B(0), n = be();
|
|
18037
|
-
return
|
|
18041
|
+
return rt(() => {
|
|
18038
18042
|
const a = /* @__PURE__ */ new Map(), r = e.value || {};
|
|
18039
18043
|
let s = 0;
|
|
18040
18044
|
for (const i in r)
|
|
@@ -18646,7 +18650,7 @@ function tf(e, t) {
|
|
|
18646
18650
|
}), s.value = I;
|
|
18647
18651
|
}
|
|
18648
18652
|
};
|
|
18649
|
-
|
|
18653
|
+
rt(() => {
|
|
18650
18654
|
i(a.value || Pl);
|
|
18651
18655
|
});
|
|
18652
18656
|
const l = y(
|
|
@@ -19278,7 +19282,7 @@ const sf = Symbol("cds:table"), qb = (e) => {
|
|
|
19278
19282
|
return typeof u.value == "function" ? H = u.value({
|
|
19279
19283
|
filtered: o(l),
|
|
19280
19284
|
column: A.__originColumn__
|
|
19281
|
-
}) : o(u) ? H = o(u) : H = g(
|
|
19285
|
+
}) : o(u) ? H = o(u) : H = g(it, { name: "funnel" }), g("div", { class: "cds-table__filter-column" }, [
|
|
19282
19286
|
g("span", { class: "cds-table__column-title" }, (N = t.default) == null ? void 0 : N.call(t)),
|
|
19283
19287
|
g(
|
|
19284
19288
|
Kn,
|
|
@@ -19559,7 +19563,7 @@ function pf(e, t, n, a, r, s, i) {
|
|
|
19559
19563
|
[kt.active]: b === Sa || b === Oo
|
|
19560
19564
|
}
|
|
19561
19565
|
},
|
|
19562
|
-
g(
|
|
19566
|
+
g(it, {
|
|
19563
19567
|
name: b === Oo && "sorting-up" || b === Sa && "sorting-down" || "sorting"
|
|
19564
19568
|
})
|
|
19565
19569
|
), { cancelSort: k, triggerAsc: _, triggerDesc: x } = r || {};
|
|
@@ -19842,13 +19846,13 @@ function $k(e, t) {
|
|
|
19842
19846
|
const n = B(0), a = B(), r = B(), s = B(), i = B({
|
|
19843
19847
|
scrollWidth: 0,
|
|
19844
19848
|
clientWidth: 0
|
|
19845
|
-
}), l = B(), [c, h] = Rn(!1), [u, f] = Rn(!1), [m, v] = bf(/* @__PURE__ */ new Map()), p = y(() => Qa(t.value)), b = y(() => p.value.map((ee) => m.value.get(ee))), w = y(() => t.value.length), S = _k(b, w), k = y(() => e.scroll && ts(e.scroll.y)), _ = y(() => e.scroll && ts(e.scroll.x) || !!e.expandFixed), x = y(() => _.value && t.value.some(({ fixed: ee }) => ee)), E = B(), C = Sk(
|
|
19849
|
+
}), l = B(), [c, h] = Rn(!1), [u, f] = Rn(!1), [m, v] = bf(/* @__PURE__ */ new Map()), p = y(() => Qa(t.value)), b = y(() => p.value.map((ee) => m.value.get(ee))), w = y(() => t.value.length), S = _k(b, w), k = y(() => e.scroll && ts(e.scroll.y)), _ = y(() => e.scroll && ts(e.scroll.x) || !!e.expandFixed), x = y(() => _.value && t.value.some(({ fixed: ee }) => ee)), E = B(), C = Sk(at(e, "sticky")), F = ft({}), D = y(() => {
|
|
19846
19850
|
const [ee] = Object.values(F);
|
|
19847
19851
|
return (k.value || C.value.isSticky) && ee;
|
|
19848
19852
|
}), P = (ee, ce) => {
|
|
19849
19853
|
ce ? F[ee] = ce : delete F[ee];
|
|
19850
19854
|
}, L = B({}), O = B({}), M = B({});
|
|
19851
|
-
|
|
19855
|
+
rt(() => {
|
|
19852
19856
|
k.value && (O.value = {
|
|
19853
19857
|
overflowY: "scroll",
|
|
19854
19858
|
maxHeight: Ue(e.scroll.y, "px")
|
|
@@ -19923,7 +19927,7 @@ function $k(e, t) {
|
|
|
19923
19927
|
const ee = ((Ee = s.value) == null ? void 0 : Ee.scrollWidth) || 0, ce = ((Re = s.value) == null ? void 0 : Re.clientWidth) || 0;
|
|
19924
19928
|
(i.value.scrollWidth !== ee || i.value.clientWidth !== ce) && (i.value = { scrollWidth: ee, clientWidth: ce });
|
|
19925
19929
|
});
|
|
19926
|
-
}),
|
|
19930
|
+
}), rt(
|
|
19927
19931
|
() => {
|
|
19928
19932
|
e.internalHooks === mi && e.internalRefs && e.onUpdateInternalRefs && e.onUpdateInternalRefs({
|
|
19929
19933
|
body: s.value ? s.value.$el || s.value : null
|
|
@@ -20342,7 +20346,7 @@ const wi = $({
|
|
|
20342
20346
|
],
|
|
20343
20347
|
setup(e, { attrs: t }) {
|
|
20344
20348
|
const n = na(), a = df(), r = B(!1), s = y(() => e.expandedKeys && e.expandedKeys.has(e.recordKey));
|
|
20345
|
-
|
|
20349
|
+
rt(() => {
|
|
20346
20350
|
s.value && (r.value = !0);
|
|
20347
20351
|
});
|
|
20348
20352
|
const i = y(
|
|
@@ -20456,10 +20460,10 @@ const wi = $({
|
|
|
20456
20460
|
],
|
|
20457
20461
|
setup(e, { slots: t }) {
|
|
20458
20462
|
const n = ek(), a = na(), r = df(), s = Ek(
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
+
at(e, "data"),
|
|
20464
|
+
at(e, "childrenColumnName"),
|
|
20465
|
+
at(e, "expandedKeys"),
|
|
20466
|
+
at(e, "getRowKey")
|
|
20463
20467
|
), i = B(-1), l = B(-1);
|
|
20464
20468
|
let c;
|
|
20465
20469
|
return ak({
|
|
@@ -20579,7 +20583,7 @@ const wi = $({
|
|
|
20579
20583
|
const h = y(
|
|
20580
20584
|
() => e.flattenColumns.every((p) => p.width && p.width !== 0 && p.width !== "0px")
|
|
20581
20585
|
), u = B([]), f = B([]);
|
|
20582
|
-
|
|
20586
|
+
rt(() => {
|
|
20583
20587
|
const p = e.flattenColumns[e.flattenColumns.length - 1], b = {
|
|
20584
20588
|
fixed: p ? p.fixed : null,
|
|
20585
20589
|
scrollbar: !0,
|
|
@@ -20596,7 +20600,7 @@ const wi = $({
|
|
|
20596
20600
|
right: [...p.right.map((b) => b + s.value), 0],
|
|
20597
20601
|
isSticky: r.isSticky
|
|
20598
20602
|
};
|
|
20599
|
-
}), v = Gb(
|
|
20603
|
+
}), v = Gb(at(e, "colWidths"), at(e, "columnCount"));
|
|
20600
20604
|
return () => {
|
|
20601
20605
|
var E;
|
|
20602
20606
|
const { noData: p, columnCount: b, stickyTopOffset: w, stickyBottomOffset: S, stickyClassName: k, maxContentScroll: _ } = e, { isSticky: x } = r;
|
|
@@ -20645,8 +20649,8 @@ const wi = $({
|
|
|
20645
20649
|
setup(e, { slots: t }) {
|
|
20646
20650
|
return ck(
|
|
20647
20651
|
ft({
|
|
20648
|
-
stickyOffsets:
|
|
20649
|
-
flattenColumn:
|
|
20652
|
+
stickyOffsets: at(e, "stickyOffsets"),
|
|
20653
|
+
flattenColumn: at(e, "flattenColumns"),
|
|
20650
20654
|
scrollColumnIndex: y(() => {
|
|
20651
20655
|
const n = e.flattenColumns.length - 1, a = e.flattenColumns[n];
|
|
20652
20656
|
return a != null && a.scrollbar ? n : null;
|
|
@@ -20695,7 +20699,7 @@ const wi = $({
|
|
|
20695
20699
|
};
|
|
20696
20700
|
go(() => {
|
|
20697
20701
|
r();
|
|
20698
|
-
}),
|
|
20702
|
+
}), rt(() => {
|
|
20699
20703
|
isNaN(e.width);
|
|
20700
20704
|
});
|
|
20701
20705
|
const { onResizeColumn: s } = Zb(), i = y(
|
|
@@ -20883,7 +20887,7 @@ const Cr = $({
|
|
|
20883
20887
|
scrollLeft: 0,
|
|
20884
20888
|
isHiddenScrollbar: !0
|
|
20885
20889
|
});
|
|
20886
|
-
|
|
20890
|
+
rt(
|
|
20887
20891
|
() => {
|
|
20888
20892
|
a.value = e.scrollBodySizeInfo.scrollWidth || 0, r.value = e.scrollBodySizeInfo.clientWidth || 0, s.value = a.value && r.value * (r.value / a.value);
|
|
20889
20893
|
},
|
|
@@ -21018,7 +21022,7 @@ const Cr = $({
|
|
|
21018
21022
|
), u = y(() => e.childrenColumnName || "children"), f = y(() => e.expandedRowRender ? "row" : e.canExpandable || r.value.some(
|
|
21019
21023
|
(le) => le && typeof le == "object" && le[u.value]
|
|
21020
21024
|
) ? "nest" : !1), m = be([]);
|
|
21021
|
-
|
|
21025
|
+
rt(() => {
|
|
21022
21026
|
e.defaultExpandAllRows && (m.value = e.defaultExpandedRowKeys), e.defaultExpandAllRows && (m.value = Mb(
|
|
21023
21027
|
r.value,
|
|
21024
21028
|
c.value,
|
|
@@ -21034,12 +21038,12 @@ const Cr = $({
|
|
|
21034
21038
|
e.expandedRowRender && r.value.some((le) => Array.isArray(le == null ? void 0 : le[u.value]));
|
|
21035
21039
|
const { columns: w, flattenColumns: S } = Yb(
|
|
21036
21040
|
{
|
|
21037
|
-
columns:
|
|
21038
|
-
rowExpandable:
|
|
21041
|
+
columns: at(e, "columns", []),
|
|
21042
|
+
rowExpandable: at(e, "rowExpandable"),
|
|
21039
21043
|
expandIcon: h,
|
|
21040
|
-
expandRowByClick:
|
|
21041
|
-
expandColumnWidth:
|
|
21042
|
-
expandFixed:
|
|
21044
|
+
expandRowByClick: at(e, "expandRowByClick"),
|
|
21045
|
+
expandColumnWidth: at(e, "expandColumnWidth"),
|
|
21046
|
+
expandFixed: at(e, "expandFixed"),
|
|
21043
21047
|
expandable: y(() => !!e.expandedRowRender),
|
|
21044
21048
|
expandedKeys: p,
|
|
21045
21049
|
getRowKey: c,
|
|
@@ -21345,7 +21349,7 @@ const Cr = $({
|
|
|
21345
21349
|
});
|
|
21346
21350
|
}, _ = (oe, le) => {
|
|
21347
21351
|
k({ sorter: oe, sorterStates: le }, "sort", !1);
|
|
21348
|
-
}, x = y(() => e.sortDirection || [Oo, Sa]), E =
|
|
21352
|
+
}, x = y(() => e.sortDirection || [Oo, Sa]), E = at(e, "showSorterTooltip"), {
|
|
21349
21353
|
transformColumns: C,
|
|
21350
21354
|
mergedSorterStates: F,
|
|
21351
21355
|
columnTitleSorterProps: D,
|
|
@@ -21358,7 +21362,7 @@ const Cr = $({
|
|
|
21358
21362
|
showSorterTooltip: E
|
|
21359
21363
|
}), L = y(() => us(l.value, F.value, c.value)), O = (oe, le) => {
|
|
21360
21364
|
k({ filters: oe, filterStates: le }, "filter", !0);
|
|
21361
|
-
}, M =
|
|
21365
|
+
}, M = at(e, "getPopupContainer"), {
|
|
21362
21366
|
transformColumns: I,
|
|
21363
21367
|
mergedFilterStates: A,
|
|
21364
21368
|
filters: z
|
|
@@ -21367,17 +21371,17 @@ const Cr = $({
|
|
|
21367
21371
|
onFilterChange: O,
|
|
21368
21372
|
tableLocale: v,
|
|
21369
21373
|
getPopupContainer: M
|
|
21370
|
-
}), K = y(() => Bl(L.value, A.value)), { filledColumns: Y } = Wb(
|
|
21374
|
+
}), K = y(() => Bl(L.value, A.value)), { filledColumns: Y } = Wb(at(e, "contextSlots")), H = y(() => ({
|
|
21371
21375
|
...D.value
|
|
21372
21376
|
})), { filledColumns: N } = Ub(H), X = (oe, le) => {
|
|
21373
21377
|
k({ pagination: { ...S.pagination, modelValue: oe, length: le } }, "paginate");
|
|
21374
21378
|
}, { mergedPagination: Q, resetPagination: we } = pk(
|
|
21375
21379
|
y(() => K.value.length),
|
|
21376
|
-
|
|
21377
|
-
|
|
21380
|
+
at(e, "pagination"),
|
|
21381
|
+
at(e, "disabled"),
|
|
21378
21382
|
X
|
|
21379
21383
|
);
|
|
21380
|
-
|
|
21384
|
+
rt(() => {
|
|
21381
21385
|
S.sorter = P.value, S.sorterStates = F.value, S.filters = z.value, S.filterStates = A.value, S.pagination = e.pagination === !1 ? {} : bk(e.pagination, Q.value), S.resetPagination = we;
|
|
21382
21386
|
});
|
|
21383
21387
|
const ke = y(() => {
|
|
@@ -21386,7 +21390,7 @@ const Cr = $({
|
|
|
21386
21390
|
const { modelValue: oe = 1, length: le = Ra, total: ve } = Q.value;
|
|
21387
21391
|
return K.value.length < ve ? K.value.length > +le ? K.value.slice((oe - 1) * ve, oe * ve) : K.value : K.value.slice((oe - 1) * ve, oe * ve);
|
|
21388
21392
|
});
|
|
21389
|
-
|
|
21393
|
+
rt(
|
|
21390
21394
|
() => {
|
|
21391
21395
|
je(() => {
|
|
21392
21396
|
const { total: oe, length: le = Ra } = Q.value;
|
|
@@ -21749,7 +21753,7 @@ const Uk = "CdsTabV2", La = $({
|
|
|
21749
21753
|
CdsInputLabel: Mt,
|
|
21750
21754
|
CdsInputDescription: jt,
|
|
21751
21755
|
CdsInputCounter: ri,
|
|
21752
|
-
CdsIcon:
|
|
21756
|
+
CdsIcon: it,
|
|
21753
21757
|
CdsLoader: In,
|
|
21754
21758
|
CdsFunctionalButton: qe,
|
|
21755
21759
|
CdsTransition: bt
|
|
@@ -22840,7 +22844,7 @@ const hC = ({ prefixCls: e, level: t, isStart: n, isEnd: a }) => {
|
|
|
22840
22844
|
return Z && (!Z.nodeDraggable || Z.nodeDraggable(V));
|
|
22841
22845
|
}, De = () => {
|
|
22842
22846
|
const { draggable: V } = o(s);
|
|
22843
|
-
return V && (V != null && V.icon) ? g(
|
|
22847
|
+
return V && (V != null && V.icon) ? g(it, {
|
|
22844
22848
|
name: typeof V.icon == "string" ? V.icon : "draggable",
|
|
22845
22849
|
class: "cds-treenode__draggable-icon"
|
|
22846
22850
|
}) : null;
|
|
@@ -22883,11 +22887,11 @@ const hC = ({ prefixCls: e, level: t, isStart: n, isEnd: a }) => {
|
|
|
22883
22887
|
const { icon: V = n.icon, data: Z } = e, Ie = n.title || ((Ke = o(s).slots) == null ? void 0 : Ke[(Ce = (ae = e.data) == null ? void 0 : ae.slots) == null ? void 0 : Ce.title]) || ((Ve = o(s).slots) == null ? void 0 : Ve.title) || e.title, { showIcon: Fe, icon: Ne, loadData: R } = o(s), W = `${Ft}__node-content-wrapper`;
|
|
22884
22888
|
let U;
|
|
22885
22889
|
if (Fe) {
|
|
22886
|
-
const
|
|
22887
|
-
U =
|
|
22890
|
+
const st = V || ((Ze = o(s).slots) == null ? void 0 : Ze[(Ye = Z == null ? void 0 : Z.slots) == null ? void 0 : Ye.icon]) || Ne;
|
|
22891
|
+
U = st ? g(
|
|
22888
22892
|
"span",
|
|
22889
22893
|
{ className: te(`${Ft}__icon`, `${Ft}__icon-customize`) },
|
|
22890
|
-
typeof
|
|
22894
|
+
typeof st == "function" ? st(o(Y)) : st
|
|
22891
22895
|
) : ue();
|
|
22892
22896
|
}
|
|
22893
22897
|
let ie;
|
|
@@ -22924,7 +22928,7 @@ const hC = ({ prefixCls: e, level: t, isStart: n, isEnd: a }) => {
|
|
|
22924
22928
|
const { eventKey: V, isLeaf: Z, isStart: Ie, isEnd: Fe, domRef: Ne, active: R, data: W, onMousemove: U, selectable: ie, ...J } = {
|
|
22925
22929
|
...e,
|
|
22926
22930
|
...t
|
|
22927
|
-
}, { filterTreeNode: ae, keyEntities: Ce, dropContainerKey: Ke, dropTargetKey: Ve, draggingNodeKey: Ye } = o(s), Ze = jo(J, { aria: !0, data: !0 }), { level:
|
|
22931
|
+
}, { filterTreeNode: ae, keyEntities: Ce, dropContainerKey: Ke, dropTargetKey: Ve, draggingNodeKey: Ye } = o(s), Ze = jo(J, { aria: !0, data: !0 }), { level: st } = Ce[V] || {}, Rt = Fe[Fe.length - 1], pt = $e(), $t = !o(A) && pt, Dn = Ye === V, oa = ie !== void 0 ? { "aria-selected": !!ie } : void 0, Lt = "cds-treenode";
|
|
22928
22932
|
return g(
|
|
22929
22933
|
"div",
|
|
22930
22934
|
{
|
|
@@ -22961,7 +22965,7 @@ const hC = ({ prefixCls: e, level: t, isStart: n, isEnd: a }) => {
|
|
|
22961
22965
|
...Ze
|
|
22962
22966
|
},
|
|
22963
22967
|
[
|
|
22964
|
-
hC({ prefixCls: Lt, level:
|
|
22968
|
+
hC({ prefixCls: Lt, level: st, isStart: Ie, isEnd: Fe }),
|
|
22965
22969
|
De(),
|
|
22966
22970
|
Le(),
|
|
22967
22971
|
he(),
|
|
@@ -23568,7 +23572,7 @@ const EC = [], IC = {
|
|
|
23568
23572
|
Kt ? { passive: !1 } : !1
|
|
23569
23573
|
), (X = o(u)) == null || X.removeEventListener("DOMMouseScroll", A), (Q = o(u)) == null || Q.removeEventListener("MozMousePixelScroll", z));
|
|
23570
23574
|
};
|
|
23571
|
-
|
|
23575
|
+
rt(() => {
|
|
23572
23576
|
je(() => {
|
|
23573
23577
|
var N, X, Q;
|
|
23574
23578
|
o(u) && (K(), (N = o(u)) == null || N.addEventListener("wheel", I, Kt ? { passive: !1 } : !1), (X = o(u)) == null || X.addEventListener("DOMMouseScroll", A), (Q = o(u)) == null || Q.addEventListener("MozMousePixelScroll", z));
|
|
@@ -23941,7 +23945,7 @@ const PC = 10, OC = $({
|
|
|
23941
23945
|
v.value = e.treeData !== void 0 ? At(e.treeData).slice() : ns(At(e.children));
|
|
23942
23946
|
},
|
|
23943
23947
|
{ immediate: !0, deep: !0 }
|
|
23944
|
-
),
|
|
23948
|
+
), rt(() => {
|
|
23945
23949
|
if (o(v)) {
|
|
23946
23950
|
const R = pi(o(v), {
|
|
23947
23951
|
fieldNames: o(k)
|
|
@@ -23968,13 +23972,13 @@ const PC = 10, OC = $({
|
|
|
23968
23972
|
{ immediate: !0 }
|
|
23969
23973
|
);
|
|
23970
23974
|
const H = be([]);
|
|
23971
|
-
|
|
23975
|
+
rt(() => {
|
|
23972
23976
|
H.value = Ob(o(v), o(f), o(k));
|
|
23973
|
-
}),
|
|
23977
|
+
}), rt(() => {
|
|
23974
23978
|
e.selectable && (e.selectedKeys !== void 0 ? i.value = Tl(e.selectedKeys, e) : !Y && e.defaultSelectedKeys && (i.value = Tl(e.defaultSelectedKeys, e)));
|
|
23975
23979
|
});
|
|
23976
23980
|
const { maxLevel: N, levelEntities: X } = Xu(p);
|
|
23977
|
-
|
|
23981
|
+
rt(() => {
|
|
23978
23982
|
if (e.checkable) {
|
|
23979
23983
|
let R;
|
|
23980
23984
|
if (e.checkedKeys !== void 0 ? R = br(e.checkedKeys) || {} : !Y && e.defaultCheckedKeys ? R = br(e.defaultCheckedKeys) || {} : o(v) && (R = br(e.checkedKeys) || {
|
|
@@ -23991,7 +23995,7 @@ const PC = 10, OC = $({
|
|
|
23991
23995
|
)), l.value = W, c.value = U;
|
|
23992
23996
|
}
|
|
23993
23997
|
}
|
|
23994
|
-
}),
|
|
23998
|
+
}), rt(() => {
|
|
23995
23999
|
e.loadedKeys && (u.value = e.loadedKeys);
|
|
23996
24000
|
});
|
|
23997
24001
|
const Q = () => {
|
|
@@ -24058,7 +24062,7 @@ const PC = 10, OC = $({
|
|
|
24058
24062
|
dropLevelOffset: Ve,
|
|
24059
24063
|
dropTargetKey: Ye,
|
|
24060
24064
|
dropContainerKey: Ze,
|
|
24061
|
-
dropTargetPos:
|
|
24065
|
+
dropTargetPos: st,
|
|
24062
24066
|
dropAllowed: Rt,
|
|
24063
24067
|
dragOverNodeKey: pt
|
|
24064
24068
|
} = Al(
|
|
@@ -24101,7 +24105,7 @@ const PC = 10, OC = $({
|
|
|
24101
24105
|
dropLevelOffset: Ve,
|
|
24102
24106
|
dropTargetKey: Ye,
|
|
24103
24107
|
dropContainerKey: Ze,
|
|
24104
|
-
dropTargetPos:
|
|
24108
|
+
dropTargetPos: st,
|
|
24105
24109
|
dropAllowed: Rt
|
|
24106
24110
|
}), U && U({
|
|
24107
24111
|
event: R,
|
|
@@ -24156,7 +24160,7 @@ const PC = 10, OC = $({
|
|
|
24156
24160
|
data: o(p)[ae].node
|
|
24157
24161
|
};
|
|
24158
24162
|
ie.indexOf(ae);
|
|
24159
|
-
const Ze = bi(Ce),
|
|
24163
|
+
const Ze = bi(Ce), st = {
|
|
24160
24164
|
event: R,
|
|
24161
24165
|
node: rs(Ye),
|
|
24162
24166
|
dragNode: C ? C.eventData : null,
|
|
@@ -24164,7 +24168,7 @@ const PC = 10, OC = $({
|
|
|
24164
24168
|
dropToGap: J !== 0,
|
|
24165
24169
|
dropPosition: J + Number(Ze[Ze.length - 1])
|
|
24166
24170
|
};
|
|
24167
|
-
U || Ve == null || Ve(
|
|
24171
|
+
U || Ve == null || Ve(st), C = null;
|
|
24168
24172
|
}, le = (R, W) => {
|
|
24169
24173
|
const { onClick: U } = e;
|
|
24170
24174
|
U && U(R, W);
|
|
@@ -24176,8 +24180,8 @@ const PC = 10, OC = $({
|
|
|
24176
24180
|
const { onSelect: ie, multiple: J } = e, { selected: ae } = W, Ce = W[k.value.key], Ke = !ae;
|
|
24177
24181
|
Ke ? J ? U = An(U, Ce) : U = [Ce] : U = gn(U, Ce);
|
|
24178
24182
|
const Ve = o(p), Ye = U.map((Ze) => {
|
|
24179
|
-
const
|
|
24180
|
-
return
|
|
24183
|
+
const st = Ve[Ze];
|
|
24184
|
+
return st ? st.node : null;
|
|
24181
24185
|
}).filter((Ze) => Ze);
|
|
24182
24186
|
e.selectedKeys === void 0 && (i.value = U), ie && ie(U, {
|
|
24183
24187
|
event: "select",
|
|
@@ -24197,7 +24201,7 @@ const PC = 10, OC = $({
|
|
|
24197
24201
|
}, Ve = o(p);
|
|
24198
24202
|
if (ie) {
|
|
24199
24203
|
const Ye = U ? An(o(l), ae) : gn(o(l), ae), Ze = gn(o(c), ae);
|
|
24200
|
-
Ce = { checked: Ye, halfChecked: Ze }, Ke.checkedNodes = Ye.map((
|
|
24204
|
+
Ce = { checked: Ye, halfChecked: Ze }, Ke.checkedNodes = Ye.map((st) => Ve[st]).filter((st) => st).map((st) => st.node), e.checkedKeys === void 0 && (l.value = Ye);
|
|
24201
24205
|
} else {
|
|
24202
24206
|
let { checkedKeys: Ye, halfCheckedKeys: Ze } = oo(
|
|
24203
24207
|
[...o(l), ae],
|
|
@@ -24207,17 +24211,17 @@ const PC = 10, OC = $({
|
|
|
24207
24211
|
o(X)
|
|
24208
24212
|
);
|
|
24209
24213
|
if (!U) {
|
|
24210
|
-
const
|
|
24211
|
-
|
|
24212
|
-
Array.from(
|
|
24214
|
+
const st = new Set(Ye);
|
|
24215
|
+
st.delete(ae), { checkedKeys: Ye, halfCheckedKeys: Ze } = oo(
|
|
24216
|
+
Array.from(st),
|
|
24213
24217
|
{ halfCheckedKeys: Ze },
|
|
24214
24218
|
Ve,
|
|
24215
24219
|
o(N),
|
|
24216
24220
|
o(X)
|
|
24217
24221
|
);
|
|
24218
24222
|
}
|
|
24219
|
-
Ce = Ye, Ke.checkedNodes = [], Ke.checkedNodesPositions = [], Ke.halfCheckedKeys = Ze, Ye.forEach((
|
|
24220
|
-
const Rt = Ve[
|
|
24223
|
+
Ce = Ye, Ke.checkedNodes = [], Ke.checkedNodesPositions = [], Ke.halfCheckedKeys = Ze, Ye.forEach((st) => {
|
|
24224
|
+
const Rt = Ve[st];
|
|
24221
24225
|
if (!Rt) return;
|
|
24222
24226
|
const { node: pt, pos: $t } = Rt;
|
|
24223
24227
|
Ke.checkedNodes.push(pt), Ke.checkedNodesPositions.push({ node: pt, pos: $t });
|
|
@@ -24357,7 +24361,7 @@ const PC = 10, OC = $({
|
|
|
24357
24361
|
tabindex: Ve = 0,
|
|
24358
24362
|
selectable: Ye,
|
|
24359
24363
|
showIcon: Ze,
|
|
24360
|
-
icon:
|
|
24364
|
+
icon: st = n.icon,
|
|
24361
24365
|
switcherIcon: Rt,
|
|
24362
24366
|
draggable: pt,
|
|
24363
24367
|
checkable: $t,
|
|
@@ -24382,7 +24386,7 @@ const PC = 10, OC = $({
|
|
|
24382
24386
|
value: {
|
|
24383
24387
|
selectable: Ye,
|
|
24384
24388
|
showIcon: Ze,
|
|
24385
|
-
icon:
|
|
24389
|
+
icon: st,
|
|
24386
24390
|
switcherIcon: Rt,
|
|
24387
24391
|
draggable: aa,
|
|
24388
24392
|
draggingNodeKey: R,
|
|
@@ -24479,7 +24483,7 @@ function BC(e, t, n) {
|
|
|
24479
24483
|
t && typeof t == "object" && (l = t.showLeafIcon);
|
|
24480
24484
|
let c = null;
|
|
24481
24485
|
const h = te("cds-tree__switcher-icon", { "cds-tree__switcher-icon--expanded": r });
|
|
24482
|
-
return a ? (t && (typeof t == "object" && l ? c = g(
|
|
24486
|
+
return a ? (t && (typeof t == "object" && l ? c = g(it, { name: typeof l == "string" ? l : "doc" }) : c = g("span", { class: "cds-tree__switcher-leaf-line" })), c) : (c = g(qe, { icon: "chevron-down", class: h }), t && (c = g(qe, { icon: r ? "minus" : "plus", class: h })), typeof e == "function" ? i = e({ ...n, defaultIcon: c, switcherCls: h }) : Ds(i) && (i = ac(i, { class: h })), i || c);
|
|
24483
24487
|
}
|
|
24484
24488
|
const RC = "CdsTree", Pf = $({
|
|
24485
24489
|
name: RC,
|
|
@@ -24676,7 +24680,7 @@ const RC = "CdsTree", Pf = $({
|
|
|
24676
24680
|
});
|
|
24677
24681
|
function LC(e) {
|
|
24678
24682
|
const { isLeaf: t, expanded: n } = e;
|
|
24679
|
-
return t ? g(
|
|
24683
|
+
return t ? g(it, { name: "doc" }) : n ? g(it, { name: "directory-open" }) : g(it, { name: "directory" });
|
|
24680
24684
|
}
|
|
24681
24685
|
const NC = "CdsTreeDirectory", KC = $({
|
|
24682
24686
|
name: NC,
|
|
@@ -25335,7 +25339,7 @@ const HC = "CdsUploadListItem", VC = $({
|
|
|
25335
25339
|
const n = be(!1), a = mt("upload-list");
|
|
25336
25340
|
ut(() => {
|
|
25337
25341
|
n.value = !0;
|
|
25338
|
-
}),
|
|
25342
|
+
}), rt(() => {
|
|
25339
25343
|
e.listType !== "picture" && e.listType !== "picture-card" || (e.items || []).forEach((l) => {
|
|
25340
25344
|
typeof document == "undefined" || typeof window == "undefined" || !window.FileReader || !window.File || !(l.originFileObj instanceof File || l.originFileObj instanceof Blob) || l.thumbUrl !== void 0 || (l.thumbUrl = "", e.previewFile && e.previewFile(l.originFileObj).then((c) => {
|
|
25341
25345
|
l.thumbUrl = c || "", a.update();
|
|
@@ -26045,7 +26049,7 @@ const ZC = "CdsAjaxUploader", JC = $({
|
|
|
26045
26049
|
CdsFunctionalButton: qe,
|
|
26046
26050
|
CdsGrid: fp,
|
|
26047
26051
|
CdsHeader: vp,
|
|
26048
|
-
CdsIcon:
|
|
26052
|
+
CdsIcon: it,
|
|
26049
26053
|
CdsImage: cu,
|
|
26050
26054
|
CdsInput: rn,
|
|
26051
26055
|
CdsInputCounter: ri,
|
|
@@ -26152,7 +26156,7 @@ export {
|
|
|
26152
26156
|
qe as CdsFunctionalButton,
|
|
26153
26157
|
fp as CdsGrid,
|
|
26154
26158
|
vp as CdsHeader,
|
|
26155
|
-
|
|
26159
|
+
it as CdsIcon,
|
|
26156
26160
|
cu as CdsImage,
|
|
26157
26161
|
rn as CdsInput,
|
|
26158
26162
|
ri as CdsInputCounter,
|