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 +10 -10
- package/package.json +1 -1
- package/sf-i-events.js +9 -6
- package/src/sf-i-events.ts +9 -9
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="
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
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="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
662
|
+
|
|
663
|
+
<div slot="uploader">
|
|
664
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" 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="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" 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
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
|
}
|
package/src/sf-i-events.ts
CHANGED
|
@@ -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
|
}
|