sf-i-events 1.0.849 → 1.0.851
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 +18 -7
- package/package.json +3 -2
- package/sf-i-events.d.ts +6 -1
- package/sf-i-events.js +344 -100
- package/src/sf-i-events.ts +6098 -5852
package/sf-i-events.js
CHANGED
|
@@ -850,6 +850,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
850
850
|
`;
|
|
851
851
|
this.AUTOSAVE_FLAG = true;
|
|
852
852
|
this.EXCLUDE_COLS_FROM_REGS = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "entities", "locations", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"];
|
|
853
|
+
this.CHARTS_LIST_BY_MODULES = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "agreements": ["compliance", "timeliness", "completeness", "location"] };
|
|
853
854
|
this.chartSelectedLegend = [];
|
|
854
855
|
this.selectedFilters = null;
|
|
855
856
|
this.barCharDataSet2 = [];
|
|
@@ -2065,6 +2066,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2065
2066
|
}
|
|
2066
2067
|
};
|
|
2067
2068
|
this.getTimelinessStatus = (mmdd, event, completeness) => {
|
|
2069
|
+
// if(event.module == "agreement"){
|
|
2070
|
+
// if (completeness == "not-started") {
|
|
2071
|
+
// if (this.getPastDueDate(mmdd)) {
|
|
2072
|
+
// return "past-due-date";
|
|
2073
|
+
// } else {
|
|
2074
|
+
// return "in-time"
|
|
2075
|
+
// }
|
|
2076
|
+
// } else if (completeness == "pending-approval" || completeness == "rejected") {
|
|
2077
|
+
// }
|
|
2078
|
+
// }
|
|
2068
2079
|
if (completeness == "not-started") {
|
|
2069
2080
|
if (this.getPastDueDate(mmdd)) {
|
|
2070
2081
|
return "past-due-date";
|
|
@@ -2102,7 +2113,41 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2102
2113
|
}
|
|
2103
2114
|
}
|
|
2104
2115
|
};
|
|
2105
|
-
this.getComplianceStatus = (completeness, timeliness, percentage) => {
|
|
2116
|
+
this.getComplianceStatus = (completeness, timeliness, percentage, event = {}) => {
|
|
2117
|
+
if (event.module == "agreement") {
|
|
2118
|
+
if (completeness == "not-started") {
|
|
2119
|
+
if (timeliness == "in-time") {
|
|
2120
|
+
return "active";
|
|
2121
|
+
}
|
|
2122
|
+
else {
|
|
2123
|
+
return "expired";
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
else if (completeness == "pending-approval") {
|
|
2127
|
+
if (timeliness == "in-time") {
|
|
2128
|
+
return "active";
|
|
2129
|
+
}
|
|
2130
|
+
else {
|
|
2131
|
+
return "expired";
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
else if (completeness == "rejected") {
|
|
2135
|
+
if (timeliness == "in-time") {
|
|
2136
|
+
return "active";
|
|
2137
|
+
}
|
|
2138
|
+
else {
|
|
2139
|
+
return "expired";
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
else {
|
|
2143
|
+
if (timeliness == "in-time" || timeliness == "late-reported" || timeliness == "late-approved") {
|
|
2144
|
+
return "complied";
|
|
2145
|
+
}
|
|
2146
|
+
else {
|
|
2147
|
+
return "expired";
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2106
2151
|
if (completeness == "not-started") {
|
|
2107
2152
|
if (timeliness == "in-time") {
|
|
2108
2153
|
return "scheduled";
|
|
@@ -2205,28 +2250,50 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2205
2250
|
html += '<div part="stream-event-chart-selection" class="mb-20">';
|
|
2206
2251
|
html += '<div part="td-head" class="mb-5">Select Chart</div>';
|
|
2207
2252
|
html += '<div class="mb-10 d-flex flex-wrap align-center">';
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2253
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("completeness") >= 0) {
|
|
2254
|
+
html += '<div part="chart-radio-item"><input type="radio" id="radio-completeness" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_COMPLETENESS) ? 'checked' : '') + '>';
|
|
2255
|
+
html += '<label for="radio-completeness" part="input-label" class="mr-10">Completeness</label></div>';
|
|
2256
|
+
}
|
|
2257
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("timeliness") >= 0) {
|
|
2258
|
+
html += '<div part="chart-radio-item"><input type="radio" id="radio-timeliness" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_TIMELINESS) ? 'checked' : '') + '>';
|
|
2259
|
+
html += '<label for="radio-timeliness" part="input-label" class="mr-10">Timeliness</label></div>';
|
|
2260
|
+
}
|
|
2261
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("compliance") >= 0) {
|
|
2262
|
+
html += '<div part="chart-radio-item"><input type="radio" id="radio-compliance" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_COMPLIANCE) ? 'checked' : '') + '>';
|
|
2263
|
+
html += '<label for="radio-compliance" part="input-label" class="mr-10">Compliance</label></div>';
|
|
2264
|
+
}
|
|
2265
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("riskArea") >= 0) {
|
|
2266
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_RISKAREAS ? '' : 'hide') + '"><input type="radio" id="radio-risk" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_RISKAREAS) ? 'checked' : '') + '>';
|
|
2267
|
+
html += '<label for="radio-risk" part="input-label" class="mr-10">Risk Areas</label></div>';
|
|
2268
|
+
}
|
|
2269
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("riskSeverity") >= 0) {
|
|
2270
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_RISKSEVERITY ? '' : 'hide') + '"><input type="radio" id="radio-riskseverity" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_RISKSEVERITY) ? 'checked' : '') + '>';
|
|
2271
|
+
html += '<label for="radio-riskseverity" part="input-label" class="mr-10">Risk Severity</label></div>';
|
|
2272
|
+
}
|
|
2273
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("location") >= 0) {
|
|
2274
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_LOCATION ? '' : 'hide') + '"><input type="radio" id="radio-location" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_LOCATION) ? 'checked' : '') + '>';
|
|
2275
|
+
html += '<label for="radio-location" part="input-label" class="mr-10">Location</label></div>';
|
|
2276
|
+
}
|
|
2277
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("function") >= 0) {
|
|
2278
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_FUNCTION ? '' : 'hide') + '"><input type="radio" id="radio-function" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_FUNCTION) ? 'checked' : '') + '>';
|
|
2279
|
+
html += '<label for="radio-function" part="input-label" class="mr-10">Function</label></div>';
|
|
2280
|
+
}
|
|
2281
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("obligationType") >= 0) {
|
|
2282
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_OBLIGATIONTYPE ? '' : 'hide') + '"><input type="radio" id="radio-obligationtype" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_OBLIGATIONTYPE) ? 'checked' : '') + '>';
|
|
2283
|
+
html += '<label for="radio-obligationtype" part="input-label" class="mr-10">Obligation Type</label></div>';
|
|
2284
|
+
}
|
|
2285
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("jurisdiction") >= 0) {
|
|
2286
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_JURISDICTION ? '' : 'hide') + '"><input type="radio" id="radio-jurisdiction" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_JURISDICTION) ? 'checked' : '') + '>';
|
|
2287
|
+
html += '<label for="radio-jurisdiction" part="input-label" class="mr-10">Jurisdiction</label></div>';
|
|
2288
|
+
}
|
|
2289
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("frequency") >= 0) {
|
|
2290
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_FREQUENCY ? '' : 'hide') + '"><input type="radio" id="radio-frequency" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_FREQUENCY) ? 'checked' : '') + '>';
|
|
2291
|
+
html += '<label for="radio-frequency" part="input-label" class="mr-10">Frequency</label></div>';
|
|
2292
|
+
}
|
|
2293
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("subcategory") >= 0) {
|
|
2294
|
+
html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_SUBCATEGORY ? '' : 'hide') + '"><input type="radio" id="radio-subcategory" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_SUBCATEGORY) ? 'checked' : '') + '>';
|
|
2295
|
+
html += '<label for="radio-frequency" part="input-label">SubCategory</label></div>';
|
|
2296
|
+
}
|
|
2230
2297
|
html += '<button id="graph-radios-expander" class="ml-10" part="calendar-tab-button-not-selected"><span class="material-symbols-outlined">chevron_right</span></button>';
|
|
2231
2298
|
html += '</div>';
|
|
2232
2299
|
html += '</div>';
|
|
@@ -2294,13 +2361,22 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2294
2361
|
html += '<div part="badge-dashboard" id="chip-timeliness-2" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-reported">report_off</span> <span>Late Reported:</span> <span id="graph-late-reported">DASHBOARD_LATE_REPORTED</span></div>';
|
|
2295
2362
|
html += '<div part="badge-dashboard" id="chip-timeliness-3" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-approved">remove_done</span> <span>Late Approved:</span> <span id="graph-late-approved">DASHBOARD_LATE_APPROVED</span></div>';
|
|
2296
2363
|
html += '<div part="badge-dashboard" id="chip-timeliness-4" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-executed">running_with_errors</span> <span>Late Executed:</span> <span id="graph-late-executed">DASHBOARD_LATE_EXECUTED</span></div>';
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2364
|
+
if (this.selectedFeatures.indexOf("agreements") >= 0) {
|
|
2365
|
+
html += '<div part="badge-dashboard" id="chip-compliance-0" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-scheduled">schedule</span> <span>Active:</span> <span id="graph-active">DASHBOARD_ACTIVE</span></div>';
|
|
2366
|
+
html += '<div part="badge-dashboard" id="chip-compliance-1" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-not-complied">disabled_by_default</span> <span>About To Expire:</span> <span id="graph-about-to-expire">DASHBOARD_ABOUT_TO_EXPIRE</span></div>';
|
|
2367
|
+
html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span> <span>Expired:</span> <span id="graph-expired">DASHBOARD_EXPIRED</span></div>';
|
|
2368
|
+
html += '<div part="badge-dashboard" id="chip-compliance-3" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied">sweep</span> <span>Terminated:</span> <span id="graph-terminated">DASHBOARD_TERMINATED</span></div>';
|
|
2369
|
+
html += '</div>';
|
|
2370
|
+
}
|
|
2371
|
+
else {
|
|
2372
|
+
html += '<div part="badge-dashboard" id="chip-compliance-0" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-scheduled">schedule</span> <span>Scheduled:</span> <span id="graph-scheduled">DASHBOARD_SCHEDULED</span></div>';
|
|
2373
|
+
html += '<div part="badge-dashboard" id="chip-compliance-1" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-not-complied">disabled_by_default</span> <span>Not Complied:</span> <span id="graph-not-complied">DASHBOARD_NOT_COMPLIED</span></div>';
|
|
2374
|
+
html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span> <span>Partially Complied:</span> <span id="graph-partially-complied">DASHBOARD_PARTIALLY_COMPLIED</span></div>';
|
|
2375
|
+
html += '<div part="badge-dashboard" id="chip-compliance-3" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied">sweep</span> <span>Complied:</span> <span id="graph-complied">DASHBOARD_COMPLIED</span></div>';
|
|
2376
|
+
html += '<div part="badge-dashboard" id="chip-compliance-4" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied-with-gaps">rule</span> <span>Complied With Gaps:</span> <span id="graph-complied-with-gaps">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
|
|
2377
|
+
html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span> <span>Reported Non Compliance:</span> <span id="graph-reported-non-compliance">DASHBOARD_REPORTED_NON_COMPLIANCE</span></div>';
|
|
2378
|
+
html += '</div>';
|
|
2379
|
+
}
|
|
2304
2380
|
html += '<div id="stream-event-filter" part="stream-event-total" class="d-flex flex-wrap"></div>';
|
|
2305
2381
|
return html;
|
|
2306
2382
|
};
|
|
@@ -2322,7 +2398,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2322
2398
|
html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span> <span>Partially Complied:</span> <span id="graph-partially-complied">DASHBOARD_PARTIALLY_COMPLIED</span></div>';
|
|
2323
2399
|
html += '<div part="badge-dashboard" id="chip-compliance-3" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied">sweep</span> <span>Complied:</span> <span id="graph-complied">DASHBOARD_COMPLIED</span></div>';
|
|
2324
2400
|
html += '<div part="badge-dashboard" id="chip-compliance-4" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-complied-with-gaps">rule</span> <span>Complied With Gaps:</span> <span id="graph-complied-with-gaps">DASHBOARD_COMPLIED_WITH_GAPS</span></div>';
|
|
2325
|
-
html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span> <span>Reported Non Compliance:</span> <span id="graph-reported-non-compliance">
|
|
2401
|
+
html += '<div part="badge-dashboard" id="chip-compliance-5" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-symbols-outlined color-reported-non-compliance">rule</span> <span>Reported Non Compliance:</span> <span id="graph-reported-non-compliance">DASHBOARD_REPORTED_NON_COMPLIANCE</span></div>';
|
|
2326
2402
|
html += '</div>';
|
|
2327
2403
|
html += '<div id="stream-event-filter" part="stream-event-total" class="d-flex flex-wrap"></div>';
|
|
2328
2404
|
return html;
|
|
@@ -2719,7 +2795,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2719
2795
|
//(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
|
|
2720
2796
|
this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton) => {
|
|
2721
2797
|
var _a, _b, _c, _f, _g, _h, _j, _k;
|
|
2722
|
-
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;
|
|
2798
|
+
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;
|
|
2723
2799
|
var html = '';
|
|
2724
2800
|
this.selectedItemIds = [];
|
|
2725
2801
|
this.selectedItems = [];
|
|
@@ -2775,7 +2851,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2775
2851
|
// //console.log('eventlog1', tempEvents1['06/30'][7].comments, mmdd, j);
|
|
2776
2852
|
partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(this.events[mmdd][j])));
|
|
2777
2853
|
lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(this.events[mmdd][j])), partStatus);
|
|
2778
|
-
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage);
|
|
2854
|
+
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(this.events[mmdd][j])).percentage, JSON.parse(JSON.stringify(this.events[mmdd][j])));
|
|
2855
|
+
console.log("agreement partStatus", partStatus, lateStatus, complianceStatus);
|
|
2779
2856
|
if (this.flowGraph == this.FLOW_GRAPH_TIMELINESS) {
|
|
2780
2857
|
bgStatus += lateStatus;
|
|
2781
2858
|
}
|
|
@@ -2802,6 +2879,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2802
2879
|
complied = complied + (complianceStatus == "complied" ? 1 : 0);
|
|
2803
2880
|
compliedWithGaps = compliedWithGaps + (complianceStatus == "complied-with-gaps" ? 1 : 0);
|
|
2804
2881
|
reportedNonCompliance = reportedNonCompliance + (complianceStatus == "reported-non-compliance" ? 1 : 0);
|
|
2882
|
+
active = active + (complianceStatus == "active" ? 1 : 0);
|
|
2883
|
+
aboutToExpire = aboutToExpire + (complianceStatus == "about-to-expire" ? 1 : 0);
|
|
2884
|
+
expired = expired + (complianceStatus == "expired" ? 1 : 0);
|
|
2885
|
+
terminated = terminated + (complianceStatus == "teminated" ? 1 : 0);
|
|
2805
2886
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
2806
2887
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
2807
2888
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
@@ -2931,14 +3012,31 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2931
3012
|
html = html.replace("DASHBOARD_PARTIALLY_COMPLIED", partiallyComplied + "");
|
|
2932
3013
|
html = html.replace("DASHBOARD_COMPLIED", complied + "");
|
|
2933
3014
|
html = html.replace("DASHBOARD_COMPLIED_WITH_GAPS", compliedWithGaps + "");
|
|
2934
|
-
|
|
2935
|
-
|
|
3015
|
+
html = html.replace("DASHBOARD_REPORTED_NON_COMPLIANCE", reportedNonCompliance + "");
|
|
3016
|
+
html = html.replace("DASHBOARD_ACTIVE", active + "");
|
|
3017
|
+
html = html.replace("DASHBOARD_ABOUT_TO_EXPIRE", aboutToExpire + "");
|
|
3018
|
+
html = html.replace("DASHBOARD_EXPIRED", expired + "");
|
|
3019
|
+
html = html.replace("DASHBOARD_TERMINATED", terminated + "");
|
|
3020
|
+
if (this.selectedFeatures.indexOf("agreements") >= 0) {
|
|
3021
|
+
this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Active,About To Expire,Expired,Terminated\n';
|
|
3022
|
+
this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + active + "," + aboutToExpire + "," + expired + "," + terminated;
|
|
3023
|
+
}
|
|
3024
|
+
else {
|
|
3025
|
+
this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps,Reported Non Compliance\n';
|
|
3026
|
+
this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + scheduled + "," + notComplied + "," + partiallyComplied + "," + complied + "," + compliedWithGaps + "," + reportedNonCompliance;
|
|
3027
|
+
}
|
|
2936
3028
|
this.htmlDataStats = 'Completeness<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Not Started</th><th class="w-14">Approved</th><th class="w-14">Pending Approval</th><th class="w-14">Rejected</th><tr>';
|
|
2937
3029
|
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + notStarted + '</td><td class="w-14 text-center td-odd">' + approved + '</td><td class="w-14 text-center td-odd">' + pendingApproval + '</td><td class="w-14 text-center td-odd">' + rejected + '</td></table>';
|
|
2938
3030
|
this.htmlDataStats += '<br /><br />Timeliness<br /><br /><table class="mt-20 w-100"><tr><th class="w-14">Total</th><th class="w-14">In Time</th><th class="w-14">Past Due Date</th><th class="w-14">Late Reported</th><th class="w-14">Late Executed</th><th class="w-14">Late Approved</th><tr>';
|
|
2939
3031
|
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + (total - (pastDueDate + lateApproved + lateExecuted)) + '</td><td class="w-14 text-center td-odd">' + pastDueDate + '</td><td class="w-14 text-center td-odd">' + lateReported + '</td><td class="w-14 text-center td-odd">' + lateExecuted + '</td><td class="w-14 text-center td-odd">' + lateApproved + '</td><tr></table>';
|
|
2940
|
-
this.
|
|
2941
|
-
|
|
3032
|
+
if (this.selectedFeatures.indexOf("agreements") >= 0) {
|
|
3033
|
+
this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Active</th><th class="w-14">About To Expire</th><th class="w-14">Expired</th><th class="w-14">Terminated</th><tr>';
|
|
3034
|
+
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + active + '</td><td class="w-14 text-center td-odd">' + aboutToExpire + '</td><td class="w-14 text-center td-odd">' + expired + '</td><td class="w-14 text-center td-odd">' + terminated + '</td><tr></table>';
|
|
3035
|
+
}
|
|
3036
|
+
else {
|
|
3037
|
+
this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Scheduled</th><th class="w-14">Not Complied</th><th class="w-14">Partially Complied</th><th class="w-14">Complied</th><th class="w-14">Complied With Gaps</th><th class="w-14">Reported Non Compliance</th><tr>';
|
|
3038
|
+
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + scheduled + '</td><td class="w-14 text-center td-odd">' + notComplied + '</td><td class="w-14 text-center td-odd">' + partiallyComplied + '</td><td class="w-14 text-center td-odd">' + complied + '</td><td class="w-14 text-center td-odd">' + compliedWithGaps + '</td><td class="w-14 text-center td-odd">' + reportedNonCompliance + '</td><tr></table>';
|
|
3039
|
+
}
|
|
2942
3040
|
return html;
|
|
2943
3041
|
};
|
|
2944
3042
|
this.renderStatistics = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle) => {
|
|
@@ -4128,6 +4226,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4128
4226
|
div.style.display = 'block';
|
|
4129
4227
|
});
|
|
4130
4228
|
});
|
|
4229
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].length <= 4) {
|
|
4230
|
+
radioExpander === null || radioExpander === void 0 ? void 0 : radioExpander.click();
|
|
4231
|
+
}
|
|
4131
4232
|
const buttonRefresh = eventsContainer.querySelector('#button-refresh');
|
|
4132
4233
|
buttonRefresh.addEventListener('click', async () => {
|
|
4133
4234
|
this.processDateSelection(eventsContainer);
|
|
@@ -4146,7 +4247,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4146
4247
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4147
4248
|
}
|
|
4148
4249
|
else if (module === "agreement") {
|
|
4149
|
-
this.
|
|
4250
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4150
4251
|
}
|
|
4151
4252
|
else {
|
|
4152
4253
|
let found = false;
|
|
@@ -4179,7 +4280,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4179
4280
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4180
4281
|
}
|
|
4181
4282
|
else if (module === "agreement") {
|
|
4182
|
-
this.
|
|
4283
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4183
4284
|
}
|
|
4184
4285
|
else {
|
|
4185
4286
|
let found = false;
|
|
@@ -7458,6 +7559,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7458
7559
|
div.style.display = 'block';
|
|
7459
7560
|
});
|
|
7460
7561
|
});
|
|
7562
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].length <= 4) {
|
|
7563
|
+
radioExpander === null || radioExpander === void 0 ? void 0 : radioExpander.click();
|
|
7564
|
+
}
|
|
7461
7565
|
const radioCompleteness = this._SfThisContainer.querySelector('#radio-completeness');
|
|
7462
7566
|
radioCompleteness === null || radioCompleteness === void 0 ? void 0 : radioCompleteness.addEventListener('click', () => {
|
|
7463
7567
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
@@ -7581,7 +7685,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7581
7685
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7582
7686
|
}
|
|
7583
7687
|
else if (module === "agreement") {
|
|
7584
|
-
this.
|
|
7688
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7585
7689
|
}
|
|
7586
7690
|
else {
|
|
7587
7691
|
let found = false;
|
|
@@ -7613,7 +7717,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7613
7717
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7614
7718
|
}
|
|
7615
7719
|
else if (module === "agreement") {
|
|
7616
|
-
this.
|
|
7720
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7617
7721
|
}
|
|
7618
7722
|
else {
|
|
7619
7723
|
let found = false;
|
|
@@ -7926,6 +8030,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7926
8030
|
div.style.display = 'block';
|
|
7927
8031
|
});
|
|
7928
8032
|
});
|
|
8033
|
+
if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].length <= 4) {
|
|
8034
|
+
radioExpander === null || radioExpander === void 0 ? void 0 : radioExpander.click();
|
|
8035
|
+
}
|
|
7929
8036
|
const radioCompleteness = this._SfStreamContainer.querySelector('#radio-completeness');
|
|
7930
8037
|
radioCompleteness === null || radioCompleteness === void 0 ? void 0 : radioCompleteness.addEventListener('click', () => {
|
|
7931
8038
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
@@ -8068,7 +8175,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8068
8175
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8069
8176
|
}
|
|
8070
8177
|
else if (module === "agreement") {
|
|
8071
|
-
this.
|
|
8178
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8072
8179
|
}
|
|
8073
8180
|
else {
|
|
8074
8181
|
let found = false;
|
|
@@ -8102,7 +8209,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8102
8209
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8103
8210
|
}
|
|
8104
8211
|
else if (module === "agreement") {
|
|
8105
|
-
this.
|
|
8212
|
+
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8106
8213
|
}
|
|
8107
8214
|
else {
|
|
8108
8215
|
let found = false;
|
|
@@ -8541,36 +8648,71 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8541
8648
|
this.csvCompletenessStats = "";
|
|
8542
8649
|
this.csvTimelinessStats = "";
|
|
8543
8650
|
this.csvComplianceStats = "";
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8651
|
+
console.log('agreements');
|
|
8652
|
+
let data = null;
|
|
8653
|
+
let ctx = null;
|
|
8654
|
+
if (this.selectedFeatures.indexOf('agreements') >= 0) {
|
|
8655
|
+
var dataTotal = divContainer.querySelector('#graph-total').innerHTML;
|
|
8656
|
+
var dataActive = divContainer.querySelector('#graph-active').innerHTML;
|
|
8657
|
+
var dataAboutToExpire = divContainer.querySelector('#graph-about-to-expire').innerHTML;
|
|
8658
|
+
var dataExpired = divContainer.querySelector('#graph-expired').innerHTML;
|
|
8659
|
+
var dataTerminated = divContainer.querySelector('#graph-terminated').innerHTML;
|
|
8660
|
+
ctx = divContainer.querySelector('#myChart');
|
|
8661
|
+
this.showGraph(divContainer, 1);
|
|
8662
|
+
this.clearGraph(divContainer, 2);
|
|
8663
|
+
this.clearGraph(divContainer, 3);
|
|
8664
|
+
this.clearGraph(divContainer, 4);
|
|
8665
|
+
data = {
|
|
8666
|
+
labels: ['Active', 'About To Expire', 'Expired', 'Terminated'],
|
|
8667
|
+
datasets: [{
|
|
8668
|
+
label: 'Compliances',
|
|
8669
|
+
data: [dataActive, dataAboutToExpire, dataExpired, dataTerminated],
|
|
8670
|
+
borderWidth: 1,
|
|
8671
|
+
backgroundColor: [
|
|
8672
|
+
this.COLOR_SCHEDULED,
|
|
8673
|
+
this.COLOR_NOT_COMPLIED,
|
|
8674
|
+
this.COLOR_PARTIALLY_COMPLIED,
|
|
8675
|
+
this.COLOR_COMPLIED,
|
|
8676
|
+
// this.COLOR_COMPLIED_WITH_EXCEPTION,
|
|
8677
|
+
// this.COLOR_REPORTED_NON_COMPLIANCE
|
|
8678
|
+
]
|
|
8679
|
+
}]
|
|
8680
|
+
};
|
|
8681
|
+
this.csvGraphStats += 'Compliance,Active,About To Expire,Expired,Terminated,Total\n';
|
|
8682
|
+
this.csvGraphStats += 'Count,' + parseInt(dataActive) + ',' + parseInt(dataAboutToExpire) + ',' + parseInt(dataExpired) + ',' + parseInt(dataTerminated) + ',' + parseInt(dataTotal) + '\n';
|
|
8683
|
+
}
|
|
8684
|
+
else {
|
|
8685
|
+
var dataTotal = divContainer.querySelector('#graph-total').innerHTML;
|
|
8686
|
+
var dataNotComplied = divContainer.querySelector('#graph-not-complied').innerHTML;
|
|
8687
|
+
var dataScheduled = divContainer.querySelector('#graph-scheduled').innerHTML;
|
|
8688
|
+
var dataPartiallyComplied = divContainer.querySelector('#graph-partially-complied').innerHTML;
|
|
8689
|
+
var dataComplied = divContainer.querySelector('#graph-complied').innerHTML;
|
|
8690
|
+
var dataCompliedWithGaps = divContainer.querySelector('#graph-complied-with-gaps').innerHTML;
|
|
8691
|
+
var dataReportedNonComplaince = divContainer.querySelector('#graph-reported-non-compliance').innerHTML;
|
|
8692
|
+
ctx = divContainer.querySelector('#myChart');
|
|
8693
|
+
this.showGraph(divContainer, 1);
|
|
8694
|
+
this.clearGraph(divContainer, 2);
|
|
8695
|
+
this.clearGraph(divContainer, 3);
|
|
8696
|
+
this.clearGraph(divContainer, 4);
|
|
8697
|
+
data = {
|
|
8698
|
+
labels: ['Scheduled', 'Not Complied', 'Partially Complied', 'Complied', 'Complied With Gaps', 'Reported Non Complinace'],
|
|
8699
|
+
datasets: [{
|
|
8700
|
+
label: 'Compliances',
|
|
8701
|
+
data: [dataScheduled, dataNotComplied, dataPartiallyComplied, dataComplied, dataCompliedWithGaps, dataReportedNonComplaince],
|
|
8702
|
+
borderWidth: 1,
|
|
8703
|
+
backgroundColor: [
|
|
8704
|
+
this.COLOR_SCHEDULED,
|
|
8705
|
+
this.COLOR_NOT_COMPLIED,
|
|
8706
|
+
this.COLOR_PARTIALLY_COMPLIED,
|
|
8707
|
+
this.COLOR_COMPLIED,
|
|
8708
|
+
this.COLOR_COMPLIED_WITH_EXCEPTION,
|
|
8709
|
+
this.COLOR_REPORTED_NON_COMPLIANCE
|
|
8710
|
+
]
|
|
8711
|
+
}]
|
|
8712
|
+
};
|
|
8713
|
+
this.csvGraphStats += 'Compliance,Scheduled,Not Complied,Partially Complied,Complied,Complied With Gaps,Reported Non Compliance,Total\n';
|
|
8714
|
+
this.csvGraphStats += 'Count,' + parseInt(dataScheduled) + ',' + parseInt(dataNotComplied) + ',' + parseInt(dataPartiallyComplied) + ',' + parseInt(dataComplied) + ',' + parseInt(dataCompliedWithGaps) + ',' + parseInt(dataReportedNonComplaince) + ',' + parseInt(dataTotal) + '\n';
|
|
8715
|
+
}
|
|
8574
8716
|
//console.log('rendering timeliness graph', this.csvGraphStats);
|
|
8575
8717
|
const itemsTimeliness = divContainer.querySelectorAll('.stat-timeliness');
|
|
8576
8718
|
for (var i = 0; i < itemsTimeliness.length; i++) {
|
|
@@ -9757,8 +9899,58 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9757
9899
|
}
|
|
9758
9900
|
}
|
|
9759
9901
|
};
|
|
9902
|
+
this.fetchAgreementDetails = async (listEvent, mmddyyyy) => {
|
|
9903
|
+
let entityId = listEvent.entityid;
|
|
9904
|
+
let locationId = listEvent.locationid;
|
|
9905
|
+
let url = "https://" + this.apiIdAgreements + "/getallobjectdetails";
|
|
9906
|
+
//console.log('fetch calendar url', url);
|
|
9907
|
+
let urlBody = { projectid: this.projectId, objectid: listEvent.id, entityid: entityId, locationid: locationId, userprofileid: this.userProfileId, role: this.myRole, year: this.calendarStartYYYY, mmddyyyy: mmddyyyy };
|
|
9908
|
+
//console.log('urlbody', urlBody);
|
|
9909
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
9910
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
9911
|
+
this._SfLoader.innerHTML = '';
|
|
9912
|
+
if (xhr.status == 200) {
|
|
9913
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
9914
|
+
console.log('jsonRespose agreement details', jsonRespose);
|
|
9915
|
+
this.renderAgreementDetails(jsonRespose.object, mmddyyyy);
|
|
9916
|
+
}
|
|
9917
|
+
else {
|
|
9918
|
+
if (xhr.status == 401) {
|
|
9919
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
9920
|
+
this.dispatchEvent(changeEvent);
|
|
9921
|
+
}
|
|
9922
|
+
else {
|
|
9923
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
9924
|
+
this.setError(jsonRespose.error);
|
|
9925
|
+
}
|
|
9926
|
+
}
|
|
9927
|
+
};
|
|
9928
|
+
this.renewAgreement = async (listEvent, reportformatvalues) => {
|
|
9929
|
+
let url = "https://" + this.apiIdAgreements + "/reopen";
|
|
9930
|
+
//console.log('fetch calendar url', url);
|
|
9931
|
+
let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: JSON.parse(reportformatvalues), published: true };
|
|
9932
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
9933
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
9934
|
+
this._SfLoader.innerHTML = '';
|
|
9935
|
+
if (xhr.status == 200) {
|
|
9936
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
9937
|
+
console.log('jsonRespose agreement reopen', jsonRespose);
|
|
9938
|
+
}
|
|
9939
|
+
else {
|
|
9940
|
+
if (xhr.status == 401) {
|
|
9941
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
9942
|
+
this.dispatchEvent(changeEvent);
|
|
9943
|
+
}
|
|
9944
|
+
else {
|
|
9945
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
9946
|
+
this.setError(jsonRespose.error);
|
|
9947
|
+
}
|
|
9948
|
+
}
|
|
9949
|
+
};
|
|
9760
9950
|
this.renderAgreementDetails = async (listEvent, mmddyyyy) => {
|
|
9761
9951
|
var _a, _b, _c, _f, _g, _h;
|
|
9952
|
+
// await this.fetchAgreementDetails(listEvent, mmddyyyy);
|
|
9953
|
+
// return;
|
|
9762
9954
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
9763
9955
|
let entityId = listEvent.entityid;
|
|
9764
9956
|
let locationId = listEvent.locationid;
|
|
@@ -9782,6 +9974,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9782
9974
|
`;
|
|
9783
9975
|
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdAgreements + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
|
|
9784
9976
|
html += '<div part="reporting-view-container">';
|
|
9977
|
+
if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
|
|
9978
|
+
html += '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select" mode="edit" name="Contract Reporting" formviewclass="flex-wrap"></sf-i-reporting>';
|
|
9979
|
+
}
|
|
9785
9980
|
html += this.renderReporting(listEvent, mmddyyyy);
|
|
9786
9981
|
html += "</div>";
|
|
9787
9982
|
html += '<div class="d-flex justify-between m-20">';
|
|
@@ -9825,11 +10020,35 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9825
10020
|
this._SfDetailContainer.style.display = 'block';
|
|
9826
10021
|
let sfireporting = this._SfDetailContainer.querySelector('#detail-reporting');
|
|
9827
10022
|
sfireporting.selectedItem = listEvent;
|
|
10023
|
+
sfireporting.editdisable = "true";
|
|
9828
10024
|
sfireporting.loadMode();
|
|
9829
10025
|
sfireporting.addEventListener('valueChanged', () => {
|
|
9830
10026
|
sfireporting.classList.remove('hide');
|
|
9831
10027
|
this._SfDetailContainer.querySelector('#shimmer-container-agreements').classList.add('hide');
|
|
9832
10028
|
});
|
|
10029
|
+
let reportingSchemaJson = "";
|
|
10030
|
+
let reportingSchemaValues = "";
|
|
10031
|
+
if (listEvent.reportformatschema != null) {
|
|
10032
|
+
reportingSchemaJson = listEvent.reportformatschema;
|
|
10033
|
+
reportingSchemaValues = listEvent.reportformatvalues;
|
|
10034
|
+
}
|
|
10035
|
+
else if (listEvent.customreporting != null) {
|
|
10036
|
+
reportingSchemaJson = listEvent.customreporting;
|
|
10037
|
+
}
|
|
10038
|
+
if (reportingSchemaJson != "") {
|
|
10039
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10040
|
+
reportingReporting.configjson = reportingSchemaJson;
|
|
10041
|
+
if (reportingSchemaValues != "")
|
|
10042
|
+
reportingReporting.prepopulateValJson = reportingSchemaValues;
|
|
10043
|
+
reportingReporting.editdisable = "false";
|
|
10044
|
+
reportingReporting.flow = "edit";
|
|
10045
|
+
setTimeout(() => {
|
|
10046
|
+
reportingReporting.loadMode();
|
|
10047
|
+
console.log('list-customreporting', reportingSchemaJson);
|
|
10048
|
+
console.log('list-customreporting1', reportingSchemaValues);
|
|
10049
|
+
console.log('list-customreporting2', reportingReporting.mode);
|
|
10050
|
+
}, 500);
|
|
10051
|
+
}
|
|
9833
10052
|
(_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
|
|
9834
10053
|
this._SfDetailContainer.innerHTML = '';
|
|
9835
10054
|
this._SfDetailContainer.style.display = 'none';
|
|
@@ -9881,7 +10100,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9881
10100
|
});
|
|
9882
10101
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
9883
10102
|
(_f = this._SfDetailContainer.querySelector('#button-uploader-submit-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async (ev) => {
|
|
9884
|
-
var _a, _b;
|
|
10103
|
+
var _a, _b, _c;
|
|
9885
10104
|
let buttonClick = ev.target;
|
|
9886
10105
|
buttonClick.innerHTML = "Saving...";
|
|
9887
10106
|
const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
|
|
@@ -9905,6 +10124,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9905
10124
|
if (this.selectedItemIds.length <= 1) {
|
|
9906
10125
|
console.log('mmddyyyy', mmddyyyy);
|
|
9907
10126
|
if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, (_a = listEvent.module) !== null && _a !== void 0 ? _a : "events")) {
|
|
10127
|
+
if (approved) {
|
|
10128
|
+
let reportformatvalues = "";
|
|
10129
|
+
if (listEvent.customreporting != null) {
|
|
10130
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10131
|
+
reportformatvalues = (_b = JSON.stringify(reportingReporting.selectedValues())) !== null && _b !== void 0 ? _b : "";
|
|
10132
|
+
}
|
|
10133
|
+
await this.renewAgreement(listEvent, reportformatvalues);
|
|
10134
|
+
}
|
|
9908
10135
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
9909
10136
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
9910
10137
|
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
@@ -9941,7 +10168,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9941
10168
|
"userid": this.userProfileId,
|
|
9942
10169
|
"userrole": this.myRole,
|
|
9943
10170
|
"year": this.calendarStartYYYY,
|
|
9944
|
-
"module": (
|
|
10171
|
+
"module": (_c = listEvent.module) !== null && _c !== void 0 ? _c : "events"
|
|
9945
10172
|
});
|
|
9946
10173
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
9947
10174
|
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
@@ -10140,9 +10367,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10140
10367
|
//console.log('docs', docs);
|
|
10141
10368
|
let reportformatvalues = "";
|
|
10142
10369
|
let reportformatschema = "";
|
|
10143
|
-
if (
|
|
10144
|
-
|
|
10145
|
-
|
|
10370
|
+
if (listEvent.customreporting != null) {
|
|
10371
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10372
|
+
reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
|
|
10373
|
+
reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
|
|
10146
10374
|
}
|
|
10147
10375
|
let percentage = "100";
|
|
10148
10376
|
if (this._SfDetailContainer.querySelector('#input-reporter-percentage') != null) {
|
|
@@ -10219,6 +10447,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10219
10447
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10220
10448
|
}
|
|
10221
10449
|
}
|
|
10450
|
+
await this.renewAgreement(listEvent, reportformatvalues);
|
|
10222
10451
|
console.log('upload report auto approve single');
|
|
10223
10452
|
}
|
|
10224
10453
|
if (this.recentlyReported[mmdd] == null) {
|
|
@@ -11582,7 +11811,22 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11582
11811
|
}
|
|
11583
11812
|
}
|
|
11584
11813
|
this.fetchStatuteDefinitionDetails(statuteName);
|
|
11585
|
-
|
|
11814
|
+
console.log('customreporting', event['customreporting']);
|
|
11815
|
+
if (event['customreporting'] != null) {
|
|
11816
|
+
let reportingContainer = this._SfDetailContainer;
|
|
11817
|
+
if (reportingContainer.querySelector('#report-format-container') != null) {
|
|
11818
|
+
reportingContainer.querySelector('#report-format-container').innerHTML = `<slot name="reporting"></slot>`;
|
|
11819
|
+
console.log('innerhtml', reportingContainer.querySelector('#report-format-container').innerHTML);
|
|
11820
|
+
this._SfReporting[0].querySelector('#reporting-format').name = event.obligationtitle;
|
|
11821
|
+
this._SfReporting[0].querySelector('#reporting-format').mode = "edit";
|
|
11822
|
+
this._SfReporting[0].querySelector('#reporting-format').configjson = event['customreporting'];
|
|
11823
|
+
// if(reportformatvalues != ""){
|
|
11824
|
+
// (this._SfReporting[0].querySelector('#reporting-format') as SfIReporting).prepopulateValJson = reportformatvalues
|
|
11825
|
+
// }
|
|
11826
|
+
this._SfReporting[0].querySelector('#reporting-format').loadMode();
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
else if (event['reportformat'] != null && event['reportformat'].length > 0) {
|
|
11586
11830
|
this.fetchReportFormat(this._SfDetailContainer, reportformatName, (_v = event['reportformatschema']) !== null && _v !== void 0 ? _v : "", (_w = event['reportformatvalues']) !== null && _w !== void 0 ? _w : "");
|
|
11587
11831
|
}
|
|
11588
11832
|
};
|
|
@@ -13652,84 +13896,84 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13652
13896
|
html += '</div>';
|
|
13653
13897
|
this._SfOnboardingTriggersContainer.innerHTML = html;
|
|
13654
13898
|
//console.log('rendering triggers...', (this._SfOnboardingTriggersContainer as HTMLDivElement).innerHTML);
|
|
13655
|
-
this.renderTaggingTable(this._SfOnboardingTriggersListContainer, mappedSerializedAlertSchedules, mappedTriggers, [], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13899
|
+
this.renderTaggingTable(this._SfOnboardingTriggersListContainer, mappedSerializedAlertSchedules, mappedTriggers, ["obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13656
13900
|
};
|
|
13657
13901
|
this.renderOnboardingInternalControls = (mappedInternalControls, mappedSerializedTriggers, internalcontrolsJobs) => {
|
|
13658
13902
|
var html = '';
|
|
13659
13903
|
html += '<div id="internalcontrols-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13660
13904
|
html += '</div>';
|
|
13661
13905
|
this._SfOnboardingInternalControlsContainer.innerHTML = html;
|
|
13662
|
-
this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedTriggers, mappedInternalControls, [], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13906
|
+
this.renderTaggingTable(this._SfOnboardingInternalControlsListContainer, mappedSerializedTriggers, mappedInternalControls, ["obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13663
13907
|
};
|
|
13664
13908
|
this.renderOnboardingActivations = (mappedActivations, mappedSerializedExtensions, activationsJobs) => {
|
|
13665
13909
|
var html = '';
|
|
13666
13910
|
html += '<div id="activations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13667
13911
|
html += '</div>';
|
|
13668
13912
|
this._SfOnboardingActivationsContainer.innerHTML = html;
|
|
13669
|
-
this.renderTaggingTable(this._SfOnboardingActivationListContainer, mappedSerializedExtensions, mappedActivations, [], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13913
|
+
this.renderTaggingTable(this._SfOnboardingActivationListContainer, mappedSerializedExtensions, mappedActivations, ["obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13670
13914
|
};
|
|
13671
13915
|
this.renderOnboardingInvalidations = (mappedInvalidations, mappedSerializedExtensions, invalidationsJobs) => {
|
|
13672
13916
|
var html = '';
|
|
13673
13917
|
html += '<div id="invalidations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13674
13918
|
html += '</div>';
|
|
13675
13919
|
this._SfOnboardingInvalidationsContainer.innerHTML = html;
|
|
13676
|
-
this.renderTaggingTable(this._SfOnboardingInvalidationListContainer, mappedSerializedExtensions, mappedInvalidations, [], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13920
|
+
this.renderTaggingTable(this._SfOnboardingInvalidationListContainer, mappedSerializedExtensions, mappedInvalidations, ["obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13677
13921
|
};
|
|
13678
13922
|
this.renderOnboardingAlertSchedules = (mappedAlertSchedules, mappedSerializedExtensions, alertschedulesJobs) => {
|
|
13679
13923
|
var html = '';
|
|
13680
13924
|
html += '<div id="alertschedules-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13681
13925
|
html += '</div>';
|
|
13682
13926
|
this._SfOnboardingAlertSchedulesContainer.innerHTML = html;
|
|
13683
|
-
this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedExtensions, mappedAlertSchedules, [], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13927
|
+
this.renderTaggingTable(this._SfOnboardingAlertSchedulesListContainer, mappedSerializedExtensions, mappedAlertSchedules, ["obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13684
13928
|
};
|
|
13685
13929
|
this.renderOnboardingExtensions = (mappedExtensions, mappedSerializedDuedates, extensionsJobs) => {
|
|
13686
13930
|
var html = '';
|
|
13687
13931
|
html += '<div id="extensions-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13688
13932
|
html += '</div>';
|
|
13689
13933
|
this._SfOnboardingExtensionsContainer.innerHTML = html;
|
|
13690
|
-
this.renderTaggingTable(this._SfOnboardingExtensionsListContainer, mappedSerializedDuedates, mappedExtensions, [], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13934
|
+
this.renderTaggingTable(this._SfOnboardingExtensionsListContainer, mappedSerializedDuedates, mappedExtensions, ["obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13691
13935
|
};
|
|
13692
13936
|
this.renderOnboardingDuedates = (mappedDuedates, mappedSerializedMakerCheckers, duedatesJobs) => {
|
|
13693
13937
|
var html = '';
|
|
13694
13938
|
html += '<div id="duedates-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13695
13939
|
html += '</div>';
|
|
13696
13940
|
this._SfOnboardingDuedatesContainer.innerHTML = html;
|
|
13697
|
-
this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedMakerCheckers, mappedDuedates, [], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13941
|
+
this.renderTaggingTable(this._SfOnboardingDuedatesListContainer, mappedSerializedMakerCheckers, mappedDuedates, ["obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13698
13942
|
};
|
|
13699
13943
|
this.renderOnboardingReporters = (mappedReporters, mappedSerializedTags, reportersJobs, _arrFeedbackReference) => {
|
|
13700
13944
|
var html = '';
|
|
13701
13945
|
html += '<div id="reporters-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13702
13946
|
html += '</div>';
|
|
13703
13947
|
this._SfOnboardingReportersContainer.innerHTML = html;
|
|
13704
|
-
this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, [], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
13948
|
+
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", "");
|
|
13705
13949
|
};
|
|
13706
13950
|
this.renderOnboardingApprovers = (mappedApprovers, mappedSerializedReporters, approversJobs, _arrFeedbackReference) => {
|
|
13707
13951
|
var html = '';
|
|
13708
13952
|
html += '<div id="approvers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13709
13953
|
html += '</div>';
|
|
13710
13954
|
this._SfOnboardingApproversContainer.innerHTML = html;
|
|
13711
|
-
this.renderTaggingTable(this._SfOnboardingApproversListContainer, mappedSerializedReporters, mappedApprovers, [], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
13955
|
+
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", "");
|
|
13712
13956
|
};
|
|
13713
13957
|
this.renderOnboardingFunctionHeads = (mappedFunctionHeads, mappedSerializedApprovers, functionHeadsJobs, _arrFeedbackReference) => {
|
|
13714
13958
|
var html = '';
|
|
13715
13959
|
html += '<div id="functionheads-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13716
13960
|
html += '</div>';
|
|
13717
13961
|
this._SfOnboardingFunctionHeadsContainer.innerHTML = html;
|
|
13718
|
-
this.renderTaggingTable(this._SfOnboardingFunctionHeadsListContainer, mappedSerializedApprovers, mappedFunctionHeads, [], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
13962
|
+
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", "");
|
|
13719
13963
|
};
|
|
13720
13964
|
this.renderOnboardingMakerCheckers = (mappedMakerCheckers, mappedSerializedDocs, makerCheckerJobs) => {
|
|
13721
13965
|
var html = '';
|
|
13722
13966
|
html += '<div id="makercheckers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13723
13967
|
html += '</div>';
|
|
13724
13968
|
this._SfOnboardingMakerCheckersContainer.innerHTML = html;
|
|
13725
|
-
this.renderTaggingTable(this._SfOnboardingMakerCheckersListContainer, mappedSerializedDocs, mappedMakerCheckers, [], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13969
|
+
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, "", "");
|
|
13726
13970
|
};
|
|
13727
13971
|
this.renderOnboardingDocs = (mappedDocs, mappedSerializedViewers, docsJobs) => {
|
|
13728
13972
|
var html = '';
|
|
13729
13973
|
html += '<div id="docs-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13730
13974
|
html += '</div>';
|
|
13731
13975
|
this._SfOnboardingDocsContainer.innerHTML = html;
|
|
13732
|
-
this.renderTaggingTable(this._SfOnboardingDocsListContainer, mappedSerializedViewers, mappedDocs, [], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13976
|
+
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, "", "");
|
|
13733
13977
|
};
|
|
13734
13978
|
this.renderOnboardingAuditors = (mappedAuditors, mappedSerializedFunctionheads, auditorsJobs, _arrFeedbackReference) => {
|
|
13735
13979
|
//console.log('inside rendering auditors..');
|
|
@@ -13737,7 +13981,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13737
13981
|
html += '<div id="auditors-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13738
13982
|
html += '</div>';
|
|
13739
13983
|
this._SfOnboardingAuditorsContainer.innerHTML = html;
|
|
13740
|
-
this.renderTaggingTable(this._SfOnboardingAuditorsListContainer, mappedSerializedFunctionheads, mappedAuditors, [], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
13984
|
+
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", "");
|
|
13741
13985
|
};
|
|
13742
13986
|
this.renderOnboardingViewers = (mappedViewers, mappedSerializedAuditors, viewersJobs, _arrFeedbackReference) => {
|
|
13743
13987
|
//console.log('inside rendering viewers..');
|
|
@@ -13745,14 +13989,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13745
13989
|
html += '<div id="viewers-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13746
13990
|
html += '</div>';
|
|
13747
13991
|
this._SfOnboardingViewersContainer.innerHTML = html;
|
|
13748
|
-
this.renderTaggingTable(this._SfOnboardingViewersListContainer, mappedSerializedAuditors, mappedViewers, [], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
13992
|
+
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", "");
|
|
13749
13993
|
};
|
|
13750
13994
|
this.renderOnboardingTags = (mappedTags, mappedSerializedFunctions, tagsJobs) => {
|
|
13751
13995
|
var html = '';
|
|
13752
13996
|
html += '<div id="tags-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13753
13997
|
html += '</div>';
|
|
13754
13998
|
this._SfOnboardingTagsContainer.innerHTML = html;
|
|
13755
|
-
this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedFunctions, mappedTags, [], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13999
|
+
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, "", "");
|
|
13756
14000
|
};
|
|
13757
14001
|
this.renderOnboardingFunctions = (mappedFunctions, mappedSerializedLocations, functionsJobs) => {
|
|
13758
14002
|
var html = '';
|
|
@@ -13764,14 +14008,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13764
14008
|
}
|
|
13765
14009
|
}
|
|
13766
14010
|
this._SfOnboardingFunctionsContainer.innerHTML = html;
|
|
13767
|
-
this.renderTaggingTable(this._SfOnboardingFunctionsListContainer, mappedSerializedLocations, mappedFunctions, [], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14011
|
+
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, "", "");
|
|
13768
14012
|
};
|
|
13769
14013
|
this.renderOnboardingLocations = (mappedLocations, mappedSerializedEntities, locationsJobs) => {
|
|
13770
14014
|
var html = '';
|
|
13771
14015
|
html += '<div id="locations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13772
14016
|
html += '</div>';
|
|
13773
14017
|
this._SfOnboardingLocationsContainer.innerHTML = html;
|
|
13774
|
-
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["firstlineofdefence", "
|
|
14018
|
+
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["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, "", "");
|
|
13775
14019
|
};
|
|
13776
14020
|
this.renderOnboardingCompliances = (mappedStatutes, mappedCompliances) => {
|
|
13777
14021
|
//console.log('mappedcompliances', mappedCompliances);
|
|
@@ -13886,7 +14130,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13886
14130
|
html += '<div id="entities-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
13887
14131
|
html += '</div>';
|
|
13888
14132
|
this._SfOnboardingEntitiesContainer.innerHTML = html;
|
|
13889
|
-
this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, mappedSerializedCountries, mappedEntities, ["firstlineofdefence", "
|
|
14133
|
+
this.renderTaggingTable(this._SfOnboardingEntitiesListContainer, mappedSerializedCountries, mappedEntities, ["firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute"], this.uploadEntitiesMapping, this.loadOnboardingEntities, "entities", ["id", "countryname"], this.apiIdTags, "&Entity", ["entities"], entitiesJobs, null, ["Client remarks", "FlaggGRC response"], arrFeedbackReference, "Guideline", "");
|
|
13890
14134
|
};
|
|
13891
14135
|
this.renderOnboardingCountries = (mappedCountries, mappedCompliances, countriesJobs) => {
|
|
13892
14136
|
var html = '';
|
|
@@ -13907,7 +14151,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13907
14151
|
// }
|
|
13908
14152
|
// }
|
|
13909
14153
|
// mappedCountries.data.mappings.mappings = arr2;
|
|
13910
|
-
this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["firstlineofdefence", "
|
|
14154
|
+
this.renderTaggingTable(this._SfOnboardingCountriesListContainer, mappedCompliances, mappedCountries, ["firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "state", "subcategory"], this.uploadCountriesMapping, this.loadOnboardingCountries, "countries", ["id"], this.apiIdTags, "-Country", ["countries"], countriesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
13911
14155
|
};
|
|
13912
14156
|
this.renderOnboardingStatutes = (mappedStatutes) => {
|
|
13913
14157
|
var initCursor = "";
|
|
@@ -20172,7 +20416,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20172
20416
|
var complianceStatus = "";
|
|
20173
20417
|
partStatus = this.getCompletenessStatus(JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
|
|
20174
20418
|
lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])), partStatus);
|
|
20175
|
-
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage);
|
|
20419
|
+
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[role][mmdd][j])));
|
|
20176
20420
|
notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
|
|
20177
20421
|
pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
|
|
20178
20422
|
rejected = rejected + (partStatus == "rejected" ? 1 : 0);
|
|
@@ -20720,7 +20964,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20720
20964
|
continue;
|
|
20721
20965
|
}
|
|
20722
20966
|
lateStatus = this.getTimelinessStatus(mmdd, JSON.parse(JSON.stringify(eventsData[mmdd][j])), partStatus);
|
|
20723
|
-
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage);
|
|
20967
|
+
complianceStatus = this.getComplianceStatus(partStatus, lateStatus, JSON.parse(JSON.stringify(eventsData[mmdd][j])).percentage, JSON.parse(JSON.stringify(eventsData[mmdd][j])));
|
|
20724
20968
|
// notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
|
|
20725
20969
|
// pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
|
|
20726
20970
|
// rejected = rejected + (partStatus == "rejected" ? 1 : 0);
|