@progress/kendo-angular-tooltip 3.1.6-dev.202203011325 → 4.0.0-next.202203021431
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 +16 -18
- package/{dist/es2015 → esm2015}/popover/container.directive.js +18 -22
- package/{dist/es2015 → esm2015}/popover/directives-base.js +13 -12
- package/{dist/es2015 → esm2015}/popover/popover.component.js +110 -106
- 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 +8 -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} +432 -395
- 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} +2 -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 +13 -6
- 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/es2015/tooltip → tooltip}/tooltip.settings.d.ts +3 -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.d.ts +0 -72
- 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/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
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { InjectionToken, Injectable,
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Injectable, forwardRef, Directive, Input, EventEmitter, Component, HostBinding, Output, isDevMode, Optional, Inject, ContentChild, ElementRef, NgModule } from '@angular/core';
|
|
7
7
|
import { filter, debounceTime, take, auditTime } from 'rxjs/operators';
|
|
8
8
|
import { fromEvent, Subscription, BehaviorSubject, Subject, combineLatest } from 'rxjs';
|
|
9
|
-
import { PopupService, PopupModule } from '@progress/kendo-angular-popup';
|
|
10
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
10
|
+
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
|
+
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import * as i2 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
|
14
|
+
import * as i1$1 from '@progress/kendo-angular-popup';
|
|
15
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
16
|
+
import { PreventableEvent, isDocumentAvailable, closest, hasObservers } from '@progress/kendo-angular-common';
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
* @hidden
|
|
@@ -19,7 +22,7 @@ const packageMetadata = {
|
|
|
19
22
|
name: '@progress/kendo-angular-tooltip',
|
|
20
23
|
productName: 'Kendo UI for Angular',
|
|
21
24
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
22
|
-
publishDate:
|
|
25
|
+
publishDate: 1646231440,
|
|
23
26
|
version: '',
|
|
24
27
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
25
28
|
};
|
|
@@ -55,11 +58,13 @@ const TOOLTIP_SETTINGS = new InjectionToken('kendo-ui-tooltip-settings');
|
|
|
55
58
|
* export class AppComponent { }
|
|
56
59
|
* ```
|
|
57
60
|
*/
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
TooltipSettings =
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
class TooltipSettings {
|
|
62
|
+
}
|
|
63
|
+
TooltipSettings.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
TooltipSettings.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings });
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings, decorators: [{
|
|
66
|
+
type: Injectable
|
|
67
|
+
}] });
|
|
63
68
|
|
|
64
69
|
/**
|
|
65
70
|
* @hidden
|
|
@@ -144,7 +149,6 @@ function contains(container, child) {
|
|
|
144
149
|
return container.contains(child);
|
|
145
150
|
}
|
|
146
151
|
if (container.compareDocumentPosition) {
|
|
147
|
-
// tslint:disable-next-line
|
|
148
152
|
return !!(container.compareDocumentPosition(child) & Node.DOCUMENT_POSITION_CONTAINED_BY);
|
|
149
153
|
}
|
|
150
154
|
}
|
|
@@ -174,7 +178,38 @@ function containsItem(collection, item) {
|
|
|
174
178
|
/**
|
|
175
179
|
* @hidden
|
|
176
180
|
*/
|
|
177
|
-
|
|
181
|
+
class LocalizedMessagesDirective extends ComponentMessages {
|
|
182
|
+
constructor(service) {
|
|
183
|
+
super();
|
|
184
|
+
this.service = service;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
188
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "[kendoTooltipLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
|
|
189
|
+
{
|
|
190
|
+
provide: ComponentMessages,
|
|
191
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
192
|
+
}
|
|
193
|
+
], usesInheritance: true, ngImport: i0 });
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
195
|
+
type: Directive,
|
|
196
|
+
args: [{
|
|
197
|
+
providers: [
|
|
198
|
+
{
|
|
199
|
+
provide: ComponentMessages,
|
|
200
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
selector: `[kendoTooltipLocalizedMessages]`
|
|
204
|
+
}]
|
|
205
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { closeTitle: [{
|
|
206
|
+
type: Input
|
|
207
|
+
}] } });
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @hidden
|
|
211
|
+
*/
|
|
212
|
+
class TooltipContentComponent {
|
|
178
213
|
constructor(content, localizationService) {
|
|
179
214
|
this.content = content;
|
|
180
215
|
this.localizationService = localizationService;
|
|
@@ -264,64 +299,52 @@ let TooltipContentComponent = class TooltipContentComponent {
|
|
|
264
299
|
callout.style[style] = calloutStyles[style];
|
|
265
300
|
});
|
|
266
301
|
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
],
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
]
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
__decorate([
|
|
314
|
-
Input(),
|
|
315
|
-
__metadata("design:type", TemplateRef)
|
|
316
|
-
], TooltipContentComponent.prototype, "templateRef", void 0);
|
|
317
|
-
__decorate([
|
|
318
|
-
Input(),
|
|
319
|
-
__metadata("design:type", String)
|
|
320
|
-
], TooltipContentComponent.prototype, "templateString", void 0);
|
|
321
|
-
TooltipContentComponent = __decorate([
|
|
322
|
-
Component({
|
|
323
|
-
selector: 'kendo-tooltip',
|
|
324
|
-
template: `
|
|
302
|
+
}
|
|
303
|
+
TooltipContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipContentComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
304
|
+
TooltipContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipContentComponent, selector: "kendo-tooltip", inputs: { tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", titleTemplate: "titleTemplate", anchor: "anchor", closable: "closable", templateRef: "templateRef", templateString: "templateString" }, outputs: { close: "close" }, host: { properties: { "attr.dir": "this.direction", "class": "this.cssClasses", "class.k-tooltip-closable": "this.className", "style.position": "this.cssPosition", "style.width.px": "this.tooltipWidth", "style.height.px": "this.tooltipHeight" } }, providers: [
|
|
305
|
+
LocalizationService,
|
|
306
|
+
{
|
|
307
|
+
provide: L10N_PREFIX,
|
|
308
|
+
useValue: 'kendo.tooltip'
|
|
309
|
+
}
|
|
310
|
+
], ngImport: i0, template: `
|
|
311
|
+
<ng-container kendoTooltipLocalizedMessages
|
|
312
|
+
i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"
|
|
313
|
+
closeTitle="Close"
|
|
314
|
+
>
|
|
315
|
+
</ng-container>
|
|
316
|
+
|
|
317
|
+
<div class="k-tooltip-content">
|
|
318
|
+
<div class="k-tooltip-title" *ngIf="titleTemplate">
|
|
319
|
+
<ng-template
|
|
320
|
+
[ngIf]="titleTemplate"
|
|
321
|
+
[ngTemplateOutlet]="titleTemplate"
|
|
322
|
+
[ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">
|
|
323
|
+
</ng-template>
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
<ng-template
|
|
327
|
+
[ngIf]="templateRef"
|
|
328
|
+
[ngTemplateOutlet]="templateRef"
|
|
329
|
+
[ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">
|
|
330
|
+
</ng-template>
|
|
331
|
+
<ng-template
|
|
332
|
+
[ngIf]="templateString">
|
|
333
|
+
{{ templateString }}
|
|
334
|
+
</ng-template>
|
|
335
|
+
</div>
|
|
336
|
+
|
|
337
|
+
<div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">
|
|
338
|
+
<a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
<div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>
|
|
342
|
+
`, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "[kendoTooltipLocalizedMessages]", inputs: ["closeTitle"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipContentComponent, decorators: [{
|
|
344
|
+
type: Component,
|
|
345
|
+
args: [{
|
|
346
|
+
selector: 'kendo-tooltip',
|
|
347
|
+
template: `
|
|
325
348
|
<ng-container kendoTooltipLocalizedMessages
|
|
326
349
|
i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"
|
|
327
350
|
closeTitle="Close"
|
|
@@ -354,17 +377,49 @@ TooltipContentComponent = __decorate([
|
|
|
354
377
|
|
|
355
378
|
<div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>
|
|
356
379
|
`,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
]
|
|
380
|
+
providers: [
|
|
381
|
+
LocalizationService,
|
|
382
|
+
{
|
|
383
|
+
provide: L10N_PREFIX,
|
|
384
|
+
useValue: 'kendo.tooltip'
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
}]
|
|
388
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }]; }, propDecorators: { direction: [{
|
|
389
|
+
type: HostBinding,
|
|
390
|
+
args: ['attr.dir']
|
|
391
|
+
}], close: [{
|
|
392
|
+
type: Output
|
|
393
|
+
}], cssClasses: [{
|
|
394
|
+
type: HostBinding,
|
|
395
|
+
args: ['class']
|
|
396
|
+
}], className: [{
|
|
397
|
+
type: HostBinding,
|
|
398
|
+
args: ['class.k-tooltip-closable']
|
|
399
|
+
}], cssPosition: [{
|
|
400
|
+
type: HostBinding,
|
|
401
|
+
args: ['style.position']
|
|
402
|
+
}], tooltipWidth: [{
|
|
403
|
+
type: HostBinding,
|
|
404
|
+
args: ['style.width.px']
|
|
405
|
+
}, {
|
|
406
|
+
type: Input
|
|
407
|
+
}], tooltipHeight: [{
|
|
408
|
+
type: HostBinding,
|
|
409
|
+
args: ['style.height.px']
|
|
410
|
+
}, {
|
|
411
|
+
type: Input
|
|
412
|
+
}], titleTemplate: [{
|
|
413
|
+
type: Input
|
|
414
|
+
}], anchor: [{
|
|
415
|
+
type: Input
|
|
416
|
+
}], closable: [{
|
|
417
|
+
type: Input
|
|
418
|
+
}], templateRef: [{
|
|
419
|
+
type: Input
|
|
420
|
+
}], templateString: [{
|
|
421
|
+
type: Input
|
|
422
|
+
}] } });
|
|
368
423
|
|
|
369
424
|
/**
|
|
370
425
|
* Represents the [Kendo UI Tooltip directive for Angular]({% slug overview_tooltip %}).
|
|
@@ -377,7 +432,7 @@ TooltipContentComponent = __decorate([
|
|
|
377
432
|
* </div>
|
|
378
433
|
* ```
|
|
379
434
|
*/
|
|
380
|
-
|
|
435
|
+
class TooltipDirective {
|
|
381
436
|
constructor(tooltipWrapper, ngZone, renderer, popupService, settings, legacySettings) {
|
|
382
437
|
this.tooltipWrapper = tooltipWrapper;
|
|
383
438
|
this.ngZone = ngZone;
|
|
@@ -458,7 +513,9 @@ let TooltipDirective = class TooltipDirective {
|
|
|
458
513
|
set tooltipTemplate(value) {
|
|
459
514
|
this.template = value;
|
|
460
515
|
}
|
|
461
|
-
get tooltipTemplate() {
|
|
516
|
+
get tooltipTemplate() {
|
|
517
|
+
return this.template;
|
|
518
|
+
}
|
|
462
519
|
/**
|
|
463
520
|
* Shows the Tooltip.
|
|
464
521
|
* @param anchor— ElementRef|Element.
|
|
@@ -583,7 +640,9 @@ let TooltipDirective = class TooltipDirective {
|
|
|
583
640
|
bindContent(contentComponent, anchorRef) {
|
|
584
641
|
const content = contentComponent.instance;
|
|
585
642
|
this.closeClickSubscription = content.close
|
|
586
|
-
.subscribe(() => {
|
|
643
|
+
.subscribe(() => {
|
|
644
|
+
this.hide();
|
|
645
|
+
});
|
|
587
646
|
if (!this.template) {
|
|
588
647
|
content.templateString = this.anchor.nativeElement.getAttribute('data-title');
|
|
589
648
|
}
|
|
@@ -719,78 +778,51 @@ let TooltipDirective = class TooltipDirective {
|
|
|
719
778
|
throw new Error(`Invalid value provided for showOn property.The available options are 'hover' or 'none'.`);
|
|
720
779
|
}
|
|
721
780
|
}
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
]
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
]
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
],
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
],
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
],
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
],
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
],
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
],
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
]
|
|
767
|
-
__decorate([
|
|
768
|
-
Input(),
|
|
769
|
-
__metadata("design:type", Object)
|
|
770
|
-
], TooltipDirective.prototype, "collision", void 0);
|
|
771
|
-
__decorate([
|
|
772
|
-
Input(),
|
|
773
|
-
__metadata("design:type", String)
|
|
774
|
-
], TooltipDirective.prototype, "closeTitle", void 0);
|
|
775
|
-
__decorate([
|
|
776
|
-
Input(),
|
|
777
|
-
__metadata("design:type", TemplateRef),
|
|
778
|
-
__metadata("design:paramtypes", [TemplateRef])
|
|
779
|
-
], TooltipDirective.prototype, "tooltipTemplate", null);
|
|
780
|
-
TooltipDirective = __decorate([
|
|
781
|
-
Directive({
|
|
782
|
-
selector: '[kendoTooltip]',
|
|
783
|
-
exportAs: 'kendoTooltip'
|
|
784
|
-
}),
|
|
785
|
-
__param(4, Optional()),
|
|
786
|
-
__param(5, Optional()), __param(5, Inject(TOOLTIP_SETTINGS)),
|
|
787
|
-
__metadata("design:paramtypes", [ElementRef,
|
|
788
|
-
NgZone,
|
|
789
|
-
Renderer2,
|
|
790
|
-
PopupService,
|
|
791
|
-
TooltipSettings,
|
|
792
|
-
TooltipSettings])
|
|
793
|
-
], TooltipDirective);
|
|
781
|
+
}
|
|
782
|
+
TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$1.PopupService }, { token: TooltipSettings, optional: true }, { token: TOOLTIP_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
783
|
+
TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TooltipDirective, selector: "[kendoTooltip]", inputs: { filter: "filter", position: "position", titleTemplate: "titleTemplate", showOn: "showOn", showAfter: "showAfter", callout: "callout", closable: "closable", offset: "offset", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", tooltipClass: "tooltipClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
|
|
784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
785
|
+
type: Directive,
|
|
786
|
+
args: [{
|
|
787
|
+
selector: '[kendoTooltip]',
|
|
788
|
+
exportAs: 'kendoTooltip'
|
|
789
|
+
}]
|
|
790
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$1.PopupService }, { type: TooltipSettings, decorators: [{
|
|
791
|
+
type: Optional
|
|
792
|
+
}] }, { type: TooltipSettings, decorators: [{
|
|
793
|
+
type: Optional
|
|
794
|
+
}, {
|
|
795
|
+
type: Inject,
|
|
796
|
+
args: [TOOLTIP_SETTINGS]
|
|
797
|
+
}] }]; }, propDecorators: { filter: [{
|
|
798
|
+
type: Input
|
|
799
|
+
}], position: [{
|
|
800
|
+
type: Input
|
|
801
|
+
}], titleTemplate: [{
|
|
802
|
+
type: Input
|
|
803
|
+
}], showOn: [{
|
|
804
|
+
type: Input
|
|
805
|
+
}], showAfter: [{
|
|
806
|
+
type: Input
|
|
807
|
+
}], callout: [{
|
|
808
|
+
type: Input
|
|
809
|
+
}], closable: [{
|
|
810
|
+
type: Input
|
|
811
|
+
}], offset: [{
|
|
812
|
+
type: Input
|
|
813
|
+
}], tooltipWidth: [{
|
|
814
|
+
type: Input
|
|
815
|
+
}], tooltipHeight: [{
|
|
816
|
+
type: Input
|
|
817
|
+
}], tooltipClass: [{
|
|
818
|
+
type: Input
|
|
819
|
+
}], collision: [{
|
|
820
|
+
type: Input
|
|
821
|
+
}], closeTitle: [{
|
|
822
|
+
type: Input
|
|
823
|
+
}], tooltipTemplate: [{
|
|
824
|
+
type: Input
|
|
825
|
+
}] } });
|
|
794
826
|
|
|
795
827
|
/**
|
|
796
828
|
* @hidden
|
|
@@ -807,18 +839,21 @@ const ERRORS = {
|
|
|
807
839
|
* To define the template, nest an `<ng-template>` tag
|
|
808
840
|
* with the `kendoPopoverTitleTemplate` directive inside the `<kendo-popover>` tag.
|
|
809
841
|
*/
|
|
810
|
-
|
|
842
|
+
class PopoverTitleTemplateDirective {
|
|
811
843
|
constructor(templateRef) {
|
|
812
844
|
this.templateRef = templateRef;
|
|
813
845
|
}
|
|
814
|
-
}
|
|
815
|
-
PopoverTitleTemplateDirective =
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
]
|
|
846
|
+
}
|
|
847
|
+
PopoverTitleTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverTitleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
848
|
+
PopoverTitleTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverTitleTemplateDirective, selector: "[kendoPopoverTitleTemplate]", ngImport: i0 });
|
|
849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverTitleTemplateDirective, decorators: [{
|
|
850
|
+
type: Directive,
|
|
851
|
+
args: [{
|
|
852
|
+
selector: '[kendoPopoverTitleTemplate]'
|
|
853
|
+
}]
|
|
854
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
855
|
+
type: Optional
|
|
856
|
+
}] }]; } });
|
|
822
857
|
|
|
823
858
|
/**
|
|
824
859
|
* Represents a template that defines the content of the Popover body.
|
|
@@ -826,18 +861,21 @@ PopoverTitleTemplateDirective = __decorate([
|
|
|
826
861
|
* To define the template, nest an `<ng-template>` tag
|
|
827
862
|
* with the `kendoPopoverBodyTemplate` directive inside the `<kendo-popover>` tag.
|
|
828
863
|
*/
|
|
829
|
-
|
|
864
|
+
class PopoverBodyTemplateDirective {
|
|
830
865
|
constructor(templateRef) {
|
|
831
866
|
this.templateRef = templateRef;
|
|
832
867
|
}
|
|
833
|
-
}
|
|
834
|
-
PopoverBodyTemplateDirective =
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
]
|
|
868
|
+
}
|
|
869
|
+
PopoverBodyTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverBodyTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
870
|
+
PopoverBodyTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverBodyTemplateDirective, selector: "[kendoPopoverBodyTemplate]", ngImport: i0 });
|
|
871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverBodyTemplateDirective, decorators: [{
|
|
872
|
+
type: Directive,
|
|
873
|
+
args: [{
|
|
874
|
+
selector: '[kendoPopoverBodyTemplate]'
|
|
875
|
+
}]
|
|
876
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
877
|
+
type: Optional
|
|
878
|
+
}] }]; } });
|
|
841
879
|
|
|
842
880
|
/**
|
|
843
881
|
* Represents a template that defines the content of the Popover actions.
|
|
@@ -845,18 +883,21 @@ PopoverBodyTemplateDirective = __decorate([
|
|
|
845
883
|
* To define the template, nest an `<ng-template>` tag
|
|
846
884
|
* with the `kendoPopoverActionsTemplate` directive inside the `<kendo-popover>` tag.
|
|
847
885
|
*/
|
|
848
|
-
|
|
886
|
+
class PopoverActionsTemplateDirective {
|
|
849
887
|
constructor(templateRef) {
|
|
850
888
|
this.templateRef = templateRef;
|
|
851
889
|
}
|
|
852
|
-
}
|
|
853
|
-
PopoverActionsTemplateDirective =
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
]
|
|
890
|
+
}
|
|
891
|
+
PopoverActionsTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverActionsTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
892
|
+
PopoverActionsTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverActionsTemplateDirective, selector: "[kendoPopoverActionsTemplate]", ngImport: i0 });
|
|
893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverActionsTemplateDirective, decorators: [{
|
|
894
|
+
type: Directive,
|
|
895
|
+
args: [{
|
|
896
|
+
selector: '[kendoPopoverActionsTemplate]'
|
|
897
|
+
}]
|
|
898
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
899
|
+
type: Optional
|
|
900
|
+
}] }]; } });
|
|
860
901
|
|
|
861
902
|
/**
|
|
862
903
|
* Represents the [Kendo UI Popover component for Angular]({% slug overview_popover %}).
|
|
@@ -871,7 +912,7 @@ PopoverActionsTemplateDirective = __decorate([
|
|
|
871
912
|
* </kendo-popover>
|
|
872
913
|
* ```
|
|
873
914
|
*/
|
|
874
|
-
|
|
915
|
+
class PopoverComponent {
|
|
875
916
|
constructor(localization) {
|
|
876
917
|
this.localization = localization;
|
|
877
918
|
/**
|
|
@@ -1013,106 +1054,58 @@ let PopoverComponent = class PopoverComponent {
|
|
|
1013
1054
|
default: return { 'k-callout-s': true };
|
|
1014
1055
|
}
|
|
1015
1056
|
}
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
],
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
]
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
]
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
],
|
|
1067
|
-
|
|
1068
|
-
HostBinding('class.k-hidden'),
|
|
1069
|
-
__metadata("design:type", Boolean),
|
|
1070
|
-
__metadata("design:paramtypes", [])
|
|
1071
|
-
], PopoverComponent.prototype, "isHidden", null);
|
|
1072
|
-
__decorate([
|
|
1073
|
-
HostBinding('attr.aria-hidden'),
|
|
1074
|
-
__metadata("design:type", Boolean),
|
|
1075
|
-
__metadata("design:paramtypes", [])
|
|
1076
|
-
], PopoverComponent.prototype, "hasAttributeHidden", null);
|
|
1077
|
-
__decorate([
|
|
1078
|
-
Output(),
|
|
1079
|
-
__metadata("design:type", EventEmitter)
|
|
1080
|
-
], PopoverComponent.prototype, "show", void 0);
|
|
1081
|
-
__decorate([
|
|
1082
|
-
Output(),
|
|
1083
|
-
__metadata("design:type", EventEmitter)
|
|
1084
|
-
], PopoverComponent.prototype, "shown", void 0);
|
|
1085
|
-
__decorate([
|
|
1086
|
-
Output(),
|
|
1087
|
-
__metadata("design:type", EventEmitter)
|
|
1088
|
-
], PopoverComponent.prototype, "hide", void 0);
|
|
1089
|
-
__decorate([
|
|
1090
|
-
Output(),
|
|
1091
|
-
__metadata("design:type", EventEmitter)
|
|
1092
|
-
], PopoverComponent.prototype, "hidden", void 0);
|
|
1093
|
-
__decorate([
|
|
1094
|
-
ContentChild(PopoverTitleTemplateDirective, { static: false }),
|
|
1095
|
-
__metadata("design:type", PopoverTitleTemplateDirective)
|
|
1096
|
-
], PopoverComponent.prototype, "titleTemplate", void 0);
|
|
1097
|
-
__decorate([
|
|
1098
|
-
ContentChild(PopoverBodyTemplateDirective, { static: false }),
|
|
1099
|
-
__metadata("design:type", PopoverBodyTemplateDirective)
|
|
1100
|
-
], PopoverComponent.prototype, "bodyTemplate", void 0);
|
|
1101
|
-
__decorate([
|
|
1102
|
-
ContentChild(PopoverActionsTemplateDirective, { static: false }),
|
|
1103
|
-
__metadata("design:type", PopoverActionsTemplateDirective)
|
|
1104
|
-
], PopoverComponent.prototype, "actionsTemplate", void 0);
|
|
1105
|
-
PopoverComponent = __decorate([
|
|
1106
|
-
Component({
|
|
1107
|
-
selector: 'kendo-popover',
|
|
1108
|
-
providers: [
|
|
1109
|
-
LocalizationService,
|
|
1110
|
-
{
|
|
1111
|
-
provide: L10N_PREFIX,
|
|
1112
|
-
useValue: 'kendo.popover'
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
template: `
|
|
1057
|
+
}
|
|
1058
|
+
PopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1059
|
+
PopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: PopoverComponent, selector: "kendo-popover", inputs: { position: "position", offset: "offset", width: "width", height: "height", title: "title", subtitle: "subtitle", body: "body", callout: "callout", animation: "animation", templateData: "templateData" }, outputs: { show: "show", shown: "shown", hide: "hide", hidden: "hidden" }, host: { properties: { "style.width": "this.width", "style.height": "this.height", "attr.dir": "this.direction", "class.k-hidden": "this.isHidden", "attr.aria-hidden": "this.hasAttributeHidden" } }, providers: [
|
|
1060
|
+
LocalizationService,
|
|
1061
|
+
{
|
|
1062
|
+
provide: L10N_PREFIX,
|
|
1063
|
+
useValue: 'kendo.popover'
|
|
1064
|
+
}
|
|
1065
|
+
], queries: [{ propertyName: "titleTemplate", first: true, predicate: PopoverTitleTemplateDirective, descendants: true }, { propertyName: "bodyTemplate", first: true, predicate: PopoverBodyTemplateDirective, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: PopoverActionsTemplateDirective, descendants: true }], ngImport: i0, template: `
|
|
1066
|
+
<div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{'width.px': width, 'height.px': height}">
|
|
1067
|
+
<div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>
|
|
1068
|
+
|
|
1069
|
+
<div *ngIf="titleTemplate || title" class="k-popover-header">
|
|
1070
|
+
<ng-template *ngIf="titleTemplate"
|
|
1071
|
+
[ngTemplateOutlet]="titleTemplate?.templateRef"
|
|
1072
|
+
[ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">
|
|
1073
|
+
</ng-template>
|
|
1074
|
+
<ng-container *ngIf="title && !titleTemplate">
|
|
1075
|
+
{{ title }}
|
|
1076
|
+
</ng-container>
|
|
1077
|
+
</div>
|
|
1078
|
+
|
|
1079
|
+
<div *ngIf="bodyTemplate || body" class="k-popover-body">
|
|
1080
|
+
<ng-template *ngIf="bodyTemplate"
|
|
1081
|
+
[ngTemplateOutlet]="bodyTemplate?.templateRef"
|
|
1082
|
+
[ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">
|
|
1083
|
+
</ng-template>
|
|
1084
|
+
<ng-container *ngIf="body && !bodyTemplate">
|
|
1085
|
+
{{ body }}
|
|
1086
|
+
</ng-container>
|
|
1087
|
+
</div>
|
|
1088
|
+
|
|
1089
|
+
<div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">
|
|
1090
|
+
<ng-template *ngIf="actionsTemplate"
|
|
1091
|
+
[ngTemplateOutlet]="actionsTemplate?.templateRef"
|
|
1092
|
+
[ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">
|
|
1093
|
+
</ng-template>
|
|
1094
|
+
</div>
|
|
1095
|
+
</div>
|
|
1096
|
+
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
1098
|
+
type: Component,
|
|
1099
|
+
args: [{
|
|
1100
|
+
selector: 'kendo-popover',
|
|
1101
|
+
providers: [
|
|
1102
|
+
LocalizationService,
|
|
1103
|
+
{
|
|
1104
|
+
provide: L10N_PREFIX,
|
|
1105
|
+
useValue: 'kendo.popover'
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
template: `
|
|
1116
1109
|
<div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{'width.px': width, 'height.px': height}">
|
|
1117
1110
|
<div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>
|
|
1118
1111
|
|
|
@@ -1144,9 +1137,60 @@ PopoverComponent = __decorate([
|
|
|
1144
1137
|
</div>
|
|
1145
1138
|
</div>
|
|
1146
1139
|
`
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1140
|
+
}]
|
|
1141
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { position: [{
|
|
1142
|
+
type: Input
|
|
1143
|
+
}], offset: [{
|
|
1144
|
+
type: Input
|
|
1145
|
+
}], width: [{
|
|
1146
|
+
type: HostBinding,
|
|
1147
|
+
args: ['style.width']
|
|
1148
|
+
}, {
|
|
1149
|
+
type: Input
|
|
1150
|
+
}], height: [{
|
|
1151
|
+
type: HostBinding,
|
|
1152
|
+
args: ['style.height']
|
|
1153
|
+
}, {
|
|
1154
|
+
type: Input
|
|
1155
|
+
}], direction: [{
|
|
1156
|
+
type: HostBinding,
|
|
1157
|
+
args: ['attr.dir']
|
|
1158
|
+
}], title: [{
|
|
1159
|
+
type: Input
|
|
1160
|
+
}], subtitle: [{
|
|
1161
|
+
type: Input
|
|
1162
|
+
}], body: [{
|
|
1163
|
+
type: Input
|
|
1164
|
+
}], callout: [{
|
|
1165
|
+
type: Input
|
|
1166
|
+
}], animation: [{
|
|
1167
|
+
type: Input
|
|
1168
|
+
}], templateData: [{
|
|
1169
|
+
type: Input
|
|
1170
|
+
}], isHidden: [{
|
|
1171
|
+
type: HostBinding,
|
|
1172
|
+
args: ['class.k-hidden']
|
|
1173
|
+
}], hasAttributeHidden: [{
|
|
1174
|
+
type: HostBinding,
|
|
1175
|
+
args: ['attr.aria-hidden']
|
|
1176
|
+
}], show: [{
|
|
1177
|
+
type: Output
|
|
1178
|
+
}], shown: [{
|
|
1179
|
+
type: Output
|
|
1180
|
+
}], hide: [{
|
|
1181
|
+
type: Output
|
|
1182
|
+
}], hidden: [{
|
|
1183
|
+
type: Output
|
|
1184
|
+
}], titleTemplate: [{
|
|
1185
|
+
type: ContentChild,
|
|
1186
|
+
args: [PopoverTitleTemplateDirective, { static: false }]
|
|
1187
|
+
}], bodyTemplate: [{
|
|
1188
|
+
type: ContentChild,
|
|
1189
|
+
args: [PopoverBodyTemplateDirective, { static: false }]
|
|
1190
|
+
}], actionsTemplate: [{
|
|
1191
|
+
type: ContentChild,
|
|
1192
|
+
args: [PopoverActionsTemplateDirective, { static: false }]
|
|
1193
|
+
}] } });
|
|
1150
1194
|
|
|
1151
1195
|
/**
|
|
1152
1196
|
* Arguments for the `show` event. The `show` event fires when a popover is about
|
|
@@ -1468,21 +1512,21 @@ class PopoverDirectivesBase {
|
|
|
1468
1512
|
return false;
|
|
1469
1513
|
}
|
|
1470
1514
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
]
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
]
|
|
1515
|
+
PopoverDirectivesBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverDirectivesBase, deps: [{ token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1516
|
+
PopoverDirectivesBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverDirectivesBase, inputs: { popover: "popover", showOn: "showOn" }, ngImport: i0 });
|
|
1517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverDirectivesBase, decorators: [{
|
|
1518
|
+
type: Directive,
|
|
1519
|
+
args: [{}]
|
|
1520
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.PopupService }, { type: i0.Renderer2 }]; }, propDecorators: { popover: [{
|
|
1521
|
+
type: Input
|
|
1522
|
+
}], showOn: [{
|
|
1523
|
+
type: Input
|
|
1524
|
+
}] } });
|
|
1481
1525
|
|
|
1482
1526
|
/**
|
|
1483
1527
|
* @hidden
|
|
1484
1528
|
*/
|
|
1485
|
-
|
|
1529
|
+
class PopoverService {
|
|
1486
1530
|
constructor(ngZone) {
|
|
1487
1531
|
this.ngZone = ngZone;
|
|
1488
1532
|
this._pointerOverPopup = new BehaviorSubject(null);
|
|
@@ -1532,11 +1576,12 @@ let PopoverService = class PopoverService {
|
|
|
1532
1576
|
this._hidePopover.next([isPopoverHovered, isAnchorHovered, this._isOrigin, this.currentAnchor]);
|
|
1533
1577
|
}));
|
|
1534
1578
|
}
|
|
1535
|
-
}
|
|
1536
|
-
PopoverService =
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1579
|
+
}
|
|
1580
|
+
PopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1581
|
+
PopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverService });
|
|
1582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverService, decorators: [{
|
|
1583
|
+
type: Injectable
|
|
1584
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
1540
1585
|
|
|
1541
1586
|
/**
|
|
1542
1587
|
* Represents the [`kendoPopoverContainer`]({% slug configuration_popover %}#toc-containerdirective) directive.
|
|
@@ -1551,7 +1596,7 @@ PopoverService = __decorate([
|
|
|
1551
1596
|
* </div>
|
|
1552
1597
|
* ```
|
|
1553
1598
|
*/
|
|
1554
|
-
|
|
1599
|
+
class PopoverContainerDirective extends PopoverDirectivesBase {
|
|
1555
1600
|
constructor(wrapperEl, ngZone, popupService, renderer, popoverService) {
|
|
1556
1601
|
super(ngZone, popupService, renderer);
|
|
1557
1602
|
this.wrapperEl = wrapperEl;
|
|
@@ -1684,23 +1729,19 @@ let PopoverContainerDirective = class PopoverContainerDirective extends PopoverD
|
|
|
1684
1729
|
}
|
|
1685
1730
|
show ? this.show(anchor) : this.hide();
|
|
1686
1731
|
}
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
PopupService,
|
|
1701
|
-
Renderer2,
|
|
1702
|
-
PopoverService])
|
|
1703
|
-
], PopoverContainerDirective);
|
|
1732
|
+
}
|
|
1733
|
+
PopoverContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverContainerDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1734
|
+
PopoverContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverContainerDirective, selector: "[kendoPopoverContainer]", inputs: { filter: "filter" }, providers: [PopoverService], exportAs: ["kendoPopoverContainer"], usesInheritance: true, ngImport: i0 });
|
|
1735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverContainerDirective, decorators: [{
|
|
1736
|
+
type: Directive,
|
|
1737
|
+
args: [{
|
|
1738
|
+
selector: '[kendoPopoverContainer]',
|
|
1739
|
+
exportAs: 'kendoPopoverContainer',
|
|
1740
|
+
providers: [PopoverService]
|
|
1741
|
+
}]
|
|
1742
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.PopupService }, { type: i0.Renderer2 }, { type: PopoverService }]; }, propDecorators: { filter: [{
|
|
1743
|
+
type: Input
|
|
1744
|
+
}] } });
|
|
1704
1745
|
|
|
1705
1746
|
/**
|
|
1706
1747
|
* Represents the [`kendoPopoverAnchor`]({% slug configuration_popover %}#toc-anchordirective) directive.
|
|
@@ -1711,7 +1752,7 @@ PopoverContainerDirective = __decorate([
|
|
|
1711
1752
|
* <button kendoPopoverAnchor [popover]="myPopover">Show Popover</button>
|
|
1712
1753
|
* ```
|
|
1713
1754
|
*/
|
|
1714
|
-
|
|
1755
|
+
class PopoverAnchorDirective extends PopoverDirectivesBase {
|
|
1715
1756
|
constructor(hostEl, ngZone, popupService, renderer, popoverService) {
|
|
1716
1757
|
super(ngZone, popupService, renderer);
|
|
1717
1758
|
this.hostEl = hostEl;
|
|
@@ -1826,46 +1867,17 @@ let PopoverAnchorDirective = class PopoverAnchorDirective extends PopoverDirecti
|
|
|
1826
1867
|
}
|
|
1827
1868
|
show ? this.show() : this.hide();
|
|
1828
1869
|
}
|
|
1829
|
-
}
|
|
1830
|
-
PopoverAnchorDirective =
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
Renderer2,
|
|
1840
|
-
PopoverService])
|
|
1841
|
-
], PopoverAnchorDirective);
|
|
1842
|
-
|
|
1843
|
-
var LocalizedMessagesDirective_1;
|
|
1844
|
-
/**
|
|
1845
|
-
* @hidden
|
|
1846
|
-
*/
|
|
1847
|
-
let LocalizedMessagesDirective = LocalizedMessagesDirective_1 = class LocalizedMessagesDirective extends ComponentMessages {
|
|
1848
|
-
constructor(service) {
|
|
1849
|
-
super();
|
|
1850
|
-
this.service = service;
|
|
1851
|
-
}
|
|
1852
|
-
};
|
|
1853
|
-
__decorate([
|
|
1854
|
-
Input(),
|
|
1855
|
-
__metadata("design:type", String)
|
|
1856
|
-
], LocalizedMessagesDirective.prototype, "closeTitle", void 0);
|
|
1857
|
-
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = __decorate([
|
|
1858
|
-
Directive({
|
|
1859
|
-
providers: [
|
|
1860
|
-
{
|
|
1861
|
-
provide: ComponentMessages,
|
|
1862
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective_1)
|
|
1863
|
-
}
|
|
1864
|
-
],
|
|
1865
|
-
selector: `[kendoTooltipLocalizedMessages]`
|
|
1866
|
-
}),
|
|
1867
|
-
__metadata("design:paramtypes", [LocalizationService])
|
|
1868
|
-
], LocalizedMessagesDirective);
|
|
1870
|
+
}
|
|
1871
|
+
PopoverAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1872
|
+
PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverAnchorDirective, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, ngImport: i0 });
|
|
1873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverAnchorDirective, decorators: [{
|
|
1874
|
+
type: Directive,
|
|
1875
|
+
args: [{
|
|
1876
|
+
selector: '[kendoPopoverAnchor]',
|
|
1877
|
+
exportAs: 'kendoPopoverAnchor',
|
|
1878
|
+
providers: [PopoverService]
|
|
1879
|
+
}]
|
|
1880
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.PopupService }, { type: i0.Renderer2 }, { type: PopoverService }]; } });
|
|
1869
1881
|
|
|
1870
1882
|
const COMPONENT_DIRECTIVES = [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective];
|
|
1871
1883
|
const COMPONENT_MODULES = [PopupModule];
|
|
@@ -1899,16 +1911,20 @@ const COMPONENT_MODULES = [PopupModule];
|
|
|
1899
1911
|
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
1900
1912
|
* ```
|
|
1901
1913
|
*/
|
|
1902
|
-
|
|
1903
|
-
}
|
|
1904
|
-
TooltipModule =
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
],
|
|
1914
|
+
class TooltipModule {
|
|
1915
|
+
}
|
|
1916
|
+
TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1917
|
+
TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective], imports: [CommonModule, PopupModule], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective] });
|
|
1918
|
+
TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, imports: [[CommonModule, ...COMPONENT_MODULES]] });
|
|
1919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, decorators: [{
|
|
1920
|
+
type: NgModule,
|
|
1921
|
+
args: [{
|
|
1922
|
+
declarations: [COMPONENT_DIRECTIVES],
|
|
1923
|
+
entryComponents: [TooltipContentComponent],
|
|
1924
|
+
imports: [CommonModule, ...COMPONENT_MODULES],
|
|
1925
|
+
exports: [COMPONENT_DIRECTIVES]
|
|
1926
|
+
}]
|
|
1927
|
+
}] });
|
|
1912
1928
|
|
|
1913
1929
|
const DIRECTIVES = [
|
|
1914
1930
|
PopoverActionsTemplateDirective,
|
|
@@ -1942,22 +1958,38 @@ const DIRECTIVES = [
|
|
|
1942
1958
|
*
|
|
1943
1959
|
* ```
|
|
1944
1960
|
*/
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
PopoverModule =
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
],
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1961
|
+
class PopoverModule {
|
|
1962
|
+
}
|
|
1963
|
+
PopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1964
|
+
PopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, declarations: [PopoverActionsTemplateDirective,
|
|
1965
|
+
PopoverBodyTemplateDirective,
|
|
1966
|
+
PopoverTitleTemplateDirective,
|
|
1967
|
+
PopoverAnchorDirective,
|
|
1968
|
+
PopoverContainerDirective, PopoverComponent], imports: [CommonModule,
|
|
1969
|
+
PopupModule], exports: [PopoverActionsTemplateDirective,
|
|
1970
|
+
PopoverBodyTemplateDirective,
|
|
1971
|
+
PopoverTitleTemplateDirective,
|
|
1972
|
+
PopoverAnchorDirective,
|
|
1973
|
+
PopoverContainerDirective, PopoverComponent] });
|
|
1974
|
+
PopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, imports: [[
|
|
1956
1975
|
CommonModule,
|
|
1957
1976
|
PopupModule
|
|
1958
|
-
]
|
|
1959
|
-
|
|
1960
|
-
|
|
1977
|
+
]] });
|
|
1978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, decorators: [{
|
|
1979
|
+
type: NgModule,
|
|
1980
|
+
args: [{
|
|
1981
|
+
declarations: [
|
|
1982
|
+
...DIRECTIVES,
|
|
1983
|
+
PopoverComponent
|
|
1984
|
+
],
|
|
1985
|
+
entryComponents: [PopoverComponent],
|
|
1986
|
+
exports: [...DIRECTIVES, PopoverComponent],
|
|
1987
|
+
imports: [
|
|
1988
|
+
CommonModule,
|
|
1989
|
+
PopupModule
|
|
1990
|
+
]
|
|
1991
|
+
}]
|
|
1992
|
+
}] });
|
|
1961
1993
|
|
|
1962
1994
|
/**
|
|
1963
1995
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -1985,13 +2017,17 @@ PopoverModule = __decorate([
|
|
|
1985
2017
|
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
1986
2018
|
* ```
|
|
1987
2019
|
*/
|
|
1988
|
-
|
|
1989
|
-
}
|
|
1990
|
-
TooltipsModule =
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2020
|
+
class TooltipsModule {
|
|
2021
|
+
}
|
|
2022
|
+
TooltipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2023
|
+
TooltipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, exports: [TooltipModule, PopoverModule] });
|
|
2024
|
+
TooltipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, imports: [TooltipModule, PopoverModule] });
|
|
2025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, decorators: [{
|
|
2026
|
+
type: NgModule,
|
|
2027
|
+
args: [{
|
|
2028
|
+
exports: [TooltipModule, PopoverModule]
|
|
2029
|
+
}]
|
|
2030
|
+
}] });
|
|
1995
2031
|
|
|
1996
2032
|
// Tooltip
|
|
1997
2033
|
|
|
@@ -1999,4 +2035,5 @@ TooltipsModule = __decorate([
|
|
|
1999
2035
|
* Generated bundle index. Do not edit.
|
|
2000
2036
|
*/
|
|
2001
2037
|
|
|
2002
|
-
export { LocalizedMessagesDirective,
|
|
2038
|
+
export { LocalizedMessagesDirective, PopoverActionsTemplateDirective, PopoverAnchorDirective, PopoverBodyTemplateDirective, PopoverComponent, PopoverContainerDirective, PopoverHiddenEvent, PopoverHideEvent, PopoverModule, PopoverShowEvent, PopoverShownEvent, PopoverTitleTemplateDirective, TOOLTIP_SETTINGS, TooltipContentComponent, TooltipDirective, TooltipModule, TooltipSettings, TooltipsModule };
|
|
2039
|
+
|