sf-i-events 1.0.961 → 1.0.963

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,6 +850,20 @@
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"
854
+ apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
855
+ apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
856
+ apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1"
857
+ userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710"
858
+ projectname="ABC Global" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]"
859
+ eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]"
860
+ blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
861
+ <div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
862
+ allowedextensions="[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;,&quot;zip&quot;]"
863
+ extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
864
+ allowdownload="yes"></sf-i-uploader></div>
865
+ <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
866
+ </sf-i-events> -->
853
867
  <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
854
868
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
855
869
  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.961",
4
+ "version": "1.0.963",
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
@@ -1174,7 +1174,8 @@ let SfIEvents = class SfIEvents extends LitElement {
1174
1174
  };
1175
1175
  this.eventFields = null;
1176
1176
  this.getEventFields = () => {
1177
- return JSON.parse(this.eventFields);
1177
+ var _a;
1178
+ return JSON.parse((_a = this.eventFields) !== null && _a !== void 0 ? _a : "[]");
1178
1179
  };
1179
1180
  this.eventFieldDependencies = null;
1180
1181
  this.getEventFieldDependencies = () => {
@@ -2597,7 +2598,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2597
2598
  return html;
2598
2599
  };
2599
2600
  this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
2600
- var _a, _b, _c, _f, _g, _h, _j, _k, _l;
2601
+ var _a, _b, _c, _f, _g;
2601
2602
  var html = '';
2602
2603
  var remarks = "";
2603
2604
  var occurrenceDate = "";
@@ -2700,10 +2701,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2700
2701
  ${lastUpdated}
2701
2702
  </div>
2702
2703
  ` : ''}
2703
- ${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>`}
2704
- ${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
+
2705
2705
  </div>
2706
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>`}
2707
2709
  if (event.concise == null && remarks.length > 0) {
2708
2710
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
2709
2711
  }
@@ -1447,7 +1447,7 @@ export class SfIEvents extends LitElement {
1447
1447
  eventFields: any = null;
1448
1448
 
1449
1449
  getEventFields = () => {
1450
- return JSON.parse(this.eventFields);
1450
+ return JSON.parse(this.eventFields ?? "[]");
1451
1451
  }
1452
1452
 
1453
1453
  @property()
@@ -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
  }