@elderbyte/ngx-starter 13.7.3 → 13.7.4

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.
@@ -21371,7 +21371,10 @@ class ElderMultiSelectBase extends ElderSelectBase {
21371
21371
  * *
21372
21372
  **************************************************************************/
21373
21373
  entityIdsFromValues(values) {
21374
- return values?.map(v => this.entityIdFromValue(v));
21374
+ if (values) {
21375
+ return values.map(v => this.entityIdFromValue(v));
21376
+ }
21377
+ return null;
21375
21378
  }
21376
21379
  entityIdFromValue(value) {
21377
21380
  if (this.valueAsId) {
@@ -21383,7 +21386,10 @@ class ElderMultiSelectBase extends ElderSelectBase {
21383
21386
  }
21384
21387
  }
21385
21388
  entitiesToValues(entities) {
21386
- return entities?.map(e => this.entityToValue(e));
21389
+ if (entities) {
21390
+ return entities.map(e => this.entityToValue(e));
21391
+ }
21392
+ return null;
21387
21393
  }
21388
21394
  entityToValue(entity) {
21389
21395
  if (this.valueAsId) {
@@ -21395,7 +21401,10 @@ class ElderMultiSelectBase extends ElderSelectBase {
21395
21401
  }
21396
21402
  }
21397
21403
  getEntityIds(values) {
21398
- return values?.map(v => this.getEntityId(v));
21404
+ if (values) {
21405
+ return values.map(v => this.getEntityId(v));
21406
+ }
21407
+ return null;
21399
21408
  }
21400
21409
  equalIds(idsA, idsB) {
21401
21410
  return Sets.equalContent(idsA, idsB);