sf-i-events 1.0.962 → 1.0.964

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
@@ -850,7 +850,7 @@
850
850
  </div>
851
851
 
852
852
  </sf-i-events> -->
853
- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
853
+ <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
854
854
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
855
855
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
856
856
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1"
@@ -863,8 +863,8 @@
863
863
  extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
864
864
  allowdownload="yes"></sf-i-uploader></div>
865
865
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
866
- </sf-i-events>
867
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
866
+ </sf-i-events> -->
867
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
868
868
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
869
869
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
870
870
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -893,7 +893,7 @@
893
893
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
894
894
  </div>
895
895
 
896
- </sf-i-events> -->
896
+ </sf-i-events>
897
897
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
898
898
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
899
899
  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.962",
4
+ "version": "1.0.964",
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
@@ -2598,7 +2598,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2598
2598
  return html;
2599
2599
  };
2600
2600
  this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
2601
- var _a, _b, _c, _f, _g, _h, _j, _k, _l;
2601
+ var _a, _b, _c, _f, _g;
2602
2602
  var html = '';
2603
2603
  var remarks = "";
2604
2604
  var occurrenceDate = "";
@@ -2663,7 +2663,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2663
2663
  <sf-i-elastic-text exportparts="highlight,highlight-count"
2664
2664
  class="stream-event-title${!isBulk ? ' button-event-title' : ''}"
2665
2665
  id="stream-event-title-${mmddSanitized}-${itemNumber}-${moduleType}-${(isReportedLocation) ? 'reportedlocations' : ''}"
2666
- text="${event.obligationtitle}"
2666
+ text="${event.obligationtitle.replace(/\\n/g, '')}"
2667
2667
  minLength="${event.concise == null ? '100' : '60'}">
2668
2668
  </sf-i-elastic-text>
2669
2669
  ${showLocationRisk ? `
@@ -2701,10 +2701,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2701
2701
  ${lastUpdated}
2702
2702
  </div>
2703
2703
  ` : ''}
2704
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${(_h = event['minlocal']) !== null && _h !== void 0 ? _h : ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${(_j = event['minglobal']) !== null && _j !== void 0 ? _j : ""}</div>`}
2705
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${(_k = ((event['maxlocal'] < event['minlocal']) ? event['minlocal'] : event['maxlocal'])) !== null && _k !== void 0 ? _k : ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${(_l = ((event['maxglobal'] < event['minglobal']) ? event['minglobal'] : event['maxglobal'])) !== null && _l !== void 0 ? _l : ""}</div>`}
2704
+
2706
2705
  </div>
2707
2706
  `;
2707
+ // ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${event['minlocal'] ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${event['minglobal'] ?? ""}</div>`}
2708
+ // ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxlocal'] < event['minlocal']) ? event['minlocal'] : event['maxlocal']) ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxglobal'] < event['minglobal']) ? event['minglobal'] : event['maxglobal']) ?? ""}</div>`}
2708
2709
  if (event.concise == null && remarks.length > 0) {
2709
2710
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
2710
2711
  }
@@ -3848,7 +3849,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3848
3849
  else if (uploadGuidance != 0) {
3849
3850
  html += '<div part="upload-guidance-content">';
3850
3851
  html += '<div part="detail-head" class="mb-5"><strong>Upload Guidance</strong></div>';
3851
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
3852
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
3852
3853
  html += '</div>';
3853
3854
  }
3854
3855
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>';
@@ -14219,12 +14220,13 @@ let SfIEvents = class SfIEvents extends LitElement {
14219
14220
  html += '<div part="detail-summary">';
14220
14221
  html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
14221
14222
  let obligationArr = event['obligation'].split('More information:');
14222
- html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\n/g, '<br />') + '</h3></div>');
14223
+ console.log('detailsObligation', obligationArr[0].replace(/\\n/g, '<br />'));
14224
+ html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\\n/g, '<br />') + '</h3></div>');
14223
14225
  if (obligationArr.length > 1) {
14224
14226
  let tempObligationArr = obligationArr.slice(1);
14225
- html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
14227
+ html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
14226
14228
  }
14227
- html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
14229
+ html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
14228
14230
  html += '</div>';
14229
14231
  html += '<br />';
14230
14232
  html += '<div class="accordian-section section-basic pl-20 pr-20" part="accordian-section">';
@@ -14330,7 +14332,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14330
14332
  html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
14331
14333
  }
14332
14334
  else {
14333
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
14335
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
14334
14336
  }
14335
14337
  html += '</div>';
14336
14338
  }
@@ -14370,7 +14372,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14370
14372
  html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
14371
14373
  }
14372
14374
  else {
14373
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
14375
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
14374
14376
  }
14375
14377
  html += '</div>';
14376
14378
  }
@@ -14405,7 +14407,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14405
14407
  }
14406
14408
  else {
14407
14409
  //console.log('grcfield', event[grcFields[i]]);
14408
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
14410
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
14409
14411
  }
14410
14412
  }
14411
14413
  html += '</div>';
@@ -4915,7 +4915,7 @@ export class SfIEvents extends LitElement {
4915
4915
  <sf-i-elastic-text exportparts="highlight,highlight-count"
4916
4916
  class="stream-event-title${!isBulk ? ' button-event-title' : ''}"
4917
4917
  id="stream-event-title-${mmddSanitized}-${itemNumber}-${moduleType}-${(isReportedLocation) ? 'reportedlocations' : ''}"
4918
- text="${event.obligationtitle}"
4918
+ text="${event.obligationtitle.replace(/\\n/g,'')}"
4919
4919
  minLength="${event.concise == null ? '100' : '60'}">
4920
4920
  </sf-i-elastic-text>
4921
4921
  ${showLocationRisk ? `
@@ -4953,11 +4953,11 @@ export class SfIEvents extends LitElement {
4953
4953
  ${lastUpdated}
4954
4954
  </div>
4955
4955
  ` : ''}
4956
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${event['minlocal'] ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${event['minglobal'] ?? ""}</div>`}
4957
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxlocal'] < event['minlocal']) ? event['minlocal'] : event['maxlocal']) ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxglobal'] < event['minglobal']) ? event['minglobal'] : event['maxglobal']) ?? ""}</div>`}
4956
+
4958
4957
  </div>
4959
4958
  `;
4960
-
4959
+ // ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${event['minlocal'] ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${event['minglobal'] ?? ""}</div>`}
4960
+ // ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxlocal'] < event['minlocal']) ? event['minlocal'] : event['maxlocal']) ?? ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${((event['maxglobal'] < event['minglobal']) ? event['minglobal'] : event['maxglobal']) ?? ""}</div>`}
4961
4961
  if (event.concise == null && remarks.length > 0) {
4962
4962
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
4963
4963
  }
@@ -6230,7 +6230,7 @@ export class SfIEvents extends LitElement {
6230
6230
  } else if (uploadGuidance != 0) {
6231
6231
  html += '<div part="upload-guidance-content">'
6232
6232
  html += '<div part="detail-head" class="mb-5"><strong>Upload Guidance</strong></div>'
6233
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
6233
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
6234
6234
  html += '</div>'
6235
6235
  }
6236
6236
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
@@ -18170,12 +18170,13 @@ export class SfIEvents extends LitElement {
18170
18170
  html += '<div part="detail-summary">';
18171
18171
  html += ('<div part="detail-summary-title" class="pl-20 pr-20"><h1>' + event['obligationtitle'] + '</h1></div>');
18172
18172
  let obligationArr = event['obligation'].split('More information:');
18173
- html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\n/g, '<br />') + '</h3></div>');
18173
+ console.log('detailsObligation', obligationArr[0].replace(/\\n/g, '<br />'))
18174
+ html += ('<div part="detail-summary-subtitle" class="pl-20 pr-20"><h3>' + obligationArr[0].replace(/\\n/g, '<br />') + '</h3></div>');
18174
18175
  if (obligationArr.length > 1) {
18175
18176
  let tempObligationArr = obligationArr.slice(1);
18176
- html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
18177
+ html += ('<div part="detail-summary-subtitle-more-info" class="pl-20 pr-20 pb-10">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="More information:' + (tempObligationArr.join('')).replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
18177
18178
  }
18178
- html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
18179
+ html += ('<div part="detail-summary-content" class="pl-20 pr-20 pt-20">' + ('<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event['internalcontrols'] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>') + '</div>');
18179
18180
  html += '</div>';
18180
18181
 
18181
18182
  html += '<br />';
@@ -18307,7 +18308,7 @@ export class SfIEvents extends LitElement {
18307
18308
  if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
18308
18309
  html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
18309
18310
  } else {
18310
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
18311
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
18311
18312
  }
18312
18313
  html += '</div>';
18313
18314
 
@@ -18346,7 +18347,7 @@ export class SfIEvents extends LitElement {
18346
18347
  if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
18347
18348
  html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
18348
18349
  } else {
18349
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
18350
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
18350
18351
  }
18351
18352
  html += '</div>';
18352
18353
 
@@ -18389,7 +18390,7 @@ export class SfIEvents extends LitElement {
18389
18390
  html += this.getEventTexts(grcFields[i], JSON.parse(event[grcFields[i]]), event);
18390
18391
  } else {
18391
18392
  //console.log('grcfield', event[grcFields[i]]);
18392
- html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
18393
+ html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
18393
18394
  }
18394
18395
  }
18395
18396