sf-i-events 1.0.774 → 1.0.776

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/dev/index.html CHANGED
@@ -628,7 +628,7 @@
628
628
  </style>
629
629
  </head>
630
630
  <body>
631
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" myrole="reporter" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
631
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
632
632
 
633
633
  <div slot="uploader">
634
634
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.774",
4
+ "version": "1.0.776",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -495,7 +495,7 @@ export declare class SfIEvents extends LitElement {
495
495
  checkEndDateLateness: (value: string) => boolean;
496
496
  attachHandlers: (eventContainer: HTMLDivElement, valueStart: string, valueEnd: string) => void;
497
497
  processFindSelection: (eventContainer: HTMLDivElement, searchString: string) => Promise<void>;
498
- processDateSelection: (eventContainer: HTMLDivElement) => Promise<void>;
498
+ processDateSelection: (eventContainer: HTMLDivElement, fetchData?: boolean, showBackgroundButton?: boolean) => Promise<void>;
499
499
  processDateSelectionViewer: (eventContainer: HTMLDivElement) => Promise<void>;
500
500
  initFindRightCol: () => void;
501
501
  initCustomRightCol: () => void;
package/sf-i-events.js CHANGED
@@ -3532,10 +3532,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3532
3532
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
3533
3533
  }
3534
3534
  else {
3535
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
3536
- this.processDateSelection(this._SfCustomContainer);
3537
- }
3538
- else if (this.getCurrentTab() == this.TAB_FIND) {
3535
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
3536
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
3537
+ // } else
3538
+ if (this.getCurrentTab() == this.TAB_FIND) {
3539
3539
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
3540
3540
  this.processFindSelection(this._SfFindContainer, searchString);
3541
3541
  }
@@ -3701,6 +3701,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3701
3701
  return this.renderEvents(firstDay, endDay, 1, lastDay, showGraph, index, (firstDate.getMonth()), period, null, "This " + (index === 0 ? "Week" : "Month"), showBackgroundButton);
3702
3702
  };
3703
3703
  this.renderRangeEvents = (firstDate, count, eventsContainer, showBackgroundButton = false) => {
3704
+ console.log('render range events called', firstDate, count);
3704
3705
  var lastDate = new Date(firstDate.getTime());
3705
3706
  lastDate.setDate(lastDate.getDate() + count - 1);
3706
3707
  const lastDay = count;
@@ -3708,7 +3709,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3708
3709
  let endDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
3709
3710
  endDay === null || endDay === void 0 ? void 0 : endDay.setDate(endDay.getDate() + lastDay + 1);
3710
3711
  var period = ("0" + (firstDate.getMonth() + 1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (lastDate.getMonth() + 1)).slice(-2) + "/" + ("0" + lastDate.getDate()).slice(-2) + '/' + lastDate.getFullYear();
3711
- //console.log('rangeperiod', period)
3712
+ console.log('rangeperiod', period);
3712
3713
  var html = this.renderEvents(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
3713
3714
  eventsContainer.querySelector('.calendar-right-data').innerHTML = html;
3714
3715
  if (eventsContainer.innerHTML.indexOf('button-select-all') < 0) {
@@ -4847,7 +4848,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4847
4848
  this.renderCompletenessGraph(eventContainer);
4848
4849
  }
4849
4850
  };
4850
- this.processDateSelection = async (eventContainer) => {
4851
+ this.processDateSelection = async (eventContainer, fetchData = true, showBackgroundButton = false) => {
4851
4852
  var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
4852
4853
  var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
4853
4854
  var valueStart = this._SfCustomContainer.querySelector('#stream-start-date').value;
@@ -4882,9 +4883,11 @@ let SfIEvents = class SfIEvents extends LitElement {
4882
4883
  const tsEnd = new Date(valueEnd);
4883
4884
  tsStart.setDate(tsStart.getDate() - 2);
4884
4885
  tsEnd.setDate(tsEnd.getDate() + 2);
4885
- await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4886
- // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4887
- this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer);
4886
+ if (fetchData) {
4887
+ await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4888
+ // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4889
+ }
4890
+ this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer, showBackgroundButton);
4888
4891
  }
4889
4892
  else if (valueStart != "" && valueEnd == "") {
4890
4893
  this._SfStreamEventStatus.innerHTML = "Please select End Date";
@@ -8588,10 +8591,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8588
8591
  this.renderRoleTabsNext(this.nextPage);
8589
8592
  }
8590
8593
  else {
8591
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
8592
- this.processDateSelection(this._SfCustomContainer);
8593
- }
8594
- else if (this.getCurrentTab() == this.TAB_FIND) {
8594
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
8595
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
8596
+ // } else
8597
+ if (this.getCurrentTab() == this.TAB_FIND) {
8595
8598
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
8596
8599
  this.processFindSelection(this._SfFindContainer, searchString);
8597
8600
  }
@@ -8884,10 +8887,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8884
8887
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
8885
8888
  }
8886
8889
  else {
8887
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
8888
- this.processDateSelection(this._SfCustomContainer);
8889
- }
8890
- else if (this.getCurrentTab() == this.TAB_FIND) {
8890
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
8891
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
8892
+ // } else
8893
+ if (this.getCurrentTab() == this.TAB_FIND) {
8891
8894
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
8892
8895
  this.processFindSelection(this._SfFindContainer, searchString);
8893
8896
  }
@@ -9684,10 +9687,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9684
9687
  this.renderRoleTabsNext(this.nextPage);
9685
9688
  }
9686
9689
  else {
9687
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9688
- this.processDateSelection(this._SfCustomContainer);
9689
- }
9690
- else if (this.getCurrentTab() == this.TAB_FIND) {
9690
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
9691
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9692
+ // } else
9693
+ if (this.getCurrentTab() == this.TAB_FIND) {
9691
9694
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
9692
9695
  this.processFindSelection(this._SfFindContainer, searchString);
9693
9696
  }
@@ -9995,10 +9998,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9995
9998
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
9996
9999
  }
9997
10000
  else {
9998
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9999
- this.processDateSelection(this._SfCustomContainer);
10000
- }
10001
- else if (this.getCurrentTab() == this.TAB_FIND) {
10001
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
10002
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
10003
+ // } else
10004
+ if (this.getCurrentTab() == this.TAB_FIND) {
10002
10005
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
10003
10006
  this.processFindSelection(this._SfFindContainer, searchString);
10004
10007
  }
@@ -17588,6 +17591,9 @@ let SfIEvents = class SfIEvents extends LitElement {
17588
17591
  if (this.selectedTab == this.TAB_THIS) {
17589
17592
  this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
17590
17593
  }
17594
+ if (this.selectedTab == this.TAB_CUSTOM) {
17595
+ this.processDateSelection(this._SfCustomContainer, false, showBackgroundButton);
17596
+ }
17591
17597
  // if(this.selectedTab == this.TAB_PAST) {
17592
17598
  // this.renderPast(parseInt(this.currentColumnIndex), false);
17593
17599
  // }
@@ -5588,7 +5588,8 @@ export class SfIEvents extends LitElement {
5588
5588
  }else{
5589
5589
  if(this.getCurrentTab() == this.TAB_CUSTOM) {
5590
5590
  this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5591
- } else if(this.getCurrentTab() == this.TAB_FIND) {
5591
+ } else
5592
+ if(this.getCurrentTab() == this.TAB_FIND) {
5592
5593
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
5593
5594
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
5594
5595
  } else {
@@ -5901,9 +5902,10 @@ export class SfIEvents extends LitElement {
5901
5902
  if(this.mode == "next"){
5902
5903
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
5903
5904
  }else{
5904
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
5905
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5906
- } else if(this.getCurrentTab() == this.TAB_FIND) {
5905
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
5906
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5907
+ // } else
5908
+ if(this.getCurrentTab() == this.TAB_FIND) {
5907
5909
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
5908
5910
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
5909
5911
  } else {
@@ -6102,7 +6104,7 @@ export class SfIEvents extends LitElement {
6102
6104
 
6103
6105
  renderRangeEvents = (firstDate: Date, count: number, eventsContainer: HTMLDivElement, showBackgroundButton: boolean = false) => {
6104
6106
 
6105
-
6107
+ console.log('render range events called', firstDate, count)
6106
6108
  var lastDate = new Date(firstDate.getTime());
6107
6109
  lastDate.setDate(lastDate.getDate() + count - 1)
6108
6110
 
@@ -6113,7 +6115,7 @@ export class SfIEvents extends LitElement {
6113
6115
 
6114
6116
  var period = ("0" + (firstDate.getMonth()+1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (lastDate.getMonth()+1)).slice(-2) + "/" + ("0" + lastDate.getDate()).slice(-2) + '/' + lastDate.getFullYear();
6115
6117
 
6116
- //console.log('rangeperiod', period)
6118
+ console.log('rangeperiod', period)
6117
6119
 
6118
6120
  var html = this.renderEvents(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
6119
6121
 
@@ -7457,7 +7459,7 @@ export class SfIEvents extends LitElement {
7457
7459
  }
7458
7460
  }
7459
7461
 
7460
- processDateSelection = async (eventContainer: HTMLDivElement) => {
7462
+ processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true, showBackgroundButton: boolean = false) => {
7461
7463
 
7462
7464
  var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
7463
7465
  var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
@@ -7497,10 +7499,11 @@ export class SfIEvents extends LitElement {
7497
7499
  const tsEnd = new Date(valueEnd);
7498
7500
  tsStart.setDate(tsStart.getDate() - 2);
7499
7501
  tsEnd.setDate(tsEnd.getDate() + 2);
7500
-
7501
- await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
7502
- // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7503
- this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement));
7502
+ if(fetchData){
7503
+ await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
7504
+ // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7505
+ }
7506
+ this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement), showBackgroundButton);
7504
7507
  } else if(valueStart != "" && valueEnd == "") {
7505
7508
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
7506
7509
  } else if(valueStart == "" && valueEnd != "") {
@@ -12096,9 +12099,10 @@ export class SfIEvents extends LitElement {
12096
12099
  // this.fetchNext(this.nextPage)
12097
12100
  this.renderRoleTabsNext(this.nextPage)
12098
12101
  }else{
12099
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
12100
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12101
- } else if(this.getCurrentTab() == this.TAB_FIND) {
12102
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
12103
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12104
+ // } else
12105
+ if(this.getCurrentTab() == this.TAB_FIND) {
12102
12106
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
12103
12107
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
12104
12108
  } else {
@@ -12444,9 +12448,10 @@ export class SfIEvents extends LitElement {
12444
12448
  if(this.mode == "next"){
12445
12449
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
12446
12450
  }else{
12447
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
12448
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12449
- } else if(this.getCurrentTab() == this.TAB_FIND) {
12451
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
12452
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12453
+ // } else
12454
+ if(this.getCurrentTab() == this.TAB_FIND) {
12450
12455
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
12451
12456
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
12452
12457
  } else {
@@ -13374,9 +13379,10 @@ export class SfIEvents extends LitElement {
13374
13379
  // this.fetchNext(this.nextPage)
13375
13380
  this.renderRoleTabsNext(this.nextPage)
13376
13381
  }else{
13377
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13378
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13379
- } else if(this.getCurrentTab() == this.TAB_FIND) {
13382
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13383
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13384
+ // } else
13385
+ if(this.getCurrentTab() == this.TAB_FIND) {
13380
13386
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
13381
13387
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
13382
13388
  } else {
@@ -13734,9 +13740,10 @@ export class SfIEvents extends LitElement {
13734
13740
  if(this.mode == "next"){
13735
13741
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
13736
13742
  }else{
13737
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13738
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13739
- } else if(this.getCurrentTab() == this.TAB_FIND) {
13743
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13744
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13745
+ // } else
13746
+ if(this.getCurrentTab() == this.TAB_FIND) {
13740
13747
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
13741
13748
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
13742
13749
  } else {
@@ -23560,6 +23567,9 @@ export class SfIEvents extends LitElement {
23560
23567
  if(this.selectedTab == this.TAB_THIS) {
23561
23568
  this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
23562
23569
  }
23570
+ if(this.selectedTab == this.TAB_CUSTOM) {
23571
+ this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false, showBackgroundButton)
23572
+ }
23563
23573
  // if(this.selectedTab == this.TAB_PAST) {
23564
23574
  // this.renderPast(parseInt(this.currentColumnIndex), false);
23565
23575
  // }