@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
|
@@ -976,6 +976,7 @@ let AXCalendarBoxComponent = class AXCalendarBoxComponent {
|
|
|
976
976
|
this.size = 'md';
|
|
977
977
|
this.selectableHoliday = true;
|
|
978
978
|
this.dayStyle = [];
|
|
979
|
+
this.dayMinMaxResoan = '';
|
|
979
980
|
this.showTodayButton = false;
|
|
980
981
|
this.matrix = [];
|
|
981
982
|
this.rotated = false;
|
|
@@ -1067,7 +1068,13 @@ let AXCalendarBoxComponent = class AXCalendarBoxComponent {
|
|
|
1067
1068
|
return this.dayStyle.find((c) => c.date.split('T')[0] == date.toISOString().split('T')[0]).text;
|
|
1068
1069
|
}
|
|
1069
1070
|
else {
|
|
1070
|
-
|
|
1071
|
+
if ((this.min && this.max && date.compaireNew(new AXDateTime(this.min, this.type), 'YMD', this.type) === -1) ||
|
|
1072
|
+
date.compaireNew(new AXDateTime(this.max, this.type), 'YMD', this.type) === 1) {
|
|
1073
|
+
return this.dayMinMaxResoan;
|
|
1074
|
+
}
|
|
1075
|
+
else {
|
|
1076
|
+
return '';
|
|
1077
|
+
}
|
|
1071
1078
|
}
|
|
1072
1079
|
}
|
|
1073
1080
|
ngOnInit() {
|
|
@@ -1354,6 +1361,10 @@ __decorate([
|
|
|
1354
1361
|
Input(),
|
|
1355
1362
|
__metadata("design:type", Object)
|
|
1356
1363
|
], AXCalendarBoxComponent.prototype, "dayStyle", void 0);
|
|
1364
|
+
__decorate([
|
|
1365
|
+
Input(),
|
|
1366
|
+
__metadata("design:type", Object)
|
|
1367
|
+
], AXCalendarBoxComponent.prototype, "dayMinMaxResoan", void 0);
|
|
1357
1368
|
__decorate([
|
|
1358
1369
|
Input('showTodayButton'),
|
|
1359
1370
|
__metadata("design:type", Boolean)
|
|
@@ -5051,6 +5062,10 @@ let AXDropdownComponent = class AXDropdownComponent extends AXBaseDropdownCompon
|
|
|
5051
5062
|
get isOpen() {
|
|
5052
5063
|
return this.overlayRef ? this.overlayRef.hasAttached() : false;
|
|
5053
5064
|
}
|
|
5065
|
+
updatePosition() {
|
|
5066
|
+
var _a;
|
|
5067
|
+
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
5068
|
+
}
|
|
5054
5069
|
focus() { }
|
|
5055
5070
|
};
|
|
5056
5071
|
AXDropdownComponent.ctorParameters = () => [
|
|
@@ -5125,6 +5140,7 @@ let AXDatePickerComponent = AXDatePickerComponent_1 = class AXDatePickerComponen
|
|
|
5125
5140
|
this.ref = ref;
|
|
5126
5141
|
this.cdr = cdr;
|
|
5127
5142
|
this.dayStyle = [];
|
|
5143
|
+
this.dayMinMaxResoan = '';
|
|
5128
5144
|
// mmddyyyy: any = [/[0-1]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
5129
5145
|
this.yyyyMMdd = [/[1-2]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-3]/, /[0-9]/];
|
|
5130
5146
|
this.ddMMyyyy = [/[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
@@ -5208,6 +5224,7 @@ let AXDatePickerComponent = AXDatePickerComponent_1 = class AXDatePickerComponen
|
|
|
5208
5224
|
return { year: y, monnth: m, day: d };
|
|
5209
5225
|
}
|
|
5210
5226
|
textChange(e) {
|
|
5227
|
+
debugger;
|
|
5211
5228
|
this.text = e.value;
|
|
5212
5229
|
if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10) {
|
|
5213
5230
|
this.userChange = e.isUserChange;
|
|
@@ -5272,6 +5289,9 @@ let AXDatePickerComponent = AXDatePickerComponent_1 = class AXDatePickerComponen
|
|
|
5272
5289
|
}, 100);
|
|
5273
5290
|
}
|
|
5274
5291
|
}
|
|
5292
|
+
else {
|
|
5293
|
+
this.text = '';
|
|
5294
|
+
}
|
|
5275
5295
|
this.userChange = false;
|
|
5276
5296
|
}
|
|
5277
5297
|
_setDateType() {
|
|
@@ -5761,6 +5781,10 @@ __decorate([
|
|
|
5761
5781
|
Input(),
|
|
5762
5782
|
__metadata("design:type", Object)
|
|
5763
5783
|
], AXDatePickerComponent.prototype, "dayStyle", void 0);
|
|
5784
|
+
__decorate([
|
|
5785
|
+
Input(),
|
|
5786
|
+
__metadata("design:type", Object)
|
|
5787
|
+
], AXDatePickerComponent.prototype, "dayMinMaxResoan", void 0);
|
|
5764
5788
|
__decorate([
|
|
5765
5789
|
ContentChild(AXValidation, { static: true }),
|
|
5766
5790
|
__metadata("design:type", AXValidation)
|
|
@@ -5847,7 +5871,7 @@ __decorate([
|
|
|
5847
5871
|
AXDatePickerComponent = AXDatePickerComponent_1 = __decorate([
|
|
5848
5872
|
Component({
|
|
5849
5873
|
selector: 'ax-date-picker',
|
|
5850
|
-
template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\"
|
|
5874
|
+
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>",
|
|
5851
5875
|
encapsulation: ViewEncapsulation.None,
|
|
5852
5876
|
providers: [{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent_1 }],
|
|
5853
5877
|
host: { style: 'width: 100%' },
|
|
@@ -7928,6 +7952,7 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
7928
7952
|
this.allowSearch = true;
|
|
7929
7953
|
this.textField = 'text';
|
|
7930
7954
|
this.valueField = 'value';
|
|
7955
|
+
this.disabledField = 'disabled';
|
|
7931
7956
|
this.mode = 'single';
|
|
7932
7957
|
this.itemRemove = false;
|
|
7933
7958
|
this.itemsChange = new EventEmitter();
|
|
@@ -8079,6 +8104,17 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8079
8104
|
}
|
|
8080
8105
|
}
|
|
8081
8106
|
}
|
|
8107
|
+
isItemDisabled(item) {
|
|
8108
|
+
if (item[this.disabledField] == true) {
|
|
8109
|
+
return true;
|
|
8110
|
+
}
|
|
8111
|
+
else if (this.disabledCallback) {
|
|
8112
|
+
return this.disabledCallback({ item, index: -1 });
|
|
8113
|
+
}
|
|
8114
|
+
else {
|
|
8115
|
+
return false;
|
|
8116
|
+
}
|
|
8117
|
+
}
|
|
8082
8118
|
onButtonClick(e) {
|
|
8083
8119
|
console.log('onButtonClick', e);
|
|
8084
8120
|
}
|
|
@@ -8122,6 +8158,7 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8122
8158
|
}
|
|
8123
8159
|
}
|
|
8124
8160
|
get selectedValues() {
|
|
8161
|
+
debugger;
|
|
8125
8162
|
if (this.mode === 'single') {
|
|
8126
8163
|
return this._selectedItems.map((c) => c[this.valueField])[0];
|
|
8127
8164
|
}
|
|
@@ -8203,6 +8240,8 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8203
8240
|
}
|
|
8204
8241
|
}
|
|
8205
8242
|
emitSelectionChangedEvent() {
|
|
8243
|
+
debugger;
|
|
8244
|
+
this.selectedValuesChange.emit(this.selectedValues);
|
|
8206
8245
|
this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
|
|
8207
8246
|
}
|
|
8208
8247
|
ngAfterViewInit() {
|
|
@@ -8317,6 +8356,7 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8317
8356
|
}
|
|
8318
8357
|
this.cdr.markForCheck();
|
|
8319
8358
|
this.cdr.detectChanges();
|
|
8359
|
+
this.dropdown.updatePosition();
|
|
8320
8360
|
}
|
|
8321
8361
|
// private params: AXDataSourceReadParams = {};
|
|
8322
8362
|
fetch(params = {}) {
|
|
@@ -8372,37 +8412,39 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8372
8412
|
}
|
|
8373
8413
|
}
|
|
8374
8414
|
handleItemClick(e, item) {
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
else {
|
|
8381
|
-
const exists = this.selectedValues.slice(0);
|
|
8382
|
-
if (exists.includes(value)) {
|
|
8383
|
-
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
8384
|
-
this.handleItemRemoveClick(item);
|
|
8385
|
-
}
|
|
8415
|
+
if (this.isItemDisabled(item) == false) {
|
|
8416
|
+
const value = item[this.valueField];
|
|
8417
|
+
if (this.mode === 'single') {
|
|
8418
|
+
// this.selectedValues = value;
|
|
8419
|
+
this.setSelectedValues(value, true);
|
|
8386
8420
|
}
|
|
8387
8421
|
else {
|
|
8388
|
-
exists.
|
|
8389
|
-
|
|
8390
|
-
|
|
8422
|
+
const exists = this.selectedValues.slice(0);
|
|
8423
|
+
if (exists.includes(value)) {
|
|
8424
|
+
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
8425
|
+
this.handleItemRemoveClick(item);
|
|
8426
|
+
}
|
|
8427
|
+
}
|
|
8428
|
+
else {
|
|
8429
|
+
exists.push(value);
|
|
8430
|
+
// this.selectedValues = exists;
|
|
8431
|
+
this.setSelectedValues(exists, true);
|
|
8432
|
+
}
|
|
8391
8433
|
}
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
this.cdr.markForCheck();
|
|
8397
|
-
}
|
|
8398
|
-
// if (e.stopPropagation() == undefined) {
|
|
8399
|
-
// e.stopPropagation();
|
|
8400
|
-
// }
|
|
8401
|
-
setTimeout(() => {
|
|
8402
|
-
if (this.serchBox) {
|
|
8403
|
-
this.serchBox.focus();
|
|
8434
|
+
if (this.mode == 'single') {
|
|
8435
|
+
this.text = '';
|
|
8436
|
+
this.dropdown.close();
|
|
8437
|
+
this.cdr.markForCheck();
|
|
8404
8438
|
}
|
|
8405
|
-
|
|
8439
|
+
// if (e.stopPropagation() == undefined) {
|
|
8440
|
+
// e.stopPropagation();
|
|
8441
|
+
// }
|
|
8442
|
+
setTimeout(() => {
|
|
8443
|
+
if (this.serchBox) {
|
|
8444
|
+
this.serchBox.focus();
|
|
8445
|
+
}
|
|
8446
|
+
}, 0);
|
|
8447
|
+
}
|
|
8406
8448
|
e.stopPropagation();
|
|
8407
8449
|
}
|
|
8408
8450
|
handleKeyEventSearch(e) {
|
|
@@ -8567,6 +8609,7 @@ let AXSelectBoxComponent = AXSelectBoxComponent_1 = class AXSelectBoxComponent e
|
|
|
8567
8609
|
if (e.key === 'Backspace' &&
|
|
8568
8610
|
e.type === 'keydown' &&
|
|
8569
8611
|
((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
|
|
8612
|
+
debugger;
|
|
8570
8613
|
this.selectedItems.pop();
|
|
8571
8614
|
this.emitSelectionChangedEvent();
|
|
8572
8615
|
}
|
|
@@ -8822,6 +8865,10 @@ __decorate([
|
|
|
8822
8865
|
ViewChild('d', { static: true }),
|
|
8823
8866
|
__metadata("design:type", AXDropdownComponent)
|
|
8824
8867
|
], AXSelectBoxComponent.prototype, "dropdown", void 0);
|
|
8868
|
+
__decorate([
|
|
8869
|
+
Input(),
|
|
8870
|
+
__metadata("design:type", Function)
|
|
8871
|
+
], AXSelectBoxComponent.prototype, "disabledCallback", void 0);
|
|
8825
8872
|
__decorate([
|
|
8826
8873
|
Input(),
|
|
8827
8874
|
__metadata("design:type", Boolean)
|
|
@@ -8834,6 +8881,10 @@ __decorate([
|
|
|
8834
8881
|
Input(),
|
|
8835
8882
|
__metadata("design:type", String)
|
|
8836
8883
|
], AXSelectBoxComponent.prototype, "valueField", void 0);
|
|
8884
|
+
__decorate([
|
|
8885
|
+
Input(),
|
|
8886
|
+
__metadata("design:type", String)
|
|
8887
|
+
], AXSelectBoxComponent.prototype, "disabledField", void 0);
|
|
8837
8888
|
__decorate([
|
|
8838
8889
|
Input(),
|
|
8839
8890
|
__metadata("design:type", String)
|
|
@@ -8880,7 +8931,7 @@ __decorate([
|
|
|
8880
8931
|
AXSelectBoxComponent = AXSelectBoxComponent_1 = __decorate([
|
|
8881
8932
|
Component({
|
|
8882
8933
|
selector: 'ax-select-box',
|
|
8883
|
-
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\"
|
|
8934
|
+
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>",
|
|
8884
8935
|
encapsulation: ViewEncapsulation.None,
|
|
8885
8936
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8886
8937
|
host: { style: 'width: 100%' },
|