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 CHANGED
@@ -808,7 +808,7 @@
808
808
  </div>
809
809
 
810
810
  </sf-i-events> -->
811
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
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="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Pune&quot;,&quot;Mumbai&quot;],&quot;Telangana&quot;:[&quot;Telangana&quot;]},&quot;Canada&quot;:{&quot;CanadaSO&quot;:[&quot;CanadaLO&quot;]},&quot;Singapore&quot;:{&quot;SingaporeSO&quot;:[&quot;Orchard&quot;,&quot;Raffles&quot;,&quot;Robinson&quot;,&quot;Tanjong&quot;,&quot;Tras&quot;]},&quot;United Kingdom&quot;:{&quot;UnitedSO&quot;:[&quot;UnitedLO&quot;]},&quot;United States of America&quot;:{&quot;AmericaSO&quot;:[&quot;AmericaLO&quot;]}}"
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.932",
4
+ "version": "1.0.933",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
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
- html += '<div class="m-20">';
10218
- html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>';
10219
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + data[k] + '" minLength="80" lineSize="6"></sf-i-elastic-text>';
10220
- html += '</div>';
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="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '&quot;')}" 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);
@@ -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
- html += '<div class="m-20">';
13724
- html += '<div part="detail-head"><strong>' + cols[k] + '</strong></div>'
13725
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + data[k] + '" minLength="80" lineSize="6"></sf-i-elastic-text>';
13726
- html += '</div>';
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="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '&quot;')}" 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