sf-i-events 1.0.801 → 1.0.803
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 +58 -4
- package/package.json +1 -1
- package/sf-i-events.js +72 -23
- package/src/sf-i-events.ts +67 -23
package/dev/index.html
CHANGED
|
@@ -625,6 +625,50 @@
|
|
|
625
625
|
height: 60vh;
|
|
626
626
|
overflow-y: auto;
|
|
627
627
|
}
|
|
628
|
+
sf-i-events::part(event-status-past-due-date),
|
|
629
|
+
sf-i-events::part(event-status-pending-approval) {
|
|
630
|
+
|
|
631
|
+
margin-bottom: 3px;
|
|
632
|
+
border-left: solid 5px #f8ee24;
|
|
633
|
+
background-color: #fcfbe5;
|
|
634
|
+
border-top-right-radius: 5px;
|
|
635
|
+
border-bottom-right-radius: 5px;
|
|
636
|
+
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
sf-i-events::part(event-status-complied),
|
|
640
|
+
sf-i-events::part(event-status-approved) {
|
|
641
|
+
|
|
642
|
+
margin-bottom: 3px;
|
|
643
|
+
border-left: solid 5px #9bf468;
|
|
644
|
+
background-color: #f6fbf4;
|
|
645
|
+
border-top-right-radius: 5px;
|
|
646
|
+
border-bottom-right-radius: 5px;
|
|
647
|
+
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
sf-i-events::part(event-status-not-complied),
|
|
651
|
+
sf-i-events::part(event-status-rejected),
|
|
652
|
+
sf-i-events::part(event-status-late-approved) {
|
|
653
|
+
|
|
654
|
+
margin-bottom: 3px;
|
|
655
|
+
border-left: solid 5px #C80036;
|
|
656
|
+
background-color: #f9e6e6;
|
|
657
|
+
border-top-right-radius: 5px;
|
|
658
|
+
border-bottom-right-radius: 5px;
|
|
659
|
+
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
sf-i-events::part(event-status-partially-complied),
|
|
663
|
+
sf-i-events::part(event-status-late-reported) {
|
|
664
|
+
|
|
665
|
+
margin-bottom: 3px;
|
|
666
|
+
border-left: solid 5px #Ef9C66;
|
|
667
|
+
background-color: #f8ebe2;
|
|
668
|
+
border-top-right-radius: 5px;
|
|
669
|
+
border-bottom-right-radius: 5px;
|
|
670
|
+
|
|
671
|
+
}
|
|
628
672
|
</style>
|
|
629
673
|
</head>
|
|
630
674
|
<body>
|
|
@@ -648,7 +692,7 @@
|
|
|
648
692
|
</div>
|
|
649
693
|
|
|
650
694
|
</sf-i-events> -->
|
|
651
|
-
<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="
|
|
695
|
+
<!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" 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">
|
|
652
696
|
|
|
653
697
|
<div slot="uploader">
|
|
654
698
|
<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>
|
|
@@ -657,7 +701,17 @@
|
|
|
657
701
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
658
702
|
</div>
|
|
659
703
|
|
|
660
|
-
</sf-i-events>
|
|
704
|
+
</sf-i-events> -->
|
|
705
|
+
<!-- <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="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" 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">
|
|
706
|
+
|
|
707
|
+
<div slot="uploader">
|
|
708
|
+
<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>
|
|
709
|
+
</div>
|
|
710
|
+
<div slot="reporting">
|
|
711
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
</sf-i-events> -->
|
|
661
715
|
<!-- <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="true" 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
716
|
|
|
663
717
|
<div slot="uploader">
|
|
@@ -691,7 +745,7 @@
|
|
|
691
745
|
</div>
|
|
692
746
|
|
|
693
747
|
</sf-i-events> -->
|
|
694
|
-
|
|
748
|
+
<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" fill="solid" username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false" 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">
|
|
695
749
|
|
|
696
750
|
<div slot="uploader">
|
|
697
751
|
<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>
|
|
@@ -700,7 +754,7 @@
|
|
|
700
754
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
701
755
|
</div>
|
|
702
756
|
|
|
703
|
-
</sf-i-events>
|
|
757
|
+
</sf-i-events>
|
|
704
758
|
|
|
705
759
|
|
|
706
760
|
<script>
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -1292,6 +1292,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1292
1292
|
this.barCharDataSet4.pop();
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
+
console.log('calling processGraphFilter 1');
|
|
1295
1296
|
this.processGraphFilter(this.graphFilter);
|
|
1296
1297
|
this.selectedFilters = null;
|
|
1297
1298
|
};
|
|
@@ -2655,7 +2656,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2655
2656
|
graphParam = event[this.flowGraph].toString().replace(/ *\([^)]*\) */g, "").replace(/,/g, ' • ');
|
|
2656
2657
|
}
|
|
2657
2658
|
else {
|
|
2658
|
-
console.log('event[this.flowGraph]', event[this.flowGraph], event, this.flowGraph)
|
|
2659
|
+
// console.log('event[this.flowGraph]', event[this.flowGraph], event, this.flowGraph)
|
|
2659
2660
|
graphParam = ((_a = event[this.flowGraph]) !== null && _a !== void 0 ? _a : "").replace(/ *\([^)]*\) */g, "").replace(/,/g, ' • ');
|
|
2660
2661
|
}
|
|
2661
2662
|
return graphParam;
|
|
@@ -2684,6 +2685,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2684
2685
|
this.eventsInWindow = [];
|
|
2685
2686
|
var lastDay = iLast;
|
|
2686
2687
|
this.clearGraphData();
|
|
2688
|
+
console.log('this.clearSelectedGraphParam(); 1', this.graphFilter);
|
|
2687
2689
|
this.clearSelectedGraphParam();
|
|
2688
2690
|
this.clearSelectedLegend();
|
|
2689
2691
|
html += this.renderCalendarGraphs(showGraph, parametersTitle, showBackgroundButton);
|
|
@@ -2896,6 +2898,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2896
2898
|
// var lastDay = iLast;
|
|
2897
2899
|
// var slice = 2;
|
|
2898
2900
|
this.clearGraphData();
|
|
2901
|
+
console.log('this.clearSelectedGraphParam(); 2');
|
|
2899
2902
|
this.clearSelectedGraphParam();
|
|
2900
2903
|
this.clearSelectedLegend();
|
|
2901
2904
|
html += this.renderCalendarStatisticsGraphs(showGraph, parametersTitle);
|
|
@@ -3242,8 +3245,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3242
3245
|
return html;
|
|
3243
3246
|
};
|
|
3244
3247
|
this.renderListReporting = (listReportingContainer, event, mmddyyyy, eventsContainer) => {
|
|
3245
|
-
var _a, _b, _c, _f, _g, _h, _j, _k;
|
|
3246
|
-
console.log('listreporting event', event);
|
|
3248
|
+
var _a, _b, _c, _f, _g, _h, _j, _k, _l;
|
|
3249
|
+
console.log('listreporting event', event, this.graphFilter);
|
|
3247
3250
|
let html = '';
|
|
3248
3251
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
3249
3252
|
let reportformatName = '';
|
|
@@ -3279,7 +3282,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3279
3282
|
}
|
|
3280
3283
|
let streamEventTitles = eventsContainer.querySelectorAll('.stream-event-title');
|
|
3281
3284
|
for (let streamEventTitle of streamEventTitles) {
|
|
3282
|
-
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j) {
|
|
3285
|
+
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + (((_b = event.isnotice) !== null && _b !== void 0 ? _b : false) ? 'isnotice' : 'isevent')) {
|
|
3283
3286
|
streamEventTitle.setAttribute('part', 'stream-event-title-selected');
|
|
3284
3287
|
}
|
|
3285
3288
|
else {
|
|
@@ -3287,7 +3290,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3287
3290
|
}
|
|
3288
3291
|
}
|
|
3289
3292
|
listReportingContainer.innerHTML = html;
|
|
3290
|
-
(
|
|
3293
|
+
(_c = listReportingContainer.querySelector('.button-delete')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', async () => {
|
|
3291
3294
|
await this.fetchDeleteReview(event["id"], mmddyyyy, event.entityid, event.locationid);
|
|
3292
3295
|
this.setSuccess('Deleted successfully!');
|
|
3293
3296
|
setTimeout(() => {
|
|
@@ -3303,7 +3306,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3303
3306
|
// }
|
|
3304
3307
|
}
|
|
3305
3308
|
});
|
|
3306
|
-
(
|
|
3309
|
+
(_f = listReportingContainer.querySelector('#button-auto-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
|
|
3307
3310
|
if (this.selectedItemIds.length == 0) {
|
|
3308
3311
|
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3309
3312
|
this.setSuccess('Auto-Approved successfully!');
|
|
@@ -3349,7 +3352,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3349
3352
|
}
|
|
3350
3353
|
});
|
|
3351
3354
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
3352
|
-
(
|
|
3355
|
+
(_g = listReportingContainer.querySelector('#button-uploader-submit-approve')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async (ev) => {
|
|
3353
3356
|
let buttonClick = ev.target;
|
|
3354
3357
|
buttonClick.innerHTML = "Saving...";
|
|
3355
3358
|
const comments = listReportingContainer.querySelector('#input-approver-comments').value;
|
|
@@ -3444,7 +3447,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3444
3447
|
}
|
|
3445
3448
|
}
|
|
3446
3449
|
});
|
|
3447
|
-
(
|
|
3450
|
+
(_h = listReportingContainer.querySelector('#button-uploader-submit-audit')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
|
|
3448
3451
|
let buttonClick = ev.target;
|
|
3449
3452
|
buttonClick.innerHTML = "Saving...";
|
|
3450
3453
|
const comments = listReportingContainer.querySelector('#input-auditor-comments').value;
|
|
@@ -3555,7 +3558,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3555
3558
|
else {
|
|
3556
3559
|
if (listReportingContainer.querySelector('#button-uploader-submit-report') != null) {
|
|
3557
3560
|
listReportingContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
|
|
3558
|
-
(
|
|
3561
|
+
(_j = listReportingContainer.querySelector('#button-uploader-submit-report')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async (ev) => {
|
|
3559
3562
|
var _a, _b;
|
|
3560
3563
|
let buttonClick = ev.target;
|
|
3561
3564
|
buttonClick.innerHTML = "Saving...";
|
|
@@ -3574,7 +3577,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3574
3577
|
reportformatvalues = (_a = JSON.stringify(this._SfReporting[0].querySelector('#reporting-format').selectedValues())) !== null && _a !== void 0 ? _a : "";
|
|
3575
3578
|
reportformatschema = (_b = this._SfReporting[0].querySelector('#reporting-format').configjson) !== null && _b !== void 0 ? _b : "";
|
|
3576
3579
|
}
|
|
3577
|
-
console.log('docs', docs, 'docsOptional', event.docsOptional);
|
|
3580
|
+
console.log('docs', docs, 'docsOptional', event.docsOptional, this.graphFilter);
|
|
3578
3581
|
if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
|
|
3579
3582
|
//console.log('reporter comments 3', reportercomments);
|
|
3580
3583
|
buttonClick.innerHTML = "Save";
|
|
@@ -3831,7 +3834,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3831
3834
|
}
|
|
3832
3835
|
}
|
|
3833
3836
|
if (event['reportformat'] != null && event['reportformat'].length > 0) {
|
|
3834
|
-
this.fetchReportFormat(listReportingContainer, reportformatName, (
|
|
3837
|
+
this.fetchReportFormat(listReportingContainer, reportformatName, (_k = event['reportformatschema']) !== null && _k !== void 0 ? _k : "", (_l = event['reportformatvalues']) !== null && _l !== void 0 ? _l : "");
|
|
3835
3838
|
}
|
|
3836
3839
|
};
|
|
3837
3840
|
this.attachListReportingListeners = (eventsContainer) => {
|
|
@@ -4086,7 +4089,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4086
4089
|
listReportingContainer.innerHTML = '';
|
|
4087
4090
|
let buttonListReporting = eventsContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
4088
4091
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
4089
|
-
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
4092
|
+
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + isnotice);
|
|
4090
4093
|
streamEventTitle.removeAttribute('part');
|
|
4091
4094
|
}
|
|
4092
4095
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -4833,9 +4836,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4833
4836
|
}
|
|
4834
4837
|
};
|
|
4835
4838
|
this.renderSelectAllButtons = () => {
|
|
4836
|
-
let selectAllHtml = '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 70px; left: 0px;" part="button-select-all-container">';
|
|
4837
|
-
selectAllHtml += '<button part="button-select-all" id="button-select-all" class="d-flex align-center mt-10 mr-10 ml-10"><span class="material-symbols-outlined">select_all</span> <h4>Select All</h4><span> (Max ' + this.selectallblock + ')</span></button>';
|
|
4838
|
-
selectAllHtml += '<button part="button-unselect-all" id="button-unselect-all" class="d-flex align-center mt-10 mr-10 ml-10"><span class="material-symbols-outlined">remove_selection</span> <h4>Unselect</h4></button>';
|
|
4839
|
+
let selectAllHtml = '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 70px; left: 0px; pointer-events: none" part="button-select-all-container">';
|
|
4840
|
+
selectAllHtml += '<button part="button-select-all" id="button-select-all" class="d-flex align-center mt-10 mr-10 ml-10" style="pointer-events: all"><span class="material-symbols-outlined">select_all</span> <h4>Select All</h4><span> (Max ' + this.selectallblock + ')</span></button>';
|
|
4841
|
+
selectAllHtml += '<button part="button-unselect-all" id="button-unselect-all" class="d-flex align-center mt-10 mr-10 ml-10" style="pointer-events: all"><span class="material-symbols-outlined">remove_selection</span> <h4>Unselect</h4></button>';
|
|
4839
4842
|
selectAllHtml += '</div>';
|
|
4840
4843
|
return selectAllHtml;
|
|
4841
4844
|
};
|
|
@@ -6749,6 +6752,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6749
6752
|
//console.log('renderingFind');
|
|
6750
6753
|
var _a;
|
|
6751
6754
|
this.clearGraphData();
|
|
6755
|
+
console.log('this.clearSelectedGraphParam(); 3');
|
|
6752
6756
|
this.clearSelectedGraphParam();
|
|
6753
6757
|
this.clearSelectedLegend();
|
|
6754
6758
|
var html = '';
|
|
@@ -6781,6 +6785,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6781
6785
|
this.renderCustom = () => {
|
|
6782
6786
|
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m;
|
|
6783
6787
|
this.clearGraphData();
|
|
6788
|
+
console.log('this.clearSelectedGraphParam(); 4');
|
|
6784
6789
|
this.clearSelectedGraphParam();
|
|
6785
6790
|
this.clearSelectedLegend();
|
|
6786
6791
|
var html = '';
|
|
@@ -7492,7 +7497,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7492
7497
|
listReportingContainer.innerHTML = '';
|
|
7493
7498
|
let buttonListReporting = this._SfThisContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
7494
7499
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
7495
|
-
let streamEventTitle = this._SfThisContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
7500
|
+
let streamEventTitle = this._SfThisContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + isnotice);
|
|
7496
7501
|
streamEventTitle.removeAttribute('part');
|
|
7497
7502
|
}
|
|
7498
7503
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -7975,7 +7980,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7975
7980
|
listReportingContainer.innerHTML = '';
|
|
7976
7981
|
let buttonListReporting = this._SfStreamContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
7977
7982
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
7978
|
-
let streamEventTitle = this._SfStreamContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
7983
|
+
let streamEventTitle = this._SfStreamContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + isnotice);
|
|
7979
7984
|
streamEventTitle.removeAttribute('part');
|
|
7980
7985
|
}
|
|
7981
7986
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -8047,7 +8052,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8047
8052
|
});
|
|
8048
8053
|
}
|
|
8049
8054
|
if (showGraph) {
|
|
8050
|
-
console.log('showing graph', showGraph);
|
|
8055
|
+
console.log('showing graph', showGraph, this.flowGraph);
|
|
8051
8056
|
switch (this.flowGraph) {
|
|
8052
8057
|
case this.FLOW_GRAPH_COMPLETENESS:
|
|
8053
8058
|
this.renderCompletenessGraph(this._SfStreamContainer);
|
|
@@ -8254,7 +8259,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8254
8259
|
this.renderCompletenessGraph = (divContainer, selectedTab = -1, selectedSummary = -1, title = "Completeness") => {
|
|
8255
8260
|
this.clearSelectedGraphParam();
|
|
8256
8261
|
// this.clearSelectedLegend();
|
|
8257
|
-
this.graphFilter = "";
|
|
8258
8262
|
this.csvGraphStats = "";
|
|
8259
8263
|
this.csvCompletenessStats = "";
|
|
8260
8264
|
this.csvTimelinessStats = "";
|
|
@@ -8316,6 +8320,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8316
8320
|
for (var i = 0; i < itemsCompliance.length; i++) {
|
|
8317
8321
|
itemsCompliance[i].style.display = 'none';
|
|
8318
8322
|
}
|
|
8323
|
+
let flagFilterFound = false;
|
|
8324
|
+
for (let label of data.labels) {
|
|
8325
|
+
if (label.toLowerCase().replace(/ /g, "-").replace('status-', '') === this.graphFilter) {
|
|
8326
|
+
flagFilterFound = true;
|
|
8327
|
+
break;
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
if (!flagFilterFound) {
|
|
8331
|
+
this.graphFilter = "";
|
|
8332
|
+
}
|
|
8319
8333
|
this.renderChartSettings(divContainer, selectedTab, selectedSummary, ctx);
|
|
8320
8334
|
this.renderChart(ctx, 'doughnut', data, title);
|
|
8321
8335
|
};
|
|
@@ -8323,7 +8337,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8323
8337
|
//console.log('Rendering compliance graph...');
|
|
8324
8338
|
this.clearSelectedGraphParam();
|
|
8325
8339
|
// this.clearSelectedLegend();
|
|
8326
|
-
this.graphFilter = "";
|
|
8327
8340
|
this.csvGraphStats = "";
|
|
8328
8341
|
this.csvCompletenessStats = "";
|
|
8329
8342
|
this.csvTimelinessStats = "";
|
|
@@ -8367,13 +8380,24 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8367
8380
|
for (var i = 0; i < itemsCompliance.length; i++) {
|
|
8368
8381
|
itemsCompliance[i].style.display = 'flex';
|
|
8369
8382
|
}
|
|
8383
|
+
let flagFilterFound = false;
|
|
8384
|
+
for (let label of data.labels) {
|
|
8385
|
+
console.log('finding flag', this.graphFilter, label.toLowerCase());
|
|
8386
|
+
if (label.toLowerCase() === this.graphFilter) {
|
|
8387
|
+
flagFilterFound = true;
|
|
8388
|
+
break;
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
if (!flagFilterFound) {
|
|
8392
|
+
console.log('resetting flagFilter', this.graphFilter);
|
|
8393
|
+
this.graphFilter = "";
|
|
8394
|
+
}
|
|
8370
8395
|
this.renderChartSettings(divContainer, -1, -1, ctx);
|
|
8371
8396
|
this.renderChart(ctx, 'doughnut', data, "Compliance");
|
|
8372
8397
|
};
|
|
8373
8398
|
this.renderTimelinessGraph = (divContainer) => {
|
|
8374
8399
|
this.clearSelectedGraphParam();
|
|
8375
8400
|
// this.clearSelectedLegend();
|
|
8376
|
-
this.graphFilter = "";
|
|
8377
8401
|
this.csvGraphStats = "";
|
|
8378
8402
|
this.csvCompletenessStats = "";
|
|
8379
8403
|
this.csvTimelinessStats = "";
|
|
@@ -8418,6 +8442,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8418
8442
|
for (var i = 0; i < itemsCompliance.length; i++) {
|
|
8419
8443
|
itemsCompliance[i].style.display = 'none';
|
|
8420
8444
|
}
|
|
8445
|
+
let flagFilterFound = false;
|
|
8446
|
+
for (let label of data.labels) {
|
|
8447
|
+
if (label.toLowerCase().replace(/ /g, "-").replace('status-', '') === this.graphFilter) {
|
|
8448
|
+
flagFilterFound = true;
|
|
8449
|
+
break;
|
|
8450
|
+
}
|
|
8451
|
+
}
|
|
8452
|
+
if (!flagFilterFound) {
|
|
8453
|
+
this.graphFilter = "";
|
|
8454
|
+
}
|
|
8421
8455
|
this.renderChartSettings(divContainer, -1, -1, ctx);
|
|
8422
8456
|
this.renderChart(ctx, 'doughnut', data, "Timeliness");
|
|
8423
8457
|
};
|
|
@@ -8604,7 +8638,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8604
8638
|
console.log('rendering graph chart2');
|
|
8605
8639
|
this.clearSelectedGraphParam();
|
|
8606
8640
|
// this.clearSelectedLegend();
|
|
8607
|
-
this.graphFilter = "";
|
|
8608
8641
|
this.csvGraphStats = "";
|
|
8609
8642
|
this.csvCompletenessStats = "";
|
|
8610
8643
|
this.csvTimelinessStats = "";
|
|
@@ -8649,6 +8682,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8649
8682
|
for (var i = 0; i < itemsCompliance.length; i++) {
|
|
8650
8683
|
itemsCompliance[i].style.display = 'flex';
|
|
8651
8684
|
}
|
|
8685
|
+
let flagFilterFound = false;
|
|
8686
|
+
for (let label of data.labels) {
|
|
8687
|
+
if (label.toLowerCase() === this.graphFilter) {
|
|
8688
|
+
flagFilterFound = true;
|
|
8689
|
+
break;
|
|
8690
|
+
}
|
|
8691
|
+
}
|
|
8692
|
+
if (!flagFilterFound) {
|
|
8693
|
+
this.graphFilter = "";
|
|
8694
|
+
}
|
|
8652
8695
|
};
|
|
8653
8696
|
this.renderEventDetailShort = (compliance) => {
|
|
8654
8697
|
var _a, _b, _c, _f, _g;
|
|
@@ -10514,7 +10557,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10514
10557
|
});
|
|
10515
10558
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisCompleted', (_ev) => {
|
|
10516
10559
|
console.log('uploader analysisInProgress', _ev);
|
|
10517
|
-
this._SfDetailContainer.querySelector('.uploader-analysis-message')
|
|
10560
|
+
if (this._SfDetailContainer.querySelector('.uploader-analysis-message') != null) {
|
|
10561
|
+
this._SfDetailContainer.querySelector('.uploader-analysis-message').style.display = "none";
|
|
10562
|
+
}
|
|
10518
10563
|
});
|
|
10519
10564
|
//console.log('documentType checking', documentType);
|
|
10520
10565
|
if (documentType != null) {
|
|
@@ -15338,6 +15383,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15338
15383
|
}
|
|
15339
15384
|
},
|
|
15340
15385
|
onClick: (_event, array) => {
|
|
15386
|
+
console.log('chartclick', array[0]);
|
|
15341
15387
|
if (array == null)
|
|
15342
15388
|
return;
|
|
15343
15389
|
if (array[0] == null)
|
|
@@ -15578,6 +15624,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15578
15624
|
streamEventFilters.style.display = 'block';
|
|
15579
15625
|
streamEventFilters.innerHTML = '<div part="badge-dashboard" class="d-flex align-center justify-between mr-10 mb-10 no-shrink"><div><span>Filtered by</span> <span id="graph-total" part="badge-filter-name">' + clickedValue + '</span></div><button id="button-filter-cancel" part="button-icon"><span class="material-symbols-outlined">close</span></button></div>';
|
|
15580
15626
|
(_a = streamEventFilters.querySelector('#button-filter-cancel')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
|
|
15627
|
+
this.graphFilter = "";
|
|
15581
15628
|
this.clearSelectedGraphParam();
|
|
15582
15629
|
});
|
|
15583
15630
|
setTimeout(() => {
|
|
@@ -15779,6 +15826,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15779
15826
|
//console.log('pieIndex', labelClicked);
|
|
15780
15827
|
if (!callingFromBar) {
|
|
15781
15828
|
console.log('pieIndex', labelClicked);
|
|
15829
|
+
console.log('calling processGraphFilter 2');
|
|
15782
15830
|
this.processGraphFilter(labelClicked);
|
|
15783
15831
|
}
|
|
15784
15832
|
};
|
|
@@ -15793,6 +15841,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15793
15841
|
}
|
|
15794
15842
|
}
|
|
15795
15843
|
if (!callingFromPie) {
|
|
15844
|
+
console.log('calling processGraphFilter 3');
|
|
15796
15845
|
this.processGraphFilter(labelClicked);
|
|
15797
15846
|
}
|
|
15798
15847
|
//console.log('clickonbar trigger', this.graphParam, '><', this.barCharDataSet2);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -3094,7 +3094,7 @@ export class SfIEvents extends LitElement {
|
|
|
3094
3094
|
this.barCharDataSet4.pop();
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
|
|
3097
|
+
console.log('calling processGraphFilter 1')
|
|
3098
3098
|
this.processGraphFilter(this.graphFilter);
|
|
3099
3099
|
this.selectedFilters = null;
|
|
3100
3100
|
}
|
|
@@ -4874,7 +4874,7 @@ export class SfIEvents extends LitElement {
|
|
|
4874
4874
|
if(Array.isArray(event[this.flowGraph])) {
|
|
4875
4875
|
graphParam = event[this.flowGraph].toString().replace(/ *\([^)]*\) */g, "").replace(/,/g,' • ');
|
|
4876
4876
|
} else {
|
|
4877
|
-
console.log('event[this.flowGraph]', event[this.flowGraph], event, this.flowGraph)
|
|
4877
|
+
// console.log('event[this.flowGraph]', event[this.flowGraph], event, this.flowGraph)
|
|
4878
4878
|
graphParam = (event[this.flowGraph] ?? "").replace(/ *\([^)]*\) */g, "").replace(/,/g,' • ');
|
|
4879
4879
|
}
|
|
4880
4880
|
return graphParam;
|
|
@@ -4912,6 +4912,7 @@ export class SfIEvents extends LitElement {
|
|
|
4912
4912
|
var lastDay = iLast;
|
|
4913
4913
|
|
|
4914
4914
|
this.clearGraphData();
|
|
4915
|
+
console.log('this.clearSelectedGraphParam(); 1', this.graphFilter);
|
|
4915
4916
|
this.clearSelectedGraphParam();
|
|
4916
4917
|
this.clearSelectedLegend();
|
|
4917
4918
|
|
|
@@ -5165,6 +5166,7 @@ export class SfIEvents extends LitElement {
|
|
|
5165
5166
|
// var lastDay = iLast;
|
|
5166
5167
|
// var slice = 2;
|
|
5167
5168
|
this.clearGraphData();
|
|
5169
|
+
console.log('this.clearSelectedGraphParam(); 2');
|
|
5168
5170
|
this.clearSelectedGraphParam();
|
|
5169
5171
|
this.clearSelectedLegend();
|
|
5170
5172
|
|
|
@@ -5575,7 +5577,7 @@ export class SfIEvents extends LitElement {
|
|
|
5575
5577
|
}
|
|
5576
5578
|
|
|
5577
5579
|
renderListReporting = (listReportingContainer: HTMLDivElement, event: any, mmddyyyy: any, eventsContainer: HTMLDivElement) => {
|
|
5578
|
-
console.log('listreporting event', event);
|
|
5580
|
+
console.log('listreporting event', event, this.graphFilter);
|
|
5579
5581
|
let html = ''
|
|
5580
5582
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|
|
5581
5583
|
|
|
@@ -5613,7 +5615,7 @@ export class SfIEvents extends LitElement {
|
|
|
5613
5615
|
}
|
|
5614
5616
|
let streamEventTitles = eventsContainer.querySelectorAll('.stream-event-title') as NodeListOf<SfIElasticText>
|
|
5615
5617
|
for(let streamEventTitle of streamEventTitles){
|
|
5616
|
-
if(streamEventTitle.id == 'stream-event-title-'+mmdd.replace(/\//g, '-') + '-' + j){
|
|
5618
|
+
if(streamEventTitle.id == 'stream-event-title-'+mmdd.replace(/\//g, '-') + '-' + j + '-'+((event.isnotice ?? false)?'isnotice':'isevent')){
|
|
5617
5619
|
streamEventTitle.setAttribute('part','stream-event-title-selected')
|
|
5618
5620
|
}else{
|
|
5619
5621
|
streamEventTitle.removeAttribute('part')
|
|
@@ -5939,7 +5941,7 @@ export class SfIEvents extends LitElement {
|
|
|
5939
5941
|
reportformatschema = (this._SfReporting[0].querySelector('#reporting-format') as SfIReporting)!.configjson ?? "";
|
|
5940
5942
|
}
|
|
5941
5943
|
|
|
5942
|
-
console.log('docs', docs, 'docsOptional', event.docsOptional)
|
|
5944
|
+
console.log('docs', docs, 'docsOptional', event.docsOptional, this.graphFilter)
|
|
5943
5945
|
if(docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
|
|
5944
5946
|
|
|
5945
5947
|
//console.log('reporter comments 3', reportercomments);
|
|
@@ -6528,7 +6530,7 @@ export class SfIEvents extends LitElement {
|
|
|
6528
6530
|
listReportingContainer.innerHTML = '';
|
|
6529
6531
|
let buttonListReporting = eventsContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g,'-') + '-' + j) as HTMLButtonElement
|
|
6530
6532
|
buttonListReporting.setAttribute('part','button-list-reporting')
|
|
6531
|
-
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j) as SfIElasticText
|
|
6533
|
+
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j + '-' + isnotice) as SfIElasticText
|
|
6532
6534
|
streamEventTitle.removeAttribute('part')
|
|
6533
6535
|
}
|
|
6534
6536
|
|
|
@@ -7373,9 +7375,9 @@ export class SfIEvents extends LitElement {
|
|
|
7373
7375
|
}
|
|
7374
7376
|
}
|
|
7375
7377
|
renderSelectAllButtons = () => {
|
|
7376
|
-
let selectAllHtml = '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 70px; left: 0px;" part="button-select-all-container">';
|
|
7377
|
-
selectAllHtml += '<button part="button-select-all" id="button-select-all" class="d-flex align-center mt-10 mr-10 ml-10"><span class="material-symbols-outlined">select_all</span> <h4>Select All</h4><span> (Max ' + this.selectallblock + ')</span></button>';
|
|
7378
|
-
selectAllHtml += '<button part="button-unselect-all" id="button-unselect-all" class="d-flex align-center mt-10 mr-10 ml-10"><span class="material-symbols-outlined">remove_selection</span> <h4>Unselect</h4></button>';
|
|
7378
|
+
let selectAllHtml = '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 70px; left: 0px; pointer-events: none" part="button-select-all-container">';
|
|
7379
|
+
selectAllHtml += '<button part="button-select-all" id="button-select-all" class="d-flex align-center mt-10 mr-10 ml-10" style="pointer-events: all"><span class="material-symbols-outlined">select_all</span> <h4>Select All</h4><span> (Max ' + this.selectallblock + ')</span></button>';
|
|
7380
|
+
selectAllHtml += '<button part="button-unselect-all" id="button-unselect-all" class="d-flex align-center mt-10 mr-10 ml-10" style="pointer-events: all"><span class="material-symbols-outlined">remove_selection</span> <h4>Unselect</h4></button>';
|
|
7379
7381
|
selectAllHtml += '</div>';
|
|
7380
7382
|
return selectAllHtml
|
|
7381
7383
|
}
|
|
@@ -9734,6 +9736,7 @@ export class SfIEvents extends LitElement {
|
|
|
9734
9736
|
//console.log('renderingFind');
|
|
9735
9737
|
|
|
9736
9738
|
this.clearGraphData();
|
|
9739
|
+
console.log('this.clearSelectedGraphParam(); 3');
|
|
9737
9740
|
this.clearSelectedGraphParam();
|
|
9738
9741
|
this.clearSelectedLegend();
|
|
9739
9742
|
|
|
@@ -9780,6 +9783,7 @@ export class SfIEvents extends LitElement {
|
|
|
9780
9783
|
renderCustom = () => {
|
|
9781
9784
|
|
|
9782
9785
|
this.clearGraphData();
|
|
9786
|
+
console.log('this.clearSelectedGraphParam(); 4');
|
|
9783
9787
|
this.clearSelectedGraphParam();
|
|
9784
9788
|
this.clearSelectedLegend();
|
|
9785
9789
|
|
|
@@ -10639,7 +10643,7 @@ export class SfIEvents extends LitElement {
|
|
|
10639
10643
|
listReportingContainer.innerHTML = '';
|
|
10640
10644
|
let buttonListReporting = (this._SfThisContainer as HTMLDivElement).querySelector('#button-list-reporting-' + mmdd.replace(/\//g,'-') + '-' + j) as HTMLButtonElement
|
|
10641
10645
|
buttonListReporting.setAttribute('part','button-list-reporting')
|
|
10642
|
-
let streamEventTitle = (this._SfThisContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j) as SfIElasticText
|
|
10646
|
+
let streamEventTitle = (this._SfThisContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j + '-' + isnotice) as SfIElasticText
|
|
10643
10647
|
streamEventTitle.removeAttribute('part')
|
|
10644
10648
|
|
|
10645
10649
|
}
|
|
@@ -11229,7 +11233,7 @@ export class SfIEvents extends LitElement {
|
|
|
11229
11233
|
listReportingContainer.innerHTML = '';
|
|
11230
11234
|
let buttonListReporting = (this._SfStreamContainer as HTMLDivElement).querySelector('#button-list-reporting-' + mmdd.replace(/\//g,'-') + '-' + j) as HTMLButtonElement
|
|
11231
11235
|
buttonListReporting.setAttribute('part','button-list-reporting')
|
|
11232
|
-
let streamEventTitle = (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j) as SfIElasticText
|
|
11236
|
+
let streamEventTitle = (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + j + '-' + isnotice) as SfIElasticText
|
|
11233
11237
|
streamEventTitle.removeAttribute('part')
|
|
11234
11238
|
}
|
|
11235
11239
|
|
|
@@ -11318,7 +11322,7 @@ export class SfIEvents extends LitElement {
|
|
|
11318
11322
|
}
|
|
11319
11323
|
|
|
11320
11324
|
if(showGraph) {
|
|
11321
|
-
console.log('showing graph', showGraph)
|
|
11325
|
+
console.log('showing graph', showGraph, this.flowGraph)
|
|
11322
11326
|
switch (this.flowGraph) {
|
|
11323
11327
|
case this.FLOW_GRAPH_COMPLETENESS:
|
|
11324
11328
|
this.renderCompletenessGraph((this._SfStreamContainer as HTMLDivElement));
|
|
@@ -11590,7 +11594,7 @@ export class SfIEvents extends LitElement {
|
|
|
11590
11594
|
|
|
11591
11595
|
this.clearSelectedGraphParam();
|
|
11592
11596
|
// this.clearSelectedLegend();
|
|
11593
|
-
|
|
11597
|
+
|
|
11594
11598
|
this.csvGraphStats = "";
|
|
11595
11599
|
this.csvCompletenessStats = "";
|
|
11596
11600
|
this.csvTimelinessStats = "";
|
|
@@ -11660,6 +11664,16 @@ export class SfIEvents extends LitElement {
|
|
|
11660
11664
|
for(var i = 0; i < itemsCompliance.length; i++) {
|
|
11661
11665
|
itemsCompliance[i].style.display = 'none';
|
|
11662
11666
|
}
|
|
11667
|
+
let flagFilterFound = false;
|
|
11668
|
+
for(let label of data.labels){
|
|
11669
|
+
if(label.toLowerCase().replace(/ /g, "-").replace('status-', '') === this.graphFilter){
|
|
11670
|
+
flagFilterFound = true;
|
|
11671
|
+
break;
|
|
11672
|
+
}
|
|
11673
|
+
}
|
|
11674
|
+
if(!flagFilterFound){
|
|
11675
|
+
this.graphFilter = ""
|
|
11676
|
+
}
|
|
11663
11677
|
this.renderChartSettings(divContainer, selectedTab, selectedSummary, ctx);
|
|
11664
11678
|
this.renderChart(ctx, 'doughnut', data, title)
|
|
11665
11679
|
|
|
@@ -11671,7 +11685,6 @@ export class SfIEvents extends LitElement {
|
|
|
11671
11685
|
|
|
11672
11686
|
this.clearSelectedGraphParam();
|
|
11673
11687
|
// this.clearSelectedLegend();
|
|
11674
|
-
this.graphFilter = "";
|
|
11675
11688
|
|
|
11676
11689
|
this.csvGraphStats = "";
|
|
11677
11690
|
this.csvCompletenessStats = "";
|
|
@@ -11722,7 +11735,18 @@ export class SfIEvents extends LitElement {
|
|
|
11722
11735
|
for(var i = 0; i < itemsCompliance.length; i++) {
|
|
11723
11736
|
itemsCompliance[i].style.display = 'flex';
|
|
11724
11737
|
}
|
|
11725
|
-
|
|
11738
|
+
let flagFilterFound = false;
|
|
11739
|
+
for(let label of data.labels){
|
|
11740
|
+
console.log('finding flag', this.graphFilter, label.toLowerCase());
|
|
11741
|
+
if(label.toLowerCase() === this.graphFilter){
|
|
11742
|
+
flagFilterFound = true;
|
|
11743
|
+
break;
|
|
11744
|
+
}
|
|
11745
|
+
}
|
|
11746
|
+
if(!flagFilterFound){
|
|
11747
|
+
console.log('resetting flagFilter', this.graphFilter);
|
|
11748
|
+
this.graphFilter = ""
|
|
11749
|
+
}
|
|
11726
11750
|
this.renderChartSettings(divContainer, -1, -1, ctx);
|
|
11727
11751
|
this.renderChart(ctx, 'doughnut', data, "Compliance")
|
|
11728
11752
|
|
|
@@ -11732,7 +11756,6 @@ export class SfIEvents extends LitElement {
|
|
|
11732
11756
|
|
|
11733
11757
|
this.clearSelectedGraphParam();
|
|
11734
11758
|
// this.clearSelectedLegend();
|
|
11735
|
-
this.graphFilter = "";
|
|
11736
11759
|
|
|
11737
11760
|
this.csvGraphStats = "";
|
|
11738
11761
|
this.csvCompletenessStats = "";
|
|
@@ -11784,7 +11807,16 @@ export class SfIEvents extends LitElement {
|
|
|
11784
11807
|
for(var i = 0; i < itemsCompliance.length; i++) {
|
|
11785
11808
|
itemsCompliance[i].style.display = 'none';
|
|
11786
11809
|
}
|
|
11787
|
-
|
|
11810
|
+
let flagFilterFound = false;
|
|
11811
|
+
for(let label of data.labels){
|
|
11812
|
+
if(label.toLowerCase().replace(/ /g, "-").replace('status-', '') === this.graphFilter){
|
|
11813
|
+
flagFilterFound = true;
|
|
11814
|
+
break;
|
|
11815
|
+
}
|
|
11816
|
+
}
|
|
11817
|
+
if(!flagFilterFound){
|
|
11818
|
+
this.graphFilter = ""
|
|
11819
|
+
}
|
|
11788
11820
|
this.renderChartSettings(divContainer, -1, -1, ctx);
|
|
11789
11821
|
this.renderChart(ctx, 'doughnut', data, "Timeliness")
|
|
11790
11822
|
|
|
@@ -12035,7 +12067,6 @@ export class SfIEvents extends LitElement {
|
|
|
12035
12067
|
console.log('rendering graph chart2');
|
|
12036
12068
|
this.clearSelectedGraphParam();
|
|
12037
12069
|
// this.clearSelectedLegend();
|
|
12038
|
-
this.graphFilter = "";
|
|
12039
12070
|
|
|
12040
12071
|
this.csvGraphStats = "";
|
|
12041
12072
|
this.csvCompletenessStats = "";
|
|
@@ -12095,7 +12126,16 @@ export class SfIEvents extends LitElement {
|
|
|
12095
12126
|
for(var i = 0; i < itemsCompliance.length; i++) {
|
|
12096
12127
|
itemsCompliance[i].style.display = 'flex';
|
|
12097
12128
|
}
|
|
12098
|
-
|
|
12129
|
+
let flagFilterFound = false;
|
|
12130
|
+
for(let label of data.labels){
|
|
12131
|
+
if(label.toLowerCase() === this.graphFilter){
|
|
12132
|
+
flagFilterFound = true;
|
|
12133
|
+
break;
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
if(!flagFilterFound){
|
|
12137
|
+
this.graphFilter = ""
|
|
12138
|
+
}
|
|
12099
12139
|
|
|
12100
12140
|
}
|
|
12101
12141
|
|
|
@@ -14292,7 +14332,9 @@ export class SfIEvents extends LitElement {
|
|
|
14292
14332
|
});
|
|
14293
14333
|
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisCompleted', (_ev: any) => {
|
|
14294
14334
|
console.log('uploader analysisInProgress', _ev);
|
|
14295
|
-
(this._SfDetailContainer.querySelector('.uploader-analysis-message') as HTMLDivElement)
|
|
14335
|
+
if((this._SfDetailContainer.querySelector('.uploader-analysis-message') as HTMLDivElement) != null){
|
|
14336
|
+
(this._SfDetailContainer.querySelector('.uploader-analysis-message') as HTMLDivElement).style.display = "none"
|
|
14337
|
+
}
|
|
14296
14338
|
});
|
|
14297
14339
|
|
|
14298
14340
|
|
|
@@ -20479,7 +20521,7 @@ export class SfIEvents extends LitElement {
|
|
|
20479
20521
|
}
|
|
20480
20522
|
},
|
|
20481
20523
|
onClick: (_event: any, array: any) => {
|
|
20482
|
-
|
|
20524
|
+
console.log('chartclick', array[0]);
|
|
20483
20525
|
if(array == null) return;
|
|
20484
20526
|
if(array[0] == null) return;
|
|
20485
20527
|
const pieIndex = array[0].index;
|
|
@@ -20492,8 +20534,7 @@ export class SfIEvents extends LitElement {
|
|
|
20492
20534
|
this.clickOnBar(true, 2, array[0].index);
|
|
20493
20535
|
}
|
|
20494
20536
|
}
|
|
20495
|
-
},
|
|
20496
|
-
|
|
20537
|
+
},
|
|
20497
20538
|
});
|
|
20498
20539
|
|
|
20499
20540
|
this.chart.canvas.parentNode.style.height = '450px';
|
|
@@ -20759,6 +20800,7 @@ export class SfIEvents extends LitElement {
|
|
|
20759
20800
|
(streamEventFilters as HTMLDivElement).style.display = 'block';
|
|
20760
20801
|
(streamEventFilters as HTMLDivElement).innerHTML = '<div part="badge-dashboard" class="d-flex align-center justify-between mr-10 mb-10 no-shrink"><div><span>Filtered by</span> <span id="graph-total" part="badge-filter-name">'+clickedValue+'</span></div><button id="button-filter-cancel" part="button-icon"><span class="material-symbols-outlined">close</span></button></div>';
|
|
20761
20802
|
(streamEventFilters as HTMLDivElement).querySelector('#button-filter-cancel')?.addEventListener('click', () => {
|
|
20803
|
+
this.graphFilter = "";
|
|
20762
20804
|
this.clearSelectedGraphParam();
|
|
20763
20805
|
});
|
|
20764
20806
|
setTimeout(() => {
|
|
@@ -20992,6 +21034,7 @@ export class SfIEvents extends LitElement {
|
|
|
20992
21034
|
|
|
20993
21035
|
if(!callingFromBar) {
|
|
20994
21036
|
console.log('pieIndex', labelClicked);
|
|
21037
|
+
console.log('calling processGraphFilter 2')
|
|
20995
21038
|
this.processGraphFilter(labelClicked);
|
|
20996
21039
|
}
|
|
20997
21040
|
|
|
@@ -21010,6 +21053,7 @@ export class SfIEvents extends LitElement {
|
|
|
21010
21053
|
}
|
|
21011
21054
|
|
|
21012
21055
|
if(!callingFromPie) {
|
|
21056
|
+
console.log('calling processGraphFilter 3')
|
|
21013
21057
|
this.processGraphFilter(labelClicked);
|
|
21014
21058
|
}
|
|
21015
21059
|
|