sf-i-events 1.0.906 → 1.0.908

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
@@ -816,7 +816,7 @@
816
816
  </div>
817
817
 
818
818
  </sf-i-events> -->
819
- <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
819
+ <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
820
820
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
821
821
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
822
822
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1"
@@ -829,7 +829,7 @@
829
829
  extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
830
830
  allowdownload="yes"></sf-i-uploader></div>
831
831
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
832
- </sf-i-events> -->
832
+ </sf-i-events>
833
833
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
834
834
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
835
835
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
@@ -947,14 +947,14 @@
947
947
  <!-- <sf-i-events projectid="d7d4d17e-3e20-4eaa-a06a-fb1c87f26532" projectname="FlaggGRC Global" mode="onboarding" locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Pune&quot;]}}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
948
948
 
949
949
  </sf-i-events> -->
950
- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
950
+ <!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
951
951
  locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Pune&quot;,&quot;Mumbai&quot;],&quot;Telangana&quot;:[&quot;Telangana&quot;]},&quot;Canada&quot;:{&quot;CanadaSO&quot;:[&quot;CanadaLO&quot;]},&quot;Singapore&quot;:{&quot;SingaporeSO&quot;:[&quot;Orchard&quot;,&quot;Raffles&quot;,&quot;Robinson&quot;,&quot;Tanjong&quot;,&quot;Tras&quot;]},&quot;United Kingdom&quot;:{&quot;UnitedSO&quot;:[&quot;UnitedLO&quot;]},&quot;United States of America&quot;:{&quot;AmericaSO&quot;:[&quot;AmericaLO&quot;]}}"
952
952
  contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
953
953
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
954
954
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
955
955
  disablesignoff="yes" disableclientresponse="yes">
956
956
 
957
- </sf-i-events>
957
+ </sf-i-events> -->
958
958
  <!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}"
959
959
  contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
960
960
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.906",
4
+ "version": "1.0.908",
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
@@ -4223,7 +4223,6 @@ let SfIEvents = class SfIEvents extends LitElement {
4223
4223
  let reportedlocations = (_c = selectReportingLocation === null || selectReportingLocation === void 0 ? void 0 : selectReportingLocation.value) !== null && _c !== void 0 ? _c : "";
4224
4224
  if (this.selectedItemIds.length <= 1) {
4225
4225
  if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, (_f = event.module) !== null && _f !== void 0 ? _f : "compliance", percentage, event.makercheckers, reportedlocations)) {
4226
- console.log('this.events', this.events);
4227
4226
  if (this.mode != "next") {
4228
4227
  for (var p = 0; p < this.events[mmdd].length; p++) {
4229
4228
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
@@ -4249,6 +4248,31 @@ let SfIEvents = class SfIEvents extends LitElement {
4249
4248
  this.recentlyReported[mmdd].push(event);
4250
4249
  console.log('recently reported', this.recentlyReported);
4251
4250
  }
4251
+ else {
4252
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
4253
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == event.locationid && this.nextEvents[this.nextTabRole][mmdd][p].entityid == event.entityid) {
4254
+ this.nextEvents[this.nextTabRole][mmdd][p].documents = docs;
4255
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
4256
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString();
4257
+ }
4258
+ }
4259
+ if (event.makercheckers.length > 0) {
4260
+ // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
4261
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
4262
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == event.locationid && this.nextEvents[this.nextTabRole][mmdd][p].entityid == event.entityid) {
4263
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = true;
4264
+ // this.events[mmdd][p].documents = docs
4265
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
4266
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString();
4267
+ }
4268
+ }
4269
+ }
4270
+ if (this.recentlyReported[mmdd] == null) {
4271
+ this.recentlyReported[mmdd] = [];
4272
+ }
4273
+ this.recentlyReported[mmdd].push(event);
4274
+ console.log('recently reported', this.recentlyReported);
4275
+ }
4252
4276
  }
4253
4277
  }
4254
4278
  else {
@@ -13818,11 +13842,22 @@ let SfIEvents = class SfIEvents extends LitElement {
13818
13842
  let flagBulk = false;
13819
13843
  if (this.selectedItemIds.length <= 1) {
13820
13844
  if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, (_a = event.module) !== null && _a !== void 0 ? _a : "compliance")) {
13821
- for (var p = 0; p < this.events[mmdd].length; p++) {
13822
- if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13823
- this.events[mmdd][p].approved = approved;
13824
- this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
13825
- this.events[mmdd][p].lastupdated = new Date().toString();
13845
+ if (this.mode == "next") {
13846
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
13847
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
13848
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = approved;
13849
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
13850
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString();
13851
+ }
13852
+ }
13853
+ }
13854
+ else {
13855
+ for (var p = 0; p < this.events[mmdd].length; p++) {
13856
+ if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13857
+ this.events[mmdd][p].approved = approved;
13858
+ this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
13859
+ this.events[mmdd][p].lastupdated = new Date().toString();
13860
+ }
13826
13861
  }
13827
13862
  }
13828
13863
  if (this.recentlyReported[mmdd] == null) {
@@ -13867,14 +13902,28 @@ let SfIEvents = class SfIEvents extends LitElement {
13867
13902
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
13868
13903
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13869
13904
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
13870
- for (var p = 0; p < this.events[mmdd].length; p++) {
13871
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13872
- this.events[mmdd][p].isbulk = true;
13873
- flagBulk = true;
13874
- if (this.recentlyReported[mmdd] == null) {
13875
- this.recentlyReported[mmdd] = [];
13905
+ if (this.mode == "next") {
13906
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
13907
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == eventId && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
13908
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
13909
+ flagBulk = true;
13910
+ if (this.recentlyReported[mmdd] == null) {
13911
+ this.recentlyReported[mmdd] = [];
13912
+ }
13913
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13914
+ }
13915
+ }
13916
+ }
13917
+ else {
13918
+ for (var p = 0; p < this.events[mmdd].length; p++) {
13919
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13920
+ this.events[mmdd][p].isbulk = true;
13921
+ flagBulk = true;
13922
+ if (this.recentlyReported[mmdd] == null) {
13923
+ this.recentlyReported[mmdd] = [];
13924
+ }
13925
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13876
13926
  }
13877
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13878
13927
  }
13879
13928
  }
13880
13929
  }
@@ -13886,7 +13935,8 @@ let SfIEvents = class SfIEvents extends LitElement {
13886
13935
  });
13887
13936
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
13888
13937
  if (this.mode == "next") {
13889
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
13938
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
13939
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
13890
13940
  }
13891
13941
  else {
13892
13942
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -13996,25 +14046,48 @@ let SfIEvents = class SfIEvents extends LitElement {
13996
14046
  // console.log('reportformatvalues', reportformatvalues)
13997
14047
  // console.log('reportformatschema',reportformatschema)
13998
14048
  if (await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, (_c = event.module) !== null && _c !== void 0 ? _c : "compliance", percentage, makercheckers, reportinglocation)) {
13999
- console.log('this.events', this.events);
14000
- for (var p = 0; p < this.events[mmdd].length; p++) {
14001
- if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
14002
- this.events[mmdd][p].documents = docs;
14003
- this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
14004
- this.events[mmdd][p].lastupdated = new Date().toString();
14049
+ if (this.mode == "next") {
14050
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
14051
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
14052
+ this.nextEvents[this.nextTabRole][mmdd][p].documents = docs;
14053
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
14054
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString();
14055
+ }
14005
14056
  }
14006
14057
  }
14007
- if (makercheckers.length > 0) {
14008
- // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
14058
+ else {
14059
+ console.log('this.events', this.events);
14009
14060
  for (var p = 0; p < this.events[mmdd].length; p++) {
14010
14061
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
14011
- this.events[mmdd][p].approved = true;
14012
- // this.events[mmdd][p].documents = docs
14013
- this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
14062
+ this.events[mmdd][p].documents = docs;
14063
+ this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
14014
14064
  this.events[mmdd][p].lastupdated = new Date().toString();
14015
14065
  }
14016
14066
  }
14017
14067
  }
14068
+ if (makercheckers.length > 0) {
14069
+ // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
14070
+ if (this.mode == "next") {
14071
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
14072
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
14073
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = true;
14074
+ // this.events[mmdd][p].documents = docs
14075
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
14076
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString();
14077
+ }
14078
+ }
14079
+ }
14080
+ else {
14081
+ for (var p = 0; p < this.events[mmdd].length; p++) {
14082
+ if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
14083
+ this.events[mmdd][p].approved = true;
14084
+ // this.events[mmdd][p].documents = docs
14085
+ this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
14086
+ this.events[mmdd][p].lastupdated = new Date().toString();
14087
+ }
14088
+ }
14089
+ }
14090
+ }
14018
14091
  if (this.recentlyReported[mmdd] == null) {
14019
14092
  this.recentlyReported[mmdd] = [];
14020
14093
  }
@@ -23160,7 +23233,6 @@ let SfIEvents = class SfIEvents extends LitElement {
23160
23233
  else {
23161
23234
  this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next').addEventListener('click', () => {
23162
23235
  this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next').style.display = 'none';
23163
- this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#next-tooltip').style.display = 'none';
23164
23236
  this._SfIEventsC.querySelector('#next-calendar-data').classList.add('flex-col');
23165
23237
  this.renderRoleTabsNext(0);
23166
23238
  });
@@ -23280,7 +23352,7 @@ let SfIEvents = class SfIEvents extends LitElement {
23280
23352
  eventHtml += '<div class="stream-events-container flex-grow">';
23281
23353
  eventHtml += '<div class="hidden-tags hide">' + JSON.stringify(eventsData[role][mmdd][j]['tags']) + '</div>';
23282
23354
  eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
23283
- eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + (eventsData[role][mmdd][j].isbulk ? ('<div class="lds-dual-ring1 bulk-loader mr-10"></div>') : ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />')) + '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>&nbsp;&nbsp;' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div>&nbsp;&nbsp;<div part="upcoming-function">' + functionStr + '</div>&nbsp;&nbsp;' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i);
23355
+ eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + (eventsData[role][mmdd][j].isbulk ? ('<div class="lds-dual-ring1 bulk-loader mr-10"></div>') : ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />')) + (eventsData[role][mmdd][j].isbulk ? '' : ('<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>')) + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>&nbsp;&nbsp;' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div>&nbsp;&nbsp;<div part="upcoming-function">' + functionStr + '</div>&nbsp;&nbsp;' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i);
23284
23356
  console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
23285
23357
  if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
23286
23358
  eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>';
@@ -24390,8 +24462,7 @@ let SfIEvents = class SfIEvents extends LitElement {
24390
24462
  <div class="d-flex mb-20" id="status-tab-container" part="status-tab-container">
24391
24463
  </div>
24392
24464
  <div id="next-calendar-data" class="calendar-right-data d-flex w-100">
24393
- <button id="button-load-next" part="button-icon" class="material-icons button-icon align-self-start ml-5"><span class="material-symbols-outlined">keyboard_arrow_down</span></button>
24394
- <div part="next-tooltip" id="next-tooltip" class="align-center d-flex pl-10">Click to view compliances</div>
24465
+ <button id="button-load-next" part="button-icon" class="d-flex align-center button-icon align-self-start ml-5">View Obligations<span class="material-symbols-outlined">keyboard_arrow_down</span></button>
24395
24466
  </div>
24396
24467
  <div id="detail-container" class="hide" part="detail-container">
24397
24468
  </div>
@@ -6202,17 +6202,17 @@ export class SfIEvents extends LitElement {
6202
6202
  let approvercomments = (listReportingContainer.querySelector('#input-approver-comments') as HTMLInputElement)?.value ?? "";
6203
6203
  let reportercomments = (listReportingContainer.querySelector('#input-reporter-comments') as HTMLInputElement)?.value ?? "";
6204
6204
  let dateOfCompletion;
6205
- if((listReportingContainer.querySelector('#input-reporter-doc') as HTMLInputElement) != null) {
6205
+ if ((listReportingContainer.querySelector('#input-reporter-doc') as HTMLInputElement) != null) {
6206
6206
  dateOfCompletion = new Date((listReportingContainer.querySelector('#input-reporter-doc') as HTMLInputElement).value).getTime() + "";
6207
6207
  } else {
6208
6208
  dateOfCompletion = new Date((listReportingContainer.querySelector('#input-approver-doc') as HTMLInputElement).value).getTime() + "";
6209
6209
  }
6210
6210
  let documents = (this._SfUploader[0].querySelector('#uploader') as SfIUploader).selectedValues()
6211
- if(dateOfCompletion == "NaN") {
6211
+ if (dateOfCompletion == "NaN") {
6212
6212
  dateOfCompletion = "";
6213
6213
  }
6214
6214
  console.log('dateOfCompletion', dateOfCompletion)
6215
- await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage,selectReportedLocation, documents, dateOfCompletion);
6215
+ await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage, selectReportedLocation, documents, dateOfCompletion);
6216
6216
  })
6217
6217
  if (this.mode == "consumer" || this.mode == "next") {
6218
6218
  let inputReportingPercentage = listReportingContainer.querySelector('#input-reporter-percentage') as HTMLInputElement;
@@ -6609,7 +6609,6 @@ export class SfIEvents extends LitElement {
6609
6609
 
6610
6610
  if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "compliance", percentage, event.makercheckers, reportedlocations)) {
6611
6611
 
6612
- console.log('this.events', this.events);
6613
6612
  if (this.mode != "next") {
6614
6613
  for (var p = 0; p < this.events[mmdd].length; p++) {
6615
6614
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
@@ -6636,6 +6635,32 @@ export class SfIEvents extends LitElement {
6636
6635
  }
6637
6636
  this.recentlyReported[mmdd].push(event)
6638
6637
  console.log('recently reported', this.recentlyReported)
6638
+ } else {
6639
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
6640
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == event.locationid && this.nextEvents[this.nextTabRole][mmdd][p].entityid == event.entityid) {
6641
+ this.nextEvents[this.nextTabRole][mmdd][p].documents = docs
6642
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() })
6643
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString()
6644
+ }
6645
+ }
6646
+
6647
+ if (event.makercheckers.length > 0) {
6648
+
6649
+ // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
6650
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
6651
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == event.locationid && this.nextEvents[this.nextTabRole][mmdd][p].entityid == event.entityid) {
6652
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = true
6653
+ // this.events[mmdd][p].documents = docs
6654
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() })
6655
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString()
6656
+ }
6657
+ }
6658
+ }
6659
+ if (this.recentlyReported[mmdd] == null) {
6660
+ this.recentlyReported[mmdd] = []
6661
+ }
6662
+ this.recentlyReported[mmdd].push(event)
6663
+ console.log('recently reported', this.recentlyReported)
6639
6664
  }
6640
6665
  }
6641
6666
  } else {
@@ -16937,7 +16962,7 @@ export class SfIEvents extends LitElement {
16937
16962
  }
16938
16963
  }
16939
16964
 
16940
- fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation:string | null = null, documents: any | null = null, dateOfCompletion: string | null = null) => {
16965
+ fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation: string | null = null, documents: any | null = null, dateOfCompletion: string | null = null) => {
16941
16966
  console.log('listEvent', listEvent, listEvent.id)
16942
16967
  let url = "https://" + this.apiId + "/getalleventdetails";
16943
16968
 
@@ -16964,12 +16989,12 @@ export class SfIEvents extends LitElement {
16964
16989
  }
16965
16990
  }
16966
16991
  let data = jsonRespose.data;
16967
- if( reportercomments != null) {
16992
+ if (reportercomments != null) {
16968
16993
  data.reportercomments = reportercomments;
16969
- }else if(approvercomments != null) {
16994
+ } else if (approvercomments != null) {
16970
16995
  data.approvercomments = approvercomments;
16971
16996
  }
16972
- if(inputReportingPercentage != null) {
16997
+ if (inputReportingPercentage != null) {
16973
16998
  data.percentage = inputReportingPercentage;
16974
16999
  }
16975
17000
  console.log('dateOfCompletion', dateOfCompletion, dateOfCompletion == null, dateOfCompletion == "");
@@ -17076,9 +17101,9 @@ export class SfIEvents extends LitElement {
17076
17101
  html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
17077
17102
  let obligationArr = event['obligation'].split('More information:');
17078
17103
  html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\n/g, '<br />') + '</h3></div>');
17079
- if(obligationArr.length > 1) {
17104
+ if (obligationArr.length > 1) {
17080
17105
  let tempObligationArr = obligationArr.slice(1);
17081
- html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
17106
+ html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
17082
17107
  }
17083
17108
  html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
17084
17109
  html += '</div>';
@@ -17893,11 +17918,21 @@ export class SfIEvents extends LitElement {
17893
17918
  if (this.selectedItemIds.length <= 1) {
17894
17919
 
17895
17920
  if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.module ?? "compliance")) {
17896
- for (var p = 0; p < this.events[mmdd].length; p++) {
17897
- if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17898
- this.events[mmdd][p].approved = approved
17899
- this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() })
17900
- this.events[mmdd][p].lastupdated = new Date().toString()
17921
+ if (this.mode == "next") {
17922
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
17923
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
17924
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = approved
17925
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() })
17926
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString()
17927
+ }
17928
+ }
17929
+ } else {
17930
+ for (var p = 0; p < this.events[mmdd].length; p++) {
17931
+ if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17932
+ this.events[mmdd][p].approved = approved
17933
+ this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() })
17934
+ this.events[mmdd][p].lastupdated = new Date().toString()
17935
+ }
17901
17936
  }
17902
17937
  }
17903
17938
  if (this.recentlyReported[mmdd] == null) {
@@ -17947,15 +17982,29 @@ export class SfIEvents extends LitElement {
17947
17982
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
17948
17983
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
17949
17984
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
17950
- for (var p = 0; p < this.events[mmdd].length; p++) {
17951
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17985
+ if (this.mode == "next") {
17986
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
17987
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == eventId && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
17952
17988
 
17953
- this.events[mmdd][p].isbulk = true
17954
- flagBulk = true;
17955
- if (this.recentlyReported[mmdd] == null) {
17956
- this.recentlyReported[mmdd] = []
17989
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
17990
+ flagBulk = true;
17991
+ if (this.recentlyReported[mmdd] == null) {
17992
+ this.recentlyReported[mmdd] = []
17993
+ }
17994
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
17995
+ }
17996
+ }
17997
+ } else {
17998
+ for (var p = 0; p < this.events[mmdd].length; p++) {
17999
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18000
+
18001
+ this.events[mmdd][p].isbulk = true
18002
+ flagBulk = true;
18003
+ if (this.recentlyReported[mmdd] == null) {
18004
+ this.recentlyReported[mmdd] = []
18005
+ }
18006
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
17957
18007
  }
17958
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
17959
18008
  }
17960
18009
  }
17961
18010
  }
@@ -17969,7 +18018,8 @@ export class SfIEvents extends LitElement {
17969
18018
  });
17970
18019
  ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
17971
18020
  if (this.mode == "next") {
17972
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
18021
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
18022
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
17973
18023
  } else {
17974
18024
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
17975
18025
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -18104,23 +18154,44 @@ export class SfIEvents extends LitElement {
18104
18154
  // console.log('reportformatvalues', reportformatvalues)
18105
18155
  // console.log('reportformatschema',reportformatschema)
18106
18156
  if (await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "compliance", percentage, makercheckers, reportinglocation)) {
18107
- console.log('this.events', this.events);
18108
- for (var p = 0; p < this.events[mmdd].length; p++) {
18109
- if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18110
- this.events[mmdd][p].documents = docs
18111
- this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() })
18112
- this.events[mmdd][p].lastupdated = new Date().toString()
18157
+ if (this.mode == "next") {
18158
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
18159
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
18160
+ this.nextEvents[this.nextTabRole][mmdd][p].documents = docs
18161
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() })
18162
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString()
18163
+ }
18164
+ }
18165
+ } else {
18166
+ console.log('this.events', this.events);
18167
+ for (var p = 0; p < this.events[mmdd].length; p++) {
18168
+ if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18169
+ this.events[mmdd][p].documents = docs
18170
+ this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() })
18171
+ this.events[mmdd][p].lastupdated = new Date().toString()
18172
+ }
18113
18173
  }
18114
18174
  }
18115
18175
  if (makercheckers.length > 0) {
18116
18176
 
18117
18177
  // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
18118
- for (var p = 0; p < this.events[mmdd].length; p++) {
18119
- if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18120
- this.events[mmdd][p].approved = true
18121
- // this.events[mmdd][p].documents = docs
18122
- this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() })
18123
- this.events[mmdd][p].lastupdated = new Date().toString()
18178
+ if (this.mode == "next") {
18179
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
18180
+ if (this.nextEvents[this.nextTabRole][mmdd][p].id == event.id && this.nextEvents[this.nextTabRole][mmdd][p].locationid == locationId && this.nextEvents[this.nextTabRole][mmdd][p].entityid == entityId) {
18181
+ this.nextEvents[this.nextTabRole][mmdd][p].approved = true
18182
+ // this.events[mmdd][p].documents = docs
18183
+ this.nextEvents[this.nextTabRole][mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() })
18184
+ this.nextEvents[this.nextTabRole][mmdd][p].lastupdated = new Date().toString()
18185
+ }
18186
+ }
18187
+ } else {
18188
+ for (var p = 0; p < this.events[mmdd].length; p++) {
18189
+ if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18190
+ this.events[mmdd][p].approved = true
18191
+ // this.events[mmdd][p].documents = docs
18192
+ this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() })
18193
+ this.events[mmdd][p].lastupdated = new Date().toString()
18194
+ }
18124
18195
  }
18125
18196
  }
18126
18197
  }
@@ -29574,7 +29645,6 @@ export class SfIEvents extends LitElement {
29574
29645
  } else {
29575
29646
  (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next') as HTMLButtonElement).addEventListener('click', () => {
29576
29647
  (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next') as HTMLButtonElement).style.display = 'none';
29577
- (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#next-tooltip') as HTMLButtonElement).style.display = 'none';
29578
29648
  (this._SfIEventsC.querySelector('#next-calendar-data') as HTMLDivElement).classList.add('flex-col');
29579
29649
  this.renderRoleTabsNext(0)
29580
29650
  })
@@ -29721,7 +29791,7 @@ export class SfIEvents extends LitElement {
29721
29791
  eventHtml += '<div class="stream-events-container flex-grow">';
29722
29792
  eventHtml += '<div class="hidden-tags hide">' + JSON.stringify(eventsData[role][mmdd][j]['tags']) + '</div>'
29723
29793
  eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
29724
- eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + (eventsData[role][mmdd][j].isbulk ? ('<div class="lds-dual-ring1 bulk-loader mr-10"></div>') : ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />')) + '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>&nbsp;&nbsp;' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div>&nbsp;&nbsp;<div part="upcoming-function">' + functionStr + '</div>&nbsp;&nbsp;' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i)
29794
+ eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + (eventsData[role][mmdd][j].isbulk ? ('<div class="lds-dual-ring1 bulk-loader mr-10"></div>') : ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />')) + (eventsData[role][mmdd][j].isbulk ? '' : ('<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>')) + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>&nbsp;&nbsp;' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div>&nbsp;&nbsp;<div part="upcoming-function">' + functionStr + '</div>&nbsp;&nbsp;' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i)
29725
29795
 
29726
29796
  console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
29727
29797
  if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
@@ -30896,8 +30966,7 @@ export class SfIEvents extends LitElement {
30896
30966
  <div class="d-flex mb-20" id="status-tab-container" part="status-tab-container">
30897
30967
  </div>
30898
30968
  <div id="next-calendar-data" class="calendar-right-data d-flex w-100">
30899
- <button id="button-load-next" part="button-icon" class="material-icons button-icon align-self-start ml-5"><span class="material-symbols-outlined">keyboard_arrow_down</span></button>
30900
- <div part="next-tooltip" id="next-tooltip" class="align-center d-flex pl-10">Click to view compliances</div>
30969
+ <button id="button-load-next" part="button-icon" class="d-flex align-center button-icon align-self-start ml-5">View Obligations<span class="material-symbols-outlined">keyboard_arrow_down</span></button>
30901
30970
  </div>
30902
30971
  <div id="detail-container" class="hide" part="detail-container">
30903
30972
  </div>