@types/lightpick
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Lightpick 1.3 | ||
// Type definitions for Lightpick 1.4 | ||
// Project: https://wakirin.github.io/Lightpick | ||
@@ -243,2 +243,8 @@ // Definitions by: Adam Kwiatek <https://github.com/akwiatek> | ||
/** | ||
* Determines the weekday display style. | ||
* Two weekdays may have the same narrow style for some locales (e.g. Tuesday's narrow style is also T). | ||
*/ | ||
weekdayStyle?: Options.WeekdayStyle; | ||
/** | ||
* Dropdown selections for years, months. Can be false for disable both dropdowns. | ||
@@ -266,2 +272,12 @@ */ | ||
onError?: Options.OnErrorFn; | ||
/** | ||
* Triggered when the months select is changed. | ||
*/ | ||
onMonthsChange?: Options.OnMonthsChangeFn; | ||
/** | ||
* Triggered when the years select is changed. | ||
*/ | ||
onYearsChange?: Options.OnYearsChangeFn; | ||
} | ||
@@ -272,24 +288,17 @@ | ||
enum DayOfWeek { | ||
Monday = 1, | ||
Tuesday, | ||
Wednesday, | ||
Thursday, | ||
Friday, | ||
Saturday, | ||
Sunday, | ||
} | ||
type DayOfWeek = 1 | 2 | 3 | 4 | 5 | 6 | 7; | ||
enum Orientation { | ||
Auto = 'auto', | ||
Left = 'left', | ||
Right = 'right', | ||
Top = 'top', | ||
Bottom = 'bottom', | ||
TopLeft = 'top left', | ||
TopRight = 'top right', | ||
BottomLeft = 'bottom left', | ||
BottomRight = 'bottom right', | ||
} | ||
type Orientation = | ||
| 'auto' | ||
| 'left' | ||
| 'right' | ||
| 'top' | ||
| 'bottom' | ||
| 'top left' | ||
| 'top right' | ||
| 'bottom left' | ||
| 'bottom right'; | ||
type WeekdayStyle = 'long' | 'short' | 'narrow'; | ||
interface Dropdowns { | ||
@@ -387,3 +396,17 @@ /** | ||
} | ||
/** | ||
* Callback function for when the months select is changed. | ||
*/ | ||
interface OnMonthsChangeFn { | ||
(this: Lightpick, month: number): void; | ||
} | ||
/** | ||
* Callback function for when the years select is changed. | ||
*/ | ||
interface OnYearsChangeFn { | ||
(this: Lightpick, year: number): void; | ||
} | ||
} | ||
} |
{ | ||
"name": "@types/lightpick", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "TypeScript definitions for Lightpick", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "288db327783a82630f366651fded51dbdaceb7dfedba0e7f464e28ceefc42abc", | ||
"typesPublisherContentHash": "c2ee92d0437cc5313e20f03d026849bd55602f822e1d05fa80891e2c6b032a8d", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 06 Sep 2019 22:32:57 GMT | ||
* Last updated: Fri, 25 Oct 2019 20:19:07 GMT | ||
* Dependencies: @types/moment | ||
@@ -14,0 +14,0 @@ * Global values: Lightpick |
12367
314