readytech-ui-library-v2 1.0.86 → 1.0.87
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.
@@ -3607,7 +3607,7 @@ function Dd(e, n, t, a, l, i) {
|
|
3607
3607
|
_: 3
|
3608
3608
|
}, 8, ["variant", "size", "color", "disabled", "loading", "outlined", "text", "tile", "depressed", "rounded", "block", "href", "target", "elevation", "to", "replace", "exact", "append", "background-color", "class", "onClick", "aria-label"]);
|
3609
3609
|
}
|
3610
|
-
const Nt = /* @__PURE__ */ fe(Rd, [["render", Dd], ["__scopeId", "data-v-
|
3610
|
+
const Nt = /* @__PURE__ */ fe(Rd, [["render", Dd], ["__scopeId", "data-v-55749f8e"]]), ta = Symbol.for("vuetify:layout"), Lr = Symbol.for("vuetify:layout-item"), ho = 1e3, Ed = R({
|
3611
3611
|
overlaps: {
|
3612
3612
|
type: Array,
|
3613
3613
|
default: () => []
|
@@ -16065,14 +16065,8 @@ const Zh = /* @__PURE__ */ fe(Xh, [["render", Qh], ["__scopeId", "data-v-cc22a96
|
|
16065
16065
|
type: [String, Date],
|
16066
16066
|
required: !0
|
16067
16067
|
},
|
16068
|
-
min:
|
16069
|
-
|
16070
|
-
default: null
|
16071
|
-
},
|
16072
|
-
max: {
|
16073
|
-
type: String,
|
16074
|
-
default: null
|
16075
|
-
},
|
16068
|
+
min: String,
|
16069
|
+
max: String,
|
16076
16070
|
label: {
|
16077
16071
|
type: String,
|
16078
16072
|
default: "Select Date"
|
@@ -16084,56 +16078,61 @@ const Zh = /* @__PURE__ */ fe(Xh, [["render", Qh], ["__scopeId", "data-v-cc22a96
|
|
16084
16078
|
multiple: {
|
16085
16079
|
type: Boolean,
|
16086
16080
|
default: !1
|
16081
|
+
},
|
16082
|
+
error: Boolean,
|
16083
|
+
errorMessages: {
|
16084
|
+
type: [String, Array],
|
16085
|
+
default: () => []
|
16086
|
+
},
|
16087
|
+
placeholder: String,
|
16088
|
+
disabled: Boolean,
|
16089
|
+
prependIcon: String,
|
16090
|
+
autocomplete: String,
|
16091
|
+
uid: {
|
16092
|
+
type: [String, Number],
|
16093
|
+
default: () => Math.floor(Math.random() * 1e4)
|
16087
16094
|
}
|
16088
16095
|
},
|
16096
|
+
data() {
|
16097
|
+
return {
|
16098
|
+
menu: !1,
|
16099
|
+
date: this.parseDate(this.modelValue)
|
16100
|
+
};
|
16101
|
+
},
|
16089
16102
|
computed: {
|
16090
|
-
|
16103
|
+
formattedDate: {
|
16091
16104
|
get() {
|
16092
|
-
return this.
|
16105
|
+
return this.date ? this.date.toLocaleDateString() : "";
|
16093
16106
|
},
|
16094
16107
|
set(e) {
|
16095
|
-
|
16108
|
+
const n = new Date(e);
|
16109
|
+
isNaN(n) || (this.date = n, this.$emit("update:modelValue", n));
|
16096
16110
|
}
|
16097
16111
|
},
|
16098
|
-
inputProps() {
|
16099
|
-
return { ...this.$props };
|
16100
|
-
},
|
16101
16112
|
id() {
|
16102
16113
|
return `rt-date-input-${this.uid}`;
|
16103
16114
|
},
|
16104
|
-
// errorId() {
|
16105
|
-
// return this.errorMessages.length ? `error-${this.id}` : null;
|
16106
|
-
// },
|
16107
16115
|
computedAriaDescribedby() {
|
16108
|
-
return
|
16116
|
+
return this.hint ? `${this.id}-hint` : null;
|
16109
16117
|
}
|
16110
16118
|
},
|
16111
|
-
|
16112
|
-
|
16113
|
-
|
16114
|
-
|
16115
|
-
|
16116
|
-
|
16117
|
-
|
16118
|
-
|
16119
|
-
|
16120
|
-
|
16121
|
-
|
16122
|
-
|
16123
|
-
|
16124
|
-
|
16125
|
-
|
16126
|
-
|
16127
|
-
|
16128
|
-
});
|
16129
|
-
return {
|
16130
|
-
menu: t,
|
16131
|
-
date: a,
|
16132
|
-
formattedDate: l,
|
16133
|
-
onDateSelect: (o) => {
|
16134
|
-
n("update:modelValue", o), t.value = !1;
|
16135
|
-
}
|
16136
|
-
};
|
16119
|
+
watch: {
|
16120
|
+
modelValue(e) {
|
16121
|
+
this.date = this.parseDate(e);
|
16122
|
+
}
|
16123
|
+
},
|
16124
|
+
methods: {
|
16125
|
+
onDateSelect(e) {
|
16126
|
+
this.date = e, this.$emit("update:modelValue", e), this.menu = !1;
|
16127
|
+
},
|
16128
|
+
parseDate(e) {
|
16129
|
+
if (!e) return null;
|
16130
|
+
const n = new Date(e);
|
16131
|
+
return isNaN(n) ? null : n;
|
16132
|
+
},
|
16133
|
+
handleClear() {
|
16134
|
+
this.date = null, this.$emit("update:modelValue", null);
|
16135
|
+
}
|
16137
16136
|
}
|
16138
16137
|
}, tg = {
|
16139
16138
|
class: "rt-date-input",
|
@@ -16142,33 +16141,33 @@ const Zh = /* @__PURE__ */ fe(Xh, [["render", Qh], ["__scopeId", "data-v-cc22a96
|
|
16142
16141
|
function ng(e, n, t, a, l, i) {
|
16143
16142
|
return E(), Ce("div", tg, [
|
16144
16143
|
s(jt, {
|
16145
|
-
modelValue:
|
16146
|
-
"onUpdate:modelValue": n[2] || (n[2] = (o) =>
|
16144
|
+
modelValue: l.menu,
|
16145
|
+
"onUpdate:modelValue": n[2] || (n[2] = (o) => l.menu = o),
|
16147
16146
|
transition: "scale-transition",
|
16148
16147
|
"close-on-content-click": !1,
|
16149
16148
|
"max-width": "290px",
|
16150
16149
|
"min-width": "290px",
|
16151
16150
|
"aria-haspopup": "true",
|
16152
|
-
"aria-expanded":
|
16151
|
+
"aria-expanded": l.menu.toString()
|
16153
16152
|
}, {
|
16154
16153
|
activator: $(({ props: o }) => [
|
16155
16154
|
s(Kt, L(o, {
|
16156
|
-
modelValue:
|
16157
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
16155
|
+
modelValue: i.formattedDate,
|
16156
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => i.formattedDate = r),
|
16158
16157
|
"prepend-inner-icon": "mdi-calendar",
|
16159
16158
|
id: i.id,
|
16160
16159
|
hint: t.hint,
|
16161
16160
|
"aria-label": t.label || "Date input field",
|
16162
16161
|
"aria-describedby": i.computedAriaDescribedby,
|
16163
|
-
"aria-invalid":
|
16164
|
-
placeholder:
|
16165
|
-
disabled:
|
16166
|
-
error:
|
16167
|
-
"error-messages":
|
16168
|
-
"prepend-icon":
|
16162
|
+
"aria-invalid": t.error ? "true" : "false",
|
16163
|
+
placeholder: t.placeholder,
|
16164
|
+
disabled: t.disabled,
|
16165
|
+
error: t.error,
|
16166
|
+
"error-messages": t.errorMessages,
|
16167
|
+
"prepend-icon": t.prependIcon,
|
16169
16168
|
clearable: "",
|
16170
|
-
autocomplete:
|
16171
|
-
"onClick:clear":
|
16169
|
+
autocomplete: t.autocomplete,
|
16170
|
+
"onClick:clear": i.handleClear,
|
16172
16171
|
label: t.label,
|
16173
16172
|
readonly: "",
|
16174
16173
|
"aria-live": "polite",
|
@@ -16177,10 +16176,10 @@ function ng(e, n, t, a, l, i) {
|
|
16177
16176
|
]),
|
16178
16177
|
default: $(() => [
|
16179
16178
|
s(ys, {
|
16180
|
-
modelValue:
|
16179
|
+
modelValue: l.date,
|
16181
16180
|
"onUpdate:modelValue": [
|
16182
|
-
n[1] || (n[1] = (o) =>
|
16183
|
-
|
16181
|
+
n[1] || (n[1] = (o) => l.date = o),
|
16182
|
+
i.onDateSelect
|
16184
16183
|
],
|
16185
16184
|
min: t.min,
|
16186
16185
|
max: t.max,
|
@@ -16192,7 +16191,7 @@ function ng(e, n, t, a, l, i) {
|
|
16192
16191
|
}, 8, ["modelValue", "aria-expanded"])
|
16193
16192
|
]);
|
16194
16193
|
}
|
16195
|
-
const ag = /* @__PURE__ */ fe(eg, [["render", ng]]), lg = {
|
16194
|
+
const ag = /* @__PURE__ */ fe(eg, [["render", ng], ["__scopeId", "data-v-a58dbd73"]]), lg = {
|
16196
16195
|
name: "RtDatePicker",
|
16197
16196
|
props: {
|
16198
16197
|
color: {
|