sf-i-events 1.0.932 → 1.0.933
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 +22 -5
- package/src/sf-i-events.ts +21 -6
package/dev/index.html
CHANGED
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
</div>
|
|
809
809
|
|
|
810
810
|
</sf-i-events> -->
|
|
811
|
-
|
|
811
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
812
812
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
813
813
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
814
814
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
834
834
|
</div>
|
|
835
835
|
|
|
836
|
-
</sf-i-events>
|
|
836
|
+
</sf-i-events>
|
|
837
837
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
838
838
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
839
839
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -873,14 +873,14 @@
|
|
|
873
873
|
disablesignoff="yes" disableclientresponse="yes">
|
|
874
874
|
|
|
875
875
|
</sf-i-events> -->
|
|
876
|
-
<sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
876
|
+
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
877
877
|
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"]}}"
|
|
878
878
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
879
879
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
880
880
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
881
881
|
disablesignoff="yes" disableclientresponse="yes">
|
|
882
882
|
|
|
883
|
-
</sf-i-events>
|
|
883
|
+
</sf-i-events> -->
|
|
884
884
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
885
885
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
886
886
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -10214,10 +10214,27 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10214
10214
|
//console.log('cols', cols, cols.length);
|
|
10215
10215
|
for (var k = 0; k < cols.length; k++) {
|
|
10216
10216
|
if (!this.EXCLUDE_COLS_FROM_REGS.includes(cols[k].toLowerCase())) {
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10217
|
+
if (cols[k].toLowerCase() == "attachment") {
|
|
10218
|
+
html += '<div class="m-20">';
|
|
10219
|
+
html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>';
|
|
10220
|
+
for (let attachmentStr of data[k]) {
|
|
10221
|
+
let attachment = {};
|
|
10222
|
+
if (typeof attachmentStr === "object") {
|
|
10223
|
+
attachment = attachmentStr;
|
|
10224
|
+
}
|
|
10225
|
+
else {
|
|
10226
|
+
attachment = JSON.parse(attachmentStr + "");
|
|
10227
|
+
}
|
|
10228
|
+
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`;
|
|
10229
|
+
}
|
|
10230
|
+
html += '</div>';
|
|
10231
|
+
}
|
|
10232
|
+
else {
|
|
10233
|
+
html += '<div class="m-20">';
|
|
10234
|
+
html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>';
|
|
10235
|
+
html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + data[k] + '" minLength="80" lineSize="6"></sf-i-elastic-text>';
|
|
10236
|
+
html += '</div>';
|
|
10237
|
+
}
|
|
10221
10238
|
}
|
|
10222
10239
|
if (cols[k].toLowerCase() == "shortid") {
|
|
10223
10240
|
shortId = (data[k])[0];
|
|
@@ -17202,7 +17219,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17202
17219
|
html += '<div id="locations-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
17203
17220
|
html += '</div>';
|
|
17204
17221
|
this._SfOnboardingLocationsContainer.innerHTML = html;
|
|
17205
|
-
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
17222
|
+
this.renderTaggingTable(this._SfOnboardingLocationsListContainer, mappedSerializedEntities, mappedLocations, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference", "activations", "invalidations"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
17206
17223
|
};
|
|
17207
17224
|
this.renderOnboardingCompliances = (mappedStatutes, mappedCompliances) => {
|
|
17208
17225
|
//console.log('mappedcompliances', mappedCompliances);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -13694,7 +13694,6 @@ export class SfIEvents extends LitElement {
|
|
|
13694
13694
|
// }, 1000);
|
|
13695
13695
|
}
|
|
13696
13696
|
renderEventDetailShort = (compliance: any) => {
|
|
13697
|
-
|
|
13698
13697
|
var html = `
|
|
13699
13698
|
|
|
13700
13699
|
<div class="d-flex justify-between m-20">
|
|
@@ -13715,15 +13714,31 @@ export class SfIEvents extends LitElement {
|
|
|
13715
13714
|
|
|
13716
13715
|
const data = JSON.parse(compliance.data);
|
|
13717
13716
|
const cols = JSON.parse(compliance.cols);
|
|
13717
|
+
|
|
13718
13718
|
//console.log('cols', cols, cols.length);
|
|
13719
13719
|
|
|
13720
13720
|
for (var k = 0; k < cols.length; k++) {
|
|
13721
13721
|
if (!this.EXCLUDE_COLS_FROM_REGS.includes(cols[k].toLowerCase())) {
|
|
13722
13722
|
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13723
|
+
if (cols[k].toLowerCase() == "attachment") {
|
|
13724
|
+
html += '<div class="m-20">';
|
|
13725
|
+
html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>'
|
|
13726
|
+
for (let attachmentStr of data[k]) {
|
|
13727
|
+
let attachment: any = {};
|
|
13728
|
+
if (typeof attachmentStr === "object") {
|
|
13729
|
+
attachment = attachmentStr;
|
|
13730
|
+
} else {
|
|
13731
|
+
attachment = JSON.parse(attachmentStr + "");
|
|
13732
|
+
}
|
|
13733
|
+
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
13734
|
+
}
|
|
13735
|
+
html += '</div>';
|
|
13736
|
+
} else {
|
|
13737
|
+
html += '<div class="m-20">';
|
|
13738
|
+
html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>'
|
|
13739
|
+
html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + data[k] + '" minLength="80" lineSize="6"></sf-i-elastic-text>';
|
|
13740
|
+
html += '</div>';
|
|
13741
|
+
}
|
|
13727
13742
|
|
|
13728
13743
|
}
|
|
13729
13744
|
if (cols[k].toLowerCase() == "shortid") {
|
|
@@ -22129,7 +22144,7 @@ export class SfIEvents extends LitElement {
|
|
|
22129
22144
|
|
|
22130
22145
|
(this._SfOnboardingLocationsContainer as HTMLDivElement).innerHTML = html;
|
|
22131
22146
|
|
|
22132
|
-
this.renderTaggingTable((this._SfOnboardingLocationsListContainer as HTMLDivElement), mappedSerializedEntities, mappedLocations, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
22147
|
+
this.renderTaggingTable((this._SfOnboardingLocationsListContainer as HTMLDivElement), mappedSerializedEntities, mappedLocations, ["shortid", "applicability", "firstlineofdefence", "obligationtitle", "obligationtype", "country", "statute", "reference", "activations", "invalidations"], this.uploadLocationsMapping, this.loadOnboardingLocations, "locations", ["id", "countryname", "entityname"], this.apiIdTags, "&Location", ["locations"], locationsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
22133
22148
|
|
|
22134
22149
|
}
|
|
22135
22150
|
|