@factoringplus/pl-components-pack-v3 0.5.8 → 0.5.9

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.
@@ -25947,7 +25947,11 @@ const _sfc_main$w = {
25947
25947
  dayjs.extend(objectSupport);
25948
25948
  const { isOpen } = toRefs(props);
25949
25949
  const validateDateValueString = (dateStr) => {
25950
- return dayjs(dateStr.split("-")[0], "DD.MM.YYYY", true).isValid() && dayjs(dateStr.split("-")[1], "DD.MM.YYYY", true).isValid();
25950
+ if (dateStr.includes("-")) {
25951
+ return dayjs(dateStr.split("-")[0], "DD.MM.YYYY", true).isValid() && dayjs(dateStr.split("-")[1], "DD.MM.YYYY", true).isValid();
25952
+ } else {
25953
+ return dayjs(dateStr, "DD.MM.YYYY", true).isValid();
25954
+ }
25951
25955
  };
25952
25956
  const currentDate = ref(dayjs());
25953
25957
  const startDate = ref(dayjs());