sf-i-events 1.0.970 → 1.0.972
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.d.ts +1 -0
- package/sf-i-events.js +11 -2
- package/src/sf-i-events.ts +11 -3
package/dev/index.html
CHANGED
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
</div>
|
|
1000
1000
|
|
|
1001
1001
|
</sf-i-events> -->
|
|
1002
|
-
|
|
1002
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1003
1003
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1004
1004
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1005
1005
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1029
1029
|
</div>
|
|
1030
1030
|
|
|
1031
|
-
</sf-i-events>
|
|
1031
|
+
</sf-i-events>
|
|
1032
1032
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
1033
1033
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
1034
1034
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
</div>
|
|
1232
1232
|
|
|
1233
1233
|
</sf-i-events> -->
|
|
1234
|
-
<sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
|
|
1234
|
+
<!-- <sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
|
|
1235
1235
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1236
1236
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1237
1237
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1259,7 +1259,7 @@
|
|
|
1259
1259
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1260
1260
|
</div>
|
|
1261
1261
|
|
|
1262
|
-
</sf-i-events>
|
|
1262
|
+
</sf-i-events> -->
|
|
1263
1263
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiIdUserProfiles="dnytrdlrmxgsy.cloudfront.net/userprofile" mode="reports" fill="pattern"
|
|
1264
1264
|
username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
|
|
1265
1265
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" calendarstartyyyy="2025"
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -14308,7 +14308,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14308
14308
|
};
|
|
14309
14309
|
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, previousId = "", nextId = "", flagUploadGuidance = false, listEventContainer = null, reportercomments = null, approvercomments = null, inputReportingPercentage = null, selectReportedLocation = null, documents = null, dateOfCompletion = null, fromDrilldown = false) => {
|
|
14310
14310
|
console.log('listEvent', listEvent, listEvent.id);
|
|
14311
|
-
let url = "https://" + this.apiId + "/
|
|
14311
|
+
let url = "https://" + this.apiId + "/getalleventdetails1";
|
|
14312
14312
|
//console.log('fetch calendar url', url);
|
|
14313
14313
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.getFinancialYear(mmddyyyy) };
|
|
14314
14314
|
//console.log('urlbody', urlBody);
|
|
@@ -22755,6 +22755,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22755
22755
|
};
|
|
22756
22756
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "compliance") => {
|
|
22757
22757
|
let url = "https://" + this.apiId + "/uploadreview1";
|
|
22758
|
+
if (module == "rcmresource" && this.apiId2 != null) {
|
|
22759
|
+
url = "https://" + this.apiId2 + "/uploadreview1";
|
|
22760
|
+
}
|
|
22758
22761
|
const body = {
|
|
22759
22762
|
"mmddyyyy": mmddyyyy,
|
|
22760
22763
|
"projectid": this.projectId,
|
|
@@ -22849,7 +22852,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22849
22852
|
}
|
|
22850
22853
|
};
|
|
22851
22854
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "compliance", percentage = "100", makercheckers, reportedlocations = "") => {
|
|
22852
|
-
let url = "https://" + this.apiId + "/
|
|
22855
|
+
let url = "https://" + this.apiId + "/uploadreport3";
|
|
22856
|
+
if (module == "rcmresource" && this.apiId2 != null) {
|
|
22857
|
+
url = "https://" + this.apiId2 + "/uploadreport3";
|
|
22858
|
+
}
|
|
22853
22859
|
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
22854
22860
|
let body = {
|
|
22855
22861
|
"mmddyyyy": mmddyyyy,
|
|
@@ -27973,6 +27979,9 @@ __decorate([
|
|
|
27973
27979
|
__decorate([
|
|
27974
27980
|
property()
|
|
27975
27981
|
], SfIEvents.prototype, "apiId", void 0);
|
|
27982
|
+
__decorate([
|
|
27983
|
+
property()
|
|
27984
|
+
], SfIEvents.prototype, "apiId2", void 0);
|
|
27976
27985
|
__decorate([
|
|
27977
27986
|
property()
|
|
27978
27987
|
], SfIEvents.prototype, "apiIdStatutes", void 0);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -1234,6 +1234,9 @@ export class SfIEvents extends LitElement {
|
|
|
1234
1234
|
@property()
|
|
1235
1235
|
apiId!: string;
|
|
1236
1236
|
|
|
1237
|
+
@property()
|
|
1238
|
+
apiId2!: string;
|
|
1239
|
+
|
|
1237
1240
|
@property()
|
|
1238
1241
|
apiIdStatutes!: string;
|
|
1239
1242
|
|
|
@@ -18252,7 +18255,7 @@ export class SfIEvents extends LitElement {
|
|
|
18252
18255
|
|
|
18253
18256
|
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string = "", nextId: string = "", flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation: string | null = null, documents: any | null = null, dateOfCompletion: string | null = null, fromDrilldown: boolean = false) => {
|
|
18254
18257
|
console.log('listEvent', listEvent, listEvent.id)
|
|
18255
|
-
let url = "https://" + this.apiId + "/
|
|
18258
|
+
let url = "https://" + this.apiId + "/getalleventdetails1";
|
|
18256
18259
|
|
|
18257
18260
|
//console.log('fetch calendar url', url);
|
|
18258
18261
|
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.getFinancialYear(mmddyyyy) };
|
|
@@ -28640,7 +28643,9 @@ export class SfIEvents extends LitElement {
|
|
|
28640
28643
|
|
|
28641
28644
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "compliance") => {
|
|
28642
28645
|
let url = "https://" + this.apiId + "/uploadreview1";
|
|
28643
|
-
|
|
28646
|
+
if(module == "rcmresource" && this.apiId2 != null) {
|
|
28647
|
+
url = "https://" + this.apiId2 + "/uploadreview1";
|
|
28648
|
+
}
|
|
28644
28649
|
const body = {
|
|
28645
28650
|
"mmddyyyy": mmddyyyy,
|
|
28646
28651
|
"projectid": this.projectId,
|
|
@@ -28739,7 +28744,10 @@ export class SfIEvents extends LitElement {
|
|
|
28739
28744
|
}
|
|
28740
28745
|
|
|
28741
28746
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "compliance", percentage: string = "100", makercheckers: any, reportedlocations: string = "") => {
|
|
28742
|
-
let url = "https://" + this.apiId + "/
|
|
28747
|
+
let url = "https://" + this.apiId + "/uploadreport3";
|
|
28748
|
+
if(module == "rcmresource" && this.apiId2 != null) {
|
|
28749
|
+
url = "https://" + this.apiId2 + "/uploadreport3";
|
|
28750
|
+
}
|
|
28743
28751
|
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
28744
28752
|
let body = {
|
|
28745
28753
|
"mmddyyyy": mmddyyyy,
|