sf-i-events 1.0.904 → 1.0.905
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sf-i-events.js +6 -1
- package/src/sf-i-events.ts +6 -1
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3753,7 +3753,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3753
3753
|
const j = idArr[5];
|
|
3754
3754
|
let buttonListReportings = eventsContainer.querySelectorAll('.button-list-reporting');
|
|
3755
3755
|
for (let buttonListReporting of buttonListReportings) {
|
|
3756
|
-
console.log('buttonListReporting', buttonListReporting.id, 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
3756
|
+
// console.log('buttonListReporting', buttonListReporting.id, 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
3757
3757
|
if (buttonListReporting.id == 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j) {
|
|
3758
3758
|
buttonListReporting.setAttribute('part', 'button-list-reporting-selected');
|
|
3759
3759
|
}
|
|
@@ -3852,6 +3852,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3852
3852
|
dateOfCompletion = new Date(listReportingContainer.querySelector('#input-approver-doc').value).getTime() + "";
|
|
3853
3853
|
}
|
|
3854
3854
|
let documents = this._SfUploader[0].querySelector('#uploader').selectedValues();
|
|
3855
|
+
if (dateOfCompletion == "NaN") {
|
|
3856
|
+
dateOfCompletion = "";
|
|
3857
|
+
}
|
|
3858
|
+
console.log('dateOfCompletion', dateOfCompletion);
|
|
3855
3859
|
await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage, selectReportedLocation, documents, dateOfCompletion);
|
|
3856
3860
|
});
|
|
3857
3861
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
@@ -13021,6 +13025,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13021
13025
|
if (inputReportingPercentage != null) {
|
|
13022
13026
|
data.percentage = inputReportingPercentage;
|
|
13023
13027
|
}
|
|
13028
|
+
console.log('dateOfCompletion', dateOfCompletion, dateOfCompletion == null, dateOfCompletion == "");
|
|
13024
13029
|
data.dateofcompletion = dateOfCompletion;
|
|
13025
13030
|
data.reportedlocations = selectReportedLocation;
|
|
13026
13031
|
data.documents = documents;
|
package/src/sf-i-events.ts
CHANGED
|
@@ -6112,7 +6112,7 @@ export class SfIEvents extends LitElement {
|
|
|
6112
6112
|
const j = idArr[5];
|
|
6113
6113
|
let buttonListReportings = eventsContainer.querySelectorAll('.button-list-reporting') as NodeListOf<HTMLButtonElement>
|
|
6114
6114
|
for (let buttonListReporting of buttonListReportings) {
|
|
6115
|
-
console.log('buttonListReporting', buttonListReporting.id, 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
6115
|
+
// console.log('buttonListReporting', buttonListReporting.id, 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
6116
6116
|
if (buttonListReporting.id == 'button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j) {
|
|
6117
6117
|
buttonListReporting.setAttribute('part', 'button-list-reporting-selected')
|
|
6118
6118
|
} else {
|
|
@@ -6208,6 +6208,10 @@ export class SfIEvents extends LitElement {
|
|
|
6208
6208
|
dateOfCompletion = new Date((listReportingContainer.querySelector('#input-approver-doc') as HTMLInputElement).value).getTime() + "";
|
|
6209
6209
|
}
|
|
6210
6210
|
let documents = (this._SfUploader[0].querySelector('#uploader') as SfIUploader).selectedValues()
|
|
6211
|
+
if(dateOfCompletion == "NaN") {
|
|
6212
|
+
dateOfCompletion = "";
|
|
6213
|
+
}
|
|
6214
|
+
console.log('dateOfCompletion', dateOfCompletion)
|
|
6211
6215
|
await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer, reportercomments, approvercomments, inputReportingPercentage,selectReportedLocation, documents, dateOfCompletion);
|
|
6212
6216
|
})
|
|
6213
6217
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
@@ -16968,6 +16972,7 @@ export class SfIEvents extends LitElement {
|
|
|
16968
16972
|
if(inputReportingPercentage != null) {
|
|
16969
16973
|
data.percentage = inputReportingPercentage;
|
|
16970
16974
|
}
|
|
16975
|
+
console.log('dateOfCompletion', dateOfCompletion, dateOfCompletion == null, dateOfCompletion == "");
|
|
16971
16976
|
data.dateofcompletion = dateOfCompletion;
|
|
16972
16977
|
data.reportedlocations = selectReportedLocation;
|
|
16973
16978
|
data.documents = documents;
|