@acorex/components 3.0.46 → 3.0.47
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 +12 -11
- 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/selection-list/selection-list.component.js +6 -7
- package/esm2015/lib/tab-strip/tab-strip.component.js +11 -9
- package/esm5/lib/selection-list/selection-list.component.js +3 -4
- package/esm5/lib/tab-strip/tab-strip.component.js +11 -9
- package/fesm2015/acorex-components.js +15 -14
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +12 -11
- package/fesm5/acorex-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -4019,8 +4019,7 @@ var AXSelectionListComponent = /** @class */ (function (_super) {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
4021
|
};
|
|
4022
|
-
AXSelectionListComponent.prototype.focus = function () {
|
|
4023
|
-
};
|
|
4022
|
+
AXSelectionListComponent.prototype.focus = function () { };
|
|
4024
4023
|
AXSelectionListComponent.prototype.onvalueChanged = function (e) {
|
|
4025
4024
|
if (!this.disabled) {
|
|
4026
4025
|
this.selectedItemsChange.emit([e]);
|
|
@@ -4086,7 +4085,7 @@ var AXSelectionListComponent = /** @class */ (function (_super) {
|
|
|
4086
4085
|
AXSelectionListComponent = __decorate([
|
|
4087
4086
|
Component({
|
|
4088
4087
|
selector: 'ax-selection-list',
|
|
4089
|
-
template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"disabled\"
|
|
4088
|
+
template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" [value]=\"selectedValues.indexOf(item[valueField])>-1\"\r\n (onValueChanged)=\"onCheckValueChange(item[valueField],$event.value)\">\r\n </ax-check-box>\r\n </div>\r\n</ng-template>\r\n<ng-template #radioButtonList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <label class=\"ax radio\" for=\"{{uid}}\" [class.disabled]=\"disabled\" [class.readonly]=\"disabled\"\r\n *ngFor=\"let item of items\" (click)=\"onvalueChanged(item)\">\r\n {{ item[textField] }}\r\n <input type=\"radio\" (change)=\"onCheckValueChange(item[valueField],true)\" [value]=\"item[valueField]\"\r\n [checked]=\"selectedValues==item[valueField]\" [name]=\"uid\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" />\r\n <span class=\"checkmark\"></span>\r\n </label>\r\n </div>\r\n</ng-template>",
|
|
4090
4089
|
encapsulation: ViewEncapsulation.None,
|
|
4091
4090
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4092
4091
|
}),
|
|
@@ -11640,13 +11639,15 @@ var AXTabStripComponent = /** @class */ (function () {
|
|
|
11640
11639
|
}
|
|
11641
11640
|
AXTabStripComponent.prototype.ngOnInit = function () { };
|
|
11642
11641
|
AXTabStripComponent.prototype.handleClick = function (i) {
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11642
|
+
if (!i.disable) {
|
|
11643
|
+
this.items.forEach(function (c) { return (c.active = false); });
|
|
11644
|
+
i.active = true;
|
|
11645
|
+
this.onTabChanged.emit({
|
|
11646
|
+
component: this,
|
|
11647
|
+
seledtedTab: i,
|
|
11648
|
+
htmlElement: this.ref.nativeElement
|
|
11649
|
+
});
|
|
11650
|
+
}
|
|
11650
11651
|
};
|
|
11651
11652
|
AXTabStripComponent.ctorParameters = function () { return [
|
|
11652
11653
|
{ type: ElementRef }
|
|
@@ -11662,7 +11663,7 @@ var AXTabStripComponent = /** @class */ (function () {
|
|
|
11662
11663
|
AXTabStripComponent = __decorate([
|
|
11663
11664
|
Component({
|
|
11664
11665
|
selector: 'ax-tab-strip',
|
|
11665
|
-
template: "<ul class=\"tab-strip-container\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <li [class.active]=\"item.active\" (click)=\"handleClick(item)\">{{item.text}}</li>\r\n </ng-container>\r\n</ul>"
|
|
11666
|
+
template: "<ul class=\"tab-strip-container\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <li *ngIf=\"!!item.visible || item.visible == undefined\" [class.active]=\"item.active\"\r\n [class.disabled]=\"item.disable\" (click)=\"handleClick(item)\">{{item.text}}</li>\r\n </ng-container>\r\n</ul>"
|
|
11666
11667
|
}),
|
|
11667
11668
|
__metadata("design:paramtypes", [ElementRef])
|
|
11668
11669
|
], AXTabStripComponent);
|