sf-i-events 1.0.876 → 1.0.878
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 +1 -1
- package/sf-i-events.js +6 -5
- package/src/sf-i-events.ts +6 -5
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2909,7 +2909,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2909
2909
|
// csvCols += 'Period,Status,Id,ObligationTitle,Obligation,Duedate'
|
|
2910
2910
|
csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter';
|
|
2911
2911
|
htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>';
|
|
2912
|
-
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">
|
|
2912
|
+
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>';
|
|
2913
2913
|
for (var i = iInit; i <= iLast; i++) {
|
|
2914
2914
|
let mmdd = "";
|
|
2915
2915
|
if (firstDate == null) {
|
|
@@ -3055,7 +3055,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3055
3055
|
+ '</tr>');
|
|
3056
3056
|
htmlSummaryValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin"><sf-i-elastic-text text="' + this.events[mmdd][j]["id"] + '" minLength="10"></sf-i-elastic-text></td>'
|
|
3057
3057
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3058
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligation"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3058
|
+
// + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligation"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3059
3059
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3060
3060
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3061
3061
|
for (let document of this.events[mmdd][j].documents) {
|
|
@@ -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
|
|
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
|
-
|
|
18099
|
+
console.log('pieIndex', labelClicked);
|
|
18099
18100
|
if (!callingFromBar) {
|
|
18100
18101
|
console.log('pieIndex', labelClicked);
|
|
18101
18102
|
console.log('calling processGraphFilter 2');
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5158,7 +5158,7 @@ export class SfIEvents extends LitElement {
|
|
|
5158
5158
|
csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
|
|
5159
5159
|
htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
|
|
5160
5160
|
|
|
5161
|
-
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">
|
|
5161
|
+
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
|
|
5162
5162
|
|
|
5163
5163
|
for (var i = iInit; i <= iLast; i++) {
|
|
5164
5164
|
|
|
@@ -5319,7 +5319,7 @@ export class SfIEvents extends LitElement {
|
|
|
5319
5319
|
+ '</tr>');
|
|
5320
5320
|
htmlSummaryValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin"><sf-i-elastic-text text="' + this.events[mmdd][j]["id"] + '" minLength="10"></sf-i-elastic-text></td>'
|
|
5321
5321
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
5322
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligation"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
5322
|
+
// + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligation"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
5323
5323
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
5324
5324
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
5325
5325
|
|
|
@@ -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
|
|
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
|
-
|
|
23523
|
+
console.log('pieIndex', labelClicked);
|
|
23523
23524
|
|
|
23524
23525
|
if (!callingFromBar) {
|
|
23525
23526
|
console.log('pieIndex', labelClicked);
|