@sysvale/cuida 3.0.0-beta.51 → 3.0.0-beta.52

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.
@@ -13813,9 +13813,8 @@ const S1 = (e) => /^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(
13813
13813
  this.resolveInternalDate();
13814
13814
  },
13815
13815
  methods: {
13816
- handleDateInput(e) {
13817
- let t = new Date(e.id + "T00:00:00-03:00");
13818
- this.$emit("update:modelValue", e ? $e.fromJSDate(t).toFormat("yyyy-MM-dd") : "");
13816
+ handleUpdateInput(e) {
13817
+ this.$emit("update:modelValue", e ? $e.fromJSDate(e).toFormat("yyyy-MM-dd") : "");
13819
13818
  },
13820
13819
  resolveInternalDate() {
13821
13820
  if (!this.modelValue) {
@@ -13850,11 +13849,12 @@ function Zj(e, t, n, i, s, o) {
13850
13849
  le(c, {
13851
13850
  id: "cds-date-input",
13852
13851
  modelValue: s.internalDate,
13853
- "onUpdate:modelValue": t[2] || (t[2] = (d) => s.internalDate = d),
13852
+ "onUpdate:modelValue": [
13853
+ t[2] || (t[2] = (d) => s.internalDate = d),
13854
+ o.handleUpdateInput
13855
+ ],
13854
13856
  locale: "pt-BR",
13855
- "available-dates": o.availableDates,
13856
- onDayclick: o.handleDateInput,
13857
- onInput: o.handleDateInput
13857
+ "available-dates": o.availableDates
13858
13858
  }, {
13859
13859
  "header-left-button": it(({ page: d }) => [
13860
13860
  le(l, {
@@ -13882,7 +13882,7 @@ function Zj(e, t, n, i, s, o) {
13882
13882
  }), null, 16, qj)
13883
13883
  ]),
13884
13884
  _: 1
13885
- }, 8, ["modelValue", "available-dates", "onDayclick", "onInput"]),
13885
+ }, 8, ["modelValue", "available-dates", "onUpdate:modelValue"]),
13886
13886
  o.errorState && !n.disabled ? (w(), M("div", Gj, J(n.errorMessage), 1)) : K("", !0)
13887
13887
  ]);
13888
13888
  }