sf-i-events 1.0.662 → 1.0.663
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 +7 -7
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +7 -7
package/dev/index.html
CHANGED
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
<!-- <sf-i-events projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" projectname="ABC Hospitals" mode="onboarding" locations="{}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="hrushi.mehendale@gmail.com" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
661
661
|
|
|
662
662
|
</sf-i-events> -->
|
|
663
|
-
|
|
663
|
+
<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="Infection Control Officer" userprofileid="11b0d1f1-713a-42c0-b76b-4e1800c4f269" projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" projectname="ABC Hospitals" countryid="04ebaebf-3521-4b8b-aec7-2f7111debe26" myrole="reporter" 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">
|
|
664
664
|
|
|
665
665
|
<div slot="uploader">
|
|
666
666
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -669,8 +669,8 @@
|
|
|
669
669
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
670
670
|
</div>
|
|
671
671
|
|
|
672
|
-
</sf-i-events>
|
|
673
|
-
<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 Finance User 1" userprofileid="fe704370-ff37-44d4-8b12-b49e7743cc33" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" 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">
|
|
672
|
+
</sf-i-events>
|
|
673
|
+
<!-- <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 Finance User 1" userprofileid="fe704370-ff37-44d4-8b12-b49e7743cc33" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" 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">
|
|
674
674
|
|
|
675
675
|
<div slot="uploader">
|
|
676
676
|
<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>
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
680
680
|
</div>
|
|
681
681
|
|
|
682
|
-
</sf-i-events>
|
|
682
|
+
</sf-i-events> -->
|
|
683
683
|
|
|
684
684
|
<!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="hrushi.mehendale@gmail.com" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
685
685
|
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -6221,7 +6221,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6221
6221
|
};
|
|
6222
6222
|
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton) => {
|
|
6223
6223
|
console.log('listEvent', listEvent, listEvent.id);
|
|
6224
|
-
let url = "https://" + this.apiId + "/
|
|
6224
|
+
let url = "https://" + this.apiId + "/getalleventdetails";
|
|
6225
6225
|
//console.log('fetch calendar url', url);
|
|
6226
6226
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY };
|
|
6227
6227
|
//console.log('urlbody', urlBody);
|
|
@@ -12788,7 +12788,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12788
12788
|
}
|
|
12789
12789
|
};
|
|
12790
12790
|
this.uploadAudit = async (entityId, locationId, mmddyyyy, eventid, comments, approved) => {
|
|
12791
|
-
let url = "https://" + this.apiId + "/
|
|
12791
|
+
let url = "https://" + this.apiId + "/uploadaudit";
|
|
12792
12792
|
const body = {
|
|
12793
12793
|
"mmddyyyy": mmddyyyy,
|
|
12794
12794
|
"projectid": this.projectId,
|
|
@@ -12824,7 +12824,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12824
12824
|
}
|
|
12825
12825
|
};
|
|
12826
12826
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved) => {
|
|
12827
|
-
let url = "https://" + this.apiId + "/
|
|
12827
|
+
let url = "https://" + this.apiId + "/uploadreview";
|
|
12828
12828
|
const body = {
|
|
12829
12829
|
"mmddyyyy": mmddyyyy,
|
|
12830
12830
|
"projectid": this.projectId,
|
|
@@ -12862,7 +12862,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12862
12862
|
``;
|
|
12863
12863
|
};
|
|
12864
12864
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "") => {
|
|
12865
|
-
let url = "https://" + this.apiId + "/
|
|
12865
|
+
let url = "https://" + this.apiId + "/uploadreport";
|
|
12866
12866
|
let body = {
|
|
12867
12867
|
"mmddyyyy": mmddyyyy,
|
|
12868
12868
|
"projectid": this.projectId,
|
|
@@ -14609,7 +14609,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14609
14609
|
this.fetchNext = async (page, role, status) => {
|
|
14610
14610
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
14611
14611
|
this.nextPage = page;
|
|
14612
|
-
let url = "https://" + this.apiId + "/
|
|
14612
|
+
let url = "https://" + this.apiId + "/getnextuserevents";
|
|
14613
14613
|
let statusArr = [];
|
|
14614
14614
|
if (status == this.TAB_ALL) {
|
|
14615
14615
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED];
|
|
@@ -15130,7 +15130,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15130
15130
|
day = '0' + day;
|
|
15131
15131
|
let eDate = month + "/" + day + "/" + year;
|
|
15132
15132
|
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 };
|
|
15133
|
-
let url = "https://" + this.apiId + "/
|
|
15133
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
15134
15134
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
15135
15135
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
15136
15136
|
this._SfLoader.innerHTML = '';
|
|
@@ -15211,7 +15211,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15211
15211
|
console.log('fetching compliances', sortid);
|
|
15212
15212
|
let complianceEntityId = sortid.split(';')[1];
|
|
15213
15213
|
let complianceLocationId = sortid.split(';')[2];
|
|
15214
|
-
let url = "https://" + this.apiId + "/
|
|
15214
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
15215
15215
|
let sDateObj = selectedDate;
|
|
15216
15216
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
15217
15217
|
let day = '' + sDateObj.getDate();
|