voiptime-components 1.7.7 → 1.7.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.
package/dist/index.d.ts CHANGED
@@ -605,6 +605,21 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
605
605
  };
606
606
  };
607
607
 
608
+ declare interface DatePickerShortcut {
609
+ text: string;
610
+ value: () => DatePickerValue;
611
+ }
612
+
613
+ declare type DatePickerSize = 'small' | 'default' | 'large';
614
+
615
+ declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange';
616
+
617
+ declare type DatePickerValue = DateValue | DateRangeValue | null | undefined;
618
+
619
+ declare type DateRangeValue = [DateValue, DateValue];
620
+
621
+ declare type DateValue = string | number | Date;
622
+
608
623
  export declare const DEFAULT_COLUMN_CONFIG: {
609
624
  readonly sortable: true;
610
625
  readonly actionColumn: false;
@@ -886,6 +901,56 @@ export declare interface VCheckboxSlots {
886
901
  label?: () => any;
887
902
  }
888
903
 
904
+ export declare const VDatePicker: DefineComponent<VDatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
905
+ blur: (instance: any) => any;
906
+ change: (value: DatePickerValue) => any;
907
+ focus: (instance: any) => any;
908
+ "update:modelValue": (value: DatePickerValue) => any;
909
+ "calendar-change": (value: [Date, Date | null]) => any;
910
+ "panel-change": (value: Date, mode: string, view: string) => any;
911
+ }, string, PublicProps, Readonly<VDatePickerProps> & Readonly<{
912
+ onBlur?: ((instance: any) => any) | undefined;
913
+ onChange?: ((value: DatePickerValue) => any) | undefined;
914
+ onFocus?: ((instance: any) => any) | undefined;
915
+ "onUpdate:modelValue"?: ((value: DatePickerValue) => any) | undefined;
916
+ "onCalendar-change"?: ((value: [Date, Date | null]) => any) | undefined;
917
+ "onPanel-change"?: ((value: Date, mode: string, view: string) => any) | undefined;
918
+ }>, {
919
+ type: DatePickerType;
920
+ disabled: boolean;
921
+ size: DatePickerSize;
922
+ placeholder: string;
923
+ clearable: boolean;
924
+ startPlaceholder: string;
925
+ endPlaceholder: string;
926
+ rangeSeparator: string;
927
+ format: string;
928
+ valueFormat: string;
929
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
930
+ datePickerRef: HTMLDivElement;
931
+ triggerRef: HTMLDivElement;
932
+ dropdownRef: HTMLDivElement;
933
+ }, HTMLDivElement>;
934
+
935
+ declare interface VDatePickerProps {
936
+ modelValue?: DatePickerValue;
937
+ type?: DatePickerType;
938
+ placeholder?: string;
939
+ startPlaceholder?: string;
940
+ endPlaceholder?: string;
941
+ rangeSeparator?: string;
942
+ format?: string;
943
+ valueFormat?: string;
944
+ disabled?: boolean;
945
+ clearable?: boolean;
946
+ size?: DatePickerSize;
947
+ disabledDate?: (date: Date) => boolean;
948
+ shortcuts?: DatePickerShortcut[];
949
+ unlinkPanels?: boolean;
950
+ defaultValue?: DatePickerValue;
951
+ defaultTime?: string | string[];
952
+ }
953
+
889
954
  export declare const VDropdown: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
890
955
 
891
956
  export declare const VDropdownItem: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;