sf-i-events 1.0.780 → 1.0.781

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
@@ -658,16 +658,16 @@
658
658
  </div>
659
659
 
660
660
  </sf-i-events> -->
661
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
662
-
663
- <div slot="uploader">
664
- <sf-i-uploader id="uploader" 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;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
665
- </div>
666
- <div slot="reporting">
667
- <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
668
- </div>
669
-
670
- </sf-i-events>
661
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
662
+
663
+ <div slot="uploader">
664
+ <sf-i-uploader id="uploader" 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;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
665
+ </div>
666
+ <div slot="reporting">
667
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
668
+ </div>
669
+
670
+ </sf-i-events>
671
671
  <!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{&quot;India&quot;:{&quot;Telangana&quot;:[&quot;Corporate Office&quot;,&quot;Telangana Plant&quot;],&quot;Karnataka&quot;:[&quot;Prime&quot;,&quot;Stopak&quot;,&quot;Wintek&quot;,&quot;Tools&quot;,&quot;Conversion&quot;],&quot;Gujarat&quot;:[&quot;Dahej&quot;],&quot;Dadra and Nagar Haveli and Daman and Diu&quot;:[&quot;Silvassa&quot;],&quot;Uttarakhand&quot;:[&quot;Uttarakhand&quot;],&quot;Maharashtra&quot;:[&quot;Pune&quot;],&quot;Andhra Pradesh&quot;:[&quot;AP&quot;],&quot;Chhattisgarh&quot;:[&quot;Chhattisgarh&quot;],&quot;Goa&quot;:[&quot;Goa&quot;],&quot;Himachal Pradesh&quot;:[&quot;HP&quot;],&quot;Haryana&quot;:[&quot;Haryana&quot;],&quot;Jharkhand&quot;:[&quot;Jharkhand&quot;],&quot;Madhya Pradesh&quot;:[&quot;MP&quot;],&quot;Odisha&quot;:[&quot;Odisha&quot;],&quot;Punjab&quot;:[&quot;Punjab&quot;],&quot;Tamil Nadu&quot;:[&quot;TN&quot;],&quot;Uttar Pradesh&quot;:[&quot;UP&quot;],&quot;West Bengal&quot;:[&quot;WB&quot;]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
672
672
 
673
673
  </sf-i-events> -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.780",
4
+ "version": "1.0.781",
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
@@ -8377,6 +8377,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8377
8377
  return csv;
8378
8378
  };
8379
8379
  this.renderGraph = (divContainer, pieData, partData, lateData, complianceData, param) => {
8380
+ console.log('rendering graph chart2');
8380
8381
  this.clearSelectedGraphParam();
8381
8382
  // this.clearSelectedLegend();
8382
8383
  this.csvGraphStats = "";
@@ -14352,7 +14353,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14352
14353
  animation: {
14353
14354
  duration: 0,
14354
14355
  onComplete: () => {
14355
- if (this.chart4 != null) {
14356
+ if (this.chart4 != null && this.chart4.ctx != null) {
14356
14357
  if (type == 'bar') {
14357
14358
  this.chart4.ctx.font = "bold 10pt 'Helvetica Neue'";
14358
14359
  this.chart4.ctx.fillStyle = '#000';
@@ -14425,7 +14426,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14425
14426
  }
14426
14427
  }
14427
14428
  }
14428
- if (this.chart4 != null) {
14429
+ if (this.chart4 != null && this.chart4.ctx != null) {
14429
14430
  this.chart4Base64 = this.chart4.toBase64Image();
14430
14431
  }
14431
14432
  }
@@ -14531,7 +14532,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14531
14532
  animation: {
14532
14533
  duration: 0,
14533
14534
  onComplete: () => {
14534
- if (this.chart3 != null) {
14535
+ if (this.chart3 != null && this.chart3.ctx != null) {
14535
14536
  if (type == 'bar') {
14536
14537
  this.chart3.ctx.font = "bold 10pt 'Helvetica Neue'";
14537
14538
  this.chart3.ctx.fillStyle = '#000';
@@ -14604,7 +14605,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14604
14605
  }
14605
14606
  }
14606
14607
  }
14607
- if (this.chart3 != null) {
14608
+ if (this.chart3 != null && this.chart3.ctx != null) {
14608
14609
  this.chart3Base64 = this.chart3.toBase64Image();
14609
14610
  }
14610
14611
  }
@@ -14700,6 +14701,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14700
14701
  if (this.chart2 != null) {
14701
14702
  this.chart2.destroy();
14702
14703
  }
14704
+ console.log('chart2 context', ctx);
14703
14705
  this.chart2 = new Chart(ctx, {
14704
14706
  type: type,
14705
14707
  data: data,
@@ -14710,7 +14712,8 @@ let SfIEvents = class SfIEvents extends LitElement {
14710
14712
  animation: {
14711
14713
  duration: 0,
14712
14714
  onComplete: () => {
14713
- if (this.chart2 != null) {
14715
+ if (this.chart2 != null && this.chart2.ctx != null) {
14716
+ console.log('chart 2 ctx', this.chart2);
14714
14717
  if (type == 'bar') {
14715
14718
  this.chart2.ctx.font = "bold 10pt 'Helvetica Neue'";
14716
14719
  this.chart2.ctx.fillStyle = '#000';
@@ -14773,7 +14776,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14773
14776
  }
14774
14777
  }
14775
14778
  }
14776
- if (this.chart2 != null) {
14779
+ if (this.chart2 != null && this.chart2.ctx != null) {
14777
14780
  this.chart2Base64 = this.chart2.toBase64Image();
14778
14781
  }
14779
14782
  }
@@ -11805,7 +11805,7 @@ export class SfIEvents extends LitElement {
11805
11805
  }
11806
11806
 
11807
11807
  renderGraph = (divContainer: HTMLDivElement, pieData: any, partData: any, lateData: any, complianceData: any, param: string) => {
11808
-
11808
+ console.log('rendering graph chart2');
11809
11809
  this.clearSelectedGraphParam();
11810
11810
  // this.clearSelectedLegend();
11811
11811
 
@@ -19402,7 +19402,7 @@ export class SfIEvents extends LitElement {
19402
19402
  duration:0,
19403
19403
  onComplete: () => {
19404
19404
 
19405
- if(this.chart4 != null) {
19405
+ if(this.chart4 != null && this.chart4.ctx != null) {
19406
19406
 
19407
19407
  if(type == 'bar') {
19408
19408
 
@@ -19495,7 +19495,7 @@ export class SfIEvents extends LitElement {
19495
19495
 
19496
19496
 
19497
19497
  }
19498
- if(this.chart4 != null){
19498
+ if(this.chart4 != null && this.chart4.ctx != null){
19499
19499
  this.chart4Base64 = (this.chart4 as Chart).toBase64Image()
19500
19500
  }
19501
19501
  }
@@ -19607,7 +19607,7 @@ export class SfIEvents extends LitElement {
19607
19607
  duration:0,
19608
19608
  onComplete: () => {
19609
19609
 
19610
- if(this.chart3 != null) {
19610
+ if(this.chart3 != null && this.chart3.ctx != null) {
19611
19611
 
19612
19612
  if(type == 'bar') {
19613
19613
 
@@ -19700,7 +19700,7 @@ export class SfIEvents extends LitElement {
19700
19700
 
19701
19701
 
19702
19702
  }
19703
- if(this.chart3 != null){
19703
+ if(this.chart3 != null && this.chart3.ctx != null){
19704
19704
  this.chart3Base64 = (this.chart3 as Chart).toBase64Image();
19705
19705
  }
19706
19706
  }
@@ -19800,7 +19800,7 @@ export class SfIEvents extends LitElement {
19800
19800
  if(this.chart2 != null) {
19801
19801
  (this.chart2 as Chart).destroy();
19802
19802
  }
19803
-
19803
+ console.log('chart2 context', ctx);
19804
19804
  this.chart2 = new Chart(ctx, {
19805
19805
  type: type,
19806
19806
  data: data,
@@ -19812,8 +19812,8 @@ export class SfIEvents extends LitElement {
19812
19812
  duration:0,
19813
19813
  onComplete: () => {
19814
19814
 
19815
- if(this.chart2 != null) {
19816
-
19815
+ if(this.chart2 != null && this.chart2.ctx != null) {
19816
+ console.log('chart 2 ctx', this.chart2);
19817
19817
  if(type == 'bar') {
19818
19818
 
19819
19819
  this.chart2.ctx.font = "bold 10pt 'Helvetica Neue'";
@@ -19893,7 +19893,7 @@ export class SfIEvents extends LitElement {
19893
19893
  }
19894
19894
 
19895
19895
  }
19896
- if(this.chart2 != null){
19896
+ if(this.chart2 != null && this.chart2.ctx != null){
19897
19897
  this.chart2Base64 = (this.chart2 as Chart).toBase64Image();
19898
19898
  }
19899
19899
  }