sf-i-events 1.0.921 → 1.0.923

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
@@ -843,7 +843,7 @@
843
843
  allowdownload="yes"></sf-i-uploader></div>
844
844
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
845
845
  </sf-i-events> -->
846
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
846
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
847
847
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
848
848
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
849
849
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -853,8 +853,8 @@
853
853
  apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
854
854
  username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
855
855
  projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
856
- countryid="8ee18117-0cca-49be-80f4-1f712d871fef" selectedcriteria="Country - Singapore" myrole="reporter"
857
- showregisterexport="false"
856
+ entityid="50797394-7f3f-40a5-8dc3-ca360596e394" locationid="405732fc-7a4b-4df1-9b5e-fa508db9fced"
857
+ selectedcriteria="Location - Raffles Place" myrole="reporter" showregisterexport="false"
858
858
  features="[&quot;notices&quot;,&quot;contracts&quot;,&quot;licenses&quot;,&quot;rcmresources&quot;]"
859
859
  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;}]"
860
860
  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;}]"
@@ -864,7 +864,7 @@
864
864
 
865
865
  <div slot="uploader">
866
866
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
867
- allowedextensions="[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]"
867
+ allowedextensions="[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;,&quot;zip&quot;]"
868
868
  extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
869
869
  allowdownload="yes"></sf-i-uploader>
870
870
  </div>
@@ -872,8 +872,8 @@
872
872
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
873
873
  </div>
874
874
 
875
- </sf-i-events> -->
876
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
875
+ </sf-i-events>
876
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
877
877
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
878
878
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
879
879
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -901,7 +901,7 @@
901
901
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
902
902
  </div>
903
903
 
904
- </sf-i-events>
904
+ </sf-i-events> -->
905
905
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
906
906
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
907
907
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.921",
4
+ "version": "1.0.923",
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
@@ -292,6 +292,7 @@ export declare class SfIEvents extends LitElement {
292
292
  changedOnboardingItemIds: string[];
293
293
  selectedCountryIndex: number;
294
294
  selectedRegisterIndex: number;
295
+ showReportedLocations: boolean;
295
296
  selectallblock: string;
296
297
  graphFilter: string;
297
298
  recentlyReported: any;
package/sf-i-events.js CHANGED
@@ -1250,6 +1250,7 @@ let SfIEvents = class SfIEvents extends LitElement {
1250
1250
  this.changedOnboardingItemIds = [];
1251
1251
  this.selectedCountryIndex = 0;
1252
1252
  this.selectedRegisterIndex = -1;
1253
+ this.showReportedLocations = false;
1253
1254
  this.selectallblock = "100";
1254
1255
  this.graphFilter = "";
1255
1256
  this.recentlyReported = {};
@@ -2290,6 +2291,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2290
2291
  else {
2291
2292
  html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span>&nbsp;&nbsp;Last Updated on ' + this.lastupdated + '</h6></div>';
2292
2293
  }
2294
+ // html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="show-reported-locations-container"><input class="mr-10" type="checkbox" part="input" id="input-show-reported-locations" ' + (this.showReportedLocations ? 'checked' : '' ) +'/><span part="show-reported-locations-title">Show reporting daviations</span></div>';
2293
2295
  if (showGraph) {
2294
2296
  html += '<div part="stream-event-chart-selection" class="mb-20">';
2295
2297
  html += '<div part="td-head" class="mb-5">Select Chart</div>';
@@ -5733,7 +5735,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5733
5735
  }
5734
5736
  html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5735
5737
  html += '<div class="d-flex flex-col align-stretch left-sticky">';
5736
- html += '<div class="d-flex justify-between align-end">';
5738
+ html += '<div class="d-flex justify-between align-end" part="register-search-container">';
5737
5739
  html += '<div class="title-item-date">';
5738
5740
  html += '<label part="input-label">Search In Statute</label><br />';
5739
5741
  html += '<div class="d-flex align-end">';
@@ -5745,7 +5747,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5745
5747
  html += '<button id="button-download-statute-' + index + '-' + i + '" part="button" class="button-download-statute d-flex justify-center align-center ml-10"><span class="material-symbols-outlined">download</span>&nbsp;&nbsp;<span>Export</span></button>';
5746
5748
  html += '</div>';
5747
5749
  html += '</div>';
5748
- html += '<div id="filter-string" part="filter-string">Test String</div>';
5750
+ html += '<div id="filter-string" part="filter-string" class="d-flex align-center">Test String</div>';
5749
5751
  html += '</div>';
5750
5752
  html += '<table>';
5751
5753
  let tableBodyHtml = '';
@@ -18507,6 +18509,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18507
18509
  console.log('rendering chart settings', selectedSummary);
18508
18510
  var html = '';
18509
18511
  html += '<div class="d-flex justify-end align-start">';
18512
+ html += '<button class="tab-button" id="input-show-reported-locations" part="' + (this.showReportedLocations ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '" class="mr-10"><span class="material-symbols-outlined">arrow_or_edge</span></button>';
18510
18513
  if (selectedTab === 0) {
18511
18514
  //html += '<button class="tab-button" id="chart-control-filters" part="calendar-tab-button-selected" class="mr-10"><span class="material-icons">filter_list</span></button>';
18512
18515
  }
@@ -18535,6 +18538,15 @@ let SfIEvents = class SfIEvents extends LitElement {
18535
18538
  console.log('summary clicked');
18536
18539
  this.renderChartSummary();
18537
18540
  });
18541
+ const buttonRefresh = container.querySelector('#button-refresh');
18542
+ if (buttonRefresh != null) {
18543
+ const inputShowReportedLocations = container.querySelector('#input-show-reported-locations');
18544
+ inputShowReportedLocations === null || inputShowReportedLocations === void 0 ? void 0 : inputShowReportedLocations.addEventListener('click', () => {
18545
+ this.showReportedLocations = !this.showReportedLocations;
18546
+ let clickEvent = new Event('click', {});
18547
+ buttonRefresh === null || buttonRefresh === void 0 ? void 0 : buttonRefresh.dispatchEvent(clickEvent);
18548
+ });
18549
+ }
18538
18550
  }
18539
18551
  // (container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-filters')?.addEventListener('click', () => {
18540
18552
  // this.renderChartSettings(container, 0, ctx);
@@ -22600,7 +22612,7 @@ let SfIEvents = class SfIEvents extends LitElement {
22600
22612
  else {
22601
22613
  view = "entity";
22602
22614
  }
22603
- path = "getallcountryevents2";
22615
+ path = "getallcountryevents3";
22604
22616
  let sDate = "";
22605
22617
  let eDate = "";
22606
22618
  //console.log('currenttab', this.getCurrentTab());
@@ -22618,6 +22630,9 @@ let SfIEvents = class SfIEvents extends LitElement {
22618
22630
  if (searchString.length > 0) {
22619
22631
  urlBody["searchstring"] = searchString;
22620
22632
  }
22633
+ if (this.showReportedLocations) {
22634
+ urlBody["reportedlocations"] = "yes";
22635
+ }
22621
22636
  //console.log('urlbody', urlBody);
22622
22637
  this.getallcountryevetsParams = JSON.stringify(urlBody);
22623
22638
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
@@ -22704,7 +22719,7 @@ let SfIEvents = class SfIEvents extends LitElement {
22704
22719
  else {
22705
22720
  view = "entity";
22706
22721
  }
22707
- path = "getallcountryevents2";
22722
+ path = "getallcountryevents3";
22708
22723
  let url = "https://" + this.apiId + "/" + path;
22709
22724
  let temptagid = tagid;
22710
22725
  if (temptagid == "" && locationid != "") {
@@ -22718,6 +22733,9 @@ let SfIEvents = class SfIEvents extends LitElement {
22718
22733
  if (searchString.length > 0) {
22719
22734
  urlBody["searchstring"] = searchString;
22720
22735
  }
22736
+ if (this.showReportedLocations) {
22737
+ urlBody["reportedlocations"] = "yes";
22738
+ }
22721
22739
  console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
22722
22740
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22723
22741
  const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
@@ -24174,7 +24192,7 @@ let SfIEvents = class SfIEvents extends LitElement {
24174
24192
  day = '0' + day;
24175
24193
  let eDate = month + "/" + day + "/" + year;
24176
24194
  let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
24177
- let url = "https://" + this.apiId + "/getallcountryevents2";
24195
+ let url = "https://" + this.apiId + "/getallcountryevents3";
24178
24196
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
24179
24197
  const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
24180
24198
  this._SfLoader.innerHTML = '';
@@ -24259,7 +24277,7 @@ let SfIEvents = class SfIEvents extends LitElement {
24259
24277
  console.log('fetching compliances', sortid);
24260
24278
  let complianceEntityId = sortid.split(';')[1];
24261
24279
  let complianceLocationId = sortid.split(';')[2];
24262
- let url = "https://" + this.apiId + "/getallcountryevents2";
24280
+ let url = "https://" + this.apiId + "/getallcountryevents3";
24263
24281
  let sDateObj = selectedDate;
24264
24282
  sDateObj.setDate(selectedDate.getDate() - 60);
24265
24283
  let day = '' + sDateObj.getDate();
@@ -1676,6 +1676,8 @@ export class SfIEvents extends LitElement {
1676
1676
 
1677
1677
  selectedRegisterIndex: number = -1;
1678
1678
 
1679
+ showReportedLocations: boolean = false;
1680
+
1679
1681
  @property()
1680
1682
  selectallblock: string = "100";
1681
1683
 
@@ -4445,6 +4447,7 @@ export class SfIEvents extends LitElement {
4445
4447
  } else {
4446
4448
  html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span>&nbsp;&nbsp;Last Updated on ' + this.lastupdated + '</h6></div>';
4447
4449
  }
4450
+ // html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="show-reported-locations-container"><input class="mr-10" type="checkbox" part="input" id="input-show-reported-locations" ' + (this.showReportedLocations ? 'checked' : '' ) +'/><span part="show-reported-locations-title">Show reporting daviations</span></div>';
4448
4451
  if (showGraph) {
4449
4452
  html += '<div part="stream-event-chart-selection" class="mb-20">';
4450
4453
  html += '<div part="td-head" class="mb-5">Select Chart</div>';
@@ -7206,6 +7209,7 @@ export class SfIEvents extends LitElement {
7206
7209
  buttonRefresh.addEventListener('click', async () => {
7207
7210
  this.processDateSelection(eventsContainer)
7208
7211
  })
7212
+
7209
7213
  this.attachListReportingListeners(eventsContainer);
7210
7214
  const buttonArr = eventsContainer.querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
7211
7215
 
@@ -8292,7 +8296,7 @@ export class SfIEvents extends LitElement {
8292
8296
  html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8293
8297
 
8294
8298
  html += '<div class="d-flex flex-col align-stretch left-sticky">';
8295
- html += '<div class="d-flex justify-between align-end">'
8299
+ html += '<div class="d-flex justify-between align-end" part="register-search-container">'
8296
8300
  html += '<div class="title-item-date">';
8297
8301
  html += '<label part="input-label">Search In Statute</label><br />'
8298
8302
  html += '<div class="d-flex align-end">'
@@ -8304,7 +8308,7 @@ export class SfIEvents extends LitElement {
8304
8308
  html += '<button id="button-download-statute-' + index + '-' + i + '" part="button" class="button-download-statute d-flex justify-center align-center ml-10"><span class="material-symbols-outlined">download</span>&nbsp;&nbsp;<span>Export</span></button>';
8305
8309
  html += '</div>';
8306
8310
  html += '</div>';
8307
- html += '<div id="filter-string" part="filter-string">Test String</div>'
8311
+ html += '<div id="filter-string" part="filter-string" class="d-flex align-center">Test String</div>'
8308
8312
  html += '</div>';
8309
8313
  html += '<table>';
8310
8314
  let tableBodyHtml = ''
@@ -8468,21 +8472,21 @@ export class SfIEvents extends LitElement {
8468
8472
  filterString += "filtered by \"" + searchFilterString + "\""
8469
8473
  }
8470
8474
  }
8471
- if(filterString != "") {
8475
+ if (filterString != "") {
8472
8476
  filterString += '<span class="material-symbols-outlined ml-5" id="filter-delete" part="filter-delete">delete</span>'
8473
8477
  }
8474
8478
  divFilterString.innerHTML = filterString
8475
8479
  const filterDeleteButton = divFilterString.querySelector('#filter-delete') as HTMLSpanElement;
8476
8480
  filterDeleteButton?.addEventListener('click', () => {
8477
- for(let col of Object.keys(this.registerFilters)){
8478
- for(let filterVal of Object.keys(this.registerFilters[col])){
8481
+ for (let col of Object.keys(this.registerFilters)) {
8482
+ for (let filterVal of Object.keys(this.registerFilters[col])) {
8479
8483
  this.registerFilters[col][filterVal] = true;
8480
8484
  }
8481
8485
  }
8482
8486
  this.processRegisterFilters(events, meta, searchCountryIndex, searchIndex, "");
8483
8487
  })
8484
8488
  }
8485
-
8489
+
8486
8490
  const arrButtonCountries = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelectorAll('.button-icon-country') as NodeListOf<HTMLButtonElement>;
8487
8491
 
8488
8492
  for (i = 0; i < arrButtonCountries.length; i++) {
@@ -8570,12 +8574,12 @@ export class SfIEvents extends LitElement {
8570
8574
  for (i = 0; i < arrButtonStatuteSearch.length; i++) {
8571
8575
  const button = Util.clearListeners(arrButtonStatuteSearch[i]);
8572
8576
  button.addEventListener('click', (e: any) => {
8573
- const inputId = e.currentTarget.id.replace('button-','stream-')
8577
+ const inputId = e.currentTarget.id.replace('button-', 'stream-')
8574
8578
  const searchedValue = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelector(inputId).value;
8575
8579
  const countryIndex = e.currentTarget.id.split('-')[3];
8576
8580
  const searchIndex = e.currentTarget.id.split('-')[4];
8577
8581
  this.processRegisterFilters(events, meta, countryIndex, searchIndex, searchedValue);
8578
-
8582
+
8579
8583
  })
8580
8584
  }
8581
8585
 
@@ -11797,6 +11801,7 @@ export class SfIEvents extends LitElement {
11797
11801
  await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
11798
11802
  this.renderThis(index, showGraph, showBackgroundButton);
11799
11803
  })
11804
+
11800
11805
  this.attachListReportingListeners(this._SfThisContainer as HTMLDivElement);
11801
11806
  const buttonArr = (this._SfThisContainer as HTMLDivElement).querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
11802
11807
 
@@ -12417,6 +12422,7 @@ export class SfIEvents extends LitElement {
12417
12422
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
12418
12423
  this.renderStream(index, showGraph, showBackgroundButton);
12419
12424
  })
12425
+
12420
12426
  this.attachListReportingListeners(this._SfStreamContainer as HTMLDivElement);
12421
12427
  const buttonArr = (this._SfStreamContainer as HTMLDivElement).querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
12422
12428
 
@@ -23795,6 +23801,7 @@ export class SfIEvents extends LitElement {
23795
23801
  var html = '';
23796
23802
 
23797
23803
  html += '<div class="d-flex justify-end align-start">';
23804
+ html += '<button class="tab-button" id="input-show-reported-locations" part="' + (this.showReportedLocations ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '" class="mr-10"><span class="material-symbols-outlined">arrow_or_edge</span></button>';
23798
23805
  if (selectedTab === 0) {
23799
23806
  //html += '<button class="tab-button" id="chart-control-filters" part="calendar-tab-button-selected" class="mr-10"><span class="material-icons">filter_list</span></button>';
23800
23807
  } else {
@@ -23825,6 +23832,15 @@ export class SfIEvents extends LitElement {
23825
23832
  this.renderChartSummary();
23826
23833
 
23827
23834
  });
23835
+ const buttonRefresh = container.querySelector('#button-refresh') as HTMLButtonElement
23836
+ if (buttonRefresh != null) {
23837
+ const inputShowReportedLocations = container.querySelector('#input-show-reported-locations') as HTMLButtonElement
23838
+ inputShowReportedLocations?.addEventListener('click', () => {
23839
+ this.showReportedLocations = !this.showReportedLocations;
23840
+ let clickEvent = new Event('click', {})
23841
+ buttonRefresh?.dispatchEvent(clickEvent);
23842
+ })
23843
+ }
23828
23844
  }
23829
23845
 
23830
23846
  // (container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-filters')?.addEventListener('click', () => {
@@ -28812,7 +28828,7 @@ export class SfIEvents extends LitElement {
28812
28828
  view = "entity";
28813
28829
  }
28814
28830
 
28815
- path = "getallcountryevents2";
28831
+ path = "getallcountryevents3";
28816
28832
 
28817
28833
  let sDate = "";
28818
28834
  let eDate = "";
@@ -28836,6 +28852,9 @@ export class SfIEvents extends LitElement {
28836
28852
  if (searchString.length > 0) {
28837
28853
  urlBody["searchstring"] = searchString;
28838
28854
  }
28855
+ if (this.showReportedLocations) {
28856
+ urlBody["reportedlocations"] = "yes";
28857
+ }
28839
28858
 
28840
28859
  //console.log('urlbody', urlBody);
28841
28860
  this.getallcountryevetsParams = JSON.stringify(urlBody);
@@ -28949,7 +28968,7 @@ export class SfIEvents extends LitElement {
28949
28968
  view = "entity";
28950
28969
  }
28951
28970
 
28952
- path = "getallcountryevents2";
28971
+ path = "getallcountryevents3";
28953
28972
 
28954
28973
  let url = "https://" + this.apiId + "/" + path;
28955
28974
  let temptagid = tagid;
@@ -28964,6 +28983,9 @@ export class SfIEvents extends LitElement {
28964
28983
  if (searchString.length > 0) {
28965
28984
  urlBody["searchstring"] = searchString;
28966
28985
  }
28986
+ if (this.showReportedLocations) {
28987
+ urlBody["reportedlocations"] = "yes";
28988
+ }
28967
28989
 
28968
28990
  console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
28969
28991
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
@@ -30670,7 +30692,7 @@ export class SfIEvents extends LitElement {
30670
30692
  day = '0' + day;
30671
30693
  let eDate = month + "/" + day + "/" + year
30672
30694
  let urlBody: any = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
30673
- let url = "https://" + this.apiId + "/getallcountryevents2";
30695
+ let url = "https://" + this.apiId + "/getallcountryevents3";
30674
30696
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
30675
30697
  const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
30676
30698
  this._SfLoader.innerHTML = '';
@@ -30763,7 +30785,7 @@ export class SfIEvents extends LitElement {
30763
30785
  console.log('fetching compliances', sortid)
30764
30786
  let complianceEntityId = sortid.split(';')[1]
30765
30787
  let complianceLocationId = sortid.split(';')[2]
30766
- let url = "https://" + this.apiId + "/getallcountryevents2";
30788
+ let url = "https://" + this.apiId + "/getallcountryevents3";
30767
30789
  let sDateObj = selectedDate
30768
30790
  sDateObj.setDate(selectedDate.getDate() - 60)
30769
30791
  let day = '' + sDateObj.getDate();