@vgip/meta-ui 3.0.1 → 3.0.2

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.
@@ -1674,7 +1674,15 @@ class FieldAbstract {
1674
1674
  if (typeof (m) !== 'undefined') {
1675
1675
  switch (valueType) {
1676
1676
  case 'object': {
1677
- return m ? { id: m.id, label: m.label, type: m.type } : m;
1677
+ if (!m) {
1678
+ return m;
1679
+ }
1680
+ const obj = { id: m.id, label: m.label, type: m.type };
1681
+ // Additional properties are needed for Hubspot owner's external link generation.
1682
+ if (m.additionalProperties) {
1683
+ obj.additionalProperties = m.additionalProperties;
1684
+ }
1685
+ return obj;
1678
1686
  }
1679
1687
  case 'number': {
1680
1688
  if (m != null) {
@@ -4552,7 +4560,12 @@ class FieldReference extends FieldAbstract {
4552
4560
  }
4553
4561
  }
4554
4562
  this.searchResults = results.map((r) => {
4555
- return { id: r.id, label: r.label, type: r.type || r.resourceType || this.searchResourceType.name, externalLink: r.externalLink };
4563
+ const result = { id: r.id, label: r.label, type: r.type || r.resourceType || this.searchResourceType.name, externalLink: r.externalLink };
4564
+ // Additional properties are needed for Hubspot owner's external link generation.
4565
+ if (r.additionalProperties) {
4566
+ result.additionalProperties = r.additionalProperties;
4567
+ }
4568
+ return result;
4556
4569
  });
4557
4570
  if (!/Vlt-dropdown--expanded/.test(this.dropdown.className)) {
4558
4571
  this.showDropdown();