sf-i-events 1.0.886 → 1.0.888

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 CHANGED
@@ -757,7 +757,7 @@
757
757
  </div>
758
758
 
759
759
  </sf-i-events> -->
760
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
760
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
761
761
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
762
762
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
763
763
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -785,7 +785,7 @@
785
785
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
786
786
  </div>
787
787
 
788
- </sf-i-events>
788
+ </sf-i-events> -->
789
789
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
790
790
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
791
791
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
@@ -814,7 +814,7 @@
814
814
  </div>
815
815
 
816
816
  </sf-i-events> -->
817
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
817
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
818
818
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
819
819
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
820
820
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -841,7 +841,7 @@
841
841
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
842
842
  </div>
843
843
 
844
- </sf-i-events> -->
844
+ </sf-i-events>
845
845
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
846
846
 
847
847
  <div slot="uploader">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.886",
4
+ "version": "1.0.888",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -849,7 +849,7 @@ let SfIEvents = class SfIEvents extends LitElement {
849
849
 
850
850
  `;
851
851
  this.AUTOSAVE_FLAG = true;
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"];
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", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"];
853
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"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
854
854
  this.chartSelectedLegend = [];
855
855
  this.selectedFilters = null;
@@ -2547,7 +2547,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2547
2547
  html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
2548
2548
  html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>';
2549
2549
  html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
2550
- // html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + ((event.module ?? false) ? event.module : 'compliance') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? "reportformat" : "") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + ((event.module ?? false) ? event.module : 'compliance') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk-' + event.risk[0].toLowerCase().replace(/ /g, '-') + '" class="stream-event-risk ml-5">' + event.risk[0] + '</div>') + (((event.reportformat != null && event.reportformat.length > 0) || (event.customreporting != null)) ? '' : ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
2550
+ // html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + ((event.module ?? false) ? event.module : 'compliance') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? "reportformat" : "") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + ((event.module ?? false) ? event.module : 'compliance') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.concise == null ? "100" : "60") + '"></sf-i-elastic-text>' + event.concise == null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk-' + event.risk[0].toLowerCase().replace(/ /g, '-') + '" class="stream-event-risk ml-5">' + event.risk[0] + '</div>') + (((event.reportformat != null && event.reportformat.length > 0) || (event.customreporting != null)) ? '' : ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.concise == null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
2551
2551
  const isBulk = event.isbulk === true;
2552
2552
  const hasReportFormat = ((_a = event.reportformat) === null || _a === void 0 ? void 0 : _a.length) > 0;
2553
2553
  const hasCustomReporting = event.customreporting != null;
@@ -2563,7 +2563,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2563
2563
  const showCheckbox = !(hasReportFormat || isBulk || hasCustomReporting);
2564
2564
  const showReportingButton = !hasReportFormat && !hasCustomReporting && event.reporters == null;
2565
2565
  const showLocationRisk = event.reporters == null;
2566
- const showLastUpdated = event.reporters != null && lastUpdated.length > 0;
2566
+ const showLastUpdated = event.concise == null && lastUpdated.length > 0;
2567
2567
  html += `
2568
2568
  <div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">
2569
2569
  <input
@@ -2576,7 +2576,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2576
2576
  class="stream-event-title${!isBulk ? ' button-event-title' : ''}"
2577
2577
  id="stream-event-title-${mmddSanitized}-${itemNumber}-${moduleType}"
2578
2578
  text="${event.obligationtitle}"
2579
- minLength="${event.reporters != null ? '100' : '60'}">
2579
+ minLength="${event.concise == null ? '100' : '60'}">
2580
2580
  </sf-i-elastic-text>
2581
2581
  ${showLocationRisk ? `
2582
2582
  <div part="stream-event-location" class="stream-event-location ml-5">
@@ -2601,7 +2601,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2601
2601
  ` : ''}
2602
2602
  </div>
2603
2603
  `;
2604
- if (event.reporters != null && remarks.length > 0) {
2604
+ if (event.concise == null && remarks.length > 0) {
2605
2605
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
2606
2606
  }
2607
2607
  // console.log('returning divstarthtml', html);
@@ -2877,12 +2877,12 @@ let SfIEvents = class SfIEvents extends LitElement {
2877
2877
  this.renderCalendarAnnotations = (event, mmdd, j) => {
2878
2878
  var html = '';
2879
2879
  html += '<div class="hidden-filtername hide"><table><thead><th part="badge-filter-name" class="filtername"></th></thead></table></div>';
2880
- // if(event.reporters != null && event.approvers != null){
2881
- let reporterStr = event.reporters != null ? this.getReporterStringFromEvent(event) : "";
2880
+ // if(event.concise == null && event.approvers != null){
2881
+ let reporterStr = event.concise == null ? this.getReporterStringFromEvent(event) : "";
2882
2882
  let approverStr = event.approvers != null ? this.getApproverStringFromEvent(event) : "";
2883
2883
  let graphParam = this.getGraphParam(event);
2884
2884
  // console.log("graphParam", graphParam.split(';')[0]);
2885
- html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.reporters != null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.reporters != null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + '</div>';
2885
+ html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + '</div>';
2886
2886
  // }
2887
2887
  return html;
2888
2888
  };
@@ -3779,6 +3779,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3779
3779
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
3780
3780
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
3781
3781
  //console.log(entityId, locationId, eventId, mmddyyyy);
3782
+ let yearStr = this.getFinancialYear(mmddyyyy);
3782
3783
  bulkBodyReview.push({
3783
3784
  "mmddyyyy": mmddyyyy,
3784
3785
  "projectid": this.projectId,
@@ -3791,7 +3792,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3791
3792
  "username": this.userName,
3792
3793
  "userid": this.userProfileId,
3793
3794
  "userrole": this.myRole,
3794
- "year": this.calendarStartYYYY,
3795
+ "year": yearStr,
3795
3796
  "module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
3796
3797
  });
3797
3798
  }
@@ -3862,6 +3863,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3862
3863
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
3863
3864
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
3864
3865
  //console.log(entityId, locationId, eventId, mmddyyyy);
3866
+ let yearStr = this.getFinancialYear(mmddyyyy);
3865
3867
  bulkBodyReview.push({
3866
3868
  "mmddyyyy": mmddyyyy,
3867
3869
  "projectid": this.projectId,
@@ -3874,7 +3876,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3874
3876
  "username": this.userName,
3875
3877
  "userid": this.userProfileId,
3876
3878
  "userrole": this.myRole,
3877
- "year": this.calendarStartYYYY,
3879
+ "year": yearStr,
3878
3880
  "module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
3879
3881
  });
3880
3882
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -4172,6 +4174,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4172
4174
  // } )
4173
4175
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
4174
4176
  // }else{
4177
+ let yearStr = this.getFinancialYear(mmddyyyy);
4175
4178
  bulkBody.push({
4176
4179
  "mmddyyyy": mmddyyyy,
4177
4180
  "projectid": this.projectId,
@@ -4189,7 +4192,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4189
4192
  "reportformatschema": reportformatschema,
4190
4193
  "userid": this.userProfileId,
4191
4194
  "userrole": this.myRole,
4192
- "year": this.calendarStartYYYY,
4195
+ "year": yearStr,
4193
4196
  "module": (_f = event.module) !== null && _f !== void 0 ? _f : "compliance",
4194
4197
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
4195
4198
  });
@@ -5468,14 +5471,22 @@ let SfIEvents = class SfIEvents extends LitElement {
5468
5471
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
5469
5472
  this.csvDataRegisters += ('\n');
5470
5473
  }
5474
+ html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5475
+ html += '<table>';
5476
+ let tablecols = [];
5471
5477
  for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
5472
5478
  const complianceId = Object.keys(objCountry[statute])[j];
5473
5479
  const compliance = objCountry[statute][complianceId];
5474
5480
  const data = JSON.parse(compliance.data);
5475
5481
  const cols = JSON.parse(compliance.cols);
5482
+ for (let col of cols) {
5483
+ if (!tablecols.includes(col.toLowerCase()) && !this.EXCLUDE_COLS_FROM_REGS.includes(col.toLowerCase())) {
5484
+ tablecols.push(col);
5485
+ }
5486
+ }
5476
5487
  this.csvDataRegisters += ('"' + complianceId + '",');
5477
- html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5478
- html += '<table>';
5488
+ // html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5489
+ // html += '<table>';
5479
5490
  html += '<tr>';
5480
5491
  html += ('<td class="td-body left-sticky" part="td-body-register"><button part="button-icon" id="button-icon-country-' + index + '-' + i + '-' + j + '" class="button-icon-country"><span class="material-symbols-outlined">open_in_new</span></button></td>');
5481
5492
  html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">ID</span><br /><sf-i-elastic-text text="' + complianceId + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
@@ -5486,13 +5497,33 @@ let SfIEvents = class SfIEvents extends LitElement {
5486
5497
  // this.csvDataRegisters += ('",');
5487
5498
  }
5488
5499
  }
5500
+ if (compliance['entities'] != null && Array.isArray(compliance['entities'])) {
5501
+ let entities = '';
5502
+ for (let entity of compliance['entities']) {
5503
+ entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
5504
+ }
5505
+ entities = entities.slice(0, entities.length - 1);
5506
+ html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text text="' + entities + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5507
+ // this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
5508
+ }
5509
+ if (compliance['locations'] != null && Array.isArray(compliance['locations'])) {
5510
+ let locations = '';
5511
+ for (let location of compliance['locations']) {
5512
+ locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
5513
+ }
5514
+ locations = locations.slice(0, locations.length - 1);
5515
+ html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text text="' + locations + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5516
+ // this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
5517
+ }
5489
5518
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
5490
5519
  this.csvDataRegisters += ('\n');
5491
5520
  console.log('enter');
5492
5521
  html += '</tr>';
5493
- html += '</table>';
5494
- html += '</div>';
5522
+ // html += '</table>';
5523
+ // html += '</div>';
5495
5524
  }
5525
+ html += '</table>';
5526
+ html += '</div>';
5496
5527
  // html += '</table>';
5497
5528
  // html += '</div>';
5498
5529
  }
@@ -7449,8 +7480,20 @@ let SfIEvents = class SfIEvents extends LitElement {
7449
7480
  (_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
7450
7481
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7451
7482
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7452
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7453
- this._SfCustomContainer.querySelector('#stream-end-date').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7483
+ let year = parseInt(this.calendarStartYYYY);
7484
+ let month = parseInt(this.calendarStartMM) - 1;
7485
+ if (month === 0) {
7486
+ month = 12;
7487
+ year -= 1;
7488
+ }
7489
+ // Pad month
7490
+ const monthStr = month < 10 ? '0' + month : '' + month;
7491
+ // Determine last day of month (safe)
7492
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
7493
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
7494
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
7495
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = finalDate;
7496
+ this._SfCustomContainer.querySelector('#stream-end-date').value = finalDate;
7454
7497
  this.processDateSelection(this._SfCustomContainer);
7455
7498
  });
7456
7499
  (_k = this._SfCustomContainer.querySelector('#button-this-year')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', () => {
@@ -7657,15 +7700,39 @@ let SfIEvents = class SfIEvents extends LitElement {
7657
7700
  (_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
7658
7701
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7659
7702
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7660
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7661
- this._SfCustomContainer.querySelector('#stream-end-date').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7703
+ let year = parseInt(this.calendarStartYYYY);
7704
+ let month = parseInt(this.calendarStartMM) - 1;
7705
+ if (month === 0) {
7706
+ month = 12;
7707
+ year -= 1;
7708
+ }
7709
+ // Pad month
7710
+ const monthStr = month < 10 ? '0' + month : '' + month;
7711
+ // Determine last day of month (safe)
7712
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
7713
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
7714
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
7715
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = finalDate;
7716
+ this._SfCustomContainer.querySelector('#stream-end-date').value = finalDate;
7662
7717
  this.processDateSelectionViewer(this._SfCustomContainer);
7663
7718
  });
7664
7719
  (_k = this._SfCustomContainer.querySelector('#button-this-year')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', () => {
7665
7720
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7666
7721
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7667
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7668
- this._SfCustomContainer.querySelector('#stream-end-date').value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
7722
+ let year = parseInt(this.calendarStartYYYY);
7723
+ let month = parseInt(this.calendarStartMM) - 1;
7724
+ if (month === 0) {
7725
+ month = 12;
7726
+ year -= 1;
7727
+ }
7728
+ // Pad month
7729
+ const monthStr = month < 10 ? '0' + month : '' + month;
7730
+ // Determine last day of month (safe)
7731
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
7732
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
7733
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
7734
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = finalDate;
7735
+ this._SfCustomContainer.querySelector('#stream-end-date').value = finalDate;
7669
7736
  this.processDateSelectionViewer(this._SfCustomContainer);
7670
7737
  });
7671
7738
  (_l = this._SfCustomContainer.querySelector('#button-this-quarter-mobile')) === null || _l === void 0 ? void 0 : _l.addEventListener('click', () => {
@@ -9886,6 +9953,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9886
9953
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
9887
9954
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
9888
9955
  //console.log(entityId, locationId, eventId, mmddyyyy);
9956
+ let yearStr = this.getFinancialYear(mmddyyyy);
9889
9957
  bulkBodyReview.push({
9890
9958
  "mmddyyyy": mmddyyyy,
9891
9959
  "projectid": this.projectId,
@@ -9898,7 +9966,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9898
9966
  "username": this.userName,
9899
9967
  "userid": this.userProfileId,
9900
9968
  "userrole": this.myRole,
9901
- "year": this.calendarStartYYYY,
9969
+ "year": yearStr,
9902
9970
  "module": (_b = listEvent.module) !== null && _b !== void 0 ? _b : "compliance"
9903
9971
  });
9904
9972
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -10227,6 +10295,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10227
10295
  // } )
10228
10296
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
10229
10297
  // }else{
10298
+ let yearStr = this.getFinancialYear(mmddyyyy);
10230
10299
  bulkBody.push({
10231
10300
  "mmddyyyy": mmddyyyy,
10232
10301
  "projectid": this.projectId,
@@ -10244,7 +10313,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10244
10313
  "reportformatschema": reportformatschema,
10245
10314
  "userid": this.userProfileId,
10246
10315
  "userrole": this.myRole,
10247
- "year": this.calendarStartYYYY,
10316
+ "year": yearStr,
10248
10317
  "module": (_c = listEvent.module) !== null && _c !== void 0 ? _c : "compliance",
10249
10318
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
10250
10319
  });
@@ -10674,6 +10743,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10674
10743
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
10675
10744
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
10676
10745
  //console.log(entityId, locationId, eventId, mmddyyyy);
10746
+ let yearStr = this.getFinancialYear(mmddyyyy);
10677
10747
  bulkBodyReview.push({
10678
10748
  "mmddyyyy": mmddyyyy,
10679
10749
  "projectid": this.projectId,
@@ -10686,7 +10756,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10686
10756
  "username": this.userName,
10687
10757
  "userid": this.userProfileId,
10688
10758
  "userrole": this.myRole,
10689
- "year": this.calendarStartYYYY,
10759
+ "year": yearStr,
10690
10760
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
10691
10761
  });
10692
10762
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -11016,6 +11086,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11016
11086
  // } )
11017
11087
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
11018
11088
  // }else{
11089
+ let yearStr = this.getFinancialYear(mmddyyyy);
11019
11090
  bulkBody.push({
11020
11091
  "mmddyyyy": mmddyyyy,
11021
11092
  "projectid": this.projectId,
@@ -11033,7 +11104,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11033
11104
  "reportformatschema": reportformatschema,
11034
11105
  "userid": this.userProfileId,
11035
11106
  "userrole": this.myRole,
11036
- "year": this.calendarStartYYYY,
11107
+ "year": yearStr,
11037
11108
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
11038
11109
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
11039
11110
  });
@@ -11464,6 +11535,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11464
11535
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
11465
11536
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
11466
11537
  //console.log(entityId, locationId, eventId, mmddyyyy);
11538
+ let yearStr = this.getFinancialYear(mmddyyyy);
11467
11539
  bulkBodyReview.push({
11468
11540
  "mmddyyyy": mmddyyyy,
11469
11541
  "projectid": this.projectId,
@@ -11476,7 +11548,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11476
11548
  "username": this.userName,
11477
11549
  "userid": this.userProfileId,
11478
11550
  "userrole": this.myRole,
11479
- "year": this.calendarStartYYYY,
11551
+ "year": yearStr,
11480
11552
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
11481
11553
  });
11482
11554
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -11806,6 +11878,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11806
11878
  // } )
11807
11879
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
11808
11880
  // }else{
11881
+ let yearStr = this.getFinancialYear(mmddyyyy);
11809
11882
  bulkBody.push({
11810
11883
  "mmddyyyy": mmddyyyy,
11811
11884
  "projectid": this.projectId,
@@ -11823,7 +11896,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11823
11896
  "reportformatschema": reportformatschema,
11824
11897
  "userid": this.userProfileId,
11825
11898
  "userrole": this.myRole,
11826
- "year": this.calendarStartYYYY,
11899
+ "year": yearStr,
11827
11900
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
11828
11901
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
11829
11902
  });
@@ -12254,6 +12327,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12254
12327
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
12255
12328
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
12256
12329
  //console.log(entityId, locationId, eventId, mmddyyyy);
12330
+ let yearStr = this.getFinancialYear(mmddyyyy);
12257
12331
  bulkBodyReview.push({
12258
12332
  "mmddyyyy": mmddyyyy,
12259
12333
  "projectid": this.projectId,
@@ -12266,7 +12340,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12266
12340
  "username": this.userName,
12267
12341
  "userid": this.userProfileId,
12268
12342
  "userrole": this.myRole,
12269
- "year": this.calendarStartYYYY,
12343
+ "year": yearStr,
12270
12344
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
12271
12345
  });
12272
12346
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -12596,6 +12670,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12596
12670
  // } )
12597
12671
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
12598
12672
  // }else{
12673
+ let yearStr = this.getFinancialYear(mmddyyyy);
12599
12674
  bulkBody.push({
12600
12675
  "mmddyyyy": mmddyyyy,
12601
12676
  "projectid": this.projectId,
@@ -12613,7 +12688,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12613
12688
  "reportformatschema": reportformatschema,
12614
12689
  "userid": this.userProfileId,
12615
12690
  "userrole": this.myRole,
12616
- "year": this.calendarStartYYYY,
12691
+ "year": yearStr,
12617
12692
  "module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
12618
12693
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
12619
12694
  });
@@ -13186,6 +13261,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13186
13261
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
13187
13262
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13188
13263
  //console.log(entityId, locationId, eventId, mmddyyyy);
13264
+ let yearStr = this.getFinancialYear(mmddyyyy);
13189
13265
  bulkBodyReview.push({
13190
13266
  "mmddyyyy": mmddyyyy,
13191
13267
  "projectid": this.projectId,
@@ -13198,7 +13274,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13198
13274
  "username": this.userName,
13199
13275
  "userid": this.userProfileId,
13200
13276
  "userrole": this.myRole,
13201
- "year": this.calendarStartYYYY,
13277
+ "year": yearStr,
13202
13278
  "module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
13203
13279
  });
13204
13280
  }
@@ -13405,6 +13481,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13405
13481
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
13406
13482
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13407
13483
  //console.log(entityId, locationId, eventId, mmddyyyy);
13484
+ let yearStr = this.getFinancialYear(mmddyyyy);
13408
13485
  bulkBodyReview.push({
13409
13486
  "mmddyyyy": mmddyyyy,
13410
13487
  "projectid": this.projectId,
@@ -13417,7 +13494,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13417
13494
  "username": this.userName,
13418
13495
  "userid": this.userProfileId,
13419
13496
  "userrole": this.myRole,
13420
- "year": this.calendarStartYYYY,
13497
+ "year": yearStr,
13421
13498
  "module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
13422
13499
  });
13423
13500
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -13764,6 +13841,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13764
13841
  // } )
13765
13842
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
13766
13843
  // }else{
13844
+ let yearStr = this.getFinancialYear(mmddyyyy);
13767
13845
  bulkBody.push({
13768
13846
  "mmddyyyy": mmddyyyy,
13769
13847
  "projectid": this.projectId,
@@ -13781,7 +13859,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13781
13859
  "reportformatschema": reportformatschema,
13782
13860
  "userid": this.userProfileId,
13783
13861
  "userrole": this.myRole,
13784
- "year": this.calendarStartYYYY,
13862
+ "year": yearStr,
13785
13863
  "module": (_f = event.module) !== null && _f !== void 0 ? _f : "compliance",
13786
13864
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
13787
13865
  });
@@ -20401,6 +20479,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20401
20479
  };
20402
20480
  this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "compliance", percentage = "100", makercheckers) => {
20403
20481
  let url = "https://" + this.apiId + "/uploadreport1";
20482
+ let yearStr = this.getFinancialYear(mmddyyyy);
20404
20483
  let body = {
20405
20484
  "mmddyyyy": mmddyyyy,
20406
20485
  "projectid": this.projectId,
@@ -20418,7 +20497,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20418
20497
  "reportformatschema": reportformatschema,
20419
20498
  "userid": this.userProfileId,
20420
20499
  "userrole": this.myRole,
20421
- "year": this.calendarStartYYYY,
20500
+ "year": yearStr,
20422
20501
  "module": module,
20423
20502
  "makercheckers": makercheckers
20424
20503
  };
@@ -857,7 +857,7 @@ export class SfIEvents extends LitElement {
857
857
 
858
858
  AUTOSAVE_FLAG = true;
859
859
 
860
- EXCLUDE_COLS_FROM_REGS: Array<string> = ["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"]
860
+ EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"]
861
861
 
862
862
  CHARTS_LIST_BY_MODULES: { [key: string]: Array<string> } = { "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"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
863
863
 
@@ -4759,7 +4759,7 @@ export class SfIEvents extends LitElement {
4759
4759
  html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
4760
4760
  html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>'
4761
4761
  html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
4762
- // html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + ((event.module ?? false) ? event.module : 'compliance') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? "reportformat" : "") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + ((event.module ?? false) ? event.module : 'compliance') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk-' + event.risk[0].toLowerCase().replace(/ /g, '-') + '" class="stream-event-risk ml-5">' + event.risk[0] + '</div>') + (((event.reportformat != null && event.reportformat.length > 0) || (event.customreporting != null)) ? '' : ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
4762
+ // html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + ((event.module ?? false) ? event.module : 'compliance') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? "reportformat" : "") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true) || (event.customreporting != null)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + ((event.module ?? false) ? event.module : 'compliance') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.concise == null ? "100" : "60") + '"></sf-i-elastic-text>' + event.concise == null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk-' + event.risk[0].toLowerCase().replace(/ /g, '-') + '" class="stream-event-risk ml-5">' + event.risk[0] + '</div>') + (((event.reportformat != null && event.reportformat.length > 0) || (event.customreporting != null)) ? '' : ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.concise == null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
4763
4763
 
4764
4764
  const isBulk = event.isbulk === true;
4765
4765
  const hasReportFormat = event.reportformat?.length > 0;
@@ -4776,7 +4776,7 @@ export class SfIEvents extends LitElement {
4776
4776
  const showCheckbox = !(hasReportFormat || isBulk || hasCustomReporting);
4777
4777
  const showReportingButton = !hasReportFormat && !hasCustomReporting && event.reporters == null;
4778
4778
  const showLocationRisk = event.reporters == null;
4779
- const showLastUpdated = event.reporters != null && lastUpdated.length > 0;
4779
+ const showLastUpdated = event.concise == null && lastUpdated.length > 0;
4780
4780
 
4781
4781
  html += `
4782
4782
  <div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">
@@ -4790,7 +4790,7 @@ export class SfIEvents extends LitElement {
4790
4790
  class="stream-event-title${!isBulk ? ' button-event-title' : ''}"
4791
4791
  id="stream-event-title-${mmddSanitized}-${itemNumber}-${moduleType}"
4792
4792
  text="${event.obligationtitle}"
4793
- minLength="${event.reporters != null ? '100' : '60'}">
4793
+ minLength="${event.concise == null ? '100' : '60'}">
4794
4794
  </sf-i-elastic-text>
4795
4795
  ${showLocationRisk ? `
4796
4796
  <div part="stream-event-location" class="stream-event-location ml-5">
@@ -4816,7 +4816,7 @@ export class SfIEvents extends LitElement {
4816
4816
  </div>
4817
4817
  `;
4818
4818
 
4819
- if (event.reporters != null && remarks.length > 0) {
4819
+ if (event.concise == null && remarks.length > 0) {
4820
4820
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
4821
4821
  }
4822
4822
  // console.log('returning divstarthtml', html);
@@ -5132,13 +5132,13 @@ export class SfIEvents extends LitElement {
5132
5132
  var html = '';
5133
5133
 
5134
5134
  html += '<div class="hidden-filtername hide"><table><thead><th part="badge-filter-name" class="filtername"></th></thead></table></div>'
5135
- // if(event.reporters != null && event.approvers != null){
5136
- let reporterStr = event.reporters != null ? this.getReporterStringFromEvent(event) : "";
5135
+ // if(event.concise == null && event.approvers != null){
5136
+ let reporterStr = event.concise == null ? this.getReporterStringFromEvent(event) : "";
5137
5137
  let approverStr = event.approvers != null ? this.getApproverStringFromEvent(event) : "";
5138
5138
 
5139
5139
  let graphParam = this.getGraphParam(event);
5140
5140
  // console.log("graphParam", graphParam.split(';')[0]);
5141
- html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.reporters != null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.reporters != null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + '</div>';
5141
+ html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + '</div>';
5142
5142
  // }
5143
5143
 
5144
5144
  return html;
@@ -6132,6 +6132,7 @@ export class SfIEvents extends LitElement {
6132
6132
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
6133
6133
 
6134
6134
  //console.log(entityId, locationId, eventId, mmddyyyy);
6135
+ let yearStr = this.getFinancialYear(mmddyyyy)
6135
6136
  bulkBodyReview.push({
6136
6137
  "mmddyyyy": mmddyyyy,
6137
6138
  "projectid": this.projectId,
@@ -6144,7 +6145,7 @@ export class SfIEvents extends LitElement {
6144
6145
  "username": this.userName,
6145
6146
  "userid": this.userProfileId,
6146
6147
  "userrole": this.myRole,
6147
- "year": this.calendarStartYYYY,
6148
+ "year": yearStr,
6148
6149
  "module": event.module ?? "compliance"
6149
6150
  })
6150
6151
  }
@@ -6216,6 +6217,7 @@ export class SfIEvents extends LitElement {
6216
6217
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
6217
6218
 
6218
6219
  //console.log(entityId, locationId, eventId, mmddyyyy);
6220
+ let yearStr = this.getFinancialYear(mmddyyyy)
6219
6221
  bulkBodyReview.push({
6220
6222
  "mmddyyyy": mmddyyyy,
6221
6223
  "projectid": this.projectId,
@@ -6228,7 +6230,7 @@ export class SfIEvents extends LitElement {
6228
6230
  "username": this.userName,
6229
6231
  "userid": this.userProfileId,
6230
6232
  "userrole": this.myRole,
6231
- "year": this.calendarStartYYYY,
6233
+ "year": yearStr,
6232
6234
  "module": event.module ?? "compliance"
6233
6235
  })
6234
6236
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -6566,6 +6568,7 @@ export class SfIEvents extends LitElement {
6566
6568
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
6567
6569
 
6568
6570
  // }else{
6571
+ let yearStr = this.getFinancialYear(mmddyyyy)
6569
6572
  bulkBody.push({
6570
6573
  "mmddyyyy": mmddyyyy,
6571
6574
  "projectid": this.projectId,
@@ -6583,7 +6586,7 @@ export class SfIEvents extends LitElement {
6583
6586
  "reportformatschema": reportformatschema,
6584
6587
  "userid": this.userProfileId,
6585
6588
  "userrole": this.myRole,
6586
- "year": this.calendarStartYYYY,
6589
+ "year": yearStr,
6587
6590
  "module": event.module ?? "compliance",
6588
6591
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
6589
6592
  })
@@ -8031,15 +8034,22 @@ export class SfIEvents extends LitElement {
8031
8034
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
8032
8035
  this.csvDataRegisters += ('\n');
8033
8036
  }
8034
-
8037
+ html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8038
+ html += '<table>';
8039
+ let tablecols: string[] = []
8035
8040
  for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
8036
8041
  const complianceId = Object.keys(objCountry[statute])[j];
8037
8042
  const compliance = objCountry[statute][complianceId];
8038
8043
  const data = JSON.parse(compliance.data);
8039
8044
  const cols = JSON.parse(compliance.cols);
8045
+ for(let col of cols){
8046
+ if(!tablecols.includes(col.toLowerCase()) && !this.EXCLUDE_COLS_FROM_REGS.includes(col.toLowerCase())){
8047
+ tablecols.push(col)
8048
+ }
8049
+ }
8040
8050
  this.csvDataRegisters += ('"' + complianceId + '",');
8041
- html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8042
- html += '<table>';
8051
+ // html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8052
+ // html += '<table>';
8043
8053
  html += '<tr>';
8044
8054
  html += ('<td class="td-body left-sticky" part="td-body-register"><button part="button-icon" id="button-icon-country-' + index + '-' + i + '-' + j + '" class="button-icon-country"><span class="material-symbols-outlined">open_in_new</span></button></td>');
8045
8055
  html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">ID</span><br /><sf-i-elastic-text text="' + complianceId + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
@@ -8050,13 +8060,33 @@ export class SfIEvents extends LitElement {
8050
8060
  // this.csvDataRegisters += ('",');
8051
8061
  }
8052
8062
  }
8063
+ if(compliance['entities'] != null && Array.isArray(compliance['entities'])){
8064
+ let entities = '';
8065
+ for(let entity of compliance['entities']){
8066
+ entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ','
8067
+ }
8068
+ entities = entities.slice(0, entities.length - 1)
8069
+ html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text text="' + entities + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8070
+ // this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
8071
+ }
8072
+ if(compliance['locations'] != null && Array.isArray(compliance['locations'])){
8073
+ let locations = '';
8074
+ for(let location of compliance['locations']){
8075
+ locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ','
8076
+ }
8077
+ locations = locations.slice(0, locations.length - 1)
8078
+ html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text text="' + locations + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8079
+ // this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
8080
+ }
8053
8081
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
8054
8082
  this.csvDataRegisters += ('\n');
8055
8083
  console.log('enter');
8056
8084
  html += '</tr>';
8057
- html += '</table>';
8058
- html += '</div>';
8085
+ // html += '</table>';
8086
+ // html += '</div>';
8059
8087
  }
8088
+ html += '</table>';
8089
+ html += '</div>';
8060
8090
 
8061
8091
  // html += '</table>';
8062
8092
  // html += '</div>';
@@ -10473,8 +10503,23 @@ export class SfIEvents extends LitElement {
10473
10503
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year-mobile')?.addEventListener('click', () => {
10474
10504
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10475
10505
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10476
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10477
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10506
+ let year = parseInt(this.calendarStartYYYY);
10507
+ let month = parseInt(this.calendarStartMM) - 1;
10508
+
10509
+ if (month === 0) {
10510
+ month = 12;
10511
+ year -= 1;
10512
+ }
10513
+
10514
+ // Pad month
10515
+ const monthStr = month < 10 ? '0' + month : '' + month;
10516
+
10517
+ // Determine last day of month (safe)
10518
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
10519
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
10520
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
10521
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = finalDate;
10522
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = finalDate;
10478
10523
  this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
10479
10524
  });
10480
10525
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year')?.addEventListener('click', () => {
@@ -10721,15 +10766,45 @@ export class SfIEvents extends LitElement {
10721
10766
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year-mobile')?.addEventListener('click', () => {
10722
10767
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10723
10768
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10724
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10725
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10769
+ let year = parseInt(this.calendarStartYYYY);
10770
+ let month = parseInt(this.calendarStartMM) - 1;
10771
+
10772
+ if (month === 0) {
10773
+ month = 12;
10774
+ year -= 1;
10775
+ }
10776
+
10777
+ // Pad month
10778
+ const monthStr = month < 10 ? '0' + month : '' + month;
10779
+
10780
+ // Determine last day of month (safe)
10781
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
10782
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
10783
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
10784
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = finalDate;
10785
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = finalDate;
10726
10786
  this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
10727
10787
  });
10728
10788
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year')?.addEventListener('click', () => {
10729
10789
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10730
10790
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10731
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10732
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = (parseInt(this.calendarStartYYYY) + 1) + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
10791
+ let year = parseInt(this.calendarStartYYYY);
10792
+ let month = parseInt(this.calendarStartMM) - 1;
10793
+
10794
+ if (month === 0) {
10795
+ month = 12;
10796
+ year -= 1;
10797
+ }
10798
+
10799
+ // Pad month
10800
+ const monthStr = month < 10 ? '0' + month : '' + month;
10801
+
10802
+ // Determine last day of month (safe)
10803
+ const lastDay = new Date(year, month, 0).getDate(); // day 0 of next month gives last day of `month`
10804
+ const dayStr = lastDay < 10 ? '0' + lastDay : '' + lastDay;
10805
+ const finalDate = `${year + 1}-${monthStr}-${dayStr}`;
10806
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = finalDate;
10807
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = finalDate;
10733
10808
  this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
10734
10809
  });
10735
10810
 
@@ -13437,6 +13512,7 @@ export class SfIEvents extends LitElement {
13437
13512
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13438
13513
 
13439
13514
  //console.log(entityId, locationId, eventId, mmddyyyy);
13515
+ let yearStr = this.getFinancialYear(mmddyyyy)
13440
13516
  bulkBodyReview.push({
13441
13517
  "mmddyyyy": mmddyyyy,
13442
13518
  "projectid": this.projectId,
@@ -13449,7 +13525,7 @@ export class SfIEvents extends LitElement {
13449
13525
  "username": this.userName,
13450
13526
  "userid": this.userProfileId,
13451
13527
  "userrole": this.myRole,
13452
- "year": this.calendarStartYYYY,
13528
+ "year": yearStr,
13453
13529
  "module": listEvent.module ?? "compliance"
13454
13530
  })
13455
13531
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -13824,6 +13900,7 @@ export class SfIEvents extends LitElement {
13824
13900
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
13825
13901
 
13826
13902
  // }else{
13903
+ let yearStr = this.getFinancialYear(mmddyyyy)
13827
13904
  bulkBody.push({
13828
13905
  "mmddyyyy": mmddyyyy,
13829
13906
  "projectid": this.projectId,
@@ -13841,7 +13918,7 @@ export class SfIEvents extends LitElement {
13841
13918
  "reportformatschema": reportformatschema,
13842
13919
  "userid": this.userProfileId,
13843
13920
  "userrole": this.myRole,
13844
- "year": this.calendarStartYYYY,
13921
+ "year": yearStr,
13845
13922
  "module": listEvent.module ?? "compliance",
13846
13923
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
13847
13924
  })
@@ -14325,6 +14402,7 @@ export class SfIEvents extends LitElement {
14325
14402
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
14326
14403
 
14327
14404
  //console.log(entityId, locationId, eventId, mmddyyyy);
14405
+ let yearStr = this.getFinancialYear(mmddyyyy)
14328
14406
  bulkBodyReview.push({
14329
14407
  "mmddyyyy": mmddyyyy,
14330
14408
  "projectid": this.projectId,
@@ -14337,7 +14415,7 @@ export class SfIEvents extends LitElement {
14337
14415
  "username": this.userName,
14338
14416
  "userid": this.userProfileId,
14339
14417
  "userrole": this.myRole,
14340
- "year": this.calendarStartYYYY,
14418
+ "year": yearStr,
14341
14419
  "module": listEvent.module ?? "compliance"
14342
14420
  })
14343
14421
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -14717,6 +14795,7 @@ export class SfIEvents extends LitElement {
14717
14795
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
14718
14796
 
14719
14797
  // }else{
14798
+ let yearStr = this.getFinancialYear(mmddyyyy)
14720
14799
  bulkBody.push({
14721
14800
  "mmddyyyy": mmddyyyy,
14722
14801
  "projectid": this.projectId,
@@ -14734,7 +14813,7 @@ export class SfIEvents extends LitElement {
14734
14813
  "reportformatschema": reportformatschema,
14735
14814
  "userid": this.userProfileId,
14736
14815
  "userrole": this.myRole,
14737
- "year": this.calendarStartYYYY,
14816
+ "year": yearStr,
14738
14817
  "module": listEvent.module ?? "compliance",
14739
14818
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
14740
14819
  })
@@ -15220,6 +15299,7 @@ export class SfIEvents extends LitElement {
15220
15299
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
15221
15300
 
15222
15301
  //console.log(entityId, locationId, eventId, mmddyyyy);
15302
+ let yearStr = this.getFinancialYear(mmddyyyy)
15223
15303
  bulkBodyReview.push({
15224
15304
  "mmddyyyy": mmddyyyy,
15225
15305
  "projectid": this.projectId,
@@ -15232,7 +15312,7 @@ export class SfIEvents extends LitElement {
15232
15312
  "username": this.userName,
15233
15313
  "userid": this.userProfileId,
15234
15314
  "userrole": this.myRole,
15235
- "year": this.calendarStartYYYY,
15315
+ "year": yearStr,
15236
15316
  "module": listEvent.module ?? "compliance"
15237
15317
  })
15238
15318
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -15612,6 +15692,7 @@ export class SfIEvents extends LitElement {
15612
15692
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
15613
15693
 
15614
15694
  // }else{
15695
+ let yearStr = this.getFinancialYear(mmddyyyy)
15615
15696
  bulkBody.push({
15616
15697
  "mmddyyyy": mmddyyyy,
15617
15698
  "projectid": this.projectId,
@@ -15629,7 +15710,7 @@ export class SfIEvents extends LitElement {
15629
15710
  "reportformatschema": reportformatschema,
15630
15711
  "userid": this.userProfileId,
15631
15712
  "userrole": this.myRole,
15632
- "year": this.calendarStartYYYY,
15713
+ "year": yearStr,
15633
15714
  "module": listEvent.module ?? "compliance",
15634
15715
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
15635
15716
  })
@@ -16115,6 +16196,7 @@ export class SfIEvents extends LitElement {
16115
16196
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
16116
16197
 
16117
16198
  //console.log(entityId, locationId, eventId, mmddyyyy);
16199
+ let yearStr = this.getFinancialYear(mmddyyyy)
16118
16200
  bulkBodyReview.push({
16119
16201
  "mmddyyyy": mmddyyyy,
16120
16202
  "projectid": this.projectId,
@@ -16127,7 +16209,7 @@ export class SfIEvents extends LitElement {
16127
16209
  "username": this.userName,
16128
16210
  "userid": this.userProfileId,
16129
16211
  "userrole": this.myRole,
16130
- "year": this.calendarStartYYYY,
16212
+ "year": yearStr,
16131
16213
  "module": listEvent.module ?? "compliance"
16132
16214
  })
16133
16215
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -16507,6 +16589,7 @@ export class SfIEvents extends LitElement {
16507
16589
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
16508
16590
 
16509
16591
  // }else{
16592
+ let yearStr = this.getFinancialYear(mmddyyyy)
16510
16593
  bulkBody.push({
16511
16594
  "mmddyyyy": mmddyyyy,
16512
16595
  "projectid": this.projectId,
@@ -16524,7 +16607,7 @@ export class SfIEvents extends LitElement {
16524
16607
  "reportformatschema": reportformatschema,
16525
16608
  "userid": this.userProfileId,
16526
16609
  "userrole": this.myRole,
16527
- "year": this.calendarStartYYYY,
16610
+ "year": yearStr,
16528
16611
  "module": listEvent.module ?? "compliance",
16529
16612
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
16530
16613
  })
@@ -17205,6 +17288,7 @@ export class SfIEvents extends LitElement {
17205
17288
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
17206
17289
 
17207
17290
  //console.log(entityId, locationId, eventId, mmddyyyy);
17291
+ let yearStr = this.getFinancialYear(mmddyyyy)
17208
17292
  bulkBodyReview.push({
17209
17293
  "mmddyyyy": mmddyyyy,
17210
17294
  "projectid": this.projectId,
@@ -17217,7 +17301,7 @@ export class SfIEvents extends LitElement {
17217
17301
  "username": this.userName,
17218
17302
  "userid": this.userProfileId,
17219
17303
  "userrole": this.myRole,
17220
- "year": this.calendarStartYYYY,
17304
+ "year": yearStr,
17221
17305
  "module": event.module ?? "compliance"
17222
17306
  })
17223
17307
  }
@@ -17470,6 +17554,7 @@ export class SfIEvents extends LitElement {
17470
17554
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
17471
17555
 
17472
17556
  //console.log(entityId, locationId, eventId, mmddyyyy);
17557
+ let yearStr = this.getFinancialYear(mmddyyyy)
17473
17558
  bulkBodyReview.push({
17474
17559
  "mmddyyyy": mmddyyyy,
17475
17560
  "projectid": this.projectId,
@@ -17482,7 +17567,7 @@ export class SfIEvents extends LitElement {
17482
17567
  "username": this.userName,
17483
17568
  "userid": this.userProfileId,
17484
17569
  "userrole": this.myRole,
17485
- "year": this.calendarStartYYYY,
17570
+ "year": yearStr,
17486
17571
  "module": event.module ?? "compliance"
17487
17572
  })
17488
17573
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
@@ -17873,6 +17958,7 @@ export class SfIEvents extends LitElement {
17873
17958
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
17874
17959
 
17875
17960
  // }else{
17961
+ let yearStr = this.getFinancialYear(mmddyyyy)
17876
17962
  bulkBody.push({
17877
17963
  "mmddyyyy": mmddyyyy,
17878
17964
  "projectid": this.projectId,
@@ -17890,7 +17976,7 @@ export class SfIEvents extends LitElement {
17890
17976
  "reportformatschema": reportformatschema,
17891
17977
  "userid": this.userProfileId,
17892
17978
  "userrole": this.myRole,
17893
- "year": this.calendarStartYYYY,
17979
+ "year": yearStr,
17894
17980
  "module": event.module ?? "compliance",
17895
17981
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
17896
17982
  })
@@ -26216,7 +26302,7 @@ export class SfIEvents extends LitElement {
26216
26302
 
26217
26303
  uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "compliance", percentage: string = "100", makercheckers: any) => {
26218
26304
  let url = "https://" + this.apiId + "/uploadreport1";
26219
-
26305
+ let yearStr = this.getFinancialYear(mmddyyyy)
26220
26306
  let body = {
26221
26307
  "mmddyyyy": mmddyyyy,
26222
26308
  "projectid": this.projectId,
@@ -26234,7 +26320,7 @@ export class SfIEvents extends LitElement {
26234
26320
  "reportformatschema": reportformatschema,
26235
26321
  "userid": this.userProfileId,
26236
26322
  "userrole": this.myRole,
26237
- "year": this.calendarStartYYYY,
26323
+ "year": yearStr,
26238
26324
  "module": module,
26239
26325
  "makercheckers": makercheckers
26240
26326
  }