@central-design-system/components 3.0.0-beta.32 → 3.0.0-beta.33
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.es.js
CHANGED
|
@@ -5354,6 +5354,8 @@ function Fh(e, t, n) {
|
|
|
5354
5354
|
const T = Ts(b.anchor);
|
|
5355
5355
|
return Object.assign(a(n), {
|
|
5356
5356
|
"--cds-overlay-anchor-origin": `${b.anchor.side} ${b.anchor.align}`,
|
|
5357
|
+
"--cds-overlay-flipped-x": `${A.x ? 1 : 0}`,
|
|
5358
|
+
"--cds-overlay-flipped-y": `${A.y ? 1 : 0}`,
|
|
5357
5359
|
transformOrigin: `${b.origin.side} ${b.origin.align}`,
|
|
5358
5360
|
top: Ze(Ri(I)),
|
|
5359
5361
|
left: Ze(Ri(S)),
|
|
@@ -7434,7 +7436,7 @@ const nv = {
|
|
|
7434
7436
|
}, ov = ["id", "type", "value", "placeholder", "disabled", "readonly", "aria-disabled", "aria-invalid", "autofocus", "maxlength"], av = {
|
|
7435
7437
|
key: 2,
|
|
7436
7438
|
class: "cds-text-input__clear"
|
|
7437
|
-
}, sv = ["title"];
|
|
7439
|
+
}, sv = ["disabled", "title"];
|
|
7438
7440
|
function lv(e, t, n, o, s, l) {
|
|
7439
7441
|
const i = $e("cds-input-label"), r = $e("cds-input-description"), c = $e("cds-icon"), d = $e("cds-loader"), f = $e("cds-transition"), u = $e("cds-input"), m = $e("cds-input-counter");
|
|
7440
7442
|
return Y(), me("div", Le({
|
|
@@ -7512,6 +7514,7 @@ function lv(e, t, n, o, s, l) {
|
|
|
7512
7514
|
e.hasClear && !e.hasLoading ? (Y(), me("div", av, [
|
|
7513
7515
|
Xe("button", {
|
|
7514
7516
|
type: "button",
|
|
7517
|
+
disabled: h.value,
|
|
7515
7518
|
title: e.clearLabel,
|
|
7516
7519
|
class: wt(["cds-text-input__clear--button", { [e.classesStates.active]: !!e.model || e.persistentClearable }]),
|
|
7517
7520
|
onClick: t[5] || (t[5] = (...k) => e.onClear && e.onClear(...k))
|
|
@@ -7647,7 +7650,7 @@ const wn = /* @__PURE__ */ lt(tv, [["render", lv]]), Wi = "CdsAutocomplete", iv
|
|
|
7647
7650
|
a(x) || (i.value = !0);
|
|
7648
7651
|
}
|
|
7649
7652
|
function G(de) {
|
|
7650
|
-
a(x) || (a(l) && (de.preventDefault(), de.stopPropagation()), i.value = !a(i));
|
|
7653
|
+
a(x) || e.disabled || (a(l) && (de.preventDefault(), de.stopPropagation()), i.value = !a(i));
|
|
7651
7654
|
}
|
|
7652
7655
|
function Z(de) {
|
|
7653
7656
|
var J, le;
|
|
@@ -7719,7 +7722,7 @@ const wn = /* @__PURE__ */ lt(tv, [["render", lv]]), Wi = "CdsAutocomplete", iv
|
|
|
7719
7722
|
}
|
|
7720
7723
|
ne(l, (de, Ie) => {
|
|
7721
7724
|
var te, J;
|
|
7722
|
-
de !== Ie && (de ? (pe.value = !0, k.value = e.multiple ? "" : String((J = (te = a(u).at(-1)) == null ? void 0 : te.props.title) != null ? J : ""), b.value = !0, Ue(() => pe.value = !1)) : (!e.multiple && !a(k) ? u.value = [] : a(O) && !a(_) && !a(u).some(({ value: le }) => le === a(D)[0].value) && ee(a(D)[0]), i.value = !1, k.value = "", S.value = -1));
|
|
7725
|
+
de !== Ie && (de ? (pe.value = !0, k.value = e.multiple ? "" : String((J = (te = a(u).at(-1)) == null ? void 0 : te.props.title) != null ? J : ""), b.value = !0, Ue(() => pe.value = !1)) : (!e.multiple && !a(k) ? u.value = [] : a(O) && !a(_) && !a(u).some(({ value: le }) => le === a(D)[0].value) && ee(a(D)[0]), i.value = !1, u.value.some(({ title: le }) => le === k.value) || (k.value = ""), S.value = -1));
|
|
7723
7726
|
}), ne(k, (de) => {
|
|
7724
7727
|
!a(l) || a(pe) || (de && (i.value = !0), b.value = !de);
|
|
7725
7728
|
}), ne(i, () => {
|
|
@@ -7745,6 +7748,7 @@ const wn = /* @__PURE__ */ lt(tv, [["render", lv]]), Wi = "CdsAutocomplete", iv
|
|
|
7745
7748
|
persistentClearable: Ie,
|
|
7746
7749
|
class: oe("cds-autocomplete", `cds-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
7747
7750
|
"cds-autocomplete--ellipsis": e.ellipsis,
|
|
7751
|
+
"cds-autocomplete--disabled": e.disabled,
|
|
7748
7752
|
"cds-autocomplete--selected": a(u).length,
|
|
7749
7753
|
"cds-autocomplete--active-menu": a(i),
|
|
7750
7754
|
"cds-autocomplete--selection-slot": !!t.selection,
|
|
@@ -10642,6 +10646,7 @@ const eg = /* @__PURE__ */ lt(Xv, [["render", Qv]]), ko = "CdsDropdown", tg = $(
|
|
|
10642
10646
|
"cds-dropdown--active-menu": a(k),
|
|
10643
10647
|
"cds-dropdown--selected": a(b).length,
|
|
10644
10648
|
"cds-dropdown--ellipsis": e.ellipsis,
|
|
10649
|
+
"cds-dropdown--disabled": e.disabled,
|
|
10645
10650
|
[`cds-dropdown--${e.multiple ? "multiple" : "single"}`]: !0
|
|
10646
10651
|
})), { inputProps: W } = Bl(e, wn.props, [
|
|
10647
10652
|
"modelValue",
|