@point-hub/papp 0.0.68 → 0.0.70

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/index.js CHANGED
@@ -9224,12 +9224,12 @@ const Vh = ["autofocus", "required", "disabled"], Nh = /* @__PURE__ */ R({
9224
9224
  if (!r.disabled) {
9225
9225
  i.value = [];
9226
9226
  const f = c.split("-");
9227
- if (f.length !== 3 || Number(f[2]) < 1e3) {
9227
+ if (f.length !== 3 || Number(f[0]) < 1e3) {
9228
9228
  i.value = ["Invalid date format."], d.value = "", a("update:modelValue", "");
9229
9229
  return;
9230
9230
  }
9231
9231
  const h = /* @__PURE__ */ new Date();
9232
- h.setDate(Number(f[0])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[2])), d.value = `${f[2]}-${f[1]}-${f[0]}`, a("isoValue", Fh(h)), a("update:modelValue", c);
9232
+ h.setDate(Number(f[2])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[0])), d.value = `${f[0]}-${f[1]}-${f[2]}`, a("isoValue", Fh(h)), a("update:modelValue", c);
9233
9233
  }
9234
9234
  },
9235
9235
  get: () => r.modelValue
@@ -9238,14 +9238,14 @@ const Vh = ["autofocus", "required", "disabled"], Nh = /* @__PURE__ */ R({
9238
9238
  }, d = E();
9239
9239
  oe(o, (c) => {
9240
9240
  const f = c.split("-");
9241
- if (f.length !== 3 || Number(f[2]) < 1e3) {
9241
+ if (f.length !== 3 || Number(f[0]) < 1e3) {
9242
9242
  i.value = ["Invalid date format."], d.value = "", a("update:modelValue", "");
9243
9243
  return;
9244
9244
  }
9245
9245
  const h = /* @__PURE__ */ new Date();
9246
- h.setDate(Number(f[0])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[2])), d.value = `${f[2]}-${f[1]}-${f[0]}`;
9246
+ h.setDate(Number(f[2])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[0])), d.value = `${f[0]}-${f[1]}-${f[2]}`;
9247
9247
  }), oe(d, (c) => {
9248
- c ? o.value = Lh(new Date(c), "dd-MM-yyyy") : a("update:modelValue", ""), l.value.blur();
9248
+ c ? o.value = Lh(new Date(c), "yyyy-MM-dd") : a("update:modelValue", ""), l.value.blur();
9249
9249
  });
9250
9250
  const u = E();
9251
9251
  return t({
@@ -9294,7 +9294,7 @@ const Vh = ["autofocus", "required", "disabled"], Nh = /* @__PURE__ */ R({
9294
9294
  "border-full": c.border === "full",
9295
9295
  "border-none pl-0!": c.border === "none"
9296
9296
  }]),
9297
- placeholder: "DD-MM-YYYY",
9297
+ placeholder: "YYYY-MM-DD",
9298
9298
  autofocus: r.autofocus,
9299
9299
  required: r.required,
9300
9300
  disabled: r.disabled
@@ -9305,14 +9305,14 @@ const Vh = ["autofocus", "required", "disabled"], Nh = /* @__PURE__ */ R({
9305
9305
  void 0,
9306
9306
  { lazy: !0 }
9307
9307
  ],
9308
- [p, { date: !0, delimiter: "-", datePattern: ["d", "m", "Y"] }]
9308
+ [p, { date: !0, delimiter: "-", datePattern: ["Y", "m", "d"] }]
9309
9309
  ])
9310
9310
  ]),
9311
9311
  _: 1
9312
9312
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
9313
9313
  };
9314
9314
  }
9315
- }), jh = /* @__PURE__ */ se(Nh, [["__scopeId", "data-v-5adaa767"]]), Wh = ["multiple", "autofocus", "required", "disabled"], qh = ["multiple", "required", "disabled"], Hh = /* @__PURE__ */ R({
9315
+ }), jh = /* @__PURE__ */ se(Nh, [["__scopeId", "data-v-32958586"]]), Wh = ["multiple", "autofocus", "required", "disabled"], qh = ["multiple", "required", "disabled"], Hh = /* @__PURE__ */ R({
9316
9316
  __name: "base-file-upload",
9317
9317
  props: {
9318
9318
  id: {},