@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.
@@ -8548,8 +8548,8 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8548
8548
  }
8549
8549
  }
8550
8550
  this.onChange(this._model);
8551
- this.datoOverlay.scheduleUpdate();
8552
8551
  this.cdr.markForCheck();
8552
+ this.asyncUpdateDropdownPosition();
8553
8553
  };
8554
8554
  DatoSelectComponent.prototype.reorderOptions = function (newOrder) {
8555
8555
  this._model = newOrder;
@@ -8569,9 +8569,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8569
8569
  this.limitSelectedTo && this.updateDisabledState();
8570
8570
  this.onChange(this._model);
8571
8571
  this.cdr.markForCheck();
8572
- if (this.datoOverlay.attached) {
8573
- this.datoOverlay.scheduleUpdate();
8574
- }
8572
+ this.asyncUpdateDropdownPosition();
8575
8573
  };
8576
8574
  DatoSelectComponent.prototype.preventBodyScroll = function (event) {
8577
8575
  if (isArrowUpDown(event)) {
@@ -8826,7 +8824,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8826
8824
  _this.searchTerm = value;
8827
8825
  _this.keyManager.setActiveItem(-1);
8828
8826
  _this.cdr.markForCheck();
8829
- _this.datoOverlay && _this.datoOverlay.scheduleUpdate();
8827
+ _this.asyncUpdateDropdownPosition();
8830
8828
  });
8831
8829
  };
8832
8830
  /**
@@ -8927,7 +8925,7 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8927
8925
  this.limitSelectedTo && this.updateDisabledState();
8928
8926
  this.onChange(this._model);
8929
8927
  this.cdr.markForCheck();
8930
- this.datoOverlay.scheduleUpdate();
8928
+ this.asyncUpdateDropdownPosition();
8931
8929
  };
8932
8930
  DatoSelectComponent.prototype.activateInfiniteScroll = function () {
8933
8931
  var _this = this;
@@ -8980,6 +8978,14 @@ var DatoSelectComponent = /** @class */ (function (_super) {
8980
8978
  finally { if (e_9) throw e_9.error; }
8981
8979
  }
8982
8980
  };
8981
+ // Make sure the overlay will be update AFTER Change Detection was done
8982
+ // So the items in the input (and its height) is update
8983
+ DatoSelectComponent.prototype.asyncUpdateDropdownPosition = function () {
8984
+ var _this = this;
8985
+ if (this.datoOverlay && this.datoOverlay.attached) {
8986
+ setTimeout(function () { return _this.datoOverlay.scheduleUpdate(); }, 0);
8987
+ }
8988
+ };
8983
8989
  DatoSelectComponent.ctorParameters = function () { return [
8984
8990
  { type: ChangeDetectorRef },
8985
8991
  { type: DatoTranslateService },
@@ -24499,7 +24505,8 @@ var DatoProgressBarComponent = /** @class */ (function () {
24499
24505
  this.thresholds = [33, 66];
24500
24506
  }
24501
24507
  DatoProgressBarComponent.prototype.ngOnInit = function () {
24502
- if (!this.parts && this.percent) {
24508
+ if (!this.parts) {
24509
+ this.percent = this.percent || 0;
24503
24510
  this.isByPercent = true;
24504
24511
  this.hasInitialColor = !!this.color;
24505
24512
  this.initSinglePart();
@@ -25166,7 +25173,7 @@ function fixNgLeaks() {
25166
25173
  };
25167
25174
  }
25168
25175
 
25169
- window.coreVersion = '22.1.3-rc.';
25176
+ window.coreVersion = '22.1.4-rc.';
25170
25177
 
25171
25178
  /**
25172
25179
  * @license