@fundamental-ngx/platform 0.60.1-rc.2 → 0.60.1-rc.3

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.
@@ -42,7 +42,7 @@ import { TokenComponent, TokenizerComponent } from '@fundamental-ngx/core/token'
42
42
  import * as i3$2 from '@fundamental-ngx/core/input-group';
43
43
  import { InputGroupModule } from '@fundamental-ngx/core/input-group';
44
44
  import { MultiAnnouncerDirective } from '@fundamental-ngx/core/multi-combobox';
45
- import equal from 'fast-deep-equal';
45
+ import { shallowEqual } from 'fast-equals';
46
46
  import { ObjectStatusComponent } from '@fundamental-ngx/platform/object-status';
47
47
  import { FocusKeyManager } from '@angular/cdk/a11y';
48
48
  import { RadioButtonComponent as RadioButtonComponent$1 } from '@fundamental-ngx/core/radio';
@@ -3104,7 +3104,7 @@ class PlatformMultiInputComponent extends BaseMultiInput {
3104
3104
  /** @hidden */
3105
3105
  _checkboxSelected(value, event) {
3106
3106
  const isSelected = event.source._selected;
3107
- const index = this.selected.findIndex((selectvalue) => equal(selectvalue, value));
3107
+ const index = this.selected.findIndex((selectvalue) => shallowEqual(selectvalue, value));
3108
3108
  if (isSelected && index > -1) {
3109
3109
  return;
3110
3110
  }
@@ -3112,7 +3112,7 @@ class PlatformMultiInputComponent extends BaseMultiInput {
3112
3112
  }
3113
3113
  /** @hidden */
3114
3114
  addToArray(value, focusOnInput = true) {
3115
- const index = this.selected.findIndex((selectvalue) => equal(selectvalue, value));
3115
+ const index = this.selected.findIndex((selectvalue) => shallowEqual(selectvalue, value));
3116
3116
  if (index === -1) {
3117
3117
  this.selected.push(value);
3118
3118
  }
@@ -3224,7 +3224,7 @@ class PlatformMultiInputComponent extends BaseMultiInput {
3224
3224
  */
3225
3225
  _markListItemsAsSelected() {
3226
3226
  this._listItems?.forEach((listItem) => {
3227
- const isSelected = !!this._selected.find((value) => equal(value.value, listItem.value));
3227
+ const isSelected = !!this._selected.find((value) => shallowEqual(value.value, listItem.value));
3228
3228
  listItem.setSelected(isSelected);
3229
3229
  });
3230
3230
  }
@@ -9032,7 +9032,7 @@ class BaseMultiCombobox extends CollectionBaseInput {
9032
9032
  if (selectedSuggestionsLength > 0) {
9033
9033
  for (let i = 0; i < selectedSuggestionsLength; i++) {
9034
9034
  const selectedSuggestion = this._selectedSuggestions[i];
9035
- const idx = this._suggestions.findIndex((item) => equal(item.value, selectedSuggestion.value));
9035
+ const idx = this._suggestions.findIndex((item) => shallowEqual(item.value, selectedSuggestion.value));
9036
9036
  if (idx !== -1) {
9037
9037
  this._suggestions[idx].selected = true;
9038
9038
  }
@@ -9521,7 +9521,7 @@ class MultiComboboxComponent extends BaseMultiCombobox {
9521
9521
  moreClicked() {
9522
9522
  this._suggestions = this.isGroup
9523
9523
  ? this._convertObjectsToGroupOptionItems(this._selectedSuggestions.map(({ value }) => value))
9524
- : this._suggestions.filter((value) => this._selectedSuggestions.some((item) => equal(item.value, value.value)));
9524
+ : this._suggestions.filter((value) => this._selectedSuggestions.some((item) => shallowEqual(item.value, value.value)));
9525
9525
  this.showList(true);
9526
9526
  this.selectedShown$.set(true);
9527
9527
  this.markForCheck();
@@ -9635,7 +9635,7 @@ class MultiComboboxComponent extends BaseMultiCombobox {
9635
9635
  }
9636
9636
  /** @hidden */
9637
9637
  _getTokenIndexByIdlOrValue(item) {
9638
- return this._selectedSuggestions.findIndex((token) => token.id === item.id || equal(token.value, item.value));
9638
+ return this._selectedSuggestions.findIndex((token) => token.id === item.id || shallowEqual(token.value, item.value));
9639
9639
  }
9640
9640
  /** @hidden */
9641
9641
  _mapAndUpdateModel() {