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/sf-i-events.js
CHANGED
|
@@ -2888,7 +2888,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2888
2888
|
};
|
|
2889
2889
|
//(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
|
|
2890
2890
|
this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton) => {
|
|
2891
|
-
var _a, _b, _c, _f, _g, _h, _j, _k;
|
|
2891
|
+
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38;
|
|
2892
2892
|
var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0, active = 0, aboutToExpire = 0, expired = 0, terminated = 0;
|
|
2893
2893
|
var html = '';
|
|
2894
2894
|
this.selectedItemIds = [];
|
|
@@ -2906,10 +2906,27 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2906
2906
|
html += this.renderCalendarGraphs(showGraph, parametersTitle, showBackgroundButton);
|
|
2907
2907
|
html += this.renderCalendarContainerDivStart(index);
|
|
2908
2908
|
html += this.renderCalendarEventSummary();
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2909
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
2910
|
+
csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter';
|
|
2911
|
+
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>';
|
|
2912
|
+
}
|
|
2913
|
+
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
2914
|
+
csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter';
|
|
2915
|
+
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>';
|
|
2916
|
+
}
|
|
2917
|
+
else {
|
|
2918
|
+
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';
|
|
2919
|
+
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>';
|
|
2920
|
+
}
|
|
2921
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
2922
|
+
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>';
|
|
2923
|
+
}
|
|
2924
|
+
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
2925
|
+
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>';
|
|
2926
|
+
}
|
|
2927
|
+
else {
|
|
2928
|
+
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>';
|
|
2929
|
+
}
|
|
2913
2930
|
for (var i = iInit; i <= iLast; i++) {
|
|
2914
2931
|
let mmdd = "";
|
|
2915
2932
|
if (firstDate == null) {
|
|
@@ -2979,90 +2996,195 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2979
2996
|
terminated = terminated + (complianceStatus == "terminated" ? 1 : 0);
|
|
2980
2997
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
2981
2998
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
2999
|
+
if (this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] != null) {
|
|
3000
|
+
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE + "obj"] = this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE];
|
|
3001
|
+
}
|
|
2982
3002
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
2983
3003
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
2984
3004
|
if (this.events[mmdd][j]["documents"] != null) {
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3005
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
3006
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter
|
|
3007
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
3008
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
3009
|
+
csvValues += ('"' + ((this.events[mmdd][j]["contracttypename"] + "").replace(/"/g, "") + '",'));
|
|
3010
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3011
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3012
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3013
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party1"] + "").replace(/"/g, "") + '",'));
|
|
3014
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party2"] + "").replace(/"/g, "") + '",'));
|
|
3015
|
+
csvValues += ('"' + ((this.events[mmdd][j]["party3"] + "").replace(/"/g, "") + '",'));
|
|
3016
|
+
csvValues += ('"' + ((((_b = ((_a = this.events[mmdd][j]["reporters"]) !== null && _a !== void 0 ? _a : [])[0]) !== null && _b !== void 0 ? _b : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3017
|
+
csvValues += ('"' + ((((_f = ((_c = this.events[mmdd][j]["approvers"]) !== null && _c !== void 0 ? _c : [])[0]) !== null && _f !== void 0 ? _f : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3018
|
+
csvValues += ('"' + ((((_h = ((_g = this.events[mmdd][j]["functionheads"]) !== null && _g !== void 0 ? _g : [])[0]) !== null && _h !== void 0 ? _h : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3019
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
3020
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
3021
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
3022
|
+
//Id,RefNo,Type,Country,Entity,Location,Party1,Party2,Party3,DueDate,Status,ReportParameter
|
|
3023
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
3024
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
3025
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["contracttypename"] + '</td>'
|
|
3026
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3027
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3028
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3029
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["party1"] + '</td>'
|
|
3030
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["party2"] + '</td>'
|
|
3031
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["party3"] + '</td>'
|
|
3032
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
3033
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
3034
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
3035
|
+
+ '</tr>');
|
|
3036
|
+
}
|
|
3037
|
+
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
3038
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter
|
|
3039
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
3040
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
3041
|
+
csvValues += ('"' + ((this.events[mmdd][j]["licensetypename"] + "").replace(/"/g, "") + '",'));
|
|
3042
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3043
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3044
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3045
|
+
csvValues += ('"' + ((((_k = ((_j = this.events[mmdd][j]["reporters"]) !== null && _j !== void 0 ? _j : [])[0]) !== null && _k !== void 0 ? _k : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3046
|
+
csvValues += ('"' + ((((_m = ((_l = this.events[mmdd][j]["approvers"]) !== null && _l !== void 0 ? _l : [])[0]) !== null && _m !== void 0 ? _m : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3047
|
+
csvValues += ('"' + ((((_p = ((_o = this.events[mmdd][j]["functionheads"]) !== null && _o !== void 0 ? _o : [])[0]) !== null && _p !== void 0 ? _p : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3048
|
+
csvValues += ('"' + ((_u = (_t = (_s = (_r = (_q = this.events) === null || _q === void 0 ? void 0 : _q[mmdd]) === null || _r === void 0 ? void 0 : _r[j]) === null || _s === void 0 ? void 0 : _s.statute) === null || _t === void 0 ? void 0 : _t.state) !== null && _u !== void 0 ? _u : "" + '",'));
|
|
3049
|
+
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
3050
|
+
csvValues += ('"' + ((_z = (_y = (_x = (_w = (_v = this.events) === null || _v === void 0 ? void 0 : _v[mmdd]) === null || _w === void 0 ? void 0 : _w[j]) === null || _x === void 0 ? void 0 : _x.complianceobj) === null || _y === void 0 ? void 0 : _y.category) !== null && _z !== void 0 ? _z : "" + '",'));
|
|
3051
|
+
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
3052
|
+
csvValues += ('"' + (((_3 = (_2 = (_1 = (_0 = this.events) === null || _0 === void 0 ? void 0 : _0[mmdd]) === null || _1 === void 0 ? void 0 : _1[j]) === null || _2 === void 0 ? void 0 : _2.statute) === null || _3 === void 0 ? void 0 : _3.name) + '",'));
|
|
3053
|
+
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
3054
|
+
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
3055
|
+
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
3056
|
+
csvValues += ('"' + ((((_8 = (_7 = (_6 = (_5 = (_4 = this.events) === null || _4 === void 0 ? void 0 : _4[mmdd]) === null || _5 === void 0 ? void 0 : _5[j]) === null || _6 === void 0 ? void 0 : _6.complianceobj) === null || _7 === void 0 ? void 0 : _7.subfrequency) !== null && _8 !== void 0 ? _8 : "") + "").replace(/"/g, "") + '",'));
|
|
3057
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
3058
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
3059
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
3060
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
3061
|
+
//Id,ReferenceNo.,Type,Country,Entity,Location,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter
|
|
3062
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
3063
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
3064
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["licensetypename"] + '</td>'
|
|
3065
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3066
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3067
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3068
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((_13 = (_12 = (_11 = (_10 = (_9 = this.events) === null || _9 === void 0 ? void 0 : _9[mmdd]) === null || _10 === void 0 ? void 0 : _10[j]) === null || _11 === void 0 ? void 0 : _11.statute) === null || _12 === void 0 ? void 0 : _12.state) !== null && _13 !== void 0 ? _13 : "") + '</td>'
|
|
3069
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
|
|
3070
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_18 = (_17 = (_16 = (_15 = (_14 = this.events) === null || _14 === void 0 ? void 0 : _14[mmdd]) === null || _15 === void 0 ? void 0 : _15[j]) === null || _16 === void 0 ? void 0 : _16.complianceobj) === null || _17 === void 0 ? void 0 : _17.category) !== null && _18 !== void 0 ? _18 : "") + '</td>'
|
|
3071
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["subcategory"] + '</td>'
|
|
3072
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_23 = (_22 = (_21 = (_20 = (_19 = this.events) === null || _19 === void 0 ? void 0 : _19[mmdd]) === null || _20 === void 0 ? void 0 : _20[j]) === null || _21 === void 0 ? void 0 : _21.statute) === null || _22 === void 0 ? void 0 : _22.name) !== null && _23 !== void 0 ? _23 : "") + '</td>'
|
|
3073
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
|
|
3074
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
|
|
3075
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
|
|
3076
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
|
|
3077
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (((_28 = (_27 = (_26 = (_25 = (_24 = this.events) === null || _24 === void 0 ? void 0 : _24[mmdd]) === null || _25 === void 0 ? void 0 : _25[j]) === null || _26 === void 0 ? void 0 : _26.complianceobj) === null || _27 === void 0 ? void 0 : _27.subfrequency) !== null && _28 !== void 0 ? _28 : "") + "").replace(/"/g, "") + '</td>'
|
|
3078
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
3079
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
3080
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
3081
|
+
+ '</tr>');
|
|
3082
|
+
}
|
|
3083
|
+
else {
|
|
3084
|
+
//Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State
|
|
3085
|
+
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
3086
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3087
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3088
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3089
|
+
csvValues += ('"' + ((((_30 = ((_29 = this.events[mmdd][j]["functions"]) !== null && _29 !== void 0 ? _29 : [])[0]) !== null && _30 !== void 0 ? _30 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3090
|
+
csvValues += ('"' + ((((_32 = ((_31 = this.events[mmdd][j]["reporters"]) !== null && _31 !== void 0 ? _31 : [])[0]) !== null && _32 !== void 0 ? _32 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3091
|
+
csvValues += ('"' + ((((_34 = ((_33 = this.events[mmdd][j]["approvers"]) !== null && _33 !== void 0 ? _33 : [])[0]) !== null && _34 !== void 0 ? _34 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3092
|
+
csvValues += ('"' + ((((_36 = ((_35 = this.events[mmdd][j]["functionheads"]) !== null && _35 !== void 0 ? _35 : [])[0]) !== null && _36 !== void 0 ? _36 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3093
|
+
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
3094
|
+
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
3095
|
+
csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
|
|
3096
|
+
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
3097
|
+
csvValues += ('"' + (this.events[mmdd][j]["statute"] + '",'));
|
|
3098
|
+
csvValues += ('"' + ((this.events[mmdd][j]["reference"] + "").replace(/"/g, "") + '",'));
|
|
3099
|
+
csvValues += ('"' + ((this.events[mmdd][j]["applicability"] + "").replace(/"/g, "") + '",'));
|
|
3100
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
3101
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
|
|
3102
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligation"] + "").replace(/"/g, "") + '",'));
|
|
3103
|
+
csvValues += ('"' + ((this.events[mmdd][j]["firstlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
3104
|
+
csvValues += ('"' + ((this.events[mmdd][j]["secondlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
3105
|
+
csvValues += ('"' + ((this.events[mmdd][j]["thirdlineofdefence"] + "").replace(/"/g, "") + '",'));
|
|
3106
|
+
csvValues += ('"' + ((this.events[mmdd][j]["internalcontrols"] + "").replace(/"/g, "") + '",'));
|
|
3107
|
+
csvValues += ('"' + ((this.events[mmdd][j]["penalty"] + "").replace(/"/g, "") + '",'));
|
|
3108
|
+
csvValues += ('"' + ((this.events[mmdd][j]["form"] + "").replace(/"/g, "") + '",'));
|
|
3109
|
+
csvValues += ('"' + ((this.events[mmdd][j]["additionalurls"] + "").replace(/"/g, "") + '",'));
|
|
3110
|
+
csvValues += ('"' + ((this.events[mmdd][j]["definition"] + "").replace(/"/g, "") + '",'));
|
|
3111
|
+
csvValues += ('"' + ((this.events[mmdd][j]["authority"] + "").replace(/"/g, "") + '",'));
|
|
3112
|
+
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
3113
|
+
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
3114
|
+
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
3115
|
+
csvValues += ('"' + ((this.events[mmdd][j]["subfrequency"] + "").replace(/"/g, "") + '",'));
|
|
3116
|
+
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
3117
|
+
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
3118
|
+
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
3119
|
+
// csvValues += (period + ','
|
|
3120
|
+
// + this.renderStatusString(partStatus, lateStatus, complianceStatus) + ','
|
|
3121
|
+
// + this.events[mmdd][j]["id"] + ','
|
|
3122
|
+
// + this.events[mmdd][j]["obligationtitle"] + ','
|
|
3123
|
+
// + this.events[mmdd][j]["obligation"] + ','
|
|
3124
|
+
// + this.events[mmdd][j]["duedate"]
|
|
3125
|
+
// + '\n');
|
|
3126
|
+
htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
|
|
3127
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["country"] + '</td>'
|
|
3128
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["state"] + '</td>'
|
|
3129
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
|
|
3130
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["category"] + '</td>'
|
|
3131
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["subcategory"] + '</td>'
|
|
3132
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["statute"] + '</td>'
|
|
3133
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["reference"] + '</td>'
|
|
3134
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["applicability"] + '</td>'
|
|
3135
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
|
|
3136
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
|
|
3137
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligation"] + '</td>'
|
|
3138
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["firstlineofdefence"] + '</td>'
|
|
3139
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["secondlineofdefence"] + '</td>'
|
|
3140
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["thirdlineofdefence"] + '</td>'
|
|
3141
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["internalcontrols"] + '</td>'
|
|
3142
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["penalty"] + '</td>'
|
|
3143
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["form"] + '</td>'
|
|
3144
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["additionalurls"] + '</td>'
|
|
3145
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["definition"] + '</td>'
|
|
3146
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["authority"] + '</td>'
|
|
3147
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
|
|
3148
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
|
|
3149
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
|
|
3150
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["subfrequency"] + '</td>'
|
|
3151
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
3152
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
3153
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
3154
|
+
+ '</tr>');
|
|
3155
|
+
}
|
|
3156
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
3157
|
+
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>'
|
|
3158
|
+
+ '<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>'
|
|
3159
|
+
+ '<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>'
|
|
3160
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3161
|
+
for (let document of (_37 = this.events[mmdd][j].contractdocuments) !== null && _37 !== void 0 ? _37 : []) {
|
|
3162
|
+
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 />`;
|
|
3163
|
+
}
|
|
3164
|
+
htmlSummaryValues += '</td></tr>';
|
|
3165
|
+
}
|
|
3166
|
+
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
3167
|
+
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>'
|
|
3168
|
+
+ '<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>'
|
|
3169
|
+
+ '<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>'
|
|
3170
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3171
|
+
for (let document of (_38 = this.events[mmdd][j].licensedocuments) !== null && _38 !== void 0 ? _38 : []) {
|
|
3172
|
+
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 />`;
|
|
3173
|
+
}
|
|
3174
|
+
htmlSummaryValues += '</td></tr>';
|
|
3175
|
+
}
|
|
3176
|
+
else {
|
|
3177
|
+
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>'
|
|
3178
|
+
+ '<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>'
|
|
3179
|
+
// + '<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>'
|
|
3180
|
+
+ '<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>'
|
|
3181
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3182
|
+
for (let document of this.events[mmdd][j].documents) {
|
|
3183
|
+
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 />`;
|
|
3184
|
+
}
|
|
3185
|
+
// htmlSummaryValues += this.renderCalendarAnnotations(this.events[mmdd][j]);
|
|
3186
|
+
htmlSummaryValues += '</td></tr>';
|
|
3063
3187
|
}
|
|
3064
|
-
// htmlSummaryValues += this.renderCalendarAnnotations(this.events[mmdd][j]);
|
|
3065
|
-
htmlSummaryValues += '</td></tr>';
|
|
3066
3188
|
}
|
|
3067
3189
|
html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus);
|
|
3068
3190
|
if (this.events[mmdd][j]["countryname"] != null) {
|
|
@@ -13857,17 +13979,26 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13857
13979
|
console.log('csv data', tempArr);
|
|
13858
13980
|
let changeCount = 0;
|
|
13859
13981
|
for (let [i, obj] of tempArr.entries()) {
|
|
13860
|
-
|
|
13982
|
+
let tempObj = taggingArray.data.mappings.mappings[i];
|
|
13983
|
+
delete tempObj['delta'];
|
|
13984
|
+
delete tempObj['lastupdated'];
|
|
13985
|
+
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) {
|
|
13986
|
+
console.log('changed onboarding item', tempObj, obj, JSON.stringify(tempObj) !== JSON.stringify(obj));
|
|
13987
|
+
}
|
|
13988
|
+
if (JSON.stringify(tempObj) !== JSON.stringify(obj)) {
|
|
13861
13989
|
// console.log('item changed', taggingArray.data.mappings.mappings[i], obj)
|
|
13862
13990
|
let changedId = "";
|
|
13863
13991
|
for (let [k, col] of uniqCols.entries()) {
|
|
13864
|
-
changedId +=
|
|
13992
|
+
changedId += tempObj[col];
|
|
13865
13993
|
if (k < (uniqCols.length - 1)) {
|
|
13866
13994
|
changedId += ";";
|
|
13867
13995
|
}
|
|
13868
13996
|
}
|
|
13869
13997
|
// this.changedOnboardingItemIds.push(taggingArray.data.mappings.mappings[i].id + ";" + taggingArray.data.mappings.mappings[i].entityid + ";" + taggingArray.data.mappings.mappings[i].locationid)
|
|
13870
13998
|
this.changedOnboardingItemIds.push(changedId);
|
|
13999
|
+
// if(changedId.indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0){
|
|
14000
|
+
// console.log('changed onboarding item', tempObj, obj)
|
|
14001
|
+
// }
|
|
13871
14002
|
changeCount++;
|
|
13872
14003
|
}
|
|
13873
14004
|
}
|
|
@@ -14904,84 +15035,84 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14904
15035
|
html += '</div>';
|
|
14905
15036
|
this._SfOnboardingTriggersContainer.innerHTML = html;
|
|
14906
15037
|
//console.log('rendering triggers...', (this._SfOnboardingTriggersContainer as HTMLDivElement).innerHTML);
|
|
14907
|
-
this.renderTaggingTable(this._SfOnboardingTriggersListContainer, mappedSerializedAlertSchedules, mappedTriggers, ["obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15038
|
+
this.renderTaggingTable(this._SfOnboardingTriggersListContainer, mappedSerializedAlertSchedules, mappedTriggers, ["shortid", "obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14908
15039
|
};
|
|
14909
15040
|
this.renderOnboardingInternalControls = (mappedInternalControls, mappedSerializedTriggers, internalcontrolsJobs) => {
|
|
14910
15041
|
var html = '';
|
|
14911
15042
|
html += '<div id="internalcontrols-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14912
15043
|
html += '</div>';
|
|
14913
15044
|
this._SfOnboardingInternalControlsContainer.innerHTML = html;
|
|
14914
|
-
this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedTriggers, mappedInternalControls, ["obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15045
|
+
this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedTriggers, mappedInternalControls, ["shortid", "obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14915
15046
|
};
|
|
14916
15047
|
this.renderOnboardingActivations = (mappedActivations, mappedSerializedExtensions, activationsJobs) => {
|
|
14917
15048
|
var html = '';
|
|
14918
15049
|
html += '<div id="activations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14919
15050
|
html += '</div>';
|
|
14920
15051
|
this._SfOnboardingActivationsContainer.innerHTML = html;
|
|
14921
|
-
this.renderTaggingTable(this._SfOnboardingActivationListContainer, mappedSerializedExtensions, mappedActivations, ["obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15052
|
+
this.renderTaggingTable(this._SfOnboardingActivationListContainer, mappedSerializedExtensions, mappedActivations, ["shortid", "obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14922
15053
|
};
|
|
14923
15054
|
this.renderOnboardingInvalidations = (mappedInvalidations, mappedSerializedExtensions, invalidationsJobs) => {
|
|
14924
15055
|
var html = '';
|
|
14925
15056
|
html += '<div id="invalidations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14926
15057
|
html += '</div>';
|
|
14927
15058
|
this._SfOnboardingInvalidationsContainer.innerHTML = html;
|
|
14928
|
-
this.renderTaggingTable(this._SfOnboardingInvalidationListContainer, mappedSerializedExtensions, mappedInvalidations, ["obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15059
|
+
this.renderTaggingTable(this._SfOnboardingInvalidationListContainer, mappedSerializedExtensions, mappedInvalidations, ["shortid", "obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14929
15060
|
};
|
|
14930
15061
|
this.renderOnboardingAlertSchedules = (mappedAlertSchedules, mappedSerializedExtensions, alertschedulesJobs) => {
|
|
14931
15062
|
var html = '';
|
|
14932
15063
|
html += '<div id="alertschedules-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14933
15064
|
html += '</div>';
|
|
14934
15065
|
this._SfOnboardingAlertSchedulesContainer.innerHTML = html;
|
|
14935
|
-
this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedExtensions, mappedAlertSchedules, ["obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15066
|
+
this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedExtensions, mappedAlertSchedules, ["shortid", "obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14936
15067
|
};
|
|
14937
15068
|
this.renderOnboardingExtensions = (mappedExtensions, mappedSerializedDuedates, extensionsJobs) => {
|
|
14938
15069
|
var html = '';
|
|
14939
15070
|
html += '<div id="extensions-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14940
15071
|
html += '</div>';
|
|
14941
15072
|
this._SfOnboardingExtensionsContainer.innerHTML = html;
|
|
14942
|
-
this.renderTaggingTable(this._SfOnboardingExtensionsListContainer, mappedSerializedDuedates, mappedExtensions, ["obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15073
|
+
this.renderTaggingTable(this._SfOnboardingExtensionsListContainer, mappedSerializedDuedates, mappedExtensions, ["shortid", "obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14943
15074
|
};
|
|
14944
15075
|
this.renderOnboardingDuedates = (mappedDuedates, mappedSerializedMakerCheckers, duedatesJobs) => {
|
|
14945
15076
|
var html = '';
|
|
14946
15077
|
html += '<div id="duedates-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14947
15078
|
html += '</div>';
|
|
14948
15079
|
this._SfOnboardingDuedatesContainer.innerHTML = html;
|
|
14949
|
-
this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedMakerCheckers, mappedDuedates, ["obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15080
|
+
this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedMakerCheckers, mappedDuedates, ["shortid", "obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14950
15081
|
};
|
|
14951
15082
|
this.renderOnboardingReporters = (mappedReporters, mappedSerializedTags, reportersJobs, _arrFeedbackReference) => {
|
|
14952
15083
|
var html = '';
|
|
14953
15084
|
html += '<div id="reporters-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14954
15085
|
html += '</div>';
|
|
14955
15086
|
this._SfOnboardingReportersContainer.innerHTML = html;
|
|
14956
|
-
this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, ["obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15087
|
+
this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, ["shortid", "obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
14957
15088
|
};
|
|
14958
15089
|
this.renderOnboardingApprovers = (mappedApprovers, mappedSerializedReporters, approversJobs, _arrFeedbackReference) => {
|
|
14959
15090
|
var html = '';
|
|
14960
15091
|
html += '<div id="approvers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14961
15092
|
html += '</div>';
|
|
14962
15093
|
this._SfOnboardingApproversContainer.innerHTML = html;
|
|
14963
|
-
this.renderTaggingTable(this._SfOnboardingApproversListContainer, mappedSerializedReporters, mappedApprovers, ["obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15094
|
+
this.renderTaggingTable(this._SfOnboardingApproversListContainer, mappedSerializedReporters, mappedApprovers, ["shortid", "obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
14964
15095
|
};
|
|
14965
15096
|
this.renderOnboardingFunctionHeads = (mappedFunctionHeads, mappedSerializedApprovers, functionHeadsJobs, _arrFeedbackReference) => {
|
|
14966
15097
|
var html = '';
|
|
14967
15098
|
html += '<div id="functionheads-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14968
15099
|
html += '</div>';
|
|
14969
15100
|
this._SfOnboardingFunctionHeadsContainer.innerHTML = html;
|
|
14970
|
-
this.renderTaggingTable(this._SfOnboardingFunctionHeadsListContainer, mappedSerializedApprovers, mappedFunctionHeads, ["obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15101
|
+
this.renderTaggingTable(this._SfOnboardingFunctionHeadsListContainer, mappedSerializedApprovers, mappedFunctionHeads, ["shortid", "obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
14971
15102
|
};
|
|
14972
15103
|
this.renderOnboardingMakerCheckers = (mappedMakerCheckers, mappedSerializedDocs, makerCheckerJobs) => {
|
|
14973
15104
|
var html = '';
|
|
14974
15105
|
html += '<div id="makercheckers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14975
15106
|
html += '</div>';
|
|
14976
15107
|
this._SfOnboardingMakerCheckersContainer.innerHTML = html;
|
|
14977
|
-
this.renderTaggingTable(this._SfOnboardingMakerCheckersListContainer, mappedSerializedDocs, mappedMakerCheckers, ["obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15108
|
+
this.renderTaggingTable(this._SfOnboardingMakerCheckersListContainer, mappedSerializedDocs, mappedMakerCheckers, ["shortid", "obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14978
15109
|
};
|
|
14979
15110
|
this.renderOnboardingDocs = (mappedDocs, mappedSerializedViewers, docsJobs) => {
|
|
14980
15111
|
var html = '';
|
|
14981
15112
|
html += '<div id="docs-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14982
15113
|
html += '</div>';
|
|
14983
15114
|
this._SfOnboardingDocsContainer.innerHTML = html;
|
|
14984
|
-
this.renderTaggingTable(this._SfOnboardingDocsListContainer, mappedSerializedViewers, mappedDocs, ["obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15115
|
+
this.renderTaggingTable(this._SfOnboardingDocsListContainer, mappedSerializedViewers, mappedDocs, ["shortid", "obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14985
15116
|
};
|
|
14986
15117
|
this.renderOnboardingAuditors = (mappedAuditors, mappedSerializedFunctionheads, auditorsJobs, _arrFeedbackReference) => {
|
|
14987
15118
|
//console.log('inside rendering auditors..');
|
|
@@ -14989,7 +15120,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14989
15120
|
html += '<div id="auditors-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14990
15121
|
html += '</div>';
|
|
14991
15122
|
this._SfOnboardingAuditorsContainer.innerHTML = html;
|
|
14992
|
-
this.renderTaggingTable(this._SfOnboardingAuditorsListContainer, mappedSerializedFunctionheads, mappedAuditors, ["obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15123
|
+
this.renderTaggingTable(this._SfOnboardingAuditorsListContainer, mappedSerializedFunctionheads, mappedAuditors, ["shortid", "obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
14993
15124
|
};
|
|
14994
15125
|
this.renderOnboardingViewers = (mappedViewers, mappedSerializedAuditors, viewersJobs, _arrFeedbackReference) => {
|
|
14995
15126
|
//console.log('inside rendering viewers..');
|
|
@@ -14997,14 +15128,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14997
15128
|
html += '<div id="viewers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
14998
15129
|
html += '</div>';
|
|
14999
15130
|
this._SfOnboardingViewersContainer.innerHTML = html;
|
|
15000
|
-
this.renderTaggingTable(this._SfOnboardingViewersListContainer, mappedSerializedAuditors, mappedViewers, ["obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15131
|
+
this.renderTaggingTable(this._SfOnboardingViewersListContainer, mappedSerializedAuditors, mappedViewers, ["shortid", "obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
15001
15132
|
};
|
|
15002
15133
|
this.renderOnboardingTags = (mappedTags, mappedSerializedFunctions, tagsJobs) => {
|
|
15003
15134
|
var html = '';
|
|
15004
15135
|
html += '<div id="tags-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
15005
15136
|
html += '</div>';
|
|
15006
15137
|
this._SfOnboardingTagsContainer.innerHTML = html;
|
|
15007
|
-
this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedFunctions, mappedTags, ["obligationtitle", "obligationtype"], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15138
|
+
this.renderTaggingTable(this._SfOnboardingTagsListContainer, 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, "", "");
|
|
15008
15139
|
};
|
|
15009
15140
|
this.renderOnboardingFunctions = (mappedFunctions, mappedSerializedLocations, functionsJobs) => {
|
|
15010
15141
|
var html = '';
|
|
@@ -15016,14 +15147,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15016
15147
|
}
|
|
15017
15148
|
}
|
|
15018
15149
|
this._SfOnboardingFunctionsContainer.innerHTML = html;
|
|
15019
|
-
this.renderTaggingTable(this._SfOnboardingFunctionsListContainer, mappedSerializedLocations, mappedFunctions, ["obligationtitle", "obligationtype"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
15150
|
+
this.renderTaggingTable(this._SfOnboardingFunctionsListContainer, 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, "", "");
|
|
15020
15151
|
};
|
|
15021
15152
|
this.renderOnboardingLocations = (mappedLocations, mappedSerializedEntities, locationsJobs) => {
|
|
15022
15153
|
var html = '';
|
|
15023
15154
|
html += '<div id="locations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
15024
15155
|
html += '</div>';
|
|
15025
15156
|
this._SfOnboardingLocationsContainer.innerHTML = html;
|
|
15026
|
-
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, 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, "", "");
|
|
15157
|
+
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, 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, "", "");
|
|
15027
15158
|
};
|
|
15028
15159
|
this.renderOnboardingCompliances = (mappedStatutes, mappedCompliances) => {
|
|
15029
15160
|
//console.log('mappedcompliances', mappedCompliances);
|
|
@@ -15138,7 +15269,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15138
15269
|
html += '<div id="entities-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
15139
15270
|
html += '</div>';
|
|
15140
15271
|
this._SfOnboardingEntitiesContainer.innerHTML = html;
|
|
15141
|
-
this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, 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", "");
|
|
15272
|
+
this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, 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", "");
|
|
15142
15273
|
};
|
|
15143
15274
|
this.renderOnboardingCountries = (mappedCountries, mappedCompliances, countriesJobs) => {
|
|
15144
15275
|
var html = '';
|
|
@@ -16807,7 +16938,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16807
16938
|
}
|
|
16808
16939
|
}
|
|
16809
16940
|
}
|
|
16810
|
-
|
|
16941
|
+
console.log('newarrlist', newArrList);
|
|
16811
16942
|
let filteredHTML = '';
|
|
16812
16943
|
if (this.selectedFilters != null) {
|
|
16813
16944
|
if (this.selectedFilters.selected) {
|
|
@@ -16831,6 +16962,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16831
16962
|
filteredHTML += newArrList[i].outerHTML;
|
|
16832
16963
|
}
|
|
16833
16964
|
filteredHTML += '</table></div>';
|
|
16965
|
+
// console.log('filteredHTML', filteredHTML);
|
|
16834
16966
|
return filteredHTML;
|
|
16835
16967
|
};
|
|
16836
16968
|
this.getFilteredStringSummary = () => {
|
|
@@ -20664,7 +20796,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20664
20796
|
}
|
|
20665
20797
|
};
|
|
20666
20798
|
this.fetchAndRenderContracts = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY) => {
|
|
20667
|
-
var _a;
|
|
20668
20799
|
let path = "", view = "";
|
|
20669
20800
|
this.sdate = startDate;
|
|
20670
20801
|
this.edate = endDate;
|
|
@@ -20705,16 +20836,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20705
20836
|
if (xhr.status == 200) {
|
|
20706
20837
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
20707
20838
|
console.log('jsonRespose', jsonRespose);
|
|
20708
|
-
let
|
|
20839
|
+
let contracts = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
20709
20840
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
20710
20841
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
20711
|
-
let tempEvents = this.events
|
|
20712
|
-
for (let mmddyyyy of Object.keys(
|
|
20713
|
-
|
|
20714
|
-
}
|
|
20715
|
-
this.events = tempEvents;
|
|
20842
|
+
// let tempEvents = this.events
|
|
20843
|
+
// for (let mmddyyyy of Object.keys(contracts)) {
|
|
20844
|
+
// tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []), ...contracts[mmddyyyy]]
|
|
20845
|
+
// }
|
|
20846
|
+
// this.events = tempEvents;
|
|
20847
|
+
this.events = contracts;
|
|
20716
20848
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
20717
|
-
console.log('contracts',
|
|
20849
|
+
console.log('contracts', contracts);
|
|
20718
20850
|
}
|
|
20719
20851
|
else {
|
|
20720
20852
|
if (xhr.status == 401) {
|
|
@@ -20733,7 +20865,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20733
20865
|
}
|
|
20734
20866
|
};
|
|
20735
20867
|
this.fetchAndRenderLicenses = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY) => {
|
|
20736
|
-
var _a;
|
|
20737
20868
|
let path = "", view = "";
|
|
20738
20869
|
this.sdate = startDate;
|
|
20739
20870
|
this.edate = endDate;
|
|
@@ -20777,13 +20908,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20777
20908
|
let licenses = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
20778
20909
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
20779
20910
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
20780
|
-
let tempEvents = this.events
|
|
20781
|
-
for (let mmddyyyy of Object.keys(licenses)) {
|
|
20782
|
-
|
|
20783
|
-
}
|
|
20784
|
-
this.events = tempEvents;
|
|
20911
|
+
// let tempEvents = this.events
|
|
20912
|
+
// for (let mmddyyyy of Object.keys(licenses)) {
|
|
20913
|
+
// tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []), ...licenses[mmddyyyy]]
|
|
20914
|
+
// }
|
|
20915
|
+
// this.events = tempEvents;
|
|
20916
|
+
this.events = licenses;
|
|
20785
20917
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
20786
|
-
console.log('licenses', licenses
|
|
20918
|
+
console.log('licenses', licenses);
|
|
20787
20919
|
}
|
|
20788
20920
|
else {
|
|
20789
20921
|
if (xhr.status == 401) {
|