@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.
@@ -10327,7 +10327,20 @@ class SelectMultiple extends Select {
10327
10327
  this.datasource.loadAll = true;
10328
10328
  yield this.datasource.get();
10329
10329
  }
10330
- this.setValue(this.datasource.data);
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
  }
@@ -10334,7 +10334,20 @@
10334
10334
  this.datasource.loadAll = true;
10335
10335
  yield this.datasource.get();
10336
10336
  }
10337
- this.setValue(this.datasource.data);
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.4",
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": "052cd88ccb75d186580d431224412c56801353de"
46
+ "gitHead": "d267b40c72f712231ae90bfb26907260ba75ece2"
47
47
  }