@progress/kendo-angular-tooltip 3.1.6 → 4.0.0-dev.202204131841
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/bundles/kendo-angular-tooltip.umd.js +5 -0
- package/{dist/es/constants.d.ts → constants.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/constants.js +0 -0
- package/{dist/es/models/functions.model.js → esm2015/kendo-angular-tooltip.js} +4 -0
- package/esm2015/localization/localized-messages.directive.js +38 -0
- package/{dist/es → esm2015}/main.js +2 -0
- package/{dist/es2015 → esm2015}/models/animation.model.js +1 -0
- package/{dist/es2015 → esm2015}/models/events.js +0 -0
- package/{dist/es2015 → esm2015}/models/functions.model.js +1 -0
- package/{dist/es → esm2015}/models/popover-show-option.type.js +1 -0
- package/{dist/es2015 → esm2015}/models/position.type.js +1 -0
- package/{dist/es → esm2015}/models/show.option.type.js +1 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/popover/anchor.directive.js +22 -19
- package/{dist/es2015 → esm2015}/popover/container.directive.js +24 -23
- package/{dist/es2015 → esm2015}/popover/directives-base.js +13 -12
- package/{dist/es2015 → esm2015}/popover/popover.component.js +118 -108
- package/{dist/es2015 → esm2015}/popover/popover.service.js +9 -9
- package/esm2015/popover/template-directives/actions-template.directive.js +27 -0
- package/esm2015/popover/template-directives/body-template.directive.js +27 -0
- package/esm2015/popover/template-directives/title-template.directive.js +27 -0
- package/{dist/es2015 → esm2015}/popover.module.js +31 -16
- package/{dist/es2015 → esm2015}/tooltip/tooltip.content.component.js +95 -73
- package/{dist/es2015 → esm2015}/tooltip/tooltip.directive.js +57 -80
- package/{dist/es2015 → esm2015}/tooltip/tooltip.settings.js +12 -7
- package/{dist/es2015 → esm2015}/tooltip.module.js +15 -12
- package/{dist/es2015 → esm2015}/tooltips.module.js +12 -9
- package/{dist/es2015 → esm2015}/utils.js +0 -1
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-tooltip.js} +456 -399
- package/{dist/es2015/constants.d.ts → kendo-angular-tooltip.d.ts} +3 -6
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es/main.d.ts → main.d.ts} +3 -0
- package/{dist/es/models → models}/animation.model.d.ts +0 -0
- package/{dist/es/models → models}/events.d.ts +0 -0
- package/{dist/es/models → models}/functions.model.d.ts +0 -0
- package/{dist/es/models → models}/popover-show-option.type.d.ts +0 -0
- package/{dist/es/models → models}/position.type.d.ts +0 -0
- package/{dist/es/models → models}/show.option.type.d.ts +0 -0
- package/{dist/es/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -113
- package/{dist/es2015/popover → popover}/anchor.directive.d.ts +3 -0
- package/{dist/es/popover → popover}/container.directive.d.ts +3 -0
- package/{dist/es2015/popover → popover}/directives-base.d.ts +9 -4
- package/{dist/es2015/popover → popover}/popover.component.d.ts +21 -8
- package/{dist/es/popover → popover}/popover.service.d.ts +7 -4
- package/{dist/es2015/popover → popover}/template-directives/actions-template.directive.d.ts +3 -0
- package/{dist/es2015/popover → popover}/template-directives/body-template.directive.d.ts +3 -0
- package/{dist/es2015/popover → popover}/template-directives/title-template.directive.d.ts +3 -0
- package/popover.module.d.ts +43 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es/tooltip → tooltip}/tooltip.content.component.d.ts +7 -4
- package/{dist/es/tooltip → tooltip}/tooltip.directive.d.ts +5 -1
- package/{dist/es/tooltip → tooltip}/tooltip.settings.d.ts +7 -0
- package/{dist/es2015/tooltip.module.d.ts → tooltip.module.d.ts} +9 -0
- package/{dist/es2015/tooltips.module.d.ts → tooltips.module.d.ts} +6 -0
- package/{dist/es/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-tooltip.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/constants.js +0 -12
- package/dist/es/index.d.ts +0 -12
- package/dist/es/index.js +0 -12
- package/dist/es/index.metadata.json +0 -1
- package/dist/es/localization/localized-messages.directive.d.ts +0 -16
- package/dist/es/localization/localized-messages.directive.js +0 -38
- package/dist/es/models/animation.model.js +0 -4
- package/dist/es/models/events.js +0 -78
- package/dist/es/models/position.type.js +0 -4
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/popover/anchor.directive.d.ts +0 -44
- package/dist/es/popover/anchor.directive.js +0 -156
- package/dist/es/popover/container.directive.js +0 -182
- package/dist/es/popover/directives-base.d.ts +0 -90
- package/dist/es/popover/directives-base.js +0 -294
- package/dist/es/popover/popover.component.d.ts +0 -166
- package/dist/es/popover/popover.component.js +0 -300
- package/dist/es/popover/popover.service.js +0 -88
- package/dist/es/popover/template-directives/actions-template.directive.d.ts +0 -15
- package/dist/es/popover/template-directives/actions-template.directive.js +0 -26
- package/dist/es/popover/template-directives/body-template.directive.d.ts +0 -15
- package/dist/es/popover/template-directives/body-template.directive.js +0 -26
- package/dist/es/popover/template-directives/title-template.directive.d.ts +0 -15
- package/dist/es/popover/template-directives/title-template.directive.js +0 -26
- package/dist/es/popover.module.d.ts +0 -31
- package/dist/es/popover.module.js +0 -65
- package/dist/es/tooltip/tooltip.content.component.js +0 -192
- package/dist/es/tooltip/tooltip.directive.js +0 -452
- package/dist/es/tooltip/tooltip.settings.js +0 -46
- package/dist/es/tooltip.module.d.ts +0 -36
- package/dist/es/tooltip.module.js +0 -57
- package/dist/es/tooltips.module.d.ts +0 -32
- package/dist/es/tooltips.module.js +0 -45
- package/dist/es/utils.js +0 -113
- package/dist/es2015/index.d.ts +0 -12
- package/dist/es2015/index.js +0 -12
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/localized-messages.directive.js +0 -34
- package/dist/es2015/main.d.ts +0 -22
- package/dist/es2015/main.js +0 -18
- package/dist/es2015/models/animation.model.d.ts +0 -9
- package/dist/es2015/models/events.d.ts +0 -78
- package/dist/es2015/models/functions.model.d.ts +0 -17
- package/dist/es2015/models/popover-show-option.type.d.ts +0 -8
- package/dist/es2015/models/popover-show-option.type.js +0 -4
- package/dist/es2015/models/position.type.d.ts +0 -14
- package/dist/es2015/models/show.option.type.d.ts +0 -13
- package/dist/es2015/models/show.option.type.js +0 -4
- package/dist/es2015/package-metadata.d.ts +0 -9
- package/dist/es2015/popover/container.directive.d.ts +0 -56
- package/dist/es2015/popover/popover.service.d.ts +0 -30
- package/dist/es2015/popover/template-directives/actions-template.directive.js +0 -25
- package/dist/es2015/popover/template-directives/body-template.directive.js +0 -25
- package/dist/es2015/popover/template-directives/title-template.directive.js +0 -25
- package/dist/es2015/popover.module.d.ts +0 -31
- package/dist/es2015/tooltip/tooltip.content.component.d.ts +0 -41
- package/dist/es2015/tooltip/tooltip.directive.d.ts +0 -156
- package/dist/es2015/tooltip/tooltip.settings.d.ts +0 -72
- package/dist/es2015/utils.d.ts +0 -34
- package/dist/fesm5/index.js +0 -2071
- package/dist/npm/constants.js +0 -14
- package/dist/npm/index.js +0 -19
- package/dist/npm/localization/localized-messages.directive.js +0 -40
- package/dist/npm/main.js +0 -36
- package/dist/npm/models/animation.model.js +0 -6
- package/dist/npm/models/events.js +0 -80
- package/dist/npm/models/functions.model.js +0 -6
- package/dist/npm/models/popover-show-option.type.js +0 -6
- package/dist/npm/models/position.type.js +0 -6
- package/dist/npm/models/show.option.type.js +0 -6
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popover/anchor.directive.js +0 -158
- package/dist/npm/popover/container.directive.js +0 -184
- package/dist/npm/popover/directives-base.js +0 -296
- package/dist/npm/popover/popover.component.js +0 -302
- package/dist/npm/popover/popover.service.js +0 -90
- package/dist/npm/popover/template-directives/actions-template.directive.js +0 -28
- package/dist/npm/popover/template-directives/body-template.directive.js +0 -28
- package/dist/npm/popover/template-directives/title-template.directive.js +0 -28
- package/dist/npm/popover.module.js +0 -67
- package/dist/npm/tooltip/tooltip.content.component.js +0 -194
- package/dist/npm/tooltip/tooltip.directive.js +0 -454
- package/dist/npm/tooltip/tooltip.settings.js +0 -48
- package/dist/npm/tooltip.module.js +0 -59
- package/dist/npm/tooltips.module.js +0 -47
- package/dist/npm/utils.js +0 -121
- package/dist/systemjs/kendo-angular-tooltip.js +0 -5
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the position of the Tooltip or Popover in relation to the anchor element.
|
|
7
|
-
*
|
|
8
|
-
* The available options are:
|
|
9
|
-
* - `top` (default)—Aligns the tooltip above the `anchor` element.
|
|
10
|
-
* - `bottom`—Aligns the tooltip below the `anchor` element.
|
|
11
|
-
* - `right`—Aligns the tooltip with the rightmost point of the `anchor` element.
|
|
12
|
-
* - `left`—Aligns the tooltip with the leftmost point of the `anchor` element.
|
|
13
|
-
*/
|
|
14
|
-
export declare type Position = 'top' | 'bottom' | 'right' | 'left';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies when the Тooltip will be rendered.
|
|
7
|
-
*
|
|
8
|
-
* The available options are:
|
|
9
|
-
* - `hover`(default)—Tooltip is rendered when its `anchor` element is hovered.
|
|
10
|
-
* - `click`—Tooltip is rendered when its `anchor` element is clicked.
|
|
11
|
-
* - `none`—Tooltip is not rendered in `kendoTooltip` container.
|
|
12
|
-
*/
|
|
13
|
-
export declare type ShowOption = 'hover' | 'click' | 'none';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageMetadata: PackageMetadata;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
-
import { PopupService } from "@progress/kendo-angular-popup";
|
|
7
|
-
import { PopoverDirectivesBase } from './directives-base';
|
|
8
|
-
import { PopoverService } from "./popover.service";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the [`kendoPopoverContainer`]({% slug configuration_popover %}#toc-containerdirective) directive.
|
|
11
|
-
* It is used to filter and target multiple elements, which should display a popover on interaction.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts-no-run
|
|
15
|
-
* <div kendoPopoverContainer [popover]="myPopover" filter=".has-popover">
|
|
16
|
-
* <button class="has-popover">Show Popover</button>
|
|
17
|
-
* <button>Button Without Popover</button>
|
|
18
|
-
* <button class="has-popover">Show Popover</button>
|
|
19
|
-
* </div>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class PopoverContainerDirective extends PopoverDirectivesBase {
|
|
23
|
-
wrapperEl: ElementRef;
|
|
24
|
-
protected ngZone: NgZone;
|
|
25
|
-
protected popupService: PopupService;
|
|
26
|
-
protected renderer: Renderer2;
|
|
27
|
-
protected popoverService: PopoverService;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies a selector for the elements that should display a popover.
|
|
30
|
-
*
|
|
31
|
-
* The possible values include any valid query selector.
|
|
32
|
-
* [See example]({% slug configuration_popover %}#toc-containerdirective)
|
|
33
|
-
*/
|
|
34
|
-
filter: string;
|
|
35
|
-
constructor(wrapperEl: ElementRef, ngZone: NgZone, popupService: PopupService, renderer: Renderer2, popoverService: PopoverService);
|
|
36
|
-
/**
|
|
37
|
-
* Shows the Popover.
|
|
38
|
-
*
|
|
39
|
-
* @param anchor—Specifies the element that will be used as an anchor. The Popover opens relative to that element. [See example]({% slug programmaticcontrol_popover %})
|
|
40
|
-
*/
|
|
41
|
-
show(anchor: Element | ElementRef): void;
|
|
42
|
-
/**
|
|
43
|
-
* Toggles the visibility of the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
44
|
-
*
|
|
45
|
-
* @param anchor—Specifies the element that will be used as an anchor. The Popover opens relative to that element.
|
|
46
|
-
*/
|
|
47
|
-
toggle(anchor: Element | ElementRef): void;
|
|
48
|
-
protected subscribeClick(): void;
|
|
49
|
-
protected mouseenterHandler: (anchor: Element) => void;
|
|
50
|
-
protected mouseleaveHandler: (args: any) => void;
|
|
51
|
-
protected focusHandler: (anchor: Element) => void;
|
|
52
|
-
protected blurHandler: (args: any) => void;
|
|
53
|
-
protected subscribeToEvents(arr: any[]): void;
|
|
54
|
-
private clickHandler;
|
|
55
|
-
private controlVisibility;
|
|
56
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgZone, OnDestroy } from '@angular/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class PopoverService implements OnDestroy {
|
|
11
|
-
private ngZone;
|
|
12
|
-
private _pointerOverPopup;
|
|
13
|
-
private _pointerOverAnchor;
|
|
14
|
-
private _focusInsidePopover;
|
|
15
|
-
private _hidePopover;
|
|
16
|
-
private _isOrigin;
|
|
17
|
-
private originAnchor;
|
|
18
|
-
private currentAnchor;
|
|
19
|
-
private subs;
|
|
20
|
-
constructor(ngZone: NgZone);
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
readonly isPopoverHovered: Observable<any>;
|
|
23
|
-
emitPopoverState(isHovered: boolean): void;
|
|
24
|
-
readonly isAnchorHovered: Observable<any>;
|
|
25
|
-
emitAnchorState(isHovered: boolean, anchor: any): void;
|
|
26
|
-
readonly isFocusInsidePopover: Observable<any>;
|
|
27
|
-
emitFocusInsidePopover(isFocused: boolean): void;
|
|
28
|
-
readonly hidePopover: Observable<any>;
|
|
29
|
-
monitor(): void;
|
|
30
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the Popover actions.
|
|
9
|
-
*
|
|
10
|
-
* To define the template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoPopoverActionsTemplate` directive inside the `<kendo-popover>` tag.
|
|
12
|
-
*/
|
|
13
|
-
let PopoverActionsTemplateDirective = class PopoverActionsTemplateDirective {
|
|
14
|
-
constructor(templateRef) {
|
|
15
|
-
this.templateRef = templateRef;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
PopoverActionsTemplateDirective = tslib_1.__decorate([
|
|
19
|
-
Directive({
|
|
20
|
-
selector: '[kendoPopoverActionsTemplate]'
|
|
21
|
-
}),
|
|
22
|
-
tslib_1.__param(0, Optional()),
|
|
23
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
24
|
-
], PopoverActionsTemplateDirective);
|
|
25
|
-
export { PopoverActionsTemplateDirective };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the Popover body.
|
|
9
|
-
*
|
|
10
|
-
* To define the template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoPopoverBodyTemplate` directive inside the `<kendo-popover>` tag.
|
|
12
|
-
*/
|
|
13
|
-
let PopoverBodyTemplateDirective = class PopoverBodyTemplateDirective {
|
|
14
|
-
constructor(templateRef) {
|
|
15
|
-
this.templateRef = templateRef;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
PopoverBodyTemplateDirective = tslib_1.__decorate([
|
|
19
|
-
Directive({
|
|
20
|
-
selector: '[kendoPopoverBodyTemplate]'
|
|
21
|
-
}),
|
|
22
|
-
tslib_1.__param(0, Optional()),
|
|
23
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
24
|
-
], PopoverBodyTemplateDirective);
|
|
25
|
-
export { PopoverBodyTemplateDirective };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the Popover title.
|
|
9
|
-
*
|
|
10
|
-
* To define the template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoPopoverTitleTemplate` directive inside the `<kendo-popover>` tag.
|
|
12
|
-
*/
|
|
13
|
-
let PopoverTitleTemplateDirective = class PopoverTitleTemplateDirective {
|
|
14
|
-
constructor(templateRef) {
|
|
15
|
-
this.templateRef = templateRef;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
PopoverTitleTemplateDirective = tslib_1.__decorate([
|
|
19
|
-
Directive({
|
|
20
|
-
selector: '[kendoPopoverTitleTemplate]'
|
|
21
|
-
}),
|
|
22
|
-
tslib_1.__param(0, Optional()),
|
|
23
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
24
|
-
], PopoverTitleTemplateDirective);
|
|
25
|
-
export { PopoverTitleTemplateDirective };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
|
-
* definition for the Popover component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
*
|
|
11
|
-
* ```ts-no-run
|
|
12
|
-
* import { PopoverModule } from '@progress/kendo-angular-tooltip';
|
|
13
|
-
*
|
|
14
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
15
|
-
* import { NgModule } from '@angular/core';
|
|
16
|
-
*
|
|
17
|
-
* import { AppComponent } from './app.component';
|
|
18
|
-
*
|
|
19
|
-
* _@NgModule({
|
|
20
|
-
* declarations: [AppComponent],
|
|
21
|
-
* imports: [BrowserModule, PopoverModule],
|
|
22
|
-
* bootstrap: [AppComponent]
|
|
23
|
-
* })
|
|
24
|
-
* export class AppModule {}
|
|
25
|
-
*
|
|
26
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
27
|
-
*
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare class PopoverModule {
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { Position } from '../models/position.type';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class TooltipContentComponent {
|
|
12
|
-
private content;
|
|
13
|
-
private localizationService;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
direction: string;
|
|
18
|
-
close: EventEmitter<any>;
|
|
19
|
-
readonly cssClasses: string;
|
|
20
|
-
readonly className: boolean;
|
|
21
|
-
readonly cssPosition: string;
|
|
22
|
-
tooltipWidth: number;
|
|
23
|
-
tooltipHeight: number;
|
|
24
|
-
titleTemplate?: TemplateRef<any>;
|
|
25
|
-
anchor: ElementRef;
|
|
26
|
-
closable: boolean;
|
|
27
|
-
templateRef?: TemplateRef<any>;
|
|
28
|
-
templateString?: string;
|
|
29
|
-
closeTitle: string;
|
|
30
|
-
callout: boolean;
|
|
31
|
-
position: string;
|
|
32
|
-
private dynamicRTLSubscription;
|
|
33
|
-
constructor(content: ElementRef, localizationService: LocalizationService);
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
|
-
readonly closeButtonTitle: string;
|
|
37
|
-
calloutPositionClass(): string;
|
|
38
|
-
onCloseClick(event: any): void;
|
|
39
|
-
updateCalloutPosition(position: Position, isFlip: boolean): void;
|
|
40
|
-
private calloutStyles;
|
|
41
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, OnDestroy, ElementRef, NgZone, OnChanges, Renderer2, AfterViewChecked } from '@angular/core';
|
|
6
|
-
import { PopupService, PopupRef, Collision } from '@progress/kendo-angular-popup';
|
|
7
|
-
import { TooltipSettings } from './tooltip.settings';
|
|
8
|
-
import { Position } from '../models/position.type';
|
|
9
|
-
import { ShowOption } from '../models/show.option.type';
|
|
10
|
-
/**
|
|
11
|
-
* Represents the [Kendo UI Tooltip directive for Angular]({% slug overview_tooltip %}).
|
|
12
|
-
* Used to display additional information that is related to an element.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts-no-run
|
|
16
|
-
* <div kendoTooltip>
|
|
17
|
-
* <a title="Tooltip title" href="foo">foo</a>
|
|
18
|
-
* </div>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class TooltipDirective implements OnDestroy, OnChanges, AfterViewChecked {
|
|
22
|
-
tooltipWrapper: ElementRef;
|
|
23
|
-
ngZone: NgZone;
|
|
24
|
-
private renderer;
|
|
25
|
-
private popupService;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies a selector for elements within a container which will display a tooltip
|
|
28
|
-
* ([see example]({% slug anchorelements_tooltip %})). The possible values include any
|
|
29
|
-
* DOM `selector`. The default value is `[title]`.
|
|
30
|
-
*/
|
|
31
|
-
filter: string;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the position of the Tooltip that is relative to the
|
|
34
|
-
* anchor element ([see example]({% slug positioning_tooltip %})).
|
|
35
|
-
*
|
|
36
|
-
* The possible values are:
|
|
37
|
-
* * `top` (default)
|
|
38
|
-
* * `bottom`
|
|
39
|
-
* * `left`
|
|
40
|
-
* * `right`
|
|
41
|
-
*/
|
|
42
|
-
position: Position;
|
|
43
|
-
/**
|
|
44
|
-
* Renders the passed template as a header title of the Tooltip
|
|
45
|
-
* ([see example]({% slug anchorelements_tooltip %})).
|
|
46
|
-
*/
|
|
47
|
-
titleTemplate?: TemplateRef<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies when the Тooltip will be rendered
|
|
50
|
-
* ([see example]({% slug programmaticopening_tooltip %})).
|
|
51
|
-
*
|
|
52
|
-
* The possible values are:
|
|
53
|
-
* * `hover` (default)
|
|
54
|
-
* * `click`
|
|
55
|
-
* * `none`
|
|
56
|
-
*/
|
|
57
|
-
showOn: ShowOption;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the delay in milliseconds before the Tooltip is shown.
|
|
60
|
-
* * `100` (default) milliseconds.
|
|
61
|
-
*/
|
|
62
|
-
showAfter: number;
|
|
63
|
-
/**
|
|
64
|
-
* Specifies if the Тooltip will display a callout arrow.
|
|
65
|
-
*
|
|
66
|
-
* The possible values are:
|
|
67
|
-
* * `true` (default)
|
|
68
|
-
* * `false`
|
|
69
|
-
*/
|
|
70
|
-
callout: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Specifies if the Тooltip will display a **Close** button
|
|
73
|
-
* ([see example]({% slug closable_tooltip %})).
|
|
74
|
-
*
|
|
75
|
-
* The possible values are:
|
|
76
|
-
* * `true`
|
|
77
|
-
* * `false`
|
|
78
|
-
*/
|
|
79
|
-
closable: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Specifies the offset in pixels between the Tooltip and the anchor. Defaults to `6` pixels.
|
|
82
|
-
* If the `callout` property is set to `true`, the offset is rendered from the callout arrow.
|
|
83
|
-
* If the `callout` property is set to `false`, the offset is rendered from the content of the Tooltip.
|
|
84
|
-
*/
|
|
85
|
-
offset: number;
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the width of the Тooltip ([see example]({% slug anchorelements_tooltip %})).
|
|
88
|
-
*/
|
|
89
|
-
tooltipWidth: number;
|
|
90
|
-
/**
|
|
91
|
-
* Specifies the height of the Тooltip.
|
|
92
|
-
*/
|
|
93
|
-
tooltipHeight: number;
|
|
94
|
-
/**
|
|
95
|
-
* Specifies a CSS class that will be added to the Tooltip.
|
|
96
|
-
*/
|
|
97
|
-
tooltipClass: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provides screen boundary detection when the Тooltip is shown.
|
|
100
|
-
*/
|
|
101
|
-
collision: Collision;
|
|
102
|
-
/**
|
|
103
|
-
* Specifies the title of the close button.
|
|
104
|
-
*/
|
|
105
|
-
closeTitle: string;
|
|
106
|
-
/**
|
|
107
|
-
* Sets the content of the Tooltip as a template reference
|
|
108
|
-
* ([see example]({% slug templates_tooltip %})).
|
|
109
|
-
*/
|
|
110
|
-
tooltipTemplate: TemplateRef<any>;
|
|
111
|
-
popupRef: PopupRef;
|
|
112
|
-
template: TemplateRef<any>;
|
|
113
|
-
private showTimeout;
|
|
114
|
-
private anchor;
|
|
115
|
-
private mouseOverSubscription;
|
|
116
|
-
private mouseOutSubscription;
|
|
117
|
-
private mouseClickSubscription;
|
|
118
|
-
private anchorTitleSubscription;
|
|
119
|
-
private popupPositionChangeSubscription;
|
|
120
|
-
private popupMouseOutSubscription;
|
|
121
|
-
private closeClickSubscription;
|
|
122
|
-
private validPositions;
|
|
123
|
-
private validShowOptions;
|
|
124
|
-
constructor(tooltipWrapper: ElementRef, ngZone: NgZone, renderer: Renderer2, popupService: PopupService, settings: TooltipSettings, legacySettings: TooltipSettings);
|
|
125
|
-
/**
|
|
126
|
-
* Shows the Tooltip.
|
|
127
|
-
* @param anchor— ElementRef|Element.
|
|
128
|
-
* Specifies the element that will be used as an anchor. The Tooltip opens relative to that element.
|
|
129
|
-
*/
|
|
130
|
-
show(anchor: ElementRef | Element): void;
|
|
131
|
-
/**
|
|
132
|
-
* Hides the Tooltip.
|
|
133
|
-
*/
|
|
134
|
-
hide(): void;
|
|
135
|
-
/**
|
|
136
|
-
* Toggle visibility of the Tooltip.
|
|
137
|
-
*
|
|
138
|
-
* @param anchor— ElementRef|Element. Specifies the element that will be used as an anchor.
|
|
139
|
-
* @param show— Optional. Boolean. Specifies if the Tooltip will be rendered.
|
|
140
|
-
*/
|
|
141
|
-
toggle(anchor: ElementRef | Element, show?: boolean): void;
|
|
142
|
-
ngOnInit(): void;
|
|
143
|
-
ngOnChanges(changes: any): void;
|
|
144
|
-
ngAfterViewChecked(): void;
|
|
145
|
-
ngOnDestroy(): void;
|
|
146
|
-
private showContent;
|
|
147
|
-
private bindContent;
|
|
148
|
-
private hideElementTitle;
|
|
149
|
-
private openPopup;
|
|
150
|
-
private closePopup;
|
|
151
|
-
private subscribeClick;
|
|
152
|
-
private onMouseClick;
|
|
153
|
-
private onMouseOver;
|
|
154
|
-
private onMouseOut;
|
|
155
|
-
private verifyProperties;
|
|
156
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InjectionToken } from '@angular/core';
|
|
6
|
-
import { Position } from '../models/position.type';
|
|
7
|
-
import { ShowOption } from '../models/show.option.type';
|
|
8
|
-
/**
|
|
9
|
-
* Obsolete. Provide the TooltipSettings class instead.
|
|
10
|
-
*
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const TOOLTIP_SETTINGS: InjectionToken<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Provides a global configuration for the Kendo UI Tooltip. Once injected through
|
|
16
|
-
* the `AppComponent` constructor, the configuration properties can be overridden.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* import { TooltipSettings } from '@progress/kendo-angular-tooltip';
|
|
21
|
-
*
|
|
22
|
-
* _@Component({
|
|
23
|
-
* selector: 'my-app',
|
|
24
|
-
* template: `
|
|
25
|
-
* <div kendoTooltip>
|
|
26
|
-
* <button title="Saves the current document">Save</button>
|
|
27
|
-
* </div>`,
|
|
28
|
-
* providers: [{
|
|
29
|
-
* provide: TooltipSettings,
|
|
30
|
-
* useFactory: (): TooltipSettings => ({
|
|
31
|
-
* // Override default values of tooltips if wanted
|
|
32
|
-
* position: 'right'
|
|
33
|
-
* })
|
|
34
|
-
* }]
|
|
35
|
-
* })
|
|
36
|
-
* export class AppComponent { }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare class TooltipSettings {
|
|
40
|
-
/**
|
|
41
|
-
* Specifies if the Тooltip will display a callout arrow.
|
|
42
|
-
*
|
|
43
|
-
* The possible values are:
|
|
44
|
-
* * `true` (default)
|
|
45
|
-
* * `false`
|
|
46
|
-
*/
|
|
47
|
-
callout?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the title of the close button.
|
|
50
|
-
*/
|
|
51
|
-
closeTitle: string;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the position of the Tooltip that is
|
|
54
|
-
* relative to the anchor element.
|
|
55
|
-
*
|
|
56
|
-
* The possible values are:
|
|
57
|
-
* * `top` (default)
|
|
58
|
-
* * `bottom`
|
|
59
|
-
* * `left`
|
|
60
|
-
* * `right`
|
|
61
|
-
*/
|
|
62
|
-
position?: Position;
|
|
63
|
-
/**
|
|
64
|
-
* Specifies when the Тooltip will be rendered.
|
|
65
|
-
*
|
|
66
|
-
* The possible values are:
|
|
67
|
-
* * `hover` (default)
|
|
68
|
-
* * `click`
|
|
69
|
-
* * `none`
|
|
70
|
-
*/
|
|
71
|
-
showOn?: ShowOption;
|
|
72
|
-
}
|
package/dist/es2015/utils.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Position } from './models/position.type';
|
|
6
|
-
import { Collision } from '@progress/kendo-angular-popup';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare function align(position: Position, offset?: number): any;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare function collision(inputcollision: Collision, position: Position): Collision;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare function closestBySelector(element: any, selector: string): any;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare function contains(container: Element, child: Element): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export declare const hasParent: (node: any, parent: any) => any;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export declare function getCenterOffset(item: Element, dir: string, size: string): number;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare function containsItem(collection: any, item: any): boolean;
|