@rebilly/revel
Advanced tools
Comparing version 6.30.41 to 6.30.42
@@ -1,1 +0,1 @@ | ||
## [6.30.41](https://github.com/Rebilly/rebilly/compare/revel-v6.30.40...revel-v6.30.41) (2024-08-12) | ||
## [6.30.42](https://github.com/Rebilly/rebilly/compare/revel-v6.30.41...revel-v6.30.42) (2024-08-12) |
@@ -1,2 +0,1 @@ | ||
import { type PropType } from 'vue'; | ||
type Position = 'bottomStart' | 'bottomEnd' | 'topStart' | 'topEnd'; | ||
@@ -7,158 +6,63 @@ interface Month { | ||
} | ||
interface State { | ||
months: string[]; | ||
} | ||
interface MonthPickerElement extends HTMLElement { | ||
popper: { | ||
toggle: () => void; | ||
}; | ||
} | ||
export interface Props { | ||
label?: string; | ||
caption?: string; | ||
modelValue: Month; | ||
clearable?: boolean; | ||
placeholder?: string; | ||
position?: Position; | ||
minValue?: Month; | ||
maxValue?: Month; | ||
} | ||
declare const _default: import("vue").DefineComponent<{ | ||
/** | ||
* Label for the month picker | ||
*/ | ||
label: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
label?: string; | ||
/** | ||
* Help text for the month picker | ||
*/ | ||
caption: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
caption?: string; | ||
/** | ||
* Selected month and year | ||
*/ | ||
modelValue: { | ||
required: true; | ||
type: PropType<Month>; | ||
}; | ||
modelValue: Month; | ||
/** | ||
* Defines if month picker is clearable | ||
*/ | ||
clearable: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
required: false; | ||
}; | ||
clearable?: boolean; | ||
/** | ||
* Placeholder of the input if no month is selected | ||
*/ | ||
placeholder: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
placeholder?: string; | ||
/** | ||
* Position of popover control | ||
*/ | ||
position: { | ||
type: PropType<Position>; | ||
default: string; | ||
validator: (pos: string) => boolean; | ||
}; | ||
position?: Position; | ||
/** | ||
* Minimum month and year | ||
*/ | ||
minValue: { | ||
type: PropType<Month>; | ||
default: () => {}; | ||
}; | ||
minValue?: Month; | ||
/** | ||
* Maximum month and year | ||
*/ | ||
maxValue: { | ||
type: PropType<Month>; | ||
default: () => {}; | ||
}; | ||
maxValue?: Month; | ||
} | ||
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, { | ||
label: string; | ||
caption: string; | ||
clearable: boolean; | ||
placeholder: string; | ||
position: string; | ||
minValue: undefined; | ||
maxValue: undefined; | ||
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
clear: () => void; | ||
"month-change": (value: number) => void; | ||
"update:modelValue": (value: Month) => void; | ||
"year-change": (value: number) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, { | ||
label: string; | ||
caption: string; | ||
clearable: boolean; | ||
placeholder: string; | ||
position: string; | ||
minValue: undefined; | ||
maxValue: undefined; | ||
}>>> & { | ||
"onUpdate:modelValue"?: ((value: Month) => any) | undefined; | ||
onClear?: (() => any) | undefined; | ||
"onMonth-change"?: ((value: number) => any) | undefined; | ||
"onYear-change"?: ((value: number) => any) | undefined; | ||
}, { | ||
monthPickerElement: import("vue").Ref<MonthPickerElement | null>; | ||
}, State, { | ||
selectedDateLabel(): string; | ||
isYearDecrementDisabled(): boolean | 0; | ||
isYearIncrementDisabled(): boolean | 0; | ||
}, { | ||
selectMonth(monthIndex: number): void; | ||
changeYear(value: number): void; | ||
populateInput(date: Month): void; | ||
onClear(): void; | ||
togglePopper(): void; | ||
isMonthSelected(monthIndex: number): boolean; | ||
isMonthDisabled(monthIndex: number): boolean; | ||
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "clear" | "month-change" | "year-change")[], "update:modelValue" | "clear" | "month-change" | "year-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
/** | ||
* Label for the month picker | ||
*/ | ||
label: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/** | ||
* Help text for the month picker | ||
*/ | ||
caption: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/** | ||
* Selected month and year | ||
*/ | ||
modelValue: { | ||
required: true; | ||
type: PropType<Month>; | ||
}; | ||
/** | ||
* Defines if month picker is clearable | ||
*/ | ||
clearable: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
required: false; | ||
}; | ||
/** | ||
* Placeholder of the input if no month is selected | ||
*/ | ||
placeholder: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
/** | ||
* Position of popover control | ||
*/ | ||
position: { | ||
type: PropType<Position>; | ||
default: string; | ||
validator: (pos: string) => boolean; | ||
}; | ||
/** | ||
* Minimum month and year | ||
*/ | ||
minValue: { | ||
type: PropType<Month>; | ||
default: () => {}; | ||
}; | ||
/** | ||
* Maximum month and year | ||
*/ | ||
maxValue: { | ||
type: PropType<Month>; | ||
default: () => {}; | ||
}; | ||
}>> & { | ||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; | ||
onClear?: ((...args: any[]) => any) | undefined; | ||
"onMonth-change"?: ((...args: any[]) => any) | undefined; | ||
"onYear-change"?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
caption: string; | ||
@@ -173,1 +77,18 @@ label: string; | ||
export default _default; | ||
type __VLS_WithDefaults<P, D> = { | ||
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { | ||
default: D[K]; | ||
}> : P[K]; | ||
}; | ||
type __VLS_Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; | ||
type __VLS_TypePropsToOption<T> = { | ||
[K in keyof T]-?: {} extends Pick<T, K> ? { | ||
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; | ||
} : { | ||
type: import('vue').PropType<T[K]>; | ||
required: true; | ||
}; | ||
}; |
{ | ||
"name": "@rebilly/revel", | ||
"version": "6.30.41", | ||
"version": "6.30.42", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
3186748
32979