@acorex/components 16.18.27 → 16.18.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
1
|
+
import { Component, Input, Output, EventEmitter, ElementRef, } from '@angular/core';
|
2
2
|
import { AXBaseEvent } from '../base/events.class';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/common";
|
@@ -11,6 +11,7 @@ export class AXTabStripComponent {
|
|
11
11
|
this.ref = ref;
|
12
12
|
}
|
13
13
|
ngOnInit() { }
|
14
|
+
maxWidth;
|
14
15
|
items = [];
|
15
16
|
onTabChanged = new EventEmitter();
|
16
17
|
handleClick(i) {
|
@@ -20,19 +21,21 @@ export class AXTabStripComponent {
|
|
20
21
|
this.onTabChanged.emit({
|
21
22
|
component: this,
|
22
23
|
seledtedTab: i,
|
23
|
-
htmlElement: this.ref.nativeElement
|
24
|
+
htmlElement: this.ref.nativeElement,
|
24
25
|
});
|
25
26
|
}
|
26
27
|
}
|
27
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXTabStripComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
28
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { items: "items" }, outputs: { onTabChanged: "onTabChanged" }, ngImport: i0, template: "<ul
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { maxWidth: "maxWidth", items: "items" }, outputs: { onTabChanged: "onTabChanged" }, ngImport: i0, template: "<ul\n class=\"tab-strip-container\"\n [ngClass]=\"{ 'tab-strip-custom-width': maxWidth }\"\n [style.max-width]=\"maxWidth\"\n>\n <ng-container *ngFor=\"let item of items\">\n <li\n *ngIf=\"!!item.visible || item.visible == undefined\"\n [class.active]=\"item.active\"\n [class.disabled]=\"item.disable\"\n (click)=\"handleClick(item)\"\n >\n {{ item.text }}\n </li>\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
29
30
|
}
|
30
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXTabStripComponent, decorators: [{
|
31
32
|
type: Component,
|
32
|
-
args: [{ selector: 'ax-tab-strip', template: "<ul
|
33
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: {
|
33
|
+
args: [{ selector: 'ax-tab-strip', template: "<ul\n class=\"tab-strip-container\"\n [ngClass]=\"{ 'tab-strip-custom-width': maxWidth }\"\n [style.max-width]=\"maxWidth\"\n>\n <ng-container *ngFor=\"let item of items\">\n <li\n *ngIf=\"!!item.visible || item.visible == undefined\"\n [class.active]=\"item.active\"\n [class.disabled]=\"item.disable\"\n (click)=\"handleClick(item)\"\n >\n {{ item.text }}\n </li>\n </ng-container>\n</ul>\n" }]
|
34
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { maxWidth: [{
|
35
|
+
type: Input
|
36
|
+
}], items: [{
|
34
37
|
type: Input
|
35
38
|
}], onTabChanged: [{
|
36
39
|
type: Output
|
37
40
|
}] } });
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLXN0cmlwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYn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ciAqbmdGb3I9XCJsZXQgaXRlbSBvZiBpdGVtc1wiPlxuICAgIDxsaVxuICAgICAgKm5nSWY9XCIhIWl0ZW0udmlzaWJsZSB8fCBpdGVtLnZpc2libGUgPT0gdW5kZWZpbmVkXCJcbiAgICAgIFtjbGFzcy5hY3RpdmVdPVwiaXRlbS5hY3RpdmVcIlxuICAgICAgW2NsYXNzLmRpc2FibGVkXT1cIml0ZW0uZGlzYWJsZVwiXG4gICAgICAoY2xpY2spPVwiaGFuZGxlQ2xpY2soaXRlbSlcIlxuICAgID5cbiAgICAgIHt7IGl0ZW0udGV4dCB9fVxuICAgIDwvbGk+XG4gIDwvbmctY29udGFpbmVyPlxuPC91bD5cbiJdfQ==
|
@@ -15617,6 +15617,7 @@ class AXTabStripComponent {
|
|
15617
15617
|
this.ref = ref;
|
15618
15618
|
}
|
15619
15619
|
ngOnInit() { }
|
15620
|
+
maxWidth;
|
15620
15621
|
items = [];
|
15621
15622
|
onTabChanged = new EventEmitter();
|
15622
15623
|
handleClick(i) {
|
@@ -15626,17 +15627,19 @@ class AXTabStripComponent {
|
|
15626
15627
|
this.onTabChanged.emit({
|
15627
15628
|
component: this,
|
15628
15629
|
seledtedTab: i,
|
15629
|
-
htmlElement: this.ref.nativeElement
|
15630
|
+
htmlElement: this.ref.nativeElement,
|
15630
15631
|
});
|
15631
15632
|
}
|
15632
15633
|
}
|
15633
15634
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXTabStripComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
15634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { items: "items" }, outputs: { onTabChanged: "onTabChanged" }, ngImport: i0, template: "<ul
|
15635
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { maxWidth: "maxWidth", items: "items" }, outputs: { onTabChanged: "onTabChanged" }, ngImport: i0, template: "<ul\n class=\"tab-strip-container\"\n [ngClass]=\"{ 'tab-strip-custom-width': maxWidth }\"\n [style.max-width]=\"maxWidth\"\n>\n <ng-container *ngFor=\"let item of items\">\n <li\n *ngIf=\"!!item.visible || item.visible == undefined\"\n [class.active]=\"item.active\"\n [class.disabled]=\"item.disable\"\n (click)=\"handleClick(item)\"\n >\n {{ item.text }}\n </li>\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
15635
15636
|
}
|
15636
15637
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXTabStripComponent, decorators: [{
|
15637
15638
|
type: Component,
|
15638
|
-
args: [{ selector: 'ax-tab-strip', template: "<ul
|
15639
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: {
|
15639
|
+
args: [{ selector: 'ax-tab-strip', template: "<ul\n class=\"tab-strip-container\"\n [ngClass]=\"{ 'tab-strip-custom-width': maxWidth }\"\n [style.max-width]=\"maxWidth\"\n>\n <ng-container *ngFor=\"let item of items\">\n <li\n *ngIf=\"!!item.visible || item.visible == undefined\"\n [class.active]=\"item.active\"\n [class.disabled]=\"item.disable\"\n (click)=\"handleClick(item)\"\n >\n {{ item.text }}\n </li>\n </ng-container>\n</ul>\n" }]
|
15640
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { maxWidth: [{
|
15641
|
+
type: Input
|
15642
|
+
}], items: [{
|
15640
15643
|
type: Input
|
15641
15644
|
}], onTabChanged: [{
|
15642
15645
|
type: Output
|