@syncfusion/ej2-data
Advanced tools
Comparing version 20.3.47 to 20.3.50
/*! | ||
* filename: index.d.ts | ||
* version : 20.3.47 | ||
* version : 20.3.50 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-data@*", | ||
"_id": "@syncfusion/ej2-data@20.3.1", | ||
"_id": "@syncfusion/ej2-data@0.15.3", | ||
"_inBundle": false, | ||
"_integrity": "sha512-27ixvWdSdCHTevQ9wIzbSBzdBQ2VAedxjl8yibbIkT6+sTEPhair4nMuja4NOUazklJnY0fvT1wlKxrV3oPUtA==", | ||
"_integrity": "sha512-p83r8rcZnX5iT5qlYCT9hPkojR2DdCuZeQ27N2IYdt/p4MyuAUnIyNQpTmG6yREfh27wdQDKY7EZMYyPHYHthQ==", | ||
"_location": "/@syncfusion/ej2-data", | ||
@@ -43,4 +43,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-data/-/ej2-data-20.3.1.tgz", | ||
"_shasum": "85bca77c07043271852d3ae356c60418925a2bc4", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-data/-/ej2-data-0.15.3.tgz", | ||
"_shasum": "b77446449afea89d7cbd376fc242e0379ed2ed13", | ||
"_spec": "@syncfusion/ej2-data@*", | ||
@@ -53,3 +53,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~20.3.47" | ||
"@syncfusion/ej2-base": "~20.3.50" | ||
}, | ||
@@ -65,4 +65,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "20.3.47", | ||
"version": "20.3.50", | ||
"sideEffects": false | ||
} |
@@ -172,2 +172,3 @@ import { Ajax } from '@syncfusion/ej2-base'; | ||
else if (!isNullOrUndefined(result.url) || this.isCustomDataAdaptor(this.adaptor)) { | ||
this.requests = []; | ||
this.makeRequest(result, deffered, args, query); | ||
@@ -174,0 +175,0 @@ } |
@@ -111,3 +111,3 @@ import { DataManager } from './manager'; | ||
*/ | ||
where(fieldName: string | Predicate | Predicate[], operator?: string, value?: string | Date | number | boolean | null, ignoreCase?: boolean, ignoreAccent?: boolean): Query; | ||
where(fieldName: string | Predicate | Predicate[], operator?: string, value?: string | Date | number | boolean | null, ignoreCase?: boolean, ignoreAccent?: boolean, matchCase?: boolean): Query; | ||
/** | ||
@@ -226,2 +226,4 @@ * Search data with given search criteria. | ||
/** @hidden */ | ||
matchCase: boolean; | ||
/** @hidden */ | ||
ignoreAccent: boolean; | ||
@@ -241,5 +243,6 @@ /** @hidden */ | ||
* @param {boolean=false} ignoreCase | ||
* @param {boolean} matchCase | ||
* @hidden | ||
*/ | ||
constructor(field: string | Predicate, operator: string, value: string | number | Date | boolean | Predicate | Predicate[] | null, ignoreCase?: boolean, ignoreAccent?: boolean); | ||
constructor(field: string | Predicate, operator: string, value: string | number | Date | boolean | Predicate | Predicate[] | null, ignoreCase?: boolean, ignoreAccent?: boolean, matchCase?: boolean); | ||
/** | ||
@@ -246,0 +249,0 @@ * Adds n-number of new predicates on existing predicate with “and” condition. |
@@ -163,7 +163,7 @@ import { DataUtil } from './util'; | ||
*/ | ||
Query.prototype.where = function (fieldName, operator, value, ignoreCase, ignoreAccent) { | ||
Query.prototype.where = function (fieldName, operator, value, ignoreCase, ignoreAccent, matchCase) { | ||
operator = operator ? (operator).toLowerCase() : null; | ||
var predicate = null; | ||
if (typeof fieldName === 'string') { | ||
predicate = new Predicate(fieldName, operator, value, ignoreCase, ignoreAccent); | ||
predicate = new Predicate(fieldName, operator, value, ignoreCase, ignoreAccent, matchCase); | ||
} | ||
@@ -436,5 +436,6 @@ else if (fieldName instanceof Predicate) { | ||
* @param {boolean=false} ignoreCase | ||
* @param {boolean} matchCase | ||
* @hidden | ||
*/ | ||
function Predicate(field, operator, value, ignoreCase, ignoreAccent) { | ||
function Predicate(field, operator, value, ignoreCase, ignoreAccent, matchCase) { | ||
if (ignoreCase === void 0) { ignoreCase = false; } | ||
@@ -449,2 +450,3 @@ /** @hidden */ | ||
this.value = value; | ||
this.matchCase = matchCase; | ||
this.ignoreCase = ignoreCase; | ||
@@ -459,2 +461,5 @@ this.ignoreAccent = ignoreAccent; | ||
this.predicates = [field]; | ||
this.matchCase = field.matchCase; | ||
this.ignoreCase = field.ignoreCase; | ||
this.ignoreAccent = field.ignoreAccent; | ||
if (value instanceof Array) { | ||
@@ -577,3 +582,4 @@ [].push.apply(this.predicates, value); | ||
condition: this.condition, | ||
predicates: predicates | ||
predicates: predicates, | ||
matchCase: this.matchCase | ||
}; | ||
@@ -580,0 +586,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
2270134
31
19566