sf-i-events 1.0.753 → 1.0.754
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 +8 -4
- package/src/sf-i-events.ts +8 -4
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2138,14 +2138,14 @@ 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
2143
|
html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-center align-start p-10" part="filter-list-container" anchor="filter-button">';
|
|
2144
|
-
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" part="input-
|
|
2145
|
-
// 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-
|
|
2144
|
+
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" part="input-select-feature-label">all</label></div>`;
|
|
2145
|
+
// 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
2146
|
for (let [index, feature] of this.getFeatures().entries()) {
|
|
2147
2147
|
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-
|
|
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-select-feature-label">${feature}</label></div>`;
|
|
2149
2149
|
}
|
|
2150
2150
|
html += '</div></div>';
|
|
2151
2151
|
}
|
|
@@ -20381,6 +20381,10 @@ SfIEvents.styles = css `
|
|
|
20381
20381
|
border-radius: 5px
|
|
20382
20382
|
}
|
|
20383
20383
|
|
|
20384
|
+
.filter-button-container{
|
|
20385
|
+
position: relative;
|
|
20386
|
+
}
|
|
20387
|
+
|
|
20384
20388
|
@media (orientation: landscape) {
|
|
20385
20389
|
|
|
20386
20390
|
.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,14 @@ 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
4237
|
html += '<div id="filter-list-container" class="filter-list-container hide flex-col justify-center align-start p-10" part="filter-list-container" anchor="filter-button">'
|
|
4234
|
-
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" part="input-
|
|
4235
|
-
// 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-
|
|
4238
|
+
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" part="input-select-feature-label">all</label></div>`
|
|
4239
|
+
// 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
4240
|
for(let [index,feature] of this.getFeatures().entries()){
|
|
4237
4241
|
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-
|
|
4242
|
+
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-select-feature-label">${feature}</label></div>`
|
|
4239
4243
|
}
|
|
4240
4244
|
html += '</div></div>'
|
|
4241
4245
|
}
|