sf-i-events 1.0.931 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.931",
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];
@@ -17020,6 +17037,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17020
17037
  const id = e.currentTarget.id;
17021
17038
  const index = id.split("-")[4];
17022
17039
  await this.deleteFromSuspense(Object.keys(_suspenseList)[index], this.getCurrentYearGeneric());
17040
+ await this.loadOnboardingSuspense();
17023
17041
  });
17024
17042
  }
17025
17043
  };
@@ -17201,7 +17219,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17201
17219
  html += '<div id="locations-list-container" class="d-flex flex-col w-100 scroll-x">';
17202
17220
  html += '</div>';
17203
17221
  this._SfOnboardingLocationsContainer.innerHTML = html;
17204
- 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, "", "");
17205
17223
  };
17206
17224
  this.renderOnboardingCompliances = (mappedStatutes, mappedCompliances) => {
17207
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") {
@@ -21818,6 +21833,7 @@ export class SfIEvents extends LitElement {
21818
21833
  const id = e.currentTarget.id;
21819
21834
  const index = id.split("-")[4];
21820
21835
  await this.deleteFromSuspense(Object.keys(_suspenseList)[index], this.getCurrentYearGeneric());
21836
+ await this.loadOnboardingSuspense();
21821
21837
  });
21822
21838
  }
21823
21839
  }
@@ -22128,7 +22144,7 @@ export class SfIEvents extends LitElement {
22128
22144
 
22129
22145
  (this._SfOnboardingLocationsContainer as HTMLDivElement).innerHTML = html;
22130
22146
 
22131
- 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, "", "");
22132
22148
 
22133
22149
  }
22134
22150