sf-i-events 1.0.947 → 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 +37 -35
- package/package.json +1 -1
- package/sf-i-events.js +7 -3
- package/src/sf-i-events.ts +7 -3
package/dev/index.html
CHANGED
|
@@ -951,7 +951,8 @@
|
|
|
951
951
|
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
952
952
|
username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
|
|
953
953
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
954
|
-
|
|
954
|
+
countryid="07d73b44-648d-4301-82c4-d6df43397824" selectedcriteria="Country - India" myrole="reporter"
|
|
955
|
+
showregisterexport="false"
|
|
955
956
|
features="["notices","contracts","licenses","rcmresources"]"
|
|
956
957
|
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
957
958
|
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"}]"
|
|
@@ -961,7 +962,7 @@
|
|
|
961
962
|
|
|
962
963
|
<div slot="uploader">
|
|
963
964
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
964
|
-
allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]"
|
|
965
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx","zip"]"
|
|
965
966
|
extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
|
|
966
967
|
allowdownload="yes"></sf-i-uploader>
|
|
967
968
|
</div>
|
|
@@ -990,11 +991,12 @@
|
|
|
990
991
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
991
992
|
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
992
993
|
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
993
|
-
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"
|
|
994
996
|
username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0"
|
|
995
997
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
996
998
|
countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false"
|
|
997
|
-
features="["notices","contracts","licenses"]"
|
|
999
|
+
features="["notices","contracts","licenses","rcmresources"]"
|
|
998
1000
|
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
999
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"}]"
|
|
1000
1002
|
eventpreviewfields="["obligation"]"
|
|
@@ -1039,35 +1041,6 @@
|
|
|
1039
1041
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1040
1042
|
</div>
|
|
1041
1043
|
|
|
1042
|
-
</sf-i-events> -->
|
|
1043
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1044
|
-
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1045
|
-
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1046
|
-
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
1047
|
-
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
1048
|
-
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
1049
|
-
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
1050
|
-
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
1051
|
-
username="Sanjeev Sharma" userprofileid="100a85f2-35b8-42d1-b368-9865eab9b8fd"
|
|
1052
|
-
projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited"
|
|
1053
|
-
countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" selectedcriteria="Country - India" myrole="viewer"
|
|
1054
|
-
showregisterexport="false" features="[]"
|
|
1055
|
-
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
1056
|
-
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"}]"
|
|
1057
|
-
eventpreviewfields="["obligation"]"
|
|
1058
|
-
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
1059
|
-
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
1060
|
-
|
|
1061
|
-
<div slot="uploader">
|
|
1062
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
1063
|
-
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
1064
|
-
extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="31457280"
|
|
1065
|
-
allowdownload="yes"></sf-i-uploader>
|
|
1066
|
-
</div>
|
|
1067
|
-
<div slot="reporting">
|
|
1068
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1069
|
-
</div>
|
|
1070
|
-
|
|
1071
1044
|
</sf-i-events> -->
|
|
1072
1045
|
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
1073
1046
|
locations="{"India":{"Maharashtra":["Pune","Mumbai"],"Telangana":["Telangana"]},"Canada":{"CanadaSO":["CanadaLO"]},"Singapore":{"SingaporeSO":["Orchard","Raffles","Robinson","Tanjong","Tras"]},"United Kingdom":{"UnitedSO":["UnitedLO"]},"United States of America":{"AmericaSO":["AmericaLO"]}}"
|
|
@@ -1084,7 +1057,7 @@
|
|
|
1084
1057
|
disablesignoff="yes" disableclientresponse="yes">
|
|
1085
1058
|
|
|
1086
1059
|
</sf-i-events> -->
|
|
1087
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1060
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1088
1061
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1089
1062
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
1090
1063
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -1113,7 +1086,7 @@
|
|
|
1113
1086
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1114
1087
|
</div>
|
|
1115
1088
|
|
|
1116
|
-
</sf-i-events>
|
|
1089
|
+
</sf-i-events> -->
|
|
1117
1090
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
1118
1091
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
1119
1092
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -1143,6 +1116,35 @@
|
|
|
1143
1116
|
</div>
|
|
1144
1117
|
|
|
1145
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>
|
|
1146
1148
|
<script>
|
|
1147
1149
|
|
|
1148
1150
|
function setCookie(name, value, days) {
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2921,7 +2921,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2921
2921
|
// console.log("graphParam", graphParam.split(';')[0]);
|
|
2922
2922
|
const configHome = Util.getProjectConfigHome();
|
|
2923
2923
|
const configFlag = configHome.features != null && configHome.features.indexOf("understood") >= 0;
|
|
2924
|
-
html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span> Mark Understood</button>')) : '') + '</div>';
|
|
2924
|
+
html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span> Mark Understood</button>')) : '') + '</div>';
|
|
2925
2925
|
// }
|
|
2926
2926
|
return html;
|
|
2927
2927
|
};
|
|
@@ -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
|
@@ -5194,7 +5194,7 @@ export class SfIEvents extends LitElement {
|
|
|
5194
5194
|
// console.log("graphParam", graphParam.split(';')[0]);
|
|
5195
5195
|
const configHome = Util.getProjectConfigHome();
|
|
5196
5196
|
const configFlag = configHome.features != null && configHome.features.indexOf("understood") >= 0
|
|
5197
|
-
html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + ((event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span> Mark Understood</button>')) : '') + '</div>';
|
|
5197
|
+
html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span> Mark Understood</button>')) : '') + '</div>';
|
|
5198
5198
|
// }
|
|
5199
5199
|
|
|
5200
5200
|
return html;
|
|
@@ -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();
|