+1
-1
| { | ||
| "name": "anytime", | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "description": "A date/time picker", | ||
@@ -5,0 +5,0 @@ "author": "Ben Gourley", |
+1
-1
@@ -28,3 +28,3 @@ # anytime | ||
| ## Licence | ||
| Copyright (c) 2015, Ben Gourley | ||
| Copyright (c) 2014 - present, Ben Gourley | ||
@@ -31,0 +31,0 @@ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. |
+12
-14
@@ -1,2 +0,2 @@ | ||
| interface AnytimeOptions { | ||
| export interface AnytimeOptions { | ||
| /** | ||
@@ -9,3 +9,3 @@ * An input whose value should update when the picker’s value changes. | ||
| /** | ||
| * An element that the picker will orient itself near when displayed. | ||
| * An element that the picker will orient itself near when displayed. | ||
| * If options.input is not provided, this option is required. | ||
@@ -35,3 +35,3 @@ * @default options.input | ||
| /** | ||
| * By default anytime will show every minute. | ||
| * By default anytime will show every minute. | ||
| * Set this to 5 or 15 etc to show fewer options at greater intervals. | ||
@@ -55,3 +55,3 @@ * @default 1 | ||
| /** | ||
| * Value to indicate which month/year to display when picker is first shown. | ||
| * Value to indicate which month/year to display when picker is first shown. | ||
| * If options.initialValue is selected, that will take precedence. | ||
@@ -69,4 +69,4 @@ * @default new Date() | ||
| /** | ||
| * By default anytime uses an instance of moment in the browser’s timezone with the English locale. | ||
| * If you want to use a different language or a different timezone, you must load in a locale to moment | ||
| * By default anytime uses an instance of moment in the browser’s timezone with the English locale. | ||
| * If you want to use a different language or a different timezone, you must load in a locale to moment | ||
| * and/or pass in a version of moment-timezone. | ||
@@ -79,3 +79,3 @@ * @type moment or moment-timezone | ||
| /** | ||
| * moment-style timezone string (e.g. 'Europe/London'). | ||
| * moment-style timezone string (e.g. 'Europe/London'). | ||
| * Only functions if moment-timezone is provided as options.moment! | ||
@@ -134,3 +134,3 @@ * @default Browser’s timezone | ||
| interface Anytime { | ||
| export interface Anytime { | ||
| /** | ||
@@ -169,7 +169,7 @@ * Instantiates and returns a new picker with the provided options. | ||
| * Update the internal value of the picker. This will also update the related input (if there is one). | ||
| * @param {function} fn A function where you can manipulate the internal moment object. | ||
| * @param {function} fn A function where you can manipulate the internal moment object. | ||
| * The moment object must be returned. | ||
| */ | ||
| update(fn: (m: any) => any): void; | ||
| /** | ||
@@ -188,6 +188,4 @@ * When a value is selected (or cleared) with the picker, the change event will emit with the new value. | ||
| declare var anytime: Anytime; | ||
| export var anytime: Anytime; | ||
| declare module "anytime" { | ||
| export = anytime; | ||
| } | ||
| export default anytime; |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
35374
-0.04%829
-0.24%