myrta-ui 1.1.37 → 1.1.38

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.
@@ -13154,7 +13154,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
13154
13154
  class CheckboxGroupComponent {
13155
13155
  constructor(_detector) {
13156
13156
  this._detector = _detector;
13157
- this._isInit = false;
13158
13157
  this._groupItemsWrapperHeight = 0;
13159
13158
  this._searchValue = '';
13160
13159
  this.list = [];
@@ -13191,6 +13190,7 @@ class CheckboxGroupComponent {
13191
13190
  }
13192
13191
  set items(list) {
13193
13192
  this.list = list;
13193
+ this._updateModifiedList();
13194
13194
  }
13195
13195
  get items() {
13196
13196
  return this.filteredList;
@@ -13219,11 +13219,13 @@ class CheckboxGroupComponent {
13219
13219
  writeValue(selectedValue) {
13220
13220
  if (selectedValue !== null) {
13221
13221
  this.checkedList = selectedValue;
13222
- this.innerList = getInnerList(this.list, this.checkedList);
13223
- this.filteredList = getSortedList(this.innerList, this.sortable);
13224
- this._isInit = true;
13222
+ this._updateModifiedList();
13225
13223
  }
13226
13224
  }
13225
+ _updateModifiedList() {
13226
+ this.innerList = getInnerList(this.list, this.checkedList);
13227
+ this.filteredList = getSortedList(this.innerList, this.sortable);
13228
+ }
13227
13229
  checkHeightGroupWrapper() {
13228
13230
  this._groupItemsWrapperHeight = this.groupItemsWrapper.nativeElement.scrollHeight;
13229
13231
  }