@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.
@@ -5492,13 +5492,14 @@
5492
5492
  }, 5);
5493
5493
  };
5494
5494
  AXDropdownComponent.prototype.ngAfterViewInit = function () {
5495
- // Todo: chech fitparent
5496
- // if (this.fitParent === true) {
5497
- // this.dropdownWidth = this.dropdownEL.nativeElement.offsetWidth;
5498
- // } else {
5499
- // this.dropdownWidth = 260;
5500
- // }
5501
5495
  var _this = this;
5496
+ // Todo: chech fitparent
5497
+ if (this.fitParent === true) {
5498
+ this.dropdownWidth = this.dropdownEL.nativeElement.offsetWidth;
5499
+ }
5500
+ else {
5501
+ this.dropdownWidth = 260;
5502
+ }
5502
5503
  setTimeout(function () {
5503
5504
  if (_this.endButtons && _this.endButtons.nativeElement.childNodes.length !== 0) {
5504
5505
  _this.content.nativeElement.style.paddingInlineEnd = _this.endButtons.nativeElement.clientWidth + 'px';
@@ -5650,7 +5651,7 @@
5650
5651
  AXDropdownComponent = __decorate([
5651
5652
  core.Component({
5652
5653
  selector: 'ax-drop-down',
5653
- 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>",
5654
+ 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>",
5654
5655
  encapsulation: core.ViewEncapsulation.None,
5655
5656
  changeDetection: core.ChangeDetectionStrategy.OnPush,
5656
5657
  host: { style: 'display:contents;' },
@@ -5791,8 +5792,8 @@
5791
5792
  if (_this.showToday && !_this.value) {
5792
5793
  _this.selectToday();
5793
5794
  }
5794
- console.log(Boolean(_this.dropdown.dropdownWidth > 200));
5795
- if (_this.dropdown.dropdownWidth > 200) {
5795
+ debugger;
5796
+ if (_this.dropdown.dropdownWidth > 200 || _this.dropdown.dropdownWidth < 200) {
5796
5797
  _this.dropdown.dropdownWidth = 250;
5797
5798
  }
5798
5799
  _this.cdr.markForCheck();