readytech-ui-library-v2 1.0.103 → 1.0.105
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() {
|
@@ -13955,6 +13957,9 @@ const Ds = D({
|
|
13955
13957
|
}
|
13956
13958
|
},
|
13957
13959
|
methods: {
|
13960
|
+
handleEnterKey() {
|
13961
|
+
this.validateInput(), this.menu = !0;
|
13962
|
+
},
|
13958
13963
|
onDateSelect(e) {
|
13959
13964
|
this.date = e, this.$emit("update:modelValue", e), this.inputError = null, this.menu = !1;
|
13960
13965
|
},
|
@@ -14014,7 +14019,7 @@ function uh(e, n, t, l, a, i) {
|
|
14014
14019
|
autocomplete: t.autocomplete,
|
14015
14020
|
"onClick:clear": i.handleClear,
|
14016
14021
|
onBlur: i.validateInput,
|
14017
|
-
onKeyup: Ie(i.
|
14022
|
+
onKeyup: Ie(i.handleEnterKey, ["enter"]),
|
14018
14023
|
label: t.label,
|
14019
14024
|
"aria-live": "polite",
|
14020
14025
|
role: "textbox"
|
@@ -14043,7 +14048,7 @@ function uh(e, n, t, l, a, i) {
|
|
14043
14048
|
}, ce(t.hint), 9, sh)) : ye("", !0)
|
14044
14049
|
]);
|
14045
14050
|
}
|
14046
|
-
const ch = /* @__PURE__ */ fe(oh, [["render", uh], ["__scopeId", "data-v-
|
14051
|
+
const ch = /* @__PURE__ */ fe(oh, [["render", uh], ["__scopeId", "data-v-183874a3"]]), dh = {
|
14047
14052
|
name: "RtDatePicker",
|
14048
14053
|
props: {
|
14049
14054
|
color: {
|