sf-i-events 1.0.879 → 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 +6 -5
- package/package.json +1 -1
- package/sf-i-events.js +253 -121
- package/src/sf-i-events.ts +261 -130
- package/src/util.ts +3 -3
- package/util.js +3 -3
package/src/sf-i-events.ts
CHANGED
|
@@ -4270,7 +4270,7 @@ export class SfIEvents extends LitElement {
|
|
|
4270
4270
|
getComplianceStatus = (completeness: string, timeliness: string, percentage?: string, event: any = {}) => {
|
|
4271
4271
|
if (event.module == "contract") {
|
|
4272
4272
|
console.log('compliance status', event.terminated, completeness, timeliness)
|
|
4273
|
-
if(event.terminated){
|
|
4273
|
+
if (event.terminated) {
|
|
4274
4274
|
return "terminated"
|
|
4275
4275
|
}
|
|
4276
4276
|
if (completeness == "not-started") {
|
|
@@ -5157,11 +5157,25 @@ export class SfIEvents extends LitElement {
|
|
|
5157
5157
|
html += this.renderCalendarEventSummary();
|
|
5158
5158
|
|
|
5159
5159
|
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
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
|
+
}
|
|
5163
5171
|
|
|
5164
|
-
|
|
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
|
+
}
|
|
5165
5179
|
|
|
5166
5180
|
for (var i = iInit; i <= iLast; i++) {
|
|
5167
5181
|
|
|
@@ -5243,94 +5257,199 @@ export class SfIEvents extends LitElement {
|
|
|
5243
5257
|
|
|
5244
5258
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
5245
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
|
+
}
|
|
5246
5263
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
5247
5264
|
|
|
5248
5265
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
5249
5266
|
if (this.events[mmdd][j]["documents"] != null) {
|
|
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
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
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>'
|
|
5331
5452
|
}
|
|
5332
|
-
// htmlSummaryValues += this.renderCalendarAnnotations(this.events[mmdd][j]);
|
|
5333
|
-
htmlSummaryValues += '</td></tr>'
|
|
5334
5453
|
}
|
|
5335
5454
|
|
|
5336
5455
|
html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus);
|
|
@@ -18261,17 +18380,26 @@ export class SfIEvents extends LitElement {
|
|
|
18261
18380
|
console.log('csv data', tempArr)
|
|
18262
18381
|
let changeCount = 0;
|
|
18263
18382
|
for (let [i, obj] of tempArr.entries()) {
|
|
18264
|
-
|
|
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)) {
|
|
18265
18390
|
// console.log('item changed', taggingArray.data.mappings.mappings[i], obj)
|
|
18266
18391
|
let changedId = ""
|
|
18267
18392
|
for (let [k, col] of uniqCols.entries()) {
|
|
18268
|
-
changedId +=
|
|
18393
|
+
changedId += tempObj[col];
|
|
18269
18394
|
if (k < (uniqCols.length - 1)) {
|
|
18270
18395
|
changedId += ";"
|
|
18271
18396
|
}
|
|
18272
18397
|
}
|
|
18273
18398
|
// this.changedOnboardingItemIds.push(taggingArray.data.mappings.mappings[i].id + ";" + taggingArray.data.mappings.mappings[i].entityid + ";" + taggingArray.data.mappings.mappings[i].locationid)
|
|
18274
18399
|
this.changedOnboardingItemIds.push(changedId)
|
|
18400
|
+
// if(changedId.indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0){
|
|
18401
|
+
// console.log('changed onboarding item', tempObj, obj)
|
|
18402
|
+
// }
|
|
18275
18403
|
changeCount++
|
|
18276
18404
|
}
|
|
18277
18405
|
}
|
|
@@ -19583,7 +19711,7 @@ export class SfIEvents extends LitElement {
|
|
|
19583
19711
|
|
|
19584
19712
|
//console.log('rendering triggers...', (this._SfOnboardingTriggersContainer as HTMLDivElement).innerHTML);
|
|
19585
19713
|
|
|
19586
|
-
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, "", "");
|
|
19587
19715
|
|
|
19588
19716
|
}
|
|
19589
19717
|
|
|
@@ -19596,7 +19724,7 @@ export class SfIEvents extends LitElement {
|
|
|
19596
19724
|
|
|
19597
19725
|
(this._SfOnboardingInternalControlsContainer as HTMLDivElement).innerHTML = html;
|
|
19598
19726
|
|
|
19599
|
-
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, "", "");
|
|
19600
19728
|
|
|
19601
19729
|
}
|
|
19602
19730
|
|
|
@@ -19609,7 +19737,7 @@ export class SfIEvents extends LitElement {
|
|
|
19609
19737
|
|
|
19610
19738
|
(this._SfOnboardingActivationsContainer as HTMLDivElement).innerHTML = html;
|
|
19611
19739
|
|
|
19612
|
-
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, "", "");
|
|
19613
19741
|
|
|
19614
19742
|
}
|
|
19615
19743
|
|
|
@@ -19622,7 +19750,7 @@ export class SfIEvents extends LitElement {
|
|
|
19622
19750
|
|
|
19623
19751
|
(this._SfOnboardingInvalidationsContainer as HTMLDivElement).innerHTML = html;
|
|
19624
19752
|
|
|
19625
|
-
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, "", "");
|
|
19626
19754
|
|
|
19627
19755
|
}
|
|
19628
19756
|
|
|
@@ -19635,7 +19763,7 @@ export class SfIEvents extends LitElement {
|
|
|
19635
19763
|
|
|
19636
19764
|
(this._SfOnboardingAlertSchedulesContainer as HTMLDivElement).innerHTML = html;
|
|
19637
19765
|
|
|
19638
|
-
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, "", "");
|
|
19639
19767
|
|
|
19640
19768
|
}
|
|
19641
19769
|
|
|
@@ -19648,7 +19776,7 @@ export class SfIEvents extends LitElement {
|
|
|
19648
19776
|
|
|
19649
19777
|
(this._SfOnboardingExtensionsContainer as HTMLDivElement).innerHTML = html;
|
|
19650
19778
|
|
|
19651
|
-
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, "", "");
|
|
19652
19780
|
|
|
19653
19781
|
}
|
|
19654
19782
|
|
|
@@ -19661,7 +19789,7 @@ export class SfIEvents extends LitElement {
|
|
|
19661
19789
|
|
|
19662
19790
|
(this._SfOnboardingDuedatesContainer as HTMLDivElement).innerHTML = html;
|
|
19663
19791
|
|
|
19664
|
-
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, "", "");
|
|
19665
19793
|
|
|
19666
19794
|
}
|
|
19667
19795
|
|
|
@@ -19674,7 +19802,7 @@ export class SfIEvents extends LitElement {
|
|
|
19674
19802
|
|
|
19675
19803
|
(this._SfOnboardingReportersContainer as HTMLDivElement).innerHTML = html;
|
|
19676
19804
|
|
|
19677
|
-
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", "");
|
|
19678
19806
|
|
|
19679
19807
|
}
|
|
19680
19808
|
|
|
@@ -19687,7 +19815,7 @@ export class SfIEvents extends LitElement {
|
|
|
19687
19815
|
|
|
19688
19816
|
(this._SfOnboardingApproversContainer as HTMLDivElement).innerHTML = html;
|
|
19689
19817
|
|
|
19690
|
-
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", "");
|
|
19691
19819
|
|
|
19692
19820
|
}
|
|
19693
19821
|
|
|
@@ -19700,7 +19828,7 @@ export class SfIEvents extends LitElement {
|
|
|
19700
19828
|
|
|
19701
19829
|
(this._SfOnboardingFunctionHeadsContainer as HTMLDivElement).innerHTML = html;
|
|
19702
19830
|
|
|
19703
|
-
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", "");
|
|
19704
19832
|
|
|
19705
19833
|
}
|
|
19706
19834
|
|
|
@@ -19713,7 +19841,7 @@ export class SfIEvents extends LitElement {
|
|
|
19713
19841
|
|
|
19714
19842
|
(this._SfOnboardingMakerCheckersContainer as HTMLDivElement).innerHTML = html;
|
|
19715
19843
|
|
|
19716
|
-
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, "", "");
|
|
19717
19845
|
|
|
19718
19846
|
}
|
|
19719
19847
|
|
|
@@ -19726,7 +19854,7 @@ export class SfIEvents extends LitElement {
|
|
|
19726
19854
|
|
|
19727
19855
|
(this._SfOnboardingDocsContainer as HTMLDivElement).innerHTML = html;
|
|
19728
19856
|
|
|
19729
|
-
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, "", "");
|
|
19730
19858
|
|
|
19731
19859
|
}
|
|
19732
19860
|
|
|
@@ -19741,7 +19869,7 @@ export class SfIEvents extends LitElement {
|
|
|
19741
19869
|
|
|
19742
19870
|
(this._SfOnboardingAuditorsContainer as HTMLDivElement).innerHTML = html;
|
|
19743
19871
|
|
|
19744
|
-
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", "");
|
|
19745
19873
|
|
|
19746
19874
|
}
|
|
19747
19875
|
|
|
@@ -19756,7 +19884,7 @@ export class SfIEvents extends LitElement {
|
|
|
19756
19884
|
|
|
19757
19885
|
(this._SfOnboardingViewersContainer as HTMLDivElement).innerHTML = html;
|
|
19758
19886
|
|
|
19759
|
-
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", "");
|
|
19760
19888
|
|
|
19761
19889
|
}
|
|
19762
19890
|
|
|
@@ -19769,7 +19897,7 @@ export class SfIEvents extends LitElement {
|
|
|
19769
19897
|
|
|
19770
19898
|
(this._SfOnboardingTagsContainer as HTMLDivElement).innerHTML = html;
|
|
19771
19899
|
|
|
19772
|
-
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, "", "");
|
|
19773
19901
|
|
|
19774
19902
|
}
|
|
19775
19903
|
|
|
@@ -19790,7 +19918,7 @@ export class SfIEvents extends LitElement {
|
|
|
19790
19918
|
|
|
19791
19919
|
(this._SfOnboardingFunctionsContainer as HTMLDivElement).innerHTML = html;
|
|
19792
19920
|
|
|
19793
|
-
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, "", "");
|
|
19794
19922
|
|
|
19795
19923
|
}
|
|
19796
19924
|
|
|
@@ -19803,7 +19931,7 @@ export class SfIEvents extends LitElement {
|
|
|
19803
19931
|
|
|
19804
19932
|
(this._SfOnboardingLocationsContainer as HTMLDivElement).innerHTML = html;
|
|
19805
19933
|
|
|
19806
|
-
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, "", "");
|
|
19807
19935
|
|
|
19808
19936
|
}
|
|
19809
19937
|
|
|
@@ -19964,7 +20092,7 @@ export class SfIEvents extends LitElement {
|
|
|
19964
20092
|
|
|
19965
20093
|
(this._SfOnboardingEntitiesContainer as HTMLDivElement).innerHTML = html;
|
|
19966
20094
|
|
|
19967
|
-
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", "");
|
|
19968
20096
|
|
|
19969
20097
|
}
|
|
19970
20098
|
|
|
@@ -19996,7 +20124,7 @@ export class SfIEvents extends LitElement {
|
|
|
19996
20124
|
|
|
19997
20125
|
// mappedCountries.data.mappings.mappings = arr2;
|
|
19998
20126
|
|
|
19999
|
-
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, "", "");
|
|
20000
20128
|
|
|
20001
20129
|
}
|
|
20002
20130
|
|
|
@@ -21278,7 +21406,7 @@ export class SfIEvents extends LitElement {
|
|
|
21278
21406
|
|
|
21279
21407
|
let targetDiv = e.target as HTMLDivElement;
|
|
21280
21408
|
let containerDiv = targetDiv.parentElement?.parentElement as HTMLDivElement;
|
|
21281
|
-
if(containerDiv != null){
|
|
21409
|
+
if (containerDiv != null) {
|
|
21282
21410
|
containerDiv.innerHTML = '';
|
|
21283
21411
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-settings')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
21284
21412
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-summary')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
@@ -21406,7 +21534,7 @@ export class SfIEvents extends LitElement {
|
|
|
21406
21534
|
let targetDiv = e.target as HTMLDivElement;
|
|
21407
21535
|
let containerDiv = targetDiv.parentElement?.parentElement as HTMLDivElement;
|
|
21408
21536
|
console.log('containerDiv', containerDiv);
|
|
21409
|
-
if(containerDiv != null){
|
|
21537
|
+
if (containerDiv != null) {
|
|
21410
21538
|
containerDiv.innerHTML = '';
|
|
21411
21539
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-settings')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
21412
21540
|
containerDiv.parentElement?.parentElement?.querySelector('#chart-control-summary')?.setAttribute('part', 'calendar-tab-button-not-selected');
|
|
@@ -21415,7 +21543,7 @@ export class SfIEvents extends LitElement {
|
|
|
21415
21543
|
});
|
|
21416
21544
|
|
|
21417
21545
|
container.querySelector('#button-download-stats')?.addEventListener('click', async () => {
|
|
21418
|
-
if (selectedTab === -1){
|
|
21546
|
+
if (selectedTab === -1) {
|
|
21419
21547
|
if (this.selectedFeatures.indexOf('compliances') >= 0) {
|
|
21420
21548
|
await this.fetchAndYearlyRenderUserCalendar_2(this.sdate, this.edate, "", "no")
|
|
21421
21549
|
} else if (this.selectedFeatures.indexOf('notices') >= 0) {
|
|
@@ -21424,7 +21552,7 @@ export class SfIEvents extends LitElement {
|
|
|
21424
21552
|
await this.fetchAndRenderContracts(this.sdate, this.edate, "", "no");
|
|
21425
21553
|
} else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
21426
21554
|
await this.fetchAndRenderLicenses(this.sdate, this.edate, "", "no");
|
|
21427
|
-
}
|
|
21555
|
+
}
|
|
21428
21556
|
// await this.fetchAndYearlyRenderUserCalendar_2(this.sdate, this.edate, "", "no");
|
|
21429
21557
|
}
|
|
21430
21558
|
const radioCsv = (container.querySelector('#radio-csv') as HTMLInputElement);
|
|
@@ -21651,7 +21779,7 @@ export class SfIEvents extends LitElement {
|
|
|
21651
21779
|
}
|
|
21652
21780
|
html += '</div>';
|
|
21653
21781
|
|
|
21654
|
-
if((container.querySelector('#chart-settings-controls') as HTMLDivElement) != null){
|
|
21782
|
+
if ((container.querySelector('#chart-settings-controls') as HTMLDivElement) != null) {
|
|
21655
21783
|
(container.querySelector('#chart-settings-controls') as HTMLDivElement).innerHTML = html;
|
|
21656
21784
|
|
|
21657
21785
|
(container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-settings')?.addEventListener('click', () => {
|
|
@@ -22030,7 +22158,7 @@ export class SfIEvents extends LitElement {
|
|
|
22030
22158
|
}
|
|
22031
22159
|
}
|
|
22032
22160
|
|
|
22033
|
-
|
|
22161
|
+
console.log('newarrlist', newArrList);
|
|
22034
22162
|
|
|
22035
22163
|
let filteredHTML = '';
|
|
22036
22164
|
|
|
@@ -22061,6 +22189,7 @@ export class SfIEvents extends LitElement {
|
|
|
22061
22189
|
filteredHTML += (newArrList[i] as HTMLTableRowElement).outerHTML;
|
|
22062
22190
|
}
|
|
22063
22191
|
filteredHTML += '</table></div>';
|
|
22192
|
+
// console.log('filteredHTML', filteredHTML);
|
|
22064
22193
|
return filteredHTML;
|
|
22065
22194
|
}
|
|
22066
22195
|
|
|
@@ -23311,7 +23440,7 @@ export class SfIEvents extends LitElement {
|
|
|
23311
23440
|
let graphparamname1Arr = (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' ').split(' • ');
|
|
23312
23441
|
let filterFound = false;
|
|
23313
23442
|
for (let tempFilterStr of graphparamname1Arr) {
|
|
23314
|
-
|
|
23443
|
+
console.log('graphparamname1Arr', tempFilterStr, this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '), tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
23315
23444
|
if (tempFilterStr == this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') || this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' ') == "") {
|
|
23316
23445
|
filterFound = true;
|
|
23317
23446
|
break;
|
|
@@ -25001,7 +25130,7 @@ export class SfIEvents extends LitElement {
|
|
|
25001
25130
|
"makercheckers": makercheckers
|
|
25002
25131
|
}
|
|
25003
25132
|
|
|
25004
|
-
console.log('reportingbody',body);
|
|
25133
|
+
console.log('reportingbody', body);
|
|
25005
25134
|
let retValue = true;
|
|
25006
25135
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25007
25136
|
const xhr: any = (await this.prepareXhr(body, url, this._SfLoader, authorization)) as any;
|
|
@@ -26842,16 +26971,17 @@ export class SfIEvents extends LitElement {
|
|
|
26842
26971
|
|
|
26843
26972
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
26844
26973
|
console.log('jsonRespose', jsonRespose);
|
|
26845
|
-
let
|
|
26974
|
+
let contracts = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
26846
26975
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
26847
26976
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
26848
|
-
let tempEvents = this.events
|
|
26849
|
-
for (let mmddyyyy of Object.keys(
|
|
26850
|
-
|
|
26851
|
-
}
|
|
26852
|
-
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;
|
|
26853
26983
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
26854
|
-
console.log('contracts',
|
|
26984
|
+
console.log('contracts', contracts);
|
|
26855
26985
|
} else {
|
|
26856
26986
|
if (xhr.status == 401) {
|
|
26857
26987
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
@@ -26923,13 +27053,14 @@ export class SfIEvents extends LitElement {
|
|
|
26923
27053
|
let licenses = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
26924
27054
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
26925
27055
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
26926
|
-
let tempEvents = this.events
|
|
26927
|
-
for (let mmddyyyy of Object.keys(licenses)) {
|
|
26928
|
-
|
|
26929
|
-
}
|
|
26930
|
-
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;
|
|
26931
27062
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
26932
|
-
console.log('licenses', licenses
|
|
27063
|
+
console.log('licenses', licenses);
|
|
26933
27064
|
} else {
|
|
26934
27065
|
if (xhr.status == 401) {
|
|
26935
27066
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|