@oub/fusion 0.2.22 → 0.2.24

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.
@@ -1,4 +1,3 @@
1
- import type { PropType } from "vue";
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  id: {
4
3
  type: StringConstructor;
@@ -25,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
25
24
  default: string;
26
25
  };
27
26
  modelValue: {
28
- type: PropType<string | Date>;
27
+ type: (StringConstructor | DateConstructor)[];
29
28
  default: null;
30
29
  };
31
30
  required: {
@@ -61,8 +60,7 @@ declare const _default: import("vue").DefineComponent<{
61
60
  default: string;
62
61
  };
63
62
  }, unknown, {
64
- date: String | Date | null;
65
- dateInParent: string | Date;
63
+ date: string | Date;
66
64
  datePickerInputOptions: {
67
65
  format: string;
68
66
  rangeSeparator: string;
@@ -103,7 +101,7 @@ declare const _default: import("vue").DefineComponent<{
103
101
  default: string;
104
102
  };
105
103
  modelValue: {
106
- type: PropType<string | Date>;
104
+ type: (StringConstructor | DateConstructor)[];
107
105
  default: null;
108
106
  };
109
107
  required: {
package/dist/fusion.js CHANGED
@@ -2640,7 +2640,7 @@ const Ns = /* @__PURE__ */ Le(Fs, [["render", Vs], ["__scopeId", "data-v-5464d28
2640
2640
  }
2641
2641
  }
2642
2642
  });
2643
- const Ls = ["data-test"], Hs = ["for"], Rs = { class: "panel-wrapper" }, qs = ["id", "placeholder", "required", "disabled", "tabindex", "autocomplete", "title", "readonly"], Es = {
2643
+ const Ls = ["data-test"], Hs = ["for"], Rs = { class: "panel-wrapper" }, qs = ["id", "placeholder", "required", "disabled", "tabindex", "autocomplete", "title", "readonly", "name"], Es = {
2644
2644
  key: 0,
2645
2645
  class: "select-panel-wrapper"
2646
2646
  }, Js = {
@@ -2691,6 +2691,7 @@ function Ys(e, t, n, r, a, o) {
2691
2691
  autocomplete: e.autocomplete,
2692
2692
  title: e.title,
2693
2693
  readonly: e.readonly,
2694
+ name: e.name,
2694
2695
  "data-test": "fusion-phone-input",
2695
2696
  onBlur: t[1] || (t[1] = (...d) => e.handleBlur && e.handleBlur(...d)),
2696
2697
  onFocus: t[2] || (t[2] = (...d) => e.handleFocus && e.handleFocus(...d)),
@@ -2728,7 +2729,7 @@ function Ys(e, t, n, r, a, o) {
2728
2729
  ])) : Q("", !0)
2729
2730
  ], 8, Ls);
2730
2731
  }
2731
- const dv = /* @__PURE__ */ Le(Ms, [["render", Ys], ["__scopeId", "data-v-f1c0947e"]]), Ws = Ce({
2732
+ const dv = /* @__PURE__ */ Le(Ms, [["render", Ys], ["__scopeId", "data-v-d2b501f2"]]), Ws = Ce({
2732
2733
  name: "SVGInformationCircle"
2733
2734
  }), Ks = {
2734
2735
  width: "20",
@@ -11401,7 +11402,7 @@ const B0 = /* @__PURE__ */ Le(D0, [["render", x0]]), F0 = Ce({
11401
11402
  default: ""
11402
11403
  },
11403
11404
  modelValue: {
11404
- type: String,
11405
+ type: [Date, String],
11405
11406
  default: null
11406
11407
  },
11407
11408
  required: {
@@ -11440,8 +11441,7 @@ const B0 = /* @__PURE__ */ Le(D0, [["render", x0]]), F0 = Ce({
11440
11441
  emits: ["input:blur", "input:focus", "update:modelValue"],
11441
11442
  data() {
11442
11443
  return {
11443
- date: null,
11444
- dateInParent: this.modelValue,
11444
+ date: this.modelValue,
11445
11445
  // https://vue3datepicker.com/props/modes-configuration/#text-input-configuration
11446
11446
  datePickerInputOptions: {
11447
11447
  format: this.format,
@@ -11463,7 +11463,7 @@ const B0 = /* @__PURE__ */ Le(D0, [["render", x0]]), F0 = Ce({
11463
11463
  watch: {
11464
11464
  modelValue: {
11465
11465
  handler(e) {
11466
- e && (e instanceof Date ? this.date = e : this.date = new Date(e));
11466
+ e && (e instanceof Date ? this.date = e : this.date = new Date(e), this.$emit("update:modelValue", this.date));
11467
11467
  },
11468
11468
  immediate: !0
11469
11469
  }
@@ -11502,9 +11502,9 @@ function V0(e, t, n, r, a, o) {
11502
11502
  }, fe(e.helperLabel), 3)) : Q("", !0),
11503
11503
  Se(l, {
11504
11504
  id: e.id,
11505
- modelValue: e.dateInParent,
11505
+ modelValue: e.date,
11506
11506
  "onUpdate:modelValue": [
11507
- t[0] || (t[0] = (c) => e.dateInParent = c),
11507
+ t[0] || (t[0] = (c) => e.date = c),
11508
11508
  e.updateDate
11509
11509
  ],
11510
11510
  "enable-time-picker": !1,
@@ -11538,7 +11538,7 @@ function V0(e, t, n, r, a, o) {
11538
11538
  ])) : Q("", !0)
11539
11539
  ], 8, O0);
11540
11540
  }
11541
- const pv = /* @__PURE__ */ Le(F0, [["render", V0], ["__scopeId", "data-v-1cc3fea9"]]), N0 = Ce({
11541
+ const pv = /* @__PURE__ */ Le(F0, [["render", V0], ["__scopeId", "data-v-fbb8c75e"]]), N0 = Ce({
11542
11542
  name: "FusionSearchableInput",
11543
11543
  components: {
11544
11544
  SVGSearch: zr,