@sumaris-net/ngx-components 18.7.17 → 18.7.18

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.
@@ -604,7 +604,7 @@ function getPropertyByPath(obj, path, defaultValue) {
604
604
  if (isNilOrBlank(path))
605
605
  return obj;
606
606
  if (path.indexOf('[') !== -1) {
607
- path = path.replace(/\[([^\[\]]*)\]/, '.$1.');
607
+ path = path.replace(/[.]?\[([^\[\]]*)]([.])?/, '.$1$2');
608
608
  }
609
609
  const i = path.indexOf('.');
610
610
  // Simple property path
@@ -8097,6 +8097,7 @@ class MatAutocompleteField {
8097
8097
  selectInputContentOnFocus;
8098
8098
  selectInputContentOnFocusDelay;
8099
8099
  previewImplicitValue;
8100
+ //@Input() favoriteItems: any[];
8100
8101
  /**
8101
8102
  * @deprecated Use panelClass instead
8102
8103
  */
@@ -8163,7 +8164,8 @@ class MatAutocompleteField {
8163
8164
  set items(value) {
8164
8165
  // Remove previous subscription on items, (if exits)
8165
8166
  if (this._itemsSubscription) {
8166
- console.warn(this.logPrefix + ' Items received twice !');
8167
+ if (isObservable(value))
8168
+ console.warn(this.logPrefix + ' Items observable received twice!');
8167
8169
  this._subscription.remove(this._itemsSubscription);
8168
8170
  this._itemsSubscription.unsubscribe();
8169
8171
  }