sf-i-events 1.0.753 → 1.0.755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sf-i-events.js +101 -64
- package/src/sf-i-events.ts +100 -65
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2138,14 +2138,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2138
2138
|
var html = '';
|
|
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
|
-
if (this.getFeatures().length >
|
|
2141
|
+
if (this.getFeatures().length > 1) {
|
|
2142
2142
|
html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-icons">filter_list</button>';
|
|
2143
|
-
html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-
|
|
2144
|
-
html +=
|
|
2145
|
-
|
|
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
|
+
html += '<div id="filter-label-container" class="filter-label-container d-flex justify-center align-center" part="filter-label-container"><button part="button-icon-small" class="material-icons button-expand mr-10 invisible">check</button><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible ml-10">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>`;
|
|
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>`
|
|
2146
2148
|
for (let [index, feature] of this.getFeatures().entries()) {
|
|
2147
2149
|
console.log('rendering features', feature, this.selectedFeatures);
|
|
2148
|
-
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}" class="input-select-feature-label" part="input-
|
|
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>`;
|
|
2149
2151
|
}
|
|
2150
2152
|
html += '</div></div>';
|
|
2151
2153
|
}
|
|
@@ -3675,8 +3677,40 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3675
3677
|
filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
|
|
3676
3678
|
const filterList = eventsContainer.querySelector('#filter-list-container');
|
|
3677
3679
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
|
|
3680
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features');
|
|
3681
|
+
filterSubmitButton.addEventListener('click', () => {
|
|
3682
|
+
this.processDateSelection(eventsContainer);
|
|
3683
|
+
});
|
|
3684
|
+
const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
|
|
3685
|
+
selectFeatureAll.addEventListener('click', async (ev) => {
|
|
3686
|
+
let target = ev.target;
|
|
3687
|
+
if (target.checked) {
|
|
3688
|
+
for (let feature of this.getFeatures()) {
|
|
3689
|
+
if (this.selectedFeatures.indexOf(feature) < 0) {
|
|
3690
|
+
this.selectedFeatures.push(feature);
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
}
|
|
3694
|
+
else {
|
|
3695
|
+
this.selectedFeatures = [];
|
|
3696
|
+
}
|
|
3697
|
+
const selectFeatures = filterList.querySelectorAll('.input-select-feature');
|
|
3698
|
+
for (let selectFeature of selectFeatures) {
|
|
3699
|
+
let id = selectFeature.id;
|
|
3700
|
+
let i = id.split('-')[3];
|
|
3701
|
+
let selectedFeature = this.getFeatures()[parseInt(i)];
|
|
3702
|
+
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
|
|
3703
|
+
}
|
|
3704
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
3705
|
+
});
|
|
3706
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
|
|
3707
|
+
selectFeatureAllLabel.addEventListener('click', () => {
|
|
3708
|
+
selectFeatureAll.checked = !selectFeatureAll.checked;
|
|
3709
|
+
selectFeatureAll.click();
|
|
3710
|
+
});
|
|
3678
3711
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature');
|
|
3679
|
-
|
|
3712
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
|
|
3713
|
+
for (let [i, selectFeature] of selectFeatures.entries()) {
|
|
3680
3714
|
selectFeature.addEventListener('click', (ev) => {
|
|
3681
3715
|
let target = ev.target;
|
|
3682
3716
|
let id = target.id;
|
|
@@ -3692,29 +3726,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3692
3726
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
|
|
3693
3727
|
}
|
|
3694
3728
|
}
|
|
3695
|
-
|
|
3729
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
3730
|
+
});
|
|
3731
|
+
selectFeatureLabels[i].addEventListener('click', () => {
|
|
3732
|
+
selectFeature.checked = !selectFeature.checked;
|
|
3733
|
+
selectFeature.click();
|
|
3696
3734
|
});
|
|
3697
3735
|
}
|
|
3698
3736
|
});
|
|
3699
|
-
// const selectFeatures = eventsContainer.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
3700
|
-
// for(let selectFeature of selectFeatures){
|
|
3701
|
-
// selectFeature.addEventListener('click',(ev: any) => {
|
|
3702
|
-
// let target = ev.target;
|
|
3703
|
-
// let id = target.id;
|
|
3704
|
-
// let index = id.split('-')[3];
|
|
3705
|
-
// let selectedFeature = this.getFeatures()[index]
|
|
3706
|
-
// if(target.checked){
|
|
3707
|
-
// if(this.selectedFeatures.indexOf(selectedFeature) < 0){
|
|
3708
|
-
// this.selectedFeatures.push(selectedFeature)
|
|
3709
|
-
// }
|
|
3710
|
-
// }else{
|
|
3711
|
-
// if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
|
|
3712
|
-
// this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
|
|
3713
|
-
// }
|
|
3714
|
-
// }
|
|
3715
|
-
// this.processDateSelection(eventsContainer)
|
|
3716
|
-
// })
|
|
3717
|
-
// }
|
|
3718
3737
|
const radioExpander = eventsContainer.querySelector('#graph-radios-expander');
|
|
3719
3738
|
radioExpander === null || radioExpander === void 0 ? void 0 : radioExpander.addEventListener('click', (e) => {
|
|
3720
3739
|
const button = e.currentTarget;
|
|
@@ -6717,6 +6736,18 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6717
6736
|
filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
|
|
6718
6737
|
const filterList = this._SfThisContainer.querySelector('#filter-list-container');
|
|
6719
6738
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
|
|
6739
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features');
|
|
6740
|
+
filterSubmitButton.addEventListener('click', async () => {
|
|
6741
|
+
const dateResult = this.calculateStartAndEndDateOfStream(index);
|
|
6742
|
+
console.log('dateresult', dateResult, index);
|
|
6743
|
+
console.log('selectedfeatures', this.selectedFeatures);
|
|
6744
|
+
this.currentColumnIndex = index + "";
|
|
6745
|
+
if (dateResult != null) {
|
|
6746
|
+
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
|
|
6747
|
+
}
|
|
6748
|
+
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
6749
|
+
this.renderStream(index);
|
|
6750
|
+
});
|
|
6720
6751
|
const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
|
|
6721
6752
|
selectFeatureAll.addEventListener('click', async (ev) => {
|
|
6722
6753
|
let target = ev.target;
|
|
@@ -6737,18 +6768,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6737
6768
|
let selectedFeature = this.getFeatures()[parseInt(i)];
|
|
6738
6769
|
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
|
|
6739
6770
|
}
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
}
|
|
6747
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
6748
|
-
this.renderStream(index);
|
|
6771
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
6772
|
+
});
|
|
6773
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
|
|
6774
|
+
selectFeatureAllLabel.addEventListener('click', () => {
|
|
6775
|
+
selectFeatureAll.checked = !selectFeatureAll.checked;
|
|
6776
|
+
selectFeatureAll.click();
|
|
6749
6777
|
});
|
|
6750
6778
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature');
|
|
6751
|
-
|
|
6779
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
|
|
6780
|
+
for (let [i, selectFeature] of selectFeatures.entries()) {
|
|
6752
6781
|
selectFeature.addEventListener('click', async (ev) => {
|
|
6753
6782
|
let target = ev.target;
|
|
6754
6783
|
let id = target.id;
|
|
@@ -6764,13 +6793,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6764
6793
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
|
|
6765
6794
|
}
|
|
6766
6795
|
}
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
6773
|
-
this.renderStream(index);
|
|
6796
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
6797
|
+
});
|
|
6798
|
+
selectFeatureLabels[i].addEventListener('click', () => {
|
|
6799
|
+
selectFeature.checked = !selectFeature.checked;
|
|
6800
|
+
selectFeature.click();
|
|
6774
6801
|
});
|
|
6775
6802
|
}
|
|
6776
6803
|
});
|
|
@@ -7122,6 +7149,20 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7122
7149
|
filterButton === null || filterButton === void 0 ? void 0 : filterButton.addEventListener('click', () => {
|
|
7123
7150
|
const filterList = this._SfStreamContainer.querySelector('#filter-list-container');
|
|
7124
7151
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none');
|
|
7152
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features');
|
|
7153
|
+
filterSubmitButton.addEventListener('click', async () => {
|
|
7154
|
+
const dateResult = this.calculateStartAndEndDateOfStream(index);
|
|
7155
|
+
const monthResult = this.calculateMonthFromIndex(index);
|
|
7156
|
+
console.log('monthResult', monthResult);
|
|
7157
|
+
console.log('dateresult', dateResult, index);
|
|
7158
|
+
console.log('selectedfeatures', this.selectedFeatures);
|
|
7159
|
+
this.currentColumnIndex = index + "";
|
|
7160
|
+
if (dateResult != null) {
|
|
7161
|
+
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "no", ("0" + monthResult).slice(-2));
|
|
7162
|
+
}
|
|
7163
|
+
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
7164
|
+
this.renderStream(index);
|
|
7165
|
+
});
|
|
7125
7166
|
const selectFeatureAll = filterList.querySelector('.input-select-feature-all');
|
|
7126
7167
|
selectFeatureAll.addEventListener('click', async (ev) => {
|
|
7127
7168
|
let target = ev.target;
|
|
@@ -7142,20 +7183,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7142
7183
|
let selectedFeature = this.getFeatures()[parseInt(i)];
|
|
7143
7184
|
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0;
|
|
7144
7185
|
}
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
if (dateResult != null) {
|
|
7152
|
-
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "no", ("0" + monthResult).slice(-2));
|
|
7153
|
-
}
|
|
7154
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
7155
|
-
this.renderStream(index);
|
|
7186
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
7187
|
+
});
|
|
7188
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all');
|
|
7189
|
+
selectFeatureAllLabel.addEventListener('click', () => {
|
|
7190
|
+
selectFeatureAll.checked = !selectFeatureAll.checked;
|
|
7191
|
+
selectFeatureAll.click();
|
|
7156
7192
|
});
|
|
7157
7193
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature');
|
|
7158
|
-
|
|
7194
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label');
|
|
7195
|
+
for (let [i, selectFeature] of selectFeatures.entries()) {
|
|
7159
7196
|
selectFeature.addEventListener('click', async (ev) => {
|
|
7160
7197
|
let target = ev.target;
|
|
7161
7198
|
let id = target.id;
|
|
@@ -7171,15 +7208,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7171
7208
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature), 1);
|
|
7172
7209
|
}
|
|
7173
7210
|
}
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "no", ("0" + monthResult).slice(-2));
|
|
7180
|
-
}
|
|
7181
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
7182
|
-
this.renderStream(index);
|
|
7211
|
+
filterSubmitButton.style.visibility = 'visible';
|
|
7212
|
+
});
|
|
7213
|
+
selectFeatureLabels[i].addEventListener('click', () => {
|
|
7214
|
+
selectFeature.checked = !selectFeature.checked;
|
|
7215
|
+
selectFeature.click();
|
|
7183
7216
|
});
|
|
7184
7217
|
}
|
|
7185
7218
|
});
|
|
@@ -20381,6 +20414,10 @@ SfIEvents.styles = css `
|
|
|
20381
20414
|
border-radius: 5px
|
|
20382
20415
|
}
|
|
20383
20416
|
|
|
20417
|
+
.filter-button-container{
|
|
20418
|
+
position: relative;
|
|
20419
|
+
}
|
|
20420
|
+
|
|
20384
20421
|
@media (orientation: landscape) {
|
|
20385
20422
|
|
|
20386
20423
|
.lb {
|
package/src/sf-i-events.ts
CHANGED
|
@@ -2650,6 +2650,10 @@ export class SfIEvents extends LitElement {
|
|
|
2650
2650
|
border-radius: 5px
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
|
+
.filter-button-container{
|
|
2654
|
+
position: relative;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2653
2657
|
@media (orientation: landscape) {
|
|
2654
2658
|
|
|
2655
2659
|
.lb {
|
|
@@ -4228,14 +4232,16 @@ export class SfIEvents extends LitElement {
|
|
|
4228
4232
|
|
|
4229
4233
|
html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
|
|
4230
4234
|
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>'
|
|
4231
|
-
if(this.getFeatures().length >
|
|
4235
|
+
if(this.getFeatures().length > 1){
|
|
4232
4236
|
html += '<div class="filter-button-container"><button part="button-icon" id="filter-button" class="material-icons">filter_list</button>'
|
|
4233
|
-
html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-
|
|
4234
|
-
html +=
|
|
4235
|
-
|
|
4237
|
+
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">'
|
|
4238
|
+
html += '<div id="filter-label-container" class="filter-label-container d-flex justify-center align-center" part="filter-label-container"><button part="button-icon-small" class="material-icons button-expand mr-10 invisible">check</button><label class="filter-label" part="filter-label">Filters</label><button id="button-submit-features" part="button-icon-small" class="material-icons button-expand invisible ml-10">check</button></div>'
|
|
4239
|
+
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"
|
|
4240
|
+
part="input-select-feature-label">all</label></div>`
|
|
4241
|
+
// 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>`
|
|
4236
4242
|
for(let [index,feature] of this.getFeatures().entries()){
|
|
4237
4243
|
console.log('rendering features', feature, this.selectedFeatures);
|
|
4238
|
-
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}" class="input-select-feature-label" part="input-
|
|
4244
|
+
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>`
|
|
4239
4245
|
}
|
|
4240
4246
|
html += '</div></div>'
|
|
4241
4247
|
}
|
|
@@ -6060,8 +6066,39 @@ export class SfIEvents extends LitElement {
|
|
|
6060
6066
|
filterButton?.addEventListener('click',() => {
|
|
6061
6067
|
const filterList = eventsContainer.querySelector('#filter-list-container') as HTMLDivElement
|
|
6062
6068
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
|
|
6069
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
|
|
6070
|
+
filterSubmitButton.addEventListener('click',() => {
|
|
6071
|
+
this.processDateSelection(eventsContainer);
|
|
6072
|
+
})
|
|
6073
|
+
const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
|
|
6074
|
+
selectFeatureAll.addEventListener('click',async(ev: any) => {
|
|
6075
|
+
let target = ev.target;
|
|
6076
|
+
if(target.checked){
|
|
6077
|
+
for(let feature of this.getFeatures()){
|
|
6078
|
+
if(this.selectedFeatures.indexOf(feature) < 0){
|
|
6079
|
+
this.selectedFeatures.push(feature);
|
|
6080
|
+
}
|
|
6081
|
+
}
|
|
6082
|
+
}else{
|
|
6083
|
+
this.selectedFeatures = []
|
|
6084
|
+
}
|
|
6085
|
+
const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
6086
|
+
for(let selectFeature of selectFeatures){
|
|
6087
|
+
let id = selectFeature.id;
|
|
6088
|
+
let i = id.split('-')[3];
|
|
6089
|
+
let selectedFeature = this.getFeatures()[parseInt(i)]
|
|
6090
|
+
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
|
|
6091
|
+
}
|
|
6092
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
6093
|
+
})
|
|
6094
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
|
|
6095
|
+
selectFeatureAllLabel.addEventListener('click',()=>{
|
|
6096
|
+
selectFeatureAll.checked = !selectFeatureAll.checked
|
|
6097
|
+
selectFeatureAll.click();
|
|
6098
|
+
})
|
|
6063
6099
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
6064
|
-
|
|
6100
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
|
|
6101
|
+
for(let [i,selectFeature] of selectFeatures.entries()){
|
|
6065
6102
|
selectFeature.addEventListener('click',(ev: any) => {
|
|
6066
6103
|
let target = ev.target;
|
|
6067
6104
|
let id = target.id;
|
|
@@ -6076,29 +6113,14 @@ export class SfIEvents extends LitElement {
|
|
|
6076
6113
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
|
|
6077
6114
|
}
|
|
6078
6115
|
}
|
|
6079
|
-
|
|
6116
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
6117
|
+
})
|
|
6118
|
+
selectFeatureLabels[i].addEventListener('click',() => {
|
|
6119
|
+
selectFeature.checked = !selectFeature.checked
|
|
6120
|
+
selectFeature.click();
|
|
6080
6121
|
})
|
|
6081
6122
|
}
|
|
6082
6123
|
})
|
|
6083
|
-
// const selectFeatures = eventsContainer.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
6084
|
-
// for(let selectFeature of selectFeatures){
|
|
6085
|
-
// selectFeature.addEventListener('click',(ev: any) => {
|
|
6086
|
-
// let target = ev.target;
|
|
6087
|
-
// let id = target.id;
|
|
6088
|
-
// let index = id.split('-')[3];
|
|
6089
|
-
// let selectedFeature = this.getFeatures()[index]
|
|
6090
|
-
// if(target.checked){
|
|
6091
|
-
// if(this.selectedFeatures.indexOf(selectedFeature) < 0){
|
|
6092
|
-
// this.selectedFeatures.push(selectedFeature)
|
|
6093
|
-
// }
|
|
6094
|
-
// }else{
|
|
6095
|
-
// if(this.selectedFeatures.indexOf(selectedFeature) >= 0){
|
|
6096
|
-
// this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
|
|
6097
|
-
// }
|
|
6098
|
-
// }
|
|
6099
|
-
// this.processDateSelection(eventsContainer)
|
|
6100
|
-
// })
|
|
6101
|
-
// }
|
|
6102
6124
|
const radioExpander = eventsContainer.querySelector('#graph-radios-expander') as HTMLButtonElement;
|
|
6103
6125
|
radioExpander?.addEventListener('click', (e: any) => {
|
|
6104
6126
|
|
|
@@ -9762,6 +9784,18 @@ export class SfIEvents extends LitElement {
|
|
|
9762
9784
|
filterButton?.addEventListener('click',() => {
|
|
9763
9785
|
const filterList = (this._SfThisContainer as HTMLDivElement).querySelector('#filter-list-container') as HTMLDivElement
|
|
9764
9786
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
|
|
9787
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
|
|
9788
|
+
filterSubmitButton.addEventListener('click',async() => {
|
|
9789
|
+
const dateResult = this.calculateStartAndEndDateOfStream(index);
|
|
9790
|
+
console.log('dateresult', dateResult, index);
|
|
9791
|
+
console.log('selectedfeatures', this.selectedFeatures);
|
|
9792
|
+
this.currentColumnIndex = index + "";
|
|
9793
|
+
if(dateResult != null) {
|
|
9794
|
+
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
|
|
9795
|
+
}
|
|
9796
|
+
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
9797
|
+
this.renderStream(index);
|
|
9798
|
+
})
|
|
9765
9799
|
const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
|
|
9766
9800
|
selectFeatureAll.addEventListener('click',async(ev: any) => {
|
|
9767
9801
|
let target = ev.target;
|
|
@@ -9781,18 +9815,16 @@ export class SfIEvents extends LitElement {
|
|
|
9781
9815
|
let selectedFeature = this.getFeatures()[parseInt(i)]
|
|
9782
9816
|
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
|
|
9783
9817
|
}
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
}
|
|
9791
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
9792
|
-
this.renderStream(index);
|
|
9818
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
9819
|
+
})
|
|
9820
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
|
|
9821
|
+
selectFeatureAllLabel.addEventListener('click',()=>{
|
|
9822
|
+
selectFeatureAll.checked = !selectFeatureAll.checked
|
|
9823
|
+
selectFeatureAll.click();
|
|
9793
9824
|
})
|
|
9794
9825
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
9795
|
-
|
|
9826
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
|
|
9827
|
+
for(let [i,selectFeature] of selectFeatures.entries()){
|
|
9796
9828
|
selectFeature.addEventListener('click',async (ev: any) => {
|
|
9797
9829
|
let target = ev.target;
|
|
9798
9830
|
let id = target.id;
|
|
@@ -9807,14 +9839,11 @@ export class SfIEvents extends LitElement {
|
|
|
9807
9839
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
|
|
9808
9840
|
}
|
|
9809
9841
|
}
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
9816
|
-
this.renderStream(index);
|
|
9817
|
-
|
|
9842
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
9843
|
+
})
|
|
9844
|
+
selectFeatureLabels[i].addEventListener('click',() => {
|
|
9845
|
+
selectFeature.checked = !selectFeature.checked
|
|
9846
|
+
selectFeature.click();
|
|
9818
9847
|
})
|
|
9819
9848
|
}
|
|
9820
9849
|
})
|
|
@@ -10263,6 +10292,20 @@ export class SfIEvents extends LitElement {
|
|
|
10263
10292
|
filterButton?.addEventListener('click',() => {
|
|
10264
10293
|
const filterList = (this._SfStreamContainer as HTMLDivElement).querySelector('#filter-list-container') as HTMLDivElement
|
|
10265
10294
|
filterList.style.display = (filterList.style.display != 'block' ? 'block' : 'none')
|
|
10295
|
+
const filterSubmitButton = filterList.querySelector('#button-submit-features') as HTMLButtonElement
|
|
10296
|
+
filterSubmitButton.addEventListener('click',async() => {
|
|
10297
|
+
const dateResult = this.calculateStartAndEndDateOfStream(index);
|
|
10298
|
+
const monthResult = this.calculateMonthFromIndex(index);
|
|
10299
|
+
console.log('monthResult', monthResult);
|
|
10300
|
+
console.log('dateresult', dateResult, index);
|
|
10301
|
+
console.log('selectedfeatures', this.selectedFeatures);
|
|
10302
|
+
this.currentColumnIndex = index + "";
|
|
10303
|
+
if(dateResult != null) {
|
|
10304
|
+
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","no",("0" + monthResult).slice(-2));
|
|
10305
|
+
}
|
|
10306
|
+
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
10307
|
+
this.renderStream(index);
|
|
10308
|
+
})
|
|
10266
10309
|
const selectFeatureAll = filterList.querySelector('.input-select-feature-all') as HTMLInputElement
|
|
10267
10310
|
selectFeatureAll.addEventListener('click',async(ev: any) => {
|
|
10268
10311
|
let target = ev.target;
|
|
@@ -10282,20 +10325,16 @@ export class SfIEvents extends LitElement {
|
|
|
10282
10325
|
let selectedFeature = this.getFeatures()[parseInt(i)]
|
|
10283
10326
|
selectFeature.checked = this.selectedFeatures.indexOf(selectedFeature) >= 0
|
|
10284
10327
|
}
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
if(dateResult != null) {
|
|
10292
|
-
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","no",("0" + monthResult).slice(-2));
|
|
10293
|
-
}
|
|
10294
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
10295
|
-
this.renderStream(index);
|
|
10328
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
10329
|
+
})
|
|
10330
|
+
const selectFeatureAllLabel = filterList.querySelector('#input-select-feature-label-all') as HTMLLabelElement
|
|
10331
|
+
selectFeatureAllLabel.addEventListener('click',()=>{
|
|
10332
|
+
selectFeatureAll.checked = !selectFeatureAll.checked;
|
|
10333
|
+
selectFeatureAll.click();
|
|
10296
10334
|
})
|
|
10297
10335
|
const selectFeatures = filterList.querySelectorAll('.input-select-feature') as NodeListOf<HTMLInputElement>
|
|
10298
|
-
|
|
10336
|
+
const selectFeatureLabels = filterList.querySelectorAll('.input-select-feature-label') as NodeListOf<HTMLLabelElement>
|
|
10337
|
+
for(let [i,selectFeature] of selectFeatures.entries()){
|
|
10299
10338
|
selectFeature.addEventListener('click',async (ev: any) => {
|
|
10300
10339
|
let target = ev.target;
|
|
10301
10340
|
let id = target.id;
|
|
@@ -10310,17 +10349,13 @@ export class SfIEvents extends LitElement {
|
|
|
10310
10349
|
this.selectedFeatures.splice(this.selectedFeatures.indexOf(selectedFeature),1);
|
|
10311
10350
|
}
|
|
10312
10351
|
}
|
|
10313
|
-
|
|
10314
|
-
const monthResult = this.calculateMonthFromIndex(index);
|
|
10315
|
-
this.currentColumnIndex = index + "";
|
|
10316
|
-
console.log('rendering feature', monthResult, dateResult);
|
|
10317
|
-
if(dateResult != null) {
|
|
10318
|
-
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","no",("0" + monthResult).slice(-2));
|
|
10319
|
-
}
|
|
10320
|
-
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
10321
|
-
this.renderStream(index);
|
|
10352
|
+
filterSubmitButton.style.visibility = 'visible'
|
|
10322
10353
|
|
|
10323
10354
|
})
|
|
10355
|
+
selectFeatureLabels[i].addEventListener('click',() => {
|
|
10356
|
+
selectFeature.checked = !selectFeature.checked
|
|
10357
|
+
selectFeature.click()
|
|
10358
|
+
})
|
|
10324
10359
|
}
|
|
10325
10360
|
})
|
|
10326
10361
|
|