sf-i-events 1.0.762 → 1.0.764

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 CHANGED
@@ -631,7 +631,7 @@
631
631
  <!-- <sf-i-events projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" mode="onboarding" locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Reg_Offce&quot;,&quot;SHRIKRISHNA&quot;,&quot;SHEDNO25&quot;,&quot;SHEDNO31&quot;,&quot;SHEDNO44&quot;,&quot;CBM_SADAN&quot;,&quot;RANJE_CBM&quot;,&quot;ISHITA_TOWER&quot;,&quot;CBM_ANAND&quot;,&quot;CBM_SADAN_WH&quot;,&quot;CBM_ANAND_SHED25&quot;,&quot;CBM_KATRAJ&quot;,&quot;CBM_KHADKI&quot;,&quot;CBM_PANVEL&quot;,&quot;CBM_NAGPUR&quot;,&quot;CBM_ISHITA&quot;,&quot;Dugdhalaya&quot;,&quot;ExpressStores_MH&quot;,&quot;FranchiseStore_MH&quot;],&quot;Goa&quot;:[&quot;ExpressStores_Goa&quot;]},&quot;United States of America&quot;:{&quot;USA&quot;:[&quot;North_Carolina&quot;]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
632
632
 
633
633
  </sf-i-events> -->
634
- <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="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" myrole="reporter" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
634
+ <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="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" myrole="viewer" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
635
635
 
636
636
  <div slot="uploader">
637
637
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.762",
4
+ "version": "1.0.764",
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
@@ -1222,7 +1222,7 @@ let SfIEvents = class SfIEvents extends LitElement {
1222
1222
  this.getFeatures = () => {
1223
1223
  return ['compliances', ...JSON.parse(this.features)];
1224
1224
  };
1225
- this.selectedFeatures = this.getFeatures();
1225
+ this.selectedFeatures = ['compliances'];
1226
1226
  this.nextPage = 0;
1227
1227
  this.nextTabRole = "";
1228
1228
  this.nextTabStatus = "";
@@ -2139,15 +2139,15 @@ let SfIEvents = class SfIEvents extends LitElement {
2139
2139
  html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
2140
2140
  html += '<div class="align-center d-flex flex-wrap align-start justify-between mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title" class="m-0">' + parametersTitle + '</h4>';
2141
2141
  if (this.getFeatures().length > 1) {
2142
- html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-icons">filter_list</button>';
2142
+ html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-symbols-outlined">category</button>';
2143
2143
  html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">';
2144
2144
  html += '<div id="filter-label-container" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible">check</button></div>';
2145
- html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
2146
- part="input-select-feature-label">all</label></div>`;
2145
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
2146
+ // part="input-select-feature-label">all</label></div>`
2147
2147
  // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-compliances" type="checkbox" ${this.selectedFeatures.indexOf('compliances') >= 0 ? 'checked' : ''} id="input-select-feature-compliances" part="input-select-feature" name="compliances"></input><label for="input-select-feature-compliances" class="input-select-feature-label" part="input-select-feature-label">compliances</label></div>`
2148
2148
  for (let [index, feature] of this.getFeatures().entries()) {
2149
2149
  console.log('rendering features', feature, this.selectedFeatures);
2150
- html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="checkbox" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" part="input-select-feature" name="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`;
2150
+ html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="radio" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" name="features" part="input-select-feature" value="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`;
2151
2151
  }
2152
2152
  html += '</div></div>';
2153
2153
  }
@@ -2196,7 +2196,21 @@ let SfIEvents = class SfIEvents extends LitElement {
2196
2196
  //console.log('flowGraph', this.flowGraph);
2197
2197
  var html = '';
2198
2198
  html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
2199
- html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
2199
+ html += '<div class="align-center justify-between d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4>';
2200
+ if (this.getFeatures().length > 1) {
2201
+ html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-symbols-outlined">category</button>';
2202
+ html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">';
2203
+ html += '<div id="filter-label-container" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible">check</button></div>';
2204
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
2205
+ // part="input-select-feature-label">all</label></div>`
2206
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-compliances" type="checkbox" ${this.selectedFeatures.indexOf('compliances') >= 0 ? 'checked' : ''} id="input-select-feature-compliances" part="input-select-feature" name="compliances"></input><label for="input-select-feature-compliances" class="input-select-feature-label" part="input-select-feature-label">compliances</label></div>`
2207
+ for (let [index, feature] of this.getFeatures().entries()) {
2208
+ console.log('rendering features statistics', feature, this.selectedFeatures);
2209
+ html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="radio" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" name="features" part="input-select-feature" value="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`;
2210
+ }
2211
+ html += '</div></div>';
2212
+ }
2213
+ html += '<button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
2200
2214
  html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span>&nbsp;&nbsp;Last Updated on ' + this.lastupdated + '</h6></div>';
2201
2215
  if (showGraph) {
2202
2216
  html += '<div class="chart-container d-flex scroll-x align-center"><div part="chart-item" class="chart-item"><canvas id="myChart"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart4" class="gone"></canvas></div><div part="chart-item chart-item-middle" class="chart-item"><canvas id="myChart2" class="gone"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart3" class="gone"></canvas></div></div>';
@@ -3677,38 +3691,37 @@ let SfIEvents = class SfIEvents extends LitElement {
3677
3691
  filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
3678
3692
  const filterList = eventsContainer.querySelector('#filter-list-container');
3679
3693
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
3680
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close');
3694
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close');
3681
3695
  const filterSubmitButton = filterList.querySelector('#button-submit-features');
3682
3696
  filterSubmitButton.addEventListener('click', () => {
3683
3697
  this.processDateSelection(eventsContainer);
3684
3698
  });
3685
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
3686
- selectFeatureAll.addEventListener('click', async (ev) => {
3687
- let target = ev.target;
3688
- if (target.checked) {
3689
- for (let feature of this.getFeatures()) {
3690
- if (this.selectedFeatures.indexOf(feature) < 0) {
3691
- this.selectedFeatures.push(feature);
3692
- }
3693
- }
3694
- }
3695
- else {
3696
- this.selectedFeatures = [];
3697
- }
3698
- const selectFeatures = filterList.querySelectorAll('.input-select-feature');
3699
- for (let selectFeature of selectFeatures) {
3700
- let id = selectFeature.id;
3701
- let i = id.split('-')[3];
3702
- let selectedFeature = this.getFeatures()[parseInt(i)];
3703
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
3704
- }
3705
- filterSubmitButton.style.visibility = 'visible';
3706
- });
3707
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
3708
- selectFeatureAllLabel.addEventListener('click', () => {
3709
- selectFeatureAll.checked = !selectFeatureAll.checked;
3710
- selectFeatureAll.click();
3711
- });
3699
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
3700
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
3701
+ // let target = ev.target;
3702
+ // if(target.checked){
3703
+ // for(let feature of this.getFeatures()){
3704
+ // if(this.selectedFeatures.indexOf(feature) < 0){
3705
+ // this.selectedFeatures.push(feature);
3706
+ // }
3707
+ // }
3708
+ // }else{
3709
+ // this.selectedFeatures = []
3710
+ // }
3711
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
3712
+ // for(let selectFeature of selectFeatures){
3713
+ // let id = selectFeature.id;
3714
+ // let i = id.split('-')[3];
3715
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
3716
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
3717
+ // }
3718
+ // filterSubmitButton.style.visibility = 'visible'
3719
+ // })
3720
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
3721
+ // selectFeatureAllLabel.addEventListener('click',()=>{
3722
+ // selectFeatureAll.checked = !selectFeatureAll.checked
3723
+ // selectFeatureAll.click();
3724
+ // })
3712
3725
  const selectFeatures = filterList.querySelectorAll('.input-select-feature');
3713
3726
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
3714
3727
  for (let [i, selectFeature] of selectFeatures.entries()) {
@@ -3719,16 +3732,18 @@ let SfIEvents = class SfIEvents extends LitElement {
3719
3732
  let selectedFeature = this.getFeatures()[index];
3720
3733
  if (target.checked) {
3721
3734
  if (this.selectedFeatures.indexOf(selectedFeature) < 0) {
3722
- this.selectedFeatures.push(selectedFeature);
3723
- }
3724
- }
3725
- else {
3726
- selectFeatureAll.checked = false;
3727
- if (this.selectedFeatures.indexOf(selectedFeature) >= 0) {
3728
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
3735
+ // this.selectedFeatures.push(selectedFeature)
3736
+ this.selectedFeatures = [selectedFeature];
3729
3737
  }
3730
3738
  }
3731
- filterSubmitButton.style.visibility = 'visible';
3739
+ // else{
3740
+ // // selectFeatureAll.checked = false;
3741
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
3742
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
3743
+ // }
3744
+ // }
3745
+ // filterSubmitButton.style.visibility = 'visible'
3746
+ filterSubmitButton.click();
3732
3747
  });
3733
3748
  selectFeatureLabels[i].addEventListener('click', () => {
3734
3749
  selectFeature.checked = !selectFeature.checked;
@@ -4291,6 +4306,70 @@ let SfIEvents = class SfIEvents extends LitElement {
4291
4306
  var html = this.renderStatistics(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'));
4292
4307
  eventsContainer.querySelector('.calendar-right-data').innerHTML = html;
4293
4308
  this.renderButtonRefresh(eventsContainer);
4309
+ const filterButton = eventsContainer.querySelector('#filter-button');
4310
+ filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
4311
+ const filterList = eventsContainer.querySelector('#filter-list-container');
4312
+ filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
4313
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close');
4314
+ const filterSubmitButton = filterList.querySelector('#button-submit-features');
4315
+ filterSubmitButton.addEventListener('click', () => {
4316
+ this.processDateSelectionViewer(eventsContainer);
4317
+ });
4318
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
4319
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
4320
+ // let target = ev.target;
4321
+ // if(target.checked){
4322
+ // for(let feature of this.getFeatures()){
4323
+ // if(this.selectedFeatures.indexOf(feature) < 0){
4324
+ // this.selectedFeatures.push(feature);
4325
+ // }
4326
+ // }
4327
+ // }else{
4328
+ // this.selectedFeatures = []
4329
+ // }
4330
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
4331
+ // for(let selectFeature of selectFeatures){
4332
+ // let id = selectFeature.id;
4333
+ // let i = id.split('-')[3];
4334
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
4335
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
4336
+ // }
4337
+ // filterSubmitButton.style.visibility = 'visible'
4338
+ // })
4339
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
4340
+ // selectFeatureAllLabel.addEventListener('click',()=>{
4341
+ // selectFeatureAll.checked = !selectFeatureAll.checked
4342
+ // selectFeatureAll.click();
4343
+ // })
4344
+ const selectFeatures = filterList.querySelectorAll('.input-select-feature');
4345
+ const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
4346
+ for (let [i, selectFeature] of selectFeatures.entries()) {
4347
+ selectFeature.addEventListener('click', (ev) => {
4348
+ let target = ev.target;
4349
+ let id = target.id;
4350
+ let index = id.split('-')[3];
4351
+ let selectedFeature = this.getFeatures()[index];
4352
+ if (target.checked) {
4353
+ if (this.selectedFeatures.indexOf(selectedFeature) < 0) {
4354
+ // this.selectedFeatures.push(selectedFeature)
4355
+ this.selectedFeatures = [selectedFeature];
4356
+ }
4357
+ }
4358
+ // else{
4359
+ // // selectFeatureAll.checked = false;
4360
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
4361
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
4362
+ // }
4363
+ // }
4364
+ // filterSubmitButton.style.visibility = 'visible'
4365
+ filterSubmitButton.click();
4366
+ });
4367
+ selectFeatureLabels[i].addEventListener('click', () => {
4368
+ selectFeature.checked = !selectFeature.checked;
4369
+ selectFeature.click();
4370
+ });
4371
+ }
4372
+ });
4294
4373
  // let innerhtml = eventsContainer.innerHTML;
4295
4374
  // innerhtml += this.renderSelectAllButtons();
4296
4375
  // eventsContainer.innerHTML = innerhtml
@@ -4762,7 +4841,8 @@ let SfIEvents = class SfIEvents extends LitElement {
4762
4841
  const tsEnd = new Date(valueEnd);
4763
4842
  tsStart.setDate(tsStart.getDate() - 2);
4764
4843
  tsEnd.setDate(tsEnd.getDate() + 2);
4765
- await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4844
+ await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4845
+ // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
4766
4846
  this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer);
4767
4847
  }
4768
4848
  else if (valueStart != "" && valueEnd == "") {
@@ -6738,7 +6818,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6738
6818
  filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
6739
6819
  const filterList = this._SfThisContainer.querySelector('#filter-list-container');
6740
6820
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
6741
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close');
6821
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close');
6742
6822
  const filterSubmitButton = filterList.querySelector('#button-submit-features');
6743
6823
  filterSubmitButton.addEventListener('click', async () => {
6744
6824
  const dateResult = this.calculateStartAndEndDateOfStream(index);
@@ -6751,33 +6831,32 @@ let SfIEvents = class SfIEvents extends LitElement {
6751
6831
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
6752
6832
  this.renderStream(index);
6753
6833
  });
6754
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
6755
- selectFeatureAll.addEventListener('click', async (ev) => {
6756
- let target = ev.target;
6757
- if (target.checked) {
6758
- for (let feature of this.getFeatures()) {
6759
- if (this.selectedFeatures.indexOf(feature) < 0) {
6760
- this.selectedFeatures.push(feature);
6761
- }
6762
- }
6763
- }
6764
- else {
6765
- this.selectedFeatures = [];
6766
- }
6767
- const selectFeatures = filterList.querySelectorAll('.input-select-feature');
6768
- for (let selectFeature of selectFeatures) {
6769
- let id = selectFeature.id;
6770
- let i = id.split('-')[3];
6771
- let selectedFeature = this.getFeatures()[parseInt(i)];
6772
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
6773
- }
6774
- filterSubmitButton.style.visibility = 'visible';
6775
- });
6776
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
6777
- selectFeatureAllLabel.addEventListener('click', () => {
6778
- selectFeatureAll.checked = !selectFeatureAll.checked;
6779
- selectFeatureAll.click();
6780
- });
6834
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
6835
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
6836
+ // let target = ev.target;
6837
+ // if(target.checked){
6838
+ // for(let feature of this.getFeatures()){
6839
+ // if(this.selectedFeatures.indexOf(feature) < 0){
6840
+ // this.selectedFeatures.push(feature);
6841
+ // }
6842
+ // }
6843
+ // }else{
6844
+ // this.selectedFeatures = []
6845
+ // }
6846
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6847
+ // for(let selectFeature of selectFeatures){
6848
+ // let id = selectFeature.id;
6849
+ // let i = id.split('-')[3];
6850
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
6851
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
6852
+ // }
6853
+ // filterSubmitButton.style.visibility = 'visible'
6854
+ // })
6855
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
6856
+ // selectFeatureAllLabel.addEventListener('click',()=>{
6857
+ // selectFeatureAll.checked = !selectFeatureAll.checked
6858
+ // selectFeatureAll.click();
6859
+ // })
6781
6860
  const selectFeatures = filterList.querySelectorAll('.input-select-feature');
6782
6861
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
6783
6862
  for (let [i, selectFeature] of selectFeatures.entries()) {
@@ -6788,16 +6867,18 @@ let SfIEvents = class SfIEvents extends LitElement {
6788
6867
  let selectedFeature = this.getFeatures()[i];
6789
6868
  if (target.checked) {
6790
6869
  if (this.selectedFeatures.indexOf(selectedFeature) < 0) {
6791
- this.selectedFeatures.push(selectedFeature);
6870
+ // this.selectedFeatures.push(selectedFeature)
6871
+ this.selectedFeatures = [selectedFeature];
6792
6872
  }
6793
6873
  }
6794
- else {
6795
- selectFeatureAll.checked = false;
6796
- if (this.selectedFeatures.indexOf(selectedFeature) >= 0) {
6797
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
6798
- }
6799
- }
6800
- filterSubmitButton.style.visibility = 'visible';
6874
+ // else{
6875
+ // // selectFeatureAll.checked = false;
6876
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
6877
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
6878
+ // }
6879
+ // }
6880
+ // filterSubmitButton.style.visibility = 'visible'
6881
+ filterSubmitButton.click();
6801
6882
  });
6802
6883
  selectFeatureLabels[i].addEventListener('click', () => {
6803
6884
  selectFeature.checked = !selectFeature.checked;
@@ -6919,7 +7000,8 @@ let SfIEvents = class SfIEvents extends LitElement {
6919
7000
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
6920
7001
  this.currentColumnIndex = index + "";
6921
7002
  const dateResult = this.calculateStartAndEndDateOfThis(index);
6922
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
7003
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
7004
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
6923
7005
  this.renderThis(index);
6924
7006
  });
6925
7007
  this.attachListReportingListeners(this._SfThisContainer);
@@ -7153,7 +7235,7 @@ let SfIEvents = class SfIEvents extends LitElement {
7153
7235
  filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
7154
7236
  const filterList = this._SfStreamContainer.querySelector('#filter-list-container');
7155
7237
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
7156
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close');
7238
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close');
7157
7239
  const filterSubmitButton = filterList.querySelector('#button-submit-features');
7158
7240
  filterSubmitButton.addEventListener('click', async () => {
7159
7241
  const dateResult = this.calculateStartAndEndDateOfStream(index);
@@ -7168,33 +7250,32 @@ let SfIEvents = class SfIEvents extends LitElement {
7168
7250
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
7169
7251
  this.renderStream(index);
7170
7252
  });
7171
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
7172
- selectFeatureAll.addEventListener('click', async (ev) => {
7173
- let target = ev.target;
7174
- if (target.checked) {
7175
- for (let feature of this.getFeatures()) {
7176
- if (this.selectedFeatures.indexOf(feature) < 0) {
7177
- this.selectedFeatures.push(feature);
7178
- }
7179
- }
7180
- }
7181
- else {
7182
- this.selectedFeatures = [];
7183
- }
7184
- const selectFeatures = filterList.querySelectorAll('.input-select-feature');
7185
- for (let selectFeature of selectFeatures) {
7186
- let id = selectFeature.id;
7187
- let i = id.split('-')[3];
7188
- let selectedFeature = this.getFeatures()[parseInt(i)];
7189
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
7190
- }
7191
- filterSubmitButton.style.visibility = 'visible';
7192
- });
7193
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
7194
- selectFeatureAllLabel.addEventListener('click', () => {
7195
- selectFeatureAll.checked = !selectFeatureAll.checked;
7196
- selectFeatureAll.click();
7197
- });
7253
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
7254
+ // selectFeatureAll?.addEventListener('click',async(ev: any) => {
7255
+ // let target = ev.target;
7256
+ // if(target.checked){
7257
+ // for(let feature of this.getFeatures()){
7258
+ // if(this.selectedFeatures.indexOf(feature) < 0){
7259
+ // this.selectedFeatures.push(feature);
7260
+ // }
7261
+ // }
7262
+ // }else{
7263
+ // this.selectedFeatures = []
7264
+ // }
7265
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
7266
+ // for(let selectFeature of selectFeatures){
7267
+ // let id = selectFeature.id;
7268
+ // let i = id.split('-')[3];
7269
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
7270
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
7271
+ // }
7272
+ // filterSubmitButton.style.visibility = 'visible'
7273
+ // })
7274
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
7275
+ // selectFeatureAllLabel?.addEventListener('click',()=>{
7276
+ // selectFeatureAll.checked = !selectFeatureAll.checked;
7277
+ // selectFeatureAll.click();
7278
+ // })
7198
7279
  const selectFeatures = filterList.querySelectorAll('.input-select-feature');
7199
7280
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
7200
7281
  for (let [i, selectFeature] of selectFeatures.entries()) {
@@ -7205,16 +7286,18 @@ let SfIEvents = class SfIEvents extends LitElement {
7205
7286
  let selectedFeature = this.getFeatures()[i];
7206
7287
  if (target.checked) {
7207
7288
  if (this.selectedFeatures.indexOf(selectedFeature) < 0) {
7208
- this.selectedFeatures.push(selectedFeature);
7209
- }
7210
- }
7211
- else {
7212
- selectFeatureAll.checked = false;
7213
- if (this.selectedFeatures.indexOf(selectedFeature) >= 0) {
7214
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
7289
+ // this.selectedFeatures.push(selectedFeature)
7290
+ this.selectedFeatures = [selectedFeature];
7215
7291
  }
7216
7292
  }
7217
- filterSubmitButton.style.visibility = 'visible';
7293
+ // else{
7294
+ // // selectFeatureAll.checked = false;
7295
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
7296
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
7297
+ // }
7298
+ // }
7299
+ // filterSubmitButton.style.visibility = 'visible'
7300
+ filterSubmitButton.click();
7218
7301
  });
7219
7302
  selectFeatureLabels[i].addEventListener('click', () => {
7220
7303
  selectFeature.checked = !selectFeature.checked;
@@ -7339,7 +7422,8 @@ let SfIEvents = class SfIEvents extends LitElement {
7339
7422
  console.log('dateresult', dateResult);
7340
7423
  this.currentColumnIndex = index + "";
7341
7424
  if (dateResult != null) {
7342
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7425
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7426
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
7343
7427
  }
7344
7428
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
7345
7429
  this.renderStream(index);
@@ -8218,7 +8302,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8218
8302
  <div class="box-large" id="shimmer-container-notices" part="shimmer-container-notices">
8219
8303
  </div>
8220
8304
  `;
8221
- html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
8305
+ html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
8222
8306
  html += '<div part="reporting-view-container">';
8223
8307
  html += this.renderReporting(listEvent, mmddyyyy);
8224
8308
  html += "</div>";
@@ -17437,9 +17521,9 @@ let SfIEvents = class SfIEvents extends LitElement {
17437
17521
  console.log('rendering appropriate string', list);
17438
17522
  this.renderAppropriateStream(startDate, endDate, list == "no");
17439
17523
  this.fetchBulkReportingData();
17440
- if (this.selectedFeatures.indexOf('notices') >= 0) {
17441
- this.fetchAndRenderNotices(startDate, endDate);
17442
- }
17524
+ // if(this.selectedFeatures.indexOf('notices') >= 0){
17525
+ // this.fetchAndRenderNotices(startDate, endDate);
17526
+ // }
17443
17527
  // this.events = {}
17444
17528
  // this.events = {...JSON.parse(JSON.stringify(jsonRespose.data.events))};
17445
17529
  // let lastEvaluatedKey = jsonRespose.lastEvaluatedKey;
@@ -17531,7 +17615,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17531
17615
  console.log('jsonRespose', jsonRespose);
17532
17616
  let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
17533
17617
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
17534
- // this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
17618
+ this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
17535
17619
  let tempEvents = this.events;
17536
17620
  for (let mmddyyyy of Object.keys(notices)) {
17537
17621
  tempEvents[mmddyyyy] = [...((_a = tempEvents[mmddyyyy]) !== null && _a !== void 0 ? _a : []), ...notices[mmddyyyy]];
@@ -17569,7 +17653,13 @@ let SfIEvents = class SfIEvents extends LitElement {
17569
17653
  sDate = startDate;
17570
17654
  eDate = endDate;
17571
17655
  }
17572
- let url = "https://" + this.apiId + "/" + path;
17656
+ let url = "";
17657
+ if (this.selectedFeatures.indexOf('compliances') >= 0) {
17658
+ url = "https://" + this.apiId + "/" + path;
17659
+ }
17660
+ else if (this.selectedFeatures.indexOf('notices') >= 0) {
17661
+ url = "https://" + this.apiIdNotices + "/" + path;
17662
+ }
17573
17663
  //console.log('fetch calendar url', url);
17574
17664
  let urlBody = { "projectid": this.projectId, "userid": this.userProfileId, "role": this.myRole, "sdate": sDate, "edate": eDate, "filtercriteria": filtercriteria };
17575
17665
  if (filtercriteria == 'function') {
@@ -18860,7 +18950,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18860
18950
  if (tempRole != "") {
18861
18951
  this._SfRoleTabContainer.innerHTML = '';
18862
18952
  }
18863
- this.selectedFeatures = this.getFeatures();
18953
+ // this.selectedFeatures = this.getFeatures()
18864
18954
  //console.log('stream received', this.stream, this.TAB_STREAM, this.TAB_YEAR);
18865
18955
  if (this.stream == this.TAB_YEAR) {
18866
18956
  this.renderTabs(this.TAB_YEAR);
@@ -1620,7 +1620,7 @@ export class SfIEvents extends LitElement {
1620
1620
  return ['compliances',...JSON.parse(this.features)]
1621
1621
  }
1622
1622
 
1623
- selectedFeatures: string[] = this.getFeatures()
1623
+ selectedFeatures: string[] = ['compliances']
1624
1624
 
1625
1625
  nextPage: number = 0;
1626
1626
 
@@ -4245,15 +4245,15 @@ export class SfIEvents extends LitElement {
4245
4245
  html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
4246
4246
  html += '<div class="align-center d-flex flex-wrap align-start justify-between mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title" class="m-0">' + parametersTitle + '</h4>'
4247
4247
  if(this.getFeatures().length > 1){
4248
- html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-icons">filter_list</button>'
4248
+ html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-symbols-outlined">category</button>'
4249
4249
  html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">'
4250
4250
  html += '<div id="filter-label-container" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible">check</button></div>'
4251
- html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
4252
- part="input-select-feature-label">all</label></div>`
4251
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
4252
+ // part="input-select-feature-label">all</label></div>`
4253
4253
  // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-compliances" type="checkbox" ${this.selectedFeatures.indexOf('compliances') >= 0 ? 'checked' : ''} id="input-select-feature-compliances" part="input-select-feature" name="compliances"></input><label for="input-select-feature-compliances" class="input-select-feature-label" part="input-select-feature-label">compliances</label></div>`
4254
4254
  for(let [index,feature] of this.getFeatures().entries()){
4255
4255
  console.log('rendering features', feature, this.selectedFeatures);
4256
- html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="checkbox" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" part="input-select-feature" name="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`
4256
+ html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="radio" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" name="features" part="input-select-feature" value="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`
4257
4257
  }
4258
4258
  html += '</div></div>'
4259
4259
  }
@@ -4309,7 +4309,21 @@ export class SfIEvents extends LitElement {
4309
4309
  var html = '';
4310
4310
 
4311
4311
  html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
4312
- html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
4312
+ html += '<div class="align-center justify-between d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4>'
4313
+ if(this.getFeatures().length > 1){
4314
+ html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-symbols-outlined">category</button>'
4315
+ html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-between align-start p-10" part="filter-list-container" anchor="filter-button">'
4316
+ html += '<div id="filter-label-container" class="filter-label-container d-flex justify-between align-center" part="filter-label-container"><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible">check</button></div>'
4317
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-all" type="checkbox" ${this.selectedFeatures.length >= (this.getFeatures().length) ? 'checked' : ''} id="input-select-feature-all" part="input-select-feature" name="all"></input><label for="input-select-feature-all" class="input-select-feature-label-all" id="input-select-feature-label-all"
4318
+ // part="input-select-feature-label">all</label></div>`
4319
+ // html += `<div class="filter-input-container d-flex"><input class="input-select-feature-compliances" type="checkbox" ${this.selectedFeatures.indexOf('compliances') >= 0 ? 'checked' : ''} id="input-select-feature-compliances" part="input-select-feature" name="compliances"></input><label for="input-select-feature-compliances" class="input-select-feature-label" part="input-select-feature-label">compliances</label></div>`
4320
+ for(let [index,feature] of this.getFeatures().entries()){
4321
+ console.log('rendering features statistics', feature, this.selectedFeatures);
4322
+ html += `<div class="filter-input-container d-flex"><input class="input-select-feature" type="radio" ${this.selectedFeatures.indexOf(feature) >= 0 ? 'checked' : ''} id="input-select-feature-${index}" name="features" part="input-select-feature" value="${feature}"></input><label for="input-select-feature-${index}" id="input-select-feature-label-${index}" class="input-select-feature-label" part="input-select-feature-label">${feature}</label></div>`
4323
+ }
4324
+ html += '</div></div>'
4325
+ }
4326
+ html +='<button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
4313
4327
  html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span>&nbsp;&nbsp;Last Updated on ' + this.lastupdated + '</h6></div>';
4314
4328
  if(showGraph) {
4315
4329
  html += '<div class="chart-container d-flex scroll-x align-center"><div part="chart-item" class="chart-item"><canvas id="myChart"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart4" class="gone"></canvas></div><div part="chart-item chart-item-middle" class="chart-item"><canvas id="myChart2" class="gone"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart3" class="gone"></canvas></div></div>';
@@ -6078,37 +6092,37 @@ export class SfIEvents extends LitElement {
6078
6092
  filterButton?.addEventListener('click',() => {
6079
6093
  const filterList = eventsContainer.querySelector('#filter-list-container') as HTMLDivElement
6080
6094
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
6081
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close')
6095
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close')
6082
6096
  const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
6083
6097
  filterSubmitButton.addEventListener('click',() => {
6084
6098
  this.processDateSelection(eventsContainer);
6085
6099
  })
6086
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
6087
- selectFeatureAll.addEventListener('click',async(ev: any) => {
6088
- let target = ev.target;
6089
- if(target.checked){
6090
- for(let feature of this.getFeatures()){
6091
- if(this.selectedFeatures.indexOf(feature) < 0){
6092
- this.selectedFeatures.push(feature);
6093
- }
6094
- }
6095
- }else{
6096
- this.selectedFeatures = []
6097
- }
6098
- const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6099
- for(let selectFeature of selectFeatures){
6100
- let id = selectFeature.id;
6101
- let i = id.split('-')[3];
6102
- let selectedFeature = this.getFeatures()[parseInt(i)]
6103
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
6104
- }
6105
- filterSubmitButton.style.visibility = 'visible'
6106
- })
6107
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
6108
- selectFeatureAllLabel.addEventListener('click',()=>{
6109
- selectFeatureAll.checked = !selectFeatureAll.checked
6110
- selectFeatureAll.click();
6111
- })
6100
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
6101
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
6102
+ // let target = ev.target;
6103
+ // if(target.checked){
6104
+ // for(let feature of this.getFeatures()){
6105
+ // if(this.selectedFeatures.indexOf(feature) < 0){
6106
+ // this.selectedFeatures.push(feature);
6107
+ // }
6108
+ // }
6109
+ // }else{
6110
+ // this.selectedFeatures = []
6111
+ // }
6112
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6113
+ // for(let selectFeature of selectFeatures){
6114
+ // let id = selectFeature.id;
6115
+ // let i = id.split('-')[3];
6116
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
6117
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
6118
+ // }
6119
+ // filterSubmitButton.style.visibility = 'visible'
6120
+ // })
6121
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
6122
+ // selectFeatureAllLabel.addEventListener('click',()=>{
6123
+ // selectFeatureAll.checked = !selectFeatureAll.checked
6124
+ // selectFeatureAll.click();
6125
+ // })
6112
6126
  const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6113
6127
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
6114
6128
  for(let [i,selectFeature] of selectFeatures.entries()){
@@ -6119,15 +6133,18 @@ export class SfIEvents extends LitElement {
6119
6133
  let selectedFeature = this.getFeatures()[index]
6120
6134
  if(target.checked){
6121
6135
  if(this.selectedFeatures.indexOf(selectedFeature) < 0){
6122
- this.selectedFeatures.push(selectedFeature)
6123
- }
6124
- }else{
6125
- selectFeatureAll.checked = false;
6126
- if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
6127
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
6136
+ // this.selectedFeatures.push(selectedFeature)
6137
+ this.selectedFeatures = [selectedFeature]
6128
6138
  }
6129
6139
  }
6130
- filterSubmitButton.style.visibility = 'visible'
6140
+ // else{
6141
+ // // selectFeatureAll.checked = false;
6142
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
6143
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
6144
+ // }
6145
+ // }
6146
+ // filterSubmitButton.style.visibility = 'visible'
6147
+ filterSubmitButton.click();
6131
6148
  })
6132
6149
  selectFeatureLabels[i].addEventListener('click',() => {
6133
6150
  selectFeature.checked = !selectFeature.checked
@@ -6799,6 +6816,70 @@ export class SfIEvents extends LitElement {
6799
6816
 
6800
6817
  eventsContainer.querySelector('.calendar-right-data')!.innerHTML = html;
6801
6818
  this.renderButtonRefresh(eventsContainer);
6819
+ const filterButton = eventsContainer.querySelector('#filter-button') as HTMLButtonElement
6820
+ filterButton?.addEventListener('click',() => {
6821
+ const filterList = eventsContainer.querySelector('#filter-list-container') as HTMLDivElement
6822
+ filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
6823
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close')
6824
+ const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
6825
+ filterSubmitButton.addEventListener('click',() => {
6826
+ this.processDateSelectionViewer(eventsContainer);
6827
+ })
6828
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
6829
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
6830
+ // let target = ev.target;
6831
+ // if(target.checked){
6832
+ // for(let feature of this.getFeatures()){
6833
+ // if(this.selectedFeatures.indexOf(feature) < 0){
6834
+ // this.selectedFeatures.push(feature);
6835
+ // }
6836
+ // }
6837
+ // }else{
6838
+ // this.selectedFeatures = []
6839
+ // }
6840
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6841
+ // for(let selectFeature of selectFeatures){
6842
+ // let id = selectFeature.id;
6843
+ // let i = id.split('-')[3];
6844
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
6845
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
6846
+ // }
6847
+ // filterSubmitButton.style.visibility = 'visible'
6848
+ // })
6849
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
6850
+ // selectFeatureAllLabel.addEventListener('click',()=>{
6851
+ // selectFeatureAll.checked = !selectFeatureAll.checked
6852
+ // selectFeatureAll.click();
6853
+ // })
6854
+ const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
6855
+ const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
6856
+ for(let [i,selectFeature] of selectFeatures.entries()){
6857
+ selectFeature.addEventListener('click',(ev: any) => {
6858
+ let target = ev.target;
6859
+ let id = target.id;
6860
+ let index = id.split('-')[3];
6861
+ let selectedFeature = this.getFeatures()[index]
6862
+ if(target.checked){
6863
+ if(this.selectedFeatures.indexOf(selectedFeature) < 0){
6864
+ // this.selectedFeatures.push(selectedFeature)
6865
+ this.selectedFeatures = [selectedFeature]
6866
+ }
6867
+ }
6868
+ // else{
6869
+ // // selectFeatureAll.checked = false;
6870
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
6871
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
6872
+ // }
6873
+ // }
6874
+ // filterSubmitButton.style.visibility = 'visible'
6875
+ filterSubmitButton.click();
6876
+ })
6877
+ selectFeatureLabels[i].addEventListener('click',() => {
6878
+ selectFeature.checked = !selectFeature.checked
6879
+ selectFeature.click();
6880
+ })
6881
+ }
6882
+ })
6802
6883
  // let innerhtml = eventsContainer.innerHTML;
6803
6884
  // innerhtml += this.renderSelectAllButtons();
6804
6885
  // eventsContainer.innerHTML = innerhtml
@@ -7370,7 +7451,8 @@ export class SfIEvents extends LitElement {
7370
7451
  tsStart.setDate(tsStart.getDate() - 2);
7371
7452
  tsEnd.setDate(tsEnd.getDate() + 2);
7372
7453
 
7373
- await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7454
+ await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
7455
+ // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7374
7456
  this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement));
7375
7457
  } else if(valueStart != "" && valueEnd == "") {
7376
7458
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
@@ -9798,7 +9880,7 @@ export class SfIEvents extends LitElement {
9798
9880
  filterButton?.addEventListener('click',() => {
9799
9881
  const filterList = (this._SfThisContainer as HTMLDivElement).querySelector('#filter-list-container') as HTMLDivElement
9800
9882
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
9801
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close')
9883
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close')
9802
9884
  const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
9803
9885
  filterSubmitButton.addEventListener('click',async() => {
9804
9886
  const dateResult = this.calculateStartAndEndDateOfStream(index);
@@ -9811,32 +9893,32 @@ export class SfIEvents extends LitElement {
9811
9893
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
9812
9894
  this.renderStream(index);
9813
9895
  })
9814
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
9815
- selectFeatureAll.addEventListener('click',async(ev: any) => {
9816
- let target = ev.target;
9817
- if(target.checked){
9818
- for(let feature of this.getFeatures()){
9819
- if(this.selectedFeatures.indexOf(feature) < 0){
9820
- this.selectedFeatures.push(feature);
9821
- }
9822
- }
9823
- }else{
9824
- this.selectedFeatures = []
9825
- }
9826
- const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
9827
- for(let selectFeature of selectFeatures){
9828
- let id = selectFeature.id;
9829
- let i = id.split('-')[3];
9830
- let selectedFeature = this.getFeatures()[parseInt(i)]
9831
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
9832
- }
9833
- filterSubmitButton.style.visibility = 'visible'
9834
- })
9835
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
9836
- selectFeatureAllLabel.addEventListener('click',()=>{
9837
- selectFeatureAll.checked = !selectFeatureAll.checked
9838
- selectFeatureAll.click();
9839
- })
9896
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
9897
+ // selectFeatureAll.addEventListener('click',async(ev: any) => {
9898
+ // let target = ev.target;
9899
+ // if(target.checked){
9900
+ // for(let feature of this.getFeatures()){
9901
+ // if(this.selectedFeatures.indexOf(feature) < 0){
9902
+ // this.selectedFeatures.push(feature);
9903
+ // }
9904
+ // }
9905
+ // }else{
9906
+ // this.selectedFeatures = []
9907
+ // }
9908
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
9909
+ // for(let selectFeature of selectFeatures){
9910
+ // let id = selectFeature.id;
9911
+ // let i = id.split('-')[3];
9912
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
9913
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
9914
+ // }
9915
+ // filterSubmitButton.style.visibility = 'visible'
9916
+ // })
9917
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
9918
+ // selectFeatureAllLabel.addEventListener('click',()=>{
9919
+ // selectFeatureAll.checked = !selectFeatureAll.checked
9920
+ // selectFeatureAll.click();
9921
+ // })
9840
9922
  const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
9841
9923
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
9842
9924
  for(let [i,selectFeature] of selectFeatures.entries()){
@@ -9847,15 +9929,18 @@ export class SfIEvents extends LitElement {
9847
9929
  let selectedFeature = this.getFeatures()[i]
9848
9930
  if(target.checked){
9849
9931
  if(this.selectedFeatures.indexOf(selectedFeature) < 0){
9850
- this.selectedFeatures.push(selectedFeature)
9851
- }
9852
- }else{
9853
- selectFeatureAll.checked = false;
9854
- if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
9855
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
9932
+ // this.selectedFeatures.push(selectedFeature)
9933
+ this.selectedFeatures = [selectedFeature]
9856
9934
  }
9857
9935
  }
9858
- filterSubmitButton.style.visibility = 'visible'
9936
+ // else{
9937
+ // // selectFeatureAll.checked = false;
9938
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
9939
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
9940
+ // }
9941
+ // }
9942
+ // filterSubmitButton.style.visibility = 'visible'
9943
+ filterSubmitButton.click();
9859
9944
  })
9860
9945
  selectFeatureLabels[i].addEventListener('click',() => {
9861
9946
  selectFeature.checked = !selectFeature.checked
@@ -10023,7 +10108,8 @@ export class SfIEvents extends LitElement {
10023
10108
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10024
10109
  this.currentColumnIndex = index + "";
10025
10110
  const dateResult = this.calculateStartAndEndDateOfThis(index);
10026
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
10111
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
10112
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
10027
10113
  this.renderThis(index);
10028
10114
  })
10029
10115
  this.attachListReportingListeners(this._SfThisContainer as HTMLDivElement);
@@ -10308,7 +10394,7 @@ export class SfIEvents extends LitElement {
10308
10394
  filterButton?.addEventListener('click',() => {
10309
10395
  const filterList = (this._SfStreamContainer as HTMLDivElement).querySelector('#filter-list-container') as HTMLDivElement
10310
10396
  filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
10311
- filterButton.innerHTML = (filterList.style.display != 'block' ? 'filter_list' : 'close')
10397
+ filterButton.innerHTML = (filterList.style.display != 'block' ? 'category' : 'close')
10312
10398
  const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
10313
10399
  filterSubmitButton.addEventListener('click',async() => {
10314
10400
  const dateResult = this.calculateStartAndEndDateOfStream(index);
@@ -10323,32 +10409,32 @@ export class SfIEvents extends LitElement {
10323
10409
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10324
10410
  this.renderStream(index);
10325
10411
  })
10326
- const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
10327
- selectFeatureAll.addEventListener('click',async(ev: any) => {
10328
- let target = ev.target;
10329
- if(target.checked){
10330
- for(let feature of this.getFeatures()){
10331
- if(this.selectedFeatures.indexOf(feature) < 0){
10332
- this.selectedFeatures.push(feature);
10333
- }
10334
- }
10335
- }else{
10336
- this.selectedFeatures = []
10337
- }
10338
- const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
10339
- for(let selectFeature of selectFeatures){
10340
- let id = selectFeature.id;
10341
- let i = id.split('-')[3];
10342
- let selectedFeature = this.getFeatures()[parseInt(i)]
10343
- selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
10344
- }
10345
- filterSubmitButton.style.visibility = 'visible'
10346
- })
10347
- const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
10348
- selectFeatureAllLabel.addEventListener('click',()=>{
10349
- selectFeatureAll.checked = !selectFeatureAll.checked;
10350
- selectFeatureAll.click();
10351
- })
10412
+ // const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
10413
+ // selectFeatureAll?.addEventListener('click',async(ev: any) => {
10414
+ // let target = ev.target;
10415
+ // if(target.checked){
10416
+ // for(let feature of this.getFeatures()){
10417
+ // if(this.selectedFeatures.indexOf(feature) < 0){
10418
+ // this.selectedFeatures.push(feature);
10419
+ // }
10420
+ // }
10421
+ // }else{
10422
+ // this.selectedFeatures = []
10423
+ // }
10424
+ // const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
10425
+ // for(let selectFeature of selectFeatures){
10426
+ // let id = selectFeature.id;
10427
+ // let i = id.split('-')[3];
10428
+ // let selectedFeature = this.getFeatures()[parseInt(i)]
10429
+ // selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
10430
+ // }
10431
+ // filterSubmitButton.style.visibility = 'visible'
10432
+ // })
10433
+ // const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
10434
+ // selectFeatureAllLabel?.addEventListener('click',()=>{
10435
+ // selectFeatureAll.checked = !selectFeatureAll.checked;
10436
+ // selectFeatureAll.click();
10437
+ // })
10352
10438
  const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
10353
10439
  const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
10354
10440
  for(let [i,selectFeature] of selectFeatures.entries()){
@@ -10359,16 +10445,18 @@ export class SfIEvents extends LitElement {
10359
10445
  let selectedFeature = this.getFeatures()[i]
10360
10446
  if(target.checked){
10361
10447
  if(this.selectedFeatures.indexOf(selectedFeature) < 0){
10362
- this.selectedFeatures.push(selectedFeature)
10363
- }
10364
- }else{
10365
- selectFeatureAll.checked = false;
10366
- if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
10367
- this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
10448
+ // this.selectedFeatures.push(selectedFeature)
10449
+ this.selectedFeatures = [selectedFeature]
10368
10450
  }
10369
10451
  }
10370
- filterSubmitButton.style.visibility = 'visible'
10371
-
10452
+ // else{
10453
+ // // selectFeatureAll.checked = false;
10454
+ // if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
10455
+ // this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
10456
+ // }
10457
+ // }
10458
+ // filterSubmitButton.style.visibility = 'visible'
10459
+ filterSubmitButton.click();
10372
10460
  })
10373
10461
  selectFeatureLabels[i].addEventListener('click',() => {
10374
10462
  selectFeature.checked = !selectFeature.checked
@@ -10541,7 +10629,8 @@ export class SfIEvents extends LitElement {
10541
10629
  console.log('dateresult', dateResult);
10542
10630
  this.currentColumnIndex = index + "";
10543
10631
  if(dateResult != null) {
10544
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10632
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10633
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10545
10634
  }
10546
10635
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10547
10636
  this.renderStream(index);
@@ -11688,7 +11777,7 @@ export class SfIEvents extends LitElement {
11688
11777
  <div class="box-large" id="shimmer-container-notices" part="shimmer-container-notices">
11689
11778
  </div>
11690
11779
  `
11691
- html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
11780
+ html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-date:reporting-input-date, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-date:reporting-reporting-input-date, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head" name="Notice Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdNotices + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
11692
11781
 
11693
11782
  html += '<div part="reporting-view-container">'
11694
11783
  html += this.renderReporting(listEvent, mmddyyyy);
@@ -23433,9 +23522,9 @@ export class SfIEvents extends LitElement {
23433
23522
  console.log('rendering appropriate string', list);
23434
23523
  this.renderAppropriateStream(startDate, endDate, list == "no");
23435
23524
  this.fetchBulkReportingData();
23436
- if(this.selectedFeatures.indexOf('notices') >= 0){
23437
- this.fetchAndRenderNotices(startDate, endDate);
23438
- }
23525
+ // if(this.selectedFeatures.indexOf('notices') >= 0){
23526
+ // this.fetchAndRenderNotices(startDate, endDate);
23527
+ // }
23439
23528
  // this.events = {}
23440
23529
  // this.events = {...JSON.parse(JSON.stringify(jsonRespose.data.events))};
23441
23530
 
@@ -23562,7 +23651,7 @@ export class SfIEvents extends LitElement {
23562
23651
  console.log('jsonRespose', jsonRespose);
23563
23652
  let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
23564
23653
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
23565
- // this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
23654
+ this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
23566
23655
  let tempEvents = this.events
23567
23656
  for(let mmddyyyy of Object.keys(notices)){
23568
23657
  tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []),...notices[mmddyyyy]]
@@ -23609,8 +23698,12 @@ export class SfIEvents extends LitElement {
23609
23698
  eDate = endDate;
23610
23699
  }
23611
23700
 
23612
-
23613
- let url = "https://"+this.apiId+"/"+ path;
23701
+ let url = ""
23702
+ if(this.selectedFeatures.indexOf('compliances') >= 0){
23703
+ url = "https://"+this.apiId+"/"+ path;
23704
+ }else if(this.selectedFeatures.indexOf('notices') >= 0){
23705
+ url = "https://"+this.apiIdNotices+"/"+ path;
23706
+ }
23614
23707
 
23615
23708
  //console.log('fetch calendar url', url);
23616
23709
  let urlBody :any = {"projectid": this.projectId, "userid": this.userProfileId, "role": this.myRole, "sdate": sDate, "edate": eDate,"filtercriteria": filtercriteria};
@@ -25147,7 +25240,7 @@ export class SfIEvents extends LitElement {
25147
25240
  if(tempRole != "") {
25148
25241
  this._SfRoleTabContainer.innerHTML = '';
25149
25242
  }
25150
- this.selectedFeatures = this.getFeatures()
25243
+ // this.selectedFeatures = this.getFeatures()
25151
25244
  //console.log('stream received', this.stream, this.TAB_STREAM, this.TAB_YEAR);
25152
25245
 
25153
25246
  if(this.stream == this.TAB_YEAR) {