sf-i-events 1.0.868 → 1.0.869
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/index.html +8 -8
- package/package.json +3 -3
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +79 -53
- package/src/sf-i-events.ts +74 -48
package/src/sf-i-events.ts
CHANGED
|
@@ -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"], "
|
|
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"] };
|
|
863
863
|
|
|
864
864
|
chartSelectedLegend: Array<number> = [];
|
|
865
865
|
|
|
@@ -4214,7 +4214,7 @@ export class SfIEvents extends LitElement {
|
|
|
4214
4214
|
}
|
|
4215
4215
|
|
|
4216
4216
|
getTimelinessStatus = (mmdd: string, event: any, completeness: string) => {
|
|
4217
|
-
// if(event.module == "
|
|
4217
|
+
// if(event.module == "contract"){
|
|
4218
4218
|
// if (completeness == "not-started") {
|
|
4219
4219
|
// if (this.getPastDueDate(mmdd)) {
|
|
4220
4220
|
// return "past-due-date";
|
|
@@ -4262,7 +4262,11 @@ export class SfIEvents extends LitElement {
|
|
|
4262
4262
|
}
|
|
4263
4263
|
|
|
4264
4264
|
getComplianceStatus = (completeness: string, timeliness: string, percentage?: string, event: any = {}) => {
|
|
4265
|
-
if (event.module == "
|
|
4265
|
+
if (event.module == "contract") {
|
|
4266
|
+
console.log('compliance status', event.terminated)
|
|
4267
|
+
if(event.terminated){
|
|
4268
|
+
return "terminated"
|
|
4269
|
+
}
|
|
4266
4270
|
if (completeness == "not-started") {
|
|
4267
4271
|
|
|
4268
4272
|
if (timeliness == "in-time") {
|
|
@@ -4549,7 +4553,7 @@ export class SfIEvents extends LitElement {
|
|
|
4549
4553
|
html += '<div part="badge-dashboard" id="chip-timeliness-3" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-approved">remove_done</span> <span>Late Approved:</span> <span id="graph-late-approved">DASHBOARD_LATE_APPROVED</span></div>';
|
|
4550
4554
|
html += '<div part="badge-dashboard" id="chip-timeliness-4" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-executed">running_with_errors</span> <span>Late Executed:</span> <span id="graph-late-executed">DASHBOARD_LATE_EXECUTED</span></div>';
|
|
4551
4555
|
|
|
4552
|
-
if (this.selectedFeatures.indexOf("
|
|
4556
|
+
if (this.selectedFeatures.indexOf("contracts") >= 0) {
|
|
4553
4557
|
html += '<div part="badge-dashboard" id="chip-compliance-0" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-scheduled">schedule</span> <span>Active:</span> <span id="graph-active">DASHBOARD_ACTIVE</span></div>';
|
|
4554
4558
|
html += '<div part="badge-dashboard" id="chip-compliance-1" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-not-complied">disabled_by_default</span> <span>About To Expire:</span> <span id="graph-about-to-expire">DASHBOARD_ABOUT_TO_EXPIRE</span></div>';
|
|
4555
4559
|
html += '<div part="badge-dashboard" id="chip-compliance-2" class="chip stat-compliance justify-center align-center mr-10 mb-10 no-shrink compliance-statuses"><span class="material-icons color-partially-complied">rule</span> <span>Expired:</span> <span id="graph-expired">DASHBOARD_EXPIRED</span></div>';
|
|
@@ -5229,7 +5233,7 @@ export class SfIEvents extends LitElement {
|
|
|
5229
5233
|
active = active + (complianceStatus == "active" ? 1 : 0);
|
|
5230
5234
|
aboutToExpire = aboutToExpire + (complianceStatus == "about-to-expire" ? 1 : 0);
|
|
5231
5235
|
expired = expired + (complianceStatus == "expired" ? 1 : 0);
|
|
5232
|
-
terminated = terminated + (complianceStatus == "
|
|
5236
|
+
terminated = terminated + (complianceStatus == "terminated" ? 1 : 0);
|
|
5233
5237
|
|
|
5234
5238
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
5235
5239
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
@@ -5384,7 +5388,7 @@ export class SfIEvents extends LitElement {
|
|
|
5384
5388
|
html = html.replace("DASHBOARD_EXPIRED", expired + "");
|
|
5385
5389
|
html = html.replace("DASHBOARD_TERMINATED", terminated + "");
|
|
5386
5390
|
|
|
5387
|
-
if (this.selectedFeatures.indexOf("
|
|
5391
|
+
if (this.selectedFeatures.indexOf("contracts") >= 0) {
|
|
5388
5392
|
this.csvDataStats = 'Period,Total,Not Started,Approved,Pending Approval,Rejected,Past Due Date,Late Reported,Late Executed,Late Approved,Active,About To Expire,Expired,Terminated\n';
|
|
5389
5393
|
this.csvDataStats += this.period + "," + total + "," + notStarted + "," + approved + "," + pendingApproval + "," + rejected + "," + pastDueDate + "," + lateReported + "," + lateExecuted + "," + lateApproved + "," + active + "," + aboutToExpire + "," + expired + "," + terminated;
|
|
5390
5394
|
} else {
|
|
@@ -5397,7 +5401,7 @@ export class SfIEvents extends LitElement {
|
|
|
5397
5401
|
|
|
5398
5402
|
this.htmlDataStats += '<br /><br />Timeliness<br /><br /><table class="mt-20 w-100"><tr><th class="w-14">Total</th><th class="w-14">In Time</th><th class="w-14">Past Due Date</th><th class="w-14">Late Reported</th><th class="w-14">Late Executed</th><th class="w-14">Late Approved</th><tr>';
|
|
5399
5403
|
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + (total - (pastDueDate + lateApproved + lateExecuted)) + '</td><td class="w-14 text-center td-odd">' + pastDueDate + '</td><td class="w-14 text-center td-odd">' + lateReported + '</td><td class="w-14 text-center td-odd">' + lateExecuted + '</td><td class="w-14 text-center td-odd">' + lateApproved + '</td><tr></table>'
|
|
5400
|
-
if (this.selectedFeatures.indexOf("
|
|
5404
|
+
if (this.selectedFeatures.indexOf("contracts") >= 0) {
|
|
5401
5405
|
this.htmlDataStats += '<br /><br />Compliance<br /><br /><table class="w-100"><tr><th class="w-14">Total</th><th class="w-14">Active</th><th class="w-14">About To Expire</th><th class="w-14">Expired</th><th class="w-14">Terminated</th><tr>';
|
|
5402
5406
|
this.htmlDataStats += '<tr><td class="w-14 text-center td-odd">' + total + '</td><td class="w-14 text-center td-odd">' + active + '</td><td class="w-14 text-center td-odd">' + aboutToExpire + '</td><td class="w-14 text-center td-odd">' + expired + '</td><td class="w-14 text-center td-odd">' + terminated + '</td><tr></table>'
|
|
5403
5407
|
} else {
|
|
@@ -5682,7 +5686,7 @@ export class SfIEvents extends LitElement {
|
|
|
5682
5686
|
html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>'
|
|
5683
5687
|
html += '</div>'
|
|
5684
5688
|
|
|
5685
|
-
if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != '
|
|
5689
|
+
if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'contract') {
|
|
5686
5690
|
html += '<div class="m-20">';
|
|
5687
5691
|
html += '<label part="input-label">Supporting Documents</label>';
|
|
5688
5692
|
html += '<slot name="uploader"></slot>';
|
|
@@ -5693,7 +5697,7 @@ export class SfIEvents extends LitElement {
|
|
|
5693
5697
|
html += '<div class="d-flex m-20 flex-col">';
|
|
5694
5698
|
html += '<label part="input-label">Approver Comments*</label>';
|
|
5695
5699
|
html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
|
|
5696
|
-
if (event.module != '
|
|
5700
|
+
if (event.module != 'contract') {
|
|
5697
5701
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
5698
5702
|
html += '<input id="input-approver-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" disabled/><br />';
|
|
5699
5703
|
html += '<label part="input-label">Percentage</label>';
|
|
@@ -5706,9 +5710,9 @@ export class SfIEvents extends LitElement {
|
|
|
5706
5710
|
html += '<input id="input-approve-no" name="radio-approved" type="radio" checked/> No';
|
|
5707
5711
|
html += '</div>'
|
|
5708
5712
|
if (event['reportformat'] != null && event['reportformat'].length > 0) {
|
|
5709
|
-
html += '<div id="report-format-container"><div class="box"></div></div>'
|
|
5713
|
+
html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>'
|
|
5710
5714
|
} else if (event['customreporting'] != null && event['customreporting'].length > 0) {
|
|
5711
|
-
html += '<div id="report-format-container"><div class="box"></div></div>'
|
|
5715
|
+
html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>'
|
|
5712
5716
|
}
|
|
5713
5717
|
html += '</div>';
|
|
5714
5718
|
html += '</div>';
|
|
@@ -5754,7 +5758,7 @@ export class SfIEvents extends LitElement {
|
|
|
5754
5758
|
html += '<div class="d-flex m-20 flex-col">';
|
|
5755
5759
|
html += '<label part="input-label">Reporter Comments*</label>';
|
|
5756
5760
|
html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
|
|
5757
|
-
if (event.module != '
|
|
5761
|
+
if (event.module != 'contract') {
|
|
5758
5762
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
5759
5763
|
html += '<input id="input-reporter-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '"/><br />';
|
|
5760
5764
|
html += '<label part="input-label">Completion Percentage*</label>';
|
|
@@ -5779,9 +5783,9 @@ export class SfIEvents extends LitElement {
|
|
|
5779
5783
|
// }
|
|
5780
5784
|
html += '<br />';
|
|
5781
5785
|
if (event['reportformat'] != null && event['reportformat'].length > 0) {
|
|
5782
|
-
html += '<div id="report-format-container"><div class="box"></div></div>'
|
|
5786
|
+
html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>'
|
|
5783
5787
|
} else if (event['customreporting'] != null && event['customreporting'].length > 0) {
|
|
5784
|
-
html += '<div id="report-format-container"><div class="box"></div></div>'
|
|
5788
|
+
html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>'
|
|
5785
5789
|
}
|
|
5786
5790
|
html += '<br />';
|
|
5787
5791
|
if (makercheckers.length > 0) {
|
|
@@ -5812,7 +5816,7 @@ export class SfIEvents extends LitElement {
|
|
|
5812
5816
|
html += '<div class="d-flex m-20 flex-col">';
|
|
5813
5817
|
html += '<label part="input-label">Auditor Comments</label>';
|
|
5814
5818
|
html += '<input id="input-auditor-comments" type="text" part="input" value=""/><br />';
|
|
5815
|
-
if (event.module != '
|
|
5819
|
+
if (event.module != 'contract') {
|
|
5816
5820
|
html += '<label part="input-label">Date of Completion</label>';
|
|
5817
5821
|
html += '<input id="input-auditor-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '" readonly/><br />';
|
|
5818
5822
|
html += '<label part="input-label">Percentage</label>';
|
|
@@ -5992,7 +5996,7 @@ export class SfIEvents extends LitElement {
|
|
|
5992
5996
|
let newStatus = this.getCompletenessStatus(newEvent);
|
|
5993
5997
|
if (currStatus == newStatus) {
|
|
5994
5998
|
buttonClick.innerHTML = "Save"
|
|
5995
|
-
this.setError('Already Approved!');
|
|
5999
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
5996
6000
|
setTimeout(() => {
|
|
5997
6001
|
this.clearMessages();
|
|
5998
6002
|
}, 3000);
|
|
@@ -6789,7 +6793,7 @@ export class SfIEvents extends LitElement {
|
|
|
6789
6793
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
6790
6794
|
if (module === "notice") {
|
|
6791
6795
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
6792
|
-
} else if (module === "
|
|
6796
|
+
} else if (module === "contract") {
|
|
6793
6797
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
6794
6798
|
} else {
|
|
6795
6799
|
let found = false;
|
|
@@ -6828,7 +6832,7 @@ export class SfIEvents extends LitElement {
|
|
|
6828
6832
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
6829
6833
|
if (module === "notice") {
|
|
6830
6834
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
6831
|
-
} else if (module === "
|
|
6835
|
+
} else if (module === "contract") {
|
|
6832
6836
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
6833
6837
|
} else {
|
|
6834
6838
|
let found = false;
|
|
@@ -10360,7 +10364,7 @@ export class SfIEvents extends LitElement {
|
|
|
10360
10364
|
this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10361
10365
|
});
|
|
10362
10366
|
|
|
10363
|
-
if (this.selectedFeatures.indexOf('
|
|
10367
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
10364
10368
|
((this._SfCustomContainer as HTMLDivElement).querySelector('#button-this-year') as HTMLButtonElement).click();
|
|
10365
10369
|
}
|
|
10366
10370
|
// for(var i = 0; i < 3; i++) {
|
|
@@ -10954,7 +10958,7 @@ export class SfIEvents extends LitElement {
|
|
|
10954
10958
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
10955
10959
|
if (module === "notice") {
|
|
10956
10960
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
10957
|
-
} else if (module === "
|
|
10961
|
+
} else if (module === "contract") {
|
|
10958
10962
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
10959
10963
|
} else {
|
|
10960
10964
|
let found = false;
|
|
@@ -10993,7 +10997,7 @@ export class SfIEvents extends LitElement {
|
|
|
10993
10997
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
10994
10998
|
if (module === "notice") {
|
|
10995
10999
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
10996
|
-
} else if (module === "
|
|
11000
|
+
} else if (module === "contract") {
|
|
10997
11001
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
10998
11002
|
} else {
|
|
10999
11003
|
let found = false;
|
|
@@ -11286,7 +11290,7 @@ export class SfIEvents extends LitElement {
|
|
|
11286
11290
|
console.log('selectedfeatures', this.selectedFeatures);
|
|
11287
11291
|
this.currentColumnIndex = index + "";
|
|
11288
11292
|
|
|
11289
|
-
if (this.selectedFeatures.indexOf('
|
|
11293
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
11290
11294
|
|
|
11291
11295
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
11292
11296
|
this.enableCustom();
|
|
@@ -11562,7 +11566,7 @@ export class SfIEvents extends LitElement {
|
|
|
11562
11566
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
11563
11567
|
if (module === "notice") {
|
|
11564
11568
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
11565
|
-
} else if (module === "
|
|
11569
|
+
} else if (module === "contract") {
|
|
11566
11570
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
11567
11571
|
} else {
|
|
11568
11572
|
let found = false;
|
|
@@ -11606,7 +11610,7 @@ export class SfIEvents extends LitElement {
|
|
|
11606
11610
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
11607
11611
|
if (module === "notice") {
|
|
11608
11612
|
this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
11609
|
-
} else if (module === "
|
|
11613
|
+
} else if (module === "contract") {
|
|
11610
11614
|
this.fetchAgreementDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
|
|
11611
11615
|
} else {
|
|
11612
11616
|
let found = false;
|
|
@@ -12158,10 +12162,10 @@ export class SfIEvents extends LitElement {
|
|
|
12158
12162
|
this.csvCompletenessStats = "";
|
|
12159
12163
|
this.csvTimelinessStats = "";
|
|
12160
12164
|
this.csvComplianceStats = "";
|
|
12161
|
-
console.log('
|
|
12165
|
+
console.log('contracts')
|
|
12162
12166
|
let data: any = null;
|
|
12163
12167
|
let ctx: any = null;
|
|
12164
|
-
if (this.selectedFeatures.indexOf('
|
|
12168
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
12165
12169
|
var dataTotal = (divContainer.querySelector('#graph-total') as HTMLSpanElement).innerHTML;
|
|
12166
12170
|
var dataActive = (divContainer.querySelector('#graph-active') as HTMLSpanElement).innerHTML;
|
|
12167
12171
|
var dataAboutToExpire = (divContainer.querySelector('#graph-about-to-expire') as HTMLSpanElement).innerHTML;
|
|
@@ -12888,7 +12892,7 @@ export class SfIEvents extends LitElement {
|
|
|
12888
12892
|
<div class="box-large" id="shimmer-container-notices" part="shimmer-container-notices">
|
|
12889
12893
|
</div>
|
|
12890
12894
|
`
|
|
12891
|
-
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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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" 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>';
|
|
12895
|
+
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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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>';
|
|
12892
12896
|
|
|
12893
12897
|
html += '<div part="reporting-view-container">'
|
|
12894
12898
|
html += this.renderReporting(listEvent, mmddyyyy);
|
|
@@ -13048,9 +13052,14 @@ export class SfIEvents extends LitElement {
|
|
|
13048
13052
|
buttonClick.innerHTML = "Saving..."
|
|
13049
13053
|
const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
|
|
13050
13054
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
13051
|
-
|
|
13055
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
13056
|
+
let newEvent = { ...listEvent };
|
|
13057
|
+
newEvent.comments = comments;
|
|
13058
|
+
newEvent.approved = approved;
|
|
13059
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
13060
|
+
if (currStatus == newStatus) {
|
|
13052
13061
|
buttonClick.innerHTML = "Save"
|
|
13053
|
-
this.setError('Already Approved!');
|
|
13062
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
13054
13063
|
setTimeout(() => {
|
|
13055
13064
|
this.clearMessages();
|
|
13056
13065
|
}, 3000);
|
|
@@ -13176,9 +13185,14 @@ export class SfIEvents extends LitElement {
|
|
|
13176
13185
|
buttonClick.innerHTML = "Saving..."
|
|
13177
13186
|
const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
|
|
13178
13187
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
13179
|
-
|
|
13188
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
13189
|
+
let newEvent = { ...listEvent };
|
|
13190
|
+
newEvent.comments = comments;
|
|
13191
|
+
newEvent.approved = approved;
|
|
13192
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
13193
|
+
if (currStatus == newStatus) {
|
|
13180
13194
|
buttonClick.innerHTML = "Save"
|
|
13181
|
-
this.setError('Already Approved!');
|
|
13195
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
13182
13196
|
setTimeout(() => {
|
|
13183
13197
|
this.clearMessages();
|
|
13184
13198
|
}, 3000);
|
|
@@ -13745,7 +13759,7 @@ export class SfIEvents extends LitElement {
|
|
|
13745
13759
|
<div class="box-large" id="shimmer-container-agreements" part="shimmer-container-agreements">
|
|
13746
13760
|
</div>
|
|
13747
13761
|
`
|
|
13748
|
-
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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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" 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>';
|
|
13762
|
+
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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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>';
|
|
13749
13763
|
|
|
13750
13764
|
html += '<div part="reporting-view-container">'
|
|
13751
13765
|
|
|
@@ -13825,7 +13839,7 @@ export class SfIEvents extends LitElement {
|
|
|
13825
13839
|
reportingSchemaJson = listEvent.customreporting
|
|
13826
13840
|
}
|
|
13827
13841
|
if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
|
|
13828
|
-
let reportingHtml = '<sf-i-reporting id="reporting-reporting" 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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>'
|
|
13842
|
+
let reportingHtml = '<sf-i-reporting id="reporting-reporting" 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-date:reporting-input-date, 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-date:reporting-reporting-input-date, 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" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>'
|
|
13829
13843
|
|
|
13830
13844
|
let reportFormatContainer = (this._SfDetailContainer as HTMLDivElement).querySelector('#report-format-container') as HTMLDivElement;
|
|
13831
13845
|
if (reportFormatContainer != null) {
|
|
@@ -13913,9 +13927,14 @@ export class SfIEvents extends LitElement {
|
|
|
13913
13927
|
buttonClick.innerHTML = "Saving..."
|
|
13914
13928
|
const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
|
|
13915
13929
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
13916
|
-
|
|
13930
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
13931
|
+
let newEvent = { ...listEvent };
|
|
13932
|
+
newEvent.comments = comments;
|
|
13933
|
+
newEvent.approved = approved;
|
|
13934
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
13935
|
+
if (currStatus == newStatus) {
|
|
13917
13936
|
buttonClick.innerHTML = "Save"
|
|
13918
|
-
this.setError('Already Approved!');
|
|
13937
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
13919
13938
|
setTimeout(() => {
|
|
13920
13939
|
this.clearMessages();
|
|
13921
13940
|
}, 3000);
|
|
@@ -13947,6 +13966,7 @@ export class SfIEvents extends LitElement {
|
|
|
13947
13966
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
13948
13967
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
13949
13968
|
this.events[mmdd][p].approved = approved
|
|
13969
|
+
this.events[mmdd][p].terminated = (JSON.parse(reportformatvalues).terminated) ?? false
|
|
13950
13970
|
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() })
|
|
13951
13971
|
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
13952
13972
|
}
|
|
@@ -14052,7 +14072,12 @@ export class SfIEvents extends LitElement {
|
|
|
14052
14072
|
buttonClick.innerHTML = "Saving..."
|
|
14053
14073
|
const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
|
|
14054
14074
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
14055
|
-
|
|
14075
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
14076
|
+
let newEvent = { ...listEvent };
|
|
14077
|
+
newEvent.comments = comments;
|
|
14078
|
+
newEvent.approved = approved;
|
|
14079
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
14080
|
+
if (currStatus == newStatus) {
|
|
14056
14081
|
buttonClick.innerHTML = "Save"
|
|
14057
14082
|
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
14058
14083
|
setTimeout(() => {
|
|
@@ -14300,6 +14325,7 @@ export class SfIEvents extends LitElement {
|
|
|
14300
14325
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
14301
14326
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
14302
14327
|
this.events[mmdd][p].approved = true
|
|
14328
|
+
this.events[mmdd][p].terminated = (JSON.parse(reportformatvalues).terminated) ?? false
|
|
14303
14329
|
// this.events[mmdd][p].documents = docs
|
|
14304
14330
|
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() })
|
|
14305
14331
|
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
@@ -15261,7 +15287,7 @@ export class SfIEvents extends LitElement {
|
|
|
15261
15287
|
let newStatus = this.getCompletenessStatus(newEvent);
|
|
15262
15288
|
if (currStatus == newStatus) {
|
|
15263
15289
|
buttonClick.innerHTML = "Save"
|
|
15264
|
-
this.setError('Already Approved!');
|
|
15290
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
15265
15291
|
setTimeout(() => {
|
|
15266
15292
|
this.clearMessages();
|
|
15267
15293
|
}, 3000);
|
|
@@ -15393,7 +15419,7 @@ export class SfIEvents extends LitElement {
|
|
|
15393
15419
|
console.log('status', currStatus, newStatus)
|
|
15394
15420
|
if (currStatus == newStatus) {
|
|
15395
15421
|
buttonClick.innerHTML = "Save"
|
|
15396
|
-
this.setError('Already Approved!');
|
|
15422
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
15397
15423
|
setTimeout(() => {
|
|
15398
15424
|
this.clearMessages();
|
|
15399
15425
|
}, 3000);
|
|
@@ -20149,7 +20175,7 @@ export class SfIEvents extends LitElement {
|
|
|
20149
20175
|
this.myRole = this.TAB_REPORTER;
|
|
20150
20176
|
this.renderRoleTabs();
|
|
20151
20177
|
// this.proceedToCalendar();
|
|
20152
|
-
if (this.selectedFeatures.indexOf('
|
|
20178
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
20153
20179
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
20154
20180
|
} else {
|
|
20155
20181
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-month') as HTMLButtonElement)?.click();
|
|
@@ -20162,7 +20188,7 @@ export class SfIEvents extends LitElement {
|
|
|
20162
20188
|
this.myRole = this.TAB_APPROVER;
|
|
20163
20189
|
this.renderRoleTabs();
|
|
20164
20190
|
// this.proceedToCalendar();
|
|
20165
|
-
if (this.selectedFeatures.indexOf('
|
|
20191
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
20166
20192
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
20167
20193
|
} else {
|
|
20168
20194
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-month') as HTMLButtonElement)?.click();
|
|
@@ -20175,7 +20201,7 @@ export class SfIEvents extends LitElement {
|
|
|
20175
20201
|
this.myRole = this.TAB_FUNCTION_HEAD;
|
|
20176
20202
|
this.renderRoleTabs();
|
|
20177
20203
|
// this.proceedToCalendar();
|
|
20178
|
-
if (this.selectedFeatures.indexOf('
|
|
20204
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
20179
20205
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
20180
20206
|
} else {
|
|
20181
20207
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-month') as HTMLButtonElement)?.click();
|
|
@@ -20188,7 +20214,7 @@ export class SfIEvents extends LitElement {
|
|
|
20188
20214
|
this.myRole = this.TAB_AUDITOR;
|
|
20189
20215
|
this.renderRoleTabs();
|
|
20190
20216
|
// this.proceedToCalendar();
|
|
20191
|
-
if (this.selectedFeatures.indexOf('
|
|
20217
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
20192
20218
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
20193
20219
|
} else {
|
|
20194
20220
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-month') as HTMLButtonElement)?.click();
|
|
@@ -20202,7 +20228,7 @@ export class SfIEvents extends LitElement {
|
|
|
20202
20228
|
this.myRole = this.TAB_VIEWER;
|
|
20203
20229
|
this.renderRoleTabs();
|
|
20204
20230
|
// this.proceedToCalendar();
|
|
20205
|
-
if (this.selectedFeatures.indexOf('
|
|
20231
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
20206
20232
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
20207
20233
|
} else {
|
|
20208
20234
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-month') as HTMLButtonElement)?.click();
|
|
@@ -22687,7 +22713,7 @@ export class SfIEvents extends LitElement {
|
|
|
22687
22713
|
|
|
22688
22714
|
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>';
|
|
22689
22715
|
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>';
|
|
22690
|
-
if (this.selectedFeatures.indexOf('
|
|
22716
|
+
if (this.selectedFeatures.indexOf('contracts') < 0) {
|
|
22691
22717
|
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>';
|
|
22692
22718
|
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>';
|
|
22693
22719
|
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>';
|
|
@@ -25594,7 +25620,7 @@ export class SfIEvents extends LitElement {
|
|
|
25594
25620
|
this.fetchAndYearlyRenderUserCalendar_2(startDate, endDate, searchString, list, month, year)
|
|
25595
25621
|
} else if (this.selectedFeatures.indexOf('notices') >= 0) {
|
|
25596
25622
|
this.fetchAndRenderNotices(startDate, endDate, searchString, list, month, year);
|
|
25597
|
-
} else if (this.selectedFeatures.indexOf('
|
|
25623
|
+
} else if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
25598
25624
|
this.fetchAndRenderAgreements(startDate, endDate, searchString, list, month, year);
|
|
25599
25625
|
}
|
|
25600
25626
|
}
|
|
@@ -25875,7 +25901,7 @@ export class SfIEvents extends LitElement {
|
|
|
25875
25901
|
}
|
|
25876
25902
|
this.events = tempEvents;
|
|
25877
25903
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
25878
|
-
console.log('
|
|
25904
|
+
console.log('contracts', agreements, tempEvents);
|
|
25879
25905
|
} else {
|
|
25880
25906
|
if (xhr.status == 401) {
|
|
25881
25907
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
@@ -25923,7 +25949,7 @@ export class SfIEvents extends LitElement {
|
|
|
25923
25949
|
url = "https://" + this.apiId + "/" + path;
|
|
25924
25950
|
} else if (this.selectedFeatures.indexOf('notices') >= 0) {
|
|
25925
25951
|
url = "https://" + this.apiIdNotices + "/" + path;
|
|
25926
|
-
} else if (this.selectedFeatures.indexOf('
|
|
25952
|
+
} else if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
25927
25953
|
url = "https://" + this.apiIdAgreements + "/" + path;
|
|
25928
25954
|
}
|
|
25929
25955
|
|
|
@@ -27587,7 +27613,7 @@ export class SfIEvents extends LitElement {
|
|
|
27587
27613
|
break;
|
|
27588
27614
|
}
|
|
27589
27615
|
}
|
|
27590
|
-
if (this.selectedFeatures.indexOf('
|
|
27616
|
+
if (this.selectedFeatures.indexOf('contracts') >= 0) {
|
|
27591
27617
|
this.renderTabs(this.TAB_CUSTOM);
|
|
27592
27618
|
((this._SfTabContainer as HTMLDivElement).querySelector('#calendar-tab-custom') as HTMLButtonElement)?.click();
|
|
27593
27619
|
} else {
|