sf-i-events 1.0.868 → 1.0.870

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/sf-i-events.js CHANGED
@@ -850,7 +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
+ 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"], "contracts": ["compliance", "timeliness", "completeness", "location"] };
854
854
  this.chartSelectedLegend = [];
855
855
  this.selectedFilters = null;
856
856
  this.barCharDataSet2 = [];
@@ -2086,7 +2086,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2086
2086
  }
2087
2087
  };
2088
2088
  this.getTimelinessStatus = (mmdd, event, completeness) => {
2089
- // if(event.module == "agreement"){
2089
+ // if(event.module == "contract"){
2090
2090
  // if (completeness == "not-started") {
2091
2091
  // if (this.getPastDueDate(mmdd)) {
2092
2092
  // return "past-due-date";
@@ -2134,7 +2134,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2134
2134
  }
2135
2135
  };
2136
2136
  this.getComplianceStatus = (completeness, timeliness, percentage, event = {}) => {
2137
- if (event.module == "agreement") {
2137
+ if (event.module == "contract") {
2138
+ console.log('compliance status', event.terminated);
2139
+ if (event.terminated) {
2140
+ return "terminated";
2141
+ }
2138
2142
  if (completeness == "not-started") {
2139
2143
  if (timeliness == "in-time") {
2140
2144
  if (this.getAboutToExpire(event)) {
@@ -2397,7 +2401,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2397
2401
  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>&nbsp;&nbsp;<span>Late Reported:</span>&nbsp;<span id="graph-late-reported">DASHBOARD_LATE_REPORTED</span></div>';
2398
2402
  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>&nbsp;&nbsp;<span>Late Approved:</span>&nbsp;<span id="graph-late-approved">DASHBOARD_LATE_APPROVED</span></div>';
2399
2403
  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>&nbsp;&nbsp;<span>Late Executed:</span>&nbsp;<span id="graph-late-executed">DASHBOARD_LATE_EXECUTED</span></div>';
2400
- if (this.selectedFeatures.indexOf("agreements") >= 0) {
2404
+ if (this.selectedFeatures.indexOf("contracts") >= 0) {
2401
2405
  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>&nbsp;&nbsp;<span>Active:</span>&nbsp;<span id="graph-active">DASHBOARD_ACTIVE</span></div>';
2402
2406
  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>&nbsp;&nbsp;<span>About To Expire:</span>&nbsp;<span id="graph-about-to-expire">DASHBOARD_ABOUT_TO_EXPIRE</span></div>';
2403
2407
  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>&nbsp;&nbsp;<span>Expired:</span>&nbsp;<span id="graph-expired">DASHBOARD_EXPIRED</span></div>';
@@ -2972,7 +2976,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2972
2976
  active = active + (complianceStatus == "active" ? 1 : 0);
2973
2977
  aboutToExpire = aboutToExpire + (complianceStatus == "about-to-expire" ? 1 : 0);
2974
2978
  expired = expired + (complianceStatus == "expired" ? 1 : 0);
2975
- terminated = terminated + (complianceStatus == "teminated" ? 1 : 0);
2979
+ terminated = terminated + (complianceStatus == "terminated" ? 1 : 0);
2976
2980
  this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
2977
2981
  this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
2978
2982
  this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
@@ -3107,7 +3111,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3107
3111
  html = html.replace("DASHBOARD_ABOUT_TO_EXPIRE", aboutToExpire + "");
3108
3112
  html = html.replace("DASHBOARD_EXPIRED", expired + "");
3109
3113
  html = html.replace("DASHBOARD_TERMINATED", terminated + "");
3110
- if (this.selectedFeatures.indexOf("agreements") >= 0) {
3114
+ if (this.selectedFeatures.indexOf("contracts") >= 0) {
3111
3115
  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';
3112
3116
  this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + active + "," + aboutToExpire + "," + expired + "," + terminated;
3113
3117
  }
@@ -3119,7 +3123,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3119
3123
  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>';
3120
3124
  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>';
3121
3125
  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>';
3122
- if (this.selectedFeatures.indexOf("agreements") >= 0) {
3126
+ if (this.selectedFeatures.indexOf("contracts") >= 0) {
3123
3127
  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>';
3124
3128
  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>';
3125
3129
  }
@@ -3365,7 +3369,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3365
3369
  html += '<button class="invisible" part="button">Save</button>';
3366
3370
  html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>';
3367
3371
  html += '</div>';
3368
- if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'agreement') {
3372
+ if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'contract') {
3369
3373
  html += '<div class="m-20">';
3370
3374
  html += '<label part="input-label">Supporting Documents</label>';
3371
3375
  html += '<slot name="uploader"></slot>';
@@ -3375,7 +3379,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3375
3379
  html += '<div class="d-flex m-20 flex-col">';
3376
3380
  html += '<label part="input-label">Approver Comments*</label>';
3377
3381
  html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
3378
- if (event.module != 'agreement') {
3382
+ if (event.module != 'contract') {
3379
3383
  html += '<label part="input-label">Date of Completion*</label>';
3380
3384
  html += '<input id="input-approver-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" disabled/><br />';
3381
3385
  html += '<label part="input-label">Percentage</label>';
@@ -3388,10 +3392,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3388
3392
  html += '<input id="input-approve-no" name="radio-approved" type="radio" checked/> No';
3389
3393
  html += '</div>';
3390
3394
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3391
- html += '<div id="report-format-container"><div class="box"></div></div>';
3395
+ html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3392
3396
  }
3393
3397
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3394
- html += '<div id="report-format-container"><div class="box"></div></div>';
3398
+ html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3395
3399
  }
3396
3400
  html += '</div>';
3397
3401
  html += '</div>';
@@ -3424,7 +3428,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3424
3428
  html += '<div class="d-flex m-20 flex-col">';
3425
3429
  html += '<label part="input-label">Reporter Comments*</label>';
3426
3430
  html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
3427
- if (event.module != 'agreement') {
3431
+ if (event.module != 'contract') {
3428
3432
  html += '<label part="input-label">Date of Completion*</label>';
3429
3433
  html += '<input id="input-reporter-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '"/><br />';
3430
3434
  html += '<label part="input-label">Completion Percentage*</label>';
@@ -3447,10 +3451,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3447
3451
  // }
3448
3452
  html += '<br />';
3449
3453
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3450
- html += '<div id="report-format-container"><div class="box"></div></div>';
3454
+ html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3451
3455
  }
3452
3456
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3453
- html += '<div id="report-format-container"><div class="box"></div></div>';
3457
+ html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3454
3458
  }
3455
3459
  html += '<br />';
3456
3460
  if (makercheckers.length > 0) {
@@ -3475,7 +3479,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3475
3479
  html += '<div class="d-flex m-20 flex-col">';
3476
3480
  html += '<label part="input-label">Auditor Comments</label>';
3477
3481
  html += '<input id="input-auditor-comments" type="text" part="input" value=""/><br />';
3478
- if (event.module != 'agreement') {
3482
+ if (event.module != 'contract') {
3479
3483
  html += '<label part="input-label">Date of Completion</label>';
3480
3484
  html += '<input id="input-auditor-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '" readonly/><br />';
3481
3485
  html += '<label part="input-label">Percentage</label>';
@@ -3649,7 +3653,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3649
3653
  let newStatus = this.getCompletenessStatus(newEvent);
3650
3654
  if (currStatus == newStatus) {
3651
3655
  buttonClick.innerHTML = "Save";
3652
- this.setError('Already Approved!');
3656
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
3653
3657
  setTimeout(() => {
3654
3658
  this.clearMessages();
3655
3659
  }, 3000);
@@ -4360,7 +4364,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4360
4364
  if (module === "notice") {
4361
4365
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
4362
4366
  }
4363
- else if (module === "agreement") {
4367
+ else if (module === "contract") {
4364
4368
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
4365
4369
  }
4366
4370
  else {
@@ -4393,7 +4397,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4393
4397
  if (module === "notice") {
4394
4398
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
4395
4399
  }
4396
- else if (module === "agreement") {
4400
+ else if (module === "contract") {
4397
4401
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
4398
4402
  }
4399
4403
  else {
@@ -7321,7 +7325,7 @@ let SfIEvents = class SfIEvents extends LitElement {
7321
7325
  this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = endDate;
7322
7326
  this.processDateSelection(this._SfCustomContainer);
7323
7327
  });
7324
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
7328
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
7325
7329
  this._SfCustomContainer.querySelector('#button-this-year').click();
7326
7330
  }
7327
7331
  // for(var i = 0; i < 3; i++) {
@@ -7816,7 +7820,7 @@ let SfIEvents = class SfIEvents extends LitElement {
7816
7820
  if (module === "notice") {
7817
7821
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
7818
7822
  }
7819
- else if (module === "agreement") {
7823
+ else if (module === "contract") {
7820
7824
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
7821
7825
  }
7822
7826
  else {
@@ -7848,7 +7852,7 @@ let SfIEvents = class SfIEvents extends LitElement {
7848
7852
  if (module === "notice") {
7849
7853
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
7850
7854
  }
7851
- else if (module === "agreement") {
7855
+ else if (module === "contract") {
7852
7856
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
7853
7857
  }
7854
7858
  else {
@@ -8093,7 +8097,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8093
8097
  console.log('dateresult', dateResult, index);
8094
8098
  console.log('selectedfeatures', this.selectedFeatures);
8095
8099
  this.currentColumnIndex = index + "";
8096
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
8100
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
8097
8101
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
8098
8102
  this.enableCustom();
8099
8103
  this.renderTabs(this.TAB_CUSTOM);
@@ -8322,7 +8326,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8322
8326
  if (module === "notice") {
8323
8327
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
8324
8328
  }
8325
- else if (module === "agreement") {
8329
+ else if (module === "contract") {
8326
8330
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
8327
8331
  }
8328
8332
  else {
@@ -8357,7 +8361,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8357
8361
  if (module === "notice") {
8358
8362
  this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
8359
8363
  }
8360
- else if (module === "agreement") {
8364
+ else if (module === "contract") {
8361
8365
  this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
8362
8366
  }
8363
8367
  else {
@@ -8797,10 +8801,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8797
8801
  this.csvCompletenessStats = "";
8798
8802
  this.csvTimelinessStats = "";
8799
8803
  this.csvComplianceStats = "";
8800
- console.log('agreements');
8804
+ console.log('contracts');
8801
8805
  let data = null;
8802
8806
  let ctx = null;
8803
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
8807
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
8804
8808
  var dataTotal = divContainer.querySelector('#graph-total').innerHTML;
8805
8809
  var dataActive = divContainer.querySelector('#graph-active').innerHTML;
8806
8810
  var dataAboutToExpire = divContainer.querySelector('#graph-about-to-expire').innerHTML;
@@ -9370,7 +9374,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9370
9374
  <div class="box-large" id="shimmer-container-notices" part="shimmer-container-notices">
9371
9375
  </div>
9372
9376
  `;
9373
- 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, reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:repoortiinig-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:repoortiinig-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
9377
+ 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-date-disabled:reporting-inputt-date-disabled, 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-date-disabled:reporting-reporting-input-date-disabled 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, reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:repoortiinig-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:repoortiinig-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected, " name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
9374
9378
  html += '<div part="reporting-view-container">';
9375
9379
  html += this.renderReporting(listEvent, mmddyyyy);
9376
9380
  html += "</div>";
@@ -9506,9 +9510,14 @@ let SfIEvents = class SfIEvents extends LitElement {
9506
9510
  buttonClick.innerHTML = "Saving...";
9507
9511
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
9508
9512
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
9509
- if (approved == listEvent.approved) {
9513
+ let currStatus = this.getCompletenessStatus(listEvent);
9514
+ let newEvent = { ...listEvent };
9515
+ newEvent.comments = comments;
9516
+ newEvent.approved = approved;
9517
+ let newStatus = this.getCompletenessStatus(newEvent);
9518
+ if (currStatus == newStatus) {
9510
9519
  buttonClick.innerHTML = "Save";
9511
- this.setError('Already Approved!');
9520
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
9512
9521
  setTimeout(() => {
9513
9522
  this.clearMessages();
9514
9523
  }, 3000);
@@ -9625,9 +9634,14 @@ let SfIEvents = class SfIEvents extends LitElement {
9625
9634
  buttonClick.innerHTML = "Saving...";
9626
9635
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
9627
9636
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
9628
- if (approved == listEvent.approved) {
9637
+ let currStatus = this.getCompletenessStatus(listEvent);
9638
+ let newEvent = { ...listEvent };
9639
+ newEvent.comments = comments;
9640
+ newEvent.approved = approved;
9641
+ let newStatus = this.getCompletenessStatus(newEvent);
9642
+ if (currStatus == newStatus) {
9629
9643
  buttonClick.innerHTML = "Save";
9630
- this.setError('Already Approved!');
9644
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
9631
9645
  setTimeout(() => {
9632
9646
  this.clearMessages();
9633
9647
  }, 3000);
@@ -10124,7 +10138,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10124
10138
  <div class="box-large" id="shimmer-container-agreements" part="shimmer-container-agreements">
10125
10139
  </div>
10126
10140
  `;
10127
- 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, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container" name="Contract Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdAgreements + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
10141
+ 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, inpt-date-disabled:reporting-input-date-disabled, 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-date-diisabled:reporting-reporting-input-date-disabled, 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, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="Contract Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdAgreements + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
10128
10142
  html += '<div part="reporting-view-container">';
10129
10143
  html += this.renderReporting(listEvent, mmddyyyy);
10130
10144
  html += "</div>";
@@ -10191,7 +10205,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10191
10205
  reportingSchemaJson = listEvent.customreporting;
10192
10206
  }
10193
10207
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
10194
- let reportingHtml = '<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, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
10208
+ let reportingHtml = '<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, iinpt-date-disabled:reporting-input-date-disabled, 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-date-disabled:reporting-reporting-input-date-disabled, 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, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
10195
10209
  let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
10196
10210
  if (reportFormatContainer != null) {
10197
10211
  reportFormatContainer.innerHTML = reportingHtml;
@@ -10263,14 +10277,19 @@ let SfIEvents = class SfIEvents extends LitElement {
10263
10277
  });
10264
10278
  if (this.mode == "consumer" || this.mode == "next") {
10265
10279
  (_f = this._SfDetailContainer.querySelector('#button-uploader-submit-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async (ev) => {
10266
- var _a, _b, _c, _f;
10280
+ var _a, _b, _c, _f, _g;
10267
10281
  let buttonClick = ev.target;
10268
10282
  buttonClick.innerHTML = "Saving...";
10269
10283
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
10270
10284
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10271
- if (approved == listEvent.approved) {
10285
+ let currStatus = this.getCompletenessStatus(listEvent);
10286
+ let newEvent = { ...listEvent };
10287
+ newEvent.comments = comments;
10288
+ newEvent.approved = approved;
10289
+ let newStatus = this.getCompletenessStatus(newEvent);
10290
+ if (currStatus == newStatus) {
10272
10291
  buttonClick.innerHTML = "Save";
10273
- this.setError('Already Approved!');
10292
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
10274
10293
  setTimeout(() => {
10275
10294
  this.clearMessages();
10276
10295
  }, 3000);
@@ -10302,6 +10321,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10302
10321
  for (var p = 0; p < this.events[mmdd].length; p++) {
10303
10322
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10304
10323
  this.events[mmdd][p].approved = approved;
10324
+ this.events[mmdd][p].terminated = (_c = (JSON.parse(reportformatvalues).terminated)) !== null && _c !== void 0 ? _c : false;
10305
10325
  this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
10306
10326
  this.events[mmdd][p].lastupdated = new Date().toString();
10307
10327
  }
@@ -10336,7 +10356,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10336
10356
  "userid": this.userProfileId,
10337
10357
  "userrole": this.myRole,
10338
10358
  "year": this.calendarStartYYYY,
10339
- "module": (_c = listEvent.module) !== null && _c !== void 0 ? _c : "events"
10359
+ "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "events"
10340
10360
  });
10341
10361
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
10342
10362
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
@@ -10387,7 +10407,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10387
10407
  "bubbles": true,
10388
10408
  "cancelable": false
10389
10409
  });
10390
- (_f = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _f === void 0 ? void 0 : _f.dispatchEvent(clickEvent);
10410
+ (_g = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _g === void 0 ? void 0 : _g.dispatchEvent(clickEvent);
10391
10411
  // if(currentColumnButton != null) {
10392
10412
  // currentColumnButton.click();
10393
10413
  // }
@@ -10400,7 +10420,12 @@ let SfIEvents = class SfIEvents extends LitElement {
10400
10420
  buttonClick.innerHTML = "Saving...";
10401
10421
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
10402
10422
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10403
- if (approved == listEvent.approved) {
10423
+ let currStatus = this.getCompletenessStatus(listEvent);
10424
+ let newEvent = { ...listEvent };
10425
+ newEvent.comments = comments;
10426
+ newEvent.approved = approved;
10427
+ let newStatus = this.getCompletenessStatus(newEvent);
10428
+ if (currStatus == newStatus) {
10404
10429
  buttonClick.innerHTML = "Save";
10405
10430
  this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
10406
10431
  setTimeout(() => {
@@ -10521,7 +10546,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10521
10546
  if (this._SfDetailContainer.querySelector('#button-uploader-submit-report') != null) {
10522
10547
  this._SfDetailContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
10523
10548
  (_h = this._SfDetailContainer.querySelector('#button-uploader-submit-report')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
10524
- var _a, _b, _c;
10549
+ var _a, _b, _c, _f;
10525
10550
  let buttonClick = ev.target;
10526
10551
  buttonClick.innerHTML = "Saving...";
10527
10552
  const reportercomments = this._SfDetailContainer.querySelector('#input-reporter-comments').value;
@@ -10608,6 +10633,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10608
10633
  for (var p = 0; p < this.events[mmdd].length; p++) {
10609
10634
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10610
10635
  this.events[mmdd][p].approved = true;
10636
+ this.events[mmdd][p].terminated = (_c = (JSON.parse(reportformatvalues).terminated)) !== null && _c !== void 0 ? _c : false;
10611
10637
  // this.events[mmdd][p].documents = docs
10612
10638
  this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
10613
10639
  this.events[mmdd][p].lastupdated = new Date().toString();
@@ -10677,7 +10703,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10677
10703
  "userid": this.userProfileId,
10678
10704
  "userrole": this.myRole,
10679
10705
  "year": this.calendarStartYYYY,
10680
- "module": (_c = listEvent.module) !== null && _c !== void 0 ? _c : "events",
10706
+ "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "events",
10681
10707
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
10682
10708
  });
10683
10709
  // }
@@ -11413,7 +11439,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11413
11439
  let newStatus = this.getCompletenessStatus(newEvent);
11414
11440
  if (currStatus == newStatus) {
11415
11441
  buttonClick.innerHTML = "Save";
11416
- this.setError('Already Approved!');
11442
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
11417
11443
  setTimeout(() => {
11418
11444
  this.clearMessages();
11419
11445
  }, 3000);
@@ -11536,7 +11562,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11536
11562
  console.log('status', currStatus, newStatus);
11537
11563
  if (currStatus == newStatus) {
11538
11564
  buttonClick.innerHTML = "Save";
11539
- this.setError('Already Approved!');
11565
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
11540
11566
  setTimeout(() => {
11541
11567
  this.clearMessages();
11542
11568
  }, 3000);
@@ -15151,7 +15177,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15151
15177
  this.myRole = this.TAB_REPORTER;
15152
15178
  this.renderRoleTabs();
15153
15179
  // this.proceedToCalendar();
15154
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
15180
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
15155
15181
  (_a = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _a === void 0 ? void 0 : _a.click();
15156
15182
  }
15157
15183
  else {
@@ -15163,7 +15189,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15163
15189
  this.myRole = this.TAB_APPROVER;
15164
15190
  this.renderRoleTabs();
15165
15191
  // this.proceedToCalendar();
15166
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
15192
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
15167
15193
  (_a = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _a === void 0 ? void 0 : _a.click();
15168
15194
  }
15169
15195
  else {
@@ -15175,7 +15201,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15175
15201
  this.myRole = this.TAB_FUNCTION_HEAD;
15176
15202
  this.renderRoleTabs();
15177
15203
  // this.proceedToCalendar();
15178
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
15204
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
15179
15205
  (_a = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _a === void 0 ? void 0 : _a.click();
15180
15206
  }
15181
15207
  else {
@@ -15187,7 +15213,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15187
15213
  this.myRole = this.TAB_AUDITOR;
15188
15214
  this.renderRoleTabs();
15189
15215
  // this.proceedToCalendar();
15190
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
15216
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
15191
15217
  (_a = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _a === void 0 ? void 0 : _a.click();
15192
15218
  }
15193
15219
  else {
@@ -15199,7 +15225,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15199
15225
  this.myRole = this.TAB_VIEWER;
15200
15226
  this.renderRoleTabs();
15201
15227
  // this.proceedToCalendar();
15202
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
15228
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
15203
15229
  (_a = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _a === void 0 ? void 0 : _a.click();
15204
15230
  }
15205
15231
  else {
@@ -17330,7 +17356,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17330
17356
  var html = '';
17331
17357
  html += '<button class="tab-button mb-10" id="calendar-tab-month" part="' + (selectedTab == this.TAB_STREAM ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Month</button>';
17332
17358
  html += '<button class="tab-button mb-10" id="calendar-tab-custom" part="' + (selectedTab == this.TAB_CUSTOM ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">' + (this.myRole == this.TAB_VIEWER ? "Statistics" : "Range") + '</button>';
17333
- if (this.selectedFeatures.indexOf('agreements') < 0) {
17359
+ if (this.selectedFeatures.indexOf('contracts') < 0) {
17334
17360
  html += '<button class="tab-button mb-10" id="calendar-tab-register" part="' + (selectedTab == this.TAB_REGISTERS ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Registers</button>';
17335
17361
  html += '<button class="tab-button tab-button-secondary mb-10 ' + (selectedTab == this.TAB_FIND ? '' : 'hide') + '" id="calendar-tab-find" part="' + (selectedTab == this.TAB_FIND ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Search</button>';
17336
17362
  html += '<button class="tab-button tab-button-secondary mb-10 ' + (selectedTab == this.TAB_THIS ? '' : 'hide') + '" id="calendar-tab-this" part="' + (selectedTab == this.TAB_THIS ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Current</button>';
@@ -19605,7 +19631,7 @@ let SfIEvents = class SfIEvents extends LitElement {
19605
19631
  else if (this.selectedFeatures.indexOf('notices') >= 0) {
19606
19632
  this.fetchAndRenderNotices(startDate, endDate, searchString, list, month, year);
19607
19633
  }
19608
- else if (this.selectedFeatures.indexOf('agreements') >= 0) {
19634
+ else if (this.selectedFeatures.indexOf('contracts') >= 0) {
19609
19635
  this.fetchAndRenderAgreements(startDate, endDate, searchString, list, month, year);
19610
19636
  }
19611
19637
  };
@@ -19835,7 +19861,7 @@ let SfIEvents = class SfIEvents extends LitElement {
19835
19861
  }
19836
19862
  this.events = tempEvents;
19837
19863
  this.renderAppropriateStream(this.sdate, this.edate, true);
19838
- console.log('agreements', agreements, tempEvents);
19864
+ console.log('contracts', agreements, tempEvents);
19839
19865
  }
19840
19866
  else {
19841
19867
  if (xhr.status == 401) {
@@ -19877,7 +19903,7 @@ let SfIEvents = class SfIEvents extends LitElement {
19877
19903
  else if (this.selectedFeatures.indexOf('notices') >= 0) {
19878
19904
  url = "https://" + this.apiIdNotices + "/" + path;
19879
19905
  }
19880
- else if (this.selectedFeatures.indexOf('agreements') >= 0) {
19906
+ else if (this.selectedFeatures.indexOf('contracts') >= 0) {
19881
19907
  url = "https://" + this.apiIdAgreements + "/" + path;
19882
19908
  }
19883
19909
  //console.log('fetch calendar url', url);
@@ -21308,7 +21334,7 @@ let SfIEvents = class SfIEvents extends LitElement {
21308
21334
  break;
21309
21335
  }
21310
21336
  }
21311
- if (this.selectedFeatures.indexOf('agreements') >= 0) {
21337
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
21312
21338
  this.renderTabs(this.TAB_CUSTOM);
21313
21339
  (_b = this._SfTabContainer.querySelector('#calendar-tab-custom')) === null || _b === void 0 ? void 0 : _b.click();
21314
21340
  }