readytech-ui-library-v2 1.0.157 → 1.0.158
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.
@@ -13963,15 +13963,20 @@ const rz = J({
|
|
13963
13963
|
}
|
13964
13964
|
},
|
13965
13965
|
methods: {
|
13966
|
+
formatDateToISO(e) {
|
13967
|
+
if (!e || !(e instanceof Date)) return null;
|
13968
|
+
const t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0");
|
13969
|
+
return `${t}-${n}-${r}`;
|
13970
|
+
},
|
13966
13971
|
selectToday() {
|
13967
13972
|
const e = /* @__PURE__ */ new Date();
|
13968
|
-
this.date = e, this.$emit("update:modelValue", e), this.inputError = null, this.menu = !1;
|
13973
|
+
this.date = e, this.$emit("update:modelValue", this.formatDateToISO(e)), this.inputError = null, this.menu = !1;
|
13969
13974
|
},
|
13970
13975
|
handleEnterKey() {
|
13971
13976
|
this.validateInput(), this.menu = !0;
|
13972
13977
|
},
|
13973
13978
|
onDateSelect(e) {
|
13974
|
-
this.date = e, this.$emit("update:modelValue", e), this.inputError = null, this.menu = !1;
|
13979
|
+
this.date = e, this.$emit("update:modelValue", this.formatDateToISO(e)), this.inputError = null, this.menu = !1;
|
13975
13980
|
},
|
13976
13981
|
parseDate(e) {
|
13977
13982
|
if (!e) return null;
|
@@ -14081,7 +14086,7 @@ function Tte(e, t, n, r, a, i) {
|
|
14081
14086
|
], 8, Ote)) : Ge("", !0)
|
14082
14087
|
]);
|
14083
14088
|
}
|
14084
|
-
const Bte = /* @__PURE__ */ je(Dte, [["render", Tte], ["__scopeId", "data-v-
|
14089
|
+
const Bte = /* @__PURE__ */ je(Dte, [["render", Tte], ["__scopeId", "data-v-e6257754"]]), Pte = {
|
14085
14090
|
name: "RtDatePicker",
|
14086
14091
|
props: {
|
14087
14092
|
color: {
|