@acorex/components 3.0.59 → 3.0.60

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.
@@ -5286,13 +5286,14 @@ var AXDropdownComponent = /** @class */ (function (_super) {
5286
5286
  }, 5);
5287
5287
  };
5288
5288
  AXDropdownComponent.prototype.ngAfterViewInit = function () {
5289
- // Todo: chech fitparent
5290
- // if (this.fitParent === true) {
5291
- // this.dropdownWidth = this.dropdownEL.nativeElement.offsetWidth;
5292
- // } else {
5293
- // this.dropdownWidth = 260;
5294
- // }
5295
5289
  var _this = this;
5290
+ // Todo: chech fitparent
5291
+ if (this.fitParent === true) {
5292
+ this.dropdownWidth = this.dropdownEL.nativeElement.offsetWidth;
5293
+ }
5294
+ else {
5295
+ this.dropdownWidth = 260;
5296
+ }
5296
5297
  setTimeout(function () {
5297
5298
  if (_this.endButtons && _this.endButtons.nativeElement.childNodes.length !== 0) {
5298
5299
  _this.content.nativeElement.style.paddingInlineEnd = _this.endButtons.nativeElement.clientWidth + 'px';
@@ -5444,7 +5445,7 @@ var AXDropdownComponent = /** @class */ (function (_super) {
5444
5445
  AXDropdownComponent = __decorate([
5445
5446
  Component({
5446
5447
  selector: 'ax-drop-down',
5447
- template: "<div class=\"ax form-item {{size}}\" [class.readonly]=\"readonly\" [attr.id]=\"uid\" [class.disabled]=\"disabled\" #el>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\">\r\n <ng-content select=\"ng-container[header]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"showDropDownButton\" [disabled]=\"disabled || readonly\" [loading]=\"loading\" icon=\"far fa-angle-down icon\"\r\n type=\"light blank\" [size]=\"size\" (click)=\"handleArrowClick($event)\" [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n\r\n<ng-template #baseTemplate>\r\n <!-- [ngStyle]=\"{'width': dropdownWidth ? dropdownWidth + 'px' : 'unset'}\" -->\r\n <div class=\"ax-dropdown-container-bordered\" style=\"width: 260px;\">\r\n <ng-content select=\"ng-container[panel]\">\r\n </ng-content>\r\n </div>\r\n</ng-template>",
5448
+ template: "<div class=\"ax form-item {{size}}\" [class.readonly]=\"readonly\" [attr.id]=\"uid\" [class.disabled]=\"disabled\" #el>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\">\r\n <ng-content select=\"ng-container[header]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"showDropDownButton\" [disabled]=\"disabled || readonly\" [loading]=\"loading\" icon=\"far fa-angle-down icon\"\r\n type=\"light blank\" [size]=\"size\" (click)=\"handleArrowClick($event)\" [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n\r\n<ng-template #baseTemplate>\r\n <!-- [ngStyle]=\"{'width': dropdownWidth ? dropdownWidth + 'px' : 'unset'}\" -->\r\n <div class=\"ax-dropdown-container-bordered\" [ngStyle]=\"{'width': dropdownWidth ? dropdownWidth + 'px' : 'unset'}\" >\r\n <ng-content select=\"ng-container[panel]\">\r\n </ng-content>\r\n </div>\r\n</ng-template>",
5448
5449
  encapsulation: ViewEncapsulation.None,
5449
5450
  changeDetection: ChangeDetectionStrategy.OnPush,
5450
5451
  host: { style: 'display:contents;' },
@@ -5585,8 +5586,8 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
5585
5586
  if (_this.showToday && !_this.value) {
5586
5587
  _this.selectToday();
5587
5588
  }
5588
- console.log(Boolean(_this.dropdown.dropdownWidth > 200));
5589
- if (_this.dropdown.dropdownWidth > 200) {
5589
+ debugger;
5590
+ if (_this.dropdown.dropdownWidth > 200 || _this.dropdown.dropdownWidth < 200) {
5590
5591
  _this.dropdown.dropdownWidth = 250;
5591
5592
  }
5592
5593
  _this.cdr.markForCheck();