v-datepicker-lite 0.1.2 → 0.1.4

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.
@@ -8,12 +8,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
8
8
  minuteInterval: number;
9
9
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
10
  update: (time: Date) => void;
11
- "clear-time": () => void;
12
11
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
12
  timeFormat: string;
14
13
  minuteInterval: number;
15
14
  }>>> & Readonly<{
16
- "onClear-time"?: () => any;
17
15
  onUpdate?: (time: Date) => any;
18
16
  }>, {
19
17
  timeFormat: "12h" | "24h";
@@ -1,11 +1,13 @@
1
1
  interface Props {
2
- modelValue?: string | null;
2
+ modelValue?: string | Date | null;
3
3
  timeFormat?: '12h' | '24h';
4
4
  triggerClass?: string;
5
5
  style?: any;
6
6
  className?: any;
7
7
  offset?: [number, number];
8
8
  minuteInterval?: number;
9
+ disabled?: boolean;
10
+ readonly?: boolean;
9
11
  }
10
12
  declare function __VLS_template(): {
11
13
  default?(_: {
@@ -17,6 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
17
19
  timeFormat: string;
18
20
  offset: () => number[];
19
21
  minuteInterval: number;
22
+ disabled: boolean;
23
+ readonly: boolean;
20
24
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
25
  "update:modelValue": (value: string) => void;
22
26
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -24,12 +28,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
24
28
  timeFormat: string;
25
29
  offset: () => number[];
26
30
  minuteInterval: number;
31
+ disabled: boolean;
32
+ readonly: boolean;
27
33
  }>>> & Readonly<{
28
34
  "onUpdate:modelValue"?: (value: string) => any;
29
35
  }>, {
36
+ disabled: boolean;
30
37
  timeFormat: "12h" | "24h";
31
38
  minuteInterval: number;
32
- modelValue: string | null;
39
+ readonly: boolean;
40
+ modelValue: string | Date | null;
33
41
  offset: [number, number];
34
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
43
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -4,6 +4,8 @@ interface Props {
4
4
  period: 'AM' | 'PM';
5
5
  is12Hour: boolean;
6
6
  triggerClass?: string;
7
+ disabled?: boolean;
8
+ readonly?: boolean;
7
9
  }
8
10
  declare function __VLS_template(): {
9
11
  default?(_: {
@@ -6,6 +6,7 @@ export declare function useCalendar(props: any, emit: any): {
6
6
  selectedDate: import('vue').ComputedRef<any>;
7
7
  canGoPrev: import('vue').ComputedRef<boolean>;
8
8
  canGoNext: import('vue').ComputedRef<boolean>;
9
+ hasTime: import('vue').ComputedRef<boolean>;
9
10
  goToPrevMonth: () => void;
10
11
  goToNextMonth: () => void;
11
12
  goToPrevYear: () => void;
@@ -18,5 +19,5 @@ export declare function useCalendar(props: any, emit: any): {
18
19
  onWeekSelect: (weekStart: Date) => void;
19
20
  onMonthSelect: (month: number) => void;
20
21
  onYearSelect: (year: number) => void;
21
- emitValue: (date: Date) => void;
22
+ emitValue: (date: Date, forceTime?: boolean) => void;
22
23
  };