namirasoft-core
Advanced tools
Comparing version 1.3.54 to 1.3.55
@@ -0,11 +1,7 @@ | ||
import { BaseMetaColumn } from "./BaseMetaColumn"; | ||
import { BaseMetaTable } from "./BaseMetaTable"; | ||
import { FilterItemOperator } from "./FilterItemOperator"; | ||
export declare class FilterItem { | ||
table: { | ||
name: string; | ||
text: string; | ||
}; | ||
column: { | ||
name: string; | ||
text: string; | ||
}; | ||
table: BaseMetaTable; | ||
column: BaseMetaColumn; | ||
not: boolean; | ||
@@ -16,9 +12,3 @@ operator: FilterItemOperator; | ||
static parse(item: string | null): FilterItem[]; | ||
constructor(table: { | ||
name: string; | ||
text: string; | ||
}, column: { | ||
name: string; | ||
text: string; | ||
}, not: boolean, operator: FilterItemOperator, ...values: string[]); | ||
constructor(table: BaseMetaTable, column: BaseMetaColumn, not: boolean, operator: FilterItemOperator, ...values: string[]); | ||
getCommand(): string; | ||
@@ -25,0 +15,0 @@ isAllColumns(): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FilterItem = void 0; | ||
const BaseMetaColumn_1 = require("./BaseMetaColumn"); | ||
const BaseMetaTable_1 = require("./BaseMetaTable"); | ||
const FilterItemOperator_1 = require("./FilterItemOperator"); | ||
@@ -16,3 +18,3 @@ class FilterItem { | ||
for (let i = 0; i < items.length;) { | ||
if (i + 3 >= items.length) | ||
if (i + 4 >= items.length) | ||
throw new Error("Invalid value for FilterItem: " + item); | ||
@@ -35,4 +37,4 @@ let tableIndex = i; | ||
} | ||
ans.push(new FilterItem({ name: table, text: table }, { name: column, text: column }, not, operator, ...values)); | ||
i += 3 + operator.count; | ||
ans.push(new FilterItem(new BaseMetaTable_1.BaseMetaTable(table, table), new BaseMetaColumn_1.BaseMetaColumn(column, column, "", false), not, operator, ...values)); | ||
i += 4 + operator.count; | ||
} | ||
@@ -39,0 +41,0 @@ } |
export * from "./BaseDatabaseRow"; | ||
export * from "./BaseMetaColumn"; | ||
export * from "./BaseMetaTable"; | ||
export * from "./BaseServer"; | ||
@@ -3,0 +5,0 @@ export * from "./ConsoleOperation"; |
@@ -18,2 +18,4 @@ "use strict"; | ||
__exportStar(require("./BaseDatabaseRow"), exports); | ||
__exportStar(require("./BaseMetaColumn"), exports); | ||
__exportStar(require("./BaseMetaTable"), exports); | ||
__exportStar(require("./BaseServer"), exports); | ||
@@ -20,0 +22,0 @@ __exportStar(require("./ConsoleOperation"), exports); |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.54", | ||
"version": "1.3.55", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -0,1 +1,3 @@ | ||
import { BaseMetaColumn } from "./BaseMetaColumn"; | ||
import { BaseMetaTable } from "./BaseMetaTable"; | ||
import { FilterItemOperator } from "./FilterItemOperator"; | ||
@@ -5,10 +7,4 @@ | ||
{ | ||
public table: { | ||
name: string; | ||
text: string; | ||
}; | ||
public column: { | ||
name: string; | ||
text: string; | ||
}; | ||
public table: BaseMetaTable; | ||
public column: BaseMetaColumn; | ||
public not: boolean; | ||
@@ -31,3 +27,3 @@ public operator: FilterItemOperator; | ||
{ | ||
if (i + 3 >= items.length) | ||
if (i + 4 >= items.length) | ||
throw new Error("Invalid value for FilterItem: " + item); | ||
@@ -51,4 +47,4 @@ let tableIndex = i; | ||
} | ||
ans.push(new FilterItem({ name: table, text: table }, { name: column, text: column }, not, operator, ...values)); | ||
i += 3 + operator.count; | ||
ans.push(new FilterItem(new BaseMetaTable(table, table), new BaseMetaColumn(column, column, "", false), not, operator, ...values)); | ||
i += 4 + operator.count; | ||
} | ||
@@ -58,3 +54,3 @@ } | ||
} | ||
constructor(table: { name: string; text: string }, column: { name: string; text: string }, not: boolean, operator: FilterItemOperator, ...values: string[]) | ||
constructor(table: BaseMetaTable, column: BaseMetaColumn, not: boolean, operator: FilterItemOperator, ...values: string[]) | ||
{ | ||
@@ -61,0 +57,0 @@ this.table = table; |
export * from "./BaseDatabaseRow"; | ||
export * from "./BaseMetaColumn"; | ||
export * from "./BaseMetaTable"; | ||
export * from "./BaseServer"; | ||
@@ -3,0 +5,0 @@ export * from "./ConsoleOperation"; |
Sorry, the diff of this file is not supported yet
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
359104
143
4568