sf-i-events 1.0.896 → 1.0.897

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
@@ -786,7 +786,21 @@
786
786
  </div>
787
787
 
788
788
  </sf-i-events> -->
789
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
789
+ <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
790
+ apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
791
+ apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
792
+ apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1"
793
+ userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710"
794
+ projectname="ABC Global" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]"
795
+ eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]"
796
+ blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
797
+ <div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
798
+ allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]"
799
+ extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
800
+ allowdownload="yes"></sf-i-uploader></div>
801
+ <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
802
+ </sf-i-events>
803
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
790
804
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
791
805
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
792
806
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -813,7 +827,7 @@
813
827
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
814
828
  </div>
815
829
 
816
- </sf-i-events>
830
+ </sf-i-events> -->
817
831
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
818
832
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
819
833
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.896",
4
+ "version": "1.0.897",
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
@@ -12952,7 +12952,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12952
12952
  html += '<div part="detail-summary">';
12953
12953
  html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
12954
12954
  html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + event['obligation'].replace(/\n/g, '<br />') + '</h3></div>');
12955
- html += ('<div part="detail-summary-content" class="pl-20 pr-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
12955
+ html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
12956
12956
  html += '</div>';
12957
12957
  html += '<br />';
12958
12958
  html += '<div class="accordian-section section-basic pl-20 pr-20" part="accordian-section">';
@@ -13068,7 +13068,13 @@ let SfIEvents = class SfIEvents extends LitElement {
13068
13068
  html += '<div class="m-20">';
13069
13069
  html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>';
13070
13070
  for (let attachmentStr of event[complianceFields[i]]) {
13071
- let attachment = JSON.parse(attachmentStr + "");
13071
+ let attachment = {};
13072
+ if (typeof attachmentStr === "object") {
13073
+ attachment = attachmentStr;
13074
+ }
13075
+ else {
13076
+ attachment = JSON.parse(attachmentStr + "");
13077
+ }
13072
13078
  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;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`;
13073
13079
  }
13074
13080
  html += '</div>';
@@ -16910,7 +16910,7 @@ export class SfIEvents extends LitElement {
16910
16910
  html += '<div part="detail-summary">';
16911
16911
  html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
16912
16912
  html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + event['obligation'].replace(/\n/g, '<br />') + '</h3></div>');
16913
- html += ('<div part="detail-summary-content" class="pl-20 pr-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
16913
+ html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
16914
16914
  html += '</div>';
16915
16915
 
16916
16916
  html += '<br />';
@@ -17053,7 +17053,12 @@ export class SfIEvents extends LitElement {
17053
17053
  html += '<div class="m-20">';
17054
17054
  html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>'
17055
17055
  for (let attachmentStr of event[complianceFields[i]]) {
17056
- let attachment = JSON.parse(attachmentStr + "");
17056
+ let attachment:any = {};
17057
+ if(typeof attachmentStr === "object"){
17058
+ attachment = attachmentStr;
17059
+ }else{
17060
+ attachment = JSON.parse(attachmentStr + "");
17061
+ }
17057
17062
  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;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
17058
17063
  }
17059
17064
  html += '</div>';