@aaamb/ngx-design-system 1.5.0 → 1.5.1
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.
|
@@ -2607,21 +2607,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
2607
2607
|
class TabsComponent {
|
|
2608
2608
|
tabs = input.required(...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
2609
2609
|
selectedTabId = input('', ...(ngDevMode ? [{ debugName: "selectedTabId" }] : /* istanbul ignore next */ []));
|
|
2610
|
+
variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2610
2611
|
tabChanged = output();
|
|
2611
2612
|
selectTab(tabId) {
|
|
2612
2613
|
this.tabChanged.emit(tabId);
|
|
2613
2614
|
}
|
|
2614
2615
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2615
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: TabsComponent, isStandalone: true, selector: "ads-tabs", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, selectedTabId: { classPropertyName: "selectedTabId", publicName: "selectedTabId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tabChanged: "tabChanged" }, ngImport: i0, template: `
|
|
2616
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: TabsComponent, isStandalone: true, selector: "ads-tabs", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, selectedTabId: { classPropertyName: "selectedTabId", publicName: "selectedTabId", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tabChanged: "tabChanged" }, ngImport: i0, template: `
|
|
2616
2617
|
<div class="w-full flex items-center justify-between">
|
|
2617
2618
|
<div
|
|
2618
2619
|
class="flex w-full h-full overflow-y-hidden overflow-x-auto border border-neutral-disabled-bg rounded-[0.62rem] scrollbar-green min-w-30"
|
|
2620
|
+
[ngClass]="{
|
|
2621
|
+
'border-0 rounded-none bg-transparent': variant() === 'secondary'
|
|
2622
|
+
}"
|
|
2619
2623
|
>
|
|
2620
2624
|
@for (tab of tabs(); track tab.id) {
|
|
2621
2625
|
<button
|
|
2622
2626
|
class="cursor-pointer border-none flex-1 min-w-44 px-6 h-10 bg-white transition-all duration-300 text-green-base font-normal text-base whitespace-nowrap hover:brightness-90"
|
|
2623
2627
|
[ngClass]="{
|
|
2624
|
-
'
|
|
2628
|
+
'flex-1 min-w-44 px-6 h-10 bg-white text-green-base font-normal text-base': variant() !== 'secondary',
|
|
2629
|
+
'flex-none min-w-0 px-[24px] py-[12px] h-auto bg-transparent text-[var(--Black-400,#888)] font-medium text-sm flex items-center justify-center text-center': variant() === 'secondary',
|
|
2630
|
+
'tab-active': variant() !== 'secondary' && selectedTabId() === tab.id,
|
|
2631
|
+
'tab-active--secondary': variant() === 'secondary' && selectedTabId() === tab.id
|
|
2632
|
+
|
|
2625
2633
|
}"
|
|
2626
2634
|
(click)="selectTab(tab.id)"
|
|
2627
2635
|
[attr.data-testid]="'tab-button-' + tab.id"
|
|
@@ -2632,7 +2640,7 @@ class TabsComponent {
|
|
|
2632
2640
|
}
|
|
2633
2641
|
</div>
|
|
2634
2642
|
</div>
|
|
2635
|
-
`, isInline: true, styles: [".scrollbar-green::-webkit-scrollbar{height:3px}.scrollbar-green::-webkit-scrollbar-track{background:transparent}.scrollbar-green::-webkit-scrollbar-thumb{background:#014744;border-radius:3px}.scrollbar-green::-webkit-scrollbar-thumb:hover{background:#012f2d}.scrollbar-green{scrollbar-width:thin;scrollbar-color:#014744 transparent}.tab-active{background-color:#ddf0ef}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2643
|
+
`, isInline: true, styles: [".scrollbar-green::-webkit-scrollbar{height:3px}.scrollbar-green::-webkit-scrollbar-track{background:transparent}.scrollbar-green::-webkit-scrollbar-thumb{background:#014744;border-radius:3px}.scrollbar-green::-webkit-scrollbar-thumb:hover{background:#012f2d}.scrollbar-green{scrollbar-width:thin;scrollbar-color:#014744 transparent}.tab-active{background-color:#ddf0ef}.tab-active--secondary{background-color:var(--Aqua-950, #014744);color:#fff;border-radius:10px 10px 0 0}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2636
2644
|
}
|
|
2637
2645
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: TabsComponent, decorators: [{
|
|
2638
2646
|
type: Component,
|
|
@@ -2640,12 +2648,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
2640
2648
|
<div class="w-full flex items-center justify-between">
|
|
2641
2649
|
<div
|
|
2642
2650
|
class="flex w-full h-full overflow-y-hidden overflow-x-auto border border-neutral-disabled-bg rounded-[0.62rem] scrollbar-green min-w-30"
|
|
2651
|
+
[ngClass]="{
|
|
2652
|
+
'border-0 rounded-none bg-transparent': variant() === 'secondary'
|
|
2653
|
+
}"
|
|
2643
2654
|
>
|
|
2644
2655
|
@for (tab of tabs(); track tab.id) {
|
|
2645
2656
|
<button
|
|
2646
2657
|
class="cursor-pointer border-none flex-1 min-w-44 px-6 h-10 bg-white transition-all duration-300 text-green-base font-normal text-base whitespace-nowrap hover:brightness-90"
|
|
2647
2658
|
[ngClass]="{
|
|
2648
|
-
'
|
|
2659
|
+
'flex-1 min-w-44 px-6 h-10 bg-white text-green-base font-normal text-base': variant() !== 'secondary',
|
|
2660
|
+
'flex-none min-w-0 px-[24px] py-[12px] h-auto bg-transparent text-[var(--Black-400,#888)] font-medium text-sm flex items-center justify-center text-center': variant() === 'secondary',
|
|
2661
|
+
'tab-active': variant() !== 'secondary' && selectedTabId() === tab.id,
|
|
2662
|
+
'tab-active--secondary': variant() === 'secondary' && selectedTabId() === tab.id
|
|
2663
|
+
|
|
2649
2664
|
}"
|
|
2650
2665
|
(click)="selectTab(tab.id)"
|
|
2651
2666
|
[attr.data-testid]="'tab-button-' + tab.id"
|
|
@@ -2656,8 +2671,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
2656
2671
|
}
|
|
2657
2672
|
</div>
|
|
2658
2673
|
</div>
|
|
2659
|
-
`, styles: [".scrollbar-green::-webkit-scrollbar{height:3px}.scrollbar-green::-webkit-scrollbar-track{background:transparent}.scrollbar-green::-webkit-scrollbar-thumb{background:#014744;border-radius:3px}.scrollbar-green::-webkit-scrollbar-thumb:hover{background:#012f2d}.scrollbar-green{scrollbar-width:thin;scrollbar-color:#014744 transparent}.tab-active{background-color:#ddf0ef}\n"] }]
|
|
2660
|
-
}], propDecorators: { tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: true }] }], selectedTabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedTabId", required: false }] }], tabChanged: [{ type: i0.Output, args: ["tabChanged"] }] } });
|
|
2674
|
+
`, styles: [".scrollbar-green::-webkit-scrollbar{height:3px}.scrollbar-green::-webkit-scrollbar-track{background:transparent}.scrollbar-green::-webkit-scrollbar-thumb{background:#014744;border-radius:3px}.scrollbar-green::-webkit-scrollbar-thumb:hover{background:#012f2d}.scrollbar-green{scrollbar-width:thin;scrollbar-color:#014744 transparent}.tab-active{background-color:#ddf0ef}.tab-active--secondary{background-color:var(--Aqua-950, #014744);color:#fff;border-radius:10px 10px 0 0}\n"] }]
|
|
2675
|
+
}], propDecorators: { tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: true }] }], selectedTabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedTabId", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], tabChanged: [{ type: i0.Output, args: ["tabChanged"] }] } });
|
|
2661
2676
|
|
|
2662
2677
|
class SideNavComponent {
|
|
2663
2678
|
isCollapsed = input(false, ...(ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []));
|