sf-i-events 1.0.794 → 1.0.796
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 +11 -1
- package/package.json +1 -1
- package/sf-i-events.js +69 -38
- package/src/sf-i-events.ts +57 -45
package/dev/index.html
CHANGED
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
</div>
|
|
639
639
|
|
|
640
640
|
</sf-i-events> -->
|
|
641
|
-
<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="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" 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">
|
|
641
|
+
<!-- <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="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" 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">
|
|
642
642
|
|
|
643
643
|
<div slot="uploader">
|
|
644
644
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -647,6 +647,16 @@
|
|
|
647
647
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
648
648
|
</div>
|
|
649
649
|
|
|
650
|
+
</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="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">
|
|
652
|
+
|
|
653
|
+
<div slot="uploader">
|
|
654
|
+
<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>
|
|
655
|
+
</div>
|
|
656
|
+
<div slot="reporting">
|
|
657
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
658
|
+
</div>
|
|
659
|
+
|
|
650
660
|
</sf-i-events>
|
|
651
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="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">
|
|
652
662
|
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2395,7 +2395,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2395
2395
|
html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
|
|
2396
2396
|
html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>';
|
|
2397
2397
|
html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
|
|
2398
|
-
html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + (((_a = event.isnotice) !== null && _a !== void 0 ? _a : false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + '<sf-i-elastic-text class="stream-event-title button-event-title" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + (((_b = event.isnotice) !== null && _b !== void 0 ? _b : false) ? 'isnotice' : 'isevent') + '" text="' + event['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>' + (lastUpdated.length > 0 ? (' <div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
|
|
2398
|
+
html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + (((_a = event.isnotice) !== null && _a !== void 0 ? _a : false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title button-event-title" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + (((_b = event.isnotice) !== null && _b !== void 0 ? _b : false) ? 'isnotice' : 'isevent') + '" text="' + event['obligationtitle'] + '" minLength="100"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + (lastUpdated.length > 0 ? (' <div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
|
|
2399
2399
|
if (remarks.length > 0) {
|
|
2400
2400
|
html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
|
|
2401
2401
|
}
|
|
@@ -2450,7 +2450,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2450
2450
|
html += 'Country';
|
|
2451
2451
|
html += '</th>';
|
|
2452
2452
|
}
|
|
2453
|
-
if (event.
|
|
2453
|
+
if (event.functions != null) {
|
|
2454
2454
|
html += '<th part="td-head">';
|
|
2455
2455
|
html += 'Function';
|
|
2456
2456
|
html += '</th>';
|
|
@@ -3247,10 +3247,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3247
3247
|
reportformatName = ((_a = event['reportformat'][0]) !== null && _a !== void 0 ? _a : "").trim().replace('&', '&');
|
|
3248
3248
|
}
|
|
3249
3249
|
let docs = event['documents'] == null ? [] : event['documents'];
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3250
|
+
event.approved = event['approved'] == null ? false : event['approved'];
|
|
3251
|
+
event.dateOfCompletion = event['dateofcompletion'] == null ? '' : event['dateofcompletion'];
|
|
3252
|
+
event.makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
|
|
3253
|
+
event.docsOptional = event['docs'] == null ? [] : event['docs'];
|
|
3254
3254
|
html = this.renderReporting(event, mmddyyyy);
|
|
3255
3255
|
console.log('reporting html', html);
|
|
3256
3256
|
let listReportingContainers = eventsContainer.querySelectorAll('.list-reporting-container');
|
|
@@ -3438,6 +3438,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3438
3438
|
const comments = listReportingContainer.querySelector('#input-auditor-comments').value;
|
|
3439
3439
|
const approved = listReportingContainer.querySelector('#input-approve-yes').checked;
|
|
3440
3440
|
if (comments.trim().length === 0) {
|
|
3441
|
+
buttonClick.innerHTML = "Save";
|
|
3441
3442
|
this.setError('Comments cannot be blank!');
|
|
3442
3443
|
setTimeout(() => {
|
|
3443
3444
|
this.clearMessages();
|
|
@@ -3553,8 +3554,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3553
3554
|
reportformatvalues = (_a = JSON.stringify(this._SfReporting[0].querySelector('#reporting-format').selectedValues())) !== null && _a !== void 0 ? _a : "";
|
|
3554
3555
|
reportformatschema = (_b = this._SfReporting[0].querySelector('#reporting-format').configjson) !== null && _b !== void 0 ? _b : "";
|
|
3555
3556
|
}
|
|
3556
|
-
|
|
3557
|
+
console.log('docs', docs, 'docsOptional', event.docsOptional);
|
|
3558
|
+
if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
|
|
3557
3559
|
//console.log('reporter comments 3', reportercomments);
|
|
3560
|
+
buttonClick.innerHTML = "Save";
|
|
3558
3561
|
this.setError('No documents uploaded!');
|
|
3559
3562
|
setTimeout(() => {
|
|
3560
3563
|
this.clearMessages();
|
|
@@ -3563,6 +3566,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3563
3566
|
else {
|
|
3564
3567
|
//console.log('reporterdoc', reporterdoc);
|
|
3565
3568
|
if (reporterdoc.length === 0) {
|
|
3569
|
+
buttonClick.innerHTML = "Save";
|
|
3566
3570
|
this.setError('Date of completion not selected!');
|
|
3567
3571
|
setTimeout(() => {
|
|
3568
3572
|
this.clearMessages();
|
|
@@ -3571,6 +3575,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3571
3575
|
else {
|
|
3572
3576
|
//console.log('makerscheckers 1', reportercomments);
|
|
3573
3577
|
if (reportercomments.trim().length === 0) {
|
|
3578
|
+
buttonClick.innerHTML = "Save";
|
|
3574
3579
|
this.setError('Comments cannot be blank!');
|
|
3575
3580
|
setTimeout(() => {
|
|
3576
3581
|
this.clearMessages();
|
|
@@ -7464,7 +7469,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7464
7469
|
const id1 = buttonSelect[k].id;
|
|
7465
7470
|
const idArr1 = id1.split("-");
|
|
7466
7471
|
const isbulk = idArr1[15] == "bulk";
|
|
7467
|
-
console.log('isBulk button-
|
|
7472
|
+
console.log('isBulk button-select1', id1, isbulk);
|
|
7468
7473
|
if (isbulk) {
|
|
7469
7474
|
buttonSelect[k].style.display = 'none';
|
|
7470
7475
|
}
|
|
@@ -7947,7 +7952,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7947
7952
|
const id1 = buttonSelect[k].id;
|
|
7948
7953
|
const idArr1 = id1.split("-");
|
|
7949
7954
|
const isbulk = idArr1[15] == "bulk";
|
|
7950
|
-
console.log('isBulk button-
|
|
7955
|
+
console.log('isBulk button-select2', id1, isbulk);
|
|
7951
7956
|
if (isbulk) {
|
|
7952
7957
|
buttonSelect[k].style.display = 'none';
|
|
7953
7958
|
}
|
|
@@ -9012,6 +9017,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9012
9017
|
const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
|
|
9013
9018
|
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
9014
9019
|
if (comments.trim().length === 0) {
|
|
9020
|
+
buttonClick.innerHTML = "Save";
|
|
9015
9021
|
this.setError('Comments cannot be blank!');
|
|
9016
9022
|
setTimeout(() => {
|
|
9017
9023
|
this.clearMessages();
|
|
@@ -9134,6 +9140,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9134
9140
|
}
|
|
9135
9141
|
if (docs.length === 0 && docsOptional.length === 0) {
|
|
9136
9142
|
//console.log('reporter comments 3', reportercomments);
|
|
9143
|
+
buttonClick.innerHTML = "Save";
|
|
9137
9144
|
this.setError('No documents uploaded!');
|
|
9138
9145
|
setTimeout(() => {
|
|
9139
9146
|
this.clearMessages();
|
|
@@ -9142,6 +9149,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9142
9149
|
else {
|
|
9143
9150
|
//console.log('reporterdoc', reporterdoc);
|
|
9144
9151
|
if (reporterdoc.length === 0) {
|
|
9152
|
+
buttonClick.innerHTML = "Save";
|
|
9145
9153
|
this.setError('Date of completion not selected!');
|
|
9146
9154
|
setTimeout(() => {
|
|
9147
9155
|
this.clearMessages();
|
|
@@ -9150,6 +9158,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9150
9158
|
else {
|
|
9151
9159
|
//console.log('makerscheckers 1', reportercomments);
|
|
9152
9160
|
if (reportercomments.trim().length === 0) {
|
|
9161
|
+
buttonClick.innerHTML = "Save";
|
|
9153
9162
|
this.setError('Comments cannot be blank!');
|
|
9154
9163
|
setTimeout(() => {
|
|
9155
9164
|
this.clearMessages();
|
|
@@ -10106,6 +10115,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10106
10115
|
const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
|
|
10107
10116
|
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
10108
10117
|
if (comments.trim().length === 0) {
|
|
10118
|
+
buttonClick.innerHTML = "Save";
|
|
10109
10119
|
this.setError('Comments cannot be blank!');
|
|
10110
10120
|
setTimeout(() => {
|
|
10111
10121
|
this.clearMessages();
|
|
@@ -10226,6 +10236,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10226
10236
|
}
|
|
10227
10237
|
if (docs.length === 0 && docsOptional.length === 0) {
|
|
10228
10238
|
//console.log('reporter comments 3', reportercomments);
|
|
10239
|
+
buttonClick.innerHTML = "Save";
|
|
10229
10240
|
this.setError('No documents uploaded!');
|
|
10230
10241
|
setTimeout(() => {
|
|
10231
10242
|
this.clearMessages();
|
|
@@ -10234,6 +10245,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10234
10245
|
else {
|
|
10235
10246
|
//console.log('reporterdoc', reporterdoc);
|
|
10236
10247
|
if (reporterdoc.length === 0) {
|
|
10248
|
+
buttonClick.innerHTML = "Save";
|
|
10237
10249
|
this.setError('Date of completion not selected!');
|
|
10238
10250
|
setTimeout(() => {
|
|
10239
10251
|
this.clearMessages();
|
|
@@ -10242,6 +10254,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10242
10254
|
else {
|
|
10243
10255
|
//console.log('makerscheckers 1', reportercomments);
|
|
10244
10256
|
if (reportercomments.trim().length === 0) {
|
|
10257
|
+
buttonClick.innerHTML = "Save";
|
|
10245
10258
|
this.setError('Comments cannot be blank!');
|
|
10246
10259
|
setTimeout(() => {
|
|
10247
10260
|
this.clearMessages();
|
|
@@ -15339,19 +15352,21 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15339
15352
|
//console.log('selectedfilter', this.selectedFilter);
|
|
15340
15353
|
for (var i = 0; i < divs.length; i++) {
|
|
15341
15354
|
if (!hide) {
|
|
15342
|
-
tables[i]
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
graphparamnames2[i]
|
|
15348
|
-
|
|
15349
|
-
graphparamnames3[i]
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15355
|
+
if (tables[i] != null) {
|
|
15356
|
+
tables[i].style.display = 'block';
|
|
15357
|
+
eventUserLabelsContainers[i].style.display = 'flex';
|
|
15358
|
+
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'block';
|
|
15359
|
+
graphparamnames1[i].style.display = 'block';
|
|
15360
|
+
if (graphparamnames2 != null && graphparamnames2[i] != null)
|
|
15361
|
+
graphparamnames2[i].style.display = 'block';
|
|
15362
|
+
if (graphparamnames3 != null && graphparamnames3[i] != null)
|
|
15363
|
+
graphparamnames3[i].style.display = 'block';
|
|
15364
|
+
if (eventSubTitles[i] != null) {
|
|
15365
|
+
eventSubTitles[i].style.display = 'flex';
|
|
15366
|
+
}
|
|
15367
|
+
buttonListReporting.style.display = "block";
|
|
15353
15368
|
}
|
|
15354
|
-
|
|
15369
|
+
eventTitles[i].style.display = 'flex';
|
|
15355
15370
|
}
|
|
15356
15371
|
else {
|
|
15357
15372
|
var found = false;
|
|
@@ -15365,19 +15380,21 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15365
15380
|
}
|
|
15366
15381
|
}
|
|
15367
15382
|
if (found) {
|
|
15368
|
-
tables[i]
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
graphparamnames2[i]
|
|
15374
|
-
|
|
15375
|
-
graphparamnames3[i]
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15383
|
+
if (tables[i] != null) {
|
|
15384
|
+
tables[i].style.display = 'none';
|
|
15385
|
+
eventUserLabelsContainers[i].style.display = 'none';
|
|
15386
|
+
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'none';
|
|
15387
|
+
graphparamnames1[i].style.display = 'none';
|
|
15388
|
+
if (graphparamnames2 != null && graphparamnames2[i] != null)
|
|
15389
|
+
graphparamnames2[i].style.display = 'none';
|
|
15390
|
+
if (graphparamnames3 != null && graphparamnames3[i] != null)
|
|
15391
|
+
graphparamnames3[i].style.display = 'none';
|
|
15392
|
+
if (eventSubTitles[i] != null) {
|
|
15393
|
+
eventSubTitles[i].style.display = 'none';
|
|
15394
|
+
}
|
|
15395
|
+
buttonListReporting.style.display = 'none';
|
|
15379
15396
|
}
|
|
15380
|
-
|
|
15397
|
+
eventTitles[i].style.display = 'none';
|
|
15381
15398
|
}
|
|
15382
15399
|
}
|
|
15383
15400
|
let listReportingContainers = eventContainer.querySelectorAll('.list-reporting-container');
|
|
@@ -15440,6 +15457,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15440
15457
|
}
|
|
15441
15458
|
if (eventContainer == null)
|
|
15442
15459
|
return;
|
|
15460
|
+
this.selectedItemIds = [];
|
|
15461
|
+
const buttonSelect = eventContainer.querySelectorAll('.button-select');
|
|
15462
|
+
// for(let checkSelect of buttonSelect){
|
|
15463
|
+
// checkSelect.checked = false
|
|
15464
|
+
// }
|
|
15443
15465
|
const divs = eventContainer.querySelectorAll('.stream-events-container');
|
|
15444
15466
|
const eventTitles = eventContainer.querySelectorAll('.stream-events-event-title');
|
|
15445
15467
|
const eventSubTitles = eventContainer.querySelectorAll('.stream-events-event-subtitle');
|
|
@@ -15476,7 +15498,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15476
15498
|
});
|
|
15477
15499
|
}
|
|
15478
15500
|
for (var i = 0; i < divs.length; i++) {
|
|
15479
|
-
console.log('processGraphFilter', graphparamnames1[i], graphparamnames1[i].innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
15501
|
+
// console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
15480
15502
|
if (graphparamnames1[i] == null) {
|
|
15481
15503
|
continue;
|
|
15482
15504
|
}
|
|
@@ -15488,6 +15510,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15488
15510
|
break;
|
|
15489
15511
|
}
|
|
15490
15512
|
}
|
|
15513
|
+
if (buttonSelect[i] != null)
|
|
15514
|
+
buttonSelect[i].checked = false;
|
|
15491
15515
|
if (filterFound) {
|
|
15492
15516
|
if (tables[i] != null) {
|
|
15493
15517
|
tables[i].style.display = 'block';
|
|
@@ -15505,8 +15529,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15505
15529
|
buttonListReporting[i].style.display = 'block';
|
|
15506
15530
|
}
|
|
15507
15531
|
}
|
|
15532
|
+
if (buttonSelect[i] != null && buttonSelect[i].id.indexOf('-bulk') < 0)
|
|
15533
|
+
buttonSelect[i].style.display = "flex";
|
|
15508
15534
|
if (eventTitles[i] != null)
|
|
15509
|
-
eventTitles[i].style.display = 'flex';
|
|
15535
|
+
(eventTitles[i]).style.display = 'flex';
|
|
15510
15536
|
divs[i].style.display = 'block';
|
|
15511
15537
|
}
|
|
15512
15538
|
else {
|
|
@@ -15526,8 +15552,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15526
15552
|
buttonListReporting[i].style.display = 'none';
|
|
15527
15553
|
}
|
|
15528
15554
|
}
|
|
15529
|
-
|
|
15530
|
-
|
|
15555
|
+
console.log('eventTitle', divs[i]);
|
|
15556
|
+
if (buttonSelect[i] != null)
|
|
15557
|
+
buttonSelect[i].style.display = "none";
|
|
15558
|
+
if (eventTitles[i] != null)
|
|
15559
|
+
(eventTitles[i]).style.display = 'none';
|
|
15560
|
+
if (divs[i] != null)
|
|
15561
|
+
divs[i].style.display = 'none';
|
|
15531
15562
|
}
|
|
15532
15563
|
}
|
|
15533
15564
|
let listReportingContainers = eventContainer.querySelectorAll('.list-reporting-container');
|
|
@@ -19081,7 +19112,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19081
19112
|
const id1 = buttonSelect[k].id;
|
|
19082
19113
|
const idArr1 = id1.split("-");
|
|
19083
19114
|
const isbulk = idArr1[15] == "bulk";
|
|
19084
|
-
console.log('isBulk button-
|
|
19115
|
+
console.log('isBulk button-select3', id1, isbulk);
|
|
19085
19116
|
if (isbulk) {
|
|
19086
19117
|
buttonSelect[k].style.display = 'none';
|
|
19087
19118
|
}
|
package/src/sf-i-events.ts
CHANGED
|
@@ -4570,18 +4570,15 @@ export class SfIEvents extends LitElement {
|
|
|
4570
4570
|
lastUpdated = event.lastupdated;
|
|
4571
4571
|
|
|
4572
4572
|
}
|
|
4573
|
-
|
|
4573
|
+
|
|
4574
4574
|
html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
|
|
4575
4575
|
html += '<div class="hidden-tags hide">'+JSON.stringify(event['tags'])+'</div>'
|
|
4576
4576
|
html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
|
|
4577
|
-
html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-'+mmdd.replace('/', '-')+'-'+itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '-' + ((event.isnotice ?? false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + '<sf-i-elastic-text class="stream-event-title button-event-title" id="stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + itemNumber + '-'+((event.isnotice ?? false)?'isnotice':'isevent')+ '" text="'+event['obligationtitle']+'" minLength="100"></sf-i-elastic-text>' + (lastUpdated.length > 0 ? (' <div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
|
|
4577
|
+
html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-'+mmdd.replace('/', '-')+'-'+itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '-' + ((event.isnotice ?? false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title button-event-title" id="stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + itemNumber + '-'+((event.isnotice ?? false)?'isnotice':'isevent')+ '" text="'+event['obligationtitle']+'" minLength="100"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><button id="button-list-reporting-'+mmdd.replace('/', '-')+'-' + itemNumber +'" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + (lastUpdated.length > 0 ? (' <div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
|
|
4578
4578
|
if(remarks.length > 0) {
|
|
4579
4579
|
html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">'+remarks+', occurred on '+occurrenceDate+'</div>';
|
|
4580
4580
|
}
|
|
4581
4581
|
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
4582
|
return html;
|
|
4586
4583
|
|
|
4587
4584
|
}
|
|
@@ -4646,7 +4643,7 @@ export class SfIEvents extends LitElement {
|
|
|
4646
4643
|
html += 'Country'
|
|
4647
4644
|
html += '</th>'
|
|
4648
4645
|
}
|
|
4649
|
-
if(event.
|
|
4646
|
+
if(event.functions != null){
|
|
4650
4647
|
html += '<th part="td-head">';
|
|
4651
4648
|
html += 'Function'
|
|
4652
4649
|
html += '</th>'
|
|
@@ -5582,10 +5579,10 @@ export class SfIEvents extends LitElement {
|
|
|
5582
5579
|
reportformatName = (event['reportformat'][0] ?? "").trim().replace('&','&');
|
|
5583
5580
|
}
|
|
5584
5581
|
let docs = event['documents'] == null ? [] : event['documents'];
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5582
|
+
event.approved = event['approved'] == null ? false : event['approved'];
|
|
5583
|
+
event.dateOfCompletion = event['dateofcompletion'] == null ? '' : event['dateofcompletion'];
|
|
5584
|
+
event.makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
|
|
5585
|
+
event.docsOptional = event['docs'] == null ? [] : event['docs'];
|
|
5589
5586
|
html = this.renderReporting(event, mmddyyyy);
|
|
5590
5587
|
console.log('reporting html', html);
|
|
5591
5588
|
|
|
@@ -5784,7 +5781,7 @@ export class SfIEvents extends LitElement {
|
|
|
5784
5781
|
const approved = (listReportingContainer.querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
5785
5782
|
|
|
5786
5783
|
if(comments.trim().length === 0) {
|
|
5787
|
-
|
|
5784
|
+
buttonClick.innerHTML = "Save"
|
|
5788
5785
|
this.setError('Comments cannot be blank!');
|
|
5789
5786
|
setTimeout(() => {
|
|
5790
5787
|
this.clearMessages();
|
|
@@ -5921,11 +5918,11 @@ export class SfIEvents extends LitElement {
|
|
|
5921
5918
|
reportformatschema = (this._SfReporting[0].querySelector('#reporting-format') as SfIReporting)!.configjson ?? "";
|
|
5922
5919
|
}
|
|
5923
5920
|
|
|
5924
|
-
|
|
5925
|
-
if(docs.length
|
|
5921
|
+
console.log('docs', docs, 'docsOptional', event.docsOptional)
|
|
5922
|
+
if(docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
|
|
5926
5923
|
|
|
5927
5924
|
//console.log('reporter comments 3', reportercomments);
|
|
5928
|
-
|
|
5925
|
+
buttonClick.innerHTML = "Save"
|
|
5929
5926
|
this.setError('No documents uploaded!');
|
|
5930
5927
|
setTimeout(() => {
|
|
5931
5928
|
this.clearMessages();
|
|
@@ -5936,7 +5933,7 @@ export class SfIEvents extends LitElement {
|
|
|
5936
5933
|
//console.log('reporterdoc', reporterdoc);
|
|
5937
5934
|
|
|
5938
5935
|
if(reporterdoc.length === 0) {
|
|
5939
|
-
|
|
5936
|
+
buttonClick.innerHTML = "Save"
|
|
5940
5937
|
this.setError('Date of completion not selected!');
|
|
5941
5938
|
setTimeout(() => {
|
|
5942
5939
|
this.clearMessages();
|
|
@@ -5947,7 +5944,7 @@ export class SfIEvents extends LitElement {
|
|
|
5947
5944
|
//console.log('makerscheckers 1', reportercomments);
|
|
5948
5945
|
|
|
5949
5946
|
if(reportercomments.trim().length === 0) {
|
|
5950
|
-
|
|
5947
|
+
buttonClick.innerHTML = "Save"
|
|
5951
5948
|
this.setError('Comments cannot be blank!');
|
|
5952
5949
|
setTimeout(() => {
|
|
5953
5950
|
this.clearMessages();
|
|
@@ -6573,7 +6570,6 @@ export class SfIEvents extends LitElement {
|
|
|
6573
6570
|
buttonUnselectAll.style.display = 'none';
|
|
6574
6571
|
}
|
|
6575
6572
|
|
|
6576
|
-
|
|
6577
6573
|
}
|
|
6578
6574
|
|
|
6579
6575
|
// (this._SfDetailContainer as HTMLDivElement).style.display = 'block'
|
|
@@ -10622,7 +10618,7 @@ export class SfIEvents extends LitElement {
|
|
|
10622
10618
|
const id1 = buttonSelect[k].id;
|
|
10623
10619
|
const idArr1 = id1.split("-")
|
|
10624
10620
|
const isbulk = idArr1[15] == "bulk"
|
|
10625
|
-
console.log('isBulk button-
|
|
10621
|
+
console.log('isBulk button-select1', id1, isbulk)
|
|
10626
10622
|
if(isbulk){
|
|
10627
10623
|
(buttonSelect[k] as HTMLInputElement).style.display = 'none';
|
|
10628
10624
|
}else{
|
|
@@ -11210,7 +11206,7 @@ export class SfIEvents extends LitElement {
|
|
|
11210
11206
|
const id1 = buttonSelect[k].id;
|
|
11211
11207
|
const idArr1 = id1.split("-")
|
|
11212
11208
|
const isbulk = idArr1[15] == "bulk"
|
|
11213
|
-
console.log('isBulk button-
|
|
11209
|
+
console.log('isBulk button-select2', id1, isbulk)
|
|
11214
11210
|
if(isbulk){
|
|
11215
11211
|
(buttonSelect[k] as HTMLInputElement).style.display = 'none';
|
|
11216
11212
|
}else{
|
|
@@ -12564,7 +12560,7 @@ export class SfIEvents extends LitElement {
|
|
|
12564
12560
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
12565
12561
|
|
|
12566
12562
|
if(comments.trim().length === 0) {
|
|
12567
|
-
|
|
12563
|
+
buttonClick.innerHTML = "Save"
|
|
12568
12564
|
this.setError('Comments cannot be blank!');
|
|
12569
12565
|
setTimeout(() => {
|
|
12570
12566
|
this.clearMessages();
|
|
@@ -12714,7 +12710,7 @@ export class SfIEvents extends LitElement {
|
|
|
12714
12710
|
if(docs.length === 0 && docsOptional.length === 0) {
|
|
12715
12711
|
|
|
12716
12712
|
//console.log('reporter comments 3', reportercomments);
|
|
12717
|
-
|
|
12713
|
+
buttonClick.innerHTML = "Save"
|
|
12718
12714
|
this.setError('No documents uploaded!');
|
|
12719
12715
|
setTimeout(() => {
|
|
12720
12716
|
this.clearMessages();
|
|
@@ -12725,7 +12721,7 @@ export class SfIEvents extends LitElement {
|
|
|
12725
12721
|
//console.log('reporterdoc', reporterdoc);
|
|
12726
12722
|
|
|
12727
12723
|
if(reporterdoc.length === 0) {
|
|
12728
|
-
|
|
12724
|
+
buttonClick.innerHTML = "Save"
|
|
12729
12725
|
this.setError('Date of completion not selected!');
|
|
12730
12726
|
setTimeout(() => {
|
|
12731
12727
|
this.clearMessages();
|
|
@@ -12736,7 +12732,7 @@ export class SfIEvents extends LitElement {
|
|
|
12736
12732
|
//console.log('makerscheckers 1', reportercomments);
|
|
12737
12733
|
|
|
12738
12734
|
if(reportercomments.trim().length === 0) {
|
|
12739
|
-
|
|
12735
|
+
buttonClick.innerHTML = "Save"
|
|
12740
12736
|
this.setError('Comments cannot be blank!');
|
|
12741
12737
|
setTimeout(() => {
|
|
12742
12738
|
this.clearMessages();
|
|
@@ -13845,7 +13841,7 @@ export class SfIEvents extends LitElement {
|
|
|
13845
13841
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
13846
13842
|
|
|
13847
13843
|
if(comments.trim().length === 0) {
|
|
13848
|
-
|
|
13844
|
+
buttonClick.innerHTML = "Save"
|
|
13849
13845
|
this.setError('Comments cannot be blank!');
|
|
13850
13846
|
setTimeout(() => {
|
|
13851
13847
|
this.clearMessages();
|
|
@@ -13992,7 +13988,7 @@ export class SfIEvents extends LitElement {
|
|
|
13992
13988
|
if(docs.length === 0 && docsOptional.length === 0) {
|
|
13993
13989
|
|
|
13994
13990
|
//console.log('reporter comments 3', reportercomments);
|
|
13995
|
-
|
|
13991
|
+
buttonClick.innerHTML = "Save"
|
|
13996
13992
|
this.setError('No documents uploaded!');
|
|
13997
13993
|
setTimeout(() => {
|
|
13998
13994
|
this.clearMessages();
|
|
@@ -14003,7 +13999,7 @@ export class SfIEvents extends LitElement {
|
|
|
14003
13999
|
//console.log('reporterdoc', reporterdoc);
|
|
14004
14000
|
|
|
14005
14001
|
if(reporterdoc.length === 0) {
|
|
14006
|
-
|
|
14002
|
+
buttonClick.innerHTML = "Save"
|
|
14007
14003
|
this.setError('Date of completion not selected!');
|
|
14008
14004
|
setTimeout(() => {
|
|
14009
14005
|
this.clearMessages();
|
|
@@ -14014,7 +14010,7 @@ export class SfIEvents extends LitElement {
|
|
|
14014
14010
|
//console.log('makerscheckers 1', reportercomments);
|
|
14015
14011
|
|
|
14016
14012
|
if(reportercomments.trim().length === 0) {
|
|
14017
|
-
|
|
14013
|
+
buttonClick.innerHTML = "Save"
|
|
14018
14014
|
this.setError('Comments cannot be blank!');
|
|
14019
14015
|
setTimeout(() => {
|
|
14020
14016
|
this.clearMessages();
|
|
@@ -20518,17 +20514,19 @@ export class SfIEvents extends LitElement {
|
|
|
20518
20514
|
for(var i = 0; i < divs.length; i++) {
|
|
20519
20515
|
|
|
20520
20516
|
if(!hide) {
|
|
20521
|
-
(tables[i]
|
|
20522
|
-
|
|
20517
|
+
if(tables[i] != null){
|
|
20518
|
+
(tables[i] as HTMLDivElement).style.display = 'block';
|
|
20519
|
+
(eventUserLabelsContainers[i] as HTMLDivElement).style.display = 'flex';
|
|
20523
20520
|
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'block';
|
|
20524
20521
|
(graphparamnames1[i] as HTMLDivElement).style.display = 'block';
|
|
20525
20522
|
if(graphparamnames2 != null && graphparamnames2[i] != null) (graphparamnames2[i] as HTMLDivElement).style.display = 'block';
|
|
20526
20523
|
if(graphparamnames3 != null && graphparamnames3[i] != null) (graphparamnames3[i] as HTMLDivElement).style.display = 'block';
|
|
20527
|
-
(eventTitles[i] as HTMLDivElement).style.display = 'flex';
|
|
20528
20524
|
if(eventSubTitles[i] != null) {
|
|
20529
20525
|
(eventSubTitles[i] as HTMLDivElement).style.display = 'flex';
|
|
20530
20526
|
}
|
|
20531
20527
|
buttonListReporting.style.display = "block";
|
|
20528
|
+
}
|
|
20529
|
+
(eventTitles[i] as HTMLDivElement).style.display = 'flex';
|
|
20532
20530
|
} else {
|
|
20533
20531
|
|
|
20534
20532
|
var found = false;
|
|
@@ -20545,17 +20543,19 @@ export class SfIEvents extends LitElement {
|
|
|
20545
20543
|
}
|
|
20546
20544
|
|
|
20547
20545
|
if(found) {
|
|
20548
|
-
(tables[i]
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
|
|
20553
|
-
|
|
20554
|
-
|
|
20555
|
-
|
|
20556
|
-
|
|
20546
|
+
if(tables[i] != null){
|
|
20547
|
+
(tables[i] as HTMLDivElement).style.display = 'none';
|
|
20548
|
+
(eventUserLabelsContainers[i] as HTMLDivElement).style.display = 'none';
|
|
20549
|
+
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'none';
|
|
20550
|
+
(graphparamnames1[i] as HTMLDivElement).style.display = 'none';
|
|
20551
|
+
if(graphparamnames2 != null && graphparamnames2[i] != null) (graphparamnames2[i] as HTMLDivElement).style.display = 'none';
|
|
20552
|
+
if(graphparamnames3 != null && graphparamnames3[i] != null) (graphparamnames3[i] as HTMLDivElement).style.display = 'none';
|
|
20553
|
+
if(eventSubTitles[i] != null) {
|
|
20554
|
+
(eventSubTitles[i] as HTMLDivElement).style.display = 'none';
|
|
20555
|
+
}
|
|
20556
|
+
buttonListReporting.style.display = 'none';
|
|
20557
20557
|
}
|
|
20558
|
-
|
|
20558
|
+
(eventTitles[i] as HTMLDivElement).style.display = 'none';
|
|
20559
20559
|
}
|
|
20560
20560
|
}
|
|
20561
20561
|
|
|
@@ -20633,6 +20633,14 @@ export class SfIEvents extends LitElement {
|
|
|
20633
20633
|
|
|
20634
20634
|
if(eventContainer == null) return;
|
|
20635
20635
|
|
|
20636
|
+
this.selectedItemIds = [];
|
|
20637
|
+
|
|
20638
|
+
const buttonSelect = eventContainer!.querySelectorAll('.button-select') as NodeListOf<HTMLInputElement>;
|
|
20639
|
+
|
|
20640
|
+
// for(let checkSelect of buttonSelect){
|
|
20641
|
+
// checkSelect.checked = false
|
|
20642
|
+
// }
|
|
20643
|
+
|
|
20636
20644
|
const divs = eventContainer!.querySelectorAll('.stream-events-container') as NodeListOf<HTMLElement>;
|
|
20637
20645
|
const eventTitles = eventContainer!.querySelectorAll('.stream-events-event-title') as NodeListOf<HTMLElement>;
|
|
20638
20646
|
const eventSubTitles = eventContainer!.querySelectorAll('.stream-events-event-subtitle') as NodeListOf<HTMLElement>;
|
|
@@ -20677,7 +20685,7 @@ export class SfIEvents extends LitElement {
|
|
|
20677
20685
|
|
|
20678
20686
|
for(var i = 0; i < divs.length; i++) {
|
|
20679
20687
|
|
|
20680
|
-
console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
20688
|
+
// console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
20681
20689
|
if(graphparamnames1[i] == null){
|
|
20682
20690
|
continue;
|
|
20683
20691
|
}
|
|
@@ -20689,6 +20697,7 @@ export class SfIEvents extends LitElement {
|
|
|
20689
20697
|
break;
|
|
20690
20698
|
}
|
|
20691
20699
|
}
|
|
20700
|
+
if(buttonSelect[i] != null)buttonSelect[i].checked = false
|
|
20692
20701
|
if(filterFound) {
|
|
20693
20702
|
if(tables[i] != null){
|
|
20694
20703
|
(tables[i] as HTMLDivElement).style.display = 'block';
|
|
@@ -20704,7 +20713,8 @@ export class SfIEvents extends LitElement {
|
|
|
20704
20713
|
buttonListReporting[i].style.display = 'block';
|
|
20705
20714
|
}
|
|
20706
20715
|
}
|
|
20707
|
-
if(
|
|
20716
|
+
if(buttonSelect[i] != null && buttonSelect[i].id.indexOf('-bulk') < 0)buttonSelect[i].style.display = "flex"
|
|
20717
|
+
if(eventTitles[i] != null)(eventTitles[i]).style.display = 'flex';
|
|
20708
20718
|
divs[i].style.display = 'block'
|
|
20709
20719
|
} else {
|
|
20710
20720
|
if(tables[i] != null){
|
|
@@ -20721,8 +20731,10 @@ export class SfIEvents extends LitElement {
|
|
|
20721
20731
|
buttonListReporting[i].style.display = 'none';
|
|
20722
20732
|
}
|
|
20723
20733
|
}
|
|
20724
|
-
(
|
|
20725
|
-
|
|
20734
|
+
console.log('eventTitle', divs[i]);
|
|
20735
|
+
if(buttonSelect[i] != null)buttonSelect[i].style.display = "none"
|
|
20736
|
+
if(eventTitles[i] != null)(eventTitles[i]).style.display = 'none';
|
|
20737
|
+
if(divs[i] != null) divs[i].style.display = 'none'
|
|
20726
20738
|
}
|
|
20727
20739
|
|
|
20728
20740
|
}
|
|
@@ -25341,7 +25353,7 @@ export class SfIEvents extends LitElement {
|
|
|
25341
25353
|
const id1 = buttonSelect[k].id;
|
|
25342
25354
|
const idArr1 = id1.split("-")
|
|
25343
25355
|
const isbulk = idArr1[15] == "bulk"
|
|
25344
|
-
console.log('isBulk button-
|
|
25356
|
+
console.log('isBulk button-select3', id1, isbulk)
|
|
25345
25357
|
if(isbulk){
|
|
25346
25358
|
(buttonSelect[k] as HTMLInputElement).style.display = 'none';
|
|
25347
25359
|
}else{
|