sprintify-ui 0.1.12 → 0.1.13

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.
@@ -13224,7 +13224,7 @@ const c0 = { class: "base-date-picker relative" }, f0 = { class: "pointer-events
13224
13224
  enableTime: { type: Boolean, default: !1 },
13225
13225
  mode: { default: "single" },
13226
13226
  noCalendar: { type: Boolean, default: !1 },
13227
- disableDates: { default() {
13227
+ disableDates: { type: [Array, Function], default() {
13228
13228
  return [];
13229
13229
  } }
13230
13230
  },
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  enableTime?: boolean | undefined;
12
12
  mode?: "time" | "multiple" | "single" | "range" | undefined;
13
13
  noCalendar?: boolean | undefined;
14
- disableDates?: string[] | Date[] | undefined;
14
+ disableDates?: string[] | Date[] | ((date: Date) => boolean) | undefined;
15
15
  }>, {
16
16
  modelValue: null;
17
17
  required: boolean;
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
37
37
  enableTime?: boolean | undefined;
38
38
  mode?: "time" | "multiple" | "single" | "range" | undefined;
39
39
  noCalendar?: boolean | undefined;
40
- disableDates?: string[] | Date[] | undefined;
40
+ disableDates?: string[] | Date[] | ((date: Date) => boolean) | undefined;
41
41
  }>, {
42
42
  modelValue: null;
43
43
  required: boolean;
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
65
65
  maxDate: string | Date | null;
66
66
  enableTime: boolean;
67
67
  noCalendar: boolean;
68
- disableDates: string[] | Date[];
68
+ disableDates: string[] | Date[] | ((date: Date) => boolean);
69
69
  }>;
70
70
  export default _default;
71
71
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -58,7 +58,7 @@ const props = withDefaults(
58
58
  enableTime?: boolean;
59
59
  mode?: 'single' | 'multiple' | 'range' | 'time';
60
60
  noCalendar?: boolean;
61
- disableDates?: string[] | Date[];
61
+ disableDates?: string[] | Date[] | ((date: Date) => boolean);
62
62
  }>(),
63
63
  {
64
64
  modelValue: null,
@@ -164,7 +164,7 @@ const flatpickrConfig = computed(() => {
164
164
  inline: props.inline,
165
165
  animate: false,
166
166
  time_24hr: true,
167
- };
167
+ } as any;
168
168
  });
169
169
 
170
170
  // Make sure the model value is formatted on the parent component onload