sf-i-events 1.0.876 → 1.0.877

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.876",
4
+ "version": "1.0.877",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -8866,7 +8866,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8866
8866
  this.clearGraph(divContainer, 3);
8867
8867
  this.clearGraph(divContainer, 4);
8868
8868
  data = {
8869
- labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Complinace'],
8869
+ labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Compliance'],
8870
8870
  datasets: [{
8871
8871
  label: 'Compliances',
8872
8872
  data: [dataScheduled, dataNotComplied, dataPartiallyComplied, dataComplied, dataCompliedWithGaps, dataReportedNonComplaince],
@@ -17911,6 +17911,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17911
17911
  let graphparamname1Arr = graphparamnames1[i].innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' ').split(' • ');
17912
17912
  let filterFound = false;
17913
17913
  for (let tempFilterStr of graphparamname1Arr) {
17914
+ console.log('graphparamname1Arr', tempFilterStr, this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '), tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
17914
17915
  if (tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') == "") {
17915
17916
  filterFound = true;
17916
17917
  break;
@@ -18073,7 +18074,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18073
18074
  this.clickOnLegend = (hide, label) => {
18074
18075
  //console.log(hide, label);
18075
18076
  let labelClicked = '';
18076
- if (this.flowGraph == this.FLOW_GRAPH_COMPLETENESS || this.flowGraph == this.FLOW_GRAPH_TIMELINESS) {
18077
+ if (this.flowGraph == this.FLOW_GRAPH_COMPLETENESS || this.flowGraph == this.FLOW_GRAPH_TIMELINESS || this.flowGraph == this.FLOW_GRAPH_COMPLIANCE) {
18077
18078
  labelClicked = (label).toLowerCase().replace(/ /g, "-").replace('status-', '');
18078
18079
  }
18079
18080
  else {
@@ -18095,7 +18096,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18095
18096
  else {
18096
18097
  labelClicked = (this.chart.data.labels[pieIndex] + "").toLowerCase();
18097
18098
  }
18098
- //console.log('pieIndex', labelClicked);
18099
+ console.log('pieIndex', labelClicked);
18099
18100
  if (!callingFromBar) {
18100
18101
  console.log('pieIndex', labelClicked);
18101
18102
  console.log('calling processGraphFilter 2');
@@ -12228,7 +12228,7 @@ export class SfIEvents extends LitElement {
12228
12228
  this.clearGraph(divContainer, 4);
12229
12229
 
12230
12230
  data = {
12231
- labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Complinace'],
12231
+ labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Compliance'],
12232
12232
  datasets: [{
12233
12233
  label: 'Compliances',
12234
12234
  data: [dataScheduled, dataNotComplied, dataPartiallyComplied, dataComplied, dataCompliedWithGaps, dataReportedNonComplaince],
@@ -23307,6 +23307,7 @@ export class SfIEvents extends LitElement {
23307
23307
  let graphparamname1Arr = (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' ').split(' • ');
23308
23308
  let filterFound = false;
23309
23309
  for (let tempFilterStr of graphparamname1Arr) {
23310
+ console.log('graphparamname1Arr', tempFilterStr,this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '),tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
23310
23311
  if (tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') == "") {
23311
23312
  filterFound = true;
23312
23313
  break;
@@ -23491,7 +23492,7 @@ export class SfIEvents extends LitElement {
23491
23492
  //console.log(hide, label);
23492
23493
  let labelClicked = '';
23493
23494
 
23494
- if (this.flowGraph == this.FLOW_GRAPH_COMPLETENESS || this.flowGraph == this.FLOW_GRAPH_TIMELINESS) {
23495
+ if (this.flowGraph == this.FLOW_GRAPH_COMPLETENESS || this.flowGraph == this.FLOW_GRAPH_TIMELINESS || this.flowGraph == this.FLOW_GRAPH_COMPLIANCE) {
23495
23496
  labelClicked = (label).toLowerCase().replace(/ /g, "-").replace('status-', '');
23496
23497
  } else {
23497
23498
  labelClicked = (label).toLowerCase();
@@ -23519,7 +23520,7 @@ export class SfIEvents extends LitElement {
23519
23520
  labelClicked = (this.chart.data.labels[pieIndex] + "").toLowerCase();
23520
23521
  }
23521
23522
 
23522
- //console.log('pieIndex', labelClicked);
23523
+ console.log('pieIndex', labelClicked);
23523
23524
 
23524
23525
  if (!callingFromBar) {
23525
23526
  console.log('pieIndex', labelClicked);