@datorama/core 22.0.4-rc.2 → 22.0.5-rc.1

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.
@@ -8747,8 +8747,8 @@
8747
8747
  }
8748
8748
  }
8749
8749
  this.onChange(this._model);
8750
- this.datoOverlay.scheduleUpdate();
8751
8750
  this.cdr.markForCheck();
8751
+ this.asyncUpdateDropdownPosition();
8752
8752
  };
8753
8753
  DatoSelectComponent.prototype.reorderOptions = function (newOrder) {
8754
8754
  this._model = newOrder;
@@ -8768,9 +8768,7 @@
8768
8768
  this.limitSelectedTo && this.updateDisabledState();
8769
8769
  this.onChange(this._model);
8770
8770
  this.cdr.markForCheck();
8771
- if (this.datoOverlay.attached) {
8772
- this.datoOverlay.scheduleUpdate();
8773
- }
8771
+ this.asyncUpdateDropdownPosition();
8774
8772
  };
8775
8773
  DatoSelectComponent.prototype.preventBodyScroll = function (event) {
8776
8774
  if (isArrowUpDown(event)) {
@@ -9025,7 +9023,7 @@
9025
9023
  _this.searchTerm = value;
9026
9024
  _this.keyManager.setActiveItem(-1);
9027
9025
  _this.cdr.markForCheck();
9028
- _this.datoOverlay && _this.datoOverlay.scheduleUpdate();
9026
+ _this.asyncUpdateDropdownPosition();
9029
9027
  });
9030
9028
  };
9031
9029
  /**
@@ -9126,7 +9124,7 @@
9126
9124
  this.limitSelectedTo && this.updateDisabledState();
9127
9125
  this.onChange(this._model);
9128
9126
  this.cdr.markForCheck();
9129
- this.datoOverlay.scheduleUpdate();
9127
+ this.asyncUpdateDropdownPosition();
9130
9128
  };
9131
9129
  DatoSelectComponent.prototype.activateInfiniteScroll = function () {
9132
9130
  var _this = this;
@@ -9179,6 +9177,14 @@
9179
9177
  finally { if (e_9) throw e_9.error; }
9180
9178
  }
9181
9179
  };
9180
+ // Make sure the overlay will be update AFTER Change Detection was done
9181
+ // So the items in the input (and its height) is update
9182
+ DatoSelectComponent.prototype.asyncUpdateDropdownPosition = function () {
9183
+ var _this = this;
9184
+ if (this.datoOverlay && this.datoOverlay.attached) {
9185
+ setTimeout(function () { return _this.datoOverlay.scheduleUpdate(); }, 0);
9186
+ }
9187
+ };
9182
9188
  DatoSelectComponent.ctorParameters = function () { return [
9183
9189
  { type: core.ChangeDetectorRef },
9184
9190
  { type: DatoTranslateService },
@@ -24698,7 +24704,8 @@
24698
24704
  this.thresholds = [33, 66];
24699
24705
  }
24700
24706
  DatoProgressBarComponent.prototype.ngOnInit = function () {
24701
- if (!this.parts && this.percent) {
24707
+ if (!this.parts) {
24708
+ this.percent = this.percent || 0;
24702
24709
  this.isByPercent = true;
24703
24710
  this.hasInitialColor = !!this.color;
24704
24711
  this.initSinglePart();
@@ -25365,7 +25372,7 @@
25365
25372
  };
25366
25373
  }
25367
25374
 
25368
- window.coreVersion = '22.1.3-rc.';
25375
+ window.coreVersion = '22.1.4-rc.';
25369
25376
 
25370
25377
  exports.APP_TRANSLATE = APP_TRANSLATE;
25371
25378
  exports.AceService = AceService;