sf-i-events 1.0.902 → 1.0.904
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 +6 -6
- package/package.json +2 -2
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +43 -8
- package/src/sf-i-events.ts +43 -10
package/dev/index.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { SfISubSelect } from 'https://esm.run/sf-i-sub-select@1.0.83/sf-i-sub-select.js';
|
|
26
26
|
import { SfIForm } from 'https://esm.run/sf-i-form@1.0.185/sf-i-form.js';
|
|
27
27
|
import { SfIElasticText } from 'https://esm.run/sf-i-elastic-text@1.0.17/sf-i-elastic-text.js';
|
|
28
|
-
import { SfIUploader } from 'https://esm.run/sf-i-uploader@1.0.
|
|
28
|
+
import { SfIUploader } from 'https://esm.run/sf-i-uploader@1.0.123/sf-i-uploader.js';
|
|
29
29
|
import { SfIMultitextarea } from 'https://esm.run/sf-i-multitextarea@1.0.23/sf-i-multitextarea.js';
|
|
30
30
|
// import { SfIReporting } from 'https://esm.run/sf-i-reporting@1.0.89/sf-i-reporting.js';
|
|
31
31
|
import { SfIReporting } from '../../sf-i-reporting/sf-i-reporting.js';
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
// import {SfIForm} from 'https://unpkg.com/sf-i-form@1.0.184/sf-i-form.js?module';
|
|
45
45
|
// import {SfIEvents} from 'https://unpkg.com/sf-i-events@1.0.423/sf-i-events.js?module';
|
|
46
46
|
// import {SfIElasticText} from 'https://unpkg.com/sf-i-elastic-text@1.0.7/sf-i-elastic-text.js?module';
|
|
47
|
-
// import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.
|
|
47
|
+
// import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.123/sf-i-uploader.js?module';
|
|
48
48
|
// import {SfRandomText} from 'https://unpkg.com/sf-random-text@1.0.2/sf-random-text.js?module';
|
|
49
49
|
// import {SfNewFeature} from 'https://unpkg.com/sf-new-feature@1.0.1/sf-new-feature.js?module';
|
|
50
50
|
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
</div>
|
|
758
758
|
|
|
759
759
|
</sf-i-events> -->
|
|
760
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
760
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
761
761
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
762
762
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
763
763
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -786,8 +786,8 @@
|
|
|
786
786
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
787
787
|
</div>
|
|
788
788
|
|
|
789
|
-
</sf-i-events>
|
|
790
|
-
|
|
789
|
+
</sf-i-events> -->
|
|
790
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
791
791
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
792
792
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
793
793
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
816
816
|
</div>
|
|
817
817
|
|
|
818
|
-
</sf-i-events>
|
|
818
|
+
</sf-i-events>
|
|
819
819
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
820
820
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
821
821
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sf-i-events",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.904",
|
|
5
5
|
"description": "Superflows Navigation Component",
|
|
6
6
|
"main": "sf-i-events.js",
|
|
7
7
|
"module": "sf-i-events.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"sf-i-reporting": "^1.0.89",
|
|
64
64
|
"sf-i-select": "^1.0.80",
|
|
65
65
|
"sf-i-sub-select": "^1.0.68",
|
|
66
|
-
"sf-i-uploader": "^1.0.
|
|
66
|
+
"sf-i-uploader": "^1.0.123",
|
|
67
67
|
"sf-new-feature": "^1.0.1",
|
|
68
68
|
"sinon": "^15.0.1",
|
|
69
69
|
"update": "^0.7.4"
|
package/sf-i-events.d.ts
CHANGED
|
@@ -627,7 +627,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
627
627
|
fetchRCMResourceDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
|
|
628
628
|
renewRCMResource: (listEvent: any, reportformatvalues: any) => Promise<void>;
|
|
629
629
|
renderRCMResourceDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
|
|
630
|
-
fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null) => Promise<void>;
|
|
630
|
+
fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null, reportercomments?: string | null, approvercomments?: string | null, inputReportingPercentage?: string | null, selectReportedLocation?: string | null, documents?: any | null, dateOfCompletion?: string | null) => Promise<void>;
|
|
631
631
|
renderEventDetail: (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => void;
|
|
632
632
|
renderCalendar: () => void;
|
|
633
633
|
matchesOnBoardingFilter: (country: string, state: string, subcategory: string, statute: string) => boolean;
|
package/sf-i-events.js
CHANGED
|
@@ -3524,7 +3524,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3524
3524
|
return html;
|
|
3525
3525
|
};
|
|
3526
3526
|
this.renderReporting = (event, mmddyyyy) => {
|
|
3527
|
-
var _a;
|
|
3527
|
+
var _a, _b, _c;
|
|
3528
3528
|
let html = '';
|
|
3529
3529
|
let completeness = this.getCompletenessStatus(event);
|
|
3530
3530
|
let docs = event['documents'] == null ? [] : event['documents'];
|
|
@@ -3559,7 +3559,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
html += '<div class="d-flex m-20 flex-col">';
|
|
3561
3561
|
html += '<label part="input-label">Approver Comments*</label>';
|
|
3562
|
-
html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
|
|
3562
|
+
html += ('<input id="input-approver-comments" type="text" part="input" value="' + ((_b = event.approvercomments) !== null && _b !== void 0 ? _b : "") + '"/><br />');
|
|
3563
3563
|
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3564
3564
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
3565
3565
|
html += '<input id="input-approver-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" disabled/><br />';
|
|
@@ -3616,7 +3616,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3616
3616
|
html += '</div>';
|
|
3617
3617
|
html += '<div class="d-flex m-20 flex-col">';
|
|
3618
3618
|
html += '<label part="input-label">Reporter Comments*</label>';
|
|
3619
|
-
html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
|
|
3619
|
+
html += ('<input id="input-reporter-comments" type="text" part="input" value="' + ((_c = event.reportercomments) !== null && _c !== void 0 ? _c : "") + '"/><br />');
|
|
3620
3620
|
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3621
3621
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
3622
3622
|
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 />';
|
|
@@ -3838,8 +3838,21 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3838
3838
|
}
|
|
3839
3839
|
});
|
|
3840
3840
|
(_h = listReportingContainer.querySelector('#upload-guidance-button')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async () => {
|
|
3841
|
+
var _a, _b, _c, _f, _g, _h, _j, _k;
|
|
3841
3842
|
console.log('upload guidance clicked', event);
|
|
3842
|
-
|
|
3843
|
+
let inputReportingPercentage = (_b = (_a = listReportingContainer.querySelector('#input-reporter-percentage')) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "100";
|
|
3844
|
+
let selectReportedLocation = (_f = (_c = listReportingContainer.querySelector('#input-reporter-location')) === null || _c === void 0 ? void 0 : _c.value) !== null && _f !== void 0 ? _f : "";
|
|
3845
|
+
let approvercomments = (_h = (_g = listReportingContainer.querySelector('#input-approver-comments')) === null || _g === void 0 ? void 0 : _g.value) !== null && _h !== void 0 ? _h : "";
|
|
3846
|
+
let reportercomments = (_k = (_j = listReportingContainer.querySelector('#input-reporter-comments')) === null || _j === void 0 ? void 0 : _j.value) !== null && _k !== void 0 ? _k : "";
|
|
3847
|
+
let dateOfCompletion;
|
|
3848
|
+
if (listReportingContainer.querySelector('#input-reporter-doc') != null) {
|
|
3849
|
+
dateOfCompletion = new Date(listReportingContainer.querySelector('#input-reporter-doc').value).getTime() + "";
|
|
3850
|
+
}
|
|
3851
|
+
else {
|
|
3852
|
+
dateOfCompletion = new Date(listReportingContainer.querySelector('#input-approver-doc').value).getTime() + "";
|
|
3853
|
+
}
|
|
3854
|
+
let documents = this._SfUploader[0].querySelector('#uploader').selectedValues();
|
|
3855
|
+
await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage, selectReportedLocation, documents, dateOfCompletion);
|
|
3843
3856
|
});
|
|
3844
3857
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
3845
3858
|
let inputReportingPercentage = listReportingContainer.querySelector('#input-reporter-percentage');
|
|
@@ -4377,7 +4390,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4377
4390
|
}
|
|
4378
4391
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisInProgress', (_ev) => {
|
|
4379
4392
|
console.log('uploader analysisInProgress', _ev);
|
|
4380
|
-
listReportingContainer.querySelector('.uploader-analysis-message')
|
|
4393
|
+
if (listReportingContainer.querySelector('.uploader-analysis-message') != null) {
|
|
4394
|
+
listReportingContainer.querySelector('.uploader-analysis-message').style.display = "block";
|
|
4395
|
+
}
|
|
4381
4396
|
});
|
|
4382
4397
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisCompleted', (_ev) => {
|
|
4383
4398
|
console.log('uploader analysisInProgress', _ev);
|
|
@@ -4394,9 +4409,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4394
4409
|
}
|
|
4395
4410
|
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify([]);
|
|
4396
4411
|
console.log('uploader', this._SfUploader[0].querySelector('#uploader'));
|
|
4412
|
+
this._SfUploader[0].querySelector('#uploader').current = 0;
|
|
4397
4413
|
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
4398
4414
|
if (docs.length > 0) {
|
|
4399
4415
|
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify(docs);
|
|
4416
|
+
this._SfUploader[0].querySelector('#uploader').current = docs.length;
|
|
4400
4417
|
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
4401
4418
|
}
|
|
4402
4419
|
if (this.myRole == this.TAB_APPROVER || event.approved) {
|
|
@@ -12972,7 +12989,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12972
12989
|
}
|
|
12973
12990
|
}
|
|
12974
12991
|
};
|
|
12975
|
-
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
|
|
12992
|
+
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null, reportercomments = null, approvercomments = null, inputReportingPercentage = null, selectReportedLocation = null, documents = null, dateOfCompletion = null) => {
|
|
12976
12993
|
console.log('listEvent', listEvent, listEvent.id);
|
|
12977
12994
|
let url = "https://" + this.apiId + "/getalleventdetails";
|
|
12978
12995
|
//console.log('fetch calendar url', url);
|
|
@@ -12994,7 +13011,20 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12994
13011
|
}
|
|
12995
13012
|
}
|
|
12996
13013
|
}
|
|
12997
|
-
|
|
13014
|
+
let data = jsonRespose.data;
|
|
13015
|
+
if (reportercomments != null) {
|
|
13016
|
+
data.reportercomments = reportercomments;
|
|
13017
|
+
}
|
|
13018
|
+
else if (approvercomments != null) {
|
|
13019
|
+
data.approvercomments = approvercomments;
|
|
13020
|
+
}
|
|
13021
|
+
if (inputReportingPercentage != null) {
|
|
13022
|
+
data.percentage = inputReportingPercentage;
|
|
13023
|
+
}
|
|
13024
|
+
data.dateofcompletion = dateOfCompletion;
|
|
13025
|
+
data.reportedlocations = selectReportedLocation;
|
|
13026
|
+
data.documents = documents;
|
|
13027
|
+
this.renderListReporting(listEventContainer, data, mmddyyyy, eventsContainer);
|
|
12998
13028
|
}
|
|
12999
13029
|
}
|
|
13000
13030
|
else {
|
|
@@ -13082,7 +13112,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13082
13112
|
html += '<div class="accordian-container m-20 pb-20" part="accordian-container">';
|
|
13083
13113
|
html += '<div part="detail-summary">';
|
|
13084
13114
|
html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
|
|
13085
|
-
|
|
13115
|
+
let obligationArr = event['obligation'].split('More information:');
|
|
13116
|
+
html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\n/g, '<br />') + '</h3></div>');
|
|
13117
|
+
if (obligationArr.length > 1) {
|
|
13118
|
+
let tempObligationArr = obligationArr.slice(1);
|
|
13119
|
+
html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
|
|
13120
|
+
}
|
|
13086
13121
|
html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
|
|
13087
13122
|
html += '</div>';
|
|
13088
13123
|
html += '<br />';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5890,7 +5890,7 @@ export class SfIEvents extends LitElement {
|
|
|
5890
5890
|
|
|
5891
5891
|
html += '<div class="d-flex m-20 flex-col">';
|
|
5892
5892
|
html += '<label part="input-label">Approver Comments*</label>';
|
|
5893
|
-
html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
|
|
5893
|
+
html += ('<input id="input-approver-comments" type="text" part="input" value="' + (event.approvercomments ?? "") + '"/><br />');
|
|
5894
5894
|
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
5895
5895
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
5896
5896
|
html += '<input id="input-approver-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" disabled/><br />';
|
|
@@ -5960,7 +5960,7 @@ export class SfIEvents extends LitElement {
|
|
|
5960
5960
|
|
|
5961
5961
|
html += '<div class="d-flex m-20 flex-col">';
|
|
5962
5962
|
html += '<label part="input-label">Reporter Comments*</label>';
|
|
5963
|
-
html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
|
|
5963
|
+
html += ('<input id="input-reporter-comments" type="text" part="input" value="' + (event.reportercomments ?? "") + '"/><br />');
|
|
5964
5964
|
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
5965
5965
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
5966
5966
|
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 />';
|
|
@@ -6197,7 +6197,18 @@ export class SfIEvents extends LitElement {
|
|
|
6197
6197
|
});
|
|
6198
6198
|
listReportingContainer.querySelector('#upload-guidance-button')?.addEventListener('click', async () => {
|
|
6199
6199
|
console.log('upload guidance clicked', event);
|
|
6200
|
-
|
|
6200
|
+
let inputReportingPercentage = (listReportingContainer.querySelector('#input-reporter-percentage') as HTMLInputElement)?.value ?? "100";
|
|
6201
|
+
let selectReportedLocation = (listReportingContainer.querySelector('#input-reporter-location') as HTMLSelectElement)?.value ?? "";
|
|
6202
|
+
let approvercomments = (listReportingContainer.querySelector('#input-approver-comments') as HTMLInputElement)?.value ?? "";
|
|
6203
|
+
let reportercomments = (listReportingContainer.querySelector('#input-reporter-comments') as HTMLInputElement)?.value ?? "";
|
|
6204
|
+
let dateOfCompletion;
|
|
6205
|
+
if((listReportingContainer.querySelector('#input-reporter-doc') as HTMLInputElement) != null) {
|
|
6206
|
+
dateOfCompletion = new Date((listReportingContainer.querySelector('#input-reporter-doc') as HTMLInputElement).value).getTime() + "";
|
|
6207
|
+
} else {
|
|
6208
|
+
dateOfCompletion = new Date((listReportingContainer.querySelector('#input-approver-doc') as HTMLInputElement).value).getTime() + "";
|
|
6209
|
+
}
|
|
6210
|
+
let documents = (this._SfUploader[0].querySelector('#uploader') as SfIUploader).selectedValues()
|
|
6211
|
+
await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage,selectReportedLocation, documents, dateOfCompletion);
|
|
6201
6212
|
})
|
|
6202
6213
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
6203
6214
|
let inputReportingPercentage = listReportingContainer.querySelector('#input-reporter-percentage') as HTMLInputElement;
|
|
@@ -6778,7 +6789,10 @@ export class SfIEvents extends LitElement {
|
|
|
6778
6789
|
}
|
|
6779
6790
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisInProgress', (_ev: any) => {
|
|
6780
6791
|
console.log('uploader analysisInProgress', _ev);
|
|
6781
|
-
|
|
6792
|
+
|
|
6793
|
+
if ((listReportingContainer.querySelector('.uploader-analysis-message') as HTMLDivElement) != null) {
|
|
6794
|
+
(listReportingContainer.querySelector('.uploader-analysis-message') as HTMLDivElement).style.display = "block"
|
|
6795
|
+
}
|
|
6782
6796
|
});
|
|
6783
6797
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisCompleted', (_ev: any) => {
|
|
6784
6798
|
console.log('uploader analysisInProgress', _ev);
|
|
@@ -6798,10 +6812,12 @@ export class SfIEvents extends LitElement {
|
|
|
6798
6812
|
|
|
6799
6813
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.prepopulatedInputArr = JSON.stringify([]);
|
|
6800
6814
|
console.log('uploader', (this._SfUploader[0].querySelector('#uploader') as SfIUploader));
|
|
6815
|
+
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.current = 0;
|
|
6801
6816
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.loadMode();
|
|
6802
6817
|
|
|
6803
6818
|
if (docs.length > 0) {
|
|
6804
6819
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.prepopulatedInputArr = JSON.stringify(docs);
|
|
6820
|
+
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.current = docs.length;
|
|
6805
6821
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.loadMode();
|
|
6806
6822
|
}
|
|
6807
6823
|
|
|
@@ -7131,7 +7147,7 @@ export class SfIEvents extends LitElement {
|
|
|
7131
7147
|
const j = idArr[5];
|
|
7132
7148
|
const module = idArr[6];
|
|
7133
7149
|
const flag = idArr[7];
|
|
7134
|
-
if(flag != null && flag == "reportedlocations"){
|
|
7150
|
+
if (flag != null && flag == "reportedlocations") {
|
|
7135
7151
|
return;
|
|
7136
7152
|
}
|
|
7137
7153
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
@@ -11406,7 +11422,7 @@ export class SfIEvents extends LitElement {
|
|
|
11406
11422
|
const j = idArr[5];
|
|
11407
11423
|
const module = idArr[6];
|
|
11408
11424
|
const flag = idArr[7];
|
|
11409
|
-
if(flag != null && flag == "reportedlocations"){
|
|
11425
|
+
if (flag != null && flag == "reportedlocations") {
|
|
11410
11426
|
return;
|
|
11411
11427
|
}
|
|
11412
11428
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
@@ -12031,7 +12047,7 @@ export class SfIEvents extends LitElement {
|
|
|
12031
12047
|
const j = idArr[5];
|
|
12032
12048
|
const module = idArr[6];
|
|
12033
12049
|
const flag = idArr[7];
|
|
12034
|
-
if(flag != null && flag == "reportedlocations"){
|
|
12050
|
+
if (flag != null && flag == "reportedlocations") {
|
|
12035
12051
|
return;
|
|
12036
12052
|
}
|
|
12037
12053
|
var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
|
|
@@ -16917,7 +16933,7 @@ export class SfIEvents extends LitElement {
|
|
|
16917
16933
|
}
|
|
16918
16934
|
}
|
|
16919
16935
|
|
|
16920
|
-
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
|
|
16936
|
+
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation:string | null = null, documents: any | null = null, dateOfCompletion: string | null = null) => {
|
|
16921
16937
|
console.log('listEvent', listEvent, listEvent.id)
|
|
16922
16938
|
let url = "https://" + this.apiId + "/getalleventdetails";
|
|
16923
16939
|
|
|
@@ -16943,7 +16959,19 @@ export class SfIEvents extends LitElement {
|
|
|
16943
16959
|
}
|
|
16944
16960
|
}
|
|
16945
16961
|
}
|
|
16946
|
-
|
|
16962
|
+
let data = jsonRespose.data;
|
|
16963
|
+
if( reportercomments != null) {
|
|
16964
|
+
data.reportercomments = reportercomments;
|
|
16965
|
+
}else if(approvercomments != null) {
|
|
16966
|
+
data.approvercomments = approvercomments;
|
|
16967
|
+
}
|
|
16968
|
+
if(inputReportingPercentage != null) {
|
|
16969
|
+
data.percentage = inputReportingPercentage;
|
|
16970
|
+
}
|
|
16971
|
+
data.dateofcompletion = dateOfCompletion;
|
|
16972
|
+
data.reportedlocations = selectReportedLocation;
|
|
16973
|
+
data.documents = documents;
|
|
16974
|
+
this.renderListReporting(listEventContainer, data, mmddyyyy, eventsContainer)
|
|
16947
16975
|
}
|
|
16948
16976
|
} else {
|
|
16949
16977
|
this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer);
|
|
@@ -17041,7 +17069,12 @@ export class SfIEvents extends LitElement {
|
|
|
17041
17069
|
|
|
17042
17070
|
html += '<div part="detail-summary">';
|
|
17043
17071
|
html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
|
|
17044
|
-
|
|
17072
|
+
let obligationArr = event['obligation'].split('More information:');
|
|
17073
|
+
html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\n/g, '<br />') + '</h3></div>');
|
|
17074
|
+
if(obligationArr.length > 1) {
|
|
17075
|
+
let tempObligationArr = obligationArr.slice(1);
|
|
17076
|
+
html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
|
|
17077
|
+
}
|
|
17045
17078
|
html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
|
|
17046
17079
|
html += '</div>';
|
|
17047
17080
|
|