@dev-tcloud/tcloud-ui 2.3.3 → 2.3.5
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/esm2022/lib/_directives/tooltip/tooltip.directive.mjs +17 -11
- package/esm2022/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.mjs +10 -7
- package/esm2022/lib/_modules/tcloud-ui-modal/services/tcloud-modal.service.mjs +8 -1
- package/esm2022/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.mjs +14 -7
- package/esm2022/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.mjs +28 -3
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.mjs +11 -4
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.mjs +17 -10
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.mjs +17 -10
- package/esm2022/lib/_modules/tcloud-ui-tab-menu/services/tab-menu.service.mjs +10 -1
- package/fesm2022/dev-tcloud-tcloud-ui.mjs +118 -45
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_directives/tooltip/tooltip.directive.d.ts +0 -1
- package/lib/_modules/tcloud-ui-modal/components/tcloud-ui-modal-header/tcloud-ui-modal-header.component.d.ts +4 -2
- package/lib/_modules/tcloud-ui-modal/services/tcloud-modal.service.d.ts +4 -0
- package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.d.ts +2 -2
- package/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.d.ts +3 -1
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-head/tcloud-ui-tab-head.component.d.ts +3 -1
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-subtitle/tcloud-ui-tab-subtitle.component.d.ts +1 -1
- package/lib/_modules/tcloud-ui-tab-menu/components/tcloud-ui-tab-title/tcloud-ui-tab-title.component.d.ts +1 -1
- package/lib/_modules/tcloud-ui-tab-menu/services/tab-menu.service.d.ts +5 -0
- package/package.json +1 -1
- package/scss/components/custom/tab-menu.scss +35 -34
|
@@ -7,7 +7,6 @@ export declare class TCloudUiTooltipDirective {
|
|
|
7
7
|
info_text: string;
|
|
8
8
|
onMouseOver(event: MouseEvent): void;
|
|
9
9
|
onMouseOut(event: MouseEvent): void;
|
|
10
|
-
remove_tooltip(customDiv: any): void;
|
|
11
10
|
set TCtooltip(tooltip: any);
|
|
12
11
|
private _direction;
|
|
13
12
|
set TCdirection(direction: any);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TcloudModalService } from '../../services/tcloud-modal.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TCloudUiModalHeaderComponent implements OnInit {
|
|
4
|
-
|
|
5
|
+
private _tcloudModalService;
|
|
6
|
+
mode: 'colorless' | 'info' | 'success' | 'danger' | 'warning';
|
|
5
7
|
title: any | undefined;
|
|
6
|
-
constructor();
|
|
8
|
+
constructor(_tcloudModalService: TcloudModalService);
|
|
7
9
|
ngOnInit(): void;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TCloudUiModalHeaderComponent, never>;
|
|
9
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<TCloudUiModalHeaderComponent, "tcloud-ui-modal-header", never, { "mode": { "alias": "mode"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TcloudModalService {
|
|
5
5
|
private loading;
|
|
6
|
+
private param_mode;
|
|
6
7
|
private param_confirm;
|
|
7
8
|
private _stateClose;
|
|
8
9
|
stateClose$: Observable<boolean>;
|
|
@@ -12,10 +13,13 @@ export declare class TcloudModalService {
|
|
|
12
13
|
stateRespConfirm$: Observable<boolean>;
|
|
13
14
|
private _stateLoading;
|
|
14
15
|
stateLoading$: Observable<boolean>;
|
|
16
|
+
private _stateMode;
|
|
17
|
+
stateMode$: Observable<string>;
|
|
15
18
|
toModal(action: 'open' | 'close'): void;
|
|
16
19
|
toRespConfirm(resp: boolean): void;
|
|
17
20
|
getParamConfirm(): IConfirm;
|
|
18
21
|
toConfirm(confirm: IConfirm): void;
|
|
22
|
+
toMode(mode: string): void;
|
|
19
23
|
getLoading(): boolean | undefined;
|
|
20
24
|
setLoading(loading: boolean): void;
|
|
21
25
|
fixed_body(fixed: 'on' | 'off'): void;
|
|
@@ -23,8 +23,7 @@ export declare class TCloudUiModalComponent implements OnInit, OnDestroy {
|
|
|
23
23
|
* confirmText string - Texto que deverá ser digitado - defualt Confirmo
|
|
24
24
|
*/
|
|
25
25
|
set confirmText(v: string);
|
|
26
|
-
subscription: Subscription
|
|
27
|
-
subscriptionI: Subscription | undefined;
|
|
26
|
+
subscription: Subscription;
|
|
28
27
|
/**
|
|
29
28
|
* autoClose boolean - Indica se deverá ser fechado quando confirmar uma ação - default true
|
|
30
29
|
*/
|
|
@@ -41,6 +40,7 @@ export declare class TCloudUiModalComponent implements OnInit, OnDestroy {
|
|
|
41
40
|
* window - string - nome referente ao tamanho do modal - não utilizar maxWidth se for utilizar window - default 500 (medium)
|
|
42
41
|
*/
|
|
43
42
|
set window(size: 'small' | 'medium' | 'large' | 'big' | 'full');
|
|
43
|
+
mode: string;
|
|
44
44
|
control_open: boolean;
|
|
45
45
|
private _open;
|
|
46
46
|
/**
|
|
@@ -12,10 +12,12 @@ export declare class TCloudUiProgressBarComponent implements OnInit {
|
|
|
12
12
|
get height(): string;
|
|
13
13
|
progress_class: string;
|
|
14
14
|
height_class: string;
|
|
15
|
+
useDefaultBackground: boolean;
|
|
16
|
+
showValue: boolean;
|
|
15
17
|
constructor();
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
setMode(): void;
|
|
18
20
|
setheight(): void;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TCloudUiProgressBarComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TCloudUiProgressBarComponent, "tcloud-ui-progress-bar", never, { "status": { "alias": "status"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TCloudUiProgressBarComponent, "tcloud-ui-progress-bar", never, { "status": { "alias": "status"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "height": { "alias": "height"; "required": false; }; "useDefaultBackground": { "alias": "useDefaultBackground"; "required": false; }; "showValue": { "alias": "showValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
23
|
}
|
|
@@ -9,7 +9,9 @@ export declare class TCloudUiTabHeadComponent implements OnInit {
|
|
|
9
9
|
ID: string;
|
|
10
10
|
background: boolean;
|
|
11
11
|
backgroundColor: '#FFFFFF' | '#F1F1F1' | 'white' | 'transparent';
|
|
12
|
-
|
|
12
|
+
private _bottom_line;
|
|
13
|
+
set bottom_line(bottom_line: boolean);
|
|
14
|
+
get bottom_line(): boolean;
|
|
13
15
|
constructor(tabMenuService: TabMenuService);
|
|
14
16
|
ngOnInit(): void;
|
|
15
17
|
generateID(): string;
|
|
@@ -10,8 +10,8 @@ export declare class TCloudUiTabSubtitleComponent implements OnInit, OnDestroy {
|
|
|
10
10
|
set disabled(disabled: boolean);
|
|
11
11
|
get disabled(): boolean;
|
|
12
12
|
loading: boolean;
|
|
13
|
+
bottom_line: boolean;
|
|
13
14
|
private subscription;
|
|
14
|
-
private subscription2;
|
|
15
15
|
constructor(tabMenuService: TabMenuService);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
toTab(): void;
|
|
@@ -8,11 +8,11 @@ export declare class TCloudUiTabTitleComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
title: string | undefined;
|
|
9
9
|
active: boolean;
|
|
10
10
|
loading: boolean;
|
|
11
|
+
bottom_line: boolean;
|
|
11
12
|
private _disabled;
|
|
12
13
|
set disabled(disabled: boolean);
|
|
13
14
|
get disabled(): boolean;
|
|
14
15
|
private subscription;
|
|
15
|
-
private subscription2;
|
|
16
16
|
constructor(tabMenuService: TabMenuService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
toTab(): void;
|
|
@@ -7,6 +7,9 @@ export declare class TabMenuService {
|
|
|
7
7
|
private _scroll;
|
|
8
8
|
private scrollSubject;
|
|
9
9
|
scrollState$: import("rxjs").Observable<boolean>;
|
|
10
|
+
private _bottom_line;
|
|
11
|
+
private bottom_lineSubject;
|
|
12
|
+
bottom_lineState$: import("rxjs").Observable<boolean>;
|
|
10
13
|
private _tab;
|
|
11
14
|
private tabSubject;
|
|
12
15
|
tabState$: import("rxjs").Observable<string>;
|
|
@@ -19,6 +22,8 @@ export declare class TabMenuService {
|
|
|
19
22
|
constructor(_route: ActivatedRoute, _router: Router);
|
|
20
23
|
setTabScroll(scroll: boolean): void;
|
|
21
24
|
getTabScroll(): boolean | undefined;
|
|
25
|
+
setTabBottomLine(bottom_line: boolean): void;
|
|
26
|
+
getTabBottomLine(): boolean | undefined;
|
|
22
27
|
setTabLoading(loading: boolean): void;
|
|
23
28
|
getTabLoading(): boolean | undefined;
|
|
24
29
|
setTabfull(full: boolean): void;
|
package/package.json
CHANGED
|
@@ -2,49 +2,50 @@
|
|
|
2
2
|
tcloud-ui-tab-head{
|
|
3
3
|
tcloud-ui-tab-title, tcloud-ui-tab-subtitle {
|
|
4
4
|
flex-grow: 1;
|
|
5
|
-
|
|
6
5
|
button {
|
|
7
|
-
|
|
6
|
+
min-width: 100% !important;
|
|
7
|
+
}
|
|
8
|
+
.tab-title, .tab-subtitle{
|
|
9
|
+
opacity: 0.8;
|
|
10
|
+
}
|
|
11
|
+
.tab-title-active,
|
|
12
|
+
.tab-title:hover,
|
|
13
|
+
.tab-title:focus,
|
|
14
|
+
.tab-subtitle:hover,
|
|
15
|
+
.tab-subtitle:focus{
|
|
16
|
+
opacity: 1 !important;
|
|
8
17
|
}
|
|
9
18
|
}
|
|
10
19
|
}
|
|
11
20
|
}
|
|
12
21
|
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
border-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
padding: 16px 32px !important;
|
|
21
|
-
transition: .3s ease-in-out;
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
:not(.tab-title-active) {
|
|
25
|
-
border-bottom: 4px solid transparent !important;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.tab-subtitle-active {
|
|
31
|
-
border-bottom: 4px solid var(--tc-primary) !important;
|
|
22
|
+
.tc-menu {
|
|
23
|
+
&:has(> tcloud-ui-tab-title){
|
|
24
|
+
border-radius: 10px;
|
|
25
|
+
}
|
|
26
|
+
&:not(.tab-subtitle-line-bottom){
|
|
27
|
+
.bottom-line{
|
|
28
|
+
height: 0px !important;
|
|
32
29
|
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
.bottom-line{
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
height: 4px;
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
.tab-title-active{
|
|
39
|
-
border-bottom: 4px solid var(--tc-primary) !important;
|
|
40
|
-
}
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
tcloud-ui-tab-subtitle,
|
|
40
|
+
tcloud-ui-tab-title{
|
|
41
|
+
.tab-subtitle-active + .bottom-line-hover,
|
|
42
|
+
.tab-title-active + .bottom-line-hover {
|
|
43
|
+
background-color: var(--tc-primary) !important;
|
|
44
|
+
}
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
&:hover{
|
|
47
|
+
.bottom-line-hover{
|
|
48
|
+
background-color: var(--tc-primary) !important;
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|
|
51
|
+
}
|