sf-i-events 1.0.813 → 1.0.815
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 +30 -28
- package/src/sf-i-events.ts +31 -28
package/dev/index.html
CHANGED
|
@@ -688,7 +688,7 @@
|
|
|
688
688
|
</div>
|
|
689
689
|
|
|
690
690
|
</sf-i-events> -->
|
|
691
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
691
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
692
692
|
|
|
693
693
|
<div slot="uploader">
|
|
694
694
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
698
698
|
</div>
|
|
699
699
|
|
|
700
|
-
</sf-i-events>
|
|
700
|
+
</sf-i-events> -->
|
|
701
701
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
702
702
|
|
|
703
703
|
<div slot="uploader">
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
</div>
|
|
772
772
|
|
|
773
773
|
</sf-i-events> -->
|
|
774
|
-
|
|
774
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" fill="solid" username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
775
775
|
|
|
776
776
|
<div slot="uploader">
|
|
777
777
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
781
781
|
</div>
|
|
782
782
|
|
|
783
|
-
</sf-i-events>
|
|
783
|
+
</sf-i-events>
|
|
784
784
|
|
|
785
785
|
|
|
786
786
|
<script>
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3222,7 +3222,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
else if (uploadGuidance != 0) {
|
|
3224
3224
|
html += '<div part="upload-guidance-content">';
|
|
3225
|
-
html += '<div part="detail-head" class="
|
|
3225
|
+
html += '<div part="detail-head" class="mb-5"><strong>Upload Guidance</strong></div>';
|
|
3226
3226
|
html += '<sf-i-elastic-text text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
|
|
3227
3227
|
html += '</div>';
|
|
3228
3228
|
}
|
|
@@ -14199,30 +14199,32 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14199
14199
|
a2.click();
|
|
14200
14200
|
}
|
|
14201
14201
|
if (radioImage.checked) {
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14202
|
+
setTimeout(() => {
|
|
14203
|
+
const a = document.createElement('a');
|
|
14204
|
+
a.setAttribute('href', this.chartBase64);
|
|
14205
|
+
a.setAttribute('download', 'download_' + new Date().getTime() + '.png');
|
|
14206
|
+
a.click();
|
|
14207
|
+
console.log('this.chart2', (this.chart2Base64));
|
|
14208
|
+
if (this.chart2Base64 != null) {
|
|
14209
|
+
console.log('this.chart2 download', this.chart2Base64);
|
|
14210
|
+
const a2 = document.createElement('a');
|
|
14211
|
+
a2.setAttribute('href', this.chart2Base64);
|
|
14212
|
+
a2.setAttribute('download', 'download_completeness_' + new Date().getTime() + '.png');
|
|
14213
|
+
a2.click();
|
|
14214
|
+
}
|
|
14215
|
+
if (this.chart3Base64 != null) {
|
|
14216
|
+
const a3 = document.createElement('a');
|
|
14217
|
+
a3.setAttribute('href', this.chart3Base64);
|
|
14218
|
+
a3.setAttribute('download', 'download_timeliness_' + new Date().getTime() + '.png');
|
|
14219
|
+
a3.click();
|
|
14220
|
+
}
|
|
14221
|
+
if (this.chart4Base64 != null) {
|
|
14222
|
+
const a4 = document.createElement('a');
|
|
14223
|
+
a4.setAttribute('href', this.chart4Base64);
|
|
14224
|
+
a4.setAttribute('download', 'download_compliance_' + new Date().getTime() + '.png');
|
|
14225
|
+
a4.click();
|
|
14226
|
+
}
|
|
14227
|
+
}, 2000);
|
|
14226
14228
|
}
|
|
14227
14229
|
if (radioStats.checked) {
|
|
14228
14230
|
const ts = new Date().getTime();
|
|
@@ -18409,7 +18411,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18409
18411
|
else {
|
|
18410
18412
|
view = "entity";
|
|
18411
18413
|
}
|
|
18412
|
-
path = "
|
|
18414
|
+
path = "getallcountryevents1";
|
|
18413
18415
|
let sDate = "";
|
|
18414
18416
|
let eDate = "";
|
|
18415
18417
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -19605,7 +19607,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19605
19607
|
day = '0' + day;
|
|
19606
19608
|
let eDate = month + "/" + day + "/" + year;
|
|
19607
19609
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
|
|
19608
|
-
let url = "https://" + this.apiId + "/
|
|
19610
|
+
let url = "https://" + this.apiId + "/getallcountryevents1";
|
|
19609
19611
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19610
19612
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
19611
19613
|
this._SfLoader.innerHTML = '';
|
|
@@ -19686,7 +19688,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19686
19688
|
console.log('fetching compliances', sortid);
|
|
19687
19689
|
let complianceEntityId = sortid.split(';')[1];
|
|
19688
19690
|
let complianceLocationId = sortid.split(';')[2];
|
|
19689
|
-
let url = "https://" + this.apiId + "/
|
|
19691
|
+
let url = "https://" + this.apiId + "/getallcountryevents1";
|
|
19690
19692
|
let sDateObj = selectedDate;
|
|
19691
19693
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
19692
19694
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5545,7 +5545,7 @@ export class SfIEvents extends LitElement {
|
|
|
5545
5545
|
html += '<div id="upload-guidance-button" part="upload-guidance-button" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span> <span>Get Help</span></div>'
|
|
5546
5546
|
}else if(uploadGuidance != 0){
|
|
5547
5547
|
html += '<div part="upload-guidance-content">'
|
|
5548
|
-
html += '<div part="detail-head" class="
|
|
5548
|
+
html += '<div part="detail-head" class="mb-5"><strong>Upload Guidance</strong></div>'
|
|
5549
5549
|
html += '<sf-i-elastic-text text="'+(event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="150"></sf-i-elastic-text>';
|
|
5550
5550
|
html += '</div>'
|
|
5551
5551
|
}
|
|
@@ -19109,32 +19109,35 @@ export class SfIEvents extends LitElement {
|
|
|
19109
19109
|
}
|
|
19110
19110
|
|
|
19111
19111
|
if(radioImage.checked) {
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19112
|
+
setTimeout(() => {
|
|
19113
|
+
const a = document.createElement('a')
|
|
19114
|
+
a.setAttribute('href', this.chartBase64)
|
|
19115
|
+
a.setAttribute('download', 'download_'+new Date().getTime()+'.png');
|
|
19116
|
+
a.click()
|
|
19117
|
+
console.log('this.chart2', (this.chart2Base64));
|
|
19118
|
+
if(this.chart2Base64 != null) {
|
|
19119
|
+
console.log('this.chart2 download', this.chart2Base64);
|
|
19120
|
+
const a2 = document.createElement('a')
|
|
19121
|
+
a2.setAttribute('href', this.chart2Base64)
|
|
19122
|
+
a2.setAttribute('download', 'download_completeness_'+new Date().getTime()+'.png');
|
|
19123
|
+
a2.click()
|
|
19124
|
+
}
|
|
19124
19125
|
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19126
|
+
if(this.chart3Base64 != null) {
|
|
19127
|
+
const a3 = document.createElement('a')
|
|
19128
|
+
a3.setAttribute('href', this.chart3Base64)
|
|
19129
|
+
a3.setAttribute('download', 'download_timeliness_'+new Date().getTime()+'.png');
|
|
19130
|
+
a3.click()
|
|
19131
|
+
}
|
|
19131
19132
|
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19133
|
+
if(this.chart4Base64 != null) {
|
|
19134
|
+
const a4 = document.createElement('a')
|
|
19135
|
+
a4.setAttribute('href', this.chart4Base64)
|
|
19136
|
+
a4.setAttribute('download', 'download_compliance_'+new Date().getTime()+'.png');
|
|
19137
|
+
a4.click()
|
|
19138
|
+
}
|
|
19139
|
+
},2000)
|
|
19140
|
+
|
|
19138
19141
|
}
|
|
19139
19142
|
|
|
19140
19143
|
if(radioStats.checked) {
|
|
@@ -24408,7 +24411,7 @@ export class SfIEvents extends LitElement {
|
|
|
24408
24411
|
view = "entity";
|
|
24409
24412
|
}
|
|
24410
24413
|
|
|
24411
|
-
path = "
|
|
24414
|
+
path = "getallcountryevents1";
|
|
24412
24415
|
|
|
24413
24416
|
let sDate = "";
|
|
24414
24417
|
let eDate = "";
|
|
@@ -25864,7 +25867,7 @@ export class SfIEvents extends LitElement {
|
|
|
25864
25867
|
day = '0' + day;
|
|
25865
25868
|
let eDate = month + "/" + day + "/" + year
|
|
25866
25869
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY};
|
|
25867
|
-
let url = "https://"+this.apiId+"/
|
|
25870
|
+
let url = "https://"+this.apiId+"/getallcountryevents1";
|
|
25868
25871
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25869
25872
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
25870
25873
|
this._SfLoader.innerHTML = '';
|
|
@@ -25954,7 +25957,7 @@ export class SfIEvents extends LitElement {
|
|
|
25954
25957
|
console.log('fetching compliances', sortid)
|
|
25955
25958
|
let complianceEntityId = sortid.split(';')[1]
|
|
25956
25959
|
let complianceLocationId = sortid.split(';')[2]
|
|
25957
|
-
let url = "https://"+this.apiId+"/
|
|
25960
|
+
let url = "https://"+this.apiId+"/getallcountryevents1";
|
|
25958
25961
|
let sDateObj = selectedDate
|
|
25959
25962
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
25960
25963
|
let day = '' + sDateObj.getDate();
|