sf-i-events 1.0.765 → 1.0.766
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/package.json +1 -1
- package/sf-i-events.js +18 -12
- package/src/sf-i-events.ts +12 -12
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -6503,15 +6503,19 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6503
6503
|
(_g = this._SfCustomContainer.querySelector('#button-year-to-date')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', () => {
|
|
6504
6504
|
this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6505
6505
|
this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6506
|
-
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
6507
|
-
|
|
6506
|
+
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6507
|
+
;
|
|
6508
|
+
this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6509
|
+
;
|
|
6508
6510
|
this.processDateSelection(this._SfCustomContainer);
|
|
6509
6511
|
});
|
|
6510
6512
|
(_h = this._SfCustomContainer.querySelector('#button-year-to-date-mobile')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', () => {
|
|
6511
6513
|
this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6512
6514
|
this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6513
|
-
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
6514
|
-
|
|
6515
|
+
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6516
|
+
;
|
|
6517
|
+
this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6518
|
+
;
|
|
6515
6519
|
this.processDateSelection(this._SfCustomContainer);
|
|
6516
6520
|
});
|
|
6517
6521
|
(_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
|
|
@@ -6545,7 +6549,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6545
6549
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6546
6550
|
}
|
|
6547
6551
|
else {
|
|
6548
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
6552
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6549
6553
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
6550
6554
|
}
|
|
6551
6555
|
this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
|
|
@@ -6571,7 +6575,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6571
6575
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6572
6576
|
}
|
|
6573
6577
|
else {
|
|
6574
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
6578
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6575
6579
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
6576
6580
|
}
|
|
6577
6581
|
this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
|
|
@@ -6678,15 +6682,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6678
6682
|
(_g = this._SfCustomContainer.querySelector('#button-year-to-date')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', () => {
|
|
6679
6683
|
this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6680
6684
|
this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6681
|
-
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
6682
|
-
this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
6685
|
+
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6686
|
+
this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6683
6687
|
this.processDateSelectionViewer(this._SfCustomContainer);
|
|
6684
6688
|
});
|
|
6685
6689
|
(_h = this._SfCustomContainer.querySelector('#button-year-to-date-mobile')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', () => {
|
|
6686
6690
|
this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6687
6691
|
this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
6688
|
-
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
6689
|
-
|
|
6692
|
+
this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6693
|
+
;
|
|
6694
|
+
this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
6695
|
+
;
|
|
6690
6696
|
this.processDateSelectionViewer(this._SfCustomContainer);
|
|
6691
6697
|
});
|
|
6692
6698
|
(_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
|
|
@@ -6720,7 +6726,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6720
6726
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6721
6727
|
}
|
|
6722
6728
|
else {
|
|
6723
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
6729
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6724
6730
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
6725
6731
|
}
|
|
6726
6732
|
this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
|
|
@@ -6746,7 +6752,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6746
6752
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6747
6753
|
}
|
|
6748
6754
|
else {
|
|
6749
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
6755
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
6750
6756
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
6751
6757
|
}
|
|
6752
6758
|
this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
|
package/src/sf-i-events.ts
CHANGED
|
@@ -9499,16 +9499,16 @@ export class SfIEvents extends LitElement {
|
|
|
9499
9499
|
(this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date')?.addEventListener('click', () => {
|
|
9500
9500
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9501
9501
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9502
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9503
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9502
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9503
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9504
9504
|
this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9505
9505
|
});
|
|
9506
9506
|
|
|
9507
9507
|
(this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date-mobile')?.addEventListener('click', () => {
|
|
9508
9508
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9509
9509
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9510
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9511
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9510
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9511
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9512
9512
|
this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9513
9513
|
});
|
|
9514
9514
|
|
|
@@ -9550,7 +9550,7 @@ export class SfIEvents extends LitElement {
|
|
|
9550
9550
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9551
9551
|
|
|
9552
9552
|
} else {
|
|
9553
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
9553
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9554
9554
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
9555
9555
|
}
|
|
9556
9556
|
|
|
@@ -9583,7 +9583,7 @@ export class SfIEvents extends LitElement {
|
|
|
9583
9583
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9584
9584
|
|
|
9585
9585
|
} else {
|
|
9586
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
9586
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9587
9587
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
9588
9588
|
}
|
|
9589
9589
|
|
|
@@ -9711,16 +9711,16 @@ export class SfIEvents extends LitElement {
|
|
|
9711
9711
|
(this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date')?.addEventListener('click', () => {
|
|
9712
9712
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9713
9713
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9714
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
9715
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
|
|
9714
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" +(new Date().getDate())).slice(-2);
|
|
9715
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
|
|
9716
9716
|
this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
|
|
9717
9717
|
});
|
|
9718
9718
|
|
|
9719
9719
|
(this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date-mobile')?.addEventListener('click', () => {
|
|
9720
9720
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9721
9721
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
|
|
9722
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9723
|
-
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate())
|
|
9722
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9723
|
+
((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
|
|
9724
9724
|
this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
|
|
9725
9725
|
});
|
|
9726
9726
|
|
|
@@ -9762,7 +9762,7 @@ export class SfIEvents extends LitElement {
|
|
|
9762
9762
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9763
9763
|
|
|
9764
9764
|
} else {
|
|
9765
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
9765
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9766
9766
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
9767
9767
|
}
|
|
9768
9768
|
|
|
@@ -9795,7 +9795,7 @@ export class SfIEvents extends LitElement {
|
|
|
9795
9795
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9796
9796
|
|
|
9797
9797
|
} else {
|
|
9798
|
-
startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
|
|
9798
|
+
startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
|
|
9799
9799
|
endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
|
|
9800
9800
|
}
|
|
9801
9801
|
|