@websy/websy-designs 1.4.35 → 1.4.36
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.
|
@@ -1351,10 +1351,14 @@ class WebsyDatePicker {
|
|
|
1351
1351
|
let start = list[0]
|
|
1352
1352
|
let end = ''
|
|
1353
1353
|
if (this.customRangeSelected === true && this.isContinuousRange === true) {
|
|
1354
|
-
|
|
1354
|
+
if (list.length > 0) {
|
|
1355
|
+
end = ` - ${list[list.length - 1]}`
|
|
1356
|
+
}
|
|
1355
1357
|
if (this.options.mode === 'hour') {
|
|
1356
1358
|
start = this.options.hours[start].text
|
|
1357
|
-
|
|
1359
|
+
if (list.length > 0) {
|
|
1360
|
+
end = `${this.customRangeSelected === true ? ' - ' : ''}${this.options.hours[list[list.length - 1]].text}`
|
|
1361
|
+
}
|
|
1358
1362
|
}
|
|
1359
1363
|
}
|
|
1360
1364
|
else {
|
|
@@ -7488,7 +7492,9 @@ else {
|
|
|
7488
7492
|
this.longestBottom = this.options.data.bottom.max.toString()
|
|
7489
7493
|
if (this.options.data.bottom.formatter) {
|
|
7490
7494
|
this.longestBottom = this.options.data.bottom.formatter(this.options.data.bottom.max).toString()
|
|
7491
|
-
|
|
7495
|
+
if (this.options.data.bottom.data && this.options.data.bottom.data[0] && this.options.data.bottom.data[0].value) {
|
|
7496
|
+
firstBottom = this.options.data.bottom.formatter(this.options.data.bottom.data[0].value).toString()
|
|
7497
|
+
}
|
|
7492
7498
|
}
|
|
7493
7499
|
else {
|
|
7494
7500
|
if (this.options.data.bottom.scale === 'Time') {
|
|
@@ -7498,7 +7504,9 @@ else {
|
|
|
7498
7504
|
else {
|
|
7499
7505
|
this.longestBottom = this.options.data.bottom.data.reduce((a, b) => a.length > b.value.length ? a : b.value, '')
|
|
7500
7506
|
// firstBottom = (this.options.data.bottom.data[0] || [{value: ''}]).value
|
|
7501
|
-
|
|
7507
|
+
if (this.options.data.bottom.data && this.options.data.bottom.data[0] && this.options.data.bottom.data[0].value) {
|
|
7508
|
+
firstBottom = this.options.data.bottom.data[0].value
|
|
7509
|
+
}
|
|
7502
7510
|
}
|
|
7503
7511
|
}
|
|
7504
7512
|
}
|
package/dist/websy-designs.js
CHANGED
|
@@ -1508,11 +1508,16 @@ var WebsyDatePicker = /*#__PURE__*/function () {
|
|
|
1508
1508
|
var end = '';
|
|
1509
1509
|
|
|
1510
1510
|
if (this.customRangeSelected === true && this.isContinuousRange === true) {
|
|
1511
|
-
|
|
1511
|
+
if (list.length > 0) {
|
|
1512
|
+
end = " - ".concat(list[list.length - 1]);
|
|
1513
|
+
}
|
|
1512
1514
|
|
|
1513
1515
|
if (this.options.mode === 'hour') {
|
|
1514
1516
|
start = this.options.hours[start].text;
|
|
1515
|
-
|
|
1517
|
+
|
|
1518
|
+
if (list.length > 0) {
|
|
1519
|
+
end = "".concat(this.customRangeSelected === true ? ' - ' : '').concat(this.options.hours[list[list.length - 1]].text);
|
|
1520
|
+
}
|
|
1516
1521
|
}
|
|
1517
1522
|
} else {
|
|
1518
1523
|
if (list.length > 1) {
|
|
@@ -8264,7 +8269,10 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8264
8269
|
|
|
8265
8270
|
if (this.options.data.bottom.formatter) {
|
|
8266
8271
|
this.longestBottom = this.options.data.bottom.formatter(this.options.data.bottom.max).toString();
|
|
8267
|
-
|
|
8272
|
+
|
|
8273
|
+
if (this.options.data.bottom.data && this.options.data.bottom.data[0] && this.options.data.bottom.data[0].value) {
|
|
8274
|
+
firstBottom = this.options.data.bottom.formatter(this.options.data.bottom.data[0].value).toString();
|
|
8275
|
+
}
|
|
8268
8276
|
} else {
|
|
8269
8277
|
if (this.options.data.bottom.scale === 'Time') {
|
|
8270
8278
|
this.longestBottom = '01/01/2000';
|
|
@@ -8274,7 +8282,9 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8274
8282
|
return a.length > b.value.length ? a : b.value;
|
|
8275
8283
|
}, ''); // firstBottom = (this.options.data.bottom.data[0] || [{value: ''}]).value
|
|
8276
8284
|
|
|
8277
|
-
|
|
8285
|
+
if (this.options.data.bottom.data && this.options.data.bottom.data[0] && this.options.data.bottom.data[0].value) {
|
|
8286
|
+
firstBottom = this.options.data.bottom.data[0].value;
|
|
8287
|
+
}
|
|
8278
8288
|
}
|
|
8279
8289
|
}
|
|
8280
8290
|
}
|