sf-i-events 1.0.805 → 1.0.806

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.805",
4
+ "version": "1.0.806",
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
@@ -93,7 +93,7 @@ export declare class SfIEvents extends LitElement {
93
93
  COLOR_NOT_COMPLIED: string;
94
94
  COLOR_PARTIALLY_COMPLIED: string;
95
95
  COLOR_COMPLIED: string;
96
- COLOR_COMPLIED_WITH_GAPS: string;
96
+ COLOR_COMPLIED_WITH_EXCEPTION: string;
97
97
  COLOR_REPORTED_NON_COMPLIANCE: string;
98
98
  STATUS_NOT_STARTED: string;
99
99
  STATUS_PENDING_APPROVAL: string;
package/sf-i-events.js CHANGED
@@ -113,7 +113,7 @@ let SfIEvents = class SfIEvents extends LitElement {
113
113
  this.COLOR_NOT_COMPLIED = "#C80036";
114
114
  this.COLOR_PARTIALLY_COMPLIED = "#F79256";
115
115
  this.COLOR_COMPLIED = "#50cf01";
116
- this.COLOR_COMPLIED_WITH_GAPS = "#ffe505";
116
+ this.COLOR_COMPLIED_WITH_EXCEPTION = "#ffe505";
117
117
  this.COLOR_REPORTED_NON_COMPLIANCE = "#840B0F";
118
118
  this.STATUS_NOT_STARTED = "not-started";
119
119
  this.STATUS_PENDING_APPROVAL = "pending-approval";
@@ -2322,7 +2322,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2322
2322
  html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span>&nbsp;&nbsp;<span>Partially Complied:</span>&nbsp;<span id="graph-partially-complied">DASHBOARD_PARTIALLY_COMPLIED</span></div>';
2323
2323
  html += '<div part="badge-dashboard" id="chip-compliance-3" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied">sweep</span>&nbsp;&nbsp;<span>Complied:</span>&nbsp;<span id="graph-complied">DASHBOARD_COMPLIED</span></div>';
2324
2324
  html += '<div part="badge-dashboard" id="chip-compliance-4" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied-with-gaps">rule</span>&nbsp;&nbsp;<span>Complied With Gaps:</span>&nbsp;<span id="graph-complied-with-gaps">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
2325
- html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span>&nbsp;&nbsp;<span>Reported Non Compliance:</span>&nbsp;<span id="graph-reported-non-compliance">DASHBOARD_REPORTED_NON_COMPLIANCE</span></div>';
2325
+ html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span>&nbsp;&nbsp;<span>Reported Non Compliance:</span>&nbsp;<span id="graph-reported-non-compliance">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
2326
2326
  html += '</div>';
2327
2327
  html += '<div id="stream-event-filter" part="stream-event-total" class="d-flex flex-wrap"></div>';
2328
2328
  return html;
@@ -2914,15 +2914,14 @@ let SfIEvents = class SfIEvents extends LitElement {
2914
2914
  html = html.replace("DASHBOARD_PARTIALLY_COMPLIED", partiallyComplied + "");
2915
2915
  html = html.replace("DASHBOARD_COMPLIED", complied + "");
2916
2916
  html = html.replace("DASHBOARD_COMPLIED_WITH_GAPS", compliedWithGaps + "");
2917
- html = html.replace("DASHBOARD_REPORTED_NON_COMPLIANCE", reportedNonCompliance + "");
2918
- this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps,Reported Non Compliance\n';
2919
- this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + scheduled + "," + notComplied + "," + partiallyComplied + "," + complied + "," + compliedWithGaps + "," + reportedNonCompliance;
2917
+ this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps\n';
2918
+ this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + scheduled + "," + notComplied + "," + partiallyComplied + "," + complied + "," + compliedWithGaps;
2920
2919
  this.htmlDataStats = 'Completeness<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Not Started</th><th class="w-14">Approved</th><th class="w-14">Pending Approval</th><th class="w-14">Rejected</th><tr>';
2921
2920
  this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + notStarted + '</td><td class="w-14 text-center td-odd">' + approved + '</td><td class="w-14 text-center td-odd">' + pendingApproval + '</td><td class="w-14 text-center td-odd">' + rejected + '</td></table>';
2922
2921
  this.htmlDataStats += '<br /><br />Timeliness<br /><br /><table class="mt-20 w-100"><tr><th class="w-14">Total</th><th class="w-14">In Time</th><th class="w-14">Past Due Date</th><th class="w-14">Late Reported</th><th class="w-14">Late Executed</th><th class="w-14">Late Approved</th><tr>';
2923
2922
  this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + (total - (pastDueDate + lateApproved + lateExecuted)) + '</td><td class="w-14 text-center td-odd">' + pastDueDate + '</td><td class="w-14 text-center td-odd">' + lateReported + '</td><td class="w-14 text-center td-odd">' + lateExecuted + '</td><td class="w-14 text-center td-odd">' + lateApproved + '</td><tr></table>';
2924
- this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Scheduled</th><th class="w-14">Not Complied</th><th class="w-14">Partially Complied</th><th class="w-14">Complied</th><th class="w-14">Complied With Gaps</th><th class="w-14">Reported Non Compliance</th><tr>';
2925
- this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + scheduled + '</td><td class="w-14 text-center td-odd">' + notComplied + '</td><td class="w-14 text-center td-odd">' + partiallyComplied + '</td><td class="w-14 text-center td-odd">' + complied + '</td><td class="w-14 text-center td-odd">' + compliedWithGaps + '</td><td class="w-14 text-center td-odd">' + reportedNonCompliance + '</td><tr></table>';
2923
+ this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Scheduled</th><th class="w-14">Not Complied</th><th class="w-14">Partially Complied</th><th class="w-14">Complied</th><th class="w-14">Complied With Gaps</th><tr>';
2924
+ this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + scheduled + '</td><td class="w-14 text-center td-odd">' + notComplied + '</td><td class="w-14 text-center td-odd">' + partiallyComplied + '</td><td class="w-14 text-center td-odd">' + complied + '</td><td class="w-14 text-center td-odd">' + compliedWithGaps + '</td><tr></table>';
2926
2925
  return html;
2927
2926
  };
2928
2927
  this.renderStatistics = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle) => {
@@ -8419,7 +8418,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8419
8418
  this.clearGraph(divContainer, 3);
8420
8419
  this.clearGraph(divContainer, 4);
8421
8420
  const data = {
8422
- labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Compliance'],
8421
+ labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Complinace'],
8423
8422
  datasets: [{
8424
8423
  label: 'Compliances',
8425
8424
  data: [dataScheduled, dataNotComplied, dataPartiallyComplied, dataComplied, dataCompliedWithGaps, dataReportedNonComplaince],
@@ -8429,7 +8428,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8429
8428
  this.COLOR_NOT_COMPLIED,
8430
8429
  this.COLOR_PARTIALLY_COMPLIED,
8431
8430
  this.COLOR_COMPLIED,
8432
- this.COLOR_COMPLIED_WITH_GAPS,
8431
+ this.COLOR_COMPLIED_WITH_EXCEPTION,
8433
8432
  this.COLOR_REPORTED_NON_COMPLIANCE
8434
8433
  ]
8435
8434
  }]
@@ -8672,7 +8671,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8672
8671
  for (i = 0; i < Object.keys(complianceData).length; i++) {
8673
8672
  dataBar2['datasets'][4]['data'].push(complianceData[Object.keys(complianceData)[i]]['complied-with-gaps']);
8674
8673
  }
8675
- dataBar2['datasets'][4]['backgroundColor'] = this.COLOR_COMPLIED_WITH_GAPS;
8674
+ dataBar2['datasets'][4]['backgroundColor'] = this.COLOR_COMPLIED_WITH_EXCEPTION;
8676
8675
  dataBar2['datasets'][5]['label'] = 'Reported Non Compliance';
8677
8676
  dataBar2['datasets'][5]['data'] = [];
8678
8677
  for (i = 0; i < Object.keys(complianceData).length; i++) {
@@ -9592,7 +9591,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9592
9591
  };
9593
9592
  this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer) => {
9594
9593
  console.log('listEvent', listEvent, listEvent.id);
9595
- let url = "https://" + this.apiId + "/getalleventdetails1";
9594
+ let url = "https://" + this.apiId + "/getalleventdetails";
9596
9595
  //console.log('fetch calendar url', url);
9597
9596
  let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY };
9598
9597
  //console.log('urlbody', urlBody);
@@ -15760,9 +15759,6 @@ let SfIEvents = class SfIEvents extends LitElement {
15760
15759
  let graphparamname1Arr = graphparamnames1[i].innerHTML.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ').split(' • ');
15761
15760
  let filterFound = false;
15762
15761
  for (let tempFilterStr of graphparamname1Arr) {
15763
- if (clickedValue == "reported non compliance") {
15764
- console.log('comparing filter', tempFilterStr, this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '));
15765
- }
15766
15762
  if (tempFilterStr == this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ') == "") {
15767
15763
  filterFound = true;
15768
15764
  break;
@@ -16934,7 +16930,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16934
16930
  }
16935
16931
  };
16936
16932
  this.uploadAudit = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
16937
- let url = "https://" + this.apiId + "/uploadaudit1";
16933
+ let url = "https://" + this.apiId + "/uploadaudit";
16938
16934
  const body = {
16939
16935
  "mmddyyyy": mmddyyyy,
16940
16936
  "projectid": this.projectId,
@@ -16972,7 +16968,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16972
16968
  }
16973
16969
  };
16974
16970
  this.uploadAuditsBulk = async (bulkBody) => {
16975
- let url = "https://" + this.apiId + "/uploadauditsbulk1";
16971
+ let url = "https://" + this.apiId + "/uploadauditsbulk";
16976
16972
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
16977
16973
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
16978
16974
  this._SfLoader.innerHTML = '';
@@ -16988,7 +16984,7 @@ let SfIEvents = class SfIEvents extends LitElement {
16988
16984
  }
16989
16985
  };
16990
16986
  this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
16991
- let url = "https://" + this.apiId + "/uploadreview2";
16987
+ let url = "https://" + this.apiId + "/uploadreview";
16992
16988
  const body = {
16993
16989
  "mmddyyyy": mmddyyyy,
16994
16990
  "projectid": this.projectId,
@@ -17030,7 +17026,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17030
17026
  }
17031
17027
  };
17032
17028
  this.uploadReportsReviewsBulk = async (bulkBody) => {
17033
- let url = "https://" + this.apiId + "/uploadreportsreviewsbulk2";
17029
+ let url = "https://" + this.apiId + "/uploadreportsreviewsbulk";
17034
17030
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17035
17031
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17036
17032
  this._SfLoader.innerHTML = '';
@@ -17049,7 +17045,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17049
17045
  }
17050
17046
  };
17051
17047
  this.uploadReviewsBulk = async (bulkBody) => {
17052
- let url = "https://" + this.apiId + "/uploadreviewsbulk2";
17048
+ let url = "https://" + this.apiId + "/uploadreviewsbulk";
17053
17049
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17054
17050
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17055
17051
  this._SfLoader.innerHTML = '';
@@ -17068,7 +17064,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17068
17064
  }
17069
17065
  };
17070
17066
  this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100") => {
17071
- let url = "https://" + this.apiId + "/uploadreport2";
17067
+ let url = "https://" + this.apiId + "/uploadreport";
17072
17068
  let body = {
17073
17069
  "mmddyyyy": mmddyyyy,
17074
17070
  "projectid": this.projectId,
@@ -17117,7 +17113,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17117
17113
  }
17118
17114
  };
17119
17115
  this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
17120
- let url = "https://" + this.apiId + "/uploadreportsbulk2";
17116
+ let url = "https://" + this.apiId + "/uploadreportsbulk";
17121
17117
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17122
17118
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17123
17119
  if (showSuccess) {
@@ -18324,7 +18320,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18324
18320
  };
18325
18321
  this.fetchRegisters = async (searchString = "", meta = "", selectedCountry = "", selectedStatute = "") => {
18326
18322
  let path = "";
18327
- path = "getallfunctionevents1";
18323
+ path = "getallfunctionevents";
18328
18324
  let url = "https://" + this.apiId + "/" + path;
18329
18325
  let locationId = "";
18330
18326
  let entityId = "";
@@ -18377,7 +18373,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18377
18373
  else {
18378
18374
  view = "entity";
18379
18375
  }
18380
- path = "getallcountryevents3";
18376
+ path = "getallcountryevents";
18381
18377
  let sDate = "";
18382
18378
  let eDate = "";
18383
18379
  //console.log('currenttab', this.getCurrentTab());
@@ -116,7 +116,7 @@ export class SfIEvents extends LitElement {
116
116
  COLOR_NOT_COMPLIED = "#C80036";
117
117
  COLOR_PARTIALLY_COMPLIED = "#F79256";
118
118
  COLOR_COMPLIED = "#50cf01";
119
- COLOR_COMPLIED_WITH_GAPS = "#ffe505";
119
+ COLOR_COMPLIED_WITH_EXCEPTION = "#ffe505";
120
120
  COLOR_REPORTED_NON_COMPLIANCE = "#840B0F";
121
121
  STATUS_NOT_STARTED = "not-started";
122
122
  STATUS_PENDING_APPROVAL = "pending-approval";
@@ -4469,7 +4469,7 @@ export class SfIEvents extends LitElement {
4469
4469
  html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span>&nbsp;&nbsp;<span>Partially Complied:</span>&nbsp;<span id="graph-partially-complied">DASHBOARD_PARTIALLY_COMPLIED</span></div>';
4470
4470
  html += '<div part="badge-dashboard" id="chip-compliance-3" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied">sweep</span>&nbsp;&nbsp;<span>Complied:</span>&nbsp;<span id="graph-complied">DASHBOARD_COMPLIED</span></div>';
4471
4471
  html += '<div part="badge-dashboard" id="chip-compliance-4" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied-with-gaps">rule</span>&nbsp;&nbsp;<span>Complied With Gaps:</span>&nbsp;<span id="graph-complied-with-gaps">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
4472
- html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span>&nbsp;&nbsp;<span>Reported Non Compliance:</span>&nbsp;<span id="graph-reported-non-compliance">DASHBOARD_REPORTED_NON_COMPLIANCE</span></div>';
4472
+ html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span>&nbsp;&nbsp;<span>Reported Non Compliance:</span>&nbsp;<span id="graph-reported-non-compliance">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
4473
4473
  html += '</div>';
4474
4474
 
4475
4475
  html += '<div id="stream-event-filter" part="stream-event-total" class="d-flex flex-wrap"></div>';
@@ -5179,10 +5179,9 @@ export class SfIEvents extends LitElement {
5179
5179
  html = html.replace("DASHBOARD_PARTIALLY_COMPLIED", partiallyComplied+"");
5180
5180
  html = html.replace("DASHBOARD_COMPLIED", complied+"");
5181
5181
  html = html.replace("DASHBOARD_COMPLIED_WITH_GAPS", compliedWithGaps+"");
5182
- html = html.replace("DASHBOARD_REPORTED_NON_COMPLIANCE", reportedNonCompliance+"");
5183
5182
 
5184
- this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps,Reported Non Compliance\n';
5185
- this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + scheduled + "," + notComplied + "," + partiallyComplied + "," + complied+ "," + compliedWithGaps+ "," + reportedNonCompliance;
5183
+ this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps\n';
5184
+ this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + scheduled + "," + notComplied + "," + partiallyComplied + "," + complied+ "," + compliedWithGaps;
5186
5185
 
5187
5186
  this.htmlDataStats = 'Completeness<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Not Started</th><th class="w-14">Approved</th><th class="w-14">Pending Approval</th><th class="w-14">Rejected</th><tr>';
5188
5187
  this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">'+total+'</td><td class="w-14 text-center td-odd">'+notStarted+'</td><td class="w-14 text-center td-odd">'+approved+'</td><td class="w-14 text-center td-odd">'+pendingApproval+'</td><td class="w-14 text-center td-odd">'+rejected+'</td></table>'
@@ -5190,8 +5189,8 @@ export class SfIEvents extends LitElement {
5190
5189
  this.htmlDataStats += '<br /><br />Timeliness<br /><br /><table class="mt-20 w-100"><tr><th class="w-14">Total</th><th class="w-14">In Time</th><th class="w-14">Past Due Date</th><th class="w-14">Late Reported</th><th class="w-14">Late Executed</th><th class="w-14">Late Approved</th><tr>';
5191
5190
  this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">'+total+'</td><td class="w-14 text-center td-odd">'+(total-(pastDueDate+lateApproved+lateExecuted))+'</td><td class="w-14 text-center td-odd">'+pastDueDate+'</td><td class="w-14 text-center td-odd">'+lateReported+'</td><td class="w-14 text-center td-odd">'+lateExecuted+'</td><td class="w-14 text-center td-odd">'+lateApproved+'</td><tr></table>'
5192
5191
 
5193
- this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Scheduled</th><th class="w-14">Not Complied</th><th class="w-14">Partially Complied</th><th class="w-14">Complied</th><th class="w-14">Complied With Gaps</th><th class="w-14">Reported Non Compliance</th><tr>';
5194
- this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">'+total+'</td><td class="w-14 text-center td-odd">'+scheduled+'</td><td class="w-14 text-center td-odd">'+notComplied+'</td><td class="w-14 text-center td-odd">'+partiallyComplied+'</td><td class="w-14 text-center td-odd">'+complied+'</td><td class="w-14 text-center td-odd">'+compliedWithGaps+'</td><td class="w-14 text-center td-odd">'+reportedNonCompliance+'</td><tr></table>'
5192
+ this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Scheduled</th><th class="w-14">Not Complied</th><th class="w-14">Partially Complied</th><th class="w-14">Complied</th><th class="w-14">Complied With Gaps</th><tr>';
5193
+ this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">'+total+'</td><td class="w-14 text-center td-odd">'+scheduled+'</td><td class="w-14 text-center td-odd">'+notComplied+'</td><td class="w-14 text-center td-odd">'+partiallyComplied+'</td><td class="w-14 text-center td-odd">'+complied+'</td><td class="w-14 text-center td-odd">'+compliedWithGaps+'</td><tr></table>'
5195
5194
 
5196
5195
  return html;
5197
5196
 
@@ -11774,7 +11773,7 @@ export class SfIEvents extends LitElement {
11774
11773
  this.clearGraph(divContainer, 4);
11775
11774
 
11776
11775
  const data = {
11777
- labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps','Reported Non Compliance'],
11776
+ labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps','Reported Non Complinace'],
11778
11777
  datasets: [{
11779
11778
  label: 'Compliances',
11780
11779
  data: [dataScheduled, dataNotComplied, dataPartiallyComplied, dataComplied, dataCompliedWithGaps, dataReportedNonComplaince],
@@ -11784,7 +11783,7 @@ export class SfIEvents extends LitElement {
11784
11783
  this.COLOR_NOT_COMPLIED,
11785
11784
  this.COLOR_PARTIALLY_COMPLIED,
11786
11785
  this.COLOR_COMPLIED,
11787
- this.COLOR_COMPLIED_WITH_GAPS,
11786
+ this.COLOR_COMPLIED_WITH_EXCEPTION,
11788
11787
  this.COLOR_REPORTED_NON_COMPLIANCE
11789
11788
  ]
11790
11789
  }]
@@ -12094,7 +12093,7 @@ export class SfIEvents extends LitElement {
12094
12093
  for(i = 0; i < Object.keys(complianceData).length; i++) {
12095
12094
  dataBar2['datasets'][4]['data'].push(complianceData[Object.keys(complianceData)[i]]['complied-with-gaps']);
12096
12095
  }
12097
- dataBar2['datasets'][4]['backgroundColor'] = this.COLOR_COMPLIED_WITH_GAPS;
12096
+ dataBar2['datasets'][4]['backgroundColor'] = this.COLOR_COMPLIED_WITH_EXCEPTION;
12098
12097
 
12099
12098
  dataBar2['datasets'][5]['label'] = 'Reported Non Compliance';
12100
12099
  dataBar2['datasets'][5]['data'] = [];
@@ -13204,7 +13203,7 @@ export class SfIEvents extends LitElement {
13204
13203
 
13205
13204
  fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => {
13206
13205
  console.log('listEvent', listEvent, listEvent.id)
13207
- let url = "https://"+this.apiId+"/getalleventdetails1";
13206
+ let url = "https://"+this.apiId+"/getalleventdetails";
13208
13207
 
13209
13208
  //console.log('fetch calendar url', url);
13210
13209
  let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY};
@@ -20932,7 +20931,7 @@ export class SfIEvents extends LitElement {
20932
20931
  }, 10000);
20933
20932
  }
20934
20933
 
20935
-
20934
+
20936
20935
  for(var i = 0; i < divs.length; i++) {
20937
20936
 
20938
20937
  // console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '));
@@ -20942,9 +20941,6 @@ export class SfIEvents extends LitElement {
20942
20941
  let graphparamname1Arr = (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ').split(' • ');
20943
20942
  let filterFound = false;
20944
20943
  for(let tempFilterStr of graphparamname1Arr){
20945
- if(clickedValue == "reported non compliance"){
20946
- console.log('comparing filter', tempFilterStr, this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '))
20947
- }
20948
20944
  if(tempFilterStr == this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' ') == ""){
20949
20945
  filterFound = true;
20950
20946
  break;
@@ -22414,7 +22410,7 @@ export class SfIEvents extends LitElement {
22414
22410
  }
22415
22411
 
22416
22412
  uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
22417
- let url = "https://"+this.apiId+"/uploadaudit1";
22413
+ let url = "https://"+this.apiId+"/uploadaudit";
22418
22414
 
22419
22415
  const body = {
22420
22416
  "mmddyyyy": mmddyyyy,
@@ -22454,7 +22450,7 @@ export class SfIEvents extends LitElement {
22454
22450
  }
22455
22451
  }
22456
22452
  uploadAuditsBulk = async (bulkBody: any) => {
22457
- let url = "https://"+this.apiId+"/uploadauditsbulk1";
22453
+ let url = "https://"+this.apiId+"/uploadauditsbulk";
22458
22454
 
22459
22455
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22460
22456
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -22473,7 +22469,7 @@ export class SfIEvents extends LitElement {
22473
22469
  }
22474
22470
 
22475
22471
  uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
22476
- let url = "https://"+this.apiId+"/uploadreview2";
22472
+ let url = "https://"+this.apiId+"/uploadreview";
22477
22473
 
22478
22474
  const body = {
22479
22475
  "mmddyyyy": mmddyyyy,
@@ -22518,7 +22514,7 @@ export class SfIEvents extends LitElement {
22518
22514
  }
22519
22515
  }
22520
22516
  uploadReportsReviewsBulk = async (bulkBody: any) => {
22521
- let url = "https://"+this.apiId+"/uploadreportsreviewsbulk2";
22517
+ let url = "https://"+this.apiId+"/uploadreportsreviewsbulk";
22522
22518
 
22523
22519
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22524
22520
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -22538,7 +22534,7 @@ export class SfIEvents extends LitElement {
22538
22534
  }
22539
22535
  }
22540
22536
  uploadReviewsBulk = async (bulkBody: any) => {
22541
- let url = "https://"+this.apiId+"/uploadreviewsbulk2";
22537
+ let url = "https://"+this.apiId+"/uploadreviewsbulk";
22542
22538
 
22543
22539
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22544
22540
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -22559,7 +22555,7 @@ export class SfIEvents extends LitElement {
22559
22555
  }
22560
22556
 
22561
22557
  uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100") => {
22562
- let url = "https://"+this.apiId+"/uploadreport2";
22558
+ let url = "https://"+this.apiId+"/uploadreport";
22563
22559
 
22564
22560
  let body = {
22565
22561
  "mmddyyyy": mmddyyyy,
@@ -22613,7 +22609,7 @@ export class SfIEvents extends LitElement {
22613
22609
  }
22614
22610
 
22615
22611
  uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
22616
- let url = "https://"+this.apiId+"/uploadreportsbulk2"
22612
+ let url = "https://"+this.apiId+"/uploadreportsbulk"
22617
22613
 
22618
22614
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22619
22615
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -24323,7 +24319,7 @@ export class SfIEvents extends LitElement {
24323
24319
 
24324
24320
  let path = "";
24325
24321
 
24326
- path = "getallfunctionevents1";
24322
+ path = "getallfunctionevents";
24327
24323
 
24328
24324
  let url = "https://"+this.apiId+"/"+ path;
24329
24325
 
@@ -24386,7 +24382,7 @@ export class SfIEvents extends LitElement {
24386
24382
  view = "entity";
24387
24383
  }
24388
24384
 
24389
- path = "getallcountryevents3";
24385
+ path = "getallcountryevents";
24390
24386
 
24391
24387
  let sDate = "";
24392
24388
  let eDate = "";