cps-ui-kit 0.51.0 → 0.52.0

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.
@@ -0,0 +1,14 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CpsTabComponent {
4
+ label: string;
5
+ icon: string;
6
+ tooltipText: string;
7
+ tooltipContentClass: string;
8
+ tooltipMaxWidth: number | string;
9
+ tooltipPersistent: boolean;
10
+ content: TemplateRef<any>;
11
+ active: boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabComponent, "cps-tab", never, { "label": "label"; "icon": "icon"; "tooltipText": "tooltipText"; "tooltipContentClass": "tooltipContentClass"; "tooltipMaxWidth": "tooltipMaxWidth"; "tooltipPersistent": "tooltipPersistent"; }, {}, never, ["*"], true, never>;
14
+ }
@@ -0,0 +1,25 @@
1
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter, QueryList } from '@angular/core';
2
+ import { CpsTabComponent } from './cps-tab/cps-tab.component';
3
+ import * as i0 from "@angular/core";
4
+ export interface TabChangeEvent {
5
+ currentTabIndex: number;
6
+ newTabIndex?: number;
7
+ }
8
+ export declare class CpsTabGroupComponent implements AfterContentInit, AfterViewInit {
9
+ private cdRef;
10
+ tabs: QueryList<CpsTabComponent>;
11
+ selectedIndex: number;
12
+ isSubTabs: boolean;
13
+ animationType: 'slide' | 'fade';
14
+ initAllTabsContent: boolean;
15
+ animationState: 'slideLeft' | 'slideRight' | 'fadeIn' | 'fadeOut';
16
+ beforeTabChanged: EventEmitter<TabChangeEvent>;
17
+ afterTabChanged: EventEmitter<TabChangeEvent>;
18
+ constructor(cdRef: ChangeDetectorRef);
19
+ ngAfterContentInit(): void;
20
+ ngAfterViewInit(): void;
21
+ selectTab(newSelectedIndex: number): void;
22
+ get selectedTab(): CpsTabComponent | undefined;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabGroupComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": "selectedIndex"; "isSubTabs": "isSubTabs"; "animationType": "animationType"; "initAllTabsContent": "initAllTabsContent"; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15 - 16",
6
6
  "@angular/core": "15 - 16",
package/public-api.d.ts CHANGED
@@ -22,5 +22,7 @@ export * from './lib/components/cps-progress-linear/cps-progress-linear.componen
22
22
  export * from './lib/components/cps-datepicker/cps-datepicker.component';
23
23
  export * from './lib/components/cps-textarea/cps-textarea.component';
24
24
  export * from './lib/components/cps-button-toggle/cps-button-toggle.component';
25
+ export * from './lib/components/cps-tab-group/cps-tab-group.component';
26
+ export * from './lib/components/cps-tab-group/cps-tab/cps-tab.component';
25
27
  export * from './lib/directives/cps-tooltip.directive';
26
28
  export * from './lib/utils/colors-utils';