daterangepicker-4.x 4.1.4 → 4.1.6
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 +4 -4
- package/daterangepicker.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -287,7 +287,7 @@ drp.setEndDate('2025-03-28T18:30:00');
|
|
|
287
287
|
<a name="DateRangePicker+setPeriod"></a>
|
|
288
288
|
|
|
289
289
|
### dateRangePicker.setPeriod(startDate, endDate)
|
|
290
|
-
Shortcut for [setStartDate](#setStartDate) and [setEndDate](#setEndDate)
|
|
290
|
+
Shortcut for [setStartDate](#DateRangePicker+setStartDate) and [setEndDate](#DateRangePicker+setEndDate)
|
|
291
291
|
|
|
292
292
|
**Kind**: instance method of [<code>DateRangePicker</code>](#DateRangePicker)
|
|
293
293
|
**Throws**:
|
|
@@ -310,7 +310,7 @@ drp.setPeriod(DateTime.now().startOf('week'), DateTime.now().startOf('week').plu
|
|
|
310
310
|
|
|
311
311
|
### dateRangePicker.updateView()
|
|
312
312
|
Updates the picker when calendar is initiated or any date has been selected.
|
|
313
|
-
Could be useful after running [setStartDate](#setStartDate) or [setEndDate](#setEndDate)
|
|
313
|
+
Could be useful after running [setStartDate](#DateRangePicker+setStartDate) or [setEndDate](#DateRangePicker+setEndDate)
|
|
314
314
|
|
|
315
315
|
**Kind**: instance method of [<code>DateRangePicker</code>](#DateRangePicker)
|
|
316
316
|
<a name="DateRangePicker+outsideClick"></a>
|
|
@@ -488,8 +488,8 @@ Options for DateRangePicker
|
|
|
488
488
|
| 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`. |
|
|
489
489
|
| onOutsideClick | <code>string</code> | <code>"none"</code> | Defines what picker shall do when user clicks outside the calendar. `'apply'` or `'cancel'`. Event [onOutsideClick.daterangepicker](#event_outsideClick.daterangepicker) is always emitted. |
|
|
490
490
|
| linkedCalendars | <code>boolean</code> | <code>true</code> | When enabled, the two calendars displayed will always be for two sequential months (i.e. January and February), and both will be advanced when clicking the left or right arrows above the calendars.<br/> When disabled, the two calendars can be individually advanced and display any month/year |
|
|
491
|
-
| isInvalidDate | <code>function</code> | <code>false</code> | A function that is passed each date in the two calendars before they are displayed,<br/> and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/> Signature: `isInvalidDate(date)` Function has no effect on date values set by `startDate`, `endDate`, `ranges`, [
|
|
492
|
-
| isInvalidTime | <code>function</code> | <code>false</code> | A function that is passed each hour/minute/second/am-pm in the two calendars before they are displayed,<br/> and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/> Signature: `isInvalidDate(time, side, unit)`<br/> `side` is 'start' or 'end' or `null` for `singleDatePicker = true`<br/> `unit` is `'hour'`, `'minute'`, `'second'` or `'ampm'`<br/> Function has no effect on time values set by `startDate`, `endDate`, `ranges`, [setStartDate](#setStartDate), [setEndDate](#setEndDate).<br/> Ensure that your function returns `false` for at least one item. Otherwise the calender is not rendered.<br/> |
|
|
491
|
+
| isInvalidDate | <code>function</code> | <code>false</code> | A function that is passed each date in the two calendars before they are displayed,<br/> and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/> Signature: `isInvalidDate(date)` Function has no effect on date values set by `startDate`, `endDate`, `ranges`, [setStartDate](#DateRangePicker+setStartDate), [setEndDate](#DateRangePicker+setEndDate). |
|
|
492
|
+
| isInvalidTime | <code>function</code> | <code>false</code> | A function that is passed each hour/minute/second/am-pm in the two calendars before they are displayed,<br/> and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/> Signature: `isInvalidDate(time, side, unit)`<br/> `side` is 'start' or 'end' or `null` for `singleDatePicker = true`<br/> `unit` is `'hour'`, `'minute'`, `'second'` or `'ampm'`<br/> Function has no effect on time values set by `startDate`, `endDate`, `ranges`, [setStartDate](#DateRangePicker+setStartDate), [setEndDate](#DateRangePicker+setEndDate).<br/> Ensure that your function returns `false` for at least one item. Otherwise the calender is not rendered.<br/> |
|
|
493
493
|
| isCustomDate | <code>function</code> | <code>false</code> | A function that is passed each date in the two calendars before they are displayed, and may return a string or array of CSS class names to apply to that date's calendar cell.<br/> Signature: `isCustomDate(date)` |
|
|
494
494
|
| applyButtonClasses | <code>string</code> | <code>"btn-primary"</code> | CSS class names that will be added only to the apply button |
|
|
495
495
|
| cancelButtonClasses | <code>string</code> | <code>"btn-default"</code> | CSS class names that will be added only to the cancel button |
|
package/daterangepicker.js
CHANGED
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
* @property {function} isInvalidDate=false - A function that is passed each date in the two calendars before they are displayed,<br/>
|
|
94
94
|
* and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/>
|
|
95
95
|
* Signature: `isInvalidDate(date)`
|
|
96
|
-
* Function has no effect on date values set by `startDate`, `endDate`, `ranges`, {@link #setStartDate}, {@link #setEndDate|setEndDate}.
|
|
96
|
+
* Function has no effect on date values set by `startDate`, `endDate`, `ranges`, {@link #DateRangePicker+setStartDate|setStartDate}, {@link #DateRangePicker+setEndDate|setEndDate}.
|
|
97
97
|
* @property {function} isInvalidTime=false - A function that is passed each hour/minute/second/am-pm in the two calendars before they are displayed,<br/>
|
|
98
98
|
* and may return `true` or `false` to indicate whether that date should be available for selection or not.<br/>
|
|
99
99
|
* Signature: `isInvalidDate(time, side, unit)`<br/>
|
|
100
100
|
* `side` is 'start' or 'end' or `null` for `singleDatePicker = true`<br/>
|
|
101
101
|
* `unit` is `'hour'`, `'minute'`, `'second'` or `'ampm'`<br/>
|
|
102
|
-
* Function has no effect on time values set by `startDate`, `endDate`, `ranges`, {@link #setStartDate|setStartDate}, {@link #setEndDate|setEndDate}.<br/>
|
|
102
|
+
* Function has no effect on time values set by `startDate`, `endDate`, `ranges`, {@link #DateRangePicker+setStartDate|setStartDate}, {@link #DateRangePicker+setEndDate|setEndDate}.<br/>
|
|
103
103
|
* Ensure that your function returns `false` for at least one item. Otherwise the calender is not rendered.<br/>
|
|
104
104
|
* @property {function} isCustomDate=false - A function that is passed each date in the two calendars before they are displayed,
|
|
105
105
|
* and may return a string or array of CSS class names to apply to that date's calendar cell.<br/>
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
},
|
|
790
790
|
|
|
791
791
|
/**
|
|
792
|
-
* Shortcut for {@link #setStartDate|setStartDate} and {@link #setEndDate|setEndDate}
|
|
792
|
+
* Shortcut for {@link #DateRangePicker+setStartDate|setStartDate} and {@link #DateRangePicker+setEndDate|setEndDate}
|
|
793
793
|
* @param {external:DateTime|external:Date|string} startDate - startDate to be set
|
|
794
794
|
* @param {external:DateTime|external:Date|string} endDate - endDate to be set
|
|
795
795
|
* @throws `RangeError` for invalid date values.
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
|
|
984
984
|
/**
|
|
985
985
|
* Updates the picker when calendar is initiated or any date has been selected.
|
|
986
|
-
* Could be useful after running {@link #setStartDate|setStartDate} or {@link #setEndDate|setEndDate}
|
|
986
|
+
* Could be useful after running {@link #DateRangePicker+setStartDate|setStartDate} or {@link #DateRangePicker+setEndDate|setEndDate}
|
|
987
987
|
*/
|
|
988
988
|
updateView: function () {
|
|
989
989
|
if (this.timePicker) {
|