@zeedhi/common 1.97.4 → 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 +14 -1
- package/dist/zd-common.umd.js +14 -1
- package/package.json +2 -2
package/dist/zd-common.esm.js
CHANGED
|
@@ -10327,7 +10327,20 @@ class SelectMultiple extends Select {
|
|
|
10327
10327
|
this.datasource.loadAll = true;
|
|
10328
10328
|
yield this.datasource.get();
|
|
10329
10329
|
}
|
|
10330
|
-
|
|
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);
|
|
10331
10344
|
if (!this.datasource.search) {
|
|
10332
10345
|
this.setCache();
|
|
10333
10346
|
}
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -10334,7 +10334,20 @@
|
|
|
10334
10334
|
this.datasource.loadAll = true;
|
|
10335
10335
|
yield this.datasource.get();
|
|
10336
10336
|
}
|
|
10337
|
-
|
|
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);
|
|
10338
10351
|
if (!this.datasource.search) {
|
|
10339
10352
|
this.setCache();
|
|
10340
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
|
}
|