sf-i-events 1.0.898 → 1.0.900

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.898",
4
+ "version": "1.0.900",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -197,6 +197,7 @@ export declare class SfIEvents extends LitElement {
197
197
  triggers: any;
198
198
  monthNames: string[];
199
199
  events: any;
200
+ nextEvents: any;
200
201
  notices: any;
201
202
  statistics: any;
202
203
  statisticsMeta: any;
package/sf-i-events.js CHANGED
@@ -1136,6 +1136,7 @@ let SfIEvents = class SfIEvents extends LitElement {
1136
1136
  this.triggers = null;
1137
1137
  this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
1138
1138
  this.events = null;
1139
+ this.nextEvents = null;
1139
1140
  this.notices = null;
1140
1141
  this.statistics = null;
1141
1142
  this.statisticsMeta = null;
@@ -3898,21 +3899,36 @@ let SfIEvents = class SfIEvents extends LitElement {
3898
3899
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
3899
3900
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
3900
3901
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
3901
- for (var p = 0; p < this.events[mmdd].length; p++) {
3902
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationid && this.events[mmdd][p].entityid == entityid) {
3903
- this.events[mmdd][p].isbulk = true;
3904
- flagBulk = true;
3905
- if (this.recentlyReported[mmdd] == null) {
3906
- this.recentlyReported[mmdd] = [];
3902
+ if (this.mode == "next") {
3903
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
3904
+ 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) {
3905
+ flagBulk = true;
3906
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
3907
+ if (this.recentlyReported[mmdd] == null) {
3908
+ this.recentlyReported[mmdd] = [];
3909
+ }
3910
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p]);
3911
+ }
3912
+ }
3913
+ }
3914
+ else {
3915
+ for (var p = 0; p < this.events[mmdd].length; p++) {
3916
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationid && this.events[mmdd][p].entityid == entityid) {
3917
+ this.events[mmdd][p].isbulk = true;
3918
+ flagBulk = true;
3919
+ if (this.recentlyReported[mmdd] == null) {
3920
+ this.recentlyReported[mmdd] = [];
3921
+ }
3922
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
3907
3923
  }
3908
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
3909
3924
  }
3910
3925
  }
3911
3926
  }
3912
3927
  }
3913
3928
  if (this.mode == "next") {
3914
3929
  // this.fetchNext(this.nextPage)
3915
- this.renderRoleTabsNext(this.nextPage);
3930
+ // this.renderRoleTabsNext(this.nextPage)
3931
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
3916
3932
  }
3917
3933
  else {
3918
3934
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -4000,20 +4016,35 @@ let SfIEvents = class SfIEvents extends LitElement {
4000
4016
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
4001
4017
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
4002
4018
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
4003
- for (var p = 0; p < this.events[mmdd].length; p++) {
4004
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
4005
- this.events[mmdd][p].isbulk = true;
4006
- flagBulk = true;
4007
- if (this.recentlyReported[mmdd] == null) {
4008
- this.recentlyReported[mmdd] = [];
4019
+ if (this.mode == "next") {
4020
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
4021
+ 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) {
4022
+ flagBulk = true;
4023
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
4024
+ if (this.recentlyReported[mmdd] == null) {
4025
+ this.recentlyReported[mmdd] = [];
4026
+ }
4027
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p]);
4028
+ }
4029
+ }
4030
+ }
4031
+ else {
4032
+ for (var p = 0; p < this.events[mmdd].length; p++) {
4033
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
4034
+ this.events[mmdd][p].isbulk = true;
4035
+ flagBulk = true;
4036
+ if (this.recentlyReported[mmdd] == null) {
4037
+ this.recentlyReported[mmdd] = [];
4038
+ }
4039
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
4009
4040
  }
4010
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
4011
4041
  }
4012
4042
  }
4013
4043
  }
4014
4044
  }
4015
4045
  if (this.mode == "next") {
4016
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
4046
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
4047
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
4017
4048
  }
4018
4049
  else {
4019
4050
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -4222,20 +4253,35 @@ let SfIEvents = class SfIEvents extends LitElement {
4222
4253
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
4223
4254
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
4224
4255
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
4225
- for (var p = 0; p < this.events[mmdd].length; p++) {
4226
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
4227
- flagBulk = true;
4228
- this.events[mmdd][p].isbulk = true;
4229
- if (this.recentlyReported[mmdd] == null) {
4230
- this.recentlyReported[mmdd] = [];
4256
+ if (this.mode == "next") {
4257
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
4258
+ 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) {
4259
+ flagBulk = true;
4260
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
4261
+ if (this.recentlyReported[mmdd] == null) {
4262
+ this.recentlyReported[mmdd] = [];
4263
+ }
4264
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p]);
4265
+ }
4266
+ }
4267
+ }
4268
+ else {
4269
+ for (var p = 0; p < this.events[mmdd].length; p++) {
4270
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
4271
+ flagBulk = true;
4272
+ this.events[mmdd][p].isbulk = true;
4273
+ if (this.recentlyReported[mmdd] == null) {
4274
+ this.recentlyReported[mmdd] = [];
4275
+ }
4276
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
4231
4277
  }
4232
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
4233
4278
  }
4234
4279
  }
4235
4280
  }
4236
4281
  }
4237
4282
  if (this.mode == "next") {
4238
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
4283
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
4284
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
4239
4285
  }
4240
4286
  else {
4241
4287
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -13524,21 +13570,36 @@ let SfIEvents = class SfIEvents extends LitElement {
13524
13570
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
13525
13571
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13526
13572
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
13527
- for (var p = 0; p < this.events[mmdd].length; p++) {
13528
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13529
- this.events[mmdd][p].isbulk = true;
13530
- flagBulk = true;
13531
- if (this.recentlyReported[mmdd] == null) {
13532
- this.recentlyReported[mmdd] = [];
13573
+ if (this.mode == "next") {
13574
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
13575
+ 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) {
13576
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
13577
+ flagBulk = true;
13578
+ if (this.recentlyReported[mmdd] == null) {
13579
+ this.recentlyReported[mmdd] = [];
13580
+ }
13581
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p]);
13582
+ }
13583
+ }
13584
+ }
13585
+ else {
13586
+ for (var p = 0; p < this.events[mmdd].length; p++) {
13587
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13588
+ this.events[mmdd][p].isbulk = true;
13589
+ flagBulk = true;
13590
+ if (this.recentlyReported[mmdd] == null) {
13591
+ this.recentlyReported[mmdd] = [];
13592
+ }
13593
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13533
13594
  }
13534
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13535
13595
  }
13536
13596
  }
13537
13597
  }
13538
13598
  }
13539
13599
  if (this.mode == "next") {
13540
13600
  // this.fetchNext(this.nextPage)
13541
- this.renderRoleTabsNext(this.nextPage);
13601
+ // this.renderRoleTabsNext(this.nextPage)
13602
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.myRole);
13542
13603
  }
13543
13604
  else {
13544
13605
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -13896,20 +13957,35 @@ let SfIEvents = class SfIEvents extends LitElement {
13896
13957
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
13897
13958
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
13898
13959
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
13899
- for (var p = 0; p < this.events[mmdd].length; p++) {
13900
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13901
- this.events[mmdd][p].isbulk = true;
13902
- flagBulk = true;
13903
- if (this.recentlyReported[mmdd] == null) {
13904
- this.recentlyReported[mmdd] = [];
13960
+ if (this.mode == "next") {
13961
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
13962
+ 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) {
13963
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true;
13964
+ flagBulk = true;
13965
+ if (this.recentlyReported[mmdd] == null) {
13966
+ this.recentlyReported[mmdd] = [];
13967
+ }
13968
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p]);
13969
+ }
13970
+ }
13971
+ }
13972
+ else {
13973
+ for (var p = 0; p < this.events[mmdd].length; p++) {
13974
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13975
+ this.events[mmdd][p].isbulk = true;
13976
+ flagBulk = true;
13977
+ if (this.recentlyReported[mmdd] == null) {
13978
+ this.recentlyReported[mmdd] = [];
13979
+ }
13980
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13905
13981
  }
13906
- this.recentlyReported[mmdd].push(this.events[mmdd][p]);
13907
13982
  }
13908
13983
  }
13909
13984
  }
13910
13985
  }
13911
13986
  if (this.mode == "next") {
13912
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
13987
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
13988
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
13913
13989
  }
13914
13990
  else {
13915
13991
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
@@ -22285,13 +22361,27 @@ let SfIEvents = class SfIEvents extends LitElement {
22285
22361
  let locationid = sortidArr[2];
22286
22362
  let eventid = sortidArr[3];
22287
22363
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
22288
- console.log('mmdd', mmdd, Object.keys(this.events));
22289
- if (this.events[mmdd] != null) {
22290
- for (let i = 0; i < this.events[mmdd].length; i++) {
22291
- if (this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid) {
22292
- this.events[mmdd][i].isbulk = true;
22293
- flagBulk = true;
22294
- break;
22364
+ if (this.mode == "next") {
22365
+ console.log('mmdd', mmdd, Object.keys(this.nextEvents[this.nextTabRole]));
22366
+ if (this.nextEvents[this.nextTabRole][mmdd] != null) {
22367
+ for (let i = 0; i < this.nextEvents[this.nextTabRole][mmdd].length; i++) {
22368
+ if (this.nextEvents[this.nextTabRole][mmdd][i].entityid == entityid && this.nextEvents[this.nextTabRole][mmdd][i].locationid == locationid && this.nextEvents[this.nextTabRole][mmdd][i].id == eventid) {
22369
+ this.nextEvents[this.nextTabRole][mmdd][i].isbulk = true;
22370
+ flagBulk = true;
22371
+ break;
22372
+ }
22373
+ }
22374
+ }
22375
+ }
22376
+ else {
22377
+ console.log('mmdd', mmdd, Object.keys(this.events));
22378
+ if (this.events[mmdd] != null) {
22379
+ for (let i = 0; i < this.events[mmdd].length; i++) {
22380
+ if (this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid) {
22381
+ this.events[mmdd][i].isbulk = true;
22382
+ flagBulk = true;
22383
+ break;
22384
+ }
22295
22385
  }
22296
22386
  }
22297
22387
  }
@@ -22312,7 +22402,12 @@ let SfIEvents = class SfIEvents extends LitElement {
22312
22402
  // let bulkLoader = (this._SfIEventsC as HTMLDivElement).querySelector('.bulk-loader') as HTMLDivElement
22313
22403
  // bulkLoader.scrollIntoView();
22314
22404
  // })
22315
- this.renderAppropriateStream(this.sdate, this.edate, true, true);
22405
+ if (this.mode == "next") {
22406
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole);
22407
+ }
22408
+ else {
22409
+ this.renderAppropriateStream(this.sdate, this.edate, true, true);
22410
+ }
22316
22411
  }
22317
22412
  else {
22318
22413
  // backgroundProcessButton.classList.add('hide')
@@ -22780,7 +22875,9 @@ let SfIEvents = class SfIEvents extends LitElement {
22780
22875
  console.log('next response', jsonRespose);
22781
22876
  // this.renderChosenProject(events);
22782
22877
  // this.renderRoleTabsNext(jsonRespose.data, page)
22783
- this.renderNextEvents(jsonRespose.data, page, role);
22878
+ this.nextEvents = jsonRespose.data;
22879
+ this.renderNextEvents(this.nextEvents, page, role);
22880
+ this.fetchBulkReportingData();
22784
22881
  }
22785
22882
  else {
22786
22883
  if (xhr.status == 401) {
@@ -22874,6 +22971,7 @@ let SfIEvents = class SfIEvents extends LitElement {
22874
22971
  this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next').addEventListener('click', () => {
22875
22972
  this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next').style.display = 'none';
22876
22973
  this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#next-tooltip').style.display = 'none';
22974
+ this._SfIEventsC.querySelector('#next-calendar-data').classList.add('flex-col');
22877
22975
  this.renderRoleTabsNext(0);
22878
22976
  });
22879
22977
  let changeEvent = new CustomEvent('valueChanged', { bubbles: true });
@@ -22992,10 +23090,13 @@ let SfIEvents = class SfIEvents extends LitElement {
22992
23090
  eventHtml += '<div class="stream-events-container flex-grow">';
22993
23091
  eventHtml += '<div class="hidden-tags hide">' + JSON.stringify(eventsData[role][mmdd][j]['tags']) + '</div>';
22994
23092
  eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
22995
- eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<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);
22996
- eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>';
22997
- eventHtml += '</div>';
22998
- eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
23093
+ 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);
23094
+ console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
23095
+ if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
23096
+ eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>';
23097
+ eventHtml += '</div>';
23098
+ eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
23099
+ }
22999
23100
  eventHtml += '</div>';
23000
23101
  html += eventHtml;
23001
23102
  }
@@ -25519,6 +25620,9 @@ __decorate([
25519
25620
  __decorate([
25520
25621
  property()
25521
25622
  ], SfIEvents.prototype, "events", void 0);
25623
+ __decorate([
25624
+ property()
25625
+ ], SfIEvents.prototype, "nextEvents", void 0);
25522
25626
  __decorate([
25523
25627
  property()
25524
25628
  ], SfIEvents.prototype, "notices", void 0);
@@ -1387,6 +1387,9 @@ export class SfIEvents extends LitElement {
1387
1387
  @property()
1388
1388
  events: any = null;
1389
1389
 
1390
+ @property()
1391
+ nextEvents: any = null;
1392
+
1390
1393
  @property()
1391
1394
  notices: any = null;
1392
1395
 
@@ -6255,15 +6258,28 @@ export class SfIEvents extends LitElement {
6255
6258
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
6256
6259
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
6257
6260
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
6258
- for (var p = 0; p < this.events[mmdd].length; p++) {
6259
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationid && this.events[mmdd][p].entityid == entityid) {
6261
+ if (this.mode == "next") {
6262
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
6263
+ 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) {
6264
+ flagBulk = true;
6265
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
6266
+ if (this.recentlyReported[mmdd] == null) {
6267
+ this.recentlyReported[mmdd] = []
6268
+ }
6269
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p])
6270
+ }
6271
+ }
6272
+ } else {
6273
+ for (var p = 0; p < this.events[mmdd].length; p++) {
6274
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationid && this.events[mmdd][p].entityid == entityid) {
6260
6275
 
6261
- this.events[mmdd][p].isbulk = true
6262
- flagBulk = true
6263
- if (this.recentlyReported[mmdd] == null) {
6264
- this.recentlyReported[mmdd] = []
6276
+ this.events[mmdd][p].isbulk = true
6277
+ flagBulk = true
6278
+ if (this.recentlyReported[mmdd] == null) {
6279
+ this.recentlyReported[mmdd] = []
6280
+ }
6281
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
6265
6282
  }
6266
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
6267
6283
  }
6268
6284
  }
6269
6285
  }
@@ -6271,7 +6287,8 @@ export class SfIEvents extends LitElement {
6271
6287
 
6272
6288
  if (this.mode == "next") {
6273
6289
  // this.fetchNext(this.nextPage)
6274
- this.renderRoleTabsNext(this.nextPage)
6290
+ // this.renderRoleTabsNext(this.nextPage)
6291
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
6275
6292
  } else {
6276
6293
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
6277
6294
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -6364,21 +6381,35 @@ export class SfIEvents extends LitElement {
6364
6381
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
6365
6382
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
6366
6383
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
6367
- for (var p = 0; p < this.events[mmdd].length; p++) {
6368
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
6384
+ if (this.mode == "next") {
6385
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
6386
+ 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) {
6387
+ flagBulk = true;
6388
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
6389
+ if (this.recentlyReported[mmdd] == null) {
6390
+ this.recentlyReported[mmdd] = []
6391
+ }
6392
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p])
6393
+ }
6394
+ }
6395
+ } else {
6396
+ for (var p = 0; p < this.events[mmdd].length; p++) {
6397
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
6369
6398
 
6370
- this.events[mmdd][p].isbulk = true
6371
- flagBulk = true;
6372
- if (this.recentlyReported[mmdd] == null) {
6373
- this.recentlyReported[mmdd] = []
6399
+ this.events[mmdd][p].isbulk = true
6400
+ flagBulk = true;
6401
+ if (this.recentlyReported[mmdd] == null) {
6402
+ this.recentlyReported[mmdd] = []
6403
+ }
6404
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
6374
6405
  }
6375
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
6376
6406
  }
6377
6407
  }
6378
6408
  }
6379
6409
  }
6380
6410
  if (this.mode == "next") {
6381
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
6411
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
6412
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
6382
6413
  } else {
6383
6414
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
6384
6415
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -6620,21 +6651,35 @@ export class SfIEvents extends LitElement {
6620
6651
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
6621
6652
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
6622
6653
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
6623
- for (var p = 0; p < this.events[mmdd].length; p++) {
6624
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
6625
- flagBulk = true;
6626
- this.events[mmdd][p].isbulk = true
6627
- if (this.recentlyReported[mmdd] == null) {
6628
- this.recentlyReported[mmdd] = []
6654
+ if (this.mode == "next") {
6655
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
6656
+ 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) {
6657
+ flagBulk = true;
6658
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
6659
+ if (this.recentlyReported[mmdd] == null) {
6660
+ this.recentlyReported[mmdd] = []
6661
+ }
6662
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p])
6663
+ }
6664
+ }
6665
+ } else {
6666
+ for (var p = 0; p < this.events[mmdd].length; p++) {
6667
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
6668
+ flagBulk = true;
6669
+ this.events[mmdd][p].isbulk = true
6670
+ if (this.recentlyReported[mmdd] == null) {
6671
+ this.recentlyReported[mmdd] = []
6672
+ }
6673
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
6629
6674
  }
6630
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
6631
6675
  }
6632
6676
  }
6633
6677
  }
6634
6678
  }
6635
6679
 
6636
6680
  if (this.mode == "next") {
6637
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
6681
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
6682
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
6638
6683
  } else {
6639
6684
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
6640
6685
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -17053,10 +17098,10 @@ export class SfIEvents extends LitElement {
17053
17098
  html += '<div class="m-20">';
17054
17099
  html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>'
17055
17100
  for (let attachmentStr of event[complianceFields[i]]) {
17056
- let attachment:any = {};
17057
- if(typeof attachmentStr === "object"){
17101
+ let attachment: any = {};
17102
+ if (typeof attachmentStr === "object") {
17058
17103
  attachment = attachmentStr;
17059
- }else{
17104
+ } else {
17060
17105
  attachment = JSON.parse(attachmentStr + "");
17061
17106
  }
17062
17107
  html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '&quot;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
@@ -17599,15 +17644,29 @@ export class SfIEvents extends LitElement {
17599
17644
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
17600
17645
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
17601
17646
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
17602
- for (var p = 0; p < this.events[mmdd].length; p++) {
17603
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17647
+ if (this.mode == "next") {
17648
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
17649
+ 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) {
17604
17650
 
17605
- this.events[mmdd][p].isbulk = true
17606
- flagBulk = true;
17607
- if (this.recentlyReported[mmdd] == null) {
17608
- this.recentlyReported[mmdd] = []
17651
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
17652
+ flagBulk = true;
17653
+ if (this.recentlyReported[mmdd] == null) {
17654
+ this.recentlyReported[mmdd] = []
17655
+ }
17656
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p])
17657
+ }
17658
+ }
17659
+ } else {
17660
+ for (var p = 0; p < this.events[mmdd].length; p++) {
17661
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17662
+
17663
+ this.events[mmdd][p].isbulk = true
17664
+ flagBulk = true;
17665
+ if (this.recentlyReported[mmdd] == null) {
17666
+ this.recentlyReported[mmdd] = []
17667
+ }
17668
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
17609
17669
  }
17610
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
17611
17670
  }
17612
17671
  }
17613
17672
  }
@@ -17615,7 +17674,8 @@ export class SfIEvents extends LitElement {
17615
17674
 
17616
17675
  if (this.mode == "next") {
17617
17676
  // this.fetchNext(this.nextPage)
17618
- this.renderRoleTabsNext(this.nextPage)
17677
+ // this.renderRoleTabsNext(this.nextPage)
17678
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.myRole);
17619
17679
  } else {
17620
17680
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
17621
17681
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -18015,15 +18075,29 @@ export class SfIEvents extends LitElement {
18015
18075
  const eventId = selectedId.split('-')[9].replace(/_/g, '-');
18016
18076
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
18017
18077
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
18018
- for (var p = 0; p < this.events[mmdd].length; p++) {
18019
- if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18078
+ if (this.mode == "next") {
18079
+ for (var p = 0; p < this.nextEvents[this.nextTabRole][mmdd].length; p++) {
18080
+ 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) {
18081
+
18082
+ this.nextEvents[this.nextTabRole][mmdd][p].isbulk = true
18083
+ flagBulk = true;
18084
+ if (this.recentlyReported[mmdd] == null) {
18085
+ this.recentlyReported[mmdd] = []
18086
+ }
18087
+ this.recentlyReported[mmdd].push(this.nextEvents[this.nextTabRole][mmdd][p])
18088
+ }
18089
+ }
18090
+ } else {
18091
+ for (var p = 0; p < this.events[mmdd].length; p++) {
18092
+ if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
18020
18093
 
18021
- this.events[mmdd][p].isbulk = true
18022
- flagBulk = true;
18023
- if (this.recentlyReported[mmdd] == null) {
18024
- this.recentlyReported[mmdd] = []
18094
+ this.events[mmdd][p].isbulk = true
18095
+ flagBulk = true;
18096
+ if (this.recentlyReported[mmdd] == null) {
18097
+ this.recentlyReported[mmdd] = []
18098
+ }
18099
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
18025
18100
  }
18026
- this.recentlyReported[mmdd].push(this.events[mmdd][p])
18027
18101
  }
18028
18102
  }
18029
18103
  }
@@ -18031,7 +18105,8 @@ export class SfIEvents extends LitElement {
18031
18105
  }
18032
18106
 
18033
18107
  if (this.mode == "next") {
18034
- this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
18108
+ // this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
18109
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
18035
18110
  } else {
18036
18111
  // if(this.getCurrentTab() == this.TAB_CUSTOM) {
18037
18112
  // this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
@@ -28575,13 +28650,26 @@ export class SfIEvents extends LitElement {
28575
28650
  let locationid = sortidArr[2]
28576
28651
  let eventid = sortidArr[3]
28577
28652
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
28578
- console.log('mmdd', mmdd, Object.keys(this.events));
28579
- if (this.events[mmdd] != null) {
28580
- for (let i = 0; i < this.events[mmdd].length; i++) {
28581
- if (this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid) {
28582
- this.events[mmdd][i].isbulk = true;
28583
- flagBulk = true
28584
- break
28653
+ if (this.mode == "next") {
28654
+ console.log('mmdd', mmdd, Object.keys(this.nextEvents[this.nextTabRole]));
28655
+ if (this.nextEvents[this.nextTabRole][mmdd] != null) {
28656
+ for (let i = 0; i < this.nextEvents[this.nextTabRole][mmdd].length; i++) {
28657
+ if (this.nextEvents[this.nextTabRole][mmdd][i].entityid == entityid && this.nextEvents[this.nextTabRole][mmdd][i].locationid == locationid && this.nextEvents[this.nextTabRole][mmdd][i].id == eventid) {
28658
+ this.nextEvents[this.nextTabRole][mmdd][i].isbulk = true;
28659
+ flagBulk = true
28660
+ break
28661
+ }
28662
+ }
28663
+ }
28664
+ } else {
28665
+ console.log('mmdd', mmdd, Object.keys(this.events));
28666
+ if (this.events[mmdd] != null) {
28667
+ for (let i = 0; i < this.events[mmdd].length; i++) {
28668
+ if (this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid) {
28669
+ this.events[mmdd][i].isbulk = true;
28670
+ flagBulk = true
28671
+ break
28672
+ }
28585
28673
  }
28586
28674
  }
28587
28675
  }
@@ -28602,7 +28690,11 @@ export class SfIEvents extends LitElement {
28602
28690
  // let bulkLoader = (this._SfIEventsC as HTMLDivElement).querySelector('.bulk-loader') as HTMLDivElement
28603
28691
  // bulkLoader.scrollIntoView();
28604
28692
  // })
28605
- this.renderAppropriateStream(this.sdate, this.edate, true, true)
28693
+ if (this.mode == "next") {
28694
+ this.renderNextEvents(this.nextEvents, this.nextPage, this.nextTabRole)
28695
+ } else {
28696
+ this.renderAppropriateStream(this.sdate, this.edate, true, true)
28697
+ }
28606
28698
  } else {
28607
28699
  // backgroundProcessButton.classList.add('hide')
28608
28700
  // backgroundProcessButton.style.display = 'none'
@@ -29161,7 +29253,9 @@ export class SfIEvents extends LitElement {
29161
29253
  console.log('next response', jsonRespose)
29162
29254
  // this.renderChosenProject(events);
29163
29255
  // this.renderRoleTabsNext(jsonRespose.data, page)
29164
- this.renderNextEvents(jsonRespose.data, page, role);
29256
+ this.nextEvents = jsonRespose.data;
29257
+ this.renderNextEvents(this.nextEvents, page, role);
29258
+ this.fetchBulkReportingData();
29165
29259
  } else {
29166
29260
  if (xhr.status == 401) {
29167
29261
  let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
@@ -29282,6 +29376,7 @@ export class SfIEvents extends LitElement {
29282
29376
  (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next') as HTMLButtonElement).addEventListener('click', () => {
29283
29377
  (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#button-load-next') as HTMLButtonElement).style.display = 'none';
29284
29378
  (this._SfIEventsC.querySelector('#next-calendar-data').querySelector('#next-tooltip') as HTMLButtonElement).style.display = 'none';
29379
+ (this._SfIEventsC.querySelector('#next-calendar-data') as HTMLDivElement).classList.add('flex-col');
29285
29380
  this.renderRoleTabsNext(0)
29286
29381
  })
29287
29382
  let changeEvent = new CustomEvent('valueChanged', { bubbles: true });
@@ -29427,10 +29522,14 @@ export class SfIEvents extends LitElement {
29427
29522
  eventHtml += '<div class="stream-events-container flex-grow">';
29428
29523
  eventHtml += '<div class="hidden-tags hide">' + JSON.stringify(eventsData[role][mmdd][j]['tags']) + '</div>'
29429
29524
  eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
29430
- eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<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)
29431
- eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>'
29432
- eventHtml += '</div>';
29433
- eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>'
29525
+ 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)
29526
+
29527
+ console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
29528
+ if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
29529
+ eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>'
29530
+ eventHtml += '</div>';
29531
+ eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>'
29532
+ }
29434
29533
  eventHtml += '</div>';
29435
29534
  html += eventHtml
29436
29535