sf-i-events 1.0.864 → 1.0.865

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.864",
4
+ "version": "1.0.865",
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
@@ -464,7 +464,7 @@ export declare class SfIEvents extends LitElement {
464
464
  renderLatestCompliance: (mmddyyyy: string, event: any) => any;
465
465
  getCompletenessStatus: (event: any) => "rejected" | "not-started" | "pending-approval" | "approved";
466
466
  getTimelinessStatus: (mmdd: string, event: any, completeness: string) => "late-executed" | "late-reported" | "late-approved" | "past-due-date" | "in-time";
467
- getComplianceStatus: (completeness: string, timeliness: string, percentage?: string, event?: any, mmdd?: string) => "active" | "expired" | "scheduled" | "not-complied" | "partially-complied" | "complied" | "complied-with-gaps" | "reported-non-compliance" | "about-to-expire";
467
+ getComplianceStatus: (completeness: string, timeliness: string, percentage?: string, event?: any) => "active" | "expired" | "scheduled" | "not-complied" | "partially-complied" | "complied" | "complied-with-gaps" | "reported-non-compliance" | "about-to-expire";
468
468
  numcalled: number;
469
469
  updateStats: (event: any, partStatus: string, lateStatus: string, complianceStatus: string) => void;
470
470
  renderCalendarGraphs: (showGraph: boolean, parametersTitle: string, showBackgroundButton: boolean) => string;
package/sf-i-events.js CHANGED
@@ -2133,7 +2133,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2133
2133
  }
2134
2134
  }
2135
2135
  };
2136
- this.getComplianceStatus = (completeness, timeliness, percentage, event = {}, mmdd = "") => {
2136
+ this.getComplianceStatus = (completeness, timeliness, percentage, event = {}) => {
2137
2137
  if (event.module == "agreement") {
2138
2138
  if (completeness == "not-started") {
2139
2139
  if (timeliness == "in-time") {
@@ -2887,7 +2887,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2887
2887
  // //console.log('eventlog1', tempEvents1['06/30'][7].comments, mmdd, j);
2888
2888
  partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(this.events[mmdd][j])));
2889
2889
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(this.events[mmdd][j])), partStatus);
2890
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage, JSON.parse(JSON.stringify(this.events[mmdd][j])), mmdd);
2890
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage, JSON.parse(JSON.stringify(this.events[mmdd][j])));
2891
2891
  console.log("agreement partStatus", partStatus, lateStatus, complianceStatus);
2892
2892
  if (this.flowGraph == this.FLOW_GRAPH_TIMELINESS) {
2893
2893
  bgStatus += lateStatus;
@@ -20479,7 +20479,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20479
20479
  var complianceStatus = "";
20480
20480
  partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
20481
20481
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])), partStatus);
20482
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])), mmdd);
20482
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
20483
20483
  notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
20484
20484
  pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
20485
20485
  rejected = rejected + (partStatus == "rejected" ? 1 : 0);
@@ -21027,7 +21027,7 @@ let SfIEvents = class SfIEvents extends LitElement {
21027
21027
  continue;
21028
21028
  }
21029
21029
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[mmdd][j])), partStatus);
21030
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[mmdd][j])), mmdd);
21030
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[mmdd][j])));
21031
21031
  // notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
21032
21032
  // pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
21033
21033
  // rejected = rejected + (partStatus == "rejected" ? 1 : 0);
@@ -4261,7 +4261,7 @@ export class SfIEvents extends LitElement {
4261
4261
 
4262
4262
  }
4263
4263
 
4264
- getComplianceStatus = (completeness: string, timeliness: string, percentage?: string, event: any = {}, mmdd: string = "") => {
4264
+ getComplianceStatus = (completeness: string, timeliness: string, percentage?: string, event: any = {}) => {
4265
4265
  if (event.module == "agreement") {
4266
4266
  if (completeness == "not-started") {
4267
4267
 
@@ -5143,7 +5143,7 @@ export class SfIEvents extends LitElement {
5143
5143
 
5144
5144
  partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(this.events[mmdd][j])));
5145
5145
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(this.events[mmdd][j])), partStatus);
5146
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage, JSON.parse(JSON.stringify(this.events[mmdd][j])), mmdd);
5146
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage, JSON.parse(JSON.stringify(this.events[mmdd][j])));
5147
5147
  console.log("agreement partStatus", partStatus, lateStatus, complianceStatus);
5148
5148
  if (this.flowGraph == this.FLOW_GRAPH_TIMELINESS) {
5149
5149
  bgStatus += lateStatus
@@ -26671,7 +26671,7 @@ export class SfIEvents extends LitElement {
26671
26671
  var complianceStatus = "";
26672
26672
  partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
26673
26673
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])), partStatus);
26674
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])), mmdd);
26674
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
26675
26675
  notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
26676
26676
  pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
26677
26677
  rejected = rejected + (partStatus == "rejected" ? 1 : 0);
@@ -27288,7 +27288,7 @@ export class SfIEvents extends LitElement {
27288
27288
  partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(eventsData[mmdd][j])));
27289
27289
  if (partStatus != "not-started") { continue; }
27290
27290
  lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[mmdd][j])), partStatus);
27291
- complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[mmdd][j])), mmdd);
27291
+ complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[mmdd][j])));
27292
27292
  // notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
27293
27293
  // pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
27294
27294
  // rejected = rejected + (partStatus == "rejected" ? 1 : 0);