sf-i-events 1.0.793 → 1.0.795
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 +4 -4
- package/package.json +1 -1
- package/sf-i-events.js +52 -32
- package/src/sf-i-events.ts +40 -27
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,7 +647,7 @@
|
|
|
647
647
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
648
648
|
</div>
|
|
649
649
|
|
|
650
|
-
</sf-i-events>
|
|
650
|
+
</sf-i-events> -->
|
|
651
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="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
652
|
|
|
653
653
|
<div slot="uploader">
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
</div>
|
|
682
682
|
|
|
683
683
|
</sf-i-events> -->
|
|
684
|
-
|
|
684
|
+
<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">
|
|
685
685
|
|
|
686
686
|
<div slot="uploader">
|
|
687
687
|
<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>
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
691
691
|
</div>
|
|
692
692
|
|
|
693
|
-
</sf-i-events>
|
|
693
|
+
</sf-i-events>
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
<script>
|
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>';
|
|
@@ -7464,7 +7464,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7464
7464
|
const id1 = buttonSelect[k].id;
|
|
7465
7465
|
const idArr1 = id1.split("-");
|
|
7466
7466
|
const isbulk = idArr1[15] == "bulk";
|
|
7467
|
-
console.log('isBulk button-
|
|
7467
|
+
console.log('isBulk button-select1', id1, isbulk);
|
|
7468
7468
|
if (isbulk) {
|
|
7469
7469
|
buttonSelect[k].style.display = 'none';
|
|
7470
7470
|
}
|
|
@@ -7947,7 +7947,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7947
7947
|
const id1 = buttonSelect[k].id;
|
|
7948
7948
|
const idArr1 = id1.split("-");
|
|
7949
7949
|
const isbulk = idArr1[15] == "bulk";
|
|
7950
|
-
console.log('isBulk button-
|
|
7950
|
+
console.log('isBulk button-select2', id1, isbulk);
|
|
7951
7951
|
if (isbulk) {
|
|
7952
7952
|
buttonSelect[k].style.display = 'none';
|
|
7953
7953
|
}
|
|
@@ -15339,19 +15339,21 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15339
15339
|
//console.log('selectedfilter', this.selectedFilter);
|
|
15340
15340
|
for (var i = 0; i < divs.length; i++) {
|
|
15341
15341
|
if (!hide) {
|
|
15342
|
-
tables[i]
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
graphparamnames2[i]
|
|
15348
|
-
|
|
15349
|
-
graphparamnames3[i]
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15342
|
+
if (tables[i] != null) {
|
|
15343
|
+
tables[i].style.display = 'block';
|
|
15344
|
+
eventUserLabelsContainers[i].style.display = 'flex';
|
|
15345
|
+
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'block';
|
|
15346
|
+
graphparamnames1[i].style.display = 'block';
|
|
15347
|
+
if (graphparamnames2 != null && graphparamnames2[i] != null)
|
|
15348
|
+
graphparamnames2[i].style.display = 'block';
|
|
15349
|
+
if (graphparamnames3 != null && graphparamnames3[i] != null)
|
|
15350
|
+
graphparamnames3[i].style.display = 'block';
|
|
15351
|
+
if (eventSubTitles[i] != null) {
|
|
15352
|
+
eventSubTitles[i].style.display = 'flex';
|
|
15353
|
+
}
|
|
15354
|
+
buttonListReporting.style.display = "block";
|
|
15353
15355
|
}
|
|
15354
|
-
|
|
15356
|
+
eventTitles[i].style.display = 'flex';
|
|
15355
15357
|
}
|
|
15356
15358
|
else {
|
|
15357
15359
|
var found = false;
|
|
@@ -15365,19 +15367,21 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15365
15367
|
}
|
|
15366
15368
|
}
|
|
15367
15369
|
if (found) {
|
|
15368
|
-
tables[i]
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
graphparamnames2[i]
|
|
15374
|
-
|
|
15375
|
-
graphparamnames3[i]
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15370
|
+
if (tables[i] != null) {
|
|
15371
|
+
tables[i].style.display = 'none';
|
|
15372
|
+
eventUserLabelsContainers[i].style.display = 'none';
|
|
15373
|
+
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'none';
|
|
15374
|
+
graphparamnames1[i].style.display = 'none';
|
|
15375
|
+
if (graphparamnames2 != null && graphparamnames2[i] != null)
|
|
15376
|
+
graphparamnames2[i].style.display = 'none';
|
|
15377
|
+
if (graphparamnames3 != null && graphparamnames3[i] != null)
|
|
15378
|
+
graphparamnames3[i].style.display = 'none';
|
|
15379
|
+
if (eventSubTitles[i] != null) {
|
|
15380
|
+
eventSubTitles[i].style.display = 'none';
|
|
15381
|
+
}
|
|
15382
|
+
buttonListReporting.style.display = 'none';
|
|
15379
15383
|
}
|
|
15380
|
-
|
|
15384
|
+
eventTitles[i].style.display = 'none';
|
|
15381
15385
|
}
|
|
15382
15386
|
}
|
|
15383
15387
|
let listReportingContainers = eventContainer.querySelectorAll('.list-reporting-container');
|
|
@@ -15440,6 +15444,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15440
15444
|
}
|
|
15441
15445
|
if (eventContainer == null)
|
|
15442
15446
|
return;
|
|
15447
|
+
this.selectedItemIds = [];
|
|
15448
|
+
const buttonSelect = eventContainer.querySelectorAll('.button-select');
|
|
15449
|
+
// for(let checkSelect of buttonSelect){
|
|
15450
|
+
// checkSelect.checked = false
|
|
15451
|
+
// }
|
|
15443
15452
|
const divs = eventContainer.querySelectorAll('.stream-events-container');
|
|
15444
15453
|
const eventTitles = eventContainer.querySelectorAll('.stream-events-event-title');
|
|
15445
15454
|
const eventSubTitles = eventContainer.querySelectorAll('.stream-events-event-subtitle');
|
|
@@ -15476,7 +15485,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15476
15485
|
});
|
|
15477
15486
|
}
|
|
15478
15487
|
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, ' '));
|
|
15488
|
+
// console.log('processGraphFilter', graphparamnames1[i], (graphparamnames1[i] as HTMLDivElement).innerHTML.toLowerCase().replace('&', '&').replace(/-/g, ' '), this.graphParam.toLowerCase().replace('&', '&').replace(/-/g, ' '));
|
|
15480
15489
|
if (graphparamnames1[i] == null) {
|
|
15481
15490
|
continue;
|
|
15482
15491
|
}
|
|
@@ -15488,6 +15497,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15488
15497
|
break;
|
|
15489
15498
|
}
|
|
15490
15499
|
}
|
|
15500
|
+
if (buttonSelect[i] != null)
|
|
15501
|
+
buttonSelect[i].checked = false;
|
|
15491
15502
|
if (filterFound) {
|
|
15492
15503
|
if (tables[i] != null) {
|
|
15493
15504
|
tables[i].style.display = 'block';
|
|
@@ -15505,8 +15516,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15505
15516
|
buttonListReporting[i].style.display = 'block';
|
|
15506
15517
|
}
|
|
15507
15518
|
}
|
|
15519
|
+
if (buttonSelect[i] != null && buttonSelect[i].id.indexOf('-bulk') < 0)
|
|
15520
|
+
buttonSelect[i].style.display = "flex";
|
|
15508
15521
|
if (eventTitles[i] != null)
|
|
15509
|
-
eventTitles[i].style.display = 'flex';
|
|
15522
|
+
(eventTitles[i]).style.display = 'flex';
|
|
15523
|
+
divs[i].style.display = 'block';
|
|
15510
15524
|
}
|
|
15511
15525
|
else {
|
|
15512
15526
|
if (tables[i] != null) {
|
|
@@ -15525,7 +15539,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15525
15539
|
buttonListReporting[i].style.display = 'none';
|
|
15526
15540
|
}
|
|
15527
15541
|
}
|
|
15528
|
-
|
|
15542
|
+
console.log('eventTitle', divs[i]);
|
|
15543
|
+
if (buttonSelect[i] != null)
|
|
15544
|
+
buttonSelect[i].style.display = "none";
|
|
15545
|
+
if (eventTitles[i] != null)
|
|
15546
|
+
(eventTitles[i]).style.display = 'none';
|
|
15547
|
+
if (divs[i] != null)
|
|
15548
|
+
divs[i].style.display = 'none';
|
|
15529
15549
|
}
|
|
15530
15550
|
}
|
|
15531
15551
|
let listReportingContainers = eventContainer.querySelectorAll('.list-reporting-container');
|
|
@@ -19079,7 +19099,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19079
19099
|
const id1 = buttonSelect[k].id;
|
|
19080
19100
|
const idArr1 = id1.split("-");
|
|
19081
19101
|
const isbulk = idArr1[15] == "bulk";
|
|
19082
|
-
console.log('isBulk button-
|
|
19102
|
+
console.log('isBulk button-select3', id1, isbulk);
|
|
19083
19103
|
if (isbulk) {
|
|
19084
19104
|
buttonSelect[k].style.display = 'none';
|
|
19085
19105
|
}
|
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>'
|
|
@@ -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{
|
|
@@ -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,8 +20713,9 @@ export class SfIEvents extends LitElement {
|
|
|
20704
20713
|
buttonListReporting[i].style.display = 'block';
|
|
20705
20714
|
}
|
|
20706
20715
|
}
|
|
20707
|
-
if(
|
|
20708
|
-
|
|
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';
|
|
20718
|
+
divs[i].style.display = 'block'
|
|
20709
20719
|
} else {
|
|
20710
20720
|
if(tables[i] != null){
|
|
20711
20721
|
(tables[i] as HTMLDivElement).style.display = 'none';
|
|
@@ -20721,7 +20731,10 @@ export class SfIEvents extends LitElement {
|
|
|
20721
20731
|
buttonListReporting[i].style.display = 'none';
|
|
20722
20732
|
}
|
|
20723
20733
|
}
|
|
20724
|
-
(
|
|
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'
|
|
20725
20738
|
}
|
|
20726
20739
|
|
|
20727
20740
|
}
|
|
@@ -25340,7 +25353,7 @@ export class SfIEvents extends LitElement {
|
|
|
25340
25353
|
const id1 = buttonSelect[k].id;
|
|
25341
25354
|
const idArr1 = id1.split("-")
|
|
25342
25355
|
const isbulk = idArr1[15] == "bulk"
|
|
25343
|
-
console.log('isBulk button-
|
|
25356
|
+
console.log('isBulk button-select3', id1, isbulk)
|
|
25344
25357
|
if(isbulk){
|
|
25345
25358
|
(buttonSelect[k] as HTMLInputElement).style.display = 'none';
|
|
25346
25359
|
}else{
|