sf-i-events 1.0.904 → 1.0.906
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 +4 -4
- package/package.json +1 -1
- package/sf-i-events.js +8 -3
- package/src/sf-i-events.ts +8 -5
package/dev/index.html
CHANGED
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
</div>
|
|
788
788
|
|
|
789
789
|
</sf-i-events> -->
|
|
790
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
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"
|
|
@@ -947,14 +947,14 @@
|
|
|
947
947
|
<!-- <sf-i-events projectid="d7d4d17e-3e20-4eaa-a06a-fb1c87f26532" projectname="FlaggGRC Global" mode="onboarding" locations="{"India":{"Maharashtra":["Pune"]}}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
948
948
|
|
|
949
949
|
</sf-i-events> -->
|
|
950
|
-
|
|
950
|
+
<sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
951
951
|
locations="{"India":{"Maharashtra":["Pune","Mumbai"],"Telangana":["Telangana"]},"Canada":{"CanadaSO":["CanadaLO"]},"Singapore":{"SingaporeSO":["Orchard","Raffles","Robinson","Tanjong","Tras"]},"United Kingdom":{"UnitedSO":["UnitedLO"]},"United States of America":{"AmericaSO":["AmericaLO"]}}"
|
|
952
952
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
953
953
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
954
954
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
955
955
|
disablesignoff="yes" disableclientresponse="yes">
|
|
956
956
|
|
|
957
|
-
</sf-i-events>
|
|
957
|
+
</sf-i-events>
|
|
958
958
|
<!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}"
|
|
959
959
|
contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
960
960
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
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;
|
|
@@ -14872,11 +14877,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14872
14877
|
// break;
|
|
14873
14878
|
// }
|
|
14874
14879
|
}
|
|
14875
|
-
if (
|
|
14880
|
+
if (i < taggingArray.data.mappings.mappings.length) {
|
|
14876
14881
|
html += '<td part="td-body" class="' + classBg + '">';
|
|
14877
14882
|
html += '<div class="' + (!showSearch ? 'truncate' : '') + '">';
|
|
14878
14883
|
// html += '<textarea part="input" id="extra-field-'+i+'-'+j+'" class="extra-field extra-field-'+j+'" '+ (taggingArray.data.mappings.mappings[k].extraFields != null ? (taggingArray.data.mappings.mappings[k].extraFields[j] != null ? ((taggingArray.data.mappings.mappings[k].extraFields[j].toLowerCase() == "client remarks" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : ((taggingArray.data.mappings.mappings[k].extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") +' >'+(taggingArray.data.mappings.mappings[k].extraFields != null ? (taggingArray.data.mappings.mappings[k].extraFields[j] != null ? taggingArray.data.mappings.mappings[k].extraFields[j] : "") : "")+'</textarea>';
|
|
14879
|
-
html += '<textarea part="input" id="extra-field-' + i + '-' + j + '" class="extra-field extra-field-' + j + '" ' + (extraFields != null ? (extraFields[j] != null ? ((extraFields[j].toLowerCase() == "client remarks" && this.disableclientresponse.toLowerCase() == "yes") ? 'disabled' : ((extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") + ' >' + (taggingArray.data.mappings.mappings[
|
|
14884
|
+
html += '<textarea part="input" id="extra-field-' + i + '-' + j + '" class="extra-field extra-field-' + j + '" ' + (extraFields != null ? (extraFields[j] != null ? ((extraFields[j].toLowerCase() == "client remarks" && this.disableclientresponse.toLowerCase() == "yes") ? 'disabled' : ((extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") + ' >' + (taggingArray.data.mappings.mappings[i].extraFields != null ? (taggingArray.data.mappings.mappings[i].extraFields[j] != null ? (typeof taggingArray.data.mappings.mappings[i].extraFields[j] == 'string' ? taggingArray.data.mappings.mappings[i].extraFields[j] : "") : "") : "") + '</textarea>';
|
|
14880
14885
|
html += '</div>';
|
|
14881
14886
|
html += '</td>';
|
|
14882
14887
|
}
|
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;
|
|
@@ -19212,15 +19217,14 @@ export class SfIEvents extends LitElement {
|
|
|
19212
19217
|
|
|
19213
19218
|
}
|
|
19214
19219
|
|
|
19215
|
-
if (
|
|
19220
|
+
if (i < taggingArray.data.mappings.mappings.length) {
|
|
19216
19221
|
|
|
19217
19222
|
html += '<td part="td-body" class="' + classBg + '">';
|
|
19218
19223
|
html += '<div class="' + (!showSearch ? 'truncate' : '') + '">'
|
|
19219
19224
|
// html += '<textarea part="input" id="extra-field-'+i+'-'+j+'" class="extra-field extra-field-'+j+'" '+ (taggingArray.data.mappings.mappings[k].extraFields != null ? (taggingArray.data.mappings.mappings[k].extraFields[j] != null ? ((taggingArray.data.mappings.mappings[k].extraFields[j].toLowerCase() == "client remarks" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : ((taggingArray.data.mappings.mappings[k].extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") +' >'+(taggingArray.data.mappings.mappings[k].extraFields != null ? (taggingArray.data.mappings.mappings[k].extraFields[j] != null ? taggingArray.data.mappings.mappings[k].extraFields[j] : "") : "")+'</textarea>';
|
|
19220
|
-
html += '<textarea part="input" id="extra-field-' + i + '-' + j + '" class="extra-field extra-field-' + j + '" ' + (extraFields != null ? (extraFields[j] != null ? ((extraFields[j].toLowerCase() == "client remarks" && this.disableclientresponse.toLowerCase() == "yes") ? 'disabled' : ((extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") + ' >' + (taggingArray.data.mappings.mappings[
|
|
19225
|
+
html += '<textarea part="input" id="extra-field-' + i + '-' + j + '" class="extra-field extra-field-' + j + '" ' + (extraFields != null ? (extraFields[j] != null ? ((extraFields[j].toLowerCase() == "client remarks" && this.disableclientresponse.toLowerCase() == "yes") ? 'disabled' : ((extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '')) : "") : "") + ' >' + (taggingArray.data.mappings.mappings[i].extraFields != null ? (taggingArray.data.mappings.mappings[i].extraFields[j] != null ? (typeof taggingArray.data.mappings.mappings[i].extraFields[j] == 'string' ? taggingArray.data.mappings.mappings[i].extraFields[j] : "") : "") : "") + '</textarea>';
|
|
19221
19226
|
html += '</div>';
|
|
19222
19227
|
html += '</td>';
|
|
19223
|
-
|
|
19224
19228
|
} else {
|
|
19225
19229
|
|
|
19226
19230
|
html += '<td part="td-body" class="' + classBg + '">';
|
|
@@ -19228,7 +19232,6 @@ export class SfIEvents extends LitElement {
|
|
|
19228
19232
|
html += '<textarea part="input" id="extra-field-' + i + '-' + j + '" class="extra-field extra-field-' + j + '" type="text" value="" ' + ((extraFields[j].toLowerCase() == "flagggrc response" && this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '') + ' ></textarea>';
|
|
19229
19233
|
html += '</div>';
|
|
19230
19234
|
html += '</td>';
|
|
19231
|
-
|
|
19232
19235
|
}
|
|
19233
19236
|
|
|
19234
19237
|
|