readytech-ui-library-v2 1.0.103 → 1.0.104
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.
@@ -13899,7 +13899,7 @@ const Ds = D({
|
|
13899
13899
|
},
|
13900
13900
|
hint: {
|
13901
13901
|
type: String,
|
13902
|
-
default: "Enter date as dd
|
13902
|
+
default: "Enter date as dd-mm-yyyy or use calendar"
|
13903
13903
|
},
|
13904
13904
|
multiple: {
|
13905
13905
|
type: Boolean,
|
@@ -13929,11 +13929,13 @@ const Ds = D({
|
|
13929
13929
|
computed: {
|
13930
13930
|
formattedDate: {
|
13931
13931
|
get() {
|
13932
|
-
|
13932
|
+
if (!this.date) return "";
|
13933
|
+
const e = String(this.date.getDate()).padStart(2, "0"), n = String(this.date.getMonth() + 1).padStart(2, "0"), t = this.date.getFullYear();
|
13934
|
+
return `${e}-${n}-${t}`;
|
13933
13935
|
},
|
13934
13936
|
set(e) {
|
13935
13937
|
const n = this.parseUserInput(e);
|
13936
|
-
n ? (this.date = n, this.$emit("update:modelValue", n), this.inputError = null) : this.inputError = "Invalid date format. Use dd
|
13938
|
+
n ? (this.date = n, this.$emit("update:modelValue", n), this.inputError = null) : this.inputError = "Invalid date format. Use dd-mm-yyyy.";
|
13937
13939
|
}
|
13938
13940
|
},
|
13939
13941
|
id() {
|
@@ -14043,7 +14045,7 @@ function uh(e, n, t, l, a, i) {
|
|
14043
14045
|
}, ce(t.hint), 9, sh)) : ye("", !0)
|
14044
14046
|
]);
|
14045
14047
|
}
|
14046
|
-
const ch = /* @__PURE__ */ fe(oh, [["render", uh], ["__scopeId", "data-v-
|
14048
|
+
const ch = /* @__PURE__ */ fe(oh, [["render", uh], ["__scopeId", "data-v-465285d7"]]), dh = {
|
14047
14049
|
name: "RtDatePicker",
|
14048
14050
|
props: {
|
14049
14051
|
color: {
|