@wernfried/daterangepicker 5.3.7 → 5.3.8
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 +12 -13
- package/dist/cjs/daterangepicker.cjs +3 -3
- package/dist/cjs/daterangepicker.cjs.map +1 -1
- package/dist/cjs/daterangepicker.min.cjs +1 -1
- package/dist/cjs/daterangepicker.min.cjs.map +1 -1
- package/dist/esm/daterangepicker.js +3 -3
- package/dist/esm/daterangepicker.js.map +1 -1
- package/dist/esm/daterangepicker.min.js +1 -1
- package/dist/esm/daterangepicker.min.js.map +1 -1
- package/dist/global/daterangepicker.js +3 -3
- package/dist/global/daterangepicker.js.map +1 -1
- package/dist/global/daterangepicker.min.js +1 -1
- package/dist/global/daterangepicker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -87,7 +87,7 @@ var DateRangePicker = (function(exports, luxon2) {
|
|
|
87
87
|
dataOptions[name] = ts.isValid && isDate ? ts : JSON.parse(item.value);
|
|
88
88
|
}
|
|
89
89
|
options = { ...dataOptions, ...options };
|
|
90
|
-
if (["string", "object"].includes(typeof options.button)) {
|
|
90
|
+
if (["string", "object"].includes(typeof options.button) && options.button != null) {
|
|
91
91
|
let button = options.button;
|
|
92
92
|
if (typeof button === "string" && document.querySelectorAll(button).length === 1)
|
|
93
93
|
button = document.querySelector(button);
|
|
@@ -178,7 +178,7 @@ var DateRangePicker = (function(exports, luxon2) {
|
|
|
178
178
|
else
|
|
179
179
|
console.error(`Option 'locale.direction' must be 'rtl' or 'ltr'`);
|
|
180
180
|
}
|
|
181
|
-
if (["string", "object"].includes(typeof options.locale.format))
|
|
181
|
+
if (["string", "object"].includes(typeof options.locale.format) && options.locale.format !== null)
|
|
182
182
|
this.locale.format = options.locale.format;
|
|
183
183
|
if (Array.isArray(options.locale.daysOfWeek)) {
|
|
184
184
|
if (options.locale.daysOfWeek.some((x) => typeof x !== "string"))
|
|
@@ -458,7 +458,7 @@ var DateRangePicker = (function(exports, luxon2) {
|
|
|
458
458
|
iterator--;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
if (!this.singleDatePicker && typeof options.ranges === "object") {
|
|
461
|
+
if (!this.singleDatePicker && typeof options.ranges === "object" && options.ranges != null) {
|
|
462
462
|
for (let range in options.ranges) {
|
|
463
463
|
let start, end;
|
|
464
464
|
if (["string", "object"].includes(typeof options.ranges[range][0])) {
|