sf-i-events 1.0.675 → 1.0.676

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.675",
4
+ "version": "1.0.676",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -5521,7 +5521,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5521
5521
  const target = parseInt(ev.target.id.split('-')[2]);
5522
5522
  const dateResult = this.calculateStartAndEndDateOfStream(target);
5523
5523
  const monthResult = this.calculateMonthFromIndex(target);
5524
- console.log('monthResult', monthResult);
5524
+ // console.log('monthResult', monthResult);
5525
5525
  //console.log('dateresult', dateResult);
5526
5526
  this.currentColumnIndex = target + "";
5527
5527
  if (dateResult != null) {
@@ -5533,8 +5533,9 @@ let SfIEvents = class SfIEvents extends LitElement {
5533
5533
  (_b = this._SfStreamContainer.querySelector('#stream-month-' + i + '-mobile')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', async (ev) => {
5534
5534
  const target = parseInt(ev.target.id.split('-')[2]);
5535
5535
  const dateResult = this.calculateStartAndEndDateOfStream(target);
5536
+ const monthResult = this.calculateMonthFromIndex(target);
5536
5537
  if (dateResult != null) {
5537
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
5538
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
5538
5539
  }
5539
5540
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
5540
5541
  this.currentColumnIndex = target + "";
@@ -12118,8 +12119,9 @@ let SfIEvents = class SfIEvents extends LitElement {
12118
12119
  }
12119
12120
  this.currentColumnIndex = idx + "";
12120
12121
  const dateResult = this.calculateStartAndEndDateOfStream(idx);
12122
+ const monthResult = this.calculateMonthFromIndex(idx);
12121
12123
  if (dateResult != null) {
12122
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
12124
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
12123
12125
  }
12124
12126
  this.renderStream(idx);
12125
12127
  });
@@ -12136,9 +12138,19 @@ let SfIEvents = class SfIEvents extends LitElement {
12136
12138
  this.enableThis();
12137
12139
  this.renderTabs(this.TAB_THIS);
12138
12140
  const dateResult = this.calculateStartAndEndDateOfThis(1);
12141
+ let idx = 0;
12142
+ const currMonth = ("0" + (new Date().getMonth() + 1)).slice(-2);
12143
+ for (var i = 0; i < 12; i++) {
12144
+ //console.log('currMonth compare', currMonth, (parseInt(this.calendarStartMM) + i)%12);
12145
+ if ((parseInt(currMonth) === 12 && (parseInt(this.calendarStartMM) + i) % 12 === 0) || parseInt(currMonth) === (parseInt(this.calendarStartMM) + i) % 12) {
12146
+ idx = i;
12147
+ break;
12148
+ }
12149
+ }
12150
+ const monthResult = this.calculateMonthFromIndex(idx);
12139
12151
  //console.log('dateresult', dateResult)
12140
12152
  this.currentColumnIndex = 1 + "";
12141
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
12153
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
12142
12154
  this.renderThis();
12143
12155
  });
12144
12156
  // (this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-past')?.addEventListener('click', async () => {
@@ -8451,7 +8451,7 @@ export class SfIEvents extends LitElement {
8451
8451
  const target = parseInt((ev.target as HTMLDivElement).id.split('-')[2]);
8452
8452
  const dateResult = this.calculateStartAndEndDateOfStream(target);
8453
8453
  const monthResult = this.calculateMonthFromIndex(target);
8454
- console.log('monthResult', monthResult);
8454
+ // console.log('monthResult', monthResult);
8455
8455
  //console.log('dateresult', dateResult);
8456
8456
  this.currentColumnIndex = target + "";
8457
8457
  if(dateResult != null) {
@@ -8466,8 +8466,9 @@ export class SfIEvents extends LitElement {
8466
8466
 
8467
8467
  const target = parseInt((ev.target as HTMLDivElement).id.split('-')[2]);
8468
8468
  const dateResult = this.calculateStartAndEndDateOfStream(target);
8469
+ const monthResult = this.calculateMonthFromIndex(target);
8469
8470
  if(dateResult != null) {
8470
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
8471
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
8471
8472
  }
8472
8473
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
8473
8474
  this.currentColumnIndex = target + "";
@@ -17017,8 +17018,9 @@ export class SfIEvents extends LitElement {
17017
17018
  }
17018
17019
  this.currentColumnIndex = idx + "";
17019
17020
  const dateResult = this.calculateStartAndEndDateOfStream(idx);
17021
+ const monthResult = this.calculateMonthFromIndex(idx);
17020
17022
  if(dateResult != null) {
17021
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
17023
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
17022
17024
  }
17023
17025
  this.renderStream(idx);
17024
17026
  });
@@ -17037,9 +17039,19 @@ export class SfIEvents extends LitElement {
17037
17039
  this.enableThis();
17038
17040
  this.renderTabs(this.TAB_THIS);
17039
17041
  const dateResult = this.calculateStartAndEndDateOfThis(1);
17042
+ let idx = 0;
17043
+ const currMonth = ("0" + (new Date().getMonth() + 1)).slice(-2);
17044
+ for(var i = 0; i < 12; i++) {
17045
+ //console.log('currMonth compare', currMonth, (parseInt(this.calendarStartMM) + i)%12);
17046
+ if((parseInt(currMonth) === 12 && (parseInt(this.calendarStartMM) + i)%12 === 0) || parseInt(currMonth) === (parseInt(this.calendarStartMM) + i)%12) {
17047
+ idx = i;
17048
+ break;
17049
+ }
17050
+ }
17051
+ const monthResult = this.calculateMonthFromIndex(idx);
17040
17052
  //console.log('dateresult', dateResult)
17041
17053
  this.currentColumnIndex = 1 + ""
17042
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
17054
+ await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
17043
17055
  this.renderThis();
17044
17056
  });
17045
17057