@evotor-dev/ui-kit 6.17.2 → 6.17.3
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/bundles/evotor-dev-ui-kit.umd.js +12 -12
- package/bundles/evotor-dev-ui-kit.umd.js.map +1 -1
- package/esm2015/lib/components/evo-navigation-tabs/evo-navigation-tabs.component.js +13 -13
- package/esm2015/lib/components/evo-navigation-tabs/interfaces/evo-navigation-tab.js +2 -0
- package/esm2015/lib/components/evo-navigation-tabs/public-api.js +3 -2
- package/fesm2015/evotor-dev-ui-kit.js +12 -12
- package/fesm2015/evotor-dev-ui-kit.js.map +1 -1
- package/lib/components/evo-navigation-tabs/evo-navigation-tabs.component.d.ts +6 -9
- package/lib/components/evo-navigation-tabs/interfaces/evo-navigation-tab.d.ts +11 -0
- package/lib/components/evo-navigation-tabs/public-api.d.ts +2 -1
- package/package.json +1 -1
|
@@ -9777,17 +9777,17 @@
|
|
|
9777
9777
|
this.el = el;
|
|
9778
9778
|
this.tabs = [];
|
|
9779
9779
|
this.size = 'normal';
|
|
9780
|
-
this.
|
|
9780
|
+
this.activeTabIndexChange = new i0.EventEmitter();
|
|
9781
9781
|
this.disabled = false;
|
|
9782
|
-
this.
|
|
9782
|
+
this.activeTabIndex = 0;
|
|
9783
9783
|
this.disabledSubject$ = new i3.Subject();
|
|
9784
9784
|
this.nextRenderSubject$ = new i3.Subject();
|
|
9785
9785
|
this.destroy$ = new i3.Subject();
|
|
9786
9786
|
this.initSubscriptions();
|
|
9787
9787
|
}
|
|
9788
|
-
Object.defineProperty(EvoNavigationTabsComponent.prototype, "
|
|
9788
|
+
Object.defineProperty(EvoNavigationTabsComponent.prototype, "setActiveTabIndex", {
|
|
9789
9789
|
set: function (index) {
|
|
9790
|
-
this.
|
|
9790
|
+
this.activeTabIndex = index;
|
|
9791
9791
|
this.markTabAsActive();
|
|
9792
9792
|
},
|
|
9793
9793
|
enumerable: false,
|
|
@@ -9814,11 +9814,11 @@
|
|
|
9814
9814
|
EvoNavigationTabsComponent.prototype.onActivate = function (event, element) {
|
|
9815
9815
|
var index = this.tabsList.findIndex(function (tab) { return tab === element; });
|
|
9816
9816
|
event.stopPropagation();
|
|
9817
|
-
if (index === this.
|
|
9817
|
+
if (index === this.activeTabIndex) {
|
|
9818
9818
|
return;
|
|
9819
9819
|
}
|
|
9820
|
-
this.
|
|
9821
|
-
this.
|
|
9820
|
+
this.activeTabIndexChange.emit(index);
|
|
9821
|
+
this.activeTabIndex = index;
|
|
9822
9822
|
this.markTabAsActive();
|
|
9823
9823
|
};
|
|
9824
9824
|
Object.defineProperty(EvoNavigationTabsComponent.prototype, "tabsList", {
|
|
@@ -9830,7 +9830,7 @@
|
|
|
9830
9830
|
});
|
|
9831
9831
|
Object.defineProperty(EvoNavigationTabsComponent.prototype, "activeElement", {
|
|
9832
9832
|
get: function () {
|
|
9833
|
-
return this.tabsList[this.
|
|
9833
|
+
return this.tabsList[this.activeTabIndex] || undefined;
|
|
9834
9834
|
},
|
|
9835
9835
|
enumerable: false,
|
|
9836
9836
|
configurable: true
|
|
@@ -9868,7 +9868,7 @@
|
|
|
9868
9868
|
return EvoNavigationTabsComponent;
|
|
9869
9869
|
}());
|
|
9870
9870
|
EvoNavigationTabsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EvoNavigationTabsComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9871
|
-
EvoNavigationTabsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EvoNavigationTabsComponent, selector: "evo-navigation-tabs", inputs: { tabs: "tabs", size: "size",
|
|
9871
|
+
EvoNavigationTabsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EvoNavigationTabsComponent, selector: "evo-navigation-tabs", inputs: { tabs: "tabs", size: "size", setActiveTabIndex: ["activeTabIndex", "setActiveTabIndex"], setDisabled: ["disabled", "setDisabled"] }, outputs: { activeTabIndexChange: "activeTabIndexChange" }, host: { listeners: { "evo-tab-activate": "onActivate($event,$event.target)" } }, ngImport: i0__namespace, template: "<div class=\"evo-navigation-tabs\" [class]=\"{ 'evo-navigation-tabs_size_small': size === 'small' }\">\n <ng-content select=\"[position=start]\"></ng-content>\n\n <ng-container *ngFor=\"let tab of tabs; let i = index\">\n <button\n *ngIf=\"tab.routerLink; else simpleTabTemplate\"\n evoNavigationTab\n routerLinkActive=\"active\"\n queryParamsHandling=\"merge\"\n [routerLink]=\"tab.routerLink\"\n [relativeTo]=\"tab.relativeTo\"\n [queryParams]=\"tab.queryParams\"\n [queryParamsHandling]=\"tab.queryParamsHandling\"\n [fragment]=\"tab.fragment\"\n [preserveFragment]=\"tab.preserveFragment\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n [disabled]=\"tab.disabled || disabled\"\n >\n {{ tab.label }}\n </button>\n <ng-template #simpleTabTemplate>\n <button evoNavigationTab [disabled]=\"tab.disabled || disabled\">{{ tab.label }}</button>\n </ng-template>\n </ng-container>\n\n <ng-content></ng-content>\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block}.evo-navigation-tabs{display:flex;box-shadow:inset 0 -1px #c6c6c6;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.evo-navigation-tabs::-webkit-scrollbar{display:none}.evo-navigation-tab{display:flex;align-items:center;box-sizing:border-box;padding:12px 16px;border:none;background:none;color:#212121;white-space:nowrap;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:box-shadow .3s,color .3s;font-family:var(--evo-font);font-style:normal;font-size:14px;line-height:24px;font-weight:600}.evo-navigation-tabs_size_small .evo-navigation-tab{padding:7px 8px;text-transform:none;font-family:var(--evo-font);font-style:normal;font-size:12px;line-height:18px;font-weight:400}.evo-navigation-tab:hover{color:#f05023}.evo-navigation-tab:focus-visible{outline:none}.evo-navigation-tab._active:not(:disabled){color:#f05023;box-shadow:inset 0 -2px #f05023;cursor:default}.evo-navigation-tabs_size_small .evo-navigation-tab._active:not(:disabled){box-shadow:inset 0 -1px #f05023}.evo-navigation-tab:disabled{color:#b0b0b0;pointer-events:none;cursor:default}\n"], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: EvoNavigationTabDirective, selector: "button[evoNavigationTab]:not([routerLink]), button[evoNavigationTab][routerLink][routerLinkActive]" }, { type: i3__namespace$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i3__namespace$2.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
9872
9872
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EvoNavigationTabsComponent, decorators: [{
|
|
9873
9873
|
type: i0.Component,
|
|
9874
9874
|
args: [{
|
|
@@ -9882,13 +9882,13 @@
|
|
|
9882
9882
|
type: i0.Input
|
|
9883
9883
|
}], size: [{
|
|
9884
9884
|
type: i0.Input
|
|
9885
|
-
}],
|
|
9885
|
+
}], setActiveTabIndex: [{
|
|
9886
9886
|
type: i0.Input,
|
|
9887
|
-
args: ['
|
|
9887
|
+
args: ['activeTabIndex']
|
|
9888
9888
|
}], setDisabled: [{
|
|
9889
9889
|
type: i0.Input,
|
|
9890
9890
|
args: ['disabled']
|
|
9891
|
-
}],
|
|
9891
|
+
}], activeTabIndexChange: [{
|
|
9892
9892
|
type: i0.Output
|
|
9893
9893
|
}], onActivate: [{
|
|
9894
9894
|
type: i0.HostListener,
|