sf-i-events 1.0.878 → 1.0.880
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 +7 -6
- package/package.json +1 -1
- package/sf-i-events.d.ts +1 -0
- package/sf-i-events.js +258 -122
- package/src/sf-i-events.ts +266 -131
- package/src/util.ts +3 -3
- package/util.js +3 -3
package/src/sf-i-events.ts
CHANGED
|
@@ -294,7 +294,7 @@ export class SfIEvents extends LitElement {
|
|
|
294
294
|
<div class="d-flex justify-between align-center">
|
|
295
295
|
<div>
|
|
296
296
|
<div>Date: PERSON_DATE</div>
|
|
297
|
-
<div>
|
|
297
|
+
<div>Criteria: PERSON_CRITERIA</div>
|
|
298
298
|
</div>
|
|
299
299
|
<div>
|
|
300
300
|
<div>Name: PERSON_NAME</div>
|
|
@@ -1291,6 +1291,9 @@ export class SfIEvents extends LitElement {
|
|
|
1291
1291
|
@property()
|
|
1292
1292
|
projectName!: string;
|
|
1293
1293
|
|
|
1294
|
+
@property()
|
|
1295
|
+
selectedCriteria!: string;
|
|
1296
|
+
|
|
1294
1297
|
@property()
|
|
1295
1298
|
apiResponseFieldList!: string;
|
|
1296
1299
|
|
|
@@ -4267,7 +4270,7 @@ export class SfIEvents extends LitElement {
|
|
|
4267
4270
|
getComplianceStatus = (completeness: string, timeliness: string, percentage?: string, event: any = {}) => {
|
|
4268
4271
|
if (event.module == "contract") {
|
|
4269
4272
|
console.log('compliance status', event.terminated, completeness, timeliness)
|
|
4270
|
-
if(event.terminated){
|
|
4273
|
+
if (event.terminated) {
|
|
4271
4274
|
return "terminated"
|
|
4272
4275
|
}
|
|
4273
4276
|
if (completeness == "not-started") {
|
|
@@ -5154,11 +5157,25 @@ export class SfIEvents extends LitElement {
|
|
|
5154
5157
|
html += this.renderCalendarEventSummary();
|
|
5155
5158
|
|
|
5156
5159
|
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
5161
|
+
csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter'
|
|
5162
|
+
htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">Party 1</th><th class="td-thin">Party 2</th><th class="td-wide">Party 3</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
|
|
5163
|
+
|
|
5164
|
+
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
5165
|
+
csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
|
|
5166
|
+
htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</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">ObligationType</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>'
|
|
5167
|
+
} else {
|
|
5168
|
+
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'
|
|
5169
|
+
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>'
|
|
5170
|
+
}
|
|
5160
5171
|
|
|
5161
|
-
|
|
5172
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
5173
|
+
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
|
|
5174
|
+
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
5175
|
+
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
|
|
5176
|
+
} else {
|
|
5177
|
+
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>'
|
|
5178
|
+
}
|
|
5162
5179
|
|
|
5163
5180
|
for (var i = iInit; i <= iLast; i++) {
|
|
5164
5181
|
|
|
@@ -5240,94 +5257,199 @@ export class SfIEvents extends LitElement {
|
|
|
5240
5257
|
|
|
5241
5258
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
5242
5259
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
5260
|
+
if(this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] != null){
|
|
5261
|
+
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE + "obj"] = this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE];
|
|
5262
|
+
}
|
|
5243
5263
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
5244
5264
|
|
|
5245
5265
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
5246
5266
|
if (this.events[mmdd][j]["documents"] != null) {
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5267
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
5268
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter
|
|
5269
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
5270
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
5271
|
+
csvValues += ('"' + ((this.events[mmdd][j]["contracttypename"] + "").replace(/"/g, "") + '",'));
|
|
5272
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5273
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5274
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5275
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party1"] + "").replace(/"/g, "") + '",'));
|
|
5276
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party2"] + "").replace(/"/g, "") + '",'));
|
|
5277
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party3"] + "").replace(/"/g, "") + '",'));
|
|
5278
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["reporters"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5279
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["approvers"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5280
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["functionheads"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5281
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
5282
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
5283
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
5284
|
+
|
|
5285
|
+
//Id,RefNo,Type,Country,Entity,Location,Party1,Party2,Party3,DueDate,Status,ReportParameter
|
|
5286
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
5287
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
5288
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["contracttypename"] + '</td>'
|
|
5289
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5290
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5291
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5292
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["party1"] + '</td>'
|
|
5293
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["party2"] + '</td>'
|
|
5294
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["party3"] + '</td>'
|
|
5295
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
5296
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
5297
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
5298
|
+
+ '</tr>');
|
|
5299
|
+
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
5300
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter
|
|
5301
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
5302
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
5303
|
+
csvValues += ('"' + ((this.events[mmdd][j]["licensetypename"] + "").replace(/"/g, "") + '",'));
|
|
5304
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5305
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5306
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5307
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["reporters"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5308
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["approvers"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5309
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["functionheads"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5310
|
+
csvValues += ('"' + (this.events?.[mmdd]?.[j]?.statute?.state ?? "" + '",'));
|
|
5311
|
+
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
5312
|
+
csvValues += ('"' + (this.events?.[mmdd]?.[j]?.complianceobj?.category ?? "" + '",'));
|
|
5313
|
+
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
5314
|
+
csvValues += ('"' + (this.events?.[mmdd]?.[j]?.statute?.name + '",'));
|
|
5315
|
+
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
5316
|
+
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
5317
|
+
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
5318
|
+
csvValues += ('"' + (((this.events?.[mmdd]?.[j]?.complianceobj?.subfrequency ?? "") + "").replace(/"/g, "") + '",'));
|
|
5319
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
5320
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
5321
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
5322
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
5323
|
+
|
|
5324
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter
|
|
5325
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
5326
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
5327
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["licensetypename"] + '</td>'
|
|
5328
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5329
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5330
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
5331
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events?.[mmdd]?.[j]?.statute?.state ?? "") + '</td>'
|
|
5332
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
|
|
5333
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + (this.events?.[mmdd]?.[j]?.complianceobj?.category ?? "") + '</td>'
|
|
5334
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["subcategory"] + '</td>'
|
|
5335
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + (this.events?.[mmdd]?.[j]?.statute?.name ?? "") + '</td>'
|
|
5336
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
|
|
5337
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
|
|
5338
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
|
|
5339
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
|
|
5340
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((this.events?.[mmdd]?.[j]?.complianceobj?.subfrequency ?? "") + "").replace(/"/g, "") + '</td>'
|
|
5341
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
5342
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
5343
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
5344
|
+
+ '</tr>');
|
|
5345
|
+
} else {
|
|
5346
|
+
//Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State
|
|
5347
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
5348
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5349
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5350
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5351
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["functions"] ?? [])[0] ?? "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
5352
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["reporters"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5353
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["approvers"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5354
|
+
csvValues += ('"' + ((((this.events[mmdd][j]["functionheads"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5355
|
+
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
5356
|
+
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
5357
|
+
csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
|
|
5358
|
+
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
5359
|
+
csvValues += ('"' + (this.events[mmdd][j]["statute"] + '",'));
|
|
5360
|
+
csvValues += ('"' + ((this.events[mmdd][j]["reference"] + "").replace(/"/g, "") + '",'));
|
|
5361
|
+
csvValues += ('"' + ((this.events[mmdd][j]["applicability"] + "").replace(/"/g, "") + '",'));
|
|
5362
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
5363
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
5364
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligation"] + "").replace(/"/g, "") + '",'));
|
|
5365
|
+
csvValues += ('"' + ((this.events[mmdd][j]["firstlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
5366
|
+
csvValues += ('"' + ((this.events[mmdd][j]["secondlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
5367
|
+
csvValues += ('"' + ((this.events[mmdd][j]["thirdlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
5368
|
+
csvValues += ('"' + ((this.events[mmdd][j]["internalcontrols"] + "").replace(/"/g, "") + '",'));
|
|
5369
|
+
csvValues += ('"' + ((this.events[mmdd][j]["penalty"] + "").replace(/"/g, "") + '",'));
|
|
5370
|
+
csvValues += ('"' + ((this.events[mmdd][j]["form"] + "").replace(/"/g, "") + '",'));
|
|
5371
|
+
csvValues += ('"' + ((this.events[mmdd][j]["additionalurls"] + "").replace(/"/g, "") + '",'));
|
|
5372
|
+
csvValues += ('"' + ((this.events[mmdd][j]["definition"] + "").replace(/"/g, "") + '",'));
|
|
5373
|
+
csvValues += ('"' + ((this.events[mmdd][j]["authority"] + "").replace(/"/g, "") + '",'));
|
|
5374
|
+
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
5375
|
+
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
5376
|
+
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
5377
|
+
csvValues += ('"' + ((this.events[mmdd][j]["subfrequency"] + "").replace(/"/g, "") + '",'));
|
|
5378
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
5379
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
5380
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
5381
|
+
|
|
5382
|
+
// csvValues += (period + ','
|
|
5383
|
+
// + this.renderStatusString(partStatus, lateStatus, complianceStatus) + ','
|
|
5384
|
+
// + this.events[mmdd][j]["id"] + ','
|
|
5385
|
+
// + this.events[mmdd][j]["obligationtitle"] + ','
|
|
5386
|
+
// + this.events[mmdd][j]["obligation"] + ','
|
|
5387
|
+
// + this.events[mmdd][j]["duedate"]
|
|
5388
|
+
// + '\n');
|
|
5389
|
+
|
|
5390
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
5391
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["country"] + '</td>'
|
|
5392
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["state"] + '</td>'
|
|
5393
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
|
|
5394
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["category"] + '</td>'
|
|
5395
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["subcategory"] + '</td>'
|
|
5396
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["statute"] + '</td>'
|
|
5397
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["reference"] + '</td>'
|
|
5398
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["applicability"] + '</td>'
|
|
5399
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
|
|
5400
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
5401
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligation"] + '</td>'
|
|
5402
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["firstlineofdefence"] + '</td>'
|
|
5403
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["secondlineofdefence"] + '</td>'
|
|
5404
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["thirdlineofdefence"] + '</td>'
|
|
5405
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["internalcontrols"] + '</td>'
|
|
5406
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["penalty"] + '</td>'
|
|
5407
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["form"] + '</td>'
|
|
5408
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["additionalurls"] + '</td>'
|
|
5409
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["definition"] + '</td>'
|
|
5410
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["authority"] + '</td>'
|
|
5411
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
|
|
5412
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
|
|
5413
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
|
|
5414
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["subfrequency"] + '</td>'
|
|
5415
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
5416
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
5417
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
5418
|
+
+ '</tr>');
|
|
5419
|
+
}
|
|
5420
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
5421
|
+
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>'
|
|
5422
|
+
+ '<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>'
|
|
5423
|
+
+ '<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>'
|
|
5424
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
5425
|
+
|
|
5426
|
+
for (let document of this.events[mmdd][j].contractdocuments ?? []) {
|
|
5427
|
+
htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '"')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`
|
|
5428
|
+
}
|
|
5429
|
+
htmlSummaryValues += '</td></tr>'
|
|
5430
|
+
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
5431
|
+
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>'
|
|
5432
|
+
+ '<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>'
|
|
5433
|
+
+ '<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>'
|
|
5434
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
5435
|
+
|
|
5436
|
+
for (let document of this.events[mmdd][j].licensedocuments ?? []) {
|
|
5437
|
+
htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '"')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`
|
|
5438
|
+
}
|
|
5439
|
+
htmlSummaryValues += '</td></tr>'
|
|
5440
|
+
} else {
|
|
5441
|
+
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>'
|
|
5442
|
+
+ '<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>'
|
|
5443
|
+
// + '<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>'
|
|
5444
|
+
+ '<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>'
|
|
5445
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
5446
|
+
|
|
5447
|
+
for (let document of this.events[mmdd][j].documents) {
|
|
5448
|
+
htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '"')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`
|
|
5449
|
+
}
|
|
5450
|
+
// htmlSummaryValues += this.renderCalendarAnnotations(this.events[mmdd][j]);
|
|
5451
|
+
htmlSummaryValues += '</td></tr>'
|
|
5328
5452
|
}
|
|
5329
|
-
// htmlSummaryValues += this.renderCalendarAnnotations(this.events[mmdd][j]);
|
|
5330
|
-
htmlSummaryValues += '</td></tr>'
|
|
5331
5453
|
}
|
|
5332
5454
|
|
|
5333
5455
|
html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus);
|
|
@@ -18258,17 +18380,26 @@ export class SfIEvents extends LitElement {
|
|
|
18258
18380
|
console.log('csv data', tempArr)
|
|
18259
18381
|
let changeCount = 0;
|
|
18260
18382
|
for (let [i, obj] of tempArr.entries()) {
|
|
18261
|
-
|
|
18383
|
+
let tempObj = taggingArray.data.mappings.mappings[i]
|
|
18384
|
+
delete tempObj['delta'];
|
|
18385
|
+
delete tempObj['lastupdated'];
|
|
18386
|
+
if(tempObj["id"].indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0 || tempObj["id"].indexOf("90dbfbcc-a009-4778-b28e-a463867ceea9") >= 0 || tempObj["id"].indexOf("62330e24-298d-4ef2-9449-c0e400e37cac") >= 0 || tempObj["id"].indexOf("b9370711-024a-498a-8ce2-21c549824600") >= 0){
|
|
18387
|
+
console.log('changed onboarding item', tempObj, obj, JSON.stringify(tempObj) !== JSON.stringify(obj))
|
|
18388
|
+
}
|
|
18389
|
+
if (JSON.stringify(tempObj) !== JSON.stringify(obj)) {
|
|
18262
18390
|
// console.log('item changed', taggingArray.data.mappings.mappings[i], obj)
|
|
18263
18391
|
let changedId = ""
|
|
18264
18392
|
for (let [k, col] of uniqCols.entries()) {
|
|
18265
|
-
changedId +=
|
|
18393
|
+
changedId += tempObj[col];
|
|
18266
18394
|
if (k < (uniqCols.length - 1)) {
|
|
18267
18395
|
changedId += ";"
|
|
18268
18396
|
}
|
|
18269
18397
|
}
|
|
18270
18398
|
// this.changedOnboardingItemIds.push(taggingArray.data.mappings.mappings[i].id + ";" + taggingArray.data.mappings.mappings[i].entityid + ";" + taggingArray.data.mappings.mappings[i].locationid)
|
|
18271
18399
|
this.changedOnboardingItemIds.push(changedId)
|
|
18400
|
+
// if(changedId.indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0){
|
|
18401
|
+
// console.log('changed onboarding item', tempObj, obj)
|
|
18402
|
+
// }
|
|
18272
18403
|
changeCount++
|
|
18273
18404
|
}
|
|
18274
18405
|
}
|
|
@@ -19580,7 +19711,7 @@ export class SfIEvents extends LitElement {
|
|
|
19580
19711
|
|
|
19581
19712
|
//console.log('rendering triggers...', (this._SfOnboardingTriggersContainer as HTMLDivElement).innerHTML);
|
|
19582
19713
|
|
|
19583
|
-
this.renderTaggingTable((this._SfOnboardingTriggersListContainer as HTMLDivElement), mappedSerializedAlertSchedules, mappedTriggers, ["obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19714
|
+
this.renderTaggingTable((this._SfOnboardingTriggersListContainer as HTMLDivElement), mappedSerializedAlertSchedules, mappedTriggers, ["shortid","obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19584
19715
|
|
|
19585
19716
|
}
|
|
19586
19717
|
|
|
@@ -19593,7 +19724,7 @@ export class SfIEvents extends LitElement {
|
|
|
19593
19724
|
|
|
19594
19725
|
(this._SfOnboardingInternalControlsContainer as HTMLDivElement).innerHTML = html;
|
|
19595
19726
|
|
|
19596
|
-
this.renderTaggingTable((this._SfOnboardingInternalControlsListContainer as HTMLDivElement), mappedSerializedTriggers, mappedInternalControls, ["obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19727
|
+
this.renderTaggingTable((this._SfOnboardingInternalControlsListContainer as HTMLDivElement), mappedSerializedTriggers, mappedInternalControls, ["shortid","obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19597
19728
|
|
|
19598
19729
|
}
|
|
19599
19730
|
|
|
@@ -19606,7 +19737,7 @@ export class SfIEvents extends LitElement {
|
|
|
19606
19737
|
|
|
19607
19738
|
(this._SfOnboardingActivationsContainer as HTMLDivElement).innerHTML = html;
|
|
19608
19739
|
|
|
19609
|
-
this.renderTaggingTable((this._SfOnboardingActivationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedActivations, ["obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19740
|
+
this.renderTaggingTable((this._SfOnboardingActivationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedActivations, ["shortid","obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19610
19741
|
|
|
19611
19742
|
}
|
|
19612
19743
|
|
|
@@ -19619,7 +19750,7 @@ export class SfIEvents extends LitElement {
|
|
|
19619
19750
|
|
|
19620
19751
|
(this._SfOnboardingInvalidationsContainer as HTMLDivElement).innerHTML = html;
|
|
19621
19752
|
|
|
19622
|
-
this.renderTaggingTable((this._SfOnboardingInvalidationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedInvalidations, ["obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19753
|
+
this.renderTaggingTable((this._SfOnboardingInvalidationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedInvalidations, ["shortid","obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19623
19754
|
|
|
19624
19755
|
}
|
|
19625
19756
|
|
|
@@ -19632,7 +19763,7 @@ export class SfIEvents extends LitElement {
|
|
|
19632
19763
|
|
|
19633
19764
|
(this._SfOnboardingAlertSchedulesContainer as HTMLDivElement).innerHTML = html;
|
|
19634
19765
|
|
|
19635
|
-
this.renderTaggingTable((this._SfOnboardingAlertSchedulesListContainer as HTMLDivElement), mappedSerializedExtensions, mappedAlertSchedules, ["obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19766
|
+
this.renderTaggingTable((this._SfOnboardingAlertSchedulesListContainer as HTMLDivElement), mappedSerializedExtensions, mappedAlertSchedules, ["shortid","obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19636
19767
|
|
|
19637
19768
|
}
|
|
19638
19769
|
|
|
@@ -19645,7 +19776,7 @@ export class SfIEvents extends LitElement {
|
|
|
19645
19776
|
|
|
19646
19777
|
(this._SfOnboardingExtensionsContainer as HTMLDivElement).innerHTML = html;
|
|
19647
19778
|
|
|
19648
|
-
this.renderTaggingTable((this._SfOnboardingExtensionsListContainer as HTMLDivElement), mappedSerializedDuedates, mappedExtensions, ["obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19779
|
+
this.renderTaggingTable((this._SfOnboardingExtensionsListContainer as HTMLDivElement), mappedSerializedDuedates, mappedExtensions, ["shortid","obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19649
19780
|
|
|
19650
19781
|
}
|
|
19651
19782
|
|
|
@@ -19658,7 +19789,7 @@ export class SfIEvents extends LitElement {
|
|
|
19658
19789
|
|
|
19659
19790
|
(this._SfOnboardingDuedatesContainer as HTMLDivElement).innerHTML = html;
|
|
19660
19791
|
|
|
19661
|
-
this.renderTaggingTable((this._SfOnboardingDuedatesListContainer as HTMLDivElement), mappedSerializedMakerCheckers, mappedDuedates, ["obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19792
|
+
this.renderTaggingTable((this._SfOnboardingDuedatesListContainer as HTMLDivElement), mappedSerializedMakerCheckers, mappedDuedates, ["shortid","obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19662
19793
|
|
|
19663
19794
|
}
|
|
19664
19795
|
|
|
@@ -19671,7 +19802,7 @@ export class SfIEvents extends LitElement {
|
|
|
19671
19802
|
|
|
19672
19803
|
(this._SfOnboardingReportersContainer as HTMLDivElement).innerHTML = html;
|
|
19673
19804
|
|
|
19674
|
-
this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement), mappedSerializedTags, mappedReporters, ["obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19805
|
+
this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement), mappedSerializedTags, mappedReporters, ["shortid","obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19675
19806
|
|
|
19676
19807
|
}
|
|
19677
19808
|
|
|
@@ -19684,7 +19815,7 @@ export class SfIEvents extends LitElement {
|
|
|
19684
19815
|
|
|
19685
19816
|
(this._SfOnboardingApproversContainer as HTMLDivElement).innerHTML = html;
|
|
19686
19817
|
|
|
19687
|
-
this.renderTaggingTable((this._SfOnboardingApproversListContainer as HTMLDivElement), mappedSerializedReporters, mappedApprovers, ["obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19818
|
+
this.renderTaggingTable((this._SfOnboardingApproversListContainer as HTMLDivElement), mappedSerializedReporters, mappedApprovers, ["shortid","obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19688
19819
|
|
|
19689
19820
|
}
|
|
19690
19821
|
|
|
@@ -19697,7 +19828,7 @@ export class SfIEvents extends LitElement {
|
|
|
19697
19828
|
|
|
19698
19829
|
(this._SfOnboardingFunctionHeadsContainer as HTMLDivElement).innerHTML = html;
|
|
19699
19830
|
|
|
19700
|
-
this.renderTaggingTable((this._SfOnboardingFunctionHeadsListContainer as HTMLDivElement), mappedSerializedApprovers, mappedFunctionHeads, ["obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19831
|
+
this.renderTaggingTable((this._SfOnboardingFunctionHeadsListContainer as HTMLDivElement), mappedSerializedApprovers, mappedFunctionHeads, ["shortid","obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19701
19832
|
|
|
19702
19833
|
}
|
|
19703
19834
|
|
|
@@ -19710,7 +19841,7 @@ export class SfIEvents extends LitElement {
|
|
|
19710
19841
|
|
|
19711
19842
|
(this._SfOnboardingMakerCheckersContainer as HTMLDivElement).innerHTML = html;
|
|
19712
19843
|
|
|
19713
|
-
this.renderTaggingTable((this._SfOnboardingMakerCheckersListContainer as HTMLDivElement), mappedSerializedDocs, mappedMakerCheckers, ["obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19844
|
+
this.renderTaggingTable((this._SfOnboardingMakerCheckersListContainer as HTMLDivElement), mappedSerializedDocs, mappedMakerCheckers, ["shortid","obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19714
19845
|
|
|
19715
19846
|
}
|
|
19716
19847
|
|
|
@@ -19723,7 +19854,7 @@ export class SfIEvents extends LitElement {
|
|
|
19723
19854
|
|
|
19724
19855
|
(this._SfOnboardingDocsContainer as HTMLDivElement).innerHTML = html;
|
|
19725
19856
|
|
|
19726
|
-
this.renderTaggingTable((this._SfOnboardingDocsListContainer as HTMLDivElement), mappedSerializedViewers, mappedDocs, ["obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19857
|
+
this.renderTaggingTable((this._SfOnboardingDocsListContainer as HTMLDivElement), mappedSerializedViewers, mappedDocs, ["shortid","obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19727
19858
|
|
|
19728
19859
|
}
|
|
19729
19860
|
|
|
@@ -19738,7 +19869,7 @@ export class SfIEvents extends LitElement {
|
|
|
19738
19869
|
|
|
19739
19870
|
(this._SfOnboardingAuditorsContainer as HTMLDivElement).innerHTML = html;
|
|
19740
19871
|
|
|
19741
|
-
this.renderTaggingTable((this._SfOnboardingAuditorsListContainer as HTMLDivElement), mappedSerializedFunctionheads, mappedAuditors, ["obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19872
|
+
this.renderTaggingTable((this._SfOnboardingAuditorsListContainer as HTMLDivElement), mappedSerializedFunctionheads, mappedAuditors, ["shortid","obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19742
19873
|
|
|
19743
19874
|
}
|
|
19744
19875
|
|
|
@@ -19753,7 +19884,7 @@ export class SfIEvents extends LitElement {
|
|
|
19753
19884
|
|
|
19754
19885
|
(this._SfOnboardingViewersContainer as HTMLDivElement).innerHTML = html;
|
|
19755
19886
|
|
|
19756
|
-
this.renderTaggingTable((this._SfOnboardingViewersListContainer as HTMLDivElement), mappedSerializedAuditors, mappedViewers, ["obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19887
|
+
this.renderTaggingTable((this._SfOnboardingViewersListContainer as HTMLDivElement), mappedSerializedAuditors, mappedViewers, ["shortid","obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
19757
19888
|
|
|
19758
19889
|
}
|
|
19759
19890
|
|
|
@@ -19766,7 +19897,7 @@ export class SfIEvents extends LitElement {
|
|
|
19766
19897
|
|
|
19767
19898
|
(this._SfOnboardingTagsContainer as HTMLDivElement).innerHTML = html;
|
|
19768
19899
|
|
|
19769
|
-
this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement), mappedSerializedFunctions, mappedTags, ["obligationtitle", "obligationtype"], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19900
|
+
this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement), mappedSerializedFunctions, mappedTags, ["shortid","obligationtitle", "obligationtype"], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19770
19901
|
|
|
19771
19902
|
}
|
|
19772
19903
|
|
|
@@ -19787,7 +19918,7 @@ export class SfIEvents extends LitElement {
|
|
|
19787
19918
|
|
|
19788
19919
|
(this._SfOnboardingFunctionsContainer as HTMLDivElement).innerHTML = html;
|
|
19789
19920
|
|
|
19790
|
-
this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement), mappedSerializedLocations, mappedFunctions, ["obligationtitle", "obligationtype"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19921
|
+
this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement), mappedSerializedLocations, mappedFunctions, ["shortid","obligationtitle", "obligationtype"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19791
19922
|
|
|
19792
19923
|
}
|
|
19793
19924
|
|
|
@@ -19800,7 +19931,7 @@ export class SfIEvents extends LitElement {
|
|
|
19800
19931
|
|
|
19801
19932
|
(this._SfOnboardingLocationsContainer as HTMLDivElement).innerHTML = html;
|
|
19802
19933
|
|
|
19803
|
-
this.renderTaggingTable((this._SfOnboardingLocationsListContainer as HTMLDivElement), mappedSerializedEntities, mappedLocations, ["shortid","firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19934
|
+
this.renderTaggingTable((this._SfOnboardingLocationsListContainer as HTMLDivElement), mappedSerializedEntities, mappedLocations, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19804
19935
|
|
|
19805
19936
|
}
|
|
19806
19937
|
|
|
@@ -19961,7 +20092,7 @@ export class SfIEvents extends LitElement {
|
|
|
19961
20092
|
|
|
19962
20093
|
(this._SfOnboardingEntitiesContainer as HTMLDivElement).innerHTML = html;
|
|
19963
20094
|
|
|
19964
|
-
this.renderTaggingTable((this._SfOnboardingEntitiesListContainer as HTMLDivElement), mappedSerializedCountries, mappedEntities, ["shortid","firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute"], this.uploadEntitiesMapping, this.loadOnboardingEntities, "entities", ["id", "countryname"], this.apiIdTags, "&Entity", ["entities"], entitiesJobs, null, ["Client remarks", "FlaggGRC response"], arrFeedbackReference, "Guideline", "");
|
|
20095
|
+
this.renderTaggingTable((this._SfOnboardingEntitiesListContainer as HTMLDivElement), mappedSerializedCountries, mappedEntities, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute"], this.uploadEntitiesMapping, this.loadOnboardingEntities, "entities", ["id", "countryname"], this.apiIdTags, "&Entity", ["entities"], entitiesJobs, null, ["Client remarks", "FlaggGRC response"], arrFeedbackReference, "Guideline", "");
|
|
19965
20096
|
|
|
19966
20097
|
}
|
|
19967
20098
|
|
|
@@ -19993,7 +20124,7 @@ export class SfIEvents extends LitElement {
|
|
|
19993
20124
|
|
|
19994
20125
|
// mappedCountries.data.mappings.mappings = arr2;
|
|
19995
20126
|
|
|
19996
|
-
this.renderTaggingTable((this._SfOnboardingCountriesListContainer as HTMLDivElement), mappedCompliances, mappedCountries, ["shortid","firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "state", "subcategory"], this.uploadCountriesMapping, this.loadOnboardingCountries, "countries", ["id"], this.apiIdTags, "-Country", ["countries"], countriesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
20127
|
+
this.renderTaggingTable((this._SfOnboardingCountriesListContainer as HTMLDivElement), mappedCompliances, mappedCountries, ["shortid", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "state", "subcategory"], this.uploadCountriesMapping, this.loadOnboardingCountries, "countries", ["id"], this.apiIdTags, "-Country", ["countries"], countriesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
19997
20128
|
|
|
19998
20129
|
}
|
|
19999
20130
|
|
|
@@ -21275,7 +21406,7 @@ export class SfIEvents extends LitElement {
|
|
|
21275
21406
|
|
|
21276
21407
|
let targetDiv = e.target as HTMLDivElement;
|
|
21277
21408
|
let containerDiv = targetDiv.parentElement?.parentElement as HTMLDivElement;
|
|
21278
|
-
if(containerDiv != null){
|
|
21409
|
+
if (containerDiv != null) {
|
|
21279
21410
|
containerDiv.innerHTML = '';
|
|
21280
21411
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-settings')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
21281
21412
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-summary')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
@@ -21403,7 +21534,7 @@ export class SfIEvents extends LitElement {
|
|
|
21403
21534
|
let targetDiv = e.target as HTMLDivElement;
|
|
21404
21535
|
let containerDiv = targetDiv.parentElement?.parentElement as HTMLDivElement;
|
|
21405
21536
|
console.log('containerDiv', containerDiv);
|
|
21406
|
-
if(containerDiv != null){
|
|
21537
|
+
if (containerDiv != null) {
|
|
21407
21538
|
containerDiv.innerHTML = '';
|
|
21408
21539
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-settings')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
21409
21540
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-summary')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
@@ -21412,7 +21543,7 @@ export class SfIEvents extends LitElement {
|
|
|
21412
21543
|
});
|
|
21413
21544
|
|
|
21414
21545
|
container.querySelector('#button-download-stats')?.addEventListener('click', async () => {
|
|
21415
|
-
if (selectedTab === -1){
|
|
21546
|
+
if (selectedTab === -1) {
|
|
21416
21547
|
if (this.selectedFeatures.indexOf('compliances') >= 0) {
|
|
21417
21548
|
await this.fetchAndYearlyRenderUserCalendar_2(this.sdate, this.edate, "", "no")
|
|
21418
21549
|
} else if (this.selectedFeatures.indexOf('notices') >= 0) {
|
|
@@ -21421,7 +21552,7 @@ export class SfIEvents extends LitElement {
|
|
|
21421
21552
|
await this.fetchAndRenderContracts(this.sdate, this.edate, "", "no");
|
|
21422
21553
|
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
21423
21554
|
await this.fetchAndRenderLicenses(this.sdate, this.edate, "", "no");
|
|
21424
|
-
}
|
|
21555
|
+
}
|
|
21425
21556
|
// await this.fetchAndYearlyRenderUserCalendar_2(this.sdate, this.edate, "", "no");
|
|
21426
21557
|
}
|
|
21427
21558
|
const radioCsv = (container.querySelector('#radio-csv') as HTMLInputElement);
|
|
@@ -21579,6 +21710,7 @@ export class SfIEvents extends LitElement {
|
|
|
21579
21710
|
html = html.replace(/PERSON_NAME/g, this.userName);
|
|
21580
21711
|
html = html.replace(/PERSON_DESIGNATION/g, this.myRole);
|
|
21581
21712
|
html = html.replace(/PERSON_COMPANY/g, this.projectName);
|
|
21713
|
+
html = html.replace(/PERSON_CRITERIA/g, this.selectedCriteria);
|
|
21582
21714
|
html = html.replace(/PERSON_DATE/g, new Date().getDate() + "/" + (new Date().getMonth() + 1) + "/" + new Date().getFullYear());
|
|
21583
21715
|
|
|
21584
21716
|
let tempHtml: string = "";
|
|
@@ -21647,7 +21779,7 @@ export class SfIEvents extends LitElement {
|
|
|
21647
21779
|
}
|
|
21648
21780
|
html += '</div>';
|
|
21649
21781
|
|
|
21650
|
-
if((container.querySelector('#chart-settings-controls') as HTMLDivElement) != null){
|
|
21782
|
+
if ((container.querySelector('#chart-settings-controls') as HTMLDivElement) != null) {
|
|
21651
21783
|
(container.querySelector('#chart-settings-controls') as HTMLDivElement).innerHTML = html;
|
|
21652
21784
|
|
|
21653
21785
|
(container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-settings')?.addEventListener('click', () => {
|
|
@@ -22026,7 +22158,7 @@ export class SfIEvents extends LitElement {
|
|
|
22026
22158
|
}
|
|
22027
22159
|
}
|
|
22028
22160
|
|
|
22029
|
-
|
|
22161
|
+
console.log('newarrlist', newArrList);
|
|
22030
22162
|
|
|
22031
22163
|
let filteredHTML = '';
|
|
22032
22164
|
|
|
@@ -22057,6 +22189,7 @@ export class SfIEvents extends LitElement {
|
|
|
22057
22189
|
filteredHTML += (newArrList[i] as HTMLTableRowElement).outerHTML;
|
|
22058
22190
|
}
|
|
22059
22191
|
filteredHTML += '</table></div>';
|
|
22192
|
+
// console.log('filteredHTML', filteredHTML);
|
|
22060
22193
|
return filteredHTML;
|
|
22061
22194
|
}
|
|
22062
22195
|
|
|
@@ -23307,7 +23440,7 @@ export class SfIEvents extends LitElement {
|
|
|
23307
23440
|
let graphparamname1Arr = (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' ').split(' • ');
|
|
23308
23441
|
let filterFound = false;
|
|
23309
23442
|
for (let tempFilterStr of graphparamname1Arr) {
|
|
23310
|
-
|
|
23443
|
+
console.log('graphparamname1Arr', tempFilterStr, this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '), tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
23311
23444
|
if (tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') == "") {
|
|
23312
23445
|
filterFound = true;
|
|
23313
23446
|
break;
|
|
@@ -24997,7 +25130,7 @@ export class SfIEvents extends LitElement {
|
|
|
24997
25130
|
"makercheckers": makercheckers
|
|
24998
25131
|
}
|
|
24999
25132
|
|
|
25000
|
-
console.log('reportingbody',body);
|
|
25133
|
+
console.log('reportingbody', body);
|
|
25001
25134
|
let retValue = true;
|
|
25002
25135
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25003
25136
|
const xhr: any = (await this.prepareXhr(body, url, this._SfLoader, authorization)) as any;
|
|
@@ -26838,16 +26971,17 @@ export class SfIEvents extends LitElement {
|
|
|
26838
26971
|
|
|
26839
26972
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
26840
26973
|
console.log('jsonRespose', jsonRespose);
|
|
26841
|
-
let
|
|
26974
|
+
let contracts = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
26842
26975
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
26843
26976
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
26844
|
-
let tempEvents = this.events
|
|
26845
|
-
for (let mmddyyyy of Object.keys(
|
|
26846
|
-
|
|
26847
|
-
}
|
|
26848
|
-
this.events = tempEvents;
|
|
26977
|
+
// let tempEvents = this.events
|
|
26978
|
+
// for (let mmddyyyy of Object.keys(contracts)) {
|
|
26979
|
+
// tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []), ...contracts[mmddyyyy]]
|
|
26980
|
+
// }
|
|
26981
|
+
// this.events = tempEvents;
|
|
26982
|
+
this.events = contracts;
|
|
26849
26983
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
26850
|
-
console.log('contracts',
|
|
26984
|
+
console.log('contracts', contracts);
|
|
26851
26985
|
} else {
|
|
26852
26986
|
if (xhr.status == 401) {
|
|
26853
26987
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
@@ -26919,13 +27053,14 @@ export class SfIEvents extends LitElement {
|
|
|
26919
27053
|
let licenses = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
26920
27054
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
26921
27055
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
26922
|
-
let tempEvents = this.events
|
|
26923
|
-
for (let mmddyyyy of Object.keys(licenses)) {
|
|
26924
|
-
|
|
26925
|
-
}
|
|
26926
|
-
this.events = tempEvents;
|
|
27056
|
+
// let tempEvents = this.events
|
|
27057
|
+
// for (let mmddyyyy of Object.keys(licenses)) {
|
|
27058
|
+
// tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []), ...licenses[mmddyyyy]]
|
|
27059
|
+
// }
|
|
27060
|
+
// this.events = tempEvents;
|
|
27061
|
+
this.events = licenses;
|
|
26927
27062
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
26928
|
-
console.log('licenses', licenses
|
|
27063
|
+
console.log('licenses', licenses);
|
|
26929
27064
|
} else {
|
|
26930
27065
|
if (xhr.status == 401) {
|
|
26931
27066
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|