sf-i-events 1.0.799 → 1.0.800

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.799",
4
+ "version": "1.0.800",
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
@@ -283,6 +283,7 @@ export declare class SfIEvents extends LitElement {
283
283
  selectedRegisterIndex: number;
284
284
  selectallblock: string;
285
285
  graphFilter: string;
286
+ recentlyReported: any;
286
287
  static styles: import("lit").CSSResult;
287
288
  _SfIEventsC: any;
288
289
  _SfRowError: any;
package/sf-i-events.js CHANGED
@@ -1235,6 +1235,7 @@ let SfIEvents = class SfIEvents extends LitElement {
1235
1235
  this.selectedRegisterIndex = -1;
1236
1236
  this.selectallblock = "100";
1237
1237
  this.graphFilter = "";
1238
+ this.recentlyReported = {};
1238
1239
  this.isSelectedLegend = (value) => {
1239
1240
  return this.chartSelectedLegend.includes(value);
1240
1241
  };
@@ -3364,6 +3365,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3364
3365
  }
3365
3366
  }
3366
3367
  }
3368
+ if (this.recentlyReported[mmdd] == null) {
3369
+ this.recentlyReported[mmdd] = [];
3370
+ }
3371
+ this.recentlyReported[mmdd].push(event);
3367
3372
  }
3368
3373
  else {
3369
3374
  let bulkBodyReview = [];
@@ -3408,6 +3413,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3408
3413
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationid && this.events[mmdd][p].entityid == entityid) {
3409
3414
  this.events[mmdd][p].isbulk = true;
3410
3415
  flagBulk = true;
3416
+ if (this.recentlyReported[mmdd] == null) {
3417
+ this.recentlyReported[mmdd] = [];
3418
+ }
3419
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
3411
3420
  }
3412
3421
  }
3413
3422
  }
@@ -3459,6 +3468,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3459
3468
  }
3460
3469
  }
3461
3470
  }
3471
+ if (this.recentlyReported[mmdd] == null) {
3472
+ this.recentlyReported[mmdd] = [];
3473
+ }
3474
+ this.recentlyReported[mmdd].push(event);
3462
3475
  }
3463
3476
  else {
3464
3477
  let bulkBodyAudit = [];
@@ -3500,6 +3513,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3500
3513
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
3501
3514
  this.events[mmdd][p].isbulk = true;
3502
3515
  flagBulk = true;
3516
+ if (this.recentlyReported[mmdd] == null) {
3517
+ this.recentlyReported[mmdd] = [];
3518
+ }
3519
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
3503
3520
  }
3504
3521
  }
3505
3522
  }
@@ -3600,11 +3617,16 @@ let SfIEvents = class SfIEvents extends LitElement {
3600
3617
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
3601
3618
  this.events[mmdd][p].approved = true;
3602
3619
  // this.events[mmdd][p].documents = docs
3603
- this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
3620
+ this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
3604
3621
  this.events[mmdd][p].lastupdated = new Date().toString();
3605
3622
  }
3606
3623
  }
3607
3624
  }
3625
+ if (this.recentlyReported[mmdd] == null) {
3626
+ this.recentlyReported[mmdd] = [];
3627
+ }
3628
+ this.recentlyReported[mmdd].push(event);
3629
+ console.log('recently reported', this.recentlyReported);
3608
3630
  }
3609
3631
  else {
3610
3632
  let bulkBody = [];
@@ -3687,6 +3709,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3687
3709
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
3688
3710
  flagBulk = true;
3689
3711
  this.events[mmdd][p].isbulk = true;
3712
+ if (this.recentlyReported[mmdd] == null) {
3713
+ this.recentlyReported[mmdd] = [];
3714
+ }
3715
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
3690
3716
  }
3691
3717
  }
3692
3718
  }
@@ -7124,10 +7150,10 @@ let SfIEvents = class SfIEvents extends LitElement {
7124
7150
  this._SfCustomContainer.querySelector('#button-year-to-date').click();
7125
7151
  };
7126
7152
  this.renderThis = (index = 1, showGraph = true, showBackgroundButton) => {
7153
+ // this.clearGraphData();
7154
+ // this.clearSelectedGraphParam();
7155
+ // this.clearSelectedLegend();
7127
7156
  var _a, _b;
7128
- this.clearGraphData();
7129
- this.clearSelectedGraphParam();
7130
- this.clearSelectedLegend();
7131
7157
  this.streamIndex = index;
7132
7158
  var html = '';
7133
7159
  html += '<div class="scroll-x w-100 mobile-only">';
@@ -7601,9 +7627,9 @@ let SfIEvents = class SfIEvents extends LitElement {
7601
7627
  //console.log('flowgraph renderStream', this.flowGraph);
7602
7628
  var _a, _b;
7603
7629
  this.streamIndex = index;
7604
- this.clearGraphData();
7605
- this.clearSelectedGraphParam();
7606
- this.clearSelectedLegend();
7630
+ // this.clearGraphData();
7631
+ // this.clearSelectedGraphParam();
7632
+ // this.clearSelectedLegend();
7607
7633
  var startDate = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
7608
7634
  var html = '';
7609
7635
  html += '<div class="scroll-x w-100 mobile-only">';
@@ -8112,7 +8138,6 @@ let SfIEvents = class SfIEvents extends LitElement {
8112
8138
  }
8113
8139
  };
8114
8140
  this.clearGraphData = () => {
8115
- console.log('this.chart2 clearing graph data');
8116
8141
  this.chart = null;
8117
8142
  this.chart2 = null;
8118
8143
  this.chart3 = null;
@@ -8935,6 +8960,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8935
8960
  this.events[mmdd][p].lastupdated = new Date().toString();
8936
8961
  }
8937
8962
  }
8963
+ if (this.recentlyReported[mmdd] == null) {
8964
+ this.recentlyReported[mmdd] = [];
8965
+ }
8966
+ this.recentlyReported[mmdd].push(event);
8938
8967
  console.log('review single');
8939
8968
  }
8940
8969
  else {
@@ -8980,6 +9009,10 @@ let SfIEvents = class SfIEvents extends LitElement {
8980
9009
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
8981
9010
  this.events[mmdd][p].isbulk = true;
8982
9011
  flagBulk = true;
9012
+ if (this.recentlyReported[mmdd] == null) {
9013
+ this.recentlyReported[mmdd] = [];
9014
+ }
9015
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
8983
9016
  }
8984
9017
  }
8985
9018
  }
@@ -9037,6 +9070,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9037
9070
  this.events[mmdd][p].lastupdated = new Date().toString();
9038
9071
  }
9039
9072
  }
9073
+ if (this.recentlyReported[mmdd] == null) {
9074
+ this.recentlyReported[mmdd] = [];
9075
+ }
9076
+ this.recentlyReported[mmdd].push(event);
9040
9077
  console.log('uploadaudit single');
9041
9078
  }
9042
9079
  else {
@@ -9079,6 +9116,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9079
9116
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
9080
9117
  this.events[mmdd][p].isbulk = true;
9081
9118
  flagBulk = true;
9119
+ if (this.recentlyReported[mmdd] == null) {
9120
+ this.recentlyReported[mmdd] = [];
9121
+ }
9122
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
9082
9123
  }
9083
9124
  }
9084
9125
  }
@@ -9192,12 +9233,16 @@ let SfIEvents = class SfIEvents extends LitElement {
9192
9233
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
9193
9234
  this.events[mmdd][p].approved = true;
9194
9235
  // this.events[mmdd][p].documents = docs
9195
- this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
9236
+ this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
9196
9237
  this.events[mmdd][p].lastupdated = new Date().toString();
9197
9238
  }
9198
9239
  }
9199
9240
  console.log('upload report auto approve single');
9200
9241
  }
9242
+ if (this.recentlyReported[mmdd] == null) {
9243
+ this.recentlyReported[mmdd] = [];
9244
+ }
9245
+ this.recentlyReported[mmdd].push(event);
9201
9246
  }
9202
9247
  else {
9203
9248
  let bulkBody = [];
@@ -9282,6 +9327,10 @@ let SfIEvents = class SfIEvents extends LitElement {
9282
9327
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
9283
9328
  this.events[mmdd][p].isbulk = true;
9284
9329
  flagBulk = true;
9330
+ if (this.recentlyReported[mmdd] == null) {
9331
+ this.recentlyReported[mmdd] = [];
9332
+ }
9333
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
9285
9334
  }
9286
9335
  }
9287
9336
  }
@@ -10035,6 +10084,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10035
10084
  this.events[mmdd][p].lastupdated = new Date().toString();
10036
10085
  }
10037
10086
  }
10087
+ if (this.recentlyReported[mmdd] == null) {
10088
+ this.recentlyReported[mmdd] = [];
10089
+ }
10090
+ this.recentlyReported[mmdd].push(event);
10038
10091
  }
10039
10092
  else {
10040
10093
  let bulkBodyReview = [];
@@ -10079,6 +10132,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10079
10132
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10080
10133
  this.events[mmdd][p].isbulk = true;
10081
10134
  flagBulk = true;
10135
+ if (this.recentlyReported[mmdd] == null) {
10136
+ this.recentlyReported[mmdd] = [];
10137
+ }
10138
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
10082
10139
  }
10083
10140
  }
10084
10141
  }
@@ -10135,6 +10192,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10135
10192
  this.events[mmdd][p].lastupdated = new Date().toString();
10136
10193
  }
10137
10194
  }
10195
+ if (this.recentlyReported[mmdd] == null) {
10196
+ this.recentlyReported[mmdd] = [];
10197
+ }
10198
+ this.recentlyReported[mmdd].push(event);
10138
10199
  }
10139
10200
  else {
10140
10201
  let bulkBodyAudit = [];
@@ -10176,6 +10237,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10176
10237
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10177
10238
  this.events[mmdd][p].isbulk = true;
10178
10239
  flagBulk = true;
10240
+ if (this.recentlyReported[mmdd] == null) {
10241
+ this.recentlyReported[mmdd] = [];
10242
+ }
10243
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
10179
10244
  }
10180
10245
  }
10181
10246
  }
@@ -10295,6 +10360,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10295
10360
  }
10296
10361
  }
10297
10362
  }
10363
+ if (this.recentlyReported[mmdd] == null) {
10364
+ this.recentlyReported[mmdd] = [];
10365
+ }
10366
+ this.recentlyReported[mmdd].push(event);
10298
10367
  }
10299
10368
  else {
10300
10369
  let bulkBody = [];
@@ -10395,6 +10464,10 @@ let SfIEvents = class SfIEvents extends LitElement {
10395
10464
  if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10396
10465
  this.events[mmdd][p].isbulk = true;
10397
10466
  flagBulk = true;
10467
+ if (this.recentlyReported[mmdd] == null) {
10468
+ this.recentlyReported[mmdd] = [];
10469
+ }
10470
+ this.recentlyReported[mmdd].push(this.events[mmdd][p]);
10398
10471
  }
10399
10472
  }
10400
10473
  }
@@ -15440,6 +15513,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15440
15513
  this.processGraphFilter = (clickedValue) => {
15441
15514
  var _a;
15442
15515
  let eventContainer = null;
15516
+ console.log('processGraphFilter called', clickedValue);
15443
15517
  if (this.getCurrentTab() == this.TAB_STREAM) {
15444
15518
  eventContainer = this._SfStreamContainer;
15445
15519
  }
@@ -15480,6 +15554,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15480
15554
  if (streamEventSummary == null) {
15481
15555
  return;
15482
15556
  }
15557
+ console.log('recentlyReported', this.recentlyReported);
15483
15558
  if (this.graphParam == clickedValue) {
15484
15559
  this.graphParam = "";
15485
15560
  streamEventSummary.style.display = 'flex';
@@ -15496,10 +15571,12 @@ let SfIEvents = class SfIEvents extends LitElement {
15496
15571
  };
15497
15572
  streamEventFilters.style.display = 'block';
15498
15573
  streamEventFilters.innerHTML = '<div part="badge-dashboard" class="d-flex align-center justify-between mr-10 mb-10 no-shrink"><div><span>Filtered by</span>&nbsp;&nbsp;<span id="graph-total" part="badge-filter-name">' + clickedValue + '</span></div><button id="button-filter-cancel" part="button-icon"><span class="material-symbols-outlined">close</span></button></div>';
15499
- console.log('processGraphFilter called');
15500
15574
  (_a = streamEventFilters.querySelector('#button-filter-cancel')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
15501
15575
  this.clearSelectedGraphParam();
15502
15576
  });
15577
+ setTimeout(() => {
15578
+ this.recentlyReported = {};
15579
+ }, 10000);
15503
15580
  }
15504
15581
  for (var i = 0; i < divs.length; i++) {
15505
15582
  // console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&amp;', '&').replace(/-/g, ' '));
@@ -15514,8 +15591,23 @@ let SfIEvents = class SfIEvents extends LitElement {
15514
15591
  break;
15515
15592
  }
15516
15593
  }
15517
- if (buttonSelect[i] != null)
15594
+ if (buttonSelect[i] != null) {
15518
15595
  buttonSelect[i].checked = false;
15596
+ let selectid = buttonSelect[i].id;
15597
+ let selectidArr = selectid.split('-');
15598
+ let selectMmdd = selectidArr[2] + '/' + selectidArr[3];
15599
+ let selectEntityid = selectidArr[7].replace(/_/g, '-');
15600
+ let selectLocationid = selectidArr[8].replace(/_/g, '-');
15601
+ let selectEventid = selectidArr[9].replace(/_/g, '-');
15602
+ if (this.recentlyReported[selectMmdd] != null) {
15603
+ for (let recentlyReportedEvent of this.recentlyReported[selectMmdd]) {
15604
+ if (recentlyReportedEvent.id == selectEventid && recentlyReportedEvent.locationid == selectLocationid && recentlyReportedEvent.entityid == selectEntityid) {
15605
+ filterFound = true;
15606
+ break;
15607
+ }
15608
+ }
15609
+ }
15610
+ }
15519
15611
  if (filterFound) {
15520
15612
  if (tables[i] != null) {
15521
15613
  tables[i].style.display = 'block';
@@ -15556,7 +15648,7 @@ let SfIEvents = class SfIEvents extends LitElement {
15556
15648
  buttonListReporting[i].style.display = 'none';
15557
15649
  }
15558
15650
  }
15559
- console.log('eventTitle', divs[i]);
15651
+ // console.log('eventTitle', divs[i]);
15560
15652
  if (buttonSelect[i] != null)
15561
15653
  buttonSelect[i].style.display = "none";
15562
15654
  if (eventTitles[i] != null)
@@ -1647,6 +1647,8 @@ export class SfIEvents extends LitElement {
1647
1647
 
1648
1648
  graphFilter:string = "";
1649
1649
 
1650
+ recentlyReported: any = {}
1651
+
1650
1652
  static override styles = css`
1651
1653
 
1652
1654
  .bg-white {
@@ -5700,6 +5702,10 @@ export class SfIEvents extends LitElement {
5700
5702
  }
5701
5703
  }
5702
5704
  }
5705
+ if(this.recentlyReported[mmdd] == null){
5706
+ this.recentlyReported[mmdd] = []
5707
+ }
5708
+ this.recentlyReported[mmdd].push(event)
5703
5709
  }else{
5704
5710
  let bulkBodyReview = []
5705
5711
  for(var k = 0; k < this.selectedItemIds.length; k++) {
@@ -5750,6 +5756,10 @@ export class SfIEvents extends LitElement {
5750
5756
 
5751
5757
  this.events[mmdd][p].isbulk = true
5752
5758
  flagBulk = true
5759
+ if(this.recentlyReported[mmdd] == null){
5760
+ this.recentlyReported[mmdd] = []
5761
+ }
5762
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
5753
5763
  }
5754
5764
  }
5755
5765
  }
@@ -5803,6 +5813,10 @@ export class SfIEvents extends LitElement {
5803
5813
  }
5804
5814
  }
5805
5815
  }
5816
+ if(this.recentlyReported[mmdd] == null){
5817
+ this.recentlyReported[mmdd] = []
5818
+ }
5819
+ this.recentlyReported[mmdd].push(event)
5806
5820
  }else{
5807
5821
  let bulkBodyAudit = []
5808
5822
  for(var k = 0; k < this.selectedItemIds.length; k++) {
@@ -5850,6 +5864,10 @@ export class SfIEvents extends LitElement {
5850
5864
 
5851
5865
  this.events[mmdd][p].isbulk = true
5852
5866
  flagBulk = true;
5867
+ if(this.recentlyReported[mmdd] == null){
5868
+ this.recentlyReported[mmdd] = []
5869
+ }
5870
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
5853
5871
  }
5854
5872
  }
5855
5873
  }
@@ -5966,6 +5984,7 @@ export class SfIEvents extends LitElement {
5966
5984
  this.events[mmdd][p].lastupdated = new Date().toString()
5967
5985
  }
5968
5986
  }
5987
+
5969
5988
  if(event.makercheckers.length > 0) {
5970
5989
 
5971
5990
  await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
@@ -5973,11 +5992,16 @@ export class SfIEvents extends LitElement {
5973
5992
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
5974
5993
  this.events[mmdd][p].approved = true
5975
5994
  // this.events[mmdd][p].documents = docs
5976
- this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
5995
+ this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
5977
5996
  this.events[mmdd][p].lastupdated = new Date().toString()
5978
5997
  }
5979
5998
  }
5980
5999
  }
6000
+ if(this.recentlyReported[mmdd] == null){
6001
+ this.recentlyReported[mmdd] = []
6002
+ }
6003
+ this.recentlyReported[mmdd].push(event)
6004
+ console.log('recently reported', this.recentlyReported)
5981
6005
  }else{
5982
6006
  let bulkBody = []
5983
6007
  let bulkBodyReview = []
@@ -6068,6 +6092,10 @@ export class SfIEvents extends LitElement {
6068
6092
  if(this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
6069
6093
  flagBulk = true;
6070
6094
  this.events[mmdd][p].isbulk = true
6095
+ if(this.recentlyReported[mmdd] == null){
6096
+ this.recentlyReported[mmdd] = []
6097
+ }
6098
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
6071
6099
  }
6072
6100
  }
6073
6101
  }
@@ -10195,9 +10223,9 @@ export class SfIEvents extends LitElement {
10195
10223
 
10196
10224
  renderThis = (index: number = 1, showGraph: boolean = true, showBackgroundButton: boolean) => {
10197
10225
 
10198
- this.clearGraphData();
10199
- this.clearSelectedGraphParam();
10200
- this.clearSelectedLegend();
10226
+ // this.clearGraphData();
10227
+ // this.clearSelectedGraphParam();
10228
+ // this.clearSelectedLegend();
10201
10229
 
10202
10230
  this.streamIndex = index;
10203
10231
 
@@ -10769,9 +10797,9 @@ export class SfIEvents extends LitElement {
10769
10797
 
10770
10798
  this.streamIndex = index;
10771
10799
 
10772
- this.clearGraphData();
10773
- this.clearSelectedGraphParam();
10774
- this.clearSelectedLegend();
10800
+ // this.clearGraphData();
10801
+ // this.clearSelectedGraphParam();
10802
+ // this.clearSelectedLegend();
10775
10803
 
10776
10804
 
10777
10805
  var startDate = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
@@ -11404,7 +11432,6 @@ export class SfIEvents extends LitElement {
11404
11432
  }
11405
11433
 
11406
11434
  clearGraphData = () => {
11407
- console.log('this.chart2 clearing graph data');
11408
11435
  this.chart = null;
11409
11436
  this.chart2 = null;
11410
11437
  this.chart3 = null;
@@ -12470,6 +12497,10 @@ export class SfIEvents extends LitElement {
12470
12497
  this.events[mmdd][p].lastupdated = new Date().toString()
12471
12498
  }
12472
12499
  }
12500
+ if(this.recentlyReported[mmdd] == null){
12501
+ this.recentlyReported[mmdd] = []
12502
+ }
12503
+ this.recentlyReported[mmdd].push(event)
12473
12504
  console.log('review single')
12474
12505
  } else {
12475
12506
  let bulkBodyReview = []
@@ -12521,6 +12552,10 @@ export class SfIEvents extends LitElement {
12521
12552
 
12522
12553
  this.events[mmdd][p].isbulk = true
12523
12554
  flagBulk = true;
12555
+ if(this.recentlyReported[mmdd] == null){
12556
+ this.recentlyReported[mmdd] = []
12557
+ }
12558
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
12524
12559
  }
12525
12560
  }
12526
12561
  }
@@ -12582,6 +12617,10 @@ export class SfIEvents extends LitElement {
12582
12617
  this.events[mmdd][p].lastupdated = new Date().toString()
12583
12618
  }
12584
12619
  }
12620
+ if(this.recentlyReported[mmdd] == null){
12621
+ this.recentlyReported[mmdd] = []
12622
+ }
12623
+ this.recentlyReported[mmdd].push(event)
12585
12624
  console.log('uploadaudit single')
12586
12625
  } else {
12587
12626
  let bulkBodyAudit = []
@@ -12630,6 +12669,10 @@ export class SfIEvents extends LitElement {
12630
12669
 
12631
12670
  this.events[mmdd][p].isbulk = true
12632
12671
  flagBulk = true;
12672
+ if(this.recentlyReported[mmdd] == null){
12673
+ this.recentlyReported[mmdd] = []
12674
+ }
12675
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
12633
12676
  }
12634
12677
  }
12635
12678
  }
@@ -12772,12 +12815,16 @@ export class SfIEvents extends LitElement {
12772
12815
  if(this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
12773
12816
  this.events[mmdd][p].approved = true
12774
12817
  // this.events[mmdd][p].documents = docs
12775
- this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
12818
+ this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
12776
12819
  this.events[mmdd][p].lastupdated = new Date().toString()
12777
12820
  }
12778
12821
  }
12779
12822
  console.log('upload report auto approve single')
12780
12823
  }
12824
+ if(this.recentlyReported[mmdd] == null){
12825
+ this.recentlyReported[mmdd] = []
12826
+ }
12827
+ this.recentlyReported[mmdd].push(event)
12781
12828
 
12782
12829
  } else {
12783
12830
  let bulkBody = []
@@ -12872,6 +12919,10 @@ export class SfIEvents extends LitElement {
12872
12919
 
12873
12920
  this.events[mmdd][p].isbulk = true
12874
12921
  flagBulk = true;
12922
+ if(this.recentlyReported[mmdd] == null){
12923
+ this.recentlyReported[mmdd] = []
12924
+ }
12925
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
12875
12926
  }
12876
12927
  }
12877
12928
  }
@@ -13753,6 +13804,10 @@ export class SfIEvents extends LitElement {
13753
13804
  this.events[mmdd][p].lastupdated = new Date().toString()
13754
13805
  }
13755
13806
  }
13807
+ if(this.recentlyReported[mmdd] == null){
13808
+ this.recentlyReported[mmdd] = []
13809
+ }
13810
+ this.recentlyReported[mmdd].push(event)
13756
13811
  } else {
13757
13812
  let bulkBodyReview = []
13758
13813
  for(var k = 0; k < this.selectedItemIds.length; k++) {
@@ -13803,6 +13858,10 @@ export class SfIEvents extends LitElement {
13803
13858
 
13804
13859
  this.events[mmdd][p].isbulk = true
13805
13860
  flagBulk = true;
13861
+ if(this.recentlyReported[mmdd] == null){
13862
+ this.recentlyReported[mmdd] = []
13863
+ }
13864
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
13806
13865
  }
13807
13866
  }
13808
13867
  }
@@ -13863,6 +13922,10 @@ export class SfIEvents extends LitElement {
13863
13922
  this.events[mmdd][p].lastupdated = new Date().toString()
13864
13923
  }
13865
13924
  }
13925
+ if(this.recentlyReported[mmdd] == null){
13926
+ this.recentlyReported[mmdd] = []
13927
+ }
13928
+ this.recentlyReported[mmdd].push(event)
13866
13929
  } else {
13867
13930
  let bulkBodyAudit = []
13868
13931
  for(var k = 0; k < this.selectedItemIds.length; k++) {
@@ -13910,6 +13973,10 @@ export class SfIEvents extends LitElement {
13910
13973
 
13911
13974
  this.events[mmdd][p].isbulk = true
13912
13975
  flagBulk = true;
13976
+ if(this.recentlyReported[mmdd] == null){
13977
+ this.recentlyReported[mmdd] = []
13978
+ }
13979
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
13913
13980
  }
13914
13981
  }
13915
13982
  }
@@ -14057,6 +14124,10 @@ export class SfIEvents extends LitElement {
14057
14124
  }
14058
14125
  }
14059
14126
  }
14127
+ if(this.recentlyReported[mmdd] == null){
14128
+ this.recentlyReported[mmdd] = []
14129
+ }
14130
+ this.recentlyReported[mmdd].push(event)
14060
14131
 
14061
14132
  } else {
14062
14133
  let bulkBody = []
@@ -14165,6 +14236,10 @@ export class SfIEvents extends LitElement {
14165
14236
 
14166
14237
  this.events[mmdd][p].isbulk = true
14167
14238
  flagBulk = true;
14239
+ if(this.recentlyReported[mmdd] == null){
14240
+ this.recentlyReported[mmdd] = []
14241
+ }
14242
+ this.recentlyReported[mmdd].push(this.events[mmdd][p])
14168
14243
  }
14169
14244
  }
14170
14245
  }
@@ -20610,7 +20685,7 @@ export class SfIEvents extends LitElement {
20610
20685
  processGraphFilter = (clickedValue: string) => {
20611
20686
 
20612
20687
  let eventContainer = null;
20613
-
20688
+ console.log('processGraphFilter called', clickedValue);
20614
20689
  if(this.getCurrentTab() == this.TAB_STREAM) {
20615
20690
  eventContainer = (this._SfStreamContainer as HTMLDivElement);
20616
20691
  }
@@ -20660,7 +20735,7 @@ export class SfIEvents extends LitElement {
20660
20735
  if(streamEventSummary == null) {
20661
20736
  return;
20662
20737
  }
20663
-
20738
+ console.log('recentlyReported', this.recentlyReported);
20664
20739
  if(this.graphParam == clickedValue) {
20665
20740
 
20666
20741
  this.graphParam = "";
@@ -20679,11 +20754,12 @@ export class SfIEvents extends LitElement {
20679
20754
  };
20680
20755
  (streamEventFilters as HTMLDivElement).style.display = 'block';
20681
20756
  (streamEventFilters as HTMLDivElement).innerHTML = '<div part="badge-dashboard" class="d-flex align-center justify-between mr-10 mb-10 no-shrink"><div><span>Filtered by</span>&nbsp;&nbsp;<span id="graph-total" part="badge-filter-name">'+clickedValue+'</span></div><button id="button-filter-cancel" part="button-icon"><span class="material-symbols-outlined">close</span></button></div>';
20682
- console.log('processGraphFilter called');
20683
20757
  (streamEventFilters as HTMLDivElement).querySelector('#button-filter-cancel')?.addEventListener('click', () => {
20684
20758
  this.clearSelectedGraphParam();
20685
20759
  });
20686
-
20760
+ setTimeout(() => {
20761
+ this.recentlyReported = {}
20762
+ }, 10000);
20687
20763
  }
20688
20764
 
20689
20765
 
@@ -20701,7 +20777,24 @@ export class SfIEvents extends LitElement {
20701
20777
  break;
20702
20778
  }
20703
20779
  }
20704
- if(buttonSelect[i] != null)buttonSelect[i].checked = false
20780
+ if(buttonSelect[i] != null){
20781
+ buttonSelect[i].checked = false
20782
+ let selectid = buttonSelect[i].id
20783
+ let selectidArr = selectid.split('-')
20784
+ let selectMmdd = selectidArr[2] + '/' + selectidArr[3]
20785
+ let selectEntityid = selectidArr[7].replace(/_/g,'-')
20786
+ let selectLocationid = selectidArr[8].replace(/_/g,'-')
20787
+ let selectEventid = selectidArr[9].replace(/_/g,'-')
20788
+ if(this.recentlyReported[selectMmdd] != null){
20789
+ for(let recentlyReportedEvent of this.recentlyReported[selectMmdd]){
20790
+ if(recentlyReportedEvent.id == selectEventid && recentlyReportedEvent.locationid == selectLocationid && recentlyReportedEvent.entityid == selectEntityid){
20791
+ filterFound = true;
20792
+ break;
20793
+ }
20794
+ }
20795
+ }
20796
+ }
20797
+
20705
20798
  if(filterFound) {
20706
20799
  if(tables[i] != null){
20707
20800
  (tables[i] as HTMLDivElement).style.display = 'block';
@@ -20735,7 +20828,7 @@ export class SfIEvents extends LitElement {
20735
20828
  buttonListReporting[i].style.display = 'none';
20736
20829
  }
20737
20830
  }
20738
- console.log('eventTitle', divs[i]);
20831
+ // console.log('eventTitle', divs[i]);
20739
20832
  if(buttonSelect[i] != null)buttonSelect[i].style.display = "none"
20740
20833
  if(eventTitles[i] != null)(eventTitles[i]).style.display = 'none';
20741
20834
  if(divs[i] != null) divs[i].style.display = 'none'
@@ -20755,7 +20848,6 @@ export class SfIEvents extends LitElement {
20755
20848
  for(let streamEventTitle of streamEventTitles){
20756
20849
  streamEventTitle.removeAttribute('part')
20757
20850
  }
20758
-
20759
20851
  }
20760
20852
 
20761
20853
  processClickOnLegend = (index: number, legendItem: any) => {