sf-i-events 1.0.402 → 1.0.404
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 +4 -4
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +4 -4
package/dev/index.html
CHANGED
|
@@ -567,13 +567,13 @@
|
|
|
567
567
|
<body>
|
|
568
568
|
|
|
569
569
|
|
|
570
|
-
|
|
570
|
+
<sf-i-events name="Calendar" apiid="d2gos2ro11pdov.cloudfront.net" mode="consumer" apiidtags="j385cxf2p0" 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" 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": "3z3fiubz8e", "field": "riskarea"},{"type": "sf-i-select", "apiId": "5s7ih5uw4h", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "oqze24s784", "field": "updatetype"},{"type": "sf-i-select", "apiId": "zu3kh9cq2c", "field": "country"},{"type": "sf-i-select", "apiId": "8ijy7mze67", "field": "specificity"},{"type": "sf-i-select", "apiId": "et1hdzg882", "field": "risk"},{"type": "sf-i-select", "apiId": "lhpn6gh0il", "field": "frequency"},{"type": "sf-i-select", "apiId": "8an2d4j1gc", "field": "category"},{"type": "sf-i-select", "apiId": "vofssiq1t3", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "clnu4kk1ah", "field": "state"},{"type": "sf-i-sub-select", "apiId": "aysa6i6723", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "mdkc0e2bo5", "field": "subcategory"},{"type": "sf-i-form", "apiId": "4wb2x6fkga", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
571
571
|
|
|
572
572
|
<div slot="uploader">
|
|
573
573
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf"]" extract="yes"></sf-i-uploader>
|
|
574
574
|
</div>
|
|
575
575
|
|
|
576
|
-
</sf-i-events>
|
|
576
|
+
</sf-i-events>
|
|
577
577
|
|
|
578
578
|
<!-- <sf-i-events mode="rcm" apiid="8icpy39ru0" apiidcompliances="r42gyc2xx1" apiidprojects="est9egdho9">
|
|
579
579
|
|
|
@@ -583,9 +583,9 @@
|
|
|
583
583
|
|
|
584
584
|
</sf-i-events> -->
|
|
585
585
|
|
|
586
|
-
<sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding" apiid="d2gos2ro11pdov.cloudfront.net" apiidstatutes="4wb2x6fkga" apiidcompliances="r42gyc2xx1" apiidtags="j385cxf2p0" apiidusers="rnmvvr922j">
|
|
586
|
+
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding" apiid="d2gos2ro11pdov.cloudfront.net" apiidstatutes="4wb2x6fkga" apiidcompliances="r42gyc2xx1" apiidtags="j385cxf2p0" apiidusers="rnmvvr922j">
|
|
587
587
|
|
|
588
|
-
</sf-i-events>
|
|
588
|
+
</sf-i-events> -->
|
|
589
589
|
|
|
590
590
|
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding" apiid="8icpy39ru0" apiidstatutes="4wb2x6fkga" apiidcompliances="r42gyc2xx1" apiidtags="j385cxf2p0" apiidusers="rnmvvr922j">
|
|
591
591
|
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -13356,7 +13356,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13356
13356
|
}
|
|
13357
13357
|
let url = "https://" + this.apiId + "/" + path;
|
|
13358
13358
|
console.log('fetch calendar url', url);
|
|
13359
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": "", "sdate": sDate, "edate": eDate, "paginate": paginate };
|
|
13359
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": "", "sdate": sDate, "edate": eDate, "paginate": paginate, "year": this.calendarStartYYYY };
|
|
13360
13360
|
console.log('urlbody', urlBody);
|
|
13361
13361
|
// if(this.foundCalendarInLocal(urlBody)) {
|
|
13362
13362
|
// //const jsonRespose = JSON.parse(localStorage.getItem(JSON.stringify(urlBody)) || "");
|
|
@@ -13390,7 +13390,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13390
13390
|
if (recallCount > 3)
|
|
13391
13391
|
break;
|
|
13392
13392
|
if (lastEvaluatedKey != null) {
|
|
13393
|
-
const xhr2 = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": lastEvaluatedKey, "sdate": sDate, "edate": eDate, "paginate": paginate }, url, this._SfLoader, authorization));
|
|
13393
|
+
const xhr2 = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": lastEvaluatedKey, "sdate": sDate, "edate": eDate, "paginate": paginate, "year": this.calendarStartYYYY }, url, this._SfLoader, authorization));
|
|
13394
13394
|
this._SfLoader.innerHTML = '';
|
|
13395
13395
|
if (xhr2.status == 200) {
|
|
13396
13396
|
const jsonRespose2 = JSON.parse(xhr2.responseText);
|
|
@@ -13543,7 +13543,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13543
13543
|
eDate = endDate;
|
|
13544
13544
|
}
|
|
13545
13545
|
let url = "https://" + this.apiId + "/" + path;
|
|
13546
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "true", "exclusivestartkey": "", "sdate": sDate, "edate": eDate, "paginate": paginate };
|
|
13546
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "true", "exclusivestartkey": "", "sdate": sDate, "edate": eDate, "paginate": paginate, "year": this.calendarStartYYYY };
|
|
13547
13547
|
console.log('urlbody', urlBody);
|
|
13548
13548
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
13549
13549
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization));
|
|
@@ -13557,7 +13557,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13557
13557
|
let lastEvaluatedKey = jsonRespose.lastEvaluatedKey;
|
|
13558
13558
|
do {
|
|
13559
13559
|
if (lastEvaluatedKey != null) {
|
|
13560
|
-
const xhr2 = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "true", "exclusivestartkey": lastEvaluatedKey, "sdate": sDate, "edate": eDate, "paginate": paginate }, url, this._SfLoader, authorization));
|
|
13560
|
+
const xhr2 = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "true", "exclusivestartkey": lastEvaluatedKey, "sdate": sDate, "edate": eDate, "paginate": paginate, "year": this.calendarStartYYYY }, url, this._SfLoader, authorization));
|
|
13561
13561
|
this._SfLoader.innerHTML = '';
|
|
13562
13562
|
if (xhr2.status == 200) {
|
|
13563
13563
|
const jsonRespose2 = JSON.parse(xhr2.responseText);
|