namirasoft-core
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -18,2 +18,3 @@ import { FilterItemOperator } from "./FilterItemOperator"; | ||
static parse(item: string | null): FilterItem[]; | ||
static test(filters: FilterItem[] | null, object: any): boolean; | ||
constructor(table: { | ||
@@ -20,0 +21,0 @@ name: string; |
@@ -58,2 +58,10 @@ "use strict"; | ||
} | ||
static test(filters, object) { | ||
if (filters) { | ||
if (object) | ||
return true; | ||
return false; | ||
} | ||
return true; | ||
} | ||
constructor(table, column, not, operator, ...values) { | ||
@@ -60,0 +68,0 @@ this.table = table; |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -76,2 +76,14 @@ import { BaseMetaColumn } from "./BaseMetaColumn"; | ||
} | ||
public static test(filters: FilterItem[] | null, object: any): boolean | ||
{ | ||
if (filters) | ||
{ | ||
// todo | ||
if (object) | ||
return true; | ||
return false; | ||
// todo | ||
} | ||
return true; | ||
} | ||
constructor(table: { name: string; text: string; }, column: { name: string; text: string; }, not: boolean, operator: FilterItemOperator, ...values: string[]) | ||
@@ -78,0 +90,0 @@ { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
393379
5078