sf-i-events 1.0.948 → 1.0.949
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 +34 -4
- package/package.json +1 -1
- package/sf-i-events.js +6 -2
- package/src/sf-i-events.ts +6 -2
package/dev/index.html
CHANGED
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
</div>
|
|
942
942
|
|
|
943
943
|
</sf-i-events> -->
|
|
944
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
944
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
945
945
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
946
946
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
947
947
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
971
971
|
</div>
|
|
972
972
|
|
|
973
|
-
</sf-i-events>
|
|
973
|
+
</sf-i-events> -->
|
|
974
974
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
975
975
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
976
976
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -991,11 +991,12 @@
|
|
|
991
991
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
992
992
|
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
993
993
|
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
994
|
-
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
994
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
995
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
995
996
|
username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0"
|
|
996
997
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
997
998
|
countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false"
|
|
998
|
-
features="["notices","contracts","licenses"]"
|
|
999
|
+
features="["notices","contracts","licenses","rcmresources"]"
|
|
999
1000
|
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
1000
1001
|
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"}]"
|
|
1001
1002
|
eventpreviewfields="["obligation"]"
|
|
@@ -1115,6 +1116,35 @@
|
|
|
1115
1116
|
</div>
|
|
1116
1117
|
|
|
1117
1118
|
</sf-i-events> -->
|
|
1119
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1120
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1121
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1122
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
1123
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
1124
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
1125
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
1126
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="pattern"
|
|
1127
|
+
username="Sashreeka Nachane" userprofileid="7ceaf705-3e54-49d1-b143-5ce1d687300e"
|
|
1128
|
+
projectid="411aa07b-6104-443b-8e9b-bb17e1ea5768" projectname="Inzpera"
|
|
1129
|
+
countryid="73801229-4bb1-471b-8d84-565a9501db76" selectedcriteria="Country - India" enabledeletelatestreport="true"
|
|
1130
|
+
features="[]"
|
|
1131
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
1132
|
+
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"}]"
|
|
1133
|
+
eventpreviewfields="["obligationtitle"]"
|
|
1134
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
1135
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
1136
|
+
|
|
1137
|
+
<div slot="uploader">
|
|
1138
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
1139
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx","zip"]"
|
|
1140
|
+
extract="yes" projectid="411aa07b-6104-443b-8e9b-bb17e1ea5768" maxsize="31457280"
|
|
1141
|
+
allowdownload="yes"></sf-i-uploader>
|
|
1142
|
+
</div>
|
|
1143
|
+
<div slot="reporting">
|
|
1144
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1145
|
+
</div>
|
|
1146
|
+
|
|
1147
|
+
</sf-i-events>
|
|
1118
1148
|
<script>
|
|
1119
1149
|
|
|
1120
1150
|
function setCookie(name, value, days) {
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -13058,11 +13058,15 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13058
13058
|
let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: ((_a = JSON.parse(reportformatvalues).terminated) !== null && _a !== void 0 ? _a : false) };
|
|
13059
13059
|
console.log('reopen body', url, urlBody);
|
|
13060
13060
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
13061
|
-
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, '
|
|
13061
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Renewing'));
|
|
13062
13062
|
this._SfLoader.innerHTML = '';
|
|
13063
13063
|
if (xhr.status == 200) {
|
|
13064
13064
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
13065
13065
|
console.log('jsonRespose agreement reopen', jsonRespose);
|
|
13066
|
+
this.setSuccess("Renewal successful");
|
|
13067
|
+
setTimeout(() => {
|
|
13068
|
+
this.clearMessages();
|
|
13069
|
+
}, 3000);
|
|
13066
13070
|
}
|
|
13067
13071
|
else {
|
|
13068
13072
|
if (xhr.status == 401) {
|
|
@@ -22049,7 +22053,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22049
22053
|
if (xhr.status == 200) {
|
|
22050
22054
|
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
22051
22055
|
//console.log('jsonResponse sync', jsonRespose);
|
|
22052
|
-
this.setSuccess("
|
|
22056
|
+
this.setSuccess("Suggestion sent successfully!");
|
|
22053
22057
|
setTimeout(() => {
|
|
22054
22058
|
this.clearMessages();
|
|
22055
22059
|
// this.showChosenMapping();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -16886,12 +16886,16 @@ export class SfIEvents extends LitElement {
|
|
|
16886
16886
|
let urlBody: any = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: (JSON.parse(reportformatvalues).terminated ?? false) };
|
|
16887
16887
|
console.log('reopen body', url, urlBody)
|
|
16888
16888
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
16889
|
-
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, '
|
|
16889
|
+
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Renewing')) as any;
|
|
16890
16890
|
this._SfLoader.innerHTML = '';
|
|
16891
16891
|
if (xhr.status == 200) {
|
|
16892
16892
|
|
|
16893
16893
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16894
16894
|
console.log('jsonRespose agreement reopen', jsonRespose);
|
|
16895
|
+
this.setSuccess("Renewal successful");
|
|
16896
|
+
setTimeout(() => {
|
|
16897
|
+
this.clearMessages()
|
|
16898
|
+
},3000)
|
|
16895
16899
|
} else {
|
|
16896
16900
|
if (xhr.status == 401) {
|
|
16897
16901
|
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
@@ -27882,7 +27886,7 @@ export class SfIEvents extends LitElement {
|
|
|
27882
27886
|
|
|
27883
27887
|
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
27884
27888
|
//console.log('jsonResponse sync', jsonRespose);
|
|
27885
|
-
this.setSuccess("
|
|
27889
|
+
this.setSuccess("Suggestion sent successfully!");
|
|
27886
27890
|
setTimeout(() => {
|
|
27887
27891
|
this.clearMessages()
|
|
27888
27892
|
// this.showChosenMapping();
|