@acorex/components 3.0.51 → 3.0.55

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.
@@ -1290,6 +1290,7 @@
1290
1290
  this.size = 'md';
1291
1291
  this.selectableHoliday = true;
1292
1292
  this.dayStyle = [];
1293
+ this.dayMinMaxResoan = '';
1293
1294
  this.showTodayButton = false;
1294
1295
  this.matrix = [];
1295
1296
  this.rotated = false;
@@ -1397,7 +1398,13 @@
1397
1398
  return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).text;
1398
1399
  }
1399
1400
  else {
1400
- return '';
1401
+ if ((this.min && this.max && date.compaireNew(new core$1.AXDateTime(this.min, this.type), 'YMD', this.type) === -1) ||
1402
+ date.compaireNew(new core$1.AXDateTime(this.max, this.type), 'YMD', this.type) === 1) {
1403
+ return this.dayMinMaxResoan;
1404
+ }
1405
+ else {
1406
+ return '';
1407
+ }
1401
1408
  }
1402
1409
  };
1403
1410
  AXCalendarBoxComponent.prototype.ngOnInit = function () {
@@ -1684,6 +1691,10 @@
1684
1691
  core.Input(),
1685
1692
  __metadata("design:type", Object)
1686
1693
  ], AXCalendarBoxComponent.prototype, "dayStyle", void 0);
1694
+ __decorate([
1695
+ core.Input(),
1696
+ __metadata("design:type", Object)
1697
+ ], AXCalendarBoxComponent.prototype, "dayMinMaxResoan", void 0);
1687
1698
  __decorate([
1688
1699
  core.Input('showTodayButton'),
1689
1700
  __metadata("design:type", Boolean)
@@ -5574,6 +5585,10 @@
5574
5585
  enumerable: true,
5575
5586
  configurable: true
5576
5587
  });
5588
+ AXDropdownComponent.prototype.updatePosition = function () {
5589
+ var _a;
5590
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
5591
+ };
5577
5592
  AXDropdownComponent.prototype.focus = function () { };
5578
5593
  AXDropdownComponent.ctorParameters = function () { return [
5579
5594
  { type: core.ChangeDetectorRef },
@@ -5654,6 +5669,7 @@
5654
5669
  _this.ref = ref;
5655
5670
  _this.cdr = cdr;
5656
5671
  _this.dayStyle = [];
5672
+ _this.dayMinMaxResoan = '';
5657
5673
  // mmddyyyy: any = [/[0-1]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
5658
5674
  _this.yyyyMMdd = [/[1-2]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-3]/, /[0-9]/];
5659
5675
  _this.ddMMyyyy = [/[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
@@ -5747,6 +5763,7 @@
5747
5763
  return { year: y, monnth: m, day: d };
5748
5764
  };
5749
5765
  AXDatePickerComponent.prototype.textChange = function (e) {
5766
+ debugger;
5750
5767
  this.text = e.value;
5751
5768
  if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10) {
5752
5769
  this.userChange = e.isUserChange;
@@ -5814,6 +5831,9 @@
5814
5831
  }, 100);
5815
5832
  }
5816
5833
  }
5834
+ else {
5835
+ this.text = '';
5836
+ }
5817
5837
  this.userChange = false;
5818
5838
  },
5819
5839
  enumerable: true,
@@ -6309,6 +6329,10 @@
6309
6329
  core.Input(),
6310
6330
  __metadata("design:type", Object)
6311
6331
  ], AXDatePickerComponent.prototype, "dayStyle", void 0);
6332
+ __decorate([
6333
+ core.Input(),
6334
+ __metadata("design:type", Object)
6335
+ ], AXDatePickerComponent.prototype, "dayMinMaxResoan", void 0);
6312
6336
  __decorate([
6313
6337
  core.ContentChild(AXValidation, { static: true }),
6314
6338
  __metadata("design:type", AXValidation)
@@ -6395,7 +6419,7 @@
6395
6419
  AXDatePickerComponent = AXDatePickerComponent_1 = __decorate([
6396
6420
  core.Component({
6397
6421
  selector: 'ax-date-picker',
6398
- template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-calendar-alt\" #dropdown maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <ax-text-box #input [textAlign]=\"textAlign\" [(value)]=\"text\" [readonly]=\"false\" [textMask]=\"dateType\" [disabled]=\"disabled\" [placeholder]=\"placeholder\" [size]=\"size\" (onkey)=\"handleKeyPress($event)\" (onFocus)=\"handleInputFocus()\" (click)=\"handleClick()\"\r\n (onBlur)=\"handleInputBlur()\" (onValueChanged)=\"textChange($event)\"></ax-text-box>\r\n </ng-container>\r\n <ng-container panel>\r\n <ax-calendar-box *ngIf=\"_renderPicker\" [showTodayButton]=\"showTodayButton\" [selectableHoliday]=\"selectableHoliday\" [min]=\"min\" [max]=\"max\" [size]=\"size\" (onClick)=\"onClick($event)\" (onValueChanged)=\"onDateChange($event)\" [type]=\"type\" [(value)]=\"value\"\r\n [dayStyle]=\"dayStyle\">\r\n </ax-calendar-box>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end *ngIf=\"allowClear && value\" [disabled]=\"disabled\" icon=\"far fa-times icon\" type=\"blank danger\" (click)=\"clear()\" [size]=\"size\" [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ax-button end icon=\"far fa-calendar-alt icon\" type=\"light blank\" (click)=\"handleButtonClick()\" [disabled]=\"disabled\" [size]=\"size\" [tabIndex]=\"-1\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
6422
+ template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\"\r\n icon=\"far fa-calendar-alt\" #dropdown maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <ax-text-box #input [textAlign]=\"textAlign\" [(value)]=\"text\" [readonly]=\"false\" [textMask]=\"dateType\"\r\n [disabled]=\"disabled\" [placeholder]=\"placeholder\" [size]=\"size\" (onkey)=\"handleKeyPress($event)\"\r\n (onFocus)=\"handleInputFocus()\" (click)=\"handleClick()\" (onBlur)=\"handleInputBlur()\"\r\n (onValueChanged)=\"textChange($event)\"></ax-text-box>\r\n </ng-container>\r\n <ng-container panel>\r\n <ax-calendar-box *ngIf=\"_renderPicker\" [showTodayButton]=\"showTodayButton\"\r\n [selectableHoliday]=\"selectableHoliday\" [min]=\"min\" [max]=\"max\" [size]=\"size\" (onClick)=\"onClick($event)\"\r\n (onValueChanged)=\"onDateChange($event)\" [type]=\"type\" [(value)]=\"value\" [dayStyle]=\"dayStyle\"\r\n [dayMinMaxResoan]=\"dayMinMaxResoan\">\r\n </ax-calendar-box>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end *ngIf=\"allowClear && value\" [disabled]=\"disabled\" icon=\"far fa-times icon\" type=\"blank danger\"\r\n (click)=\"clear()\" [size]=\"size\" [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ax-button end icon=\"far fa-calendar-alt icon\" type=\"light blank\" (click)=\"handleButtonClick()\"\r\n [disabled]=\"disabled\" [size]=\"size\" [tabIndex]=\"-1\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
6399
6423
  encapsulation: core.ViewEncapsulation.None,
6400
6424
  providers: [{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent_1 }],
6401
6425
  host: { style: 'width: 100%' },
@@ -8634,6 +8658,7 @@
8634
8658
  _this.allowSearch = true;
8635
8659
  _this.textField = 'text';
8636
8660
  _this.valueField = 'value';
8661
+ _this.disabledField = 'disabled';
8637
8662
  _this.mode = 'single';
8638
8663
  _this.itemRemove = false;
8639
8664
  _this.itemsChange = new core.EventEmitter();
@@ -8805,6 +8830,17 @@
8805
8830
  }
8806
8831
  }
8807
8832
  };
8833
+ AXSelectBoxComponent.prototype.isItemDisabled = function (item) {
8834
+ if (item[this.disabledField] == true) {
8835
+ return true;
8836
+ }
8837
+ else if (this.disabledCallback) {
8838
+ return this.disabledCallback({ item: item, index: -1 });
8839
+ }
8840
+ else {
8841
+ return false;
8842
+ }
8843
+ };
8808
8844
  AXSelectBoxComponent.prototype.onButtonClick = function (e) {
8809
8845
  console.log('onButtonClick', e);
8810
8846
  };
@@ -8852,6 +8888,7 @@
8852
8888
  Object.defineProperty(AXSelectBoxComponent.prototype, "selectedValues", {
8853
8889
  get: function () {
8854
8890
  var _this = this;
8891
+ debugger;
8855
8892
  if (this.mode === 'single') {
8856
8893
  return this._selectedItems.map(function (c) { return c[_this.valueField]; })[0];
8857
8894
  }
@@ -8938,6 +8975,8 @@
8938
8975
  }
8939
8976
  };
8940
8977
  AXSelectBoxComponent.prototype.emitSelectionChangedEvent = function () {
8978
+ debugger;
8979
+ this.selectedValuesChange.emit(this.selectedValues);
8941
8980
  this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
8942
8981
  };
8943
8982
  AXSelectBoxComponent.prototype.ngAfterViewInit = function () {
@@ -9055,6 +9094,7 @@
9055
9094
  }
9056
9095
  this.cdr.markForCheck();
9057
9096
  this.cdr.detectChanges();
9097
+ this.dropdown.updatePosition();
9058
9098
  };
9059
9099
  // private params: AXDataSourceReadParams = {};
9060
9100
  AXSelectBoxComponent.prototype.fetch = function (params) {
@@ -9113,37 +9153,39 @@
9113
9153
  };
9114
9154
  AXSelectBoxComponent.prototype.handleItemClick = function (e, item) {
9115
9155
  var _this = this;
9116
- var value = item[this.valueField];
9117
- if (this.mode === 'single') {
9118
- // this.selectedValues = value;
9119
- this.setSelectedValues(value, true);
9120
- }
9121
- else {
9122
- var exists = this.selectedValues.slice(0);
9123
- if (exists.includes(value)) {
9124
- if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
9125
- this.handleItemRemoveClick(item);
9126
- }
9156
+ if (this.isItemDisabled(item) == false) {
9157
+ var value = item[this.valueField];
9158
+ if (this.mode === 'single') {
9159
+ // this.selectedValues = value;
9160
+ this.setSelectedValues(value, true);
9127
9161
  }
9128
9162
  else {
9129
- exists.push(value);
9130
- // this.selectedValues = exists;
9131
- this.setSelectedValues(exists, true);
9163
+ var exists = this.selectedValues.slice(0);
9164
+ if (exists.includes(value)) {
9165
+ if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
9166
+ this.handleItemRemoveClick(item);
9167
+ }
9168
+ }
9169
+ else {
9170
+ exists.push(value);
9171
+ // this.selectedValues = exists;
9172
+ this.setSelectedValues(exists, true);
9173
+ }
9132
9174
  }
9133
- }
9134
- if (this.mode == 'single') {
9135
- this.text = '';
9136
- this.dropdown.close();
9137
- this.cdr.markForCheck();
9138
- }
9139
- // if (e.stopPropagation() == undefined) {
9140
- // e.stopPropagation();
9141
- // }
9142
- setTimeout(function () {
9143
- if (_this.serchBox) {
9144
- _this.serchBox.focus();
9175
+ if (this.mode == 'single') {
9176
+ this.text = '';
9177
+ this.dropdown.close();
9178
+ this.cdr.markForCheck();
9145
9179
  }
9146
- }, 0);
9180
+ // if (e.stopPropagation() == undefined) {
9181
+ // e.stopPropagation();
9182
+ // }
9183
+ setTimeout(function () {
9184
+ if (_this.serchBox) {
9185
+ _this.serchBox.focus();
9186
+ }
9187
+ }, 0);
9188
+ }
9147
9189
  e.stopPropagation();
9148
9190
  };
9149
9191
  AXSelectBoxComponent.prototype.handleKeyEventSearch = function (e) {
@@ -9312,6 +9354,7 @@
9312
9354
  if (e.key === 'Backspace' &&
9313
9355
  e.type === 'keydown' &&
9314
9356
  ((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
9357
+ debugger;
9315
9358
  this.selectedItems.pop();
9316
9359
  this.emitSelectionChangedEvent();
9317
9360
  }
@@ -9573,6 +9616,10 @@
9573
9616
  core.ViewChild('d', { static: true }),
9574
9617
  __metadata("design:type", AXDropdownComponent)
9575
9618
  ], AXSelectBoxComponent.prototype, "dropdown", void 0);
9619
+ __decorate([
9620
+ core.Input(),
9621
+ __metadata("design:type", Function)
9622
+ ], AXSelectBoxComponent.prototype, "disabledCallback", void 0);
9576
9623
  __decorate([
9577
9624
  core.Input(),
9578
9625
  __metadata("design:type", Boolean)
@@ -9585,6 +9632,10 @@
9585
9632
  core.Input(),
9586
9633
  __metadata("design:type", String)
9587
9634
  ], AXSelectBoxComponent.prototype, "valueField", void 0);
9635
+ __decorate([
9636
+ core.Input(),
9637
+ __metadata("design:type", String)
9638
+ ], AXSelectBoxComponent.prototype, "disabledField", void 0);
9588
9639
  __decorate([
9589
9640
  core.Input(),
9590
9641
  __metadata("design:type", String)
@@ -9631,7 +9682,7 @@
9631
9682
  AXSelectBoxComponent = AXSelectBoxComponent_1 = __decorate([
9632
9683
  core.Component({
9633
9684
  selector: 'ax-select-box',
9634
- template: "<ax-drop-down [size]=\"size\" [rtl]=\"rtl\" [showDropDownButton]=\"showDropDownButton\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" #d (dropdownToggle)=\"dropdownToggleSelecBox($event)\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\" [horizontalScroll]=\"40\">\r\n <div class=\"chips\" [class.chips-blank]=\"mode === 'single'\" [title]=\"item[textField]\"\r\n *ngFor=\"let item of selectedItems\">\r\n <span class=\"chips-text\">\r\n {{item[textField]}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\"\r\n *ngIf=\"(readonly!=true || itemRemove ==true)&& disabled!=true && (allowNull==true || (selectedItems.length > 1))\">\r\n <i class=\"far fa-times-circle close\"></i>\r\n </span>\r\n </div>\r\n <div class=\"search-wrapper\" (click)=\"onTextBoxClick($event)\">\r\n <ax-text-box #textBoxSelectBox [textAlign]=\"textAlign\"\r\n [placeholder]=\"selectedItems.length == 0 ? placeholder : ''\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (onkey)=\"handleKeyEvent($event)\" [size]=\"size\"\r\n (onFocus)=\"onFocusTextBox($event)\">\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n <ng-container panel>\r\n <div *ngIf=\"allowSearch\" class=\"search-wrapper\" style=\"padding: 0.7em;\">\r\n <ax-search-box #serchBox [(value)]=\"text\" (onkey)=\"handleKeyEventSearch($event)\"\r\n (textChanged)=\"textChanged($event)\" (onButtonClick)=\"textChanged($event)\">\r\n </ax-search-box>\r\n </div>\r\n <div class=\"ax list-container\">\r\n <div #listContainer style=\"max-height: 300px;overflow-y: auto;width: 100%;\" (scroll)=\"scrolled($event)\">\r\n <ng-container *ngIf=\"getItems().length>0; then thenTemplate; else elseTemplate\"></ng-container>\r\n <ng-template #thenTemplate>\r\n <div class=\"list-item\" *ngFor=\"let item of getItems();let i = index\"\r\n [class.focused]=\"i==currentfocusedIndex\" [class.selected]=\"isItemSelected(item)\"\r\n (click)=\"handleItemClick($event,item)\">\r\n <div style=\"display: flex;\">\r\n <ax-check-box *ngIf=\"showCheckBox\" [size]=\"size\" [value]=\"isItemSelected(item)\"\r\n [disabled]=\"!allowNull && selectedItems.length === 1 && isItemSelected(item)\"\r\n (onClick)=\"handleItemClick($event,item)\">\r\n </ax-check-box>\r\n <ng-container *ngIf=\"rowTemplate; else elseTemplate\">\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n <ng-container *ngTemplateOutlet=\"rowTemplate; context:{ $implicit: item }\">\r\n </ng-container>\r\n </div>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n {{ item[textField] }}\r\n </div>\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </ng-template>\r\n <div *ngIf=\"showLoading\" class=\"ax-pad-sm\" style=\"text-align: center;\">\r\n <i class=\"far fa-spinner-third fa-pulse fa-2x\" style=\"color: var(--ax-primary-color);\"></i>\r\n\r\n </div>\r\n <!-- <ax-loading-indicator ></ax-loading-indicator> -->\r\n <ng-template #elseTemplate>\r\n <ng-container *ngIf=\"showLoading == true; then searchTemplate else noDataTemplate\"></ng-container>\r\n <ng-template #searchTemplate>\r\n <div class=\"list-item\">\r\n {{'common.searching' | trans}}\r\n </div>\r\n </ng-template>\r\n <ng-template #noDataTemplate>\r\n <div class=\"list-item\">\r\n {{'common.noDataFound' | trans}}\r\n </div>\r\n </ng-template>\r\n\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
9685
+ template: "<ax-drop-down [size]=\"size\" [rtl]=\"rtl\" [showDropDownButton]=\"showDropDownButton\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" #d (dropdownToggle)=\"dropdownToggleSelecBox($event)\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\" [horizontalScroll]=\"40\">\r\n <div class=\"chips\" [class.chips-blank]=\"mode === 'single'\" [title]=\"item[textField]\"\r\n *ngFor=\"let item of selectedItems\">\r\n <span class=\"chips-text\">\r\n {{item[textField]}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\"\r\n *ngIf=\"(readonly!=true || itemRemove ==true)&& disabled!=true && (allowNull==true || (selectedItems.length > 1))\">\r\n <i class=\"far fa-times-circle close\"></i>\r\n </span>\r\n </div>\r\n <div class=\"search-wrapper\" (click)=\"onTextBoxClick($event)\">\r\n <ax-text-box #textBoxSelectBox [textAlign]=\"textAlign\"\r\n [placeholder]=\"selectedItems.length == 0 ? placeholder : ''\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (onkey)=\"handleKeyEvent($event)\" [size]=\"size\"\r\n (onFocus)=\"onFocusTextBox($event)\">\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n <ng-container panel>\r\n <div *ngIf=\"allowSearch\" class=\"search-wrapper\" style=\"padding: 0.7em;\">\r\n <ax-search-box #serchBox [(value)]=\"text\" (onkey)=\"handleKeyEventSearch($event)\"\r\n (textChanged)=\"textChanged($event)\" (onButtonClick)=\"textChanged($event)\">\r\n </ax-search-box>\r\n </div>\r\n <div class=\"ax list-container\">\r\n <div #listContainer style=\"max-height: 300px;overflow-y: auto;width: 100%;\" (scroll)=\"scrolled($event)\">\r\n <ng-container *ngIf=\"getItems().length>0; then thenTemplate; else elseTemplate\"></ng-container>\r\n <ng-template #thenTemplate>\r\n <div [class.ax-state-disabled]=\"isItemDisabled(item)\" class=\"list-item\"\r\n *ngFor=\"let item of getItems();let i = index\" [class.focused]=\"i==currentfocusedIndex\"\r\n [class.selected]=\"isItemSelected(item)\" (click)=\"handleItemClick($event,item)\">\r\n <div style=\"display: flex;\">\r\n <ax-check-box *ngIf=\"showCheckBox\" [size]=\"size\" [value]=\"isItemSelected(item)\"\r\n [disabled]=\"(!allowNull && selectedItems.length === 1 && isItemSelected(item)) || isItemDisabled(item)\"\r\n (onClick)=\"handleItemClick($event,item)\">\r\n </ax-check-box>\r\n <ng-container *ngIf=\"rowTemplate; else elseTemplate\">\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n <ng-container *ngTemplateOutlet=\"rowTemplate; context:{ $implicit: item }\">\r\n </ng-container>\r\n </div>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n {{ item[textField] }}\r\n </div>\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </ng-template>\r\n <div *ngIf=\"showLoading\" class=\"ax-pad-sm\" style=\"text-align: center;\">\r\n <i class=\"far fa-spinner-third fa-pulse fa-2x\" style=\"color: var(--ax-primary-color);\"></i>\r\n\r\n </div>\r\n <!-- <ax-loading-indicator ></ax-loading-indicator> -->\r\n <ng-template #elseTemplate>\r\n <ng-container *ngIf=\"showLoading == true; then searchTemplate else noDataTemplate\"></ng-container>\r\n <ng-template #searchTemplate>\r\n <div class=\"list-item\">\r\n {{'common.searching' | trans}}\r\n </div>\r\n </ng-template>\r\n <ng-template #noDataTemplate>\r\n <div class=\"list-item\">\r\n {{'common.noDataFound' | trans}}\r\n </div>\r\n </ng-template>\r\n\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
9635
9686
  encapsulation: core.ViewEncapsulation.None,
9636
9687
  changeDetection: core.ChangeDetectionStrategy.OnPush,
9637
9688
  host: { style: 'width: 100%' },