From f833bd4ecd66852a364296cb7f2c86f15f263b70 Mon Sep 17 00:00:00 2001 From: renato Date: Thu, 23 Jun 2016 17:49:01 +0200 Subject: [PATCH] filter ln --- alasql-utility/alasql-utility.js | 2 +- controllets/data-table-controllet/data-table-controllet.html | 20 +++++++------------- controllets/filters-controllet/filters-controllet.html | 24 +++++++++++++----------- locales/controllet_ln.js | 28 ++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 25 deletions(-) diff --git a/alasql-utility/alasql-utility.js b/alasql-utility/alasql-utility.js index 6c530d5..1b56b33 100644 --- a/alasql-utility/alasql-utility.js +++ b/alasql-utility/alasql-utility.js @@ -80,7 +80,7 @@ function _alasql_WHERE (filters) { for (var i=0; i < filters.length; i++) { if(filters[i]["operation"] == "contains") where += filters[i]["field"] + " like '%" + filters[i]["value"] + "%' " + logicalOperator + " "; - else if(filters[i]["operation"] == "not contains") + else if(filters[i]["operation"] == "notContains") where += filters[i]["field"] + " not like '%" + filters[i]["value"] + "%' " + logicalOperator + " "; else if(filters[i]["operation"] == "start") where += filters[i]["field"] + " like '" + filters[i]["value"] + "%' " + logicalOperator + " "; diff --git a/controllets/data-table-controllet/data-table-controllet.html b/controllets/data-table-controllet/data-table-controllet.html index 787b0d6..9729380 100644 --- a/controllets/data-table-controllet/data-table-controllet.html +++ b/controllets/data-table-controllet/data-table-controllet.html @@ -43,7 +43,6 @@ height: 24px; width: 24px; cursor: pointer; - /*background: green;*/ } paper-icon-button.warning { @@ -51,7 +50,6 @@ width: 24px; color: #FFEB3B; cursor: help; - /*background: green;*/ } paper-icon-button.order:hover { @@ -108,7 +106,7 @@ height: 24px; padding: 12px; text-align: center; - max-width: 224px; + max-width: 256px; min-width: 156px; overflow: hidden; white-space: nowrap; @@ -121,18 +119,21 @@ color: #FFFFFF; font-weight: 700; cursor: help; - line-height: 0px;/*?? or49px su spod iron icon and paper icon icon problem*/ + } + + #data_table_container th, + #data_table_container th * { + line-height: 22px;/**/ } #data_table_container th .th_label { display: inline-block; - height: 24px; max-width: calc(100% - 48px - 8px); vertical-align: middle; - /*background: red;*/ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; + line-height: 24px;/**/ } #data_table_container td { @@ -140,13 +141,6 @@ padding: 4px; } - #data_table_container tfoot td { - height: 48px; - padding: 0px; - font-size: 16px; - background: #B6B6B6; - } - #data_table_container #footer { width: 100%; height: 48px; diff --git a/controllets/filters-controllet/filters-controllet.html b/controllets/filters-controllet/filters-controllet.html index 646d2cc..ab96ea9 100755 --- a/controllets/filters-controllet/filters-controllet.html +++ b/controllets/filters-controllet/filters-controllet.html @@ -73,6 +73,7 @@ paper-item { min-width: 128px; + white-space: nowrap; } paper-item.iron-selected { @@ -208,7 +209,7 @@