cps-ui-kit 0.164.0 → 0.165.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.
- package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +79 -48
- package/esm2020/lib/components/cps-tab-group/cps-tab-group.component.mjs +19 -5
- package/fesm2015/cps-ui-kit.mjs +97 -49
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +94 -49
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +12 -2
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +16 -6
- package/package.json +1 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { IconType } from '../cps-icon/cps-icon.component';
|
|
3
|
+
import { AnimationBuilder } from '@angular/animations';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* CpsExpansionPanelComponent is a component that provides content on expansion.
|
|
6
7
|
* @group Components
|
|
7
8
|
*/
|
|
8
|
-
export declare class CpsExpansionPanelComponent implements OnInit {
|
|
9
|
+
export declare class CpsExpansionPanelComponent implements OnInit, AfterViewInit {
|
|
10
|
+
private _animationBuilder;
|
|
11
|
+
private _renderer;
|
|
9
12
|
/**
|
|
10
13
|
* Title of the expansionPanel element.
|
|
11
14
|
* @group Props
|
|
@@ -68,8 +71,15 @@ export declare class CpsExpansionPanelComponent implements OnInit {
|
|
|
68
71
|
* @group Emits
|
|
69
72
|
*/
|
|
70
73
|
afterExpand: EventEmitter<void>;
|
|
74
|
+
panelContentElem: ElementRef;
|
|
75
|
+
private _contentExpandAnimation;
|
|
76
|
+
private _contentCollapseAnimation;
|
|
77
|
+
private _contentAnimationPlayer;
|
|
78
|
+
constructor(_animationBuilder: AnimationBuilder, _renderer: Renderer2);
|
|
71
79
|
ngOnInit(): void;
|
|
80
|
+
ngAfterViewInit(): void;
|
|
72
81
|
toggleExpansion(): void;
|
|
82
|
+
private _updateContentVisibilityStyles;
|
|
73
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsExpansionPanelComponent, never>;
|
|
74
84
|
static ɵcmp: i0.ɵɵComponentDeclaration<CpsExpansionPanelComponent, "cps-expansion-panel", never, { "headerTitle": "headerTitle"; "backgroundColor": "backgroundColor"; "showChevron": "showChevron"; "isExpanded": "isExpanded"; "disabled": "disabled"; "bordered": "bordered"; "borderRadius": "borderRadius"; "borderColor": "borderColor"; "width": "width"; "prefixIcon": "prefixIcon"; }, { "afterCollapse": "afterCollapse"; "afterExpand": "afterExpand"; }, never, ["*"], true, never>;
|
|
75
85
|
}
|
|
@@ -2,7 +2,7 @@ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEm
|
|
|
2
2
|
import { CpsTabComponent } from './cps-tab/cps-tab.component';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface
|
|
5
|
+
export interface CpsTabChangeEvent {
|
|
6
6
|
previousIndex: number;
|
|
7
7
|
newIndex: number;
|
|
8
8
|
}
|
|
@@ -30,6 +30,16 @@ export declare class CpsTabGroupComponent implements OnInit, AfterContentInit, A
|
|
|
30
30
|
* @group Props
|
|
31
31
|
*/
|
|
32
32
|
alignment: CpsTabsAlignmentType;
|
|
33
|
+
/**
|
|
34
|
+
* Class to apply to the tab content wrapper.
|
|
35
|
+
* @group Props
|
|
36
|
+
*/
|
|
37
|
+
contentWrapClass: string;
|
|
38
|
+
/**
|
|
39
|
+
* Class to apply to the tab header.
|
|
40
|
+
* @group Props
|
|
41
|
+
*/
|
|
42
|
+
headerClass: string;
|
|
33
43
|
/**
|
|
34
44
|
* Determines whether to stretch tabs to fill the available horizontal space.
|
|
35
45
|
* @group Props
|
|
@@ -52,16 +62,16 @@ export declare class CpsTabGroupComponent implements OnInit, AfterContentInit, A
|
|
|
52
62
|
tabsBackground: string;
|
|
53
63
|
/**
|
|
54
64
|
* Callback to invoke before tab change.
|
|
55
|
-
* @param {
|
|
65
|
+
* @param {CpsTabChangeEvent} any - tab change event.
|
|
56
66
|
* @group Emits
|
|
57
67
|
*/
|
|
58
|
-
beforeTabChanged: EventEmitter<
|
|
68
|
+
beforeTabChanged: EventEmitter<CpsTabChangeEvent>;
|
|
59
69
|
/**
|
|
60
70
|
* Callback to invoke after tab change.
|
|
61
|
-
* @param {
|
|
71
|
+
* @param {CpsTabChangeEvent} any - tab change event.
|
|
62
72
|
* @group Emits
|
|
63
73
|
*/
|
|
64
|
-
afterTabChanged: EventEmitter<
|
|
74
|
+
afterTabChanged: EventEmitter<CpsTabChangeEvent>;
|
|
65
75
|
tabsList: ElementRef;
|
|
66
76
|
backBtn?: ElementRef;
|
|
67
77
|
forwardBtn?: ElementRef;
|
|
@@ -90,5 +100,5 @@ export declare class CpsTabGroupComponent implements OnInit, AfterContentInit, A
|
|
|
90
100
|
private _getVisibleButtonWidths;
|
|
91
101
|
private _getWidth;
|
|
92
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabGroupComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": "selectedIndex"; "isSubTabs": "isSubTabs"; "alignment": "alignment"; "stretched": "stretched"; "animationType": "animationType"; "navButtonsBackground": "navButtonsBackground"; "tabsBackground": "tabsBackground"; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": "selectedIndex"; "isSubTabs": "isSubTabs"; "alignment": "alignment"; "contentWrapClass": "contentWrapClass"; "headerClass": "headerClass"; "stretched": "stretched"; "animationType": "animationType"; "navButtonsBackground": "navButtonsBackground"; "tabsBackground": "tabsBackground"; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
|
|
94
104
|
}
|