sf-i-events 1.0.775 → 1.0.777

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.775",
4
+ "version": "1.0.777",
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, fetchData?: boolean) => 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
@@ -3259,10 +3259,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3259
3259
  this.renderRoleTabsNext(this.nextPage);
3260
3260
  }
3261
3261
  else {
3262
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
3263
- this.processDateSelection(this._SfCustomContainer);
3264
- }
3265
- else if (this.getCurrentTab() == this.TAB_FIND) {
3262
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
3263
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
3264
+ // } else
3265
+ if (this.getCurrentTab() == this.TAB_FIND) {
3266
3266
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
3267
3267
  this.processFindSelection(this._SfFindContainer, searchString);
3268
3268
  }
@@ -3349,10 +3349,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3349
3349
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
3350
3350
  }
3351
3351
  else {
3352
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
3353
- this.processDateSelection(this._SfCustomContainer);
3354
- }
3355
- else if (this.getCurrentTab() == this.TAB_FIND) {
3352
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
3353
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
3354
+ // } else
3355
+ if (this.getCurrentTab() == this.TAB_FIND) {
3356
3356
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
3357
3357
  this.processFindSelection(this._SfFindContainer, searchString);
3358
3358
  }
@@ -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
  }
@@ -4848,7 +4848,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4848
4848
  this.renderCompletenessGraph(eventContainer);
4849
4849
  }
4850
4850
  };
4851
- this.processDateSelection = async (eventContainer, fetchData = true) => {
4851
+ this.processDateSelection = async (eventContainer, fetchData = true, showBackgroundButton = false) => {
4852
4852
  var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
4853
4853
  var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
4854
4854
  var valueStart = this._SfCustomContainer.querySelector('#stream-start-date').value;
@@ -4887,7 +4887,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4887
4887
  await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4888
4888
  // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4889
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);
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);
4891
4891
  }
4892
4892
  else if (valueStart != "" && valueEnd == "") {
4893
4893
  this._SfStreamEventStatus.innerHTML = "Please select End Date";
@@ -8591,10 +8591,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8591
8591
  this.renderRoleTabsNext(this.nextPage);
8592
8592
  }
8593
8593
  else {
8594
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
8595
- this.processDateSelection(this._SfCustomContainer);
8596
- }
8597
- 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) {
8598
8598
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
8599
8599
  this.processFindSelection(this._SfFindContainer, searchString);
8600
8600
  }
@@ -8694,10 +8694,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8694
8694
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
8695
8695
  }
8696
8696
  else {
8697
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
8698
- this.processDateSelection(this._SfCustomContainer);
8699
- }
8700
- else if (this.getCurrentTab() == this.TAB_FIND) {
8697
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
8698
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
8699
+ // } else
8700
+ if (this.getCurrentTab() == this.TAB_FIND) {
8701
8701
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
8702
8702
  this.processFindSelection(this._SfFindContainer, searchString);
8703
8703
  }
@@ -8887,10 +8887,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8887
8887
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
8888
8888
  }
8889
8889
  else {
8890
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
8891
- this.processDateSelection(this._SfCustomContainer);
8892
- }
8893
- 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) {
8894
8894
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
8895
8895
  this.processFindSelection(this._SfFindContainer, searchString);
8896
8896
  }
@@ -9498,14 +9498,13 @@ let SfIEvents = class SfIEvents extends LitElement {
9498
9498
  this.clearMessages();
9499
9499
  }, 3000);
9500
9500
  //console.log('deleted', resultDelete);
9501
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9502
- this.processDateSelection(this._SfCustomContainer);
9503
- }
9504
- else {
9505
- if (currentColumnButton != null) {
9506
- currentColumnButton.click();
9507
- }
9501
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
9502
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9503
+ // } else {
9504
+ if (currentColumnButton != null) {
9505
+ currentColumnButton.click();
9508
9506
  }
9507
+ // }
9509
9508
  var clickEvent = new MouseEvent("click", {
9510
9509
  "view": window,
9511
9510
  "bubbles": true,
@@ -9550,14 +9549,13 @@ let SfIEvents = class SfIEvents extends LitElement {
9550
9549
  await this.uploadReviewsBulk(bulkBodyReview);
9551
9550
  }
9552
9551
  //console.log('deleted', resultDelete);
9553
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9554
- this.processDateSelection(this._SfCustomContainer);
9555
- }
9556
- else {
9557
- if (currentColumnButton != null) {
9558
- currentColumnButton.click();
9559
- }
9552
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
9553
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9554
+ // } else {
9555
+ if (currentColumnButton != null) {
9556
+ currentColumnButton.click();
9560
9557
  }
9558
+ // }
9561
9559
  var clickEvent = new MouseEvent("click", {
9562
9560
  "view": window,
9563
9561
  "bubbles": true,
@@ -9687,10 +9685,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9687
9685
  this.renderRoleTabsNext(this.nextPage);
9688
9686
  }
9689
9687
  else {
9690
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9691
- this.processDateSelection(this._SfCustomContainer);
9692
- }
9693
- else if (this.getCurrentTab() == this.TAB_FIND) {
9688
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
9689
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9690
+ // } else
9691
+ if (this.getCurrentTab() == this.TAB_FIND) {
9694
9692
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
9695
9693
  this.processFindSelection(this._SfFindContainer, searchString);
9696
9694
  }
@@ -9788,10 +9786,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9788
9786
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
9789
9787
  }
9790
9788
  else {
9791
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
9792
- this.processDateSelection(this._SfCustomContainer);
9793
- }
9794
- else if (this.getCurrentTab() == this.TAB_FIND) {
9789
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
9790
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9791
+ // } else
9792
+ if (this.getCurrentTab() == this.TAB_FIND) {
9795
9793
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
9796
9794
  this.processFindSelection(this._SfFindContainer, searchString);
9797
9795
  }
@@ -9998,10 +9996,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9998
9996
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
9999
9997
  }
10000
9998
  else {
10001
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
10002
- this.processDateSelection(this._SfCustomContainer);
10003
- }
10004
- else if (this.getCurrentTab() == this.TAB_FIND) {
9999
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
10000
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
10001
+ // } else
10002
+ if (this.getCurrentTab() == this.TAB_FIND) {
10005
10003
  const searchString = this._SfFindContainer.querySelector('#stream-search').value;
10006
10004
  this.processFindSelection(this._SfFindContainer, searchString);
10007
10005
  }
@@ -17592,7 +17590,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17592
17590
  this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
17593
17591
  }
17594
17592
  if (this.selectedTab == this.TAB_CUSTOM) {
17595
- this.processDateSelection(this._SfCustomContainer, false);
17593
+ this.processDateSelection(this._SfCustomContainer, false, showBackgroundButton);
17596
17594
  }
17597
17595
  // if(this.selectedTab == this.TAB_PAST) {
17598
17596
  // this.renderPast(parseInt(this.currentColumnIndex), false);
@@ -5586,9 +5586,10 @@ export class SfIEvents extends LitElement {
5586
5586
  // this.fetchNext(this.nextPage)
5587
5587
  this.renderRoleTabsNext(this.nextPage)
5588
5588
  }else{
5589
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
5590
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5591
- } else if(this.getCurrentTab() == this.TAB_FIND) {
5589
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
5590
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
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 {
@@ -5683,9 +5684,10 @@ export class SfIEvents extends LitElement {
5683
5684
  if(this.mode == "next"){
5684
5685
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
5685
5686
  }else{
5686
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
5687
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5688
- } else if(this.getCurrentTab() == this.TAB_FIND) {
5687
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
5688
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5689
+ // } else
5690
+ if(this.getCurrentTab() == this.TAB_FIND) {
5689
5691
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
5690
5692
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
5691
5693
  } else {
@@ -5901,9 +5903,10 @@ export class SfIEvents extends LitElement {
5901
5903
  if(this.mode == "next"){
5902
5904
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
5903
5905
  }else{
5904
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
5905
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5906
- } else if(this.getCurrentTab() == this.TAB_FIND) {
5906
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
5907
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
5908
+ // } else
5909
+ if(this.getCurrentTab() == this.TAB_FIND) {
5907
5910
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
5908
5911
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
5909
5912
  } else {
@@ -7457,7 +7460,7 @@ export class SfIEvents extends LitElement {
7457
7460
  }
7458
7461
  }
7459
7462
 
7460
- processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true) => {
7463
+ processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true, showBackgroundButton: boolean = false) => {
7461
7464
 
7462
7465
  var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
7463
7466
  var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
@@ -7501,7 +7504,7 @@ export class SfIEvents extends LitElement {
7501
7504
  await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
7502
7505
  // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7503
7506
  }
7504
- 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));
7507
+ 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);
7505
7508
  } else if(valueStart != "" && valueEnd == "") {
7506
7509
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
7507
7510
  } else if(valueStart == "" && valueEnd != "") {
@@ -12097,9 +12100,10 @@ export class SfIEvents extends LitElement {
12097
12100
  // this.fetchNext(this.nextPage)
12098
12101
  this.renderRoleTabsNext(this.nextPage)
12099
12102
  }else{
12100
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
12101
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12102
- } else if(this.getCurrentTab() == this.TAB_FIND) {
12103
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
12104
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12105
+ // } else
12106
+ if(this.getCurrentTab() == this.TAB_FIND) {
12103
12107
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
12104
12108
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
12105
12109
  } else {
@@ -12212,9 +12216,10 @@ export class SfIEvents extends LitElement {
12212
12216
  if(this.mode == "next"){
12213
12217
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
12214
12218
  }else{
12215
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
12216
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12217
- } else if(this.getCurrentTab() == this.TAB_FIND) {
12219
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
12220
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12221
+ // } else
12222
+ if(this.getCurrentTab() == this.TAB_FIND) {
12218
12223
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
12219
12224
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
12220
12225
  } else {
@@ -12445,9 +12450,10 @@ export class SfIEvents extends LitElement {
12445
12450
  if(this.mode == "next"){
12446
12451
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
12447
12452
  }else{
12448
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
12449
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12450
- } else if(this.getCurrentTab() == this.TAB_FIND) {
12453
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
12454
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
12455
+ // } else
12456
+ if(this.getCurrentTab() == this.TAB_FIND) {
12451
12457
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
12452
12458
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
12453
12459
  } else {
@@ -13165,13 +13171,13 @@ export class SfIEvents extends LitElement {
13165
13171
  this.clearMessages()
13166
13172
  }, 3000);
13167
13173
  //console.log('deleted', resultDelete);
13168
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13169
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13170
- } else {
13174
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13175
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13176
+ // } else {
13171
13177
  if(currentColumnButton != null) {
13172
13178
  currentColumnButton.click();
13173
13179
  }
13174
- }
13180
+ // }
13175
13181
 
13176
13182
  var clickEvent = new MouseEvent("click", {
13177
13183
  "view": window,
@@ -13219,13 +13225,13 @@ export class SfIEvents extends LitElement {
13219
13225
  await this.uploadReviewsBulk(bulkBodyReview);
13220
13226
  }
13221
13227
  //console.log('deleted', resultDelete);
13222
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13223
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13224
- } else {
13228
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13229
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13230
+ // } else {
13225
13231
  if(currentColumnButton != null) {
13226
13232
  currentColumnButton.click();
13227
13233
  }
13228
- }
13234
+ // }
13229
13235
 
13230
13236
  var clickEvent = new MouseEvent("click", {
13231
13237
  "view": window,
@@ -13375,9 +13381,10 @@ export class SfIEvents extends LitElement {
13375
13381
  // this.fetchNext(this.nextPage)
13376
13382
  this.renderRoleTabsNext(this.nextPage)
13377
13383
  }else{
13378
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13379
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13380
- } else if(this.getCurrentTab() == this.TAB_FIND) {
13384
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13385
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13386
+ // } else
13387
+ if(this.getCurrentTab() == this.TAB_FIND) {
13381
13388
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
13382
13389
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
13383
13390
  } else {
@@ -13487,9 +13494,10 @@ export class SfIEvents extends LitElement {
13487
13494
  if(this.mode == "next"){
13488
13495
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
13489
13496
  }else{
13490
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13491
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13492
- } else if(this.getCurrentTab() == this.TAB_FIND) {
13497
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13498
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13499
+ // } else
13500
+ if(this.getCurrentTab() == this.TAB_FIND) {
13493
13501
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
13494
13502
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
13495
13503
  } else {
@@ -13735,9 +13743,10 @@ export class SfIEvents extends LitElement {
13735
13743
  if(this.mode == "next"){
13736
13744
  this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
13737
13745
  }else{
13738
- if(this.getCurrentTab() == this.TAB_CUSTOM) {
13739
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13740
- } else if(this.getCurrentTab() == this.TAB_FIND) {
13746
+ // if(this.getCurrentTab() == this.TAB_CUSTOM) {
13747
+ // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
13748
+ // } else
13749
+ if(this.getCurrentTab() == this.TAB_FIND) {
13741
13750
  const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
13742
13751
  this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
13743
13752
  } else {
@@ -23562,7 +23571,7 @@ export class SfIEvents extends LitElement {
23562
23571
  this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
23563
23572
  }
23564
23573
  if(this.selectedTab == this.TAB_CUSTOM) {
23565
- this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false)
23574
+ this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false, showBackgroundButton)
23566
23575
  }
23567
23576
  // if(this.selectedTab == this.TAB_PAST) {
23568
23577
  // this.renderPast(parseInt(this.currentColumnIndex), false);