sf-i-events 1.0.912 → 1.0.913
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 +32 -61
- package/package.json +1 -1
- package/sf-i-events.js +7 -6
- package/src/sf-i-events.ts +7 -6
package/dev/index.html
CHANGED
|
@@ -265,6 +265,7 @@
|
|
|
265
265
|
text-transform: capitalize;
|
|
266
266
|
text-align: left;
|
|
267
267
|
}
|
|
268
|
+
|
|
268
269
|
sf-i-events::part(td-head-selected) {
|
|
269
270
|
color: #444;
|
|
270
271
|
font-weight: 400;
|
|
@@ -427,6 +428,7 @@
|
|
|
427
428
|
border-right: solid 1px rgba(0, 0, 0, 0.1);
|
|
428
429
|
|
|
429
430
|
}
|
|
431
|
+
|
|
430
432
|
sf-i-events::part(button-icon-selected) {
|
|
431
433
|
|
|
432
434
|
border-width: 0px;
|
|
@@ -518,6 +520,7 @@
|
|
|
518
520
|
sf-i-events::part(highlight) {
|
|
519
521
|
background-color: greenyellow;
|
|
520
522
|
}
|
|
523
|
+
|
|
521
524
|
sf-i-events::part(highlight-count) {
|
|
522
525
|
color: #666;
|
|
523
526
|
font-size: small;
|
|
@@ -826,7 +829,7 @@
|
|
|
826
829
|
disablesignoff="yes" disableclientresponse="yes">
|
|
827
830
|
|
|
828
831
|
</sf-i-events> -->
|
|
829
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
832
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
830
833
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
831
834
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
832
835
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -854,7 +857,7 @@
|
|
|
854
857
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
855
858
|
</div>
|
|
856
859
|
|
|
857
|
-
</sf-i-events>
|
|
860
|
+
</sf-i-events> -->
|
|
858
861
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
859
862
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
860
863
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -925,67 +928,35 @@
|
|
|
925
928
|
</div>
|
|
926
929
|
|
|
927
930
|
</sf-i-events> -->
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<div slot="uploader">
|
|
946
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
947
|
-
</div>
|
|
948
|
-
<div slot="reporting">
|
|
949
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
950
|
-
</div>
|
|
951
|
-
|
|
952
|
-
</sf-i-events> -->
|
|
953
|
-
<!-- <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="pattern" username="Dipti" userprofileid="d888568d-0599-46f9-9d73-55ea76345db1" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" countryid="4252b692-e47c-4244-9500-0bea51150031" enabledeletelatestreport="true" 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="["obligationtitle"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
954
|
-
|
|
955
|
-
<div slot="uploader">
|
|
956
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
957
|
-
</div>
|
|
958
|
-
<div slot="reporting">
|
|
959
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
960
|
-
</div>
|
|
961
|
-
|
|
962
|
-
</sf-i-events> -->
|
|
963
|
-
<!-- <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="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" 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="2025">
|
|
964
|
-
|
|
965
|
-
<div slot="uploader">
|
|
966
|
-
<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>
|
|
967
|
-
</div>
|
|
968
|
-
<div slot="reporting">
|
|
969
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
970
|
-
</div>
|
|
971
|
-
|
|
972
|
-
</sf-i-events> -->
|
|
973
|
-
<!-- <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="pattern" username="Humayu Shaikh" userprofileid="115e99a2-4b5b-4b76-846e-24133dac5ccd" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" enabledeletelatestreport="true" 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="["obligationtitle"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
974
|
-
|
|
975
|
-
<div slot="uploader">
|
|
976
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
977
|
-
</div>
|
|
978
|
-
<div slot="reporting">
|
|
979
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
980
|
-
</div>
|
|
981
|
-
|
|
982
|
-
</sf-i-events> -->
|
|
983
|
-
<!-- <sf-i-events projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" mode="onboarding" locations="{"India":{"Punjab":["Punjab Warehouse"],"Gujarat":["RO & Unit I","Unit II"]}}" contractstartdate="01/03/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">
|
|
931
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
932
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
933
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
934
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
935
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
936
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
937
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
938
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
939
|
+
username="Sanjeev Sharma" userprofileid="100a85f2-35b8-42d1-b368-9865eab9b8fd"
|
|
940
|
+
projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited"
|
|
941
|
+
countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" selectedcriteria="Country - India" myrole="viewer"
|
|
942
|
+
showregisterexport="false" features="[]"
|
|
943
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
944
|
+
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"}]"
|
|
945
|
+
eventpreviewfields="["obligation"]"
|
|
946
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
947
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
984
948
|
|
|
985
|
-
|
|
986
|
-
|
|
949
|
+
<div slot="uploader">
|
|
950
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
951
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
952
|
+
extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="31457280"
|
|
953
|
+
allowdownload="yes"></sf-i-uploader>
|
|
954
|
+
</div>
|
|
955
|
+
<div slot="reporting">
|
|
956
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
957
|
+
</div>
|
|
987
958
|
|
|
988
|
-
|
|
959
|
+
</sf-i-events>
|
|
989
960
|
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
990
961
|
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"]}}"
|
|
991
962
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -9943,6 +9943,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9943
9943
|
let userid = this.userProfileId;
|
|
9944
9944
|
// let username = this.userName;
|
|
9945
9945
|
let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
|
|
9946
|
+
console.log('FilterString', filterString);
|
|
9946
9947
|
let rolestr = "viewer";
|
|
9947
9948
|
if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
|
|
9948
9949
|
userid = filterid;
|
|
@@ -22413,7 +22414,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22413
22414
|
else {
|
|
22414
22415
|
view = "entity";
|
|
22415
22416
|
}
|
|
22416
|
-
path = "
|
|
22417
|
+
path = "getallcountryevents2";
|
|
22417
22418
|
let sDate = "";
|
|
22418
22419
|
let eDate = "";
|
|
22419
22420
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -22517,17 +22518,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22517
22518
|
else {
|
|
22518
22519
|
view = "entity";
|
|
22519
22520
|
}
|
|
22520
|
-
path = "
|
|
22521
|
+
path = "getallcountryevents2";
|
|
22521
22522
|
let url = "https://" + this.apiId + "/" + path;
|
|
22522
22523
|
let temptagid = tagid;
|
|
22523
22524
|
if (temptagid == "" && locationid != "") {
|
|
22524
22525
|
temptagid = locationid;
|
|
22525
22526
|
}
|
|
22526
|
-
else if (temptagid == "" && userprofileid != this.userProfileId) {
|
|
22527
|
+
else if (temptagid == "" && (userprofileid != this.userProfileId || userrole != this.myRole)) {
|
|
22527
22528
|
temptagid = "allevents";
|
|
22528
22529
|
}
|
|
22529
22530
|
//console.log('fetch calendar url', url);
|
|
22530
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
22531
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month, "viewerrole": this.myRole };
|
|
22531
22532
|
if (searchString.length > 0) {
|
|
22532
22533
|
urlBody["searchstring"] = searchString;
|
|
22533
22534
|
}
|
|
@@ -23987,7 +23988,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
23987
23988
|
day = '0' + day;
|
|
23988
23989
|
let eDate = month + "/" + day + "/" + year;
|
|
23989
23990
|
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 };
|
|
23990
|
-
let url = "https://" + this.apiId + "/
|
|
23991
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
23991
23992
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23992
23993
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
23993
23994
|
this._SfLoader.innerHTML = '';
|
|
@@ -24072,7 +24073,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24072
24073
|
console.log('fetching compliances', sortid);
|
|
24073
24074
|
let complianceEntityId = sortid.split(';')[1];
|
|
24074
24075
|
let complianceLocationId = sortid.split(';')[2];
|
|
24075
|
-
let url = "https://" + this.apiId + "/
|
|
24076
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
24076
24077
|
let sDateObj = selectedDate;
|
|
24077
24078
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
24078
24079
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -13424,6 +13424,7 @@ export class SfIEvents extends LitElement {
|
|
|
13424
13424
|
let userid = this.userProfileId
|
|
13425
13425
|
// let username = this.userName;
|
|
13426
13426
|
let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
|
|
13427
|
+
console.log('FilterString', filterString)
|
|
13427
13428
|
let rolestr = "viewer"
|
|
13428
13429
|
;
|
|
13429
13430
|
if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
|
|
@@ -28630,7 +28631,7 @@ export class SfIEvents extends LitElement {
|
|
|
28630
28631
|
view = "entity";
|
|
28631
28632
|
}
|
|
28632
28633
|
|
|
28633
|
-
path = "
|
|
28634
|
+
path = "getallcountryevents2";
|
|
28634
28635
|
|
|
28635
28636
|
let sDate = "";
|
|
28636
28637
|
let eDate = "";
|
|
@@ -28767,17 +28768,17 @@ export class SfIEvents extends LitElement {
|
|
|
28767
28768
|
view = "entity";
|
|
28768
28769
|
}
|
|
28769
28770
|
|
|
28770
|
-
path = "
|
|
28771
|
+
path = "getallcountryevents2";
|
|
28771
28772
|
|
|
28772
28773
|
let url = "https://" + this.apiId + "/" + path;
|
|
28773
28774
|
let temptagid = tagid;
|
|
28774
28775
|
if (temptagid == "" && locationid != "") {
|
|
28775
28776
|
temptagid = locationid
|
|
28776
|
-
} else if (temptagid == "" && userprofileid != this.userProfileId) {
|
|
28777
|
+
} else if (temptagid == "" && (userprofileid != this.userProfileId || userrole != this.myRole)) {
|
|
28777
28778
|
temptagid = "allevents"
|
|
28778
28779
|
}
|
|
28779
28780
|
//console.log('fetch calendar url', url);
|
|
28780
|
-
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
28781
|
+
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month, "viewerrole": this.myRole };
|
|
28781
28782
|
|
|
28782
28783
|
if (searchString.length > 0) {
|
|
28783
28784
|
urlBody["searchstring"] = searchString;
|
|
@@ -30488,7 +30489,7 @@ export class SfIEvents extends LitElement {
|
|
|
30488
30489
|
day = '0' + day;
|
|
30489
30490
|
let eDate = month + "/" + day + "/" + year
|
|
30490
30491
|
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 };
|
|
30491
|
-
let url = "https://" + this.apiId + "/
|
|
30492
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
30492
30493
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
30493
30494
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
30494
30495
|
this._SfLoader.innerHTML = '';
|
|
@@ -30581,7 +30582,7 @@ export class SfIEvents extends LitElement {
|
|
|
30581
30582
|
console.log('fetching compliances', sortid)
|
|
30582
30583
|
let complianceEntityId = sortid.split(';')[1]
|
|
30583
30584
|
let complianceLocationId = sortid.split(';')[2]
|
|
30584
|
-
let url = "https://" + this.apiId + "/
|
|
30585
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
30585
30586
|
let sDateObj = selectedDate
|
|
30586
30587
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
30587
30588
|
let day = '' + sDateObj.getDate();
|