sf-i-events 1.0.881 → 1.0.882

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.
@@ -859,7 +859,7 @@ export class SfIEvents extends LitElement {
859
859
 
860
860
  EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "entities", "locations", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"]
861
861
 
862
- CHARTS_LIST_BY_MODULES: { [key: string]: Array<string> } = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
862
+ CHARTS_LIST_BY_MODULES: { [key: string]: Array<string> } = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
863
863
 
864
864
  chartSelectedLegend: Array<number> = [];
865
865
 
@@ -1658,8 +1658,10 @@ export class SfIEvents extends LitElement {
1658
1658
 
1659
1659
  nextTabStatus: string = "";
1660
1660
 
1661
+ @property()
1661
1662
  sdate: string = "";
1662
1663
 
1664
+ @property()
1663
1665
  edate: string = "";
1664
1666
 
1665
1667
  lastupdated: string = "";
@@ -1738,6 +1740,9 @@ export class SfIEvents extends LitElement {
1738
1740
  #detail-container {
1739
1741
  z-index: 101;
1740
1742
  }
1743
+ #detail-list-container {
1744
+ z-index: 100;
1745
+ }
1741
1746
 
1742
1747
  .plain-filter-icon {
1743
1748
  cursor: pointer;
@@ -1783,6 +1788,7 @@ export class SfIEvents extends LitElement {
1783
1788
  opacity: 0.4;
1784
1789
  }
1785
1790
 
1791
+ .detail-list-container,
1786
1792
  .detail-container,
1787
1793
  .report-summary-container {
1788
1794
  width: 60%;
@@ -2833,6 +2839,9 @@ export class SfIEvents extends LitElement {
2833
2839
  @query('#detail-container')
2834
2840
  _SfDetailContainer: any;
2835
2841
 
2842
+ @query('#detail-list-container')
2843
+ _SfDetailListContainer: any;
2844
+
2836
2845
  @query('#report-summary-container')
2837
2846
  _SfReportSummaryContainer: any;
2838
2847
 
@@ -4118,7 +4127,7 @@ export class SfIEvents extends LitElement {
4118
4127
 
4119
4128
  updateRiskSeverityStats = (riskSeverities: Array<string>, partStatus: string, lateStatus: string, complianceStatus: string) => {
4120
4129
 
4121
- //console.log('updateRiskSeverityStats', riskSeverities, complianceStatus)
4130
+ console.log('updateRiskSeverityStats', riskSeverities, complianceStatus)
4122
4131
 
4123
4132
  const result = this.updateGraphStats(riskSeverities, this.riskSeverityData, this.riskSeverityPartStatusData, this.riskSeverityLateStatusData, this.riskSeverityComplianceStatusData, partStatus, lateStatus, complianceStatus);
4124
4133
  this.riskSeverityData = result.arrData;
@@ -4470,9 +4479,9 @@ export class SfIEvents extends LitElement {
4470
4479
  html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_FREQUENCY ? '' : 'hide') + '"><input type="radio" id="radio-frequency" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_FREQUENCY) ? 'checked' : '') + '>';
4471
4480
  html += '<label for="radio-frequency" part="input-label" class="mr-10">Frequency</label></div>';
4472
4481
  }
4473
- if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("subcategory") >= 0) {
4482
+ if (this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]] != null && this.CHARTS_LIST_BY_MODULES[this.selectedFeatures[0]].indexOf("subCategory") >= 0) {
4474
4483
  html += '<div part="chart-radio-item" class="chart-radio-item-secondary ' + (this.flowGraph == this.FLOW_GRAPH_SUBCATEGORY ? '' : 'hide') + '"><input type="radio" id="radio-subcategory" name="graph-type" part="radio-graph" ' + ((this.flowGraph == this.FLOW_GRAPH_SUBCATEGORY) ? 'checked' : '') + '>';
4475
- html += '<label for="radio-frequency" part="input-label">SubCategory</label></div>';
4484
+ html += '<label for="radio-subcategory" part="input-label">SubCategory</label></div>';
4476
4485
  }
4477
4486
 
4478
4487
  html += '<button id="graph-radios-expander" class="ml-10" part="calendar-tab-button-not-selected"><span class="material-symbols-outlined">chevron_right</span></button>'
@@ -4622,7 +4631,7 @@ export class SfIEvents extends LitElement {
4622
4631
 
4623
4632
  }
4624
4633
 
4625
- renderStatisticsFiltersTableRow = (filterUser: boolean = false) => {
4634
+ renderStatisticsFiltersTableRow = (index: number, filterUser: boolean = false) => {
4626
4635
 
4627
4636
  var html = '';
4628
4637
  html += '<tr class="tablerow">'
@@ -4631,11 +4640,11 @@ export class SfIEvents extends LitElement {
4631
4640
  html += '<div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Access</div><div>DASHBOARD_LAST_ACTIVE</div><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Action</div><div>DASHBOARD_LAST_ACTION</div>'
4632
4641
  }
4633
4642
  html += '</div></td>'
4634
- html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span>&nbsp;&nbsp;Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>'
4635
- html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span>&nbsp;&nbsp;Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>'
4636
- html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span>&nbsp;&nbsp;Rejected</div><div>DASHBOARD_REJECTED</div></div></td>'
4637
- html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span>&nbsp;&nbsp;Approved</div><div>DASHBOARD_APPROVED</div></div></td>'
4638
- html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>'
4643
+ html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" id="filter-not-started-' + index + '" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span>&nbsp;&nbsp;Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>'
4644
+ html += '<td part="td-body" id="filter-pending-approval-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span>&nbsp;&nbsp;Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>'
4645
+ html += '<td part="td-body" id="filter-rejected-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span>&nbsp;&nbsp;Rejected</div><div>DASHBOARD_REJECTED</div></div></td>'
4646
+ html += '<td part="td-body" id="filter-approved-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span>&nbsp;&nbsp;Approved</div><div>DASHBOARD_APPROVED</div></div></td>'
4647
+ html += '<td part="td-body" id="filter-total-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>'
4639
4648
  html += '</tr>';
4640
4649
 
4641
4650
  return html;
@@ -5137,7 +5146,7 @@ export class SfIEvents extends LitElement {
5137
5146
  }
5138
5147
 
5139
5148
  //(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
5140
- renderEvents = (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any = null, parametersTitle: string, showBackgroundButton: boolean) => {
5149
+ renderEvents = (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any = null, parametersTitle: string, showBackgroundButton: boolean, fromDrilldown: boolean = false) => {
5141
5150
  var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0, active = 0, aboutToExpire = 0, expired = 0, terminated = 0;
5142
5151
  var html = '';
5143
5152
  this.selectedItemIds = [];
@@ -5154,32 +5163,38 @@ export class SfIEvents extends LitElement {
5154
5163
  console.log('this.clearSelectedGraphParam(); 1', this.graphFilter);
5155
5164
  this.clearSelectedGraphParam();
5156
5165
  this.clearSelectedLegend();
5157
-
5158
- html += this.renderCalendarGraphs(showGraph, parametersTitle, showBackgroundButton);
5166
+ if (!fromDrilldown) {
5167
+ html += this.renderCalendarGraphs(showGraph, parametersTitle, showBackgroundButton);
5168
+ }
5159
5169
  html += this.renderCalendarContainerDivStart(index)
5160
5170
  html += this.renderCalendarEventSummary();
5161
5171
 
5172
+ if (!fromDrilldown) {
5173
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
5174
+ csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter'
5175
+ htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">Party 1</th><th class="td-thin">Party 2</th><th class="td-wide">Party 3</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5176
+
5177
+ } else if (this.selectedFeatures.indexOf('licenses') >= 0) {
5178
+ csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
5179
+ htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">ObligationType</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5180
+ } else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
5181
+ csvCols += 'Id,Name,Url,Country,Entity,Location,Reporter,Approver,Functionhead,LastCheckedDate,DueDate,Terminated,Status,ReportParameter'
5182
+ htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Name</th><th class="td-thin">Url</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">LastCheckedDate</th><th class="td-thin">DueDate</th><th class="td-thin">Terminated</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5183
+ } else {
5184
+ csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
5185
+ htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5186
+ }
5162
5187
 
5163
- if (this.selectedFeatures.indexOf('contracts') >= 0) {
5164
- csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter'
5165
- htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">Party 1</th><th class="td-thin">Party 2</th><th class="td-wide">Party 3</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5166
-
5167
- } else if (this.selectedFeatures.indexOf('licenses') >= 0) {
5168
- csvCols += 'Id,ReferenceNo.,Type,Country,Entity,Location,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,ObligationType,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
5169
- htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Reference No.</th><th class="td-thin">Type</th><th class="td-thin">Country</th><th class="td-thin">Entity</th><th class="td-thin">Location</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">ObligationType</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5170
- } else {
5171
- csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter'
5172
- htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>'
5173
- }
5174
-
5175
- if (this.selectedFeatures.indexOf('contracts') >= 0) {
5176
- htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5177
- } else if (this.selectedFeatures.indexOf('licenses') >= 0) {
5178
- htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5179
- } else {
5180
- htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5188
+ if (this.selectedFeatures.indexOf('contracts') >= 0) {
5189
+ htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5190
+ } else if (this.selectedFeatures.indexOf('licenses') >= 0) {
5191
+ htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Reference No.</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5192
+ } else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
5193
+ htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">Name</th><th class="td-wide">Status</th><th class="td-wide">Url</th></tr>'
5194
+ } else {
5195
+ htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>'
5196
+ }
5181
5197
  }
5182
-
5183
5198
  for (var i = iInit; i <= iLast; i++) {
5184
5199
 
5185
5200
  let mmdd: string = "";
@@ -5260,13 +5275,13 @@ export class SfIEvents extends LitElement {
5260
5275
 
5261
5276
  this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
5262
5277
  this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
5263
- if(this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] != null){
5278
+ if (this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] != null) {
5264
5279
  this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE + "obj"] = this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE];
5265
5280
  }
5266
5281
  this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
5267
5282
 
5268
5283
  this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
5269
- if (this.events[mmdd][j]["documents"] != null) {
5284
+ if (this.events[mmdd][j]["documents"] != null && !fromDrilldown) {
5270
5285
  if (this.selectedFeatures.indexOf('contracts') >= 0) {
5271
5286
  //Id,ReferenceNo.,Type,Country,Entity,Location,Party1,Party2,Party3,Reporter,Approver,Functionhead,DueDate,Status,ReportParameter
5272
5287
  csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
@@ -5345,6 +5360,36 @@ export class SfIEvents extends LitElement {
5345
5360
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
5346
5361
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
5347
5362
  + '</tr>');
5363
+ } else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
5364
+ //Id,Name,Url,Country,Entity,Location,Reporter,Approver,Functionhead,LastCheckedDate,DueDate,Terminated,Status,ReportParameter
5365
+ csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
5366
+ csvValues += ('"' + ((this.events[mmdd][j]["obligationtitle"] + "").replace(/"/g, "") + '",'));
5367
+ csvValues += ('"' + ((this.events[mmdd][j]["url"] + "").replace(/"/g, "") + '",'));
5368
+ csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5369
+ csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5370
+ csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
5371
+ csvValues += ('"' + ((((this.events[mmdd][j]["reporters"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5372
+ csvValues += ('"' + ((((this.events[mmdd][j]["approvers"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5373
+ csvValues += ('"' + ((((this.events[mmdd][j]["functionheads"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
5374
+ csvValues += ('"' + (this.events[mmdd][j]["lastcheckeddate"] + '",'));
5375
+ csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
5376
+ csvValues += ('"' + ((this.events[mmdd][j]["terminated"] ? "Yes" : "No").replace(/"/g, "") + '",'));
5377
+ csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
5378
+ csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
5379
+
5380
+ //Id,Name,Url,Country,Entity,Location,LastCheckedDate,DueDate,Terminated,Status,ReportParameter
5381
+ htmlValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["id"] + '</td>'
5382
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["obligationtitle"] + '</td>'
5383
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["url"] + '</td>'
5384
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
5385
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
5386
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
5387
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["lastcheckeddate"] + '</td>'
5388
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
5389
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["terminated"] ? "Yes" : "No") + '</td>'
5390
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
5391
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
5392
+ + '</tr>');
5348
5393
  } else {
5349
5394
  //Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State
5350
5395
  csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
@@ -5440,6 +5485,11 @@ export class SfIEvents extends LitElement {
5440
5485
  htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" 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": document.key, "ext": document.ext }]).replace(/"/g, '&quot;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`
5441
5486
  }
5442
5487
  htmlSummaryValues += '</td></tr>'
5488
+ } else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
5489
+ htmlSummaryValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin"><sf-i-elastic-text text="' + this.events[mmdd][j]["id"] + '" minLength="10"></sf-i-elastic-text></td>'
5490
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
5491
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
5492
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["url"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td></tr>')
5443
5493
  } else {
5444
5494
  htmlSummaryValues += ('<tr><td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin"><sf-i-elastic-text text="' + this.events[mmdd][j]["id"] + '" minLength="10"></sf-i-elastic-text></td>'
5445
5495
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
@@ -5710,7 +5760,7 @@ export class SfIEvents extends LitElement {
5710
5760
  }
5711
5761
  }
5712
5762
  }
5713
- filtersTableHtml += this.renderStatisticsFiltersTableRow(lastAction != "" || lastActive != "")
5763
+ filtersTableHtml += this.renderStatisticsFiltersTableRow(filterindex, lastAction != "" || lastActive != "")
5714
5764
  if (filterindex % 2 == 0) {
5715
5765
  filtersTableHtml = filtersTableHtml.replace(/TD_BODY_CLASS/g, "td-light");
5716
5766
  } else {
@@ -6014,8 +6064,8 @@ export class SfIEvents extends LitElement {
6014
6064
  console.log('reporting html', html);
6015
6065
  let ddmmyyyy = mmddyyyy.split('/')[1] + '/' + mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[2];
6016
6066
 
6017
- let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
6018
- (this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.emailcontent = emailcontent;
6067
+ let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Reporter</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.reporters[0].split(';')[0]}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Approver</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.approvers[0].split(';')[0]}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
6068
+
6019
6069
  let listReportingContainers = eventsContainer.querySelectorAll('.list-reporting-container') as NodeListOf<HTMLDivElement>
6020
6070
  for (let tempReportingContainer of listReportingContainers) {
6021
6071
  tempReportingContainer.style.display = 'none';
@@ -6045,6 +6095,7 @@ export class SfIEvents extends LitElement {
6045
6095
  }
6046
6096
  }
6047
6097
  listReportingContainer.innerHTML = html;
6098
+ (this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.emailcontent = emailcontent;
6048
6099
  listReportingContainer.querySelector('.button-delete')?.addEventListener('click', async () => {
6049
6100
 
6050
6101
  await this.fetchDeleteReview(event["id"], mmddyyyy, event.entityid, event.locationid);
@@ -6064,7 +6115,7 @@ export class SfIEvents extends LitElement {
6064
6115
  });
6065
6116
  listReportingContainer.querySelector('#button-auto-approve')?.addEventListener('click', async () => {
6066
6117
  if (this.selectedItemIds.length <= 1) {
6067
- await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "events");
6118
+ await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
6068
6119
  this.setSuccess('Auto-Approved successfully!')
6069
6120
  setTimeout(() => {
6070
6121
  this.clearMessages()
@@ -6094,7 +6145,7 @@ export class SfIEvents extends LitElement {
6094
6145
  "userid": this.userProfileId,
6095
6146
  "userrole": this.myRole,
6096
6147
  "year": this.calendarStartYYYY,
6097
- "module": event.module ?? "events"
6148
+ "module": event.module ?? "compliance"
6098
6149
  })
6099
6150
  }
6100
6151
  await this.uploadReviewsBulk(bulkBodyReview);
@@ -6136,7 +6187,7 @@ export class SfIEvents extends LitElement {
6136
6187
  let flagBulk = false;
6137
6188
  if (this.selectedItemIds.length <= 1) {
6138
6189
  console.log('selectedevent', JSON.stringify(event));
6139
- if (await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.module ?? "events")) {
6190
+ if (await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.module ?? "compliance")) {
6140
6191
  for (var p = 0; p < this.events[mmdd].length; p++) {
6141
6192
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
6142
6193
  this.events[mmdd][p].approved = approved
@@ -6178,7 +6229,7 @@ export class SfIEvents extends LitElement {
6178
6229
  "userid": this.userProfileId,
6179
6230
  "userrole": this.myRole,
6180
6231
  "year": this.calendarStartYYYY,
6181
- "module": event.module ?? "events"
6232
+ "module": event.module ?? "compliance"
6182
6233
  })
6183
6234
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
6184
6235
 
@@ -6249,7 +6300,7 @@ export class SfIEvents extends LitElement {
6249
6300
  } else {
6250
6301
  let flagBulk = false;
6251
6302
  if (this.selectedItemIds.length <= 1) {
6252
- if (await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.module ?? "events")) {
6303
+ if (await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.module ?? "compliance")) {
6253
6304
  for (var p = 0; p < this.events[mmdd].length; p++) {
6254
6305
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
6255
6306
  this.events[mmdd][p].approved = approved
@@ -6291,7 +6342,7 @@ export class SfIEvents extends LitElement {
6291
6342
  "userid": this.userProfileId,
6292
6343
  "userrole": this.myRole,
6293
6344
  "year": this.calendarStartYYYY,
6294
- "module": event.module ?? "events"
6345
+ "module": event.module ?? "compliance"
6295
6346
  })
6296
6347
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
6297
6348
 
@@ -6442,7 +6493,7 @@ export class SfIEvents extends LitElement {
6442
6493
  let flagBulk = false;
6443
6494
  if (this.selectedItemIds.length <= 1) {
6444
6495
 
6445
- if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "events", percentage, event.makercheckers)) {
6496
+ if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "compliance", percentage, event.makercheckers)) {
6446
6497
 
6447
6498
  console.log('this.events', this.events);
6448
6499
  if (this.mode != "next") {
@@ -6456,7 +6507,7 @@ export class SfIEvents extends LitElement {
6456
6507
 
6457
6508
  if (event.makercheckers.length > 0) {
6458
6509
 
6459
- // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "events");
6510
+ // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
6460
6511
  for (var p = 0; p < this.events[mmdd].length; p++) {
6461
6512
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
6462
6513
  this.events[mmdd][p].approved = true
@@ -6510,7 +6561,7 @@ export class SfIEvents extends LitElement {
6510
6561
  // "userid": this.userProfileId,
6511
6562
  // "userrole": this.myRole,
6512
6563
  // "year": this.calendarStartYYYY,
6513
- // "module": event.module ?? "events"
6564
+ // "module": event.module ?? "compliance"
6514
6565
  // } )
6515
6566
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
6516
6567
 
@@ -6533,7 +6584,7 @@ export class SfIEvents extends LitElement {
6533
6584
  "userid": this.userProfileId,
6534
6585
  "userrole": this.myRole,
6535
6586
  "year": this.calendarStartYYYY,
6536
- "module": event.module ?? "events",
6587
+ "module": event.module ?? "compliance",
6537
6588
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
6538
6589
  })
6539
6590
  // }
@@ -7627,32 +7678,6 @@ export class SfIEvents extends LitElement {
7627
7678
  this.renderTabs(this.selectedTab)
7628
7679
  this.processDateSelectionViewer(eventsContainer);
7629
7680
  })
7630
- // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
7631
- // selectFeatureAll.addEventListener('click',async(ev: any) => {
7632
- // let target = ev.target;
7633
- // if(target.checked){
7634
- // for(let feature of this.getFeatures()){
7635
- // if(this.selectedFeatures.indexOf(feature) < 0){
7636
- // this.selectedFeatures.push(feature);
7637
- // }
7638
- // }
7639
- // }else{
7640
- // this.selectedFeatures = []
7641
- // }
7642
- // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
7643
- // for(let selectFeature of selectFeatures){
7644
- // let id = selectFeature.id;
7645
- // let i = id.split('-')[3];
7646
- // let selectedFeature = this.getFeatures()[parseInt(i)]
7647
- // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
7648
- // }
7649
- // filterSubmitButton.style.visibility = 'visible'
7650
- // })
7651
- // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
7652
- // selectFeatureAllLabel.addEventListener('click',()=>{
7653
- // selectFeatureAll.checked = !selectFeatureAll.checked
7654
- // selectFeatureAll.click();
7655
- // })
7656
7681
  const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
7657
7682
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
7658
7683
  for (let [i, selectFeature] of selectFeatures.entries()) {
@@ -7667,13 +7692,6 @@ export class SfIEvents extends LitElement {
7667
7692
  this.selectedFeatures = [selectedFeature]
7668
7693
  }
7669
7694
  }
7670
- // else{
7671
- // // selectFeatureAll.checked = false;
7672
- // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
7673
- // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
7674
- // }
7675
- // }
7676
- // filterSubmitButton.style.visibility = 'visible'
7677
7695
  filterSubmitButton.click();
7678
7696
  })
7679
7697
  selectFeatureLabels[i].addEventListener('click', () => {
@@ -7682,28 +7700,59 @@ export class SfIEvents extends LitElement {
7682
7700
  })
7683
7701
  }
7684
7702
  })
7685
- // let innerhtml = eventsContainer.innerHTML;
7686
- // innerhtml += this.renderSelectAllButtons();
7687
- // eventsContainer.innerHTML = innerhtml
7688
- // this.attachTimelineFilterHandlers(eventsContainer);
7689
-
7690
- // const radioExpander = eventsContainer.querySelector('#graph-radios-expander') as HTMLButtonElement;
7691
- // radioExpander?.addEventListener('click', (e: any) => {
7692
-
7693
- // const button = (e.currentTarget as HTMLButtonElement);
7694
- // button.style.display = 'none';
7695
-
7696
- // const arrRadios = eventsContainer.querySelectorAll('.chart-radio-item-secondary') as NodeListOf<HTMLDivElement>;
7697
- // arrRadios.forEach(div => {
7698
- // div.style.display = 'block';
7699
- // });
7700
- // });
7701
7703
 
7702
7704
  const buttonRefresh = eventsContainer.querySelector('#button-refresh') as HTMLButtonElement
7703
7705
  buttonRefresh.addEventListener('click', async () => {
7704
7706
  this.processDateSelectionViewer(eventsContainer)
7705
7707
  })
7706
-
7708
+ if (Object.keys(this.statisticsFiltersData).length > 0) {
7709
+ this.renderDrilldownListeners(eventsContainer);
7710
+ }
7711
+ }
7712
+
7713
+ renderDrilldownListeners = async (eventsContainer: HTMLDivElement) => {
7714
+ await new Promise(resolve => setTimeout(resolve, 1000));
7715
+ console.log('rendering drilldown listeners', this.statisticsFiltersData, this.statisticsMeta)
7716
+ let rows = eventsContainer.querySelectorAll('.tablerow') as NodeListOf<HTMLTableRowElement>
7717
+ let filtercriteria = Object.keys(this.statisticsFiltersData)[0]
7718
+ console.log('rendering statistics filters for criteria', filtercriteria, this.statisticsMeta[filtercriteria])
7719
+ let sortedFilters = Util.alphabeticalSort(this.statisticsMeta[filtercriteria])
7720
+ for (let [rowIndex, row] of rows.entries()) {
7721
+ let filterVal = sortedFilters[rowIndex]
7722
+ let filterValue = filterVal.split(';')[1]
7723
+ let filterName = filterVal.split(';')[0].replace(/\([^)]*\)/g, "")
7724
+
7725
+ let notStartedDiv = row.querySelector('#filter-not-started-' + rowIndex) as HTMLDivElement
7726
+ notStartedDiv.addEventListener('click', () => {
7727
+ console.log('clicked not started filter', rowIndex)
7728
+ console.log('filter', filtercriteria, filterValue, filterName)
7729
+ this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "not-started")
7730
+ })
7731
+ let pendingApprovalDiv = row.querySelector('#filter-pending-approval-' + rowIndex) as HTMLDivElement
7732
+ pendingApprovalDiv.addEventListener('click', () => {
7733
+ console.log('clicked pending approval filter', rowIndex)
7734
+ console.log('filter', filtercriteria, filterValue, filterName)
7735
+ this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "pending-approval")
7736
+ })
7737
+ let rejectedDiv = row.querySelector('#filter-rejected-' + rowIndex) as HTMLDivElement
7738
+ rejectedDiv.addEventListener('click', () => {
7739
+ console.log('clicked rejected filter', rowIndex)
7740
+ console.log('filter', filtercriteria, filterValue, filterName)
7741
+ this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "rejected")
7742
+ })
7743
+ let approvedDiv = row.querySelector('#filter-approved-' + rowIndex) as HTMLDivElement
7744
+ approvedDiv.addEventListener('click', () => {
7745
+ console.log('clicked approved filter', rowIndex)
7746
+ console.log('filter', filtercriteria, filterValue, filterName)
7747
+ this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "approved")
7748
+ })
7749
+ let totalDiv = row.querySelector('#filter-total-' + rowIndex) as HTMLDivElement
7750
+ totalDiv.addEventListener('click', () => {
7751
+ console.log('clicked total filter', rowIndex)
7752
+ console.log('filter', filtercriteria, filterValue, filterName)
7753
+ this.renderStatisticsDetails(filtercriteria, filterValue, filterName)
7754
+ })
7755
+ }
7707
7756
  }
7708
7757
 
7709
7758
  renderStatisticsFilters = (eventsContainer: HTMLDivElement) => {
@@ -7765,6 +7814,7 @@ export class SfIEvents extends LitElement {
7765
7814
  let inputLabelSubfilters = eventsContainer.querySelector('#input-label-subfilter') as HTMLLabelElement
7766
7815
  let selectSubfilterCriteria = eventsContainer.querySelector('#select-subfilter-criteria') as HTMLSelectElement
7767
7816
  selectSubfilterCriteria.value = ""
7817
+ selectSubfilterCriteria.length = 0
7768
7818
 
7769
7819
 
7770
7820
  selectFilterValues.innerHTML = ""
@@ -8278,6 +8328,10 @@ export class SfIEvents extends LitElement {
8278
8328
  valueEnd = ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value;
8279
8329
  }
8280
8330
 
8331
+ if (this.mode == "viewer") {
8332
+ valueStart = this.sdate;
8333
+ valueEnd = this.edate;
8334
+ }
8281
8335
  //console.log('valuestart', valueStart);
8282
8336
  //console.log('valueend', valueEnd);
8283
8337
 
@@ -10334,7 +10388,11 @@ export class SfIEvents extends LitElement {
10334
10388
  html += '</div>';
10335
10389
 
10336
10390
  html += '<div class="d-flex w-100">';
10337
- html += '<div class="calendar-left-col desktop-only flex-col justify-start align-end">';
10391
+ html += '<div class="calendar-left-col desktop-only flex-col justify-start align-end';
10392
+ if (this.mode == "viewer") {
10393
+ html += ' hide';
10394
+ }
10395
+ html += '">';
10338
10396
 
10339
10397
  html += '<div class="title-item-date">';
10340
10398
  html += '<label part="input-label">Start Date</label><br />'
@@ -10503,7 +10561,7 @@ export class SfIEvents extends LitElement {
10503
10561
  this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
10504
10562
  });
10505
10563
 
10506
- if (this.selectedFeatures.indexOf('contracts') >= 0) {
10564
+ if (this.selectedFeatures.indexOf('contracts') >= 0 && this.mode != "viewer") {
10507
10565
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year') as HTMLButtonElement).click();
10508
10566
  }
10509
10567
  // for(var i = 0; i < 3; i++) {
@@ -12747,7 +12805,7 @@ export class SfIEvents extends LitElement {
12747
12805
  }
12748
12806
 
12749
12807
  renderGraph = (divContainer: HTMLDivElement, pieData: any, partData: any, lateData: any, complianceData: any, param: string) => {
12750
- console.log('rendering graph chart2');
12808
+ console.log('rendering graph chart2', pieData, partData);
12751
12809
  this.clearSelectedGraphParam();
12752
12810
  // this.clearSelectedLegend();
12753
12811
 
@@ -12822,6 +12880,120 @@ export class SfIEvents extends LitElement {
12822
12880
 
12823
12881
  }
12824
12882
 
12883
+ renderStatisticsDetails = async (filter: string, filterid: string, filtervalue: string, filterstatus: string = "") => {
12884
+
12885
+
12886
+ let userid = this.userProfileId
12887
+ // let username = this.userName;
12888
+ let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
12889
+ let rolestr = "viewer"
12890
+ if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
12891
+ userid = filterid;
12892
+ // username = filtervalue;
12893
+ rolestr = filter
12894
+ await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, userid, rolestr, this.entityId, this.countryId, this.locationId, this.tagId, this.functionId);
12895
+ filterString = `${filter} - ${filtervalue}`;
12896
+ } else if (filter == "function") {
12897
+ await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, this.countryId, this.locationId, filterid, this.functionId);
12898
+ // filterString = `tagid="${filterid}" selectedcriteria="Tag - ${filtervalue}"`;
12899
+ filterString = `Function - ${filtervalue}`;
12900
+ } else if (filter == "location") {
12901
+ await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, this.countryId, filterid, this.tagId, this.functionId);
12902
+ // filterString = `locationid="${filterid}" selectedcriteria="Location - ${filtervalue}"`;
12903
+ filterString = `Location - ${filtervalue}`;
12904
+ }
12905
+
12906
+ var html = `
12907
+
12908
+ <div class="d-flex justify-between m-20">
12909
+ <button part="button-icon" class="material-icons invisible">close</button>
12910
+ <h3 part="results-title" class="m-0">Statistics Details: <strong>${filterString}</strong></h3>
12911
+ <button id="button-detail-close" part="button-icon" class="material-icons">close</button>
12912
+ </div>
12913
+
12914
+ `;
12915
+ html += `
12916
+ <div id="list-container" class="list-container m-20 pb-20" part="list-container"></div>
12917
+ `;
12918
+ // html += `
12919
+ // <sf-i-events id="statistics-drilldown" name="Statistics" apiid="dwqyez2puoxmu.cloudfront.net/event" exportparts="detail-container" mode="viewer"
12920
+ // apiidtags="${this.apiIdTags}"
12921
+ // apiidusers="${this.apiIdUsers}"
12922
+ // apiidstatutes="${this.apiIdStatutes}"
12923
+ // apiiddefinitions="${this.apiIdDefinitions}"
12924
+ // apiidreportformats="${this.apiidReportformats}"
12925
+ // apiidnotices="${this.apiIdNotices}"
12926
+ // apiidagreements="${this.apiIdAgreements}"
12927
+ // apiidlicenses="${this.apiIdLicenses}" username="${username}"
12928
+ // userprofileid="${userid}" projectid="${this.projectId}"
12929
+ // projectname="${this.projectName}" ${filterString}
12930
+ // myrole="${rolestr}" showregisterexport="false"
12931
+ // features="${this.features.replace(/"/g, "&quot;")}"
12932
+ // selectedfeatures="${JSON.stringify(this.selectedFeatures).replace(/"/g, "&quot;")}"
12933
+ // eventfielddependencies="${this.eventFieldDependencies.replace(/"/g, "&quot;")}"
12934
+ // eventfields="${this.eventFields.replace(/"/g, "&quot;")}"
12935
+ // eventpreviewfields="${this.eventPreviewFields.replace(/"/g, "&quot;")}"
12936
+ // eventhidefields="${this.eventHideFields.replace(/"/g, "&quot;")}"
12937
+ // calendarstartdd="${this.calendarStartDD}" calendarstartmm="${this.calendarStartMM}" calendarstartyyyy="${this.calendarStartYYYY}"
12938
+ // sdate="${this.sdate}" edate="${this.edate}"
12939
+ // flowgraphcompleteness="${this.FLOW_GRAPH_COMPLETENESS}">
12940
+
12941
+ // <div slot="uploader">
12942
+ // <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
12943
+ // allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]"
12944
+ // extract="yes" projectid="${this.projectId}" maxsize="31457280"
12945
+ // allowdownload="yes"></sf-i-uploader>
12946
+ // </div>
12947
+ // <div slot="reporting">
12948
+ // <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
12949
+ // </div>
12950
+
12951
+ // </sf-i-events>
12952
+ // `;
12953
+ (this._SfDetailListContainer as HTMLDivElement).style.display = 'block';
12954
+ (this._SfDetailListContainer as HTMLDivElement).innerHTML = html;
12955
+
12956
+ // this.renderRangeEvents(new Date(this.sdate), ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24), (this._SfDetailListContainer as HTMLDivElement).querySelector('.list-container') as HTMLDivElement);
12957
+
12958
+ const lastDay = ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24)
12959
+ let firstDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
12960
+ let endDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
12961
+ endDay?.setDate(endDay.getDate() + lastDay);
12962
+ console.log('firstday', firstDay, endDay)
12963
+ var period = ("0" + (firstDay.getMonth() + 1)).slice(-2) + "/" + ("0" + firstDay.getDate()).slice(-2) + '/' + firstDay.getFullYear() + ' - ' + ("0" + (endDay.getMonth() + 1)).slice(-2) + "/" + ("0" + endDay.getDate()).slice(-2) + '/' + endDay.getFullYear();
12964
+
12965
+ console.log('rangeperiod', period, lastDay);
12966
+
12967
+ var htmlEvents = this.renderEvents(firstDay, endDay, 0, lastDay, false, 0, ((new Date(this.sdate)).getMonth()), period, (new Date(this.sdate)), "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), false, true);
12968
+
12969
+ ((this._SfDetailListContainer as HTMLDivElement).querySelector('#list-container') as HTMLDivElement).innerHTML = htmlEvents;
12970
+ let divContainer = ((this._SfDetailListContainer as HTMLDivElement).querySelector('#list-container') as HTMLDivElement)
12971
+ const itemsTimeliness = divContainer.querySelectorAll('.stat-timeliness') as NodeListOf<HTMLElement>;
12972
+ for (var i = 0; i < itemsTimeliness.length; i++) {
12973
+ itemsTimeliness[i].style.display = 'none';
12974
+ }
12975
+ const itemsCompliance = divContainer.querySelectorAll('.stat-compliance') as NodeListOf<HTMLElement>;
12976
+ for (var i = 0; i < itemsCompliance.length; i++) {
12977
+ itemsCompliance[i].style.display = 'none';
12978
+ }
12979
+ if(filterstatus != ""){
12980
+ this.processGraphFilter(filterstatus, divContainer);
12981
+ }
12982
+ (this._SfDetailListContainer as HTMLDivElement).querySelector('#button-detail-close')?.addEventListener('click', () => {
12983
+
12984
+ (this._SfDetailListContainer as HTMLDivElement).innerHTML = '';
12985
+ (this._SfDetailListContainer as HTMLDivElement).style.display = 'none';
12986
+
12987
+ });
12988
+
12989
+ // let statisticsDrilldown = (this._SfDetailContainer as HTMLDivElement).querySelector('#statistics-drilldown') as SfIEvents;
12990
+ // statisticsDrilldown.sdate = this.sdate
12991
+ // statisticsDrilldown.edate = this.edate
12992
+ // statisticsDrilldown.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
12993
+ // setTimeout(() => {
12994
+ // statisticsDrilldown.loadMode();
12995
+ // }, 1000);
12996
+ }
12825
12997
  renderEventDetailShort = (compliance: any) => {
12826
12998
 
12827
12999
  var html = `
@@ -13048,10 +13220,11 @@ export class SfIEvents extends LitElement {
13048
13220
  </div>
13049
13221
  `
13050
13222
  html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:repoortiinig-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:repoortiinig-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected, " name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
13051
-
13052
- html += '<div part="reporting-view-container">'
13053
- html += this.renderReporting(listEvent, mmddyyyy);
13054
- html += "</div>"
13223
+ if (this.mode != "viewer") {
13224
+ html += '<div part="reporting-view-container">'
13225
+ html += this.renderReporting(listEvent, mmddyyyy);
13226
+ html += "</div>"
13227
+ }
13055
13228
 
13056
13229
  html += '<div class="d-flex justify-between m-20">';
13057
13230
  html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
@@ -13231,7 +13404,7 @@ export class SfIEvents extends LitElement {
13231
13404
  let flagBulk = false;
13232
13405
  if (this.selectedItemIds.length <= 1) {
13233
13406
  console.log('mmddyyyy', mmddyyyy)
13234
- if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
13407
+ if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
13235
13408
  for (var p = 0; p < this.events[mmdd].length; p++) {
13236
13409
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13237
13410
 
@@ -13270,7 +13443,7 @@ export class SfIEvents extends LitElement {
13270
13443
  "userid": this.userProfileId,
13271
13444
  "userrole": this.myRole,
13272
13445
  "year": this.calendarStartYYYY,
13273
- "module": listEvent.module ?? "events"
13446
+ "module": listEvent.module ?? "compliance"
13274
13447
  })
13275
13448
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
13276
13449
 
@@ -13364,7 +13537,7 @@ export class SfIEvents extends LitElement {
13364
13537
  let flagBulk = false;
13365
13538
  if (this.selectedItemIds.length <= 1) {
13366
13539
 
13367
- if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
13540
+ if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
13368
13541
  for (var p = 0; p < this.events[mmdd].length; p++) {
13369
13542
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
13370
13543
  this.events[mmdd][p].approved = approved
@@ -13404,7 +13577,7 @@ export class SfIEvents extends LitElement {
13404
13577
  "userid": this.userProfileId,
13405
13578
  "userrole": this.myRole,
13406
13579
  "year": this.calendarStartYYYY,
13407
- "module": listEvent.module ?? "events"
13580
+ "module": listEvent.module ?? "compliance"
13408
13581
  })
13409
13582
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
13410
13583
 
@@ -13639,7 +13812,7 @@ export class SfIEvents extends LitElement {
13639
13812
  // "userid": this.userProfileId,
13640
13813
  // "userrole": this.myRole,
13641
13814
  // "year": this.calendarStartYYYY,
13642
- // "module": listEvent.module ?? "events"
13815
+ // "module": listEvent.module ?? "compliance"
13643
13816
  // } )
13644
13817
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
13645
13818
 
@@ -13662,7 +13835,7 @@ export class SfIEvents extends LitElement {
13662
13835
  "userid": this.userProfileId,
13663
13836
  "userrole": this.myRole,
13664
13837
  "year": this.calendarStartYYYY,
13665
- "module": listEvent.module ?? "events",
13838
+ "module": listEvent.module ?? "compliance",
13666
13839
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
13667
13840
  })
13668
13841
  // }
@@ -13915,11 +14088,12 @@ export class SfIEvents extends LitElement {
13915
14088
  </div>
13916
14089
  `
13917
14090
  html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="Contract Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdAgreements + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
14091
+ if (this.mode != "viewer") {
14092
+ html += '<div part="reporting-view-container">'
13918
14093
 
13919
- html += '<div part="reporting-view-container">'
13920
-
13921
- html += this.renderReporting(listEvent, mmddyyyy);
13922
- html += "</div>"
14094
+ html += this.renderReporting(listEvent, mmddyyyy);
14095
+ html += "</div>"
14096
+ }
13923
14097
 
13924
14098
  html += '<div class="d-flex justify-between m-20">';
13925
14099
  html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
@@ -14112,7 +14286,7 @@ export class SfIEvents extends LitElement {
14112
14286
  let flagBulk = false;
14113
14287
  if (this.selectedItemIds.length <= 1) {
14114
14288
  console.log('mmddyyyy', mmddyyyy)
14115
- if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
14289
+ if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
14116
14290
  if (approved) {
14117
14291
  await this.renewContract(listEvent, reportformatvalues);
14118
14292
  } else {
@@ -14157,7 +14331,7 @@ export class SfIEvents extends LitElement {
14157
14331
  "userid": this.userProfileId,
14158
14332
  "userrole": this.myRole,
14159
14333
  "year": this.calendarStartYYYY,
14160
- "module": listEvent.module ?? "events"
14334
+ "module": listEvent.module ?? "compliance"
14161
14335
  })
14162
14336
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
14163
14337
 
@@ -14251,7 +14425,7 @@ export class SfIEvents extends LitElement {
14251
14425
  let flagBulk = false;
14252
14426
  if (this.selectedItemIds.length <= 1) {
14253
14427
 
14254
- if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
14428
+ if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
14255
14429
  for (var p = 0; p < this.events[mmdd].length; p++) {
14256
14430
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
14257
14431
  this.events[mmdd][p].approved = approved
@@ -14291,7 +14465,7 @@ export class SfIEvents extends LitElement {
14291
14465
  "userid": this.userProfileId,
14292
14466
  "userrole": this.myRole,
14293
14467
  "year": this.calendarStartYYYY,
14294
- "module": listEvent.module ?? "events"
14468
+ "module": listEvent.module ?? "compliance"
14295
14469
  })
14296
14470
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
14297
14471
 
@@ -14531,7 +14705,7 @@ export class SfIEvents extends LitElement {
14531
14705
  // "userid": this.userProfileId,
14532
14706
  // "userrole": this.myRole,
14533
14707
  // "year": this.calendarStartYYYY,
14534
- // "module": listEvent.module ?? "events"
14708
+ // "module": listEvent.module ?? "compliance"
14535
14709
  // } )
14536
14710
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
14537
14711
 
@@ -14554,7 +14728,7 @@ export class SfIEvents extends LitElement {
14554
14728
  "userid": this.userProfileId,
14555
14729
  "userrole": this.myRole,
14556
14730
  "year": this.calendarStartYYYY,
14557
- "module": listEvent.module ?? "events",
14731
+ "module": listEvent.module ?? "compliance",
14558
14732
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
14559
14733
  })
14560
14734
  // }
@@ -14808,11 +14982,12 @@ export class SfIEvents extends LitElement {
14808
14982
  </div>
14809
14983
  `
14810
14984
  html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="License Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdLicenses + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
14985
+ if (this.mode != "viewer") {
14986
+ html += '<div part="reporting-view-container">'
14811
14987
 
14812
- html += '<div part="reporting-view-container">'
14813
-
14814
- html += this.renderReporting(listEvent, mmddyyyy);
14815
- html += "</div>"
14988
+ html += this.renderReporting(listEvent, mmddyyyy);
14989
+ html += "</div>"
14990
+ }
14816
14991
 
14817
14992
  html += '<div class="d-flex justify-between m-20">';
14818
14993
  html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
@@ -15006,7 +15181,7 @@ export class SfIEvents extends LitElement {
15006
15181
  let flagBulk = false;
15007
15182
  if (this.selectedItemIds.length <= 1) {
15008
15183
  console.log('mmddyyyy', mmddyyyy)
15009
- if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
15184
+ if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
15010
15185
  if (approved) {
15011
15186
  await this.renewLicense(listEvent, reportformatvalues);
15012
15187
  } else {
@@ -15051,7 +15226,7 @@ export class SfIEvents extends LitElement {
15051
15226
  "userid": this.userProfileId,
15052
15227
  "userrole": this.myRole,
15053
15228
  "year": this.calendarStartYYYY,
15054
- "module": listEvent.module ?? "events"
15229
+ "module": listEvent.module ?? "compliance"
15055
15230
  })
15056
15231
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
15057
15232
 
@@ -15145,7 +15320,7 @@ export class SfIEvents extends LitElement {
15145
15320
  let flagBulk = false;
15146
15321
  if (this.selectedItemIds.length <= 1) {
15147
15322
 
15148
- if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
15323
+ if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
15149
15324
  for (var p = 0; p < this.events[mmdd].length; p++) {
15150
15325
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
15151
15326
  this.events[mmdd][p].approved = approved
@@ -15185,7 +15360,7 @@ export class SfIEvents extends LitElement {
15185
15360
  "userid": this.userProfileId,
15186
15361
  "userrole": this.myRole,
15187
15362
  "year": this.calendarStartYYYY,
15188
- "module": listEvent.module ?? "events"
15363
+ "module": listEvent.module ?? "compliance"
15189
15364
  })
15190
15365
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
15191
15366
 
@@ -15425,7 +15600,7 @@ export class SfIEvents extends LitElement {
15425
15600
  // "userid": this.userProfileId,
15426
15601
  // "userrole": this.myRole,
15427
15602
  // "year": this.calendarStartYYYY,
15428
- // "module": listEvent.module ?? "events"
15603
+ // "module": listEvent.module ?? "compliance"
15429
15604
  // } )
15430
15605
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
15431
15606
 
@@ -15448,7 +15623,7 @@ export class SfIEvents extends LitElement {
15448
15623
  "userid": this.userProfileId,
15449
15624
  "userrole": this.myRole,
15450
15625
  "year": this.calendarStartYYYY,
15451
- "module": listEvent.module ?? "events",
15626
+ "module": listEvent.module ?? "compliance",
15452
15627
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
15453
15628
  })
15454
15629
  // }
@@ -15702,11 +15877,12 @@ export class SfIEvents extends LitElement {
15702
15877
  </div>
15703
15878
  `
15704
15879
  html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="RCM Resource Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdRCMResources + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
15880
+ if (this.mode != "viewer") {
15881
+ html += '<div part="reporting-view-container">'
15705
15882
 
15706
- html += '<div part="reporting-view-container">'
15707
-
15708
- html += this.renderReporting(listEvent, mmddyyyy);
15709
- html += "</div>"
15883
+ html += this.renderReporting(listEvent, mmddyyyy);
15884
+ html += "</div>"
15885
+ }
15710
15886
 
15711
15887
  html += '<div class="d-flex justify-between m-20">';
15712
15888
  html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
@@ -15900,7 +16076,7 @@ export class SfIEvents extends LitElement {
15900
16076
  let flagBulk = false;
15901
16077
  if (this.selectedItemIds.length <= 1) {
15902
16078
  console.log('mmddyyyy', mmddyyyy)
15903
- if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
16079
+ if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
15904
16080
  if (approved) {
15905
16081
  await this.renewRCMResource(listEvent, reportformatvalues);
15906
16082
  } else {
@@ -15945,7 +16121,7 @@ export class SfIEvents extends LitElement {
15945
16121
  "userid": this.userProfileId,
15946
16122
  "userrole": this.myRole,
15947
16123
  "year": this.calendarStartYYYY,
15948
- "module": listEvent.module ?? "events"
16124
+ "module": listEvent.module ?? "compliance"
15949
16125
  })
15950
16126
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
15951
16127
 
@@ -16039,7 +16215,7 @@ export class SfIEvents extends LitElement {
16039
16215
  let flagBulk = false;
16040
16216
  if (this.selectedItemIds.length <= 1) {
16041
16217
 
16042
- if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "events")) {
16218
+ if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.module ?? "compliance")) {
16043
16219
  for (var p = 0; p < this.events[mmdd].length; p++) {
16044
16220
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
16045
16221
  this.events[mmdd][p].approved = approved
@@ -16079,7 +16255,7 @@ export class SfIEvents extends LitElement {
16079
16255
  "userid": this.userProfileId,
16080
16256
  "userrole": this.myRole,
16081
16257
  "year": this.calendarStartYYYY,
16082
- "module": listEvent.module ?? "events"
16258
+ "module": listEvent.module ?? "compliance"
16083
16259
  })
16084
16260
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
16085
16261
 
@@ -16319,7 +16495,7 @@ export class SfIEvents extends LitElement {
16319
16495
  // "userid": this.userProfileId,
16320
16496
  // "userrole": this.myRole,
16321
16497
  // "year": this.calendarStartYYYY,
16322
- // "module": listEvent.module ?? "events"
16498
+ // "module": listEvent.module ?? "compliance"
16323
16499
  // } )
16324
16500
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
16325
16501
 
@@ -16342,7 +16518,7 @@ export class SfIEvents extends LitElement {
16342
16518
  "userid": this.userProfileId,
16343
16519
  "userrole": this.myRole,
16344
16520
  "year": this.calendarStartYYYY,
16345
- "module": listEvent.module ?? "events",
16521
+ "module": listEvent.module ?? "compliance",
16346
16522
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
16347
16523
  })
16348
16524
  // }
@@ -16879,11 +17055,12 @@ export class SfIEvents extends LitElement {
16879
17055
 
16880
17056
  html += '</div>';
16881
17057
 
16882
- if (this.mode == "consumer" || this.mode == "next") {
16883
-
16884
- html += '<div part="reporting-view-container">'
16885
- html += this.renderReporting(event, mmddyyyy);
16886
- html += "</div>"
17058
+ if (this.mode == "consumer" || this.mode == "next" || this.mode == "viewer") {
17059
+ if (this.mode != "viewer") {
17060
+ html += '<div part="reporting-view-container">'
17061
+ html += this.renderReporting(event, mmddyyyy);
17062
+ html += "</div>"
17063
+ }
16887
17064
 
16888
17065
  html += '<div class="d-flex justify-between m-20">';
16889
17066
  html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
@@ -16972,11 +17149,12 @@ export class SfIEvents extends LitElement {
16972
17149
  // for(let attachmentUploader of attachmentUploaders){
16973
17150
  // attachmentUploader.loadMode();
16974
17151
  // }
17152
+ if (this.mode != "viewer") {
17153
+ let ddmmyyyy = mmddyyyy.split('/')[1] + '/' + mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[2];
16975
17154
 
16976
- let ddmmyyyy = mmddyyyy.split('/')[1] + '/' + mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[2];
16977
-
16978
- let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
16979
- (this._SfUploader[0].querySelector('#uploader') as SfIUploader).emailcontent = emailcontent;
17155
+ let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Reporter</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.reporters[0].split(';')[0]}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Approver</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.approvers[0].split(';')[0]}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
17156
+ (this._SfUploader[0].querySelector('#uploader') as SfIUploader).emailcontent = emailcontent;
17157
+ }
16980
17158
  (this._SfDetailContainer as HTMLDivElement).querySelector('.button-delete')?.addEventListener('click', async () => {
16981
17159
 
16982
17160
  await this.fetchDeleteReview(event["id"], mmddyyyy, entityId, locationId);
@@ -17003,7 +17181,7 @@ export class SfIEvents extends LitElement {
17003
17181
  });
17004
17182
  (this._SfDetailContainer as HTMLDivElement).querySelector('#button-auto-approve')?.addEventListener('click', async () => {
17005
17183
  if (this.selectedItemIds.length <= 1) {
17006
- await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "events");
17184
+ await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
17007
17185
  this.setSuccess('Auto-Approved successfully!')
17008
17186
  setTimeout(() => {
17009
17187
  this.clearMessages()
@@ -17033,7 +17211,7 @@ export class SfIEvents extends LitElement {
17033
17211
  "userid": this.userProfileId,
17034
17212
  "userrole": this.myRole,
17035
17213
  "year": this.calendarStartYYYY,
17036
- "module": event.module ?? "events"
17214
+ "module": event.module ?? "compliance"
17037
17215
  })
17038
17216
  }
17039
17217
  await this.uploadReviewsBulk(bulkBodyReview);
@@ -17260,7 +17438,7 @@ export class SfIEvents extends LitElement {
17260
17438
  let flagBulk = false;
17261
17439
  if (this.selectedItemIds.length <= 1) {
17262
17440
  // console.log('mmddyyyy', mmddyyyy)
17263
- if (await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.module ?? "events")) {
17441
+ if (await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.module ?? "compliance")) {
17264
17442
  for (var p = 0; p < this.events[mmdd].length; p++) {
17265
17443
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17266
17444
 
@@ -17298,7 +17476,7 @@ export class SfIEvents extends LitElement {
17298
17476
  "userid": this.userProfileId,
17299
17477
  "userrole": this.myRole,
17300
17478
  "year": this.calendarStartYYYY,
17301
- "module": event.module ?? "events"
17479
+ "module": event.module ?? "compliance"
17302
17480
  })
17303
17481
  // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
17304
17482
 
@@ -17392,7 +17570,7 @@ export class SfIEvents extends LitElement {
17392
17570
  let flagBulk = false;
17393
17571
  if (this.selectedItemIds.length <= 1) {
17394
17572
 
17395
- if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.module ?? "events")) {
17573
+ if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.module ?? "compliance")) {
17396
17574
  for (var p = 0; p < this.events[mmdd].length; p++) {
17397
17575
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17398
17576
  this.events[mmdd][p].approved = approved
@@ -17431,7 +17609,7 @@ export class SfIEvents extends LitElement {
17431
17609
  "userid": this.userProfileId,
17432
17610
  "userrole": this.myRole,
17433
17611
  "year": this.calendarStartYYYY,
17434
- "module": event.module ?? "events"
17612
+ "module": event.module ?? "compliance"
17435
17613
  })
17436
17614
  // await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
17437
17615
 
@@ -17602,7 +17780,7 @@ export class SfIEvents extends LitElement {
17602
17780
  //console.log('makerscheckers', makercheckers, reportercomments);
17603
17781
  // console.log('reportformatvalues', reportformatvalues)
17604
17782
  // console.log('reportformatschema',reportformatschema)
17605
- if (await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "events", percentage, makercheckers)) {
17783
+ if (await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.module ?? "compliance", percentage, makercheckers)) {
17606
17784
  console.log('this.events', this.events);
17607
17785
  for (var p = 0; p < this.events[mmdd].length; p++) {
17608
17786
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
@@ -17613,7 +17791,7 @@ export class SfIEvents extends LitElement {
17613
17791
  }
17614
17792
  if (makercheckers.length > 0) {
17615
17793
 
17616
- // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "events");
17794
+ // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.module ?? "compliance");
17617
17795
  for (var p = 0; p < this.events[mmdd].length; p++) {
17618
17796
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
17619
17797
  this.events[mmdd][p].approved = true
@@ -17660,7 +17838,7 @@ export class SfIEvents extends LitElement {
17660
17838
  // "userid": this.userProfileId,
17661
17839
  // "userrole": this.myRole,
17662
17840
  // "year": this.calendarStartYYYY,
17663
- // "module": event.module ?? "events"
17841
+ // "module": event.module ?? "compliance"
17664
17842
  // })
17665
17843
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
17666
17844
  // if(parseInt(makercheckersL) > 0) {
@@ -17683,7 +17861,7 @@ export class SfIEvents extends LitElement {
17683
17861
  // "userid": this.userProfileId,
17684
17862
  // "userrole": this.myRole,
17685
17863
  // "year": this.calendarStartYYYY,
17686
- // "module": event.module ?? "events"
17864
+ // "module": event.module ?? "compliance"
17687
17865
  // } )
17688
17866
  // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
17689
17867
 
@@ -17706,7 +17884,7 @@ export class SfIEvents extends LitElement {
17706
17884
  "userid": this.userProfileId,
17707
17885
  "userrole": this.myRole,
17708
17886
  "year": this.calendarStartYYYY,
17709
- "module": event.module ?? "events",
17887
+ "module": event.module ?? "compliance",
17710
17888
  "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
17711
17889
  })
17712
17890
  // }
@@ -19301,7 +19479,7 @@ export class SfIEvents extends LitElement {
19301
19479
  let tempObj = taggingArray.data.mappings.mappings[i]
19302
19480
  delete tempObj['delta'];
19303
19481
  delete tempObj['lastupdated'];
19304
- if(tempObj["id"].indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0 || tempObj["id"].indexOf("90dbfbcc-a009-4778-b28e-a463867ceea9") >= 0 || tempObj["id"].indexOf("62330e24-298d-4ef2-9449-c0e400e37cac") >= 0 || tempObj["id"].indexOf("b9370711-024a-498a-8ce2-21c549824600") >= 0){
19482
+ if (tempObj["id"].indexOf("6fb88c28-d572-4b55-b16c-957a519733b9") >= 0 || tempObj["id"].indexOf("90dbfbcc-a009-4778-b28e-a463867ceea9") >= 0 || tempObj["id"].indexOf("62330e24-298d-4ef2-9449-c0e400e37cac") >= 0 || tempObj["id"].indexOf("b9370711-024a-498a-8ce2-21c549824600") >= 0) {
19305
19483
  console.log('changed onboarding item', tempObj, obj, JSON.stringify(tempObj) !== JSON.stringify(obj))
19306
19484
  }
19307
19485
  if (JSON.stringify(tempObj) !== JSON.stringify(obj)) {
@@ -20629,7 +20807,7 @@ export class SfIEvents extends LitElement {
20629
20807
 
20630
20808
  //console.log('rendering triggers...', (this._SfOnboardingTriggersContainer as HTMLDivElement).innerHTML);
20631
20809
 
20632
- this.renderTaggingTable((this._SfOnboardingTriggersListContainer as HTMLDivElement), mappedSerializedAlertSchedules, mappedTriggers, ["shortid","obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20810
+ this.renderTaggingTable((this._SfOnboardingTriggersListContainer as HTMLDivElement), mappedSerializedAlertSchedules, mappedTriggers, ["shortid", "obligationtitle", "obligationtype"], this.uploadTriggersMapping, this.loadOnboardingTriggers, "triggers", ["id", "entityname", "locationname"], '', "", ["triggers"], triggersJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20633
20811
 
20634
20812
  }
20635
20813
 
@@ -20642,7 +20820,7 @@ export class SfIEvents extends LitElement {
20642
20820
 
20643
20821
  (this._SfOnboardingInternalControlsContainer as HTMLDivElement).innerHTML = html;
20644
20822
 
20645
- this.renderTaggingTable((this._SfOnboardingInternalControlsListContainer as HTMLDivElement), mappedSerializedTriggers, mappedInternalControls, ["shortid","obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20823
+ this.renderTaggingTable((this._SfOnboardingInternalControlsListContainer as HTMLDivElement), mappedSerializedTriggers, mappedInternalControls, ["shortid", "obligationtitle", "obligationtype"], this.uploadInternalControlsMapping, this.loadOnboardingInternalControls, "internalcontrols", ["id", "entityname", "locationname"], '', "", ["internalcontrols"], internalcontrolsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20646
20824
 
20647
20825
  }
20648
20826
 
@@ -20655,7 +20833,7 @@ export class SfIEvents extends LitElement {
20655
20833
 
20656
20834
  (this._SfOnboardingActivationsContainer as HTMLDivElement).innerHTML = html;
20657
20835
 
20658
- this.renderTaggingTable((this._SfOnboardingActivationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedActivations, ["shortid","obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20836
+ this.renderTaggingTable((this._SfOnboardingActivationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedActivations, ["shortid", "obligationtitle", "obligationtype"], this.uploadActivationsMapping, this.loadOnboardingActivations, "activations", ["id", "entityname", "locationname"], '', "", ["activations"], activationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20659
20837
 
20660
20838
  }
20661
20839
 
@@ -20668,7 +20846,7 @@ export class SfIEvents extends LitElement {
20668
20846
 
20669
20847
  (this._SfOnboardingInvalidationsContainer as HTMLDivElement).innerHTML = html;
20670
20848
 
20671
- this.renderTaggingTable((this._SfOnboardingInvalidationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedInvalidations, ["shortid","obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20849
+ this.renderTaggingTable((this._SfOnboardingInvalidationListContainer as HTMLDivElement), mappedSerializedExtensions, mappedInvalidations, ["shortid", "obligationtitle", "obligationtype"], this.uploadInvalidationsMapping, this.loadOnboardingInvalidations, "invalidations", ["id", "entityname", "locationname"], '', "", ["invalidations"], invalidationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20672
20850
 
20673
20851
  }
20674
20852
 
@@ -20681,7 +20859,7 @@ export class SfIEvents extends LitElement {
20681
20859
 
20682
20860
  (this._SfOnboardingAlertSchedulesContainer as HTMLDivElement).innerHTML = html;
20683
20861
 
20684
- this.renderTaggingTable((this._SfOnboardingAlertSchedulesListContainer as HTMLDivElement), mappedSerializedExtensions, mappedAlertSchedules, ["shortid","obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20862
+ this.renderTaggingTable((this._SfOnboardingAlertSchedulesListContainer as HTMLDivElement), mappedSerializedExtensions, mappedAlertSchedules, ["shortid", "obligationtitle", "obligationtype"], this.uploadAlertSchedulesMapping, this.loadOnboardingAlertSchedules, "alertschedules", ["id", "entityname", "locationname"], '', "", ["alertschedules"], alertschedulesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20685
20863
 
20686
20864
  }
20687
20865
 
@@ -20694,7 +20872,7 @@ export class SfIEvents extends LitElement {
20694
20872
 
20695
20873
  (this._SfOnboardingExtensionsContainer as HTMLDivElement).innerHTML = html;
20696
20874
 
20697
- this.renderTaggingTable((this._SfOnboardingExtensionsListContainer as HTMLDivElement), mappedSerializedDuedates, mappedExtensions, ["shortid","obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20875
+ this.renderTaggingTable((this._SfOnboardingExtensionsListContainer as HTMLDivElement), mappedSerializedDuedates, mappedExtensions, ["shortid", "obligationtitle", "obligationtype"], this.uploadExtensionsMapping, this.loadOnboardingExtensions, "extensions", ["id", "entityname", "locationname"], '', "", ["extensions"], extensionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20698
20876
 
20699
20877
  }
20700
20878
 
@@ -20707,7 +20885,7 @@ export class SfIEvents extends LitElement {
20707
20885
 
20708
20886
  (this._SfOnboardingDuedatesContainer as HTMLDivElement).innerHTML = html;
20709
20887
 
20710
- this.renderTaggingTable((this._SfOnboardingDuedatesListContainer as HTMLDivElement), mappedSerializedMakerCheckers, mappedDuedates, ["shortid","obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20888
+ this.renderTaggingTable((this._SfOnboardingDuedatesListContainer as HTMLDivElement), mappedSerializedMakerCheckers, mappedDuedates, ["shortid", "obligationtitle", "obligationtype"], this.uploadDuedatesMapping, this.loadOnboardingDuedates, "duedates", ["id", "entityname", "locationname"], '', "", ["duedates"], duedatesJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20711
20889
 
20712
20890
  }
20713
20891
 
@@ -20720,7 +20898,7 @@ export class SfIEvents extends LitElement {
20720
20898
 
20721
20899
  (this._SfOnboardingReportersContainer as HTMLDivElement).innerHTML = html;
20722
20900
 
20723
- this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement), mappedSerializedTags, mappedReporters, ["shortid","obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20901
+ this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement), mappedSerializedTags, mappedReporters, ["shortid", "obligationtitle", "obligationtype"], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20724
20902
 
20725
20903
  }
20726
20904
 
@@ -20733,7 +20911,7 @@ export class SfIEvents extends LitElement {
20733
20911
 
20734
20912
  (this._SfOnboardingApproversContainer as HTMLDivElement).innerHTML = html;
20735
20913
 
20736
- this.renderTaggingTable((this._SfOnboardingApproversListContainer as HTMLDivElement), mappedSerializedReporters, mappedApprovers, ["shortid","obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20914
+ this.renderTaggingTable((this._SfOnboardingApproversListContainer as HTMLDivElement), mappedSerializedReporters, mappedApprovers, ["shortid", "obligationtitle", "obligationtype"], this.uploadApproversMapping, this.loadOnboardingApprovers, "approvers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["approvers"], approversJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20737
20915
 
20738
20916
  }
20739
20917
 
@@ -20746,7 +20924,7 @@ export class SfIEvents extends LitElement {
20746
20924
 
20747
20925
  (this._SfOnboardingFunctionHeadsContainer as HTMLDivElement).innerHTML = html;
20748
20926
 
20749
- this.renderTaggingTable((this._SfOnboardingFunctionHeadsListContainer as HTMLDivElement), mappedSerializedApprovers, mappedFunctionHeads, ["shortid","obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20927
+ this.renderTaggingTable((this._SfOnboardingFunctionHeadsListContainer as HTMLDivElement), mappedSerializedApprovers, mappedFunctionHeads, ["shortid", "obligationtitle", "obligationtype"], this.uploadFunctionHeadsMapping, this.loadOnboardingFunctionHeads, "functionheads", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["functionheads"], functionHeadsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20750
20928
 
20751
20929
  }
20752
20930
 
@@ -20759,7 +20937,7 @@ export class SfIEvents extends LitElement {
20759
20937
 
20760
20938
  (this._SfOnboardingMakerCheckersContainer as HTMLDivElement).innerHTML = html;
20761
20939
 
20762
- this.renderTaggingTable((this._SfOnboardingMakerCheckersListContainer as HTMLDivElement), mappedSerializedDocs, mappedMakerCheckers, ["shortid","obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20940
+ this.renderTaggingTable((this._SfOnboardingMakerCheckersListContainer as HTMLDivElement), mappedSerializedDocs, mappedMakerCheckers, ["shortid", "obligationtitle", "obligationtype"], this.uploadMakerCheckersMapping, this.loadOnboardingMakerCheckers, "makercheckers", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["makercheckers"], makerCheckerJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20763
20941
 
20764
20942
  }
20765
20943
 
@@ -20772,7 +20950,7 @@ export class SfIEvents extends LitElement {
20772
20950
 
20773
20951
  (this._SfOnboardingDocsContainer as HTMLDivElement).innerHTML = html;
20774
20952
 
20775
- this.renderTaggingTable((this._SfOnboardingDocsListContainer as HTMLDivElement), mappedSerializedViewers, mappedDocs, ["shortid","obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20953
+ this.renderTaggingTable((this._SfOnboardingDocsListContainer as HTMLDivElement), mappedSerializedViewers, mappedDocs, ["shortid", "obligationtitle", "obligationtype"], this.uploadDocsMapping, this.loadOnboardingDocs, "docs", ["id", "entityname", "locationname"], this.apiIdTags, "&MakerChecker", ["docs"], docsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20776
20954
 
20777
20955
  }
20778
20956
 
@@ -20787,7 +20965,7 @@ export class SfIEvents extends LitElement {
20787
20965
 
20788
20966
  (this._SfOnboardingAuditorsContainer as HTMLDivElement).innerHTML = html;
20789
20967
 
20790
- this.renderTaggingTable((this._SfOnboardingAuditorsListContainer as HTMLDivElement), mappedSerializedFunctionheads, mappedAuditors, ["shortid","obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20968
+ this.renderTaggingTable((this._SfOnboardingAuditorsListContainer as HTMLDivElement), mappedSerializedFunctionheads, mappedAuditors, ["shortid", "obligationtitle", "obligationtype"], this.uploadAuditorsMapping, this.loadOnboardingAuditors, "auditors", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["auditors"], auditorsJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20791
20969
 
20792
20970
  }
20793
20971
 
@@ -20802,7 +20980,7 @@ export class SfIEvents extends LitElement {
20802
20980
 
20803
20981
  (this._SfOnboardingViewersContainer as HTMLDivElement).innerHTML = html;
20804
20982
 
20805
- this.renderTaggingTable((this._SfOnboardingViewersListContainer as HTMLDivElement), mappedSerializedAuditors, mappedViewers, ["shortid","obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20983
+ this.renderTaggingTable((this._SfOnboardingViewersListContainer as HTMLDivElement), mappedSerializedAuditors, mappedViewers, ["shortid", "obligationtitle", "obligationtype"], this.uploadViewersMapping, this.loadOnboardingViewers, "viewers", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["viewers"], viewersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
20806
20984
 
20807
20985
  }
20808
20986
 
@@ -20815,7 +20993,7 @@ export class SfIEvents extends LitElement {
20815
20993
 
20816
20994
  (this._SfOnboardingTagsContainer as HTMLDivElement).innerHTML = html;
20817
20995
 
20818
- this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement), mappedSerializedFunctions, mappedTags, ["shortid","obligationtitle", "obligationtype"], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
20996
+ this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement), mappedSerializedFunctions, mappedTags, ["shortid", "obligationtitle", "obligationtype"], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
20819
20997
 
20820
20998
  }
20821
20999
 
@@ -20836,7 +21014,7 @@ export class SfIEvents extends LitElement {
20836
21014
 
20837
21015
  (this._SfOnboardingFunctionsContainer as HTMLDivElement).innerHTML = html;
20838
21016
 
20839
- this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement), mappedSerializedLocations, mappedFunctions, ["shortid","obligationtitle", "obligationtype"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
21017
+ this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement), mappedSerializedLocations, mappedFunctions, ["shortid", "obligationtitle", "obligationtype"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
20840
21018
 
20841
21019
  }
20842
21020
 
@@ -24269,34 +24447,35 @@ export class SfIEvents extends LitElement {
24269
24447
 
24270
24448
  }
24271
24449
 
24272
- processGraphFilter = (clickedValue: string) => {
24450
+ processGraphFilter = (clickedValue: string, detailsListContainer?: HTMLDivElement) => {
24273
24451
 
24274
- let eventContainer = null;
24275
- console.log('processGraphFilter called', clickedValue);
24276
- if (this.getCurrentTab() == this.TAB_STREAM) {
24277
- eventContainer = (this._SfStreamContainer as HTMLDivElement);
24278
- }
24452
+ let eventContainer = detailsListContainer;
24453
+ if (eventContainer == null) {
24454
+ console.log('processGraphFilter called', clickedValue);
24455
+ if (this.getCurrentTab() == this.TAB_STREAM) {
24456
+ eventContainer = (this._SfStreamContainer as HTMLDivElement);
24457
+ }
24279
24458
 
24280
- // if(this.getCurrentTab() == this.TAB_UPCOMING) {
24281
- // eventContainer = (this._SfUpcomingContainer as HTMLDivElement);
24282
- // }
24459
+ // if(this.getCurrentTab() == this.TAB_UPCOMING) {
24460
+ // eventContainer = (this._SfUpcomingContainer as HTMLDivElement);
24461
+ // }
24283
24462
 
24284
- if (this.getCurrentTab() == this.TAB_THIS) {
24285
- eventContainer = (this._SfThisContainer as HTMLDivElement);
24286
- }
24463
+ if (this.getCurrentTab() == this.TAB_THIS) {
24464
+ eventContainer = (this._SfThisContainer as HTMLDivElement);
24465
+ }
24287
24466
 
24288
- // if(this.getCurrentTab() == this.TAB_PAST) {
24289
- // eventContainer = (this._SfPastContainer as HTMLDivElement);
24290
- // }
24467
+ // if(this.getCurrentTab() == this.TAB_PAST) {
24468
+ // eventContainer = (this._SfPastContainer as HTMLDivElement);
24469
+ // }
24291
24470
 
24292
- if (this.getCurrentTab() == this.TAB_CUSTOM) {
24293
- eventContainer = (this._SfCustomContainer as HTMLDivElement);
24294
- }
24471
+ if (this.getCurrentTab() == this.TAB_CUSTOM) {
24472
+ eventContainer = (this._SfCustomContainer as HTMLDivElement);
24473
+ }
24295
24474
 
24296
- if (this.getCurrentTab() == this.TAB_FIND) {
24297
- eventContainer = (this._SfFindContainer as HTMLDivElement);
24475
+ if (this.getCurrentTab() == this.TAB_FIND) {
24476
+ eventContainer = (this._SfFindContainer as HTMLDivElement);
24477
+ }
24298
24478
  }
24299
-
24300
24479
  if (eventContainer == null) return;
24301
24480
  this.graphFilter = clickedValue
24302
24481
  this.selectedItemIds = [];
@@ -24340,7 +24519,7 @@ export class SfIEvents extends LitElement {
24340
24519
  value: clickedValue
24341
24520
  };
24342
24521
  (streamEventFilters as HTMLDivElement).style.display = 'block';
24343
- (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>';
24522
+ (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>' + (detailsListContainer == null ? '<button id="button-filter-cancel" part="button-icon"><span class="material-symbols-outlined">close</span></button>':'') + '</div>';
24344
24523
  (streamEventFilters as HTMLDivElement).querySelector('#button-filter-cancel')?.addEventListener('click', () => {
24345
24524
  this.graphFilter = "";
24346
24525
  this.clearSelectedGraphParam();
@@ -24710,7 +24889,7 @@ export class SfIEvents extends LitElement {
24710
24889
 
24711
24890
  html += '<button class="tab-button mb-10" id="calendar-tab-month" part="' + (selectedTab == this.TAB_STREAM ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Month</button>';
24712
24891
  html += '<button class="tab-button mb-10" id="calendar-tab-custom" part="' + (selectedTab == this.TAB_CUSTOM ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">' + (this.myRole == this.TAB_VIEWER ? "Statistics" : "Range") + '</button>';
24713
- if (this.selectedFeatures.indexOf('contracts') < 0 && this.selectedFeatures.indexOf('licenses') < 0) {
24892
+ if (this.selectedFeatures.indexOf('contracts') < 0 && this.selectedFeatures.indexOf('licenses') < 0 && this.selectedFeatures.indexOf('rcmresources') < 0) {
24714
24893
  html += '<button class="tab-button mb-10" id="calendar-tab-register" part="' + (selectedTab == this.TAB_REGISTERS ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Registers</button>';
24715
24894
  html += '<button class="tab-button tab-button-secondary mb-10 ' + (selectedTab == this.TAB_FIND ? '' : 'hide') + '" id="calendar-tab-find" part="' + (selectedTab == this.TAB_FIND ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Search</button>';
24716
24895
  html += '<button class="tab-button tab-button-secondary mb-10 ' + (selectedTab == this.TAB_THIS ? '' : 'hide') + '" id="calendar-tab-this" part="' + (selectedTab == this.TAB_THIS ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '">Current</button>';
@@ -25855,7 +26034,7 @@ export class SfIEvents extends LitElement {
25855
26034
 
25856
26035
  }
25857
26036
 
25858
- uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
26037
+ uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "compliance") => {
25859
26038
  let url = "https://" + this.apiId + "/uploadaudit1";
25860
26039
 
25861
26040
  const body = {
@@ -25925,7 +26104,7 @@ export class SfIEvents extends LitElement {
25925
26104
  }
25926
26105
  }
25927
26106
 
25928
- uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
26107
+ uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "compliance") => {
25929
26108
  let url = "https://" + this.apiId + "/uploadreview1";
25930
26109
 
25931
26110
  const body = {
@@ -26025,7 +26204,7 @@ export class SfIEvents extends LitElement {
26025
26204
  }
26026
26205
  }
26027
26206
 
26028
- uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100", makercheckers: any) => {
26207
+ uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "compliance", percentage: string = "100", makercheckers: any) => {
26029
26208
  let url = "https://" + this.apiId + "/uploadreport1";
26030
26209
 
26031
26210
  let body = {
@@ -26161,7 +26340,7 @@ export class SfIEvents extends LitElement {
26161
26340
 
26162
26341
  let url = "https://" + this.apiId + "/synccalendar";
26163
26342
 
26164
- const body = { "projectid": (this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0], "events": JSON.stringify(this.events) }
26343
+ const body = { "projectid": (this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0], "compliance": JSON.stringify(this.events) }
26165
26344
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
26166
26345
  const xhr: any = (await this.prepareXhr(body, url, this._SfLoader, authorization)) as any;
26167
26346
  this._SfLoader.innerHTML = '';
@@ -27680,7 +27859,7 @@ export class SfIEvents extends LitElement {
27680
27859
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
27681
27860
  if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
27682
27861
  this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
27683
- console.log('rendering appropriate string', list);
27862
+ console.log('rendering appropriate string', list, this.selectedTab);
27684
27863
  this.renderAppropriateStream(startDate, endDate, true);
27685
27864
  this.fetchBulkReportingData();
27686
27865
  }
@@ -27763,6 +27942,61 @@ export class SfIEvents extends LitElement {
27763
27942
 
27764
27943
  }
27765
27944
 
27945
+ }
27946
+ fetchOnlyYearlyUserCalendar = async (startDate: string = "", endDate: string = "", searchString: string = "", list: string = "yes", month: string = "00", year: string = this.calendarStartYYYY, userprofileid: string = this.userProfileId, userrole: string = this.myRole, entityid = this.entityId, countryid = this.countryId, locationid = this.locationId, tagid = this.tagId, functionid = this.functionId) => {
27947
+
27948
+ let path = "", view = "";
27949
+ if (this.tagId != null && this.tagId != "") {
27950
+ view = "tag";
27951
+ } else if (this.countryId != null && this.countryId != "") {
27952
+ view = "country";
27953
+ } else if (this.locationId != null && this.locationId != "") {
27954
+ view = "location";
27955
+ } else {
27956
+ view = "entity";
27957
+ }
27958
+
27959
+ path = "getallcountryevents";
27960
+
27961
+ let url = "https://" + this.apiId + "/" + path;
27962
+
27963
+ //console.log('fetch calendar url', url);
27964
+ let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": locationid, "tagid": tagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
27965
+
27966
+ if (searchString.length > 0) {
27967
+ urlBody["searchstring"] = searchString;
27968
+ }
27969
+
27970
+ const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
27971
+ const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
27972
+ this._SfLoader.innerHTML = '';
27973
+ if (xhr.status == 200) {
27974
+
27975
+ const jsonRespose = JSON.parse(xhr.responseText);
27976
+ console.log('jsonRespose', jsonRespose);
27977
+ // if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
27978
+ this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
27979
+ // }
27980
+ await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
27981
+
27982
+ } else {
27983
+ if (xhr.status == 401) {
27984
+ let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
27985
+ this.dispatchEvent(changeEvent);
27986
+ }
27987
+ if (xhr.status === 404) {
27988
+
27989
+ this.showChosenProject();
27990
+ (this._SfTitleChosenProject as HTMLElement).innerHTML = (this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedTexts()[0];
27991
+ this.renderChosenProject();
27992
+
27993
+ } else {
27994
+ const jsonRespose = JSON.parse(xhr.responseText);
27995
+ this.setError(jsonRespose.error);
27996
+ }
27997
+
27998
+ }
27999
+
27766
28000
  }
27767
28001
 
27768
28002
  fetchAndRenderNotices = async (startDate: string = "", endDate: string = "", searchString: string = "", list: string = "yes", month: string = "00", year: string = this.calendarStartYYYY) => {
@@ -29744,6 +29978,11 @@ export class SfIEvents extends LitElement {
29744
29978
  this.renderRoleTabsNext(0, false)
29745
29979
  } else if (this.mode == "reports") {
29746
29980
  this.fetchReports();
29981
+ } else if (this.mode == "viewer") {
29982
+ this.enableCustom();
29983
+ this.selectedTab = this.TAB_CUSTOM
29984
+ this.renderCustom();
29985
+ this.renderWithFeatures(this.sdate, this.edate, "", "yes")
29747
29986
  } else {
29748
29987
 
29749
29988
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
@@ -30107,7 +30346,8 @@ export class SfIEvents extends LitElement {
30107
30346
  </div>
30108
30347
  <div class="rb"></div>
30109
30348
  </div>
30110
- <div id="detail-container" class="hide" part="detail-container">
30349
+ <div id="detail-container" class="hide" part="detail-container"></div>
30350
+ <div id="detail-list-container" class="hide" part="detail-list-container">
30111
30351
  </div>
30112
30352
  <div class="d-flex justify-between">
30113
30353
  <div class="lb"></div>
@@ -30294,7 +30534,8 @@ export class SfIEvents extends LitElement {
30294
30534
  </div>
30295
30535
  <div id="report-summary-container" class="hide" part="report-summary-container">
30296
30536
  </div>
30297
- <div id="detail-container" class="hide" part="detail-container">
30537
+ <div id="detail-container" class="hide" part="detail-container"></div>
30538
+ <div id="detail-list-container" class="hide" part="detail-list-container">
30298
30539
  </div>
30299
30540
  <div class="d-flex justify-between">
30300
30541
  <div class="lb"></div>