@sysvale/cuida 3.22.0 → 3.22.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.
@@ -18126,7 +18126,7 @@ const eR = {
18126
18126
  },
18127
18127
  watch: {
18128
18128
  modelValue(t, e) {
18129
- t !== e && (this.mustDisableExternalScrolls(t), this.internalModelValue = t);
18129
+ t !== e && (t ? this.internalModelValue = t : this.closeHandle(), this.mustDisableExternalScrolls(t));
18130
18130
  }
18131
18131
  },
18132
18132
  methods: {
@@ -18139,7 +18139,7 @@ const eR = {
18139
18139
  document.body.style.overflow = t ? "hidden" : "auto";
18140
18140
  }
18141
18141
  }
18142
- }, tR = (t) => (La("data-v-542609ac"), t = t(), za(), t), nR = { key: 0 }, iR = /* @__PURE__ */ tR(() => /* @__PURE__ */ A("div", { class: "bottom-sheet__header-border" }, [
18142
+ }, tR = (t) => (La("data-v-2058822e"), t = t(), za(), t), nR = { key: 0 }, iR = /* @__PURE__ */ tR(() => /* @__PURE__ */ A("div", { class: "bottom-sheet__header-border" }, [
18143
18143
  /* @__PURE__ */ A("div", { class: "bottom-sheet__header-border-line" })
18144
18144
  ], -1)), sR = { class: "bottom-sheet__header" }, rR = { class: "bottom-sheet__title" }, aR = { class: "bottom-sheet__content" };
18145
18145
  function oR(t, e, n, i, s, r) {
@@ -18175,7 +18175,7 @@ function oR(t, e, n, i, s, r) {
18175
18175
  ], 2)
18176
18176
  ])) : Z("", !0);
18177
18177
  }
18178
- const lR = /* @__PURE__ */ me(eR, [["render", oR], ["__scopeId", "data-v-542609ac"]]);
18178
+ const lR = /* @__PURE__ */ me(eR, [["render", oR], ["__scopeId", "data-v-2058822e"]]);
18179
18179
  var Zh = { exports: {} };
18180
18180
  (function(t, e) {
18181
18181
  var n = 9007199254740991, i = "[object Arguments]", s = "[object Function]", r = "[object GeneratorFunction]", a = "[object Map]", l = "[object Object]", c = "[object Promise]", d = "[object Set]", h = "[object WeakMap]", p = "[object DataView]", g = /[\\^$.*+?()[\]{}|]/g, v = /^\[object .+?Constructor\]$/, b = typeof zn == "object" && zn && zn.Object === Object && zn, x = typeof self == "object" && self && self.Object === Object && self, S = b || x || Function("return this")(), k = e && !e.nodeType && e, $ = k && !0 && t && !t.nodeType && t, z = $ && $.exports === k;
@@ -34389,9 +34389,15 @@ const Cle = {
34389
34389
  return this.fluid ? "search-input__field--fluid" : "search-input__field";
34390
34390
  }
34391
34391
  },
34392
+ mounted() {
34393
+ this.internalValue = this.modelValue;
34394
+ },
34392
34395
  methods: {
34393
34396
  handleInput(t) {
34394
- this.$emit("update:modelValue", t.target.value);
34397
+ this.internalValue = t.target.value, this.$emit("update:modelValue", t.target.value);
34398
+ },
34399
+ handleClearInput() {
34400
+ this.internalValue = "", this.$emit("update:modelValue", "");
34395
34401
  }
34396
34402
  }
34397
34403
  }, kle = ["value", "placeholder", "disabled"];
@@ -34407,7 +34413,7 @@ function Mle(t, e, n, i, s, r) {
34407
34413
  }),
34408
34414
  A("input", {
34409
34415
  id: "cds-search-input",
34410
- value: n.modelValue,
34416
+ value: s.internalValue,
34411
34417
  placeholder: n.placeholder,
34412
34418
  disabled: n.disabled,
34413
34419
  class: B(r.inputClass),
@@ -34415,18 +34421,18 @@ function Mle(t, e, n, i, s, r) {
34415
34421
  onBlur: e[1] || (e[1] = (l) => s.isBeingFocused = !1),
34416
34422
  onInput: e[2] || (e[2] = (...l) => r.handleInput && r.handleInput(...l))
34417
34423
  }, null, 42, kle),
34418
- n.modelValue ? (y(), de(a, {
34424
+ s.internalValue ? (y(), de(a, {
34419
34425
  key: 0,
34420
34426
  name: "x-outline",
34421
34427
  width: "18",
34422
34428
  height: "18",
34423
34429
  class: "search-input__close-icon",
34424
- onClick: e[3] || (e[3] = (l) => s.internalValue = "")
34425
- })) : Z("", !0)
34430
+ onClick: r.handleClearInput
34431
+ }, null, 8, ["onClick"])) : Z("", !0)
34426
34432
  ], 2)
34427
34433
  ]);
34428
34434
  }
34429
- const Ole = /* @__PURE__ */ me(Cle, [["render", Mle], ["__scopeId", "data-v-06cf65a5"]]);
34435
+ const Ole = /* @__PURE__ */ me(Cle, [["render", Mle], ["__scopeId", "data-v-2f855c31"]]);
34430
34436
  const Dle = {
34431
34437
  components: {
34432
34438
  CdsIcon: mt,