@oub/fusion 0.2.100 → 0.2.101
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
|
@@ -14247,11 +14247,16 @@ const fk = /* @__PURE__ */ he(yy, [["render", ky], ["__scopeId", "data-v-9abe1eb
|
|
|
14247
14247
|
}
|
|
14248
14248
|
},
|
|
14249
14249
|
watch: {
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14250
|
+
modelValue: {
|
|
14251
|
+
handler(e) {
|
|
14252
|
+
if (!e) {
|
|
14253
|
+
this.date = null;
|
|
14254
|
+
return;
|
|
14255
|
+
}
|
|
14256
|
+
const t = e instanceof Date ? e.getMonth() : e.month, a = e instanceof Date ? e.getFullYear() : e.year;
|
|
14257
|
+
this.date = { month: t, year: a };
|
|
14258
|
+
},
|
|
14259
|
+
immediate: !0
|
|
14255
14260
|
}
|
|
14256
14261
|
},
|
|
14257
14262
|
methods: {
|
|
@@ -14260,6 +14265,14 @@ const fk = /* @__PURE__ */ he(yy, [["render", ky], ["__scopeId", "data-v-9abe1eb
|
|
|
14260
14265
|
},
|
|
14261
14266
|
handleBlur() {
|
|
14262
14267
|
this.$emit("input:blur");
|
|
14268
|
+
},
|
|
14269
|
+
handleChange(e) {
|
|
14270
|
+
if (!e) {
|
|
14271
|
+
this.$emit("update:modelValue", null);
|
|
14272
|
+
return;
|
|
14273
|
+
}
|
|
14274
|
+
const { month: t, year: a } = e;
|
|
14275
|
+
this.$emit("update:modelValue", new Date(a, t, 1));
|
|
14263
14276
|
}
|
|
14264
14277
|
}
|
|
14265
14278
|
});
|
|
@@ -14286,8 +14299,7 @@ function Fy(e, t, a, r, n, o) {
|
|
|
14286
14299
|
}, _(e.helperLabel), 3)) : C("", !0)
|
|
14287
14300
|
]),
|
|
14288
14301
|
de(s, {
|
|
14289
|
-
|
|
14290
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.date = p),
|
|
14302
|
+
"model-value": e.date,
|
|
14291
14303
|
uid: e.id,
|
|
14292
14304
|
"enable-time-picker": !1,
|
|
14293
14305
|
format: e.format,
|
|
@@ -14306,20 +14318,21 @@ function Fy(e, t, a, r, n, o) {
|
|
|
14306
14318
|
clearable: e.isClearable,
|
|
14307
14319
|
"month-picker": !0,
|
|
14308
14320
|
onBlur: e.handleBlur,
|
|
14309
|
-
onFocus: e.handleFocus
|
|
14321
|
+
onFocus: e.handleFocus,
|
|
14322
|
+
"onUpdate:modelValue": e.handleChange
|
|
14310
14323
|
}, {
|
|
14311
14324
|
"input-icon": be(() => [
|
|
14312
14325
|
de(i, { class: "fusion-date-picker icon" })
|
|
14313
14326
|
]),
|
|
14314
14327
|
_: 1
|
|
14315
|
-
}, 8, ["
|
|
14328
|
+
}, 8, ["model-value", "uid", "format", "placeholder", "autocomplete", "required", "text-input", "name", "class", "max-date", "min-date", "disabled", "clearable", "onBlur", "onFocus", "onUpdate:modelValue"]),
|
|
14316
14329
|
e.errorLabel ? (d(), m("div", Py, [
|
|
14317
14330
|
de(l, { "data-test": "error-icon" }),
|
|
14318
14331
|
v("span", Ty, _(e.errorLabel), 1)
|
|
14319
14332
|
])) : C("", !0)
|
|
14320
14333
|
], 8, wy);
|
|
14321
14334
|
}
|
|
14322
|
-
const hk = /* @__PURE__ */ he(Ay, [["render", Fy], ["__scopeId", "data-v-
|
|
14335
|
+
const hk = /* @__PURE__ */ he(Ay, [["render", Fy], ["__scopeId", "data-v-1a58f07d"]]);
|
|
14323
14336
|
function Qn(e, t) {
|
|
14324
14337
|
if (!{}.hasOwnProperty.call(e, t))
|
|
14325
14338
|
throw new TypeError("attempted to use private field on non-instance");
|