@zeedhi/common 1.97.3 → 1.97.5
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
|
@@ -9798,18 +9798,6 @@ class Progress extends ComponentRender {
|
|
|
9798
9798
|
* The percentage value for current progress
|
|
9799
9799
|
*/
|
|
9800
9800
|
this.value = 0;
|
|
9801
|
-
/**
|
|
9802
|
-
* Sets the min width for the component
|
|
9803
|
-
*/
|
|
9804
|
-
this.minWidth = 'auto';
|
|
9805
|
-
/**
|
|
9806
|
-
* Sets the max width for the component
|
|
9807
|
-
*/
|
|
9808
|
-
this.maxWidth = 'auto';
|
|
9809
|
-
/**
|
|
9810
|
-
* Sets the width for the component
|
|
9811
|
-
*/
|
|
9812
|
-
this.width = '100%';
|
|
9813
9801
|
this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
|
|
9814
9802
|
this.backgroundOpacity = this.getInitValue('backgroundOpacity', props.backgroundOpacity, this.backgroundOpacity);
|
|
9815
9803
|
this.color = this.getInitValue('color', props.color, this.color);
|
|
@@ -9817,9 +9805,6 @@ class Progress extends ComponentRender {
|
|
|
9817
9805
|
this.indeterminate = this.getInitValue('indeterminate', props.indeterminate, this.indeterminate);
|
|
9818
9806
|
this.centerSlot = this.getInitValue('centerSlot', props.centerSlot, this.centerSlot);
|
|
9819
9807
|
this.value = this.getInitValue('value', props.value, this.value);
|
|
9820
|
-
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
9821
|
-
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
9822
|
-
this.width = this.getInitValue('width', props.width, this.width);
|
|
9823
9808
|
this.createAccessors();
|
|
9824
9809
|
}
|
|
9825
9810
|
}
|
|
@@ -10342,7 +10327,20 @@ class SelectMultiple extends Select {
|
|
|
10342
10327
|
this.datasource.loadAll = true;
|
|
10343
10328
|
yield this.datasource.get();
|
|
10344
10329
|
}
|
|
10345
|
-
|
|
10330
|
+
// remove disabled values
|
|
10331
|
+
const filteredData = this.datasource.data.filter((row) => {
|
|
10332
|
+
if (row[this.dataDisabled])
|
|
10333
|
+
return false;
|
|
10334
|
+
const disabledValues = this.disabledItems.map((item) => {
|
|
10335
|
+
if (typeof item === 'object')
|
|
10336
|
+
return item[this.dataValue];
|
|
10337
|
+
return item;
|
|
10338
|
+
});
|
|
10339
|
+
if (disabledValues.includes(row[this.dataValue]))
|
|
10340
|
+
return false;
|
|
10341
|
+
return true;
|
|
10342
|
+
});
|
|
10343
|
+
this.setValue(filteredData);
|
|
10346
10344
|
if (!this.datasource.search) {
|
|
10347
10345
|
this.setCache();
|
|
10348
10346
|
}
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -9805,18 +9805,6 @@
|
|
|
9805
9805
|
* The percentage value for current progress
|
|
9806
9806
|
*/
|
|
9807
9807
|
this.value = 0;
|
|
9808
|
-
/**
|
|
9809
|
-
* Sets the min width for the component
|
|
9810
|
-
*/
|
|
9811
|
-
this.minWidth = 'auto';
|
|
9812
|
-
/**
|
|
9813
|
-
* Sets the max width for the component
|
|
9814
|
-
*/
|
|
9815
|
-
this.maxWidth = 'auto';
|
|
9816
|
-
/**
|
|
9817
|
-
* Sets the width for the component
|
|
9818
|
-
*/
|
|
9819
|
-
this.width = '100%';
|
|
9820
9808
|
this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
|
|
9821
9809
|
this.backgroundOpacity = this.getInitValue('backgroundOpacity', props.backgroundOpacity, this.backgroundOpacity);
|
|
9822
9810
|
this.color = this.getInitValue('color', props.color, this.color);
|
|
@@ -9824,9 +9812,6 @@
|
|
|
9824
9812
|
this.indeterminate = this.getInitValue('indeterminate', props.indeterminate, this.indeterminate);
|
|
9825
9813
|
this.centerSlot = this.getInitValue('centerSlot', props.centerSlot, this.centerSlot);
|
|
9826
9814
|
this.value = this.getInitValue('value', props.value, this.value);
|
|
9827
|
-
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
9828
|
-
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
9829
|
-
this.width = this.getInitValue('width', props.width, this.width);
|
|
9830
9815
|
this.createAccessors();
|
|
9831
9816
|
}
|
|
9832
9817
|
}
|
|
@@ -10349,7 +10334,20 @@
|
|
|
10349
10334
|
this.datasource.loadAll = true;
|
|
10350
10335
|
yield this.datasource.get();
|
|
10351
10336
|
}
|
|
10352
|
-
|
|
10337
|
+
// remove disabled values
|
|
10338
|
+
const filteredData = this.datasource.data.filter((row) => {
|
|
10339
|
+
if (row[this.dataDisabled])
|
|
10340
|
+
return false;
|
|
10341
|
+
const disabledValues = this.disabledItems.map((item) => {
|
|
10342
|
+
if (typeof item === 'object')
|
|
10343
|
+
return item[this.dataValue];
|
|
10344
|
+
return item;
|
|
10345
|
+
});
|
|
10346
|
+
if (disabledValues.includes(row[this.dataValue]))
|
|
10347
|
+
return false;
|
|
10348
|
+
return true;
|
|
10349
|
+
});
|
|
10350
|
+
this.setValue(filteredData);
|
|
10353
10351
|
if (!this.datasource.search) {
|
|
10354
10352
|
this.setCache();
|
|
10355
10353
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.5",
|
|
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": "d267b40c72f712231ae90bfb26907260ba75ece2"
|
|
47
47
|
}
|
|
@@ -33,18 +33,6 @@ export declare class Progress extends ComponentRender implements IProgress {
|
|
|
33
33
|
* The percentage value for current progress
|
|
34
34
|
*/
|
|
35
35
|
value: number | string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the min width for the component
|
|
38
|
-
*/
|
|
39
|
-
minWidth: number | string;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the max width for the component
|
|
42
|
-
*/
|
|
43
|
-
maxWidth: number | string;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the width for the component
|
|
46
|
-
*/
|
|
47
|
-
width: number | string;
|
|
48
36
|
/**
|
|
49
37
|
* Create a new Progress
|
|
50
38
|
* @param props Progress definition
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|