sf-i-events 1.0.834 → 1.0.835
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 +14 -4
- package/package.json +1 -1
- package/sf-i-events.js +13 -13
- package/src/sf-i-events.ts +13 -13
package/dev/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import {SfISubSelect} from 'https://esm.run/sf-i-sub-select@1.0.83/sf-i-sub-select.js';
|
|
23
23
|
import {SfIForm} from 'https://esm.run/sf-i-form@1.0.184/sf-i-form.js';
|
|
24
24
|
import {SfIElasticText} from 'https://esm.run/sf-i-elastic-text@1.0.17/sf-i-elastic-text.js';
|
|
25
|
-
import {SfIUploader} from 'https://esm.run/sf-i-uploader@1.0.
|
|
25
|
+
import {SfIUploader} from 'https://esm.run/sf-i-uploader@1.0.114/sf-i-uploader.js';
|
|
26
26
|
import {SfIMultitextarea} from 'https://esm.run/sf-i-multitextarea@1.0.23/sf-i-multitextarea.js';
|
|
27
27
|
import {SfIReporting} from 'https://esm.run/sf-i-reporting@1.0.73/sf-i-reporting.js';
|
|
28
28
|
import {SfIBricks} from 'https://esm.run/sf-i-bricks@1.0.8/sf-i-bricks.js';
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
// import {SfIForm} from 'https://unpkg.com/sf-i-form@1.0.184/sf-i-form.js?module';
|
|
39
39
|
// import {SfIEvents} from 'https://unpkg.com/sf-i-events@1.0.423/sf-i-events.js?module';
|
|
40
40
|
// import {SfIElasticText} from 'https://unpkg.com/sf-i-elastic-text@1.0.7/sf-i-elastic-text.js?module';
|
|
41
|
-
// import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.
|
|
41
|
+
// import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.114/sf-i-uploader.js?module';
|
|
42
42
|
// import {SfRandomText} from 'https://unpkg.com/sf-random-text@1.0.2/sf-random-text.js?module';
|
|
43
43
|
// import {SfNewFeature} from 'https://unpkg.com/sf-new-feature@1.0.1/sf-new-feature.js?module';
|
|
44
44
|
|
|
@@ -694,6 +694,16 @@
|
|
|
694
694
|
</div>
|
|
695
695
|
|
|
696
696
|
</sf-i-events> -->
|
|
697
|
+
<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="Precisionmed Functionhead" userprofileid="8b73b571-f993-49cf-96e1-bf84f628f26f" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" 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">
|
|
698
|
+
|
|
699
|
+
<div slot="uploader">
|
|
700
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
701
|
+
</div>
|
|
702
|
+
<div slot="reporting">
|
|
703
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
704
|
+
</div>
|
|
705
|
+
|
|
706
|
+
</sf-i-events>
|
|
697
707
|
<!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" 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">
|
|
698
708
|
|
|
699
709
|
<div slot="uploader">
|
|
@@ -769,7 +779,7 @@
|
|
|
769
779
|
</div>
|
|
770
780
|
|
|
771
781
|
</sf-i-events> -->
|
|
772
|
-
<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="2024">
|
|
782
|
+
<!-- <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="2024">
|
|
773
783
|
|
|
774
784
|
<div slot="uploader">
|
|
775
785
|
<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>
|
|
@@ -778,7 +788,7 @@
|
|
|
778
788
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
779
789
|
</div>
|
|
780
790
|
|
|
781
|
-
</sf-i-events>
|
|
791
|
+
</sf-i-events> -->
|
|
782
792
|
<!-- <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">
|
|
783
793
|
|
|
784
794
|
</sf-i-events> -->
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -9655,7 +9655,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9655
9655
|
};
|
|
9656
9656
|
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
|
|
9657
9657
|
console.log('listEvent', listEvent, listEvent.id);
|
|
9658
|
-
let url = "https://" + this.apiId + "/
|
|
9658
|
+
let url = "https://" + this.apiId + "/getalleventdetails1";
|
|
9659
9659
|
//console.log('fetch calendar url', url);
|
|
9660
9660
|
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 };
|
|
9661
9661
|
//console.log('urlbody', urlBody);
|
|
@@ -16996,7 +16996,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16996
16996
|
}
|
|
16997
16997
|
};
|
|
16998
16998
|
this.uploadAudit = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
16999
|
-
let url = "https://" + this.apiId + "/
|
|
16999
|
+
let url = "https://" + this.apiId + "/uploadaudit1";
|
|
17000
17000
|
const body = {
|
|
17001
17001
|
"mmddyyyy": mmddyyyy,
|
|
17002
17002
|
"projectid": this.projectId,
|
|
@@ -17041,7 +17041,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17041
17041
|
return retValue;
|
|
17042
17042
|
};
|
|
17043
17043
|
this.uploadAuditsBulk = async (bulkBody) => {
|
|
17044
|
-
let url = "https://" + this.apiId + "/
|
|
17044
|
+
let url = "https://" + this.apiId + "/uploadauditsbulk1";
|
|
17045
17045
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17046
17046
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17047
17047
|
this._SfLoader.innerHTML = '';
|
|
@@ -17061,7 +17061,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17061
17061
|
}
|
|
17062
17062
|
};
|
|
17063
17063
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
17064
|
-
let url = "https://" + this.apiId + "/
|
|
17064
|
+
let url = "https://" + this.apiId + "/uploadreview1";
|
|
17065
17065
|
const body = {
|
|
17066
17066
|
"mmddyyyy": mmddyyyy,
|
|
17067
17067
|
"projectid": this.projectId,
|
|
@@ -17133,7 +17133,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17133
17133
|
}
|
|
17134
17134
|
};
|
|
17135
17135
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
17136
|
-
let url = "https://" + this.apiId + "/
|
|
17136
|
+
let url = "https://" + this.apiId + "/uploadreviewsbulk1";
|
|
17137
17137
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17138
17138
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17139
17139
|
this._SfLoader.innerHTML = '';
|
|
@@ -17156,7 +17156,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17156
17156
|
}
|
|
17157
17157
|
};
|
|
17158
17158
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100", makercheckers) => {
|
|
17159
|
-
let url = "https://" + this.apiId + "/
|
|
17159
|
+
let url = "https://" + this.apiId + "/uploadreport3";
|
|
17160
17160
|
let body = {
|
|
17161
17161
|
"mmddyyyy": mmddyyyy,
|
|
17162
17162
|
"projectid": this.projectId,
|
|
@@ -17214,7 +17214,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17214
17214
|
return retValue;
|
|
17215
17215
|
};
|
|
17216
17216
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
17217
|
-
let url = "https://" + this.apiId + "/
|
|
17217
|
+
let url = "https://" + this.apiId + "/uploadreportsbulk3";
|
|
17218
17218
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17219
17219
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17220
17220
|
if (showSuccess) {
|
|
@@ -17516,7 +17516,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17516
17516
|
}
|
|
17517
17517
|
};
|
|
17518
17518
|
this.fetchDeleteReview = async (eventId, mmddyyyy, entityId, locationId) => {
|
|
17519
|
-
let url = "https://" + this.apiId + "/
|
|
17519
|
+
let url = "https://" + this.apiId + "/deletereview1";
|
|
17520
17520
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17521
17521
|
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization));
|
|
17522
17522
|
this._SfLoader.innerHTML = '';
|
|
@@ -18377,7 +18377,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18377
18377
|
else {
|
|
18378
18378
|
view = "entity";
|
|
18379
18379
|
}
|
|
18380
|
-
path = "
|
|
18380
|
+
path = "getallcountryevents2";
|
|
18381
18381
|
let sDate = "";
|
|
18382
18382
|
let eDate = "";
|
|
18383
18383
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -18541,7 +18541,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18541
18541
|
let path = "";
|
|
18542
18542
|
this.sdate = startDate;
|
|
18543
18543
|
this.edate = endDate;
|
|
18544
|
-
path = "
|
|
18544
|
+
path = "getstatistics1";
|
|
18545
18545
|
let sDate = "";
|
|
18546
18546
|
let eDate = "";
|
|
18547
18547
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -19085,7 +19085,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19085
19085
|
this.fetchNext = async (page, role, status) => {
|
|
19086
19086
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
19087
19087
|
this.nextPage = page;
|
|
19088
|
-
let url = "https://" + this.apiId + "/
|
|
19088
|
+
let url = "https://" + this.apiId + "/getnextuserevents1";
|
|
19089
19089
|
let statusArr = [];
|
|
19090
19090
|
if (status == this.TAB_ALL) {
|
|
19091
19091
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED];
|
|
@@ -19657,7 +19657,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19657
19657
|
day = '0' + day;
|
|
19658
19658
|
let eDate = month + "/" + day + "/" + year;
|
|
19659
19659
|
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 };
|
|
19660
|
-
let url = "https://" + this.apiId + "/
|
|
19660
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
19661
19661
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19662
19662
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
19663
19663
|
this._SfLoader.innerHTML = '';
|
|
@@ -19742,7 +19742,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19742
19742
|
console.log('fetching compliances', sortid);
|
|
19743
19743
|
let complianceEntityId = sortid.split(';')[1];
|
|
19744
19744
|
let complianceLocationId = sortid.split(';')[2];
|
|
19745
|
-
let url = "https://" + this.apiId + "/
|
|
19745
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
19746
19746
|
let sDateObj = selectedDate;
|
|
19747
19747
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
19748
19748
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -13264,7 +13264,7 @@ export class SfIEvents extends LitElement {
|
|
|
13264
13264
|
|
|
13265
13265
|
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
|
|
13266
13266
|
console.log('listEvent', listEvent, listEvent.id)
|
|
13267
|
-
let url = "https://"+this.apiId+"/
|
|
13267
|
+
let url = "https://"+this.apiId+"/getalleventdetails1";
|
|
13268
13268
|
|
|
13269
13269
|
//console.log('fetch calendar url', url);
|
|
13270
13270
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY};
|
|
@@ -22496,7 +22496,7 @@ export class SfIEvents extends LitElement {
|
|
|
22496
22496
|
}
|
|
22497
22497
|
|
|
22498
22498
|
uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22499
|
-
let url = "https://"+this.apiId+"/
|
|
22499
|
+
let url = "https://"+this.apiId+"/uploadaudit1";
|
|
22500
22500
|
|
|
22501
22501
|
const body = {
|
|
22502
22502
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22543,7 +22543,7 @@ export class SfIEvents extends LitElement {
|
|
|
22543
22543
|
return retValue;
|
|
22544
22544
|
}
|
|
22545
22545
|
uploadAuditsBulk = async (bulkBody: any) => {
|
|
22546
|
-
let url = "https://"+this.apiId+"/
|
|
22546
|
+
let url = "https://"+this.apiId+"/uploadauditsbulk1";
|
|
22547
22547
|
|
|
22548
22548
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22549
22549
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22566,7 +22566,7 @@ export class SfIEvents extends LitElement {
|
|
|
22566
22566
|
}
|
|
22567
22567
|
|
|
22568
22568
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22569
|
-
let url = "https://"+this.apiId+"/
|
|
22569
|
+
let url = "https://"+this.apiId+"/uploadreview1";
|
|
22570
22570
|
|
|
22571
22571
|
const body = {
|
|
22572
22572
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22641,7 +22641,7 @@ export class SfIEvents extends LitElement {
|
|
|
22641
22641
|
}
|
|
22642
22642
|
}
|
|
22643
22643
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
22644
|
-
let url = "https://"+this.apiId+"/
|
|
22644
|
+
let url = "https://"+this.apiId+"/uploadreviewsbulk1";
|
|
22645
22645
|
|
|
22646
22646
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22647
22647
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22666,7 +22666,7 @@ export class SfIEvents extends LitElement {
|
|
|
22666
22666
|
}
|
|
22667
22667
|
|
|
22668
22668
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100", makercheckers: any) => {
|
|
22669
|
-
let url = "https://"+this.apiId+"/
|
|
22669
|
+
let url = "https://"+this.apiId+"/uploadreport3";
|
|
22670
22670
|
|
|
22671
22671
|
let body = {
|
|
22672
22672
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22728,7 +22728,7 @@ export class SfIEvents extends LitElement {
|
|
|
22728
22728
|
}
|
|
22729
22729
|
|
|
22730
22730
|
uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
|
|
22731
|
-
let url = "https://"+this.apiId+"/
|
|
22731
|
+
let url = "https://"+this.apiId+"/uploadreportsbulk3"
|
|
22732
22732
|
|
|
22733
22733
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22734
22734
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -23124,7 +23124,7 @@ export class SfIEvents extends LitElement {
|
|
|
23124
23124
|
|
|
23125
23125
|
fetchDeleteReview = async (eventId: string, mmddyyyy: string, entityId: string, locationId: string) => {
|
|
23126
23126
|
|
|
23127
|
-
let url = "https://"+this.apiId+"/
|
|
23127
|
+
let url = "https://"+this.apiId+"/deletereview1";
|
|
23128
23128
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23129
23129
|
const xhr : any = (await this.prepareXhr({"projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization)) as any;
|
|
23130
23130
|
this._SfLoader.innerHTML = '';
|
|
@@ -24267,7 +24267,7 @@ export class SfIEvents extends LitElement {
|
|
|
24267
24267
|
view = "entity";
|
|
24268
24268
|
}
|
|
24269
24269
|
|
|
24270
|
-
path = "
|
|
24270
|
+
path = "getallcountryevents2";
|
|
24271
24271
|
|
|
24272
24272
|
let sDate = "";
|
|
24273
24273
|
let eDate = "";
|
|
@@ -24478,7 +24478,7 @@ export class SfIEvents extends LitElement {
|
|
|
24478
24478
|
this.edate = endDate;
|
|
24479
24479
|
|
|
24480
24480
|
|
|
24481
|
-
path = "
|
|
24481
|
+
path = "getstatistics1";
|
|
24482
24482
|
|
|
24483
24483
|
let sDate = "";
|
|
24484
24484
|
let eDate = "";
|
|
@@ -25124,7 +25124,7 @@ export class SfIEvents extends LitElement {
|
|
|
25124
25124
|
|
|
25125
25125
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
25126
25126
|
this.nextPage = page;
|
|
25127
|
-
let url = "https://"+this.apiId+"/
|
|
25127
|
+
let url = "https://"+this.apiId+"/getnextuserevents1";
|
|
25128
25128
|
let statusArr: string[] = []
|
|
25129
25129
|
if(status == this.TAB_ALL){
|
|
25130
25130
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED]
|
|
@@ -25797,7 +25797,7 @@ export class SfIEvents extends LitElement {
|
|
|
25797
25797
|
day = '0' + day;
|
|
25798
25798
|
let eDate = month + "/" + day + "/" + year
|
|
25799
25799
|
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};
|
|
25800
|
-
let url = "https://"+this.apiId+"/
|
|
25800
|
+
let url = "https://"+this.apiId+"/getallcountryevents2";
|
|
25801
25801
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25802
25802
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
25803
25803
|
this._SfLoader.innerHTML = '';
|
|
@@ -25890,7 +25890,7 @@ export class SfIEvents extends LitElement {
|
|
|
25890
25890
|
console.log('fetching compliances', sortid)
|
|
25891
25891
|
let complianceEntityId = sortid.split(';')[1]
|
|
25892
25892
|
let complianceLocationId = sortid.split(';')[2]
|
|
25893
|
-
let url = "https://"+this.apiId+"/
|
|
25893
|
+
let url = "https://"+this.apiId+"/getallcountryevents2";
|
|
25894
25894
|
let sDateObj = selectedDate
|
|
25895
25895
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
25896
25896
|
let day = '' + sDateObj.getDate();
|