aeb-ui-kit 2.1.4-preview.484 → 2.1.4-preview.486

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.
@@ -1808,9 +1808,10 @@ const getScrollParent = (node) => {
1808
1808
  }
1809
1809
  };
1810
1810
  class DatepickerComponent {
1811
- constructor(utils, maskUtils) {
1811
+ constructor(utils, maskUtils, cdr) {
1812
1812
  this.utils = utils;
1813
1813
  this.maskUtils = maskUtils;
1814
+ this.cdr = cdr;
1814
1815
  this.minDate = this.utils.subYears(new Date(), 100);
1815
1816
  this.maxDate = this.utils.addYears(new Date(), 50);
1816
1817
  this.excludedDates = [];
@@ -2085,6 +2086,7 @@ class DatepickerComponent {
2085
2086
  const centeredHpos = `left: ${hAlign}px; top: ${topAlign}px`;
2086
2087
  this.fixedPosition =
2087
2088
  bottomOverflow && topOverflow ? centeredHpos : defaultHpos;
2089
+ this.cdr.detectChanges();
2088
2090
  }
2089
2091
  }
2090
2092
  handleDateChange(date) {
@@ -2138,7 +2140,7 @@ class DatepickerComponent {
2138
2140
  // ignore
2139
2141
  }
2140
2142
  }
2141
- DatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatepickerComponent, deps: [{ token: DatepickerUtilsService }, { token: MaskUtilsService }], target: i0.ɵɵFactoryTarget.Component });
2143
+ DatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatepickerComponent, deps: [{ token: DatepickerUtilsService }, { token: MaskUtilsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2142
2144
  DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: DatepickerComponent, selector: "aeb-datepicker", inputs: { date: "date", hasError: "hasError", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates", minYear: "minYear", maxYear: "maxYear", withBackground: "withBackground", align: "align", placeholder: "placeholder", collapseOnChange: "collapseOnChange", withoutDays: "withoutDays" }, outputs: { dateChange: "dateChange" }, providers: [
2143
2145
  {
2144
2146
  provide: NG_VALUE_ACCESSOR,
@@ -2155,7 +2157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
2155
2157
  multi: true
2156
2158
  }
2157
2159
  ], template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <aeb-label class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </aeb-label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#27303E\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#27303E\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{ 'aeb-datepicker-core--disabled': !isOpen }\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--darkblue)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--red)!important;border:2px solid var(--red)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--red)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;z-index:100;cursor:pointer}.aeb-datepicker-core{position:fixed}.aeb-datepicker-core--disabled{pointer-events:none;opacity:0}\n"] }]
2158
- }], ctorParameters: function () { return [{ type: DatepickerUtilsService }, { type: MaskUtilsService }]; }, propDecorators: { date: [{
2160
+ }], ctorParameters: function () { return [{ type: DatepickerUtilsService }, { type: MaskUtilsService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
2159
2161
  type: Input
2160
2162
  }], hasError: [{
2161
2163
  type: Input