daterangepicker-4.x 4.1.0 → 4.1.1

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
@@ -162,21 +162,21 @@ Licensed under the [MIT license](LICENSE).
162
162
  </dd>
163
163
  <dt><a href="#event_outsideClick.daterangepicker">"outsideClick.daterangepicker" (this)</a></dt>
164
164
  <dd><p>Emitted when user clicks outside the picker.
165
- Picker values is not updated, you may trigger <a href="#event_apply">apply</a> or <a href="#event_cancel">cancel</a> in your EventHandler.</p>
165
+ Picker values is not updated, you may trigger <a href="%22apply.daterangepicker%22">&quot;apply.daterangepicker&quot;</a> or <a href="%22cancel.daterangepicker%22">&quot;cancel.daterangepicker&quot;</a> in your EventHandler.</p>
166
166
  </dd>
167
167
  <dt><a href="#event_showCalendar.daterangepicker">"showCalendar.daterangepicker" (this)</a></dt>
168
168
  <dd><p>Emitted when the calendar(s) are shown.
169
- Only useful when <a href="#Options.Ranges">custom ranges</a> are used.</p>
169
+ Only useful when <a href="ranges">ranges</a> are used.</p>
170
170
  </dd>
171
171
  <dt><a href="#event_hideCalendar.daterangepicker">"hideCalendar.daterangepicker" (this)</a></dt>
172
172
  <dd><p>Emitted when the calendar(s) are hidden.
173
- Only useful when <a href="#Options.Ranges">custom ranges</a> are used.</p>
173
+ Only useful when <a href="ranges">ranges</a> are used.</p>
174
174
  </dd>
175
175
  <dt><a href="#event_dateChange.daterangepicker">"dateChange.daterangepicker" (this, side)</a></dt>
176
- <dd><p>Emitted when the date changed. Does not trigger when time is changed, use <a href="event_timeChange">timeChange</a> to handle it</p>
176
+ <dd><p>Emitted when the date changed. Does not trigger when time is changed, use <a href="%22timeChange.daterangepicker%22">&quot;timeChange.daterangepicker&quot;</a> to handle it</p>
177
177
  </dd>
178
178
  <dt><a href="#event_apply.daterangepicker">"apply.daterangepicker" (this)</a></dt>
179
- <dd><p>Emitted when the <code>Apply</code> button is clicked, or when a predefined <a href="#Options.Ranges">range</a> is clicked</p>
179
+ <dd><p>Emitted when the <code>Apply</code> button is clicked, or when a predefined <a href="ranges">ranges</a> is clicked</p>
180
180
  </dd>
181
181
  <dt><a href="#event_cancel.daterangepicker">"cancel.daterangepicker" (this)</a></dt>
182
182
  <dd><p>Emitted when the <code>Cancel</code> button is clicked</p>
@@ -231,7 +231,7 @@ Only useful when <a href="#Options.Ranges">custom ranges</a> are used.</p>
231
231
 
232
232
  ### dateRangePicker.setStartDate(startDate)
233
233
  Sets the date range picker's currently selected start date to the provided date.<br/>
234
- `startDate` must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or
234
+ `startDate` must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or
235
235
  a string matching [locale.format](locale.format).
236
236
  The value of the attached `<input>` element is also updated.
237
237
  Date value is rounded to match option [timePickerStepSize](timePickerStepSize)<br/>
@@ -258,7 +258,7 @@ drp.setStartDate(DateTime.now().startOf('hour'));
258
258
 
259
259
  ### dateRangePicker.setEndDate(endDate)
260
260
  Sets the date range picker's currently selected end date to the provided date.<br/>
261
- `endDate` be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or
261
+ `endDate` be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or
262
262
  a string matching [locale.format](locale.format).
263
263
  The value of the attached `<input>` element is also updated.
264
264
  Date value is rounded to match option [timePickerStepSize](timePickerStepSize)<br/>
@@ -320,7 +320,7 @@ Initiate a new DateRangePicker
320
320
  | Param | Type | Description |
321
321
  | --- | --- | --- |
322
322
  | options | [<code>Options</code>](#Options) | Object to configure the DateRangePicker |
323
- | callback | [<code>callback</code>](#callback) | Callback function executed when date is changed. As alternative listen to the [apply](#event_apply) event |
323
+ | callback | [<code>callback</code>](#callback) | Callback function executed when date is changed. As alternative listen to the ["apply.daterangepicker"]("apply.daterangepicker") event |
324
324
 
325
325
  <a name="event_show.daterangepicker"></a>
326
326
 
@@ -360,7 +360,7 @@ Emitted when the picker is hidden
360
360
 
361
361
  ## "outsideClick.daterangepicker" (this)
362
362
  Emitted when user clicks outside the picker.
363
- Picker values is not updated, you may trigger [apply](#event_apply) or [cancel](#event_cancel) in your EventHandler.
363
+ Picker values is not updated, you may trigger ["apply.daterangepicker"]("apply.daterangepicker") or ["cancel.daterangepicker"]("cancel.daterangepicker") in your EventHandler.
364
364
 
365
365
  **Kind**: event emitted
366
366
 
@@ -372,7 +372,7 @@ Picker values is not updated, you may trigger [apply](#event_apply) or [cancel](
372
372
 
373
373
  ## "showCalendar.daterangepicker" (this)
374
374
  Emitted when the calendar(s) are shown.
375
- Only useful when [custom ranges](#Options.Ranges) are used.
375
+ Only useful when [ranges](ranges) are used.
376
376
 
377
377
  **Kind**: event emitted
378
378
 
@@ -384,7 +384,7 @@ Only useful when [custom ranges](#Options.Ranges) are used.
384
384
 
385
385
  ## "hideCalendar.daterangepicker" (this)
386
386
  Emitted when the calendar(s) are hidden.
387
- Only useful when [custom ranges](#Options.Ranges) are used.
387
+ Only useful when [ranges](ranges) are used.
388
388
 
389
389
  **Kind**: event emitted
390
390
 
@@ -395,7 +395,7 @@ Only useful when [custom ranges](#Options.Ranges) are used.
395
395
  <a name="event_dateChange.daterangepicker"></a>
396
396
 
397
397
  ## "dateChange.daterangepicker" (this, side)
398
- Emitted when the date changed. Does not trigger when time is changed, use [timeChange](event_timeChange) to handle it
398
+ Emitted when the date changed. Does not trigger when time is changed, use ["timeChange.daterangepicker"]("timeChange.daterangepicker") to handle it
399
399
 
400
400
  **Kind**: event emitted
401
401
 
@@ -407,7 +407,7 @@ Emitted when the date changed. Does not trigger when time is changed, use [timeC
407
407
  <a name="event_apply.daterangepicker"></a>
408
408
 
409
409
  ## "apply.daterangepicker" (this)
410
- Emitted when the `Apply` button is clicked, or when a predefined [range](#Options.Ranges) is clicked
410
+ Emitted when the `Apply` button is clicked, or when a predefined [ranges](ranges) is clicked
411
411
 
412
412
  **Kind**: event emitted
413
413
 
@@ -448,13 +448,13 @@ Options for DateRangePicker
448
448
 
449
449
  | Name | Type | Default | Description |
450
450
  | --- | --- | --- | --- |
451
- | parentEl | <code>string</code> | <code>&quot;body&quot;</code> | [jQuery](external:jQuery) selector of the parent element that the date range picker will be added to |
452
- | startDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> | <code>DateTime.now().startOf(&#x27;day&#x27;)</code> | The beginning date of the initially selected date range.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).<br/> Date value is rounded to match option [timePickerStepSize](timePickerStepSize)<br/> Option [isInvalidDate](isInvalidDate) and [isInvalidTime](isInvalidTime) are not evaluated, you may set date/time which is not selectable in calendar.<br/> If the date does not fall into [and {@link maxDate](minDate`) then date is shifted and a warning is written to console. |
453
- | endDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> | <code>DateTime.now().endOf(&#x27;day&#x27;)</code> | The end date of the initially selected date range.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).<br/> Date value is rounded to match option [timePickerStepSize](timePickerStepSize)<br/> Option [isInvalidDate](isInvalidDate), [isInvalidTime](isInvalidTime) and [minSpan](minSpan), [maxSpan](maxSpan) are not evaluated, you may set date/time which is not selectable in calendar.<br/> If the date does not fall into [minDate](minDate) and [maxDate](maxDate) then date is shifted and a warning is written to console.<br/> |
454
- | minDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> \| <code>null</code> | | The earliest date a user may select or `null` for no limit.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format). |
455
- | maxDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> \| <code>null</code> | | The latest date a user may select or `null` for no limit.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format). |
456
- | minSpan | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> \| <code>number</code> \| <code>null</code> | | The maximum span between the selected start and end dates.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/> Ignored when `singleDatePicker: true` |
457
- | maxSpan | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> \| <code>number</code> \| <code>null</code> | | The minimum span between the selected start and end dates.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/> Ignored when `singleDatePicker: true` |
451
+ | parentEl | <code>string</code> | <code>&quot;body&quot;</code> | [jQuery](jQuery) selector of the parent element that the date range picker will be added to |
452
+ | startDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> | <code>DateTime.now().startOf(&#x27;day&#x27;)</code> | The beginning date of the initially selected date range.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or a string matching [Options.locale.format](Options.locale.format).<br/> Date value is rounded to match option [timePickerStepSize](timePickerStepSize)<br/> Option [Options.isInvalidDate](Options.isInvalidDate) and [Options.isInvalidTime](Options.isInvalidTime) are not evaluated, you may set date/time which is not selectable in calendar.<br/> If the date does not fall into [and {@link maxDate](Options.minDate`) then date is shifted and a warning is written to console. |
453
+ | endDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> | <code>DateTime.now().endOf(&#x27;day&#x27;)</code> | The end date of the initially selected date range.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or a string matching [Options.locale.format](Options.locale.format).<br/> Date value is rounded to match option [Options.timePickerStepSize](Options.timePickerStepSize)<br/> Option [Options.isInvalidDate](Options.isInvalidDate), [Options.isInvalidTime](Options.isInvalidTime) and [Options.minSpan](Options.minSpan), [Options.maxSpan](Options.maxSpan) are not evaluated, you may set date/time which is not selectable in calendar.<br/> If the date does not fall into [Options.minDate](Options.minDate) and [Options.maxDate](Options.maxDate) then date is shifted and a warning is written to console.<br/> |
454
+ | minDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> \| <code>null</code> | | The earliest date a user may select or `null` for no limit.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or a string matching [locale.format](locale.format). |
455
+ | maxDate | [<code>DateTime</code>](https://moment.github.io/luxon/api-docs/index.html#datetime) \| [<code>Date</code>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) \| <code>string</code> \| <code>null</code> | | The latest date a user may select or `null` for no limit.<br/> Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](ISO-8601) or a string matching [locale.format](locale.format). |
456
+ | minSpan | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> \| <code>number</code> \| <code>null</code> | | The maximum span between the selected start and end dates.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](ISO-8601) duration.<br/> Ignored when `singleDatePicker: true` |
457
+ | maxSpan | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> \| <code>number</code> \| <code>null</code> | | The minimum span between the selected start and end dates.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](ISO-8601) duration.<br/> Ignored when `singleDatePicker: true` |
458
458
  | autoApply | <code>boolean</code> | <code>false</code> | Hide the `Apply` and `Cancel` buttons, and automatically apply a new date range as soon as two dates are clicked.<br/> Only useful when `timePicker: false` |
459
459
  | singleDatePicker | <code>boolean</code> | <code>false</code> | Show only a single calendar to choose one date, instead of a range picker with two calendars.<br/> The start and end dates provided to your callback will be the same single date chosen. |
460
460
  | showDropdowns | <code>boolean</code> | <code>false</code> | Show year and month select boxes above calendars to jump to a specific month and year |
@@ -464,7 +464,7 @@ Options for DateRangePicker
464
464
  | showISOWeekNumbers | <code>boolean</code> | <code>false</code> | Show **ISO** week numbers at the start of each week on the calendars |
465
465
  | timePicker | <code>boolean</code> | <code>false</code> | Adds select boxes to choose times in addition to dates |
466
466
  | timePicker24Hour | <code>boolean</code> | <code>false</code> | Use 24-hour instead of 12-hour times, removing the AM/PM selection |
467
- | timePickerStepSize | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> | <code>Duration.fromObject({minutes:1})</code> | Set the time picker step size.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/> Valid values are 1,2,3,4,5,6,10,12,15,20,30 for `Duration.fromObject({seconds: ...})` and `Duration.fromObject({minutes: ...})` and 1,2,3,4,6,(8,12) for `Duration.fromObject({hours: ...})`.<br/> Duration must be greater than [minSpan](minSpan) and smaller than [maxSpan](maxSpan).<br/> For example `timePickerStepSize: 600` will disable time picker seconds and time picker minutes are set to step size of 10 Minutes.<br/> Overwrites #timePickerIncrement and #timePickerSeconds |
467
+ | timePickerStepSize | [<code>Duration</code>](https://moment.github.io/luxon/api-docs/index.html#duration) \| <code>string</code> | <code>Duration.fromObject({minutes:1})</code> | Set the time picker step size.<br/> Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](ISO-8601) duration.<br/> Valid values are 1,2,3,4,5,6,10,12,15,20,30 for `Duration.fromObject({seconds: ...})` and `Duration.fromObject({minutes: ...})` and 1,2,3,4,6,(8,12) for `Duration.fromObject({hours: ...})`.<br/> Duration must be greater than [minSpan](minSpan) and smaller than [maxSpan](maxSpan).<br/> For example `timePickerStepSize: 600` will disable time picker seconds and time picker minutes are set to step size of 10 Minutes.<br/> Overwrites #timePickerIncrement and #timePickerSeconds |
468
468
  | timePickerSeconds | <code>boolean</code> | <code>boolean</code> | **Deprecated**, use [timePickerStepSize](timePickerStepSize)<br/>Show seconds in the timePicker |
469
469
  | timePickerIncrement | <code>boolean</code> | <code>1</code> | **Deprecated**, use [timePickerStepSize](timePickerStepSize)<br/>Increment of the minutes selection list for times |
470
470
  | autoUpdateInput | <code>boolean</code> | <code>true</code> | Indicates whether the date range picker should automatically update the value of the `<input>` element it's attached to at initialization and when the selected dates change.<br/>Value is reverted when use clicks on `Cancel`. |
@@ -37,28 +37,28 @@
37
37
  /**
38
38
  * Options for DateRangePicker
39
39
  * @typedef Options
40
- * @property {string} parentEl=body - [jQuery](external:jQuery) selector of the parent element that the date range picker will be added to
40
+ * @property {string} parentEl=body - {@link jQuery} selector of the parent element that the date range picker will be added to
41
41
 
42
42
  * @property {external:DateTime|external:Date|string} startDate=DateTime.now().startOf('day') - The beginning date of the initially selected date range.<br/>
43
- * Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).<br/>
43
+ * Must be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or a string matching {@link Options.locale.format}.<br/>
44
44
  * Date value is rounded to match option {@link timePickerStepSize}<br/>
45
- * Option {@link isInvalidDate} and {@link isInvalidTime} are not evaluated, you may set date/time which is not selectable in calendar.<br/>
46
- * If the date does not fall into {@link minDate` and {@link maxDate} then date is shifted and a warning is written to console.
45
+ * Option {@link Options.isInvalidDate} and {@link Options.isInvalidTime} are not evaluated, you may set date/time which is not selectable in calendar.<br/>
46
+ * If the date does not fall into {@link Options.minDate` and {@link maxDate} then date is shifted and a warning is written to console.
47
47
  * @property {external:DateTime|external:Date|string} endDate=DateTime.now().endOf('day') - The end date of the initially selected date range.<br/>
48
- * Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).<br/>
49
- * Date value is rounded to match option {@link timePickerStepSize}<br/>
50
- * Option {@link isInvalidDate}, {@link isInvalidTime} and {@link minSpan}, {@link maxSpan} are not evaluated, you may set date/time which is not selectable in calendar.<br/>
51
- * If the date does not fall into {@link minDate} and {@link maxDate} then date is shifted and a warning is written to console.<br/>
48
+ * Must be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or a string matching {@link Options.locale.format}.<br/>
49
+ * Date value is rounded to match option {@link Options.timePickerStepSize}<br/>
50
+ * Option {@link Options.isInvalidDate}, {@link Options.isInvalidTime} and {@link Options.minSpan}, {@link Options.maxSpan} are not evaluated, you may set date/time which is not selectable in calendar.<br/>
51
+ * If the date does not fall into {@link Options.minDate} and {@link Options.maxDate} then date is shifted and a warning is written to console.<br/>
52
52
 
53
53
  * @property {external:DateTime|external:Date|string|null} minDate - The earliest date a user may select or `null` for no limit.<br/>
54
- * Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).
54
+ * Must be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or a string matching {@link locale.format}.
55
55
  * @property {external:DateTime|external:Date|string|null} maxDate - The latest date a user may select or `null` for no limit.<br/>
56
- * Must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or a string matching [locale.format](#Locale.format).
56
+ * Must be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or a string matching {@link locale.format}.
57
57
  * @property {external:Duration|string|number|null} minSpan - The maximum span between the selected start and end dates.<br/>
58
- * Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/>
58
+ * Must be a `luxon.Duration` or number of seconds or a string according to {@link ISO-8601} duration.<br/>
59
59
  * Ignored when `singleDatePicker: true`
60
60
  * @property {external:Duration|string|number|null} maxSpan - The minimum span between the selected start and end dates.<br/>
61
- * Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/>
61
+ * Must be a `luxon.Duration` or number of seconds or a string according to {@link ISO-8601} duration.<br/>
62
62
  * Ignored when `singleDatePicker: true`
63
63
 
64
64
  * @property {boolean} autoApply=false - Hide the `Apply` and `Cancel` buttons, and automatically apply a new date range as soon as two dates are clicked.<br/>
@@ -74,7 +74,7 @@
74
74
  * @property {boolean} timePicker=false - Adds select boxes to choose times in addition to dates
75
75
  * @property {boolean} timePicker24Hour=false - Use 24-hour instead of 12-hour times, removing the AM/PM selection
76
76
  * @property {external:Duration|string} timePickerStepSize=Duration.fromObject({minutes:1}) - Set the time picker step size.<br/>
77
- * Must be a `luxon.Duration` or number of seconds or a string according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) duration.<br/>
77
+ * Must be a `luxon.Duration` or number of seconds or a string according to {@link ISO-8601} duration.<br/>
78
78
  * Valid values are 1,2,3,4,5,6,10,12,15,20,30 for `Duration.fromObject({seconds: ...})` and `Duration.fromObject({minutes: ...})`
79
79
  * and 1,2,3,4,6,(8,12) for `Duration.fromObject({hours: ...})`.<br/>
80
80
  * Duration must be greater than {@link minSpan} and smaller than {@link maxSpan}.<br/>
@@ -678,7 +678,7 @@
678
678
  constructor: DateRangePicker,
679
679
  /**
680
680
  * Sets the date range picker's currently selected start date to the provided date.<br/>
681
- * `startDate` must be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or
681
+ * `startDate` must be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or
682
682
  * a string matching {@link locale.format}.
683
683
  * The value of the attached `<input>` element is also updated.
684
684
  * Date value is rounded to match option {@link timePickerStepSize}<br/>
@@ -726,7 +726,7 @@
726
726
 
727
727
  /**
728
728
  * Sets the date range picker's currently selected end date to the provided date.<br/>
729
- * `endDate` be a `luxon.DateTime` or `Date` or `string` according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or
729
+ * `endDate` be a `luxon.DateTime` or `Date` or `string` according to {@link ISO-8601} or
730
730
  * a string matching {@link locale.format}.
731
731
  * The value of the attached `<input>` element is also updated.
732
732
  * Date value is rounded to match option {@link timePickerStepSize}<br/>
@@ -1766,7 +1766,7 @@
1766
1766
 
1767
1767
  /**
1768
1768
  * Emitted when user clicks outside the picker.
1769
- * Picker values is not updated, you may trigger [apply](#event_apply) or [cancel](#event_cancel) in your EventHandler.
1769
+ * Picker values is not updated, you may trigger {@link "apply.daterangepicker"} or {@link "cancel.daterangepicker"} in your EventHandler.
1770
1770
  * @event
1771
1771
  * @name "outsideClick.daterangepicker"
1772
1772
  * @param {DateRangePicker} this - The daterangepicker object
@@ -1784,7 +1784,7 @@
1784
1784
  this.move();
1785
1785
  /**
1786
1786
  * Emitted when the calendar(s) are shown.
1787
- * Only useful when [custom ranges](#Options.Ranges) are used.
1787
+ * Only useful when {@link ranges} are used.
1788
1788
  * @event
1789
1789
  * @name "showCalendar.daterangepicker"
1790
1790
  * @param {DateRangePicker} this - The daterangepicker object
@@ -1801,7 +1801,7 @@
1801
1801
  this.container.removeClass('show-calendar');
1802
1802
  /**
1803
1803
  * Emitted when the calendar(s) are hidden.
1804
- * Only useful when [custom ranges](#Options.Ranges) are used.
1804
+ * Only useful when {@link ranges} are used.
1805
1805
  * @event
1806
1806
  * @name "hideCalendar.daterangepicker"
1807
1807
  * @param {DateRangePicker} this - The daterangepicker object
@@ -2069,7 +2069,7 @@
2069
2069
  this.updateElement();
2070
2070
 
2071
2071
  /**
2072
- * Emitted when the date changed. Does not trigger when time is changed, use [timeChange](event_timeChange) to handle it
2072
+ * Emitted when the date changed. Does not trigger when time is changed, use {@link "timeChange.daterangepicker"} to handle it
2073
2073
  * @event
2074
2074
  * @name "dateChange.daterangepicker"
2075
2075
  * @param {DateRangePicker} this - The daterangepicker object
@@ -2122,7 +2122,7 @@
2122
2122
  clickApply: function (e) {
2123
2123
  this.hide();
2124
2124
  /**
2125
- * Emitted when the `Apply` button is clicked, or when a predefined [range](#Options.Ranges) is clicked
2125
+ * Emitted when the `Apply` button is clicked, or when a predefined {@link ranges} is clicked
2126
2126
  * @event
2127
2127
  * @name "apply.daterangepicker"
2128
2128
  * @param {DateRangePicker} this - The daterangepicker object
@@ -2359,7 +2359,7 @@
2359
2359
  * @name DateRangePicker.daterangepicker
2360
2360
  * @function
2361
2361
  * @param {Options} options - Object to configure the DateRangePicker
2362
- * @param {callback} callback - Callback function executed when date is changed. As alternative listen to the [apply](#event_apply) event
2362
+ * @param {callback} callback - Callback function executed when date is changed. As alternative listen to the {@link "apply.daterangepicker"} event
2363
2363
  * @returns DateRangePicker
2364
2364
  */
2365
2365
  $.fn.daterangepicker = function (options, callback) {
@@ -2393,4 +2393,6 @@
2393
2393
  /** @external Date
2394
2394
  @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date|Date} */
2395
2395
 
2396
+ /** @external ISO-8601
2397
+ @see {@link https://en.wikipedia.org/wiki/ISO_8601} */
2396
2398
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daterangepicker-4.x",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Date range picker component for Bootstrap",
5
5
  "main": "daterangepicker.js",
6
6
  "style": "daterangepicker.css",