@opencitylabs/formio-custom-components 0.8.4 → 0.8.6

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/index.js CHANGED
@@ -8003,6 +8003,11 @@ var mr = e.components.select, hr = {
8003
8003
  }
8004
8004
  }
8005
8005
  }
8006
+ findItem(e) {
8007
+ if (e == null) return null;
8008
+ let t = this.component.valueProperty;
8009
+ return t ? (this.defaultDownloadedResources || []).find((n) => n[t] === e) || null : typeof e == "object" ? (this.defaultDownloadedResources || []).find((t) => JSON.stringify(t) === JSON.stringify(e)) || e : null;
8010
+ }
8006
8011
  attach(e) {
8007
8012
  this.options.readOnly && (this.activated = !0);
8008
8013
  let t = super.attach(e);