sf-i-events 1.0.919 → 1.0.920

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.919",
4
+ "version": "1.0.920",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -850,7 +850,7 @@ let SfIEvents = class SfIEvents extends LitElement {
850
850
 
851
851
  `;
852
852
  this.AUTOSAVE_FLAG = true;
853
- this.EXCLUDE_COLS_FROM_REGS = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"];
853
+ this.EXCLUDE_COLS_FROM_REGS = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers", "lastmodifiedby", "lastmodifiedtime"];
854
854
  this.CHARTS_LIST_BY_MODULES = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
855
855
  this.chartSelectedLegend = [];
856
856
  this.selectedFilters = null;
@@ -5677,7 +5677,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5677
5677
  return [buttonSelectAll, buttonUnselectAll];
5678
5678
  };
5679
5679
  this.renderRegisterEvents = (events, meta = "", searchCountryIndex = -1, searchIndex = -1, searchVal = "") => {
5680
- var _a;
5680
+ var _a, _b;
5681
5681
  var html = '';
5682
5682
  this.csvDataRegisters = '';
5683
5683
  let flagUpdateFilters = Object.keys(this.registerFilters).length == 0;
@@ -5701,6 +5701,8 @@ let SfIEvents = class SfIEvents extends LitElement {
5701
5701
  });
5702
5702
  }
5703
5703
  this.tablecols = [];
5704
+ let linesCount = 0;
5705
+ let searchFilterString = "";
5704
5706
  if (this.selectedCountryTab >= 0) {
5705
5707
  const index = this.selectedCountryTab;
5706
5708
  //console.log('indexclicked', index);
@@ -5708,6 +5710,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5708
5710
  //console.log('indexclicked', objCountry);
5709
5711
  var html = '';
5710
5712
  this.csvDataRegisters += '"ID",';
5713
+ linesCount = 0;
5711
5714
  for (var i = 0; i < Object.keys(objCountry).length; i++) {
5712
5715
  const statute = Object.keys(objCountry)[i];
5713
5716
  // this.csvDataRegisters += ('\n\n"' + statute + '"\n\n');
@@ -5725,8 +5728,12 @@ let SfIEvents = class SfIEvents extends LitElement {
5725
5728
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
5726
5729
  this.csvDataRegisters += ('\n');
5727
5730
  }
5731
+ else {
5732
+ continue;
5733
+ }
5728
5734
  html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5729
- html += '<div class="d-flex align-end left-sticky">';
5735
+ html += '<div class="d-flex flex-col left-sticky">';
5736
+ html += '<div class="d-flex align-end">';
5730
5737
  html += '<div class="title-item-date">';
5731
5738
  html += '<label part="input-label">Search In Statute</label><br />';
5732
5739
  html += '<input id="stream-search-statute-' + index + '-' + i + '" class="stream-search-statute" part="input" type="text" value="' + ((searchCountryIndex == index && searchIndex == i) ? searchVal : "") + '"/>';
@@ -5735,6 +5742,8 @@ let SfIEvents = class SfIEvents extends LitElement {
5735
5742
  html += '<button id="button-download-statute-' + index + '-' + i + '" part="button" class="button-download-statute d-flex justify-center align-center ml-10"><span class="material-symbols-outlined">download</span>&nbsp;&nbsp;<span>Export</span></button>';
5736
5743
  html += '</div>';
5737
5744
  html += '</div>';
5745
+ html += '<div id="filter-string" part="filter-string">Test String</div>';
5746
+ html += '</div>';
5738
5747
  html += '<table>';
5739
5748
  let tableBodyHtml = '';
5740
5749
  for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
@@ -5757,6 +5766,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5757
5766
  if (compliance.hide != null && compliance.hide == true) {
5758
5767
  continue;
5759
5768
  }
5769
+ linesCount++;
5760
5770
  this.csvDataRegisters += ('"' + complianceId + '",');
5761
5771
  // html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
5762
5772
  // html += '<table>';
@@ -5792,7 +5802,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5792
5802
  entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
5793
5803
  }
5794
5804
  entities = entities.slice(0, entities.length - 1);
5795
- tableBodyHtml += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + entities + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5805
+ tableBodyHtml += ('<td class="td-body" part="td-body-register"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + entities + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5796
5806
  if (!this.tablecols.includes('entities') && !this.EXCLUDE_COLS_FROM_REGS.includes('entities')) {
5797
5807
  this.tablecols.push('entities');
5798
5808
  }
@@ -5810,7 +5820,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5810
5820
  locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
5811
5821
  }
5812
5822
  locations = locations.slice(0, locations.length - 1);
5813
- tableBodyHtml += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + locations + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5823
+ tableBodyHtml += ('<td class="td-body" part="td-body-register"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + locations + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
5814
5824
  if (!this.tablecols.includes('locations') && !this.EXCLUDE_COLS_FROM_REGS.includes('locations')) {
5815
5825
  this.tablecols.push('locations');
5816
5826
  }
@@ -5831,19 +5841,30 @@ let SfIEvents = class SfIEvents extends LitElement {
5831
5841
  }
5832
5842
  html += '<thead><tr>';
5833
5843
  html += '<th class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important"></span></th>';
5844
+ searchFilterString = "";
5834
5845
  for (let colName of this.tablecols) {
5835
5846
  let allSelected = true;
5836
5847
  for (let subfilterObj of Object.keys((_a = this.registerFilters[colName]) !== null && _a !== void 0 ? _a : {})) {
5837
5848
  if (this.registerFilters[colName][subfilterObj] == false) {
5838
5849
  allSelected = false;
5850
+ for (let subfilterObjVal of Object.keys((_b = this.registerFilters[colName]) !== null && _b !== void 0 ? _b : {})) {
5851
+ if (this.registerFilters[colName][subfilterObjVal] == true) {
5852
+ if (searchFilterString == "") {
5853
+ searchFilterString += subfilterObjVal;
5854
+ }
5855
+ else {
5856
+ searchFilterString += ', ' + subfilterObjVal;
5857
+ }
5858
+ }
5859
+ }
5839
5860
  break;
5840
5861
  }
5841
5862
  }
5842
- html += '<th class="td-body" part="td-body-register"><div class="d-flex align-start"><span part="' + (allSelected ? 'td-head' : 'td-head-selected') + '" style="padding-left: 0px !important">' + colName + '</span><div class="filter-button-container ml-10"><button part="' + (allSelected ? 'col-icon' : 'col-icon-selected') + '" id="filter-button-' + this.tablecols.indexOf(colName) + '" class="filter-button material-symbols-outlined">filter_list</button>';
5863
+ html += '<th class="td-body" part="td-body-register"><div class="d-flex align-start"><span part="' + (allSelected ? 'td-head' : 'td-head-selected') + '" style="' + (allSelected ? 'padding-left: 0px !important' : '') + '">' + colName + '</span><div class="filter-button-container ml-10"><button part="' + (allSelected ? 'col-icon' : 'col-icon-selected') + '" id="filter-button-' + this.tablecols.indexOf(colName) + '" class="filter-button material-symbols-outlined">filter_list</button>';
5843
5864
  html += '<div id="filter-list-container-' + this.tablecols.indexOf(colName) + '" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">';
5844
5865
  html += `<div id="filter-label-container-${this.tablecols.indexOf(colName)}" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><div class="d-flex align-center"><input class="input-select-filter" type="checkbox" ${allSelected ? 'checked' : ''} id="input-select-filter-${this.tablecols.indexOf(colName)}-all" name="features" part="input-select-feature" value="all-${colName}"></input><label class="filter-label" part="filter-label" for="input-select-filter-${this.tablecols.indexOf(colName)}-all">All</label></div><button id="button-submit-filters-${this.tablecols.indexOf(colName)}" part="col-option-icon" class="button-submit-filters material-icons invisible">check</button></div>`;
5845
5866
  for (let [index, filterKey] of Object.keys(this.registerFilters[colName]).entries()) {
5846
- console.log('rendering filter', filterKey);
5867
+ // console.log('rendering filter', filterKey);
5847
5868
  html += `<div class="filter-input-container d-flex justify-start align-start"><input class="input-select-filter" type="checkbox" ${this.registerFilters[colName][filterKey] == true ? 'checked' : ''} id="input-select-filter-${this.tablecols.indexOf(colName)}-${index}" name="features" part="input-select-feature" value="${filterKey}"></input><label for="input-select-filter-${this.tablecols.indexOf(colName)}-${index}" id="input-select-filter-label-${this.tablecols.indexOf(colName)}-${index}" class="input-select-filter-label" part="input-select-feature-label">${filterKey}</label></div>`;
5848
5869
  }
5849
5870
  html += '</div></div></th>';
@@ -5856,8 +5877,25 @@ let SfIEvents = class SfIEvents extends LitElement {
5856
5877
  // html += '</div>';
5857
5878
  }
5858
5879
  divRegisterList.innerHTML = html;
5859
- console.log('registerFilters', flagUpdateFilters, this.registerFilters);
5880
+ console.log('registerFilters', flagUpdateFilters, this.registerFilters, html.indexOf('input-select-filter-0-0'));
5860
5881
  // console.log('csvdataregisters', this.csvDataRegisters);
5882
+ if (this.selectedRegisterIndex >= 0) {
5883
+ const divFilterString = this._SfRegisterContainer.querySelector('.calendar-right-data-register').querySelector('#filter-string');
5884
+ let filterString = "";
5885
+ if (searchVal != "" || searchFilterString != "") {
5886
+ filterString = linesCount + " result(s) when ";
5887
+ if (searchVal != "") {
5888
+ filterString += "searched by \"" + searchVal + "\"";
5889
+ if (searchFilterString != "") {
5890
+ filterString += ", filtered by \"" + searchFilterString + "\"";
5891
+ }
5892
+ }
5893
+ else if (searchFilterString != "") {
5894
+ filterString += "filtered by \"" + searchFilterString + "\"";
5895
+ }
5896
+ }
5897
+ divFilterString.innerHTML = filterString;
5898
+ }
5861
5899
  const arrButtonCountries = this._SfRegisterContainer.querySelector('.calendar-right-data-register').querySelectorAll('.button-icon-country');
5862
5900
  for (i = 0; i < arrButtonCountries.length; i++) {
5863
5901
  const button = Util.clearListeners(arrButtonCountries[i]);
@@ -858,7 +858,7 @@ export class SfIEvents extends LitElement {
858
858
 
859
859
  AUTOSAVE_FLAG = true;
860
860
 
861
- EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"]
861
+ EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers", "lastmodifiedby", "lastmodifiedtime"]
862
862
 
863
863
  CHARTS_LIST_BY_MODULES: { [key: string]: Array<string> } = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
864
864
 
@@ -8251,6 +8251,8 @@ export class SfIEvents extends LitElement {
8251
8251
  });
8252
8252
  }
8253
8253
  this.tablecols = []
8254
+ let linesCount = 0;
8255
+ let searchFilterString = ""
8254
8256
  if (this.selectedCountryTab >= 0) {
8255
8257
 
8256
8258
  const index = this.selectedCountryTab;
@@ -8261,6 +8263,7 @@ export class SfIEvents extends LitElement {
8261
8263
 
8262
8264
  var html = '';
8263
8265
  this.csvDataRegisters += '"ID",';
8266
+ linesCount = 0
8264
8267
  for (var i = 0; i < Object.keys(objCountry).length; i++) {
8265
8268
 
8266
8269
  const statute = Object.keys(objCountry)[i];
@@ -8283,10 +8286,13 @@ export class SfIEvents extends LitElement {
8283
8286
  }
8284
8287
  this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
8285
8288
  this.csvDataRegisters += ('\n');
8289
+ } else {
8290
+ continue;
8286
8291
  }
8287
8292
  html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8288
8293
 
8289
- html += '<div class="d-flex align-end left-sticky">';
8294
+ html += '<div class="d-flex flex-col left-sticky">';
8295
+ html += '<div class="d-flex align-end">'
8290
8296
  html += '<div class="title-item-date">';
8291
8297
  html += '<label part="input-label">Search In Statute</label><br />'
8292
8298
  html += '<input id="stream-search-statute-' + index + '-' + i + '" class="stream-search-statute" part="input" type="text" value="' + ((searchCountryIndex == index && searchIndex == i) ? searchVal : "") + '"/>'
@@ -8295,8 +8301,11 @@ export class SfIEvents extends LitElement {
8295
8301
  html += '<button id="button-download-statute-' + index + '-' + i + '" part="button" class="button-download-statute d-flex justify-center align-center ml-10"><span class="material-symbols-outlined">download</span>&nbsp;&nbsp;<span>Export</span></button>';
8296
8302
  html += '</div>';
8297
8303
  html += '</div>';
8304
+ html += '<div id="filter-string" part="filter-string">Test String</div>'
8305
+ html += '</div>';
8298
8306
  html += '<table>';
8299
8307
  let tableBodyHtml = ''
8308
+
8300
8309
  for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
8301
8310
 
8302
8311
  const complianceId = Object.keys(objCountry[statute])[j];
@@ -8321,6 +8330,7 @@ export class SfIEvents extends LitElement {
8321
8330
  if (compliance.hide != null && compliance.hide == true) {
8322
8331
  continue;
8323
8332
  }
8333
+ linesCount++
8324
8334
  this.csvDataRegisters += ('"' + complianceId + '",');
8325
8335
  // html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
8326
8336
  // html += '<table>';
@@ -8356,7 +8366,7 @@ export class SfIEvents extends LitElement {
8356
8366
  entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ','
8357
8367
  }
8358
8368
  entities = entities.slice(0, entities.length - 1)
8359
- tableBodyHtml += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + entities + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8369
+ tableBodyHtml += ('<td class="td-body" part="td-body-register"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + entities + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8360
8370
  if (!this.tablecols.includes('entities') && !this.EXCLUDE_COLS_FROM_REGS.includes('entities')) {
8361
8371
  this.tablecols.push('entities')
8362
8372
  }
@@ -8374,7 +8384,7 @@ export class SfIEvents extends LitElement {
8374
8384
  locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ','
8375
8385
  }
8376
8386
  locations = locations.slice(0, locations.length - 1)
8377
- tableBodyHtml += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + locations + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8387
+ tableBodyHtml += ('<td class="td-body" part="td-body-register"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + locations + '" highlight="' + searchVal + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
8378
8388
  if (!this.tablecols.includes('locations') && !this.EXCLUDE_COLS_FROM_REGS.includes('locations')) {
8379
8389
  this.tablecols.push('locations')
8380
8390
  }
@@ -8395,21 +8405,30 @@ export class SfIEvents extends LitElement {
8395
8405
  }
8396
8406
  html += '<thead><tr>';
8397
8407
  html += '<th class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important"></span></th>'
8398
-
8408
+ searchFilterString = ""
8399
8409
  for (let colName of this.tablecols) {
8400
8410
  let allSelected = true;
8401
8411
  for (let subfilterObj of Object.keys(this.registerFilters[colName] ?? {})) {
8402
8412
  if (this.registerFilters[colName][subfilterObj] == false) {
8403
8413
  allSelected = false;
8414
+ for (let subfilterObjVal of Object.keys(this.registerFilters[colName] ?? {})) {
8415
+ if (this.registerFilters[colName][subfilterObjVal] == true) {
8416
+ if (searchFilterString == "") {
8417
+ searchFilterString += subfilterObjVal
8418
+ } else {
8419
+ searchFilterString += ', ' + subfilterObjVal
8420
+ }
8421
+ }
8422
+ }
8404
8423
  break;
8405
8424
  }
8406
8425
  }
8407
8426
 
8408
- html += '<th class="td-body" part="td-body-register"><div class="d-flex align-start"><span part="' + (allSelected ? 'td-head' : 'td-head-selected') + '" style="padding-left: 0px !important">' + colName + '</span><div class="filter-button-container ml-10"><button part="' + (allSelected ? 'col-icon' : 'col-icon-selected') + '" id="filter-button-' + this.tablecols.indexOf(colName) + '" class="filter-button material-symbols-outlined">filter_list</button>'
8427
+ html += '<th class="td-body" part="td-body-register"><div class="d-flex align-start"><span part="' + (allSelected ? 'td-head' : 'td-head-selected') + '" style="' + (allSelected ? 'padding-left: 0px !important' : '') + '">' + colName + '</span><div class="filter-button-container ml-10"><button part="' + (allSelected ? 'col-icon' : 'col-icon-selected') + '" id="filter-button-' + this.tablecols.indexOf(colName) + '" class="filter-button material-symbols-outlined">filter_list</button>'
8409
8428
  html += '<div id="filter-list-container-' + this.tablecols.indexOf(colName) + '" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">'
8410
8429
  html += `<div id="filter-label-container-${this.tablecols.indexOf(colName)}" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><div class="d-flex align-center"><input class="input-select-filter" type="checkbox" ${allSelected ? 'checked' : ''} id="input-select-filter-${this.tablecols.indexOf(colName)}-all" name="features" part="input-select-feature" value="all-${colName}"></input><label class="filter-label" part="filter-label" for="input-select-filter-${this.tablecols.indexOf(colName)}-all">All</label></div><button id="button-submit-filters-${this.tablecols.indexOf(colName)}" part="col-option-icon" class="button-submit-filters material-icons invisible">check</button></div>`
8411
8430
  for (let [index, filterKey] of Object.keys(this.registerFilters[colName]).entries()) {
8412
- console.log('rendering filter', filterKey);
8431
+ // console.log('rendering filter', filterKey);
8413
8432
  html += `<div class="filter-input-container d-flex justify-start align-start"><input class="input-select-filter" type="checkbox" ${this.registerFilters[colName][filterKey] == true ? 'checked' : ''} id="input-select-filter-${this.tablecols.indexOf(colName)}-${index}" name="features" part="input-select-feature" value="${filterKey}"></input><label for="input-select-filter-${this.tablecols.indexOf(colName)}-${index}" id="input-select-filter-label-${this.tablecols.indexOf(colName)}-${index}" class="input-select-filter-label" part="input-select-feature-label">${filterKey}</label></div>`
8414
8433
  }
8415
8434
  html += '</div></div></th>'
@@ -8425,9 +8444,24 @@ export class SfIEvents extends LitElement {
8425
8444
  }
8426
8445
 
8427
8446
  divRegisterList!.innerHTML = html;
8428
- console.log('registerFilters', flagUpdateFilters, this.registerFilters);
8447
+ console.log('registerFilters', flagUpdateFilters, this.registerFilters, html.indexOf('input-select-filter-0-0'));
8429
8448
  // console.log('csvdataregisters', this.csvDataRegisters);
8430
-
8449
+ if (this.selectedRegisterIndex >= 0) {
8450
+ const divFilterString = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelector('#filter-string') as HTMLDivElement
8451
+ let filterString = ""
8452
+ if (searchVal != "" || searchFilterString != "") {
8453
+ filterString = linesCount + " result(s) when "
8454
+ if (searchVal != "") {
8455
+ filterString += "searched by \"" + searchVal + "\""
8456
+ if (searchFilterString != "") {
8457
+ filterString += ", filtered by \"" + searchFilterString + "\""
8458
+ }
8459
+ } else if (searchFilterString != "") {
8460
+ filterString += "filtered by \"" + searchFilterString + "\""
8461
+ }
8462
+ }
8463
+ divFilterString.innerHTML = filterString
8464
+ }
8431
8465
  const arrButtonCountries = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelectorAll('.button-icon-country') as NodeListOf<HTMLButtonElement>;
8432
8466
 
8433
8467
  for (i = 0; i < arrButtonCountries.length; i++) {