@weni/unnnic-system 2.33.3 → 2.33.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 2.33.4 (2025-05-27)
9
+
10
+ ### Fixed
11
+
12
+ - DatePicker: Fixed current month selection
13
+
8
14
  ## 2.33.3 (2025-05-26)
9
15
 
10
16
  ### Added
@@ -1,4 +1,4 @@
1
- import { h as n } from "./index-ff97aea0.mjs";
1
+ import { h as n } from "./index-6ca34458.mjs";
2
2
  import "vue";
3
3
  //! moment.js locale configuration
4
4
  //! locale : Spanish [es]
@@ -15353,8 +15353,13 @@ const vY = {
15353
15353
  } else if (a) {
15354
15354
  const r = Number(a[1]);
15355
15355
  this.endDate = this.dateToString(i), i.setDate(i.getDate() + 1), i.setMonth(i.getMonth() - r), this.startDate = this.dateToString(i);
15356
+ } else if (e === "current-month") {
15357
+ const r = /* @__PURE__ */ new Date();
15358
+ i.setDate(1), this.startDate = this.dateToString(i);
15359
+ const o = r.getDate();
15360
+ i.setDate(o), this.endDate = this.dateToString(i);
15356
15361
  } else
15357
- e === "current-month" ? (i.setDate(1), this.startDate = this.dateToString(i), i.setMonth(i.getMonth() + 1), i.setDate(0), this.endDate = this.dateToString(i)) : e === "previous-month" && (i.setDate(1), i.setMonth(i.getMonth() - 1), this.startDate = this.dateToString(i), i.setMonth(i.getMonth() + 1), i.setDate(0), this.endDate = this.dateToString(i));
15362
+ e === "previous-month" && (i.setDate(1), i.setMonth(i.getMonth() - 1), this.startDate = this.dateToString(i), i.setMonth(i.getMonth() + 1), i.setDate(0), this.endDate = this.dateToString(i));
15358
15363
  if (this.endDate) {
15359
15364
  const r = this.addMonth(this.referenceDate, 1), o = `${Number(
15360
15365
  this.getMonth(this.endDate)
@@ -15366,7 +15371,7 @@ const vY = {
15366
15371
  });
15367
15372
  }
15368
15373
  }
15369
- }, bo = (e) => (hn("data-v-6b5bf0b6"), e = e(), mn(), e), gY = { class: "unnnic-date-picker" }, _Y = { class: "month-container" }, wY = ["onClick"], CY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), kY = { class: "month-container" }, xY = ["onClick"], bY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), MY = { class: "month-container" }, DY = ["onClick"], AY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), LY = {
15374
+ }, bo = (e) => (hn("data-v-5165d8a8"), e = e(), mn(), e), gY = { class: "unnnic-date-picker" }, _Y = { class: "month-container" }, wY = ["onClick"], CY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), kY = { class: "month-container" }, xY = ["onClick"], bY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), MY = { class: "month-container" }, DY = ["onClick"], AY = /* @__PURE__ */ bo(() => /* @__PURE__ */ u("div", { class: "divider" }, null, -1)), LY = {
15370
15375
  key: 3,
15371
15376
  class: "options-container"
15372
15377
  }, TY = { class: "options" }, SY = ["onClick"], NY = { class: "actions" };
@@ -15528,7 +15533,7 @@ function EY(e, i, n, a, r, o) {
15528
15533
  ])) : N("", !0)
15529
15534
  ]);
15530
15535
  }
15531
- const gc = /* @__PURE__ */ k(vY, [["render", EY], ["__scopeId", "data-v-6b5bf0b6"]]);
15536
+ const gc = /* @__PURE__ */ k(vY, [["render", EY], ["__scopeId", "data-v-5165d8a8"]]);
15532
15537
  const zY = {
15533
15538
  components: {
15534
15539
  UnnnicInput: _0,
@@ -22905,8 +22910,8 @@ function Eee(e, i, n, a, r, o) {
22905
22910
  });
22906
22911
  }
22907
22912
  const zee = /* @__PURE__ */ k(Nee, [["render", Eee], ["__scopeId", "data-v-9b793da0"]]);
22908
- import("./es-b2d3c774.mjs");
22909
- import("./pt-br-4899b2b3.mjs");
22913
+ import("./es-5590f1b3.mjs");
22914
+ import("./pt-br-fd2116dc.mjs");
22910
22915
  const To = {
22911
22916
  name: "ChatsContact",
22912
22917
  components: {
@@ -1,4 +1,4 @@
1
- import { h as e } from "./index-ff97aea0.mjs";
1
+ import { h as e } from "./index-6ca34458.mjs";
2
2
  import "vue";
3
3
  //! moment.js locale configuration
4
4
  //! locale : Portuguese (Brazil) [pt-br]