From fc8e340d05e4d50e3cb04f7fbe871b02f310b466 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 25 Feb 2022 09:00:23 +0100 Subject: [PATCH] [WIP] Default facet limit changes --- bower.json | 2 +- strolch-wc-reports.html | 48 +++++++++++++++-------------------------- 2 files changed, 18 insertions(+), 32 deletions(-) diff --git a/bower.json b/bower.json index cc7f2ba..694d566 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-reports", "description": "Strolch WebComponent Reports", - "version": "0.4.0", + "version": "0.4.1", "authors": [ "Robert von Burg" ], diff --git a/strolch-wc-reports.html b/strolch-wc-reports.html index 5512040..b5fe7cc 100644 --- a/strolch-wc-reports.html +++ b/strolch-wc-reports.html @@ -230,11 +230,8 @@ font-weight: bold; } - paper-card { - background-color: white; - margin-right: 20px; - padding-left: 10px; - padding-right: 10px; + .facetInfo { + margin: 0 auto 16px; } paper-input { @@ -353,6 +350,14 @@ hidden$="[[!showFacets]]" restamp> + + + + - - - - - -
@@ -464,8 +446,8 @@ value: true, observer: 'showFacetsChanged' }, - trimFacetValues: { - type: Boolean, + maxRowsForFacetGeneration: { + type: Number, value: false }, facets: { @@ -774,7 +756,11 @@ // set the new report id var report = this.reports[this.selectedReportIndex]; this.reportId = report.id; - this.trimFacetValues = report.trimFacetValues === true; + var maxRowsForFacetGeneration = report.maxRowsForFacetGeneration; + if (!Strolch.isInteger(maxRowsForFacetGeneration)) + this.maxRowsForFacetGeneration = -1; + else + this.maxRowsForFacetGeneration = maxRowsForFacetGeneration; this.$.ajaxGetFacets.params.limit = this.facetLimit; this.$.ajaxGetFacets.generateRequest(); Strolch.setQueryParamValue("reportId", this.reportId);