v-datepicker-lite 0.0.6 → 0.0.7

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/README.md CHANGED
@@ -179,6 +179,12 @@ const selectedTime = (ref < string) | (null > null)
179
179
  <div>
180
180
  <h3>Time Picker</h3>
181
181
  <TimePicker v-model:model-value="selectedTime" time-format="12h" />
182
+
183
+ <!-- With Custom Trigger -->
184
+ <TimePicker v-model:model-value="selectedTime" time-format="12h" v-slot="{ displayTime }">
185
+ <button>{{ displayTime }}</button>
186
+ </TimePicker>
187
+
182
188
  <p>
183
189
  Selected:
184
190
  {{ selectedTime || 'None' }}
@@ -1,8 +1,16 @@
1
1
  interface Props {
2
2
  modelValue?: string | null;
3
3
  timeFormat?: '12h' | '24h';
4
+ triggerClass?: string;
5
+ style?: any;
6
+ className?: any;
4
7
  }
5
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ declare function __VLS_template(): {
9
+ default?(_: {
10
+ displayTime: string;
11
+ }): any;
12
+ };
13
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
14
  modelValue: any;
7
15
  timeFormat: string;
8
16
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -16,6 +24,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
24
  timeFormat: "12h" | "24h";
17
25
  modelValue: string | null;
18
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
28
  export default _default;
20
29
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
30
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -34,3 +43,8 @@ type __VLS_WithDefaults<P, D> = {
34
43
  type __VLS_Prettify<T> = {
35
44
  [K in keyof T]: T[K];
36
45
  } & {};
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -3,12 +3,15 @@ interface Props {
3
3
  minute: number;
4
4
  period: 'AM' | 'PM';
5
5
  is12Hour: boolean;
6
+ triggerClass?: string;
6
7
  }
7
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
- toggle: () => void;
9
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
10
- onToggle?: () => any;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ declare function __VLS_template(): {
9
+ default?(_: {
10
+ displayTime: string;
11
+ }): any;
12
+ };
13
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
15
  export default _default;
13
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
17
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -19,3 +22,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
19
22
  required: true;
20
23
  };
21
24
  };
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };