@zeedhi/common 1.97.1 → 1.97.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zd-common.esm.js
CHANGED
|
@@ -2004,8 +2004,8 @@ class Input extends ComponentRender {
|
|
|
2004
2004
|
updateRules() {
|
|
2005
2005
|
this.rules = Object.values(this.parsedValidations)
|
|
2006
2006
|
.map((validation) => (value) => {
|
|
2007
|
+
const isValueDefined = value !== undefined && value !== '';
|
|
2007
2008
|
const parsedValue = this.parser(value);
|
|
2008
|
-
const isValueDefined = parsedValue !== undefined && parsedValue !== '';
|
|
2009
2009
|
const testValue = isValueDefined ? parsedValue : this.value;
|
|
2010
2010
|
return validation(testValue);
|
|
2011
2011
|
});
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -2011,8 +2011,8 @@
|
|
|
2011
2011
|
updateRules() {
|
|
2012
2012
|
this.rules = Object.values(this.parsedValidations)
|
|
2013
2013
|
.map((validation) => (value) => {
|
|
2014
|
+
const isValueDefined = value !== undefined && value !== '';
|
|
2014
2015
|
const parsedValue = this.parser(value);
|
|
2015
|
-
const isValueDefined = parsedValue !== undefined && parsedValue !== '';
|
|
2016
2016
|
const testValue = isValueDefined ? parsedValue : this.value;
|
|
2017
2017
|
return validation(testValue);
|
|
2018
2018
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.3",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"lodash.times": "4.3.*",
|
|
44
44
|
"mockdate": "3.0.*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7065dd9a81299f26f575acbe9fdc8852da5c53cc"
|
|
47
47
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IJSONObject {
|
|
2
|
+
path: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class JsonCacheService {
|
|
5
|
+
/**
|
|
6
|
+
* jsons collection
|
|
7
|
+
*/
|
|
8
|
+
static jsonCollection: IJSONObject[];
|
|
9
|
+
static saveJSONCache(jsonCollection: IJSONObject[]): Promise<void>;
|
|
10
|
+
static getJSONCache(path: string): any;
|
|
11
|
+
static clearJSONCache(jsonCollection: IJSONObject[]): void;
|
|
12
|
+
}
|