@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.
- package/acorex-components.metadata.json +1 -1
- package/bundles/acorex-components.umd.js +81 -30
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/calendar/calendar-box/calendar-box.component.js +13 -2
- package/esm2015/lib/date-picker/date-picker.component.js +11 -2
- package/esm2015/lib/dropdown/dropdown.component.js +5 -1
- package/esm2015/lib/selectbox/selectbox.component.js +56 -29
- package/esm5/lib/calendar/calendar-box/calendar-box.component.js +13 -2
- package/esm5/lib/date-picker/date-picker.component.js +11 -2
- package/esm5/lib/dropdown/dropdown.component.js +5 -1
- package/esm5/lib/selectbox/selectbox.component.js +56 -29
- package/fesm2015/acorex-components.js +81 -30
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +81 -30
- package/fesm5/acorex-components.js.map +1 -1
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +1 -0
- package/lib/date-picker/date-picker.component.d.ts +1 -0
- package/lib/dropdown/dropdown.component.d.ts +1 -0
- package/lib/selectbox/selectbox.component.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1084,6 +1084,7 @@ var AXCalendarBoxComponent = /** @class */ (function () {
|
|
|
1084
1084
|
this.size = 'md';
|
|
1085
1085
|
this.selectableHoliday = true;
|
|
1086
1086
|
this.dayStyle = [];
|
|
1087
|
+
this.dayMinMaxResoan = '';
|
|
1087
1088
|
this.showTodayButton = false;
|
|
1088
1089
|
this.matrix = [];
|
|
1089
1090
|
this.rotated = false;
|
|
@@ -1191,7 +1192,13 @@ var AXCalendarBoxComponent = /** @class */ (function () {
|
|
|
1191
1192
|
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).text;
|
|
1192
1193
|
}
|
|
1193
1194
|
else {
|
|
1194
|
-
|
|
1195
|
+
if ((this.min && this.max && date.compaireNew(new AXDateTime(this.min, this.type), 'YMD', this.type) === -1) ||
|
|
1196
|
+
date.compaireNew(new AXDateTime(this.max, this.type), 'YMD', this.type) === 1) {
|
|
1197
|
+
return this.dayMinMaxResoan;
|
|
1198
|
+
}
|
|
1199
|
+
else {
|
|
1200
|
+
return '';
|
|
1201
|
+
}
|
|
1195
1202
|
}
|
|
1196
1203
|
};
|
|
1197
1204
|
AXCalendarBoxComponent.prototype.ngOnInit = function () {
|
|
@@ -1478,6 +1485,10 @@ var AXCalendarBoxComponent = /** @class */ (function () {
|
|
|
1478
1485
|
Input(),
|
|
1479
1486
|
__metadata("design:type", Object)
|
|
1480
1487
|
], AXCalendarBoxComponent.prototype, "dayStyle", void 0);
|
|
1488
|
+
__decorate([
|
|
1489
|
+
Input(),
|
|
1490
|
+
__metadata("design:type", Object)
|
|
1491
|
+
], AXCalendarBoxComponent.prototype, "dayMinMaxResoan", void 0);
|
|
1481
1492
|
__decorate([
|
|
1482
1493
|
Input('showTodayButton'),
|
|
1483
1494
|
__metadata("design:type", Boolean)
|
|
@@ -5368,6 +5379,10 @@ var AXDropdownComponent = /** @class */ (function (_super) {
|
|
|
5368
5379
|
enumerable: true,
|
|
5369
5380
|
configurable: true
|
|
5370
5381
|
});
|
|
5382
|
+
AXDropdownComponent.prototype.updatePosition = function () {
|
|
5383
|
+
var _a;
|
|
5384
|
+
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
5385
|
+
};
|
|
5371
5386
|
AXDropdownComponent.prototype.focus = function () { };
|
|
5372
5387
|
AXDropdownComponent.ctorParameters = function () { return [
|
|
5373
5388
|
{ type: ChangeDetectorRef },
|
|
@@ -5448,6 +5463,7 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5448
5463
|
_this.ref = ref;
|
|
5449
5464
|
_this.cdr = cdr;
|
|
5450
5465
|
_this.dayStyle = [];
|
|
5466
|
+
_this.dayMinMaxResoan = '';
|
|
5451
5467
|
// mmddyyyy: any = [/[0-1]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
5452
5468
|
_this.yyyyMMdd = [/[1-2]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-3]/, /[0-9]/];
|
|
5453
5469
|
_this.ddMMyyyy = [/[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
@@ -5541,6 +5557,7 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5541
5557
|
return { year: y, monnth: m, day: d };
|
|
5542
5558
|
};
|
|
5543
5559
|
AXDatePickerComponent.prototype.textChange = function (e) {
|
|
5560
|
+
debugger;
|
|
5544
5561
|
this.text = e.value;
|
|
5545
5562
|
if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10) {
|
|
5546
5563
|
this.userChange = e.isUserChange;
|
|
@@ -5608,6 +5625,9 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5608
5625
|
}, 100);
|
|
5609
5626
|
}
|
|
5610
5627
|
}
|
|
5628
|
+
else {
|
|
5629
|
+
this.text = '';
|
|
5630
|
+
}
|
|
5611
5631
|
this.userChange = false;
|
|
5612
5632
|
},
|
|
5613
5633
|
enumerable: true,
|
|
@@ -6103,6 +6123,10 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
6103
6123
|
Input(),
|
|
6104
6124
|
__metadata("design:type", Object)
|
|
6105
6125
|
], AXDatePickerComponent.prototype, "dayStyle", void 0);
|
|
6126
|
+
__decorate([
|
|
6127
|
+
Input(),
|
|
6128
|
+
__metadata("design:type", Object)
|
|
6129
|
+
], AXDatePickerComponent.prototype, "dayMinMaxResoan", void 0);
|
|
6106
6130
|
__decorate([
|
|
6107
6131
|
ContentChild(AXValidation, { static: true }),
|
|
6108
6132
|
__metadata("design:type", AXValidation)
|
|
@@ -6189,7 +6213,7 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
6189
6213
|
AXDatePickerComponent = AXDatePickerComponent_1 = __decorate([
|
|
6190
6214
|
Component({
|
|
6191
6215
|
selector: 'ax-date-picker',
|
|
6192
|
-
template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\"
|
|
6216
|
+
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>",
|
|
6193
6217
|
encapsulation: ViewEncapsulation.None,
|
|
6194
6218
|
providers: [{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent_1 }],
|
|
6195
6219
|
host: { style: 'width: 100%' },
|
|
@@ -8428,6 +8452,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8428
8452
|
_this.allowSearch = true;
|
|
8429
8453
|
_this.textField = 'text';
|
|
8430
8454
|
_this.valueField = 'value';
|
|
8455
|
+
_this.disabledField = 'disabled';
|
|
8431
8456
|
_this.mode = 'single';
|
|
8432
8457
|
_this.itemRemove = false;
|
|
8433
8458
|
_this.itemsChange = new EventEmitter();
|
|
@@ -8599,6 +8624,17 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8599
8624
|
}
|
|
8600
8625
|
}
|
|
8601
8626
|
};
|
|
8627
|
+
AXSelectBoxComponent.prototype.isItemDisabled = function (item) {
|
|
8628
|
+
if (item[this.disabledField] == true) {
|
|
8629
|
+
return true;
|
|
8630
|
+
}
|
|
8631
|
+
else if (this.disabledCallback) {
|
|
8632
|
+
return this.disabledCallback({ item: item, index: -1 });
|
|
8633
|
+
}
|
|
8634
|
+
else {
|
|
8635
|
+
return false;
|
|
8636
|
+
}
|
|
8637
|
+
};
|
|
8602
8638
|
AXSelectBoxComponent.prototype.onButtonClick = function (e) {
|
|
8603
8639
|
console.log('onButtonClick', e);
|
|
8604
8640
|
};
|
|
@@ -8646,6 +8682,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8646
8682
|
Object.defineProperty(AXSelectBoxComponent.prototype, "selectedValues", {
|
|
8647
8683
|
get: function () {
|
|
8648
8684
|
var _this = this;
|
|
8685
|
+
debugger;
|
|
8649
8686
|
if (this.mode === 'single') {
|
|
8650
8687
|
return this._selectedItems.map(function (c) { return c[_this.valueField]; })[0];
|
|
8651
8688
|
}
|
|
@@ -8732,6 +8769,8 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8732
8769
|
}
|
|
8733
8770
|
};
|
|
8734
8771
|
AXSelectBoxComponent.prototype.emitSelectionChangedEvent = function () {
|
|
8772
|
+
debugger;
|
|
8773
|
+
this.selectedValuesChange.emit(this.selectedValues);
|
|
8735
8774
|
this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
|
|
8736
8775
|
};
|
|
8737
8776
|
AXSelectBoxComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -8849,6 +8888,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8849
8888
|
}
|
|
8850
8889
|
this.cdr.markForCheck();
|
|
8851
8890
|
this.cdr.detectChanges();
|
|
8891
|
+
this.dropdown.updatePosition();
|
|
8852
8892
|
};
|
|
8853
8893
|
// private params: AXDataSourceReadParams = {};
|
|
8854
8894
|
AXSelectBoxComponent.prototype.fetch = function (params) {
|
|
@@ -8907,37 +8947,39 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8907
8947
|
};
|
|
8908
8948
|
AXSelectBoxComponent.prototype.handleItemClick = function (e, item) {
|
|
8909
8949
|
var _this = this;
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
else {
|
|
8916
|
-
var exists = this.selectedValues.slice(0);
|
|
8917
|
-
if (exists.includes(value)) {
|
|
8918
|
-
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
8919
|
-
this.handleItemRemoveClick(item);
|
|
8920
|
-
}
|
|
8950
|
+
if (this.isItemDisabled(item) == false) {
|
|
8951
|
+
var value = item[this.valueField];
|
|
8952
|
+
if (this.mode === 'single') {
|
|
8953
|
+
// this.selectedValues = value;
|
|
8954
|
+
this.setSelectedValues(value, true);
|
|
8921
8955
|
}
|
|
8922
8956
|
else {
|
|
8923
|
-
exists.
|
|
8924
|
-
|
|
8925
|
-
|
|
8957
|
+
var exists = this.selectedValues.slice(0);
|
|
8958
|
+
if (exists.includes(value)) {
|
|
8959
|
+
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
8960
|
+
this.handleItemRemoveClick(item);
|
|
8961
|
+
}
|
|
8962
|
+
}
|
|
8963
|
+
else {
|
|
8964
|
+
exists.push(value);
|
|
8965
|
+
// this.selectedValues = exists;
|
|
8966
|
+
this.setSelectedValues(exists, true);
|
|
8967
|
+
}
|
|
8926
8968
|
}
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
this.cdr.markForCheck();
|
|
8932
|
-
}
|
|
8933
|
-
// if (e.stopPropagation() == undefined) {
|
|
8934
|
-
// e.stopPropagation();
|
|
8935
|
-
// }
|
|
8936
|
-
setTimeout(function () {
|
|
8937
|
-
if (_this.serchBox) {
|
|
8938
|
-
_this.serchBox.focus();
|
|
8969
|
+
if (this.mode == 'single') {
|
|
8970
|
+
this.text = '';
|
|
8971
|
+
this.dropdown.close();
|
|
8972
|
+
this.cdr.markForCheck();
|
|
8939
8973
|
}
|
|
8940
|
-
|
|
8974
|
+
// if (e.stopPropagation() == undefined) {
|
|
8975
|
+
// e.stopPropagation();
|
|
8976
|
+
// }
|
|
8977
|
+
setTimeout(function () {
|
|
8978
|
+
if (_this.serchBox) {
|
|
8979
|
+
_this.serchBox.focus();
|
|
8980
|
+
}
|
|
8981
|
+
}, 0);
|
|
8982
|
+
}
|
|
8941
8983
|
e.stopPropagation();
|
|
8942
8984
|
};
|
|
8943
8985
|
AXSelectBoxComponent.prototype.handleKeyEventSearch = function (e) {
|
|
@@ -9106,6 +9148,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
9106
9148
|
if (e.key === 'Backspace' &&
|
|
9107
9149
|
e.type === 'keydown' &&
|
|
9108
9150
|
((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
|
|
9151
|
+
debugger;
|
|
9109
9152
|
this.selectedItems.pop();
|
|
9110
9153
|
this.emitSelectionChangedEvent();
|
|
9111
9154
|
}
|
|
@@ -9367,6 +9410,10 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
9367
9410
|
ViewChild('d', { static: true }),
|
|
9368
9411
|
__metadata("design:type", AXDropdownComponent)
|
|
9369
9412
|
], AXSelectBoxComponent.prototype, "dropdown", void 0);
|
|
9413
|
+
__decorate([
|
|
9414
|
+
Input(),
|
|
9415
|
+
__metadata("design:type", Function)
|
|
9416
|
+
], AXSelectBoxComponent.prototype, "disabledCallback", void 0);
|
|
9370
9417
|
__decorate([
|
|
9371
9418
|
Input(),
|
|
9372
9419
|
__metadata("design:type", Boolean)
|
|
@@ -9379,6 +9426,10 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
9379
9426
|
Input(),
|
|
9380
9427
|
__metadata("design:type", String)
|
|
9381
9428
|
], AXSelectBoxComponent.prototype, "valueField", void 0);
|
|
9429
|
+
__decorate([
|
|
9430
|
+
Input(),
|
|
9431
|
+
__metadata("design:type", String)
|
|
9432
|
+
], AXSelectBoxComponent.prototype, "disabledField", void 0);
|
|
9382
9433
|
__decorate([
|
|
9383
9434
|
Input(),
|
|
9384
9435
|
__metadata("design:type", String)
|
|
@@ -9425,7 +9476,7 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
9425
9476
|
AXSelectBoxComponent = AXSelectBoxComponent_1 = __decorate([
|
|
9426
9477
|
Component({
|
|
9427
9478
|
selector: 'ax-select-box',
|
|
9428
|
-
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\"
|
|
9479
|
+
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>",
|
|
9429
9480
|
encapsulation: ViewEncapsulation.None,
|
|
9430
9481
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9431
9482
|
host: { style: 'width: 100%' },
|