@koobiq/components 17.0.0-rc.2 → 17.0.0-rc.4
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/alert/_alert-theme.scss +47 -20
- package/alert/alert.component.d.ts +23 -3
- package/alert/alert.component.scss +89 -56
- package/code-block/_code-block-theme.scss +23 -1
- package/code-block/actionbar.component.scss +2 -2
- package/code-block/code-block.component.d.ts +12 -4
- package/code-block/code-block.scss +36 -9
- package/core/locales/formatters.d.ts +96 -0
- package/core/locales/locale-service.d.ts +96 -0
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/styles/_variables.scss +1 -1
- package/core/styles/common/_tokens.scss +28 -0
- package/core/styles/theming/_components-theming.scss +67 -10
- package/core/styles/theming/_theming.scss +2 -2
- package/core/styles/typography/_typography.scss +35 -2
- package/core/utils/data-size/config.d.ts +20 -2
- package/core/utils/data-size/data-size.pipe.d.ts +10 -9
- package/core/utils/data-size/size.d.ts +3 -4
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/esm2022/alert/alert.component.mjs +52 -5
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +58 -14
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/locales/formatters.mjs +97 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
- package/esm2022/core/utils/data-size/config.mjs +5 -17
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
- package/esm2022/core/utils/data-size/size.mjs +10 -14
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/file-upload/file-upload.module.mjs +4 -5
- package/esm2022/form-field/password-toggle.mjs +11 -9
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +5 -6
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/splitter/splitter.component.mjs +36 -16
- package/esm2022/textarea/textarea.component.mjs +12 -10
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/title/title.directive.mjs +2 -3
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +2 -2
- package/esm2022/toast/toast.type.mjs +3 -1
- package/esm2022/tooltip/tooltip.component.mjs +26 -12
- package/esm2022/tree/padding.directive.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs +52 -5
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +57 -14
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +160 -62
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +3 -3
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +3 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +15 -15
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +4 -5
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +8 -8
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +5 -4
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +35 -15
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +11 -9
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +5 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -2
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +8 -6
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +24 -11
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +1 -1
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/file-upload.module.d.ts +1 -1
- package/form-field/password-toggle.d.ts +3 -2
- package/link/_link-theme.scss +4 -2
- package/navbar/navbar-item.component.d.ts +4 -4
- package/package.json +6 -6
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/select/select-option.directive.d.ts +3 -2
- package/splitter/splitter.component.d.ts +10 -5
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +10 -5
- package/toast/toast-container.component.scss +4 -1
- package/toast/toast.component.scss +22 -17
- package/toast/toast.type.d.ts +2 -0
- package/tooltip/tooltip.component.d.ts +12 -8
|
@@ -52,13 +52,13 @@ function ngAdd(options) {
|
|
|
52
52
|
}
|
|
53
53
|
// Installing dependencies
|
|
54
54
|
addPackageToPackageJson(tree, '@angular/cdk', "^17.2.0");
|
|
55
|
-
addPackageToPackageJson(tree, '@koobiq/cdk', "^17.0.0-rc.
|
|
56
|
-
addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.0-rc.
|
|
55
|
+
addPackageToPackageJson(tree, '@koobiq/cdk', "^17.0.0-rc.4");
|
|
56
|
+
addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.0-rc.4");
|
|
57
57
|
addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.0.2");
|
|
58
58
|
addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.0.2");
|
|
59
59
|
addPackageToPackageJson(tree, '@koobiq/icons', "^7.1.1");
|
|
60
|
-
addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.0.0-
|
|
61
|
-
addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0-
|
|
60
|
+
addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.0.0-rc.2");
|
|
61
|
+
addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0-rc.4");
|
|
62
62
|
addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
|
|
63
63
|
addPackageToPackageJson(tree, 'luxon', "^3.4.4");
|
|
64
64
|
addPackageToPackageJson(tree, 'marked', "^4.0.18");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
3
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
4
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
@@ -10,13 +11,13 @@ export declare class KbqOptionTooltip extends KbqTooltipTrigger implements After
|
|
|
10
11
|
private mutationObserver;
|
|
11
12
|
get textElement(): HTMLElement;
|
|
12
13
|
get isOverflown(): boolean;
|
|
13
|
-
constructor(option: KbqOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
14
|
+
constructor(option: KbqOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
|
14
15
|
ngAfterViewInit(): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
onMouseEnter(): void;
|
|
17
18
|
onMouseLeave(): void;
|
|
18
19
|
onFocus(): void;
|
|
19
20
|
onBlur(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptionTooltip, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptionTooltip, [null, null, null, null, null, null, null, { optional: true; }, null]>;
|
|
21
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqOptionTooltip, "kbq-option", never, {}, {}, never, never, false, never>;
|
|
22
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
interface IArea {
|
|
4
4
|
area: KbqSplitterAreaDirective;
|
|
@@ -64,13 +64,15 @@ export declare class KbqSplitterComponent implements OnInit {
|
|
|
64
64
|
private ngZone;
|
|
65
65
|
private renderer;
|
|
66
66
|
gutterPositionChange: EventEmitter<void>;
|
|
67
|
-
|
|
67
|
+
areas: IArea[];
|
|
68
68
|
gutters: QueryList<KbqGutterDirective>;
|
|
69
69
|
ghost: KbqGutterGhostDirective;
|
|
70
|
+
areaRefs: QueryList<KbqSplitterAreaDirective>;
|
|
70
71
|
get isDragging(): boolean;
|
|
71
72
|
private _isDragging;
|
|
72
73
|
private readonly areaPositionDivider;
|
|
73
74
|
private readonly listeners;
|
|
75
|
+
private areasChangeSubscription;
|
|
74
76
|
get hideGutters(): boolean;
|
|
75
77
|
set hideGutters(value: boolean);
|
|
76
78
|
private _hideGutters;
|
|
@@ -91,18 +93,21 @@ export declare class KbqSplitterComponent implements OnInit {
|
|
|
91
93
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2);
|
|
92
94
|
addArea(area: KbqSplitterAreaDirective): void;
|
|
93
95
|
ngOnInit(): void;
|
|
96
|
+
ngAfterContentInit(): void;
|
|
97
|
+
ngOnDestroy(): void;
|
|
94
98
|
onMouseDown(event: MouseEvent, leftAreaIndex: number, rightAreaIndex: number): void;
|
|
95
99
|
removeArea(area: KbqSplitterAreaDirective): void;
|
|
96
100
|
isVertical(): boolean;
|
|
101
|
+
private mapAndOrderArea;
|
|
97
102
|
private updateGutter;
|
|
98
103
|
private onMouseMove;
|
|
99
104
|
private resizeAreas;
|
|
100
105
|
private onMouseUp;
|
|
101
106
|
private setStyle;
|
|
102
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSplitterComponent, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitterComponent, "kbq-splitter", ["kbqSplitter"], { "hideGutters": { "alias": "hideGutters"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "useGhost": { "alias": "useGhost"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; }, { "gutterPositionChange": "gutterPositionChange"; },
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitterComponent, "kbq-splitter", ["kbqSplitter"], { "hideGutters": { "alias": "hideGutters"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "useGhost": { "alias": "useGhost"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; }, { "gutterPositionChange": "gutterPositionChange"; }, ["areaRefs"], ["*"], false, never>;
|
|
104
109
|
}
|
|
105
|
-
export declare class KbqSplitterAreaDirective implements
|
|
110
|
+
export declare class KbqSplitterAreaDirective implements AfterViewInit, OnDestroy {
|
|
106
111
|
private elementRef;
|
|
107
112
|
private renderer;
|
|
108
113
|
private splitter;
|
|
@@ -110,7 +115,7 @@ export declare class KbqSplitterAreaDirective implements OnInit, OnDestroy {
|
|
|
110
115
|
constructor(elementRef: ElementRef, renderer: Renderer2, splitter: KbqSplitterComponent);
|
|
111
116
|
isResizing(): boolean;
|
|
112
117
|
disableFlex(): void;
|
|
113
|
-
|
|
118
|
+
ngAfterViewInit(): void;
|
|
114
119
|
ngOnDestroy(): void;
|
|
115
120
|
setOrder(order: number): void;
|
|
116
121
|
setSize(size: number): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
3
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
4
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
|
|
@@ -9,12 +10,12 @@ export declare class KbqTimezoneOptionTooltip extends KbqTooltipTrigger implemen
|
|
|
9
10
|
private changeDetectorRef;
|
|
10
11
|
private option;
|
|
11
12
|
private resizeObserver;
|
|
12
|
-
constructor(changeDetectorRef: ChangeDetectorRef, option: KbqTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
13
|
+
constructor(changeDetectorRef: ChangeDetectorRef, option: KbqTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
|
13
14
|
ngAfterViewInit(): void;
|
|
14
15
|
ngOnDestroy(): void;
|
|
15
16
|
onMouseEnter(): void;
|
|
16
17
|
onMouseLeave(): void;
|
|
17
18
|
private checkTooltipDisabled;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTimezoneOptionTooltip, "kbq-timezone-option", never, {}, {}, never, never, false, never>;
|
|
20
21
|
}
|
|
@@ -7,7 +7,6 @@ import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class KbqTitleDirective extends KbqTooltipTrigger implements AfterViewInit {
|
|
10
|
-
private focusMonitor;
|
|
11
10
|
private componentInstance?;
|
|
12
11
|
get isOverflown(): boolean;
|
|
13
12
|
get viewValue(): string;
|
package/toast/_toast-theme.scss
CHANGED
|
@@ -22,16 +22,21 @@
|
|
|
22
22
|
@mixin kbq-toast-theme($theme) {
|
|
23
23
|
$toast: map.get(map.get($theme, components), toast);
|
|
24
24
|
|
|
25
|
-
$contrast: map.get($toast, contrast);
|
|
26
|
-
$error: map.get($toast, error);
|
|
27
|
-
|
|
28
25
|
.kbq-toast {
|
|
29
26
|
&.kbq-toast_contrast {
|
|
30
|
-
@include kbq-toast($contrast);
|
|
27
|
+
@include kbq-toast(map.get($toast, contrast));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.kbq-toast_success {
|
|
31
|
+
@include kbq-toast(map.get($toast, success));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.kbq-toast_warning {
|
|
35
|
+
@include kbq-toast(map.get($toast, success));
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
&.kbq-toast_error {
|
|
34
|
-
@include kbq-toast($error);
|
|
39
|
+
@include kbq-toast(map.get($toast, error));
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -12,5 +12,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
align-items: flex-end;
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
margin-top: var(--kbq-toast-stack-size-margin-top, map.get($tokens, toast-stack-size-margin-top));
|
|
16
|
+
margin-right: var(--kbq-toast-stack-size-margin-right, map.get($tokens, toast-stack-size-margin-right));
|
|
17
|
+
|
|
18
|
+
gap: var(--kbq-toast-stack-size-gap, map.get($tokens, toast-stack-size-gap));
|
|
16
19
|
}
|
|
@@ -10,21 +10,27 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
10
10
|
display: flex;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
max-width: 480px;
|
|
13
|
+
width: var(--kbq-toast-size-container-width, map.get($tokens, toast-size-container-width));
|
|
15
14
|
|
|
16
15
|
height: auto;
|
|
17
16
|
|
|
18
17
|
border-radius: var(--kbq-toast-size-container-border-radius, map.get($tokens, toast-size-container-border-radius));
|
|
19
18
|
|
|
20
|
-
padding:
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
padding-left: var(--kbq-toast-size-container-padding-left, map.get($tokens, toast-size-container-padding-left));
|
|
20
|
+
padding-right: var(--kbq-toast-size-container-padding-right, map.get($tokens, toast-size-container-padding-right));
|
|
21
|
+
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
23
|
+
.kbq-toast__icon-container {
|
|
24
|
+
width: var(--kbq-toast-size-icon-width, map.get($tokens, toast-size-icon-width));
|
|
25
|
+
max-width: var(--kbq-toast-size-icon-width, map.get($tokens, toast-size-icon-width));
|
|
26
|
+
height: var(--kbq-toast-size-icon-height, map.get($tokens, toast-size-icon-height));
|
|
27
|
+
max-height: var(--kbq-toast-size-icon-height, map.get($tokens, toast-size-icon-height));
|
|
28
|
+
|
|
29
|
+
border-radius: var(--kbq-toast-size-border-raius, map.get($tokens, toast-size-border-raius));
|
|
30
|
+
|
|
31
|
+
margin-right: var(--kbq-toast-size-icon-margin-right, map.get($tokens, toast-size-icon-margin-right));
|
|
32
|
+
|
|
33
|
+
padding-top: var(--kbq-toast-size-content-padding-top, map.get($tokens, toast-size-content-padding-top));
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
.kbq-toast__container {
|
|
@@ -33,10 +39,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
33
39
|
|
|
34
40
|
flex: 1;
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
42
|
+
padding-top: var(--kbq-toast-size-content-padding-top, map.get($tokens, toast-size-content-padding-top));
|
|
43
|
+
padding-right: map.get($tokens, size-s);
|
|
44
|
+
padding-bottom: var(--kbq-toast-size-content-padding-bottom, map.get($tokens, toast-size-content-padding-bottom));
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
.kbq-toast__title {
|
|
@@ -45,6 +50,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
|
|
53
|
+
.kbq-toast__title_with-content {
|
|
54
|
+
padding-bottom: var(--kbq-toast-size-caption-padding-bottom, map.get($tokens, toast-size-caption-padding-bottom));
|
|
55
|
+
}
|
|
56
|
+
|
|
48
57
|
.kbq-toast__text {
|
|
49
58
|
display: flex;
|
|
50
59
|
flex: 1;
|
|
@@ -65,10 +74,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
65
74
|
--kbq-toast-size-button-stack-content-gap-horizontal,
|
|
66
75
|
map.get($tokens, toast-size-button-stack-content-gap-horizontal)
|
|
67
76
|
);
|
|
68
|
-
|
|
69
|
-
& * + .kbq-link {
|
|
70
|
-
margin-left: 12px;
|
|
71
|
-
}
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
.kbq-toast__close-button {
|
package/toast/toast.type.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
3
|
import { Overlay, ScrollDispatcher, ScrollStrategy, OverlayConfig } from '@angular/cdk/overlay';
|
|
3
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
4
5
|
import { KbqPopUp, KbqPopUpTrigger, PopUpPlacements, KbqComponentColors } from '@koobiq/components/core';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare enum TooltipModifier {
|
|
@@ -37,7 +38,8 @@ export declare const KBQ_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
|
37
38
|
deps: (typeof Overlay)[];
|
|
38
39
|
useFactory: typeof kbqTooltipScrollStrategyFactory;
|
|
39
40
|
};
|
|
40
|
-
export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipComponent> {
|
|
41
|
+
export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipComponent> implements OnDestroy {
|
|
42
|
+
protected focusMonitor: FocusMonitor;
|
|
41
43
|
get tooltipVisible(): boolean;
|
|
42
44
|
set tooltipVisible(value: boolean);
|
|
43
45
|
get tooltipPlacement(): PopUpPlacements;
|
|
@@ -64,20 +66,22 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
|
|
|
64
66
|
protected originSelector: string;
|
|
65
67
|
protected overlayConfig: OverlayConfig;
|
|
66
68
|
protected modifier: TooltipModifier;
|
|
67
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
69
|
+
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
show(delay?: number): void;
|
|
68
72
|
updateData(): void;
|
|
69
73
|
closingActions(): import("rxjs").Observable<void | MouseEvent>;
|
|
70
74
|
getOverlayHandleComponentType(): Type<KbqTooltipComponent>;
|
|
71
75
|
updateClassMap(newPlacement?: string): void;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTooltipTrigger, [null, null, null, null, null, null, { optional: true; }]>;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTooltipTrigger, [null, null, null, null, null, null, { optional: true; }, null]>;
|
|
73
77
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "kbqVisible"; "required": false; }; "tooltipPlacement": { "alias": "kbqPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "kbqPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "kbqEnterDelay"; "required": false; }; "leaveDelay": { "alias": "kbqLeaveDelay"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "color": { "alias": "kbqTooltipColor"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, false, never>;
|
|
74
78
|
}
|
|
75
79
|
export declare class KbqWarningTooltipTrigger extends KbqTooltipTrigger {
|
|
76
80
|
get content(): string | TemplateRef<any>;
|
|
77
81
|
set content(content: string | TemplateRef<any>);
|
|
78
82
|
protected modifier: TooltipModifier;
|
|
79
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqWarningTooltipTrigger, [null, null, null, null, null, null, { optional: true; }]>;
|
|
83
|
+
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqWarningTooltipTrigger, [null, null, null, null, null, null, { optional: true; }, null]>;
|
|
81
85
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqWarningTooltipTrigger, "[kbqWarningTooltip]", ["kbqWarningTooltip"], { "content": { "alias": "kbqWarningTooltip"; "required": false; }; }, {}, never, never, false, never>;
|
|
82
86
|
}
|
|
83
87
|
export declare class KbqExtendedTooltipTrigger extends KbqTooltipTrigger {
|
|
@@ -87,8 +91,8 @@ export declare class KbqExtendedTooltipTrigger extends KbqTooltipTrigger {
|
|
|
87
91
|
set header(header: string | TemplateRef<any>);
|
|
88
92
|
private _header;
|
|
89
93
|
protected modifier: TooltipModifier;
|
|
90
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
94
|
+
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
|
91
95
|
updateData(): void;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqExtendedTooltipTrigger, [null, null, null, null, null, null, { optional: true; }]>;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqExtendedTooltipTrigger, [null, null, null, null, null, null, { optional: true; }, null]>;
|
|
93
97
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqExtendedTooltipTrigger, "[kbqExtendedTooltip]", ["kbqExtendedTooltip"], { "content": { "alias": "kbqExtendedTooltip"; "required": false; }; "header": { "alias": "kbqTooltipHeader"; "required": false; }; }, {}, never, never, false, never>;
|
|
94
98
|
}
|