@oub/fusion 0.2.83 → 0.2.84
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/dist/fusion.js
CHANGED
|
@@ -11759,7 +11759,7 @@ const s1 = /* @__PURE__ */ he(t1, [["render", i1]]), l1 = pe({
|
|
|
11759
11759
|
default: ""
|
|
11760
11760
|
},
|
|
11761
11761
|
modelValue: {
|
|
11762
|
-
type: [Date, String],
|
|
11762
|
+
type: [Date, String, Object],
|
|
11763
11763
|
default: null
|
|
11764
11764
|
},
|
|
11765
11765
|
required: {
|
|
@@ -11815,7 +11815,6 @@ const s1 = /* @__PURE__ */ he(t1, [["render", i1]]), l1 = pe({
|
|
|
11815
11815
|
data() {
|
|
11816
11816
|
return {
|
|
11817
11817
|
date: this.modelValue,
|
|
11818
|
-
// https://vue3datepicker.com/props/modes-configuration/#text-input-configuration
|
|
11819
11818
|
datePickerInputOptions: {
|
|
11820
11819
|
format: this.format,
|
|
11821
11820
|
rangeSeparator: this.dateSeparator
|
|
@@ -11836,15 +11835,24 @@ const s1 = /* @__PURE__ */ he(t1, [["render", i1]]), l1 = pe({
|
|
|
11836
11835
|
watch: {
|
|
11837
11836
|
modelValue: {
|
|
11838
11837
|
handler(e) {
|
|
11839
|
-
e && (e instanceof Date
|
|
11838
|
+
if (typeof e == "object" && e !== null && !(e instanceof Date) && typeof e.month == "number" && typeof e.year == "number")
|
|
11839
|
+
this.date = e;
|
|
11840
|
+
else if (e instanceof Date)
|
|
11841
|
+
this.date = e;
|
|
11842
|
+
else if (typeof e == "string") {
|
|
11843
|
+
const t = new Date(e);
|
|
11844
|
+
Number.isNaN(t.getTime()) ? this.date = null : this.date = t;
|
|
11845
|
+
} else
|
|
11846
|
+
e == null && (this.date = null);
|
|
11840
11847
|
},
|
|
11841
|
-
immediate: !0
|
|
11848
|
+
immediate: !0,
|
|
11849
|
+
deep: !0
|
|
11850
|
+
},
|
|
11851
|
+
date(e) {
|
|
11852
|
+
this.$emit("update:modelValue", e);
|
|
11842
11853
|
}
|
|
11843
11854
|
},
|
|
11844
11855
|
methods: {
|
|
11845
|
-
updateDate() {
|
|
11846
|
-
this.$emit("update:modelValue", this.date);
|
|
11847
|
-
},
|
|
11848
11856
|
handleFocus() {
|
|
11849
11857
|
this.$emit("input:focus");
|
|
11850
11858
|
},
|
|
@@ -11877,10 +11885,7 @@ function v1(e, t, n, r, a, o) {
|
|
|
11877
11885
|
]),
|
|
11878
11886
|
be(s, {
|
|
11879
11887
|
modelValue: e.date,
|
|
11880
|
-
"onUpdate:modelValue": [
|
|
11881
|
-
t[0] || (t[0] = (p) => e.date = p),
|
|
11882
|
-
e.updateDate
|
|
11883
|
-
],
|
|
11888
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.date = p),
|
|
11884
11889
|
uid: e.id,
|
|
11885
11890
|
"enable-time-picker": !1,
|
|
11886
11891
|
format: e.format,
|
|
@@ -11908,14 +11913,14 @@ function v1(e, t, n, r, a, o) {
|
|
|
11908
11913
|
be(i, { class: "fusion-date-picker icon" })
|
|
11909
11914
|
]),
|
|
11910
11915
|
_: 1
|
|
11911
|
-
}, 8, ["modelValue", "uid", "format", "placeholder", "autocomplete", "required", "text-input", "name", "class", "max-date", "min-date", "disabled", "clearable", "month-picker", "year-picker", "time-picker", "week-picker", "
|
|
11916
|
+
}, 8, ["modelValue", "uid", "format", "placeholder", "autocomplete", "required", "text-input", "name", "class", "max-date", "min-date", "disabled", "clearable", "month-picker", "year-picker", "time-picker", "week-picker", "onBlur", "onFocus"]),
|
|
11912
11917
|
e.errorLabel ? (d(), m("div", p1, [
|
|
11913
11918
|
be(u, { "data-test": "error-icon" }),
|
|
11914
11919
|
g("span", f1, oe(e.errorLabel), 1)
|
|
11915
11920
|
])) : S("", !0)
|
|
11916
11921
|
], 8, u1);
|
|
11917
11922
|
}
|
|
11918
|
-
const wh = /* @__PURE__ */ he(l1, [["render", v1], ["__scopeId", "data-v-
|
|
11923
|
+
const wh = /* @__PURE__ */ he(l1, [["render", v1], ["__scopeId", "data-v-b8b8dffb"]]), m1 = pe({
|
|
11919
11924
|
name: "FusionSearchableInput",
|
|
11920
11925
|
components: {
|
|
11921
11926
|
SVGSearch: eo,
|