sf-i-events 1.0.671 → 1.0.673
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/package.json +1 -1
- package/sf-i-events.js +7 -0
- package/src/sf-i-events.ts +8 -1
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -10318,6 +10318,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10318
10318
|
a3.setAttribute('download', 'download_timeliness_' + new Date().getTime() + '.png');
|
|
10319
10319
|
a3.click();
|
|
10320
10320
|
}
|
|
10321
|
+
if (this.chart4Base64 != null) {
|
|
10322
|
+
const a4 = document.createElement('a');
|
|
10323
|
+
a4.setAttribute('href', this.chart4Base64);
|
|
10324
|
+
a4.setAttribute('download', 'download_compliance_' + new Date().getTime() + '.png');
|
|
10325
|
+
a4.click();
|
|
10326
|
+
}
|
|
10321
10327
|
}
|
|
10322
10328
|
if (radioStats.checked) {
|
|
10323
10329
|
const ts = new Date().getTime();
|
|
@@ -10973,6 +10979,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10973
10979
|
}
|
|
10974
10980
|
}
|
|
10975
10981
|
}
|
|
10982
|
+
this.chart4Base64 = this.chart4.toBase64Image();
|
|
10976
10983
|
}
|
|
10977
10984
|
},
|
|
10978
10985
|
scales: {
|
package/src/sf-i-events.ts
CHANGED
|
@@ -14870,6 +14870,13 @@ export class SfIEvents extends LitElement {
|
|
|
14870
14870
|
a3.setAttribute('download', 'download_timeliness_'+new Date().getTime()+'.png');
|
|
14871
14871
|
a3.click()
|
|
14872
14872
|
}
|
|
14873
|
+
|
|
14874
|
+
if(this.chart4Base64 != null) {
|
|
14875
|
+
const a4 = document.createElement('a')
|
|
14876
|
+
a4.setAttribute('href', this.chart4Base64)
|
|
14877
|
+
a4.setAttribute('download', 'download_compliance_'+new Date().getTime()+'.png');
|
|
14878
|
+
a4.click()
|
|
14879
|
+
}
|
|
14873
14880
|
}
|
|
14874
14881
|
|
|
14875
14882
|
if(radioStats.checked) {
|
|
@@ -15672,7 +15679,7 @@ export class SfIEvents extends LitElement {
|
|
|
15672
15679
|
|
|
15673
15680
|
|
|
15674
15681
|
}
|
|
15675
|
-
|
|
15682
|
+
this.chart4Base64 = (this.chart4 as Chart).toBase64Image()
|
|
15676
15683
|
}
|
|
15677
15684
|
},
|
|
15678
15685
|
scales: {
|