@progress/kendo-angular-toolbar 5.0.2 → 6.0.0-dev.202204131416
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-toolbar.umd.js +5 -0
- package/{dist/es2015/common → common}/constants.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/renderer-click.d.ts +0 -0
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/display-mode.d.ts → display-mode.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/common/constants.js +0 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es → esm2015}/common/renderer-click.js +1 -0
- package/{dist/es2015 → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/display-mode.js +1 -0
- package/{dist/es2015 → esm2015}/group-selection-settings.js +1 -0
- package/{dist/es/common/constants.js → esm2015/kendo-angular-toolbar.js} +2 -2
- package/esm2015/localization/custom-messages.component.js +40 -0
- package/esm2015/localization/localized-toolbar-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +23 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/popup-settings.js +1 -0
- package/{dist/es2015 → esm2015}/refresh.service.js +8 -10
- package/{dist/es → esm2015}/render-location.js +1 -0
- package/{dist/es2015 → esm2015}/renderer.component.js +36 -41
- package/{dist/es2015 → esm2015}/renderer.service.js +8 -7
- package/{dist/es → esm2015}/tool-options.js +1 -0
- package/{dist/es2015 → esm2015}/toolbar.component.js +166 -135
- package/{dist/es2015 → esm2015}/toolbar.module.js +27 -11
- package/{dist/es2015 → esm2015}/tools/toolbar-button.component.js +117 -114
- package/esm2015/tools/toolbar-buttongroup.component.js +267 -0
- package/esm2015/tools/toolbar-buttonlist.component.js +94 -0
- package/{dist/es2015 → esm2015}/tools/toolbar-dropdownbutton.component.js +119 -121
- package/esm2015/tools/toolbar-separator.component.js +68 -0
- package/{dist/es2015 → esm2015}/tools/toolbar-splitbutton.component.js +129 -125
- package/{dist/es2015 → esm2015}/tools/toolbar-tool.component.js +15 -19
- package/{dist/es2015 → esm2015}/util.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-toolbar.js} +1019 -886
- package/{dist/es2015/group-selection-settings.d.ts → group-selection-settings.d.ts} +0 -0
- package/kendo-angular-toolbar.d.ts +9 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/localized-toolbar-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -102
- package/{dist/es2015/popup-settings.d.ts → popup-settings.d.ts} +0 -0
- package/{dist/es2015/refresh.service.d.ts → refresh.service.d.ts} +3 -0
- package/{dist/es2015/render-location.d.ts → render-location.d.ts} +0 -0
- package/{dist/es2015/renderer.component.d.ts → renderer.component.d.ts} +4 -1
- package/{dist/es2015/renderer.service.d.ts → renderer.service.d.ts} +3 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/tool-options.d.ts → tool-options.d.ts} +0 -0
- package/{dist/es2015/toolbar.component.d.ts → toolbar.component.d.ts} +30 -18
- package/toolbar.module.d.ts +37 -0
- package/{dist/es2015/tools → tools}/toolbar-button.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/toolbar-buttongroup.component.d.ts +7 -5
- package/{dist/es2015/tools → tools}/toolbar-buttonlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/toolbar-dropdownbutton.component.d.ts +15 -10
- package/{dist/es2015/tools → tools}/toolbar-separator.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/toolbar-splitbutton.component.d.ts +14 -9
- package/{dist/es2015/tools → tools}/toolbar-tool.component.d.ts +5 -2
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-toolbar.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/direction.js +0 -4
- package/dist/es/display-mode.js +0 -4
- package/dist/es/group-selection-settings.js +0 -4
- package/dist/es/index.js +0 -14
- package/dist/es/localization/custom-messages.component.js +0 -43
- package/dist/es/localization/localized-toolbar-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -22
- package/dist/es/navigation.service.js +0 -130
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/refresh.service.js +0 -22
- package/dist/es/renderer.component.js +0 -132
- package/dist/es/renderer.service.js +0 -52
- package/dist/es/toolbar.component.js +0 -641
- package/dist/es/toolbar.module.js +0 -60
- package/dist/es/tools/toolbar-button.component.js +0 -310
- package/dist/es/tools/toolbar-buttongroup.component.js +0 -165
- package/dist/es/tools/toolbar-buttonlist.component.js +0 -66
- package/dist/es/tools/toolbar-dropdownbutton.component.js +0 -368
- package/dist/es/tools/toolbar-separator.component.js +0 -67
- package/dist/es/tools/toolbar-splitbutton.component.js +0 -380
- package/dist/es/tools/toolbar-tool.component.js +0 -76
- package/dist/es/util.js +0 -204
- package/dist/es2015/common/renderer-click.js +0 -4
- package/dist/es2015/index.d.ts +0 -14
- package/dist/es2015/index.js +0 -14
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -35
- package/dist/es2015/localization/localized-toolbar-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.js +0 -16
- package/dist/es2015/main.js +0 -14
- package/dist/es2015/popup-settings.js +0 -4
- package/dist/es2015/render-location.js +0 -4
- package/dist/es2015/tool-options.js +0 -4
- package/dist/es2015/toolbar.module.d.ts +0 -18
- package/dist/es2015/tools/toolbar-buttongroup.component.js +0 -216
- package/dist/es2015/tools/toolbar-buttonlist.component.js +0 -87
- package/dist/es2015/tools/toolbar-separator.component.js +0 -68
- package/dist/fesm5/index.js +0 -2665
- package/dist/npm/common/constants.js +0 -10
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/renderer-click.js +0 -6
- package/dist/npm/direction.js +0 -6
- package/dist/npm/display-mode.js +0 -6
- package/dist/npm/group-selection-settings.js +0 -6
- package/dist/npm/index.js +0 -23
- package/dist/npm/localization/custom-messages.component.js +0 -45
- package/dist/npm/localization/localized-toolbar-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -24
- package/dist/npm/main.js +0 -26
- package/dist/npm/navigation.service.js +0 -132
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popup-settings.js +0 -6
- package/dist/npm/refresh.service.js +0 -24
- package/dist/npm/render-location.js +0 -6
- package/dist/npm/renderer.component.js +0 -134
- package/dist/npm/renderer.service.js +0 -54
- package/dist/npm/tool-options.js +0 -6
- package/dist/npm/toolbar.component.js +0 -643
- package/dist/npm/toolbar.module.js +0 -62
- package/dist/npm/tools/toolbar-button.component.js +0 -312
- package/dist/npm/tools/toolbar-buttongroup.component.js +0 -167
- package/dist/npm/tools/toolbar-buttonlist.component.js +0 -68
- package/dist/npm/tools/toolbar-dropdownbutton.component.js +0 -370
- package/dist/npm/tools/toolbar-separator.component.js +0 -69
- package/dist/npm/tools/toolbar-splitbutton.component.js +0 -382
- package/dist/npm/tools/toolbar-tool.component.js +0 -78
- package/dist/npm/util.js +0 -209
- package/dist/systemjs/kendo-angular-toolbar.js +0 -5
|
@@ -2,16 +2,21 @@
|
|
|
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 { EventEmitter, Injectable,
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { EventEmitter, Injectable, Component, Input, Output, HostListener, Directive, forwardRef, ViewContainerRef, ContentChildren, ViewChild, ViewChildren, HostBinding, ElementRef, NgModule } from '@angular/core';
|
|
7
|
+
import * as i1 from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
|
-
import { take,
|
|
10
|
+
import { take, filter, takeUntil } from 'rxjs/operators';
|
|
11
|
+
import * as i6 from '@progress/kendo-angular-common';
|
|
12
|
+
import { Keys, isDocumentAvailable, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
12
13
|
import { Subject, Subscription, merge, fromEvent } from 'rxjs';
|
|
13
|
-
import
|
|
14
|
+
import * as i2 from '@progress/kendo-angular-popup';
|
|
15
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
16
|
+
import * as i3 from '@angular/common';
|
|
14
17
|
import { CommonModule } from '@angular/common';
|
|
18
|
+
import * as i1$1 from '@progress/kendo-angular-buttons';
|
|
19
|
+
import { DropDownButtonComponent, ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
15
20
|
|
|
16
21
|
/**
|
|
17
22
|
* @hidden
|
|
@@ -20,7 +25,7 @@ const packageMetadata = {
|
|
|
20
25
|
name: '@progress/kendo-angular-toolbar',
|
|
21
26
|
productName: 'Kendo UI for Angular',
|
|
22
27
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
23
|
-
publishDate:
|
|
28
|
+
publishDate: 1649859375,
|
|
24
29
|
version: '',
|
|
25
30
|
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'
|
|
26
31
|
};
|
|
@@ -28,20 +33,19 @@ const packageMetadata = {
|
|
|
28
33
|
/**
|
|
29
34
|
* @hidden
|
|
30
35
|
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
36
|
+
class RefreshService {
|
|
35
37
|
constructor() {
|
|
36
38
|
this.onRefresh = new EventEmitter();
|
|
37
39
|
}
|
|
38
40
|
refresh(tool) {
|
|
39
41
|
this.onRefresh.emit(tool);
|
|
40
42
|
}
|
|
41
|
-
}
|
|
42
|
-
RefreshService =
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
}
|
|
44
|
+
RefreshService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RefreshService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
45
|
+
RefreshService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RefreshService });
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RefreshService, decorators: [{
|
|
47
|
+
type: Injectable
|
|
48
|
+
}] });
|
|
45
49
|
|
|
46
50
|
/**
|
|
47
51
|
* @hidden
|
|
@@ -66,6 +70,15 @@ function innerWidth(element) {
|
|
|
66
70
|
width -= parseFloat(style.paddingRight) || 0 + parseFloat(style.borderRightWidth) || 0;
|
|
67
71
|
return width;
|
|
68
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
function outerHeight(element) {
|
|
77
|
+
var width = element.offsetHeight;
|
|
78
|
+
var style = getComputedStyle(element);
|
|
79
|
+
width += parseFloat(style.marginTop) || 0 + parseFloat(style.marginBottom) || 0;
|
|
80
|
+
return width;
|
|
81
|
+
}
|
|
69
82
|
/**
|
|
70
83
|
* @hidden
|
|
71
84
|
*/
|
|
@@ -220,7 +233,7 @@ const getValueForLocation = (property, displayMode, overflows) => {
|
|
|
220
233
|
/**
|
|
221
234
|
* @hidden
|
|
222
235
|
*/
|
|
223
|
-
|
|
236
|
+
class NavigationService {
|
|
224
237
|
constructor(zone) {
|
|
225
238
|
this.zone = zone;
|
|
226
239
|
this.focused = { renderedTool: null, index: -1 };
|
|
@@ -329,21 +342,18 @@ let NavigationService = class NavigationService {
|
|
|
329
342
|
return (isPresent(this.overflowButton) &&
|
|
330
343
|
window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue('visibility') === 'visible');
|
|
331
344
|
}
|
|
332
|
-
}
|
|
333
|
-
NavigationService =
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
345
|
+
}
|
|
346
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
347
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
|
|
349
|
+
type: Injectable
|
|
350
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
337
351
|
|
|
338
352
|
/**
|
|
339
353
|
* Represents the Base ToolBar Tool component for Angular.
|
|
340
354
|
* Extend this class to create custom tools.
|
|
341
355
|
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Represents the Base ToolBar Tool component for Angular.
|
|
345
|
-
* Extend this class to create custom tools.
|
|
346
|
-
*/
|
|
356
|
+
class ToolBarToolComponent {
|
|
347
357
|
constructor() {
|
|
348
358
|
this.tabIndex = -1; //Focus movement inside the toolbar is managed using roving tabindex.
|
|
349
359
|
this.overflows = true;
|
|
@@ -387,18 +397,19 @@ let ToolBarToolComponent = class ToolBarToolComponent {
|
|
|
387
397
|
handleKey(ev) {
|
|
388
398
|
return false;
|
|
389
399
|
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
}
|
|
401
|
+
ToolBarToolComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
402
|
+
ToolBarToolComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarToolComponent, selector: "toolbar-tool", inputs: { responsive: "responsive" }, ngImport: i0, template: ``, isInline: true });
|
|
403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarToolComponent, decorators: [{
|
|
404
|
+
type: Component,
|
|
405
|
+
args: [{
|
|
406
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
407
|
+
selector: 'toolbar-tool',
|
|
408
|
+
template: ``
|
|
409
|
+
}]
|
|
410
|
+
}], propDecorators: { responsive: [{
|
|
411
|
+
type: Input
|
|
412
|
+
}] } });
|
|
402
413
|
|
|
403
414
|
/**
|
|
404
415
|
* @hidden
|
|
@@ -429,6 +440,214 @@ class PreventableEvent {
|
|
|
429
440
|
*/
|
|
430
441
|
const defaultPopupWidth = '150px';
|
|
431
442
|
|
|
443
|
+
/**
|
|
444
|
+
* @hidden
|
|
445
|
+
*/
|
|
446
|
+
class RendererService {
|
|
447
|
+
getElement() {
|
|
448
|
+
return this.element.nativeElement;
|
|
449
|
+
}
|
|
450
|
+
querySelector(selector) {
|
|
451
|
+
return this.element.nativeElement.querySelector(selector);
|
|
452
|
+
}
|
|
453
|
+
querySelectorAll(selector) {
|
|
454
|
+
return this.element.nativeElement.querySelectorAll(selector);
|
|
455
|
+
}
|
|
456
|
+
findFocusable() {
|
|
457
|
+
return findFocusable(this.element.nativeElement, false);
|
|
458
|
+
}
|
|
459
|
+
findFocusableChild(element) {
|
|
460
|
+
if (!element) {
|
|
461
|
+
element = this.findFocusable();
|
|
462
|
+
}
|
|
463
|
+
return findFocusableChild(element, false);
|
|
464
|
+
}
|
|
465
|
+
findNextFocusableSibling(element) {
|
|
466
|
+
if (!element) {
|
|
467
|
+
element = this.findFocusable();
|
|
468
|
+
}
|
|
469
|
+
return findFocusableSibling(element, false);
|
|
470
|
+
}
|
|
471
|
+
findPrevFocusableSibling(element) {
|
|
472
|
+
if (!element) {
|
|
473
|
+
element = this.findFocusable();
|
|
474
|
+
}
|
|
475
|
+
return findFocusableSibling(element, false, true);
|
|
476
|
+
}
|
|
477
|
+
setAttribute(element, attr, value) {
|
|
478
|
+
this.renderer.setAttribute(element, attr, value);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
RendererService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RendererService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
482
|
+
RendererService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RendererService });
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RendererService, decorators: [{
|
|
484
|
+
type: Injectable
|
|
485
|
+
}] });
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @hidden
|
|
489
|
+
*/
|
|
490
|
+
class ToolBarRendererComponent {
|
|
491
|
+
constructor(element, renderer, rendererService, refreshService) {
|
|
492
|
+
this.element = element;
|
|
493
|
+
this.renderer = renderer;
|
|
494
|
+
this.rendererService = rendererService;
|
|
495
|
+
this.refreshService = refreshService;
|
|
496
|
+
this.rendererClick = new EventEmitter();
|
|
497
|
+
this.rendererService.element = element;
|
|
498
|
+
this.rendererService.renderer = this;
|
|
499
|
+
this.refreshSubscription = this.refreshService.onRefresh.subscribe((tool) => {
|
|
500
|
+
if (this.tool === tool) {
|
|
501
|
+
this.refresh();
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
onClick(ev) {
|
|
506
|
+
this.rendererClick.emit({ context: this, event: ev });
|
|
507
|
+
}
|
|
508
|
+
ngOnInit() {
|
|
509
|
+
if (this.resizable) {
|
|
510
|
+
if (this.location === 'toolbar') {
|
|
511
|
+
this.template = this.tool.toolbarTemplate;
|
|
512
|
+
this.renderer.setStyle(this.element.nativeElement, 'visibility', 'hidden');
|
|
513
|
+
this.renderer.setStyle(this.element.nativeElement, 'display', 'none');
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
this.template = this.tool.popupTemplate;
|
|
517
|
+
this.renderer.setStyle(this.element.nativeElement, 'display', 'none');
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
this.tool.overflows = false;
|
|
522
|
+
this.template = this.tool.toolbarTemplate;
|
|
523
|
+
this.renderer.setStyle(this.element.nativeElement, 'visibility', 'display');
|
|
524
|
+
this.renderer.setStyle(this.element.nativeElement, 'display', 'inline-block');
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
ngOnDestroy() {
|
|
528
|
+
this.refreshSubscription.unsubscribe();
|
|
529
|
+
}
|
|
530
|
+
ngAfterViewInit() {
|
|
531
|
+
if (this.resizable) {
|
|
532
|
+
this.refresh();
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @hidden
|
|
537
|
+
*/
|
|
538
|
+
get width() {
|
|
539
|
+
return this.tool.overflows ? 0 : outerWidth(this.element.nativeElement);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* @hidden
|
|
543
|
+
*/
|
|
544
|
+
isDisplayed() {
|
|
545
|
+
return this.element.nativeElement.style.display !== 'none';
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @hidden
|
|
549
|
+
*/
|
|
550
|
+
refresh() {
|
|
551
|
+
if (this.resizable) {
|
|
552
|
+
if (this.location === 'toolbar') {
|
|
553
|
+
this.renderer.setStyle(this.element.nativeElement, 'visibility', this.tool.visibility);
|
|
554
|
+
this.renderer.setStyle(this.element.nativeElement, 'display', this.tool.toolbarDisplay);
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
this.renderer.setStyle(this.element.nativeElement, 'display', this.tool.overflowDisplay);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* @hidden
|
|
563
|
+
*/
|
|
564
|
+
setAttribute(element, attr, value) {
|
|
565
|
+
this.renderer.setAttribute(element, attr, value);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
ToolBarRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarRendererComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: RendererService }, { token: RefreshService }], target: i0.ɵɵFactoryTarget.Component });
|
|
569
|
+
ToolBarRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: { tool: "tool", location: "location", resizable: "resizable" }, outputs: { rendererClick: "rendererClick" }, host: { listeners: { "click": "onClick($event)" } }, providers: [RendererService], exportAs: ["kendoToolBarRenderer"], ngImport: i0, template: `
|
|
570
|
+
<ng-container *ngIf="location === 'toolbar'">
|
|
571
|
+
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
572
|
+
</ng-container>
|
|
573
|
+
<ng-container *ngIf="location === 'overflow' && tool.responsive">
|
|
574
|
+
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
575
|
+
</ng-container>
|
|
576
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarRendererComponent, decorators: [{
|
|
578
|
+
type: Component,
|
|
579
|
+
args: [{
|
|
580
|
+
exportAs: 'kendoToolBarRenderer',
|
|
581
|
+
providers: [RendererService],
|
|
582
|
+
selector: 'kendo-toolbar-renderer',
|
|
583
|
+
template: `
|
|
584
|
+
<ng-container *ngIf="location === 'toolbar'">
|
|
585
|
+
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
586
|
+
</ng-container>
|
|
587
|
+
<ng-container *ngIf="location === 'overflow' && tool.responsive">
|
|
588
|
+
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
589
|
+
</ng-container>
|
|
590
|
+
`
|
|
591
|
+
}]
|
|
592
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: RendererService }, { type: RefreshService }]; }, propDecorators: { tool: [{
|
|
593
|
+
type: Input
|
|
594
|
+
}], location: [{
|
|
595
|
+
type: Input
|
|
596
|
+
}], resizable: [{
|
|
597
|
+
type: Input
|
|
598
|
+
}], rendererClick: [{
|
|
599
|
+
type: Output
|
|
600
|
+
}], onClick: [{
|
|
601
|
+
type: HostListener,
|
|
602
|
+
args: ['click', ['$event']]
|
|
603
|
+
}] } });
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @hidden
|
|
607
|
+
*/
|
|
608
|
+
class ToolbarMessages extends ComponentMessages {
|
|
609
|
+
}
|
|
610
|
+
ToolbarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolbarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
611
|
+
ToolbarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ToolbarMessages, selector: "kendo-toolbar-messages-base", inputs: { moreToolsTitle: "moreToolsTitle" }, usesInheritance: true, ngImport: i0 });
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolbarMessages, decorators: [{
|
|
613
|
+
type: Directive,
|
|
614
|
+
args: [{
|
|
615
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
616
|
+
selector: 'kendo-toolbar-messages-base'
|
|
617
|
+
}]
|
|
618
|
+
}], propDecorators: { moreToolsTitle: [{
|
|
619
|
+
type: Input
|
|
620
|
+
}] } });
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @hidden
|
|
624
|
+
*/
|
|
625
|
+
class LocalizedToolbarMessagesDirective extends ToolbarMessages {
|
|
626
|
+
constructor(service) {
|
|
627
|
+
super();
|
|
628
|
+
this.service = service;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
LocalizedToolbarMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedToolbarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
632
|
+
LocalizedToolbarMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]", providers: [
|
|
633
|
+
{
|
|
634
|
+
provide: ToolbarMessages,
|
|
635
|
+
useExisting: forwardRef(() => LocalizedToolbarMessagesDirective)
|
|
636
|
+
}
|
|
637
|
+
], usesInheritance: true, ngImport: i0 });
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedToolbarMessagesDirective, decorators: [{
|
|
639
|
+
type: Directive,
|
|
640
|
+
args: [{
|
|
641
|
+
providers: [
|
|
642
|
+
{
|
|
643
|
+
provide: ToolbarMessages,
|
|
644
|
+
useExisting: forwardRef(() => LocalizedToolbarMessagesDirective)
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
selector: '[kendoToolbarLocalizedMessages]'
|
|
648
|
+
}]
|
|
649
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
650
|
+
|
|
432
651
|
const getInitialPopupSettings = (isRtl) => ({
|
|
433
652
|
animate: true,
|
|
434
653
|
anchorAlign: { horizontal: isRtl ? 'left' : 'right', vertical: 'bottom' },
|
|
@@ -437,8 +656,8 @@ const getInitialPopupSettings = (isRtl) => ({
|
|
|
437
656
|
/**
|
|
438
657
|
* Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
|
|
439
658
|
*/
|
|
440
|
-
|
|
441
|
-
constructor(localization, popupService, refreshService, navigationService, element, zone, renderer) {
|
|
659
|
+
class ToolBarComponent {
|
|
660
|
+
constructor(localization, popupService, refreshService, navigationService, element, zone, renderer, _cdr) {
|
|
442
661
|
this.localization = localization;
|
|
443
662
|
this.popupService = popupService;
|
|
444
663
|
this.refreshService = refreshService;
|
|
@@ -446,6 +665,7 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
446
665
|
this.element = element;
|
|
447
666
|
this.zone = zone;
|
|
448
667
|
this.renderer = renderer;
|
|
668
|
+
this._cdr = _cdr;
|
|
449
669
|
/**
|
|
450
670
|
* Hides the overflowing tools in a popup.
|
|
451
671
|
*/
|
|
@@ -565,7 +785,12 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
565
785
|
case Keys.ArrowLeft:
|
|
566
786
|
this.zone.run(() => {
|
|
567
787
|
ev.preventDefault();
|
|
568
|
-
this.direction === 'ltr'
|
|
788
|
+
if (this.direction === 'ltr') {
|
|
789
|
+
this.navigationService.focusPrev(ev);
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
this.navigationService.focusNext(ev);
|
|
793
|
+
}
|
|
569
794
|
// prevents ExpressionChangedAfterItHasBeenCheckedError when tools with popup are opened/closed asynchronously
|
|
570
795
|
this.element.nativeElement.setAttribute('tabindex', '-1');
|
|
571
796
|
});
|
|
@@ -573,7 +798,12 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
573
798
|
case Keys.ArrowRight:
|
|
574
799
|
this.zone.run(() => {
|
|
575
800
|
ev.preventDefault();
|
|
576
|
-
this.direction === 'ltr'
|
|
801
|
+
if (this.direction === 'ltr') {
|
|
802
|
+
this.navigationService.focusNext(ev);
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
this.navigationService.focusPrev(ev);
|
|
806
|
+
}
|
|
577
807
|
// prevents ExpressionChangedAfterItHasBeenCheckedError when tools with popup are opened/closed asynchronously
|
|
578
808
|
this.element.nativeElement.setAttribute('tabindex', '-1');
|
|
579
809
|
});
|
|
@@ -590,9 +820,7 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
590
820
|
});
|
|
591
821
|
});
|
|
592
822
|
if (this.overflow) {
|
|
593
|
-
this.subscriptions.add(merge(
|
|
594
|
-
// trigger resizing calculations once every 200ms instead of each time the resize event is emitted
|
|
595
|
-
this.resizeSensor.resize.pipe(bufferTime(200), filter(v => v.length > 0)), this.renderedTools.changes).subscribe(() => { this.onResize(); }));
|
|
823
|
+
this.subscriptions.add(merge(this.resizeSensor.resize, this.renderedTools.changes).subscribe(() => { this.onResize(); }));
|
|
596
824
|
// because of https://github.com/telerik/kendo-angular-buttons/pull/276
|
|
597
825
|
// calling onResize twice is the trade-off for removing the manual ChangeDetection
|
|
598
826
|
// triggering altogether - it ensures correct layout and calculations
|
|
@@ -637,6 +865,12 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
637
865
|
get moreToolsTitle() {
|
|
638
866
|
return this.localization.get('moreToolsTitle');
|
|
639
867
|
}
|
|
868
|
+
/**
|
|
869
|
+
* @hidden
|
|
870
|
+
*/
|
|
871
|
+
get cdr() {
|
|
872
|
+
return this._cdr;
|
|
873
|
+
}
|
|
640
874
|
/**
|
|
641
875
|
* @hidden
|
|
642
876
|
*/
|
|
@@ -684,11 +918,9 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
684
918
|
const containerWidth = innerWidth(this.element.nativeElement) - this.overflowAnchorWidth;
|
|
685
919
|
this.shrink(containerWidth, this.childrenWidth);
|
|
686
920
|
this.stretch(containerWidth, this.childrenWidth);
|
|
687
|
-
this.
|
|
688
|
-
|
|
689
|
-
});
|
|
921
|
+
this.displayAnchor();
|
|
922
|
+
this.resizeSensor.acceptSize();
|
|
690
923
|
}
|
|
691
|
-
this.resizeSensor.acceptSize();
|
|
692
924
|
}
|
|
693
925
|
/**
|
|
694
926
|
* @hidden
|
|
@@ -851,112 +1083,77 @@ let ToolBarComponent = class ToolBarComponent {
|
|
|
851
1083
|
popupContentContainer.style.height = this.popupHeight;
|
|
852
1084
|
popupContentContainer.style.overflow = 'auto';
|
|
853
1085
|
}
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
]
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
],
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
__decorate([
|
|
926
|
-
HostListener('focusout', ['$event']),
|
|
927
|
-
__metadata("design:type", Function),
|
|
928
|
-
__metadata("design:paramtypes", [Object]),
|
|
929
|
-
__metadata("design:returntype", void 0)
|
|
930
|
-
], ToolBarComponent.prototype, "onFocusOut", null);
|
|
931
|
-
__decorate([
|
|
932
|
-
HostBinding('attr.role'),
|
|
933
|
-
__metadata("design:type", String),
|
|
934
|
-
__metadata("design:paramtypes", [])
|
|
935
|
-
], ToolBarComponent.prototype, "getRole", null);
|
|
936
|
-
__decorate([
|
|
937
|
-
HostBinding('attr.dir'),
|
|
938
|
-
__metadata("design:type", String),
|
|
939
|
-
__metadata("design:paramtypes", [])
|
|
940
|
-
], ToolBarComponent.prototype, "getDir", null);
|
|
941
|
-
__decorate([
|
|
942
|
-
HostBinding('class.k-toolbar-resizable'),
|
|
943
|
-
__metadata("design:type", Boolean),
|
|
944
|
-
__metadata("design:paramtypes", [])
|
|
945
|
-
], ToolBarComponent.prototype, "resizableClass", null);
|
|
946
|
-
ToolBarComponent = __decorate([
|
|
947
|
-
Component({
|
|
948
|
-
exportAs: 'kendoToolBar',
|
|
949
|
-
providers: [
|
|
950
|
-
RefreshService,
|
|
951
|
-
NavigationService,
|
|
952
|
-
LocalizationService,
|
|
953
|
-
{
|
|
954
|
-
provide: L10N_PREFIX,
|
|
955
|
-
useValue: 'kendo.toolbar'
|
|
956
|
-
}
|
|
957
|
-
],
|
|
958
|
-
selector: 'kendo-toolbar',
|
|
959
|
-
template: `
|
|
1086
|
+
}
|
|
1087
|
+
ToolBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PopupService }, { token: RefreshService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1088
|
+
ToolBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarComponent, selector: "kendo-toolbar", inputs: { overflow: "overflow", resizable: "resizable", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex" }, outputs: { open: "open", close: "close" }, host: { listeners: { "focus": "onFocus($event)", "focusout": "onFocusOut($event)" }, properties: { "class.k-widget": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "attr.role": "this.getRole", "attr.dir": "this.getDir", "class.k-toolbar-resizable": "this.resizableClass" } }, providers: [
|
|
1089
|
+
RefreshService,
|
|
1090
|
+
NavigationService,
|
|
1091
|
+
LocalizationService,
|
|
1092
|
+
{
|
|
1093
|
+
provide: L10N_PREFIX,
|
|
1094
|
+
useValue: 'kendo.toolbar'
|
|
1095
|
+
}
|
|
1096
|
+
], queries: [{ propertyName: "allTools", predicate: ToolBarToolComponent }], viewQueries: [{ propertyName: "overflowButton", first: true, predicate: ["overflowButton"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ["resizeSensor"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "renderedTools", predicate: ["toolbarRenderer"], descendants: true }, { propertyName: "overflowRenderedTools", predicate: ["overflowRenderer"], descendants: true }], exportAs: ["kendoToolBar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1097
|
+
<ng-container kendoToolbarLocalizedMessages
|
|
1098
|
+
i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"
|
|
1099
|
+
moreToolsTitle="More tools"
|
|
1100
|
+
>
|
|
1101
|
+
</ng-container>
|
|
1102
|
+
<ng-container *ngFor="let tool of allTools; let index = index">
|
|
1103
|
+
<kendo-toolbar-renderer
|
|
1104
|
+
#toolbarRenderer
|
|
1105
|
+
(rendererClick)="onRendererClick($event)"
|
|
1106
|
+
[location]="'toolbar'"
|
|
1107
|
+
[resizable]="overflow"
|
|
1108
|
+
[tool]="tool"
|
|
1109
|
+
></kendo-toolbar-renderer>
|
|
1110
|
+
</ng-container>
|
|
1111
|
+
<button
|
|
1112
|
+
#overflowButton
|
|
1113
|
+
type="button"
|
|
1114
|
+
tabindex="-1"
|
|
1115
|
+
[title]="moreToolsTitle"
|
|
1116
|
+
[attr.aria-label]="moreToolsTitle"
|
|
1117
|
+
*ngIf="overflow"
|
|
1118
|
+
[style.visibility]="'hidden'"
|
|
1119
|
+
class="k-overflow-anchor k-button"
|
|
1120
|
+
(click)="showPopup()"
|
|
1121
|
+
>
|
|
1122
|
+
<span class="k-icon k-i-more-vertical"></span>
|
|
1123
|
+
</button>
|
|
1124
|
+
<ng-template #popupTemplate>
|
|
1125
|
+
<ul class="k-overflow-container k-list-container k-reset">
|
|
1126
|
+
<ng-container *ngFor="let tool of allTools; let index = index">
|
|
1127
|
+
<li class="k-item">
|
|
1128
|
+
<kendo-toolbar-renderer
|
|
1129
|
+
#overflowRenderer
|
|
1130
|
+
(rendererClick)="onRendererClick($event)"
|
|
1131
|
+
[location]="'overflow'"
|
|
1132
|
+
[resizable]="overflow"
|
|
1133
|
+
[tool]="tool"
|
|
1134
|
+
></kendo-toolbar-renderer>
|
|
1135
|
+
</li>
|
|
1136
|
+
</ng-container>
|
|
1137
|
+
</ul>
|
|
1138
|
+
</ng-template>
|
|
1139
|
+
<ng-container #container></ng-container>
|
|
1140
|
+
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
1141
|
+
`, isInline: true, components: [{ type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
1143
|
+
type: Component,
|
|
1144
|
+
args: [{
|
|
1145
|
+
exportAs: 'kendoToolBar',
|
|
1146
|
+
providers: [
|
|
1147
|
+
RefreshService,
|
|
1148
|
+
NavigationService,
|
|
1149
|
+
LocalizationService,
|
|
1150
|
+
{
|
|
1151
|
+
provide: L10N_PREFIX,
|
|
1152
|
+
useValue: 'kendo.toolbar'
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
selector: 'kendo-toolbar',
|
|
1156
|
+
template: `
|
|
960
1157
|
<ng-container kendoToolbarLocalizedMessages
|
|
961
1158
|
i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"
|
|
962
1159
|
moreToolsTitle="More tools"
|
|
@@ -1000,23 +1197,72 @@ ToolBarComponent = __decorate([
|
|
|
1000
1197
|
</ul>
|
|
1001
1198
|
</ng-template>
|
|
1002
1199
|
<ng-container #container></ng-container>
|
|
1003
|
-
<kendo-resize-sensor *ngIf="overflow"
|
|
1200
|
+
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
1004
1201
|
`
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1202
|
+
}]
|
|
1203
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PopupService }, { type: RefreshService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { overflow: [{
|
|
1204
|
+
type: Input
|
|
1205
|
+
}], resizable: [{
|
|
1206
|
+
type: Input
|
|
1207
|
+
}], popupSettings: [{
|
|
1208
|
+
type: Input
|
|
1209
|
+
}], tabindex: [{
|
|
1210
|
+
type: Input
|
|
1211
|
+
}], tabIndex: [{
|
|
1212
|
+
type: Input,
|
|
1213
|
+
args: ['tabIndex']
|
|
1214
|
+
}], open: [{
|
|
1215
|
+
type: Output
|
|
1216
|
+
}], close: [{
|
|
1217
|
+
type: Output
|
|
1218
|
+
}], allTools: [{
|
|
1219
|
+
type: ContentChildren,
|
|
1220
|
+
args: [ToolBarToolComponent]
|
|
1221
|
+
}], overflowButton: [{
|
|
1222
|
+
type: ViewChild,
|
|
1223
|
+
args: ['overflowButton', { static: false }]
|
|
1224
|
+
}], popupTemplate: [{
|
|
1225
|
+
type: ViewChild,
|
|
1226
|
+
args: ['popupTemplate', { static: true }]
|
|
1227
|
+
}], resizeSensor: [{
|
|
1228
|
+
type: ViewChild,
|
|
1229
|
+
args: ['resizeSensor', { static: false }]
|
|
1230
|
+
}], container: [{
|
|
1231
|
+
type: ViewChild,
|
|
1232
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
1233
|
+
}], renderedTools: [{
|
|
1234
|
+
type: ViewChildren,
|
|
1235
|
+
args: ['toolbarRenderer']
|
|
1236
|
+
}], overflowRenderedTools: [{
|
|
1237
|
+
type: ViewChildren,
|
|
1238
|
+
args: ['overflowRenderer']
|
|
1239
|
+
}], hostClasses: [{
|
|
1240
|
+
type: HostBinding,
|
|
1241
|
+
args: ['class.k-widget']
|
|
1242
|
+
}, {
|
|
1243
|
+
type: HostBinding,
|
|
1244
|
+
args: ['class.k-toolbar']
|
|
1245
|
+
}], onFocus: [{
|
|
1246
|
+
type: HostListener,
|
|
1247
|
+
args: ['focus', ['$event']]
|
|
1248
|
+
}], onFocusOut: [{
|
|
1249
|
+
type: HostListener,
|
|
1250
|
+
args: ['focusout', ['$event']]
|
|
1251
|
+
}], getRole: [{
|
|
1252
|
+
type: HostBinding,
|
|
1253
|
+
args: ['attr.role']
|
|
1254
|
+
}], getDir: [{
|
|
1255
|
+
type: HostBinding,
|
|
1256
|
+
args: ['attr.dir']
|
|
1257
|
+
}], resizableClass: [{
|
|
1258
|
+
type: HostBinding,
|
|
1259
|
+
args: ['class.k-toolbar-resizable']
|
|
1260
|
+
}] } });
|
|
1014
1261
|
|
|
1015
|
-
var ToolBarButtonComponent_1;
|
|
1016
1262
|
/**
|
|
1017
1263
|
* Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
|
|
1018
1264
|
*/
|
|
1019
|
-
|
|
1265
|
+
class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
1020
1266
|
constructor() {
|
|
1021
1267
|
super();
|
|
1022
1268
|
// showText and showIcon showIcon should be declared first
|
|
@@ -1176,112 +1422,9 @@ let ToolBarButtonComponent = ToolBarButtonComponent_1 = class ToolBarButtonCompo
|
|
|
1176
1422
|
getButton() {
|
|
1177
1423
|
return (this.overflows ? this.overflowButtonElement : this.toolbarButtonElement).nativeElement;
|
|
1178
1424
|
}
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
__metadata("design:type", String)
|
|
1183
|
-
], ToolBarButtonComponent.prototype, "showText", void 0);
|
|
1184
|
-
__decorate([
|
|
1185
|
-
Input(),
|
|
1186
|
-
__metadata("design:type", String)
|
|
1187
|
-
], ToolBarButtonComponent.prototype, "showIcon", void 0);
|
|
1188
|
-
__decorate([
|
|
1189
|
-
Input(),
|
|
1190
|
-
__metadata("design:type", String),
|
|
1191
|
-
__metadata("design:paramtypes", [String])
|
|
1192
|
-
], ToolBarButtonComponent.prototype, "text", null);
|
|
1193
|
-
__decorate([
|
|
1194
|
-
Input(),
|
|
1195
|
-
__metadata("design:type", Object)
|
|
1196
|
-
], ToolBarButtonComponent.prototype, "style", void 0);
|
|
1197
|
-
__decorate([
|
|
1198
|
-
Input(),
|
|
1199
|
-
__metadata("design:type", Object)
|
|
1200
|
-
], ToolBarButtonComponent.prototype, "className", void 0);
|
|
1201
|
-
__decorate([
|
|
1202
|
-
Input(),
|
|
1203
|
-
__metadata("design:type", String)
|
|
1204
|
-
], ToolBarButtonComponent.prototype, "title", void 0);
|
|
1205
|
-
__decorate([
|
|
1206
|
-
Input(),
|
|
1207
|
-
__metadata("design:type", Boolean)
|
|
1208
|
-
], ToolBarButtonComponent.prototype, "disabled", void 0);
|
|
1209
|
-
__decorate([
|
|
1210
|
-
Input(),
|
|
1211
|
-
__metadata("design:type", Boolean)
|
|
1212
|
-
], ToolBarButtonComponent.prototype, "toggleable", void 0);
|
|
1213
|
-
__decorate([
|
|
1214
|
-
Input(),
|
|
1215
|
-
__metadata("design:type", String),
|
|
1216
|
-
__metadata("design:paramtypes", [String])
|
|
1217
|
-
], ToolBarButtonComponent.prototype, "look", null);
|
|
1218
|
-
__decorate([
|
|
1219
|
-
Input(),
|
|
1220
|
-
__metadata("design:type", Boolean),
|
|
1221
|
-
__metadata("design:paramtypes", [Boolean])
|
|
1222
|
-
], ToolBarButtonComponent.prototype, "togglable", null);
|
|
1223
|
-
__decorate([
|
|
1224
|
-
Input(),
|
|
1225
|
-
__metadata("design:type", Boolean)
|
|
1226
|
-
], ToolBarButtonComponent.prototype, "selected", void 0);
|
|
1227
|
-
__decorate([
|
|
1228
|
-
Input(),
|
|
1229
|
-
__metadata("design:type", String)
|
|
1230
|
-
], ToolBarButtonComponent.prototype, "fillMode", void 0);
|
|
1231
|
-
__decorate([
|
|
1232
|
-
Input(),
|
|
1233
|
-
__metadata("design:type", String)
|
|
1234
|
-
], ToolBarButtonComponent.prototype, "themeColor", void 0);
|
|
1235
|
-
__decorate([
|
|
1236
|
-
Input(),
|
|
1237
|
-
__metadata("design:type", String),
|
|
1238
|
-
__metadata("design:paramtypes", [String])
|
|
1239
|
-
], ToolBarButtonComponent.prototype, "icon", null);
|
|
1240
|
-
__decorate([
|
|
1241
|
-
Input(),
|
|
1242
|
-
__metadata("design:type", String),
|
|
1243
|
-
__metadata("design:paramtypes", [String])
|
|
1244
|
-
], ToolBarButtonComponent.prototype, "iconClass", null);
|
|
1245
|
-
__decorate([
|
|
1246
|
-
Input(),
|
|
1247
|
-
__metadata("design:type", String),
|
|
1248
|
-
__metadata("design:paramtypes", [String])
|
|
1249
|
-
], ToolBarButtonComponent.prototype, "imageUrl", null);
|
|
1250
|
-
__decorate([
|
|
1251
|
-
Output(),
|
|
1252
|
-
__metadata("design:type", EventEmitter)
|
|
1253
|
-
], ToolBarButtonComponent.prototype, "click", void 0);
|
|
1254
|
-
__decorate([
|
|
1255
|
-
Output(),
|
|
1256
|
-
__metadata("design:type", EventEmitter)
|
|
1257
|
-
], ToolBarButtonComponent.prototype, "pointerdown", void 0);
|
|
1258
|
-
__decorate([
|
|
1259
|
-
Output(),
|
|
1260
|
-
__metadata("design:type", EventEmitter)
|
|
1261
|
-
], ToolBarButtonComponent.prototype, "selectedChange", void 0);
|
|
1262
|
-
__decorate([
|
|
1263
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
1264
|
-
__metadata("design:type", TemplateRef)
|
|
1265
|
-
], ToolBarButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
1266
|
-
__decorate([
|
|
1267
|
-
ViewChild('popupTemplate', { static: true }),
|
|
1268
|
-
__metadata("design:type", TemplateRef)
|
|
1269
|
-
], ToolBarButtonComponent.prototype, "popupTemplate", void 0);
|
|
1270
|
-
__decorate([
|
|
1271
|
-
ViewChild('toolbarButton', { read: ElementRef, static: false }),
|
|
1272
|
-
__metadata("design:type", ElementRef)
|
|
1273
|
-
], ToolBarButtonComponent.prototype, "toolbarButtonElement", void 0);
|
|
1274
|
-
__decorate([
|
|
1275
|
-
ViewChild('overflowButton', { read: ElementRef, static: false }),
|
|
1276
|
-
__metadata("design:type", ElementRef)
|
|
1277
|
-
], ToolBarButtonComponent.prototype, "overflowButtonElement", void 0);
|
|
1278
|
-
ToolBarButtonComponent = ToolBarButtonComponent_1 = __decorate([
|
|
1279
|
-
Component({
|
|
1280
|
-
exportAs: 'kendoToolBarButton',
|
|
1281
|
-
// tslint:disable-next-line:no-forward-ref
|
|
1282
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonComponent_1) }],
|
|
1283
|
-
selector: 'kendo-toolbar-button',
|
|
1284
|
-
template: `
|
|
1425
|
+
}
|
|
1426
|
+
ToolBarButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1427
|
+
ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: { showText: "showText", showIcon: "showIcon", text: "text", style: "style", className: "className", title: "title", disabled: "disabled", toggleable: "toggleable", look: "look", togglable: "togglable", selected: "selected", fillMode: "fillMode", themeColor: "themeColor", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl" }, outputs: { click: "click", pointerdown: "pointerdown", selectedChange: "selectedChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toolbarButtonElement", first: true, predicate: ["toolbarButton"], descendants: true, read: ElementRef }, { propertyName: "overflowButtonElement", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }], exportAs: ["kendoToolBarButton"], usesInheritance: true, ngImport: i0, template: `
|
|
1285
1428
|
<ng-template #toolbarTemplate>
|
|
1286
1429
|
<button
|
|
1287
1430
|
#toolbarButton
|
|
@@ -1331,45 +1474,150 @@ ToolBarButtonComponent = ToolBarButtonComponent_1 = __decorate([
|
|
|
1331
1474
|
{{ overflowOptions.text }}
|
|
1332
1475
|
</button>
|
|
1333
1476
|
</ng-template>
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1477
|
+
`, isInline: true, directives: [{ type: i1$1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
1479
|
+
type: Component,
|
|
1480
|
+
args: [{
|
|
1481
|
+
exportAs: 'kendoToolBarButton',
|
|
1482
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonComponent) }],
|
|
1483
|
+
selector: 'kendo-toolbar-button',
|
|
1484
|
+
template: `
|
|
1485
|
+
<ng-template #toolbarTemplate>
|
|
1486
|
+
<button
|
|
1487
|
+
#toolbarButton
|
|
1488
|
+
[tabindex]="tabIndex"
|
|
1489
|
+
type="button"
|
|
1490
|
+
kendoButton
|
|
1491
|
+
[ngStyle]="style"
|
|
1492
|
+
[ngClass]="className"
|
|
1493
|
+
[attr.title]="title"
|
|
1494
|
+
[disabled]="disabled"
|
|
1495
|
+
[toggleable]="toggleable"
|
|
1496
|
+
[fillMode]="fillMode"
|
|
1497
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1498
|
+
[selected]="selected"
|
|
1499
|
+
[icon]="toolbarOptions.icon"
|
|
1500
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
1501
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
1502
|
+
(click)="click.emit($event)"
|
|
1503
|
+
(pointerdown)="pointerdown.emit($event)"
|
|
1504
|
+
(selectedChange)="selectedChange.emit($event)"
|
|
1505
|
+
(blur)="onBlur()"
|
|
1506
|
+
>
|
|
1507
|
+
{{ toolbarOptions.text }}
|
|
1508
|
+
</button>
|
|
1509
|
+
</ng-template>
|
|
1510
|
+
<ng-template #popupTemplate>
|
|
1511
|
+
<button
|
|
1512
|
+
#overflowButton
|
|
1513
|
+
tabindex="-1"
|
|
1514
|
+
type="button"
|
|
1515
|
+
kendoButton
|
|
1516
|
+
class="k-overflow-button"
|
|
1517
|
+
[ngStyle]="style"
|
|
1518
|
+
[ngClass]="className"
|
|
1519
|
+
[attr.title]="title"
|
|
1520
|
+
[disabled]="disabled"
|
|
1521
|
+
[toggleable]="toggleable"
|
|
1522
|
+
[fillMode]="fillMode"
|
|
1523
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1524
|
+
[selected]="selected"
|
|
1525
|
+
[icon]="overflowOptions.icon"
|
|
1526
|
+
[iconClass]="overflowOptions.iconClass"
|
|
1527
|
+
[imageUrl]="overflowOptions.imageUrl"
|
|
1528
|
+
(click)="click.emit($event)"
|
|
1529
|
+
(selectedChange)="selectedChange.emit($event)"
|
|
1530
|
+
>
|
|
1531
|
+
{{ overflowOptions.text }}
|
|
1532
|
+
</button>
|
|
1533
|
+
</ng-template>
|
|
1534
|
+
`
|
|
1535
|
+
}]
|
|
1536
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showText: [{
|
|
1537
|
+
type: Input
|
|
1538
|
+
}], showIcon: [{
|
|
1539
|
+
type: Input
|
|
1540
|
+
}], text: [{
|
|
1541
|
+
type: Input
|
|
1542
|
+
}], style: [{
|
|
1543
|
+
type: Input
|
|
1544
|
+
}], className: [{
|
|
1545
|
+
type: Input
|
|
1546
|
+
}], title: [{
|
|
1547
|
+
type: Input
|
|
1548
|
+
}], disabled: [{
|
|
1549
|
+
type: Input
|
|
1550
|
+
}], toggleable: [{
|
|
1551
|
+
type: Input
|
|
1552
|
+
}], look: [{
|
|
1553
|
+
type: Input
|
|
1554
|
+
}], togglable: [{
|
|
1555
|
+
type: Input
|
|
1556
|
+
}], selected: [{
|
|
1557
|
+
type: Input
|
|
1558
|
+
}], fillMode: [{
|
|
1559
|
+
type: Input
|
|
1560
|
+
}], themeColor: [{
|
|
1561
|
+
type: Input
|
|
1562
|
+
}], icon: [{
|
|
1563
|
+
type: Input
|
|
1564
|
+
}], iconClass: [{
|
|
1565
|
+
type: Input
|
|
1566
|
+
}], imageUrl: [{
|
|
1567
|
+
type: Input
|
|
1568
|
+
}], click: [{
|
|
1569
|
+
type: Output
|
|
1570
|
+
}], pointerdown: [{
|
|
1571
|
+
type: Output
|
|
1572
|
+
}], selectedChange: [{
|
|
1573
|
+
type: Output
|
|
1574
|
+
}], toolbarTemplate: [{
|
|
1575
|
+
type: ViewChild,
|
|
1576
|
+
args: ['toolbarTemplate', { static: true }]
|
|
1577
|
+
}], popupTemplate: [{
|
|
1578
|
+
type: ViewChild,
|
|
1579
|
+
args: ['popupTemplate', { static: true }]
|
|
1580
|
+
}], toolbarButtonElement: [{
|
|
1581
|
+
type: ViewChild,
|
|
1582
|
+
args: ['toolbarButton', { read: ElementRef, static: false }]
|
|
1583
|
+
}], overflowButtonElement: [{
|
|
1584
|
+
type: ViewChild,
|
|
1585
|
+
args: ['overflowButton', { read: ElementRef, static: false }]
|
|
1586
|
+
}] } });
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Represents the Kendo UI Toolbar ButtonGroup for Angular.
|
|
1590
|
+
*/
|
|
1591
|
+
class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
1592
|
+
constructor(localization) {
|
|
1593
|
+
super();
|
|
1594
|
+
this.localization = localization;
|
|
1595
|
+
/**
|
|
1596
|
+
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
1597
|
+
*/
|
|
1598
|
+
this.selection = 'multiple';
|
|
1599
|
+
this.focusedIndex = -1;
|
|
1600
|
+
this.getNextKey = getNextKey(this.localization.rtl);
|
|
1601
|
+
this.getPrevKey = getPrevKey(this.localization.rtl);
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* @hidden
|
|
1605
|
+
*/
|
|
1606
|
+
set look(look) {
|
|
1607
|
+
if (look) {
|
|
1608
|
+
this.buttonComponents.forEach(b => b.fillMode = look === 'default' ? 'solid' : look);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
get buttonElements() {
|
|
1612
|
+
return this.getButtonGroup()
|
|
1613
|
+
.buttons.filter(b => !b.isDisabled)
|
|
1614
|
+
.map(b => b.element);
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* @hidden
|
|
1618
|
+
*/
|
|
1619
|
+
onFocus() {
|
|
1620
|
+
// triggered on tabin
|
|
1373
1621
|
this.focusedIndex = 0;
|
|
1374
1622
|
}
|
|
1375
1623
|
/**
|
|
@@ -1428,51 +1676,80 @@ let ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = class ToolBarB
|
|
|
1428
1676
|
this.buttonElements[index].focus();
|
|
1429
1677
|
}
|
|
1430
1678
|
}
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
]
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
]
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
]
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
]
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1679
|
+
}
|
|
1680
|
+
ToolBarButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonGroupComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1681
|
+
ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: { disabled: "disabled", selection: "selection", width: "width", look: "look" }, providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonGroupComponent) }], queries: [{ propertyName: "buttonComponents", predicate: i0.forwardRef(function () { return ToolBarButtonComponent; }) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toolbarButtonGroup", first: true, predicate: ["toolbarButtonGroup"], descendants: true }, { propertyName: "overflowButtonGroup", first: true, predicate: ["overflowButtonGroup"], descendants: true }], exportAs: ["kendoToolBarButtonGroup"], usesInheritance: true, ngImport: i0, template: `
|
|
1682
|
+
<ng-template #toolbarTemplate>
|
|
1683
|
+
<kendo-buttongroup
|
|
1684
|
+
#toolbarButtonGroup
|
|
1685
|
+
[tabIndex]="-1"
|
|
1686
|
+
[selection]="selection"
|
|
1687
|
+
[disabled]="disabled"
|
|
1688
|
+
[width]="width"
|
|
1689
|
+
(navigate)="onNavigate($event)"
|
|
1690
|
+
(focus)="onFocus()"
|
|
1691
|
+
>
|
|
1692
|
+
<span
|
|
1693
|
+
kendoButton
|
|
1694
|
+
*ngFor="let button of buttonComponents"
|
|
1695
|
+
[ngStyle]="button.style"
|
|
1696
|
+
[ngClass]="button.className"
|
|
1697
|
+
[attr.title]="button.title"
|
|
1698
|
+
[disabled]="button.disabled"
|
|
1699
|
+
[togglable]="button.togglable"
|
|
1700
|
+
[selected]="button.selected"
|
|
1701
|
+
[fillMode]="button.fillMode"
|
|
1702
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
1703
|
+
[icon]="button.toolbarOptions.icon"
|
|
1704
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
1705
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
1706
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
1707
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
1708
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
1709
|
+
>
|
|
1710
|
+
{{ button.toolbarOptions.text }}
|
|
1711
|
+
</span>
|
|
1712
|
+
</kendo-buttongroup>
|
|
1713
|
+
</ng-template>
|
|
1714
|
+
<ng-template #popupTemplate>
|
|
1715
|
+
<kendo-buttongroup
|
|
1716
|
+
#overflowButtonGroup
|
|
1717
|
+
class="k-overflow-button"
|
|
1718
|
+
[tabIndex]="-1"
|
|
1719
|
+
[selection]="selection"
|
|
1720
|
+
[disabled]="disabled"
|
|
1721
|
+
[width]="width"
|
|
1722
|
+
>
|
|
1723
|
+
<span
|
|
1724
|
+
kendoButton
|
|
1725
|
+
class="k-overflow-button"
|
|
1726
|
+
*ngFor="let button of buttonComponents"
|
|
1727
|
+
[ngStyle]="button.style"
|
|
1728
|
+
[ngClass]="button.className"
|
|
1729
|
+
[attr.title]="button.title"
|
|
1730
|
+
[disabled]="button.disabled"
|
|
1731
|
+
[togglable]="button.togglable"
|
|
1732
|
+
[selected]="button.selected"
|
|
1733
|
+
[fillMode]="button.fillMode"
|
|
1734
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
1735
|
+
[icon]="button.overflowOptions.icon"
|
|
1736
|
+
[iconClass]="button.overflowOptions.iconClass"
|
|
1737
|
+
[imageUrl]="button.overflowOptions.imageUrl"
|
|
1738
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
1739
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
1740
|
+
>
|
|
1741
|
+
{{ button.overflowOptions.text }}
|
|
1742
|
+
</span>
|
|
1743
|
+
</kendo-buttongroup>
|
|
1744
|
+
</ng-template>
|
|
1745
|
+
`, isInline: true, components: [{ type: i1$1.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
1747
|
+
type: Component,
|
|
1748
|
+
args: [{
|
|
1749
|
+
exportAs: 'kendoToolBarButtonGroup',
|
|
1750
|
+
providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonGroupComponent) }],
|
|
1751
|
+
selector: 'kendo-toolbar-buttongroup',
|
|
1752
|
+
template: `
|
|
1476
1753
|
<ng-template #toolbarTemplate>
|
|
1477
1754
|
<kendo-buttongroup
|
|
1478
1755
|
#toolbarButtonGroup
|
|
@@ -1537,17 +1814,36 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = __decorate([
|
|
|
1537
1814
|
</kendo-buttongroup>
|
|
1538
1815
|
</ng-template>
|
|
1539
1816
|
`
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1817
|
+
}]
|
|
1818
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { disabled: [{
|
|
1819
|
+
type: Input
|
|
1820
|
+
}], selection: [{
|
|
1821
|
+
type: Input
|
|
1822
|
+
}], width: [{
|
|
1823
|
+
type: Input
|
|
1824
|
+
}], look: [{
|
|
1825
|
+
type: Input
|
|
1826
|
+
}], toolbarTemplate: [{
|
|
1827
|
+
type: ViewChild,
|
|
1828
|
+
args: ['toolbarTemplate', { static: true }]
|
|
1829
|
+
}], popupTemplate: [{
|
|
1830
|
+
type: ViewChild,
|
|
1831
|
+
args: ['popupTemplate', { static: true }]
|
|
1832
|
+
}], buttonComponents: [{
|
|
1833
|
+
type: ContentChildren,
|
|
1834
|
+
args: [forwardRef(() => ToolBarButtonComponent)]
|
|
1835
|
+
}], toolbarButtonGroup: [{
|
|
1836
|
+
type: ViewChild,
|
|
1837
|
+
args: ['toolbarButtonGroup', { static: false }]
|
|
1838
|
+
}], overflowButtonGroup: [{
|
|
1839
|
+
type: ViewChild,
|
|
1840
|
+
args: ['overflowButtonGroup', { static: false }]
|
|
1841
|
+
}] } });
|
|
1543
1842
|
|
|
1544
1843
|
/**
|
|
1545
1844
|
* @hidden
|
|
1546
1845
|
*/
|
|
1547
|
-
|
|
1548
|
-
/**
|
|
1549
|
-
* @hidden
|
|
1550
|
-
*/
|
|
1846
|
+
class ToolBarButtonListComponent {
|
|
1551
1847
|
constructor() {
|
|
1552
1848
|
this.disabled = false;
|
|
1553
1849
|
this.fillMode = 'solid';
|
|
@@ -1567,39 +1863,33 @@ let ToolBarButtonListComponent = class ToolBarButtonListComponent {
|
|
|
1567
1863
|
}
|
|
1568
1864
|
this.itemClick.emit(dataItem);
|
|
1569
1865
|
}
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
]
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
]
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
__metadata("design:type", QueryList)
|
|
1598
|
-
], ToolBarButtonListComponent.prototype, "buttons", void 0);
|
|
1599
|
-
ToolBarButtonListComponent = __decorate([
|
|
1600
|
-
Component({
|
|
1601
|
-
selector: 'kendo-toolbar-buttonlist',
|
|
1602
|
-
template: `
|
|
1866
|
+
}
|
|
1867
|
+
ToolBarButtonListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1868
|
+
ToolBarButtonListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: { data: "data", textField: "textField", disabled: "disabled", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "buttons", predicate: ["button"], descendants: true }], ngImport: i0, template: `
|
|
1869
|
+
<button
|
|
1870
|
+
#button
|
|
1871
|
+
type="button"
|
|
1872
|
+
tabindex="-1"
|
|
1873
|
+
kendoButton
|
|
1874
|
+
style="padding-left: 16px"
|
|
1875
|
+
class="k-overflow-button"
|
|
1876
|
+
*ngFor="let item of data; let i = index"
|
|
1877
|
+
[disabled]="disabled || item.disabled"
|
|
1878
|
+
[icon]="item.icon"
|
|
1879
|
+
[iconClass]="item.iconClass"
|
|
1880
|
+
[imageUrl]="item.imageUrl"
|
|
1881
|
+
[fillMode]="fillMode"
|
|
1882
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1883
|
+
(click)="onClick(item, i)"
|
|
1884
|
+
>
|
|
1885
|
+
{{ getText(item) }}
|
|
1886
|
+
</button>
|
|
1887
|
+
`, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
1888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarButtonListComponent, decorators: [{
|
|
1889
|
+
type: Component,
|
|
1890
|
+
args: [{
|
|
1891
|
+
selector: 'kendo-toolbar-buttonlist',
|
|
1892
|
+
template: `
|
|
1603
1893
|
<button
|
|
1604
1894
|
#button
|
|
1605
1895
|
type="button"
|
|
@@ -1619,14 +1909,28 @@ ToolBarButtonListComponent = __decorate([
|
|
|
1619
1909
|
{{ getText(item) }}
|
|
1620
1910
|
</button>
|
|
1621
1911
|
`
|
|
1622
|
-
|
|
1623
|
-
],
|
|
1912
|
+
}]
|
|
1913
|
+
}], propDecorators: { data: [{
|
|
1914
|
+
type: Input
|
|
1915
|
+
}], textField: [{
|
|
1916
|
+
type: Input
|
|
1917
|
+
}], disabled: [{
|
|
1918
|
+
type: Input
|
|
1919
|
+
}], fillMode: [{
|
|
1920
|
+
type: Input
|
|
1921
|
+
}], themeColor: [{
|
|
1922
|
+
type: Input
|
|
1923
|
+
}], itemClick: [{
|
|
1924
|
+
type: Output
|
|
1925
|
+
}], buttons: [{
|
|
1926
|
+
type: ViewChildren,
|
|
1927
|
+
args: ['button']
|
|
1928
|
+
}] } });
|
|
1624
1929
|
|
|
1625
|
-
var ToolBarDropDownButtonComponent_1;
|
|
1626
1930
|
/**
|
|
1627
1931
|
* Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
1628
1932
|
*/
|
|
1629
|
-
|
|
1933
|
+
class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
1630
1934
|
constructor() {
|
|
1631
1935
|
super();
|
|
1632
1936
|
// showText and showIcon showIcon should be declared first
|
|
@@ -1823,118 +2127,63 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
1823
2127
|
this.overflowButtons[index].nativeElement.focus();
|
|
1824
2128
|
}
|
|
1825
2129
|
}
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
]
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
]
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
]
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
]
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
Input(),
|
|
1884
|
-
__metadata("design:type", String)
|
|
1885
|
-
], ToolBarDropDownButtonComponent.prototype, "textField", void 0);
|
|
1886
|
-
__decorate([
|
|
1887
|
-
Input(),
|
|
1888
|
-
__metadata("design:type", Boolean)
|
|
1889
|
-
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
1890
|
-
__decorate([
|
|
1891
|
-
Input(),
|
|
1892
|
-
__metadata("design:type", Array),
|
|
1893
|
-
__metadata("design:paramtypes", [Array])
|
|
1894
|
-
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
1895
|
-
__decorate([
|
|
1896
|
-
Output(),
|
|
1897
|
-
__metadata("design:type", EventEmitter)
|
|
1898
|
-
], ToolBarDropDownButtonComponent.prototype, "itemClick", void 0);
|
|
1899
|
-
__decorate([
|
|
1900
|
-
Output(),
|
|
1901
|
-
__metadata("design:type", EventEmitter)
|
|
1902
|
-
], ToolBarDropDownButtonComponent.prototype, "open", void 0);
|
|
1903
|
-
__decorate([
|
|
1904
|
-
Output(),
|
|
1905
|
-
__metadata("design:type", EventEmitter)
|
|
1906
|
-
], ToolBarDropDownButtonComponent.prototype, "close", void 0);
|
|
1907
|
-
__decorate([
|
|
1908
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
1909
|
-
__metadata("design:type", TemplateRef)
|
|
1910
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
1911
|
-
__decorate([
|
|
1912
|
-
ViewChild('popupTemplate', { static: true }),
|
|
1913
|
-
__metadata("design:type", TemplateRef)
|
|
1914
|
-
], ToolBarDropDownButtonComponent.prototype, "popupTemplate", void 0);
|
|
1915
|
-
__decorate([
|
|
1916
|
-
ViewChild('dropdownButton', { read: ElementRef, static: true }),
|
|
1917
|
-
__metadata("design:type", ElementRef)
|
|
1918
|
-
], ToolBarDropDownButtonComponent.prototype, "dropdownButton", void 0);
|
|
1919
|
-
__decorate([
|
|
1920
|
-
ViewChild(DropDownButtonComponent, { static: false }),
|
|
1921
|
-
__metadata("design:type", DropDownButtonComponent)
|
|
1922
|
-
], ToolBarDropDownButtonComponent.prototype, "dropDownButtonComponent", void 0);
|
|
1923
|
-
__decorate([
|
|
1924
|
-
ViewChild('toolbarDropDownButton', { static: false }),
|
|
1925
|
-
__metadata("design:type", DropDownButtonComponent)
|
|
1926
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarDropDownButton", void 0);
|
|
1927
|
-
__decorate([
|
|
1928
|
-
ViewChild('overflowDropDownButtonButtonList', { static: false }),
|
|
1929
|
-
__metadata("design:type", ToolBarButtonListComponent)
|
|
1930
|
-
], ToolBarDropDownButtonComponent.prototype, "overflowDropDownButtonButtonList", void 0);
|
|
1931
|
-
ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = __decorate([
|
|
1932
|
-
Component({
|
|
1933
|
-
exportAs: 'kendoToolBarDropDownButton',
|
|
1934
|
-
// tslint:disable-next-line:no-forward-ref
|
|
1935
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent_1) }],
|
|
1936
|
-
selector: 'kendo-toolbar-dropdownbutton',
|
|
1937
|
-
template: `
|
|
2130
|
+
}
|
|
2131
|
+
ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2132
|
+
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowDropDownButtonButtonList", first: true, predicate: ["overflowDropDownButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2133
|
+
<ng-template #toolbarTemplate>
|
|
2134
|
+
<kendo-dropdownbutton
|
|
2135
|
+
#toolbarDropDownButton
|
|
2136
|
+
[icon]="toolbarOptions.icon"
|
|
2137
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
2138
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
2139
|
+
[buttonClass]="buttonClass"
|
|
2140
|
+
[disabled]="disabled"
|
|
2141
|
+
[tabIndex]="-1"
|
|
2142
|
+
[data]="data"
|
|
2143
|
+
[textField]="textField"
|
|
2144
|
+
[popupSettings]="popupSettings"
|
|
2145
|
+
[fillMode]="fillMode"
|
|
2146
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2147
|
+
(open)="open.emit($event)"
|
|
2148
|
+
(close)="close.emit($event)"
|
|
2149
|
+
(itemClick)="itemClick.emit($event)"
|
|
2150
|
+
>
|
|
2151
|
+
{{ toolbarOptions.text }}
|
|
2152
|
+
</kendo-dropdownbutton>
|
|
2153
|
+
</ng-template>
|
|
2154
|
+
<ng-template #popupTemplate>
|
|
2155
|
+
<button
|
|
2156
|
+
type="button"
|
|
2157
|
+
tabindex="-1"
|
|
2158
|
+
kendoButton
|
|
2159
|
+
class="k-overflow-button"
|
|
2160
|
+
[disabled]="true"
|
|
2161
|
+
[icon]="overflowOptions.icon"
|
|
2162
|
+
[iconClass]="overflowOptions.iconClass"
|
|
2163
|
+
[imageUrl]="overflowOptions.imageUrl"
|
|
2164
|
+
[ngClass]="buttonClass"
|
|
2165
|
+
(click)="itemClick.emit($event)"
|
|
2166
|
+
>
|
|
2167
|
+
{{ overflowOptions.text }}
|
|
2168
|
+
</button>
|
|
2169
|
+
<kendo-toolbar-buttonlist
|
|
2170
|
+
#overflowDropDownButtonButtonList
|
|
2171
|
+
[data]="data"
|
|
2172
|
+
[disabled]="disabled"
|
|
2173
|
+
[textField]="textField"
|
|
2174
|
+
(itemClick)="itemClick.emit($event)"
|
|
2175
|
+
(click)="onButtonListClick($event)"
|
|
2176
|
+
>
|
|
2177
|
+
</kendo-toolbar-buttonlist>
|
|
2178
|
+
</ng-template>
|
|
2179
|
+
`, isInline: true, components: [{ type: i1$1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "iconClass", "imageUrl", "popupSettings", "textField", "disabled", "data", "size", "rounded", "fillMode", "themeColor", "buttonClass", "tabIndex"], outputs: ["itemClick", "open", "close", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1$1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
2181
|
+
type: Component,
|
|
2182
|
+
args: [{
|
|
2183
|
+
exportAs: 'kendoToolBarDropDownButton',
|
|
2184
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }],
|
|
2185
|
+
selector: 'kendo-toolbar-dropdownbutton',
|
|
2186
|
+
template: `
|
|
1938
2187
|
<ng-template #toolbarTemplate>
|
|
1939
2188
|
<kendo-dropdownbutton
|
|
1940
2189
|
#toolbarDropDownButton
|
|
@@ -1982,15 +2231,67 @@ ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = __decorate([
|
|
|
1982
2231
|
</kendo-toolbar-buttonlist>
|
|
1983
2232
|
</ng-template>
|
|
1984
2233
|
`
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2234
|
+
}]
|
|
2235
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showText: [{
|
|
2236
|
+
type: Input
|
|
2237
|
+
}], showIcon: [{
|
|
2238
|
+
type: Input
|
|
2239
|
+
}], text: [{
|
|
2240
|
+
type: Input
|
|
2241
|
+
}], icon: [{
|
|
2242
|
+
type: Input
|
|
2243
|
+
}], iconClass: [{
|
|
2244
|
+
type: Input
|
|
2245
|
+
}], imageUrl: [{
|
|
2246
|
+
type: Input
|
|
2247
|
+
}], popupSettings: [{
|
|
2248
|
+
type: Input
|
|
2249
|
+
}], look: [{
|
|
2250
|
+
type: Input
|
|
2251
|
+
}], primary: [{
|
|
2252
|
+
type: Input
|
|
2253
|
+
}], fillMode: [{
|
|
2254
|
+
type: Input
|
|
2255
|
+
}], themeColor: [{
|
|
2256
|
+
type: Input
|
|
2257
|
+
}], buttonClass: [{
|
|
2258
|
+
type: Input
|
|
2259
|
+
}], textField: [{
|
|
2260
|
+
type: Input
|
|
2261
|
+
}], disabled: [{
|
|
2262
|
+
type: Input
|
|
2263
|
+
}], data: [{
|
|
2264
|
+
type: Input
|
|
2265
|
+
}], itemClick: [{
|
|
2266
|
+
type: Output
|
|
2267
|
+
}], open: [{
|
|
2268
|
+
type: Output
|
|
2269
|
+
}], close: [{
|
|
2270
|
+
type: Output
|
|
2271
|
+
}], toolbarTemplate: [{
|
|
2272
|
+
type: ViewChild,
|
|
2273
|
+
args: ['toolbarTemplate', { static: true }]
|
|
2274
|
+
}], popupTemplate: [{
|
|
2275
|
+
type: ViewChild,
|
|
2276
|
+
args: ['popupTemplate', { static: true }]
|
|
2277
|
+
}], dropdownButton: [{
|
|
2278
|
+
type: ViewChild,
|
|
2279
|
+
args: ['dropdownButton', { read: ElementRef, static: true }]
|
|
2280
|
+
}], dropDownButtonComponent: [{
|
|
2281
|
+
type: ViewChild,
|
|
2282
|
+
args: [DropDownButtonComponent, { static: false }]
|
|
2283
|
+
}], toolbarDropDownButton: [{
|
|
2284
|
+
type: ViewChild,
|
|
2285
|
+
args: ['toolbarDropDownButton', { static: false }]
|
|
2286
|
+
}], overflowDropDownButtonButtonList: [{
|
|
2287
|
+
type: ViewChild,
|
|
2288
|
+
args: ['overflowDropDownButtonButtonList', { static: false }]
|
|
2289
|
+
}] } });
|
|
1988
2290
|
|
|
1989
|
-
var ToolBarSplitButtonComponent_1;
|
|
1990
2291
|
/**
|
|
1991
2292
|
* Represents the [Kendo UI ToolBar SplitButton for Angular]({% slug controltypes_toolbar %}#toc-splitbuttons).
|
|
1992
2293
|
*/
|
|
1993
|
-
|
|
2294
|
+
class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
1994
2295
|
constructor() {
|
|
1995
2296
|
super();
|
|
1996
2297
|
// showText and showIcon showIcon should be declared first
|
|
@@ -2200,121 +2501,72 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
2200
2501
|
this.overflowButtons[index].nativeElement.focus();
|
|
2201
2502
|
}
|
|
2202
2503
|
}
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
]
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
]
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
]
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
]
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
]
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
]
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
], ToolBarSplitButtonComponent.prototype, "textField", void 0);
|
|
2270
|
-
__decorate([
|
|
2271
|
-
Input(),
|
|
2272
|
-
__metadata("design:type", Array),
|
|
2273
|
-
__metadata("design:paramtypes", [Array])
|
|
2274
|
-
], ToolBarSplitButtonComponent.prototype, "data", null);
|
|
2275
|
-
__decorate([
|
|
2276
|
-
Output(),
|
|
2277
|
-
__metadata("design:type", EventEmitter)
|
|
2278
|
-
], ToolBarSplitButtonComponent.prototype, "buttonClick", void 0);
|
|
2279
|
-
__decorate([
|
|
2280
|
-
Output(),
|
|
2281
|
-
__metadata("design:type", EventEmitter)
|
|
2282
|
-
], ToolBarSplitButtonComponent.prototype, "itemClick", void 0);
|
|
2283
|
-
__decorate([
|
|
2284
|
-
Output(),
|
|
2285
|
-
__metadata("design:type", EventEmitter)
|
|
2286
|
-
], ToolBarSplitButtonComponent.prototype, "open", void 0);
|
|
2287
|
-
__decorate([
|
|
2288
|
-
Output(),
|
|
2289
|
-
__metadata("design:type", EventEmitter)
|
|
2290
|
-
], ToolBarSplitButtonComponent.prototype, "close", void 0);
|
|
2291
|
-
__decorate([
|
|
2292
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
2293
|
-
__metadata("design:type", TemplateRef)
|
|
2294
|
-
], ToolBarSplitButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
2295
|
-
__decorate([
|
|
2296
|
-
ViewChild('popupTemplate', { static: true }),
|
|
2297
|
-
__metadata("design:type", TemplateRef)
|
|
2298
|
-
], ToolBarSplitButtonComponent.prototype, "popupTemplate", void 0);
|
|
2299
|
-
__decorate([
|
|
2300
|
-
ViewChild('toolbarSplitButton', { static: false }),
|
|
2301
|
-
__metadata("design:type", SplitButtonComponent)
|
|
2302
|
-
], ToolBarSplitButtonComponent.prototype, "toolbarSplitButton", void 0);
|
|
2303
|
-
__decorate([
|
|
2304
|
-
ViewChild('overflowSplitButton', { read: ElementRef, static: false }),
|
|
2305
|
-
__metadata("design:type", ElementRef)
|
|
2306
|
-
], ToolBarSplitButtonComponent.prototype, "overflowSplitButton", void 0);
|
|
2307
|
-
__decorate([
|
|
2308
|
-
ViewChild('overflowSplitButtonButtonList', { static: false }),
|
|
2309
|
-
__metadata("design:type", ToolBarButtonListComponent)
|
|
2310
|
-
], ToolBarSplitButtonComponent.prototype, "overflowSplitButtonButtonList", void 0);
|
|
2311
|
-
ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = __decorate([
|
|
2312
|
-
Component({
|
|
2313
|
-
exportAs: 'kendoToolBarSplitButton',
|
|
2314
|
-
// tslint:disable-next-line:no-forward-ref
|
|
2315
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent_1) }],
|
|
2316
|
-
selector: 'kendo-toolbar-splitbutton',
|
|
2317
|
-
template: `
|
|
2504
|
+
}
|
|
2505
|
+
ToolBarSplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2506
|
+
ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSplitButtonComponent, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "overflowSplitButton", first: true, predicate: ["overflowSplitButton"], descendants: true, read: ElementRef }, { propertyName: "overflowSplitButtonButtonList", first: true, predicate: ["overflowSplitButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2507
|
+
<ng-template #toolbarTemplate>
|
|
2508
|
+
<kendo-splitbutton
|
|
2509
|
+
#toolbarSplitButton
|
|
2510
|
+
[data]="data"
|
|
2511
|
+
[text]="toolbarOptions.text"
|
|
2512
|
+
[icon]="toolbarOptions.icon"
|
|
2513
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
2514
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
2515
|
+
[buttonClass]="buttonClass"
|
|
2516
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
2517
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
2518
|
+
[disabled]="disabled"
|
|
2519
|
+
[tabIndex]="-1"
|
|
2520
|
+
[textField]="textField"
|
|
2521
|
+
[popupSettings]="popupSettings"
|
|
2522
|
+
[fillMode]="fillMode"
|
|
2523
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2524
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
2525
|
+
(open)="open.emit($event)"
|
|
2526
|
+
(close)="close.emit($event)"
|
|
2527
|
+
(itemClick)="itemClick.emit($event)"
|
|
2528
|
+
>
|
|
2529
|
+
</kendo-splitbutton>
|
|
2530
|
+
</ng-template>
|
|
2531
|
+
<ng-template #popupTemplate>
|
|
2532
|
+
<button
|
|
2533
|
+
#overflowSplitButton
|
|
2534
|
+
type="button"
|
|
2535
|
+
tabindex="-1"
|
|
2536
|
+
[fillMode]="fillMode"
|
|
2537
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2538
|
+
kendoButton
|
|
2539
|
+
class="k-overflow-button"
|
|
2540
|
+
[disabled]="disabled"
|
|
2541
|
+
[icon]="overflowOptions.icon"
|
|
2542
|
+
[iconClass]="overflowOptions.iconClass"
|
|
2543
|
+
[imageUrl]="overflowOptions.imageUrl"
|
|
2544
|
+
[ngClass]="buttonClass"
|
|
2545
|
+
(click)="buttonClick.emit($event)"
|
|
2546
|
+
(click)="onMainButtonClick($event)"
|
|
2547
|
+
>
|
|
2548
|
+
{{ overflowOptions.text }}
|
|
2549
|
+
</button>
|
|
2550
|
+
<kendo-toolbar-buttonlist
|
|
2551
|
+
#overflowSplitButtonButtonList
|
|
2552
|
+
[data]="data"
|
|
2553
|
+
[disabled]="disabled"
|
|
2554
|
+
[fillMode]="fillMode"
|
|
2555
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2556
|
+
[textField]="textField"
|
|
2557
|
+
(itemClick)="itemClick.emit($event)"
|
|
2558
|
+
(click)="onButtonListClick($event)"
|
|
2559
|
+
>
|
|
2560
|
+
</kendo-toolbar-buttonlist>
|
|
2561
|
+
</ng-template>
|
|
2562
|
+
`, isInline: true, components: [{ type: i1$1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1$1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
2564
|
+
type: Component,
|
|
2565
|
+
args: [{
|
|
2566
|
+
exportAs: 'kendoToolBarSplitButton',
|
|
2567
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }],
|
|
2568
|
+
selector: 'kendo-toolbar-splitbutton',
|
|
2569
|
+
template: `
|
|
2318
2570
|
<ng-template #toolbarTemplate>
|
|
2319
2571
|
<kendo-splitbutton
|
|
2320
2572
|
#toolbarSplitButton
|
|
@@ -2371,15 +2623,68 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = __decorate([
|
|
|
2371
2623
|
</kendo-toolbar-buttonlist>
|
|
2372
2624
|
</ng-template>
|
|
2373
2625
|
`
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2626
|
+
}]
|
|
2627
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showText: [{
|
|
2628
|
+
type: Input
|
|
2629
|
+
}], showIcon: [{
|
|
2630
|
+
type: Input
|
|
2631
|
+
}], text: [{
|
|
2632
|
+
type: Input
|
|
2633
|
+
}], icon: [{
|
|
2634
|
+
type: Input
|
|
2635
|
+
}], iconClass: [{
|
|
2636
|
+
type: Input
|
|
2637
|
+
}], imageUrl: [{
|
|
2638
|
+
type: Input
|
|
2639
|
+
}], disabled: [{
|
|
2640
|
+
type: Input
|
|
2641
|
+
}], popupSettings: [{
|
|
2642
|
+
type: Input
|
|
2643
|
+
}], fillMode: [{
|
|
2644
|
+
type: Input
|
|
2645
|
+
}], themeColor: [{
|
|
2646
|
+
type: Input
|
|
2647
|
+
}], look: [{
|
|
2648
|
+
type: Input
|
|
2649
|
+
}], buttonClass: [{
|
|
2650
|
+
type: Input
|
|
2651
|
+
}], arrowButtonClass: [{
|
|
2652
|
+
type: Input
|
|
2653
|
+
}], arrowButtonIcon: [{
|
|
2654
|
+
type: Input
|
|
2655
|
+
}], textField: [{
|
|
2656
|
+
type: Input
|
|
2657
|
+
}], data: [{
|
|
2658
|
+
type: Input
|
|
2659
|
+
}], buttonClick: [{
|
|
2660
|
+
type: Output
|
|
2661
|
+
}], itemClick: [{
|
|
2662
|
+
type: Output
|
|
2663
|
+
}], open: [{
|
|
2664
|
+
type: Output
|
|
2665
|
+
}], close: [{
|
|
2666
|
+
type: Output
|
|
2667
|
+
}], toolbarTemplate: [{
|
|
2668
|
+
type: ViewChild,
|
|
2669
|
+
args: ['toolbarTemplate', { static: true }]
|
|
2670
|
+
}], popupTemplate: [{
|
|
2671
|
+
type: ViewChild,
|
|
2672
|
+
args: ['popupTemplate', { static: true }]
|
|
2673
|
+
}], toolbarSplitButton: [{
|
|
2674
|
+
type: ViewChild,
|
|
2675
|
+
args: ['toolbarSplitButton', { static: false }]
|
|
2676
|
+
}], overflowSplitButton: [{
|
|
2677
|
+
type: ViewChild,
|
|
2678
|
+
args: ['overflowSplitButton', { read: ElementRef, static: false }]
|
|
2679
|
+
}], overflowSplitButtonButtonList: [{
|
|
2680
|
+
type: ViewChild,
|
|
2681
|
+
args: ['overflowSplitButtonButtonList', { static: false }]
|
|
2682
|
+
}] } });
|
|
2377
2683
|
|
|
2378
|
-
var ToolBarSeparatorComponent_1;
|
|
2379
2684
|
/**
|
|
2380
2685
|
* Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
2381
2686
|
*/
|
|
2382
|
-
|
|
2687
|
+
class ToolBarSeparatorComponent extends ToolBarToolComponent {
|
|
2383
2688
|
constructor() {
|
|
2384
2689
|
super();
|
|
2385
2690
|
}
|
|
@@ -2408,237 +2713,40 @@ let ToolBarSeparatorComponent = ToolBarSeparatorComponent_1 = class ToolBarSepar
|
|
|
2408
2713
|
this.popupTemplate = this.toolbarTemplate;
|
|
2409
2714
|
}
|
|
2410
2715
|
}
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
Component({
|
|
2426
|
-
exportAs: 'kendoToolBarSeparator',
|
|
2427
|
-
// tslint:disable-next-line:no-forward-ref
|
|
2428
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent_1) }],
|
|
2429
|
-
selector: 'kendo-toolbar-separator',
|
|
2430
|
-
template: `
|
|
2716
|
+
}
|
|
2717
|
+
ToolBarSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2718
|
+
ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
|
|
2719
|
+
<ng-template #toolbarTemplate>
|
|
2720
|
+
<div class="k-separator"></div>
|
|
2721
|
+
</ng-template>
|
|
2722
|
+
`, isInline: true });
|
|
2723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
|
|
2724
|
+
type: Component,
|
|
2725
|
+
args: [{
|
|
2726
|
+
exportAs: 'kendoToolBarSeparator',
|
|
2727
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }],
|
|
2728
|
+
selector: 'kendo-toolbar-separator',
|
|
2729
|
+
template: `
|
|
2431
2730
|
<ng-template #toolbarTemplate>
|
|
2432
2731
|
<div class="k-separator"></div>
|
|
2433
2732
|
</ng-template>
|
|
2434
2733
|
`
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
querySelector(selector) {
|
|
2447
|
-
return this.element.nativeElement.querySelector(selector);
|
|
2448
|
-
}
|
|
2449
|
-
querySelectorAll(selector) {
|
|
2450
|
-
return this.element.nativeElement.querySelectorAll(selector);
|
|
2451
|
-
}
|
|
2452
|
-
findFocusable() {
|
|
2453
|
-
return findFocusable(this.element.nativeElement, false);
|
|
2454
|
-
}
|
|
2455
|
-
findFocusableChild(element) {
|
|
2456
|
-
if (!element) {
|
|
2457
|
-
element = this.findFocusable();
|
|
2458
|
-
}
|
|
2459
|
-
return findFocusableChild(element, false);
|
|
2460
|
-
}
|
|
2461
|
-
findNextFocusableSibling(element) {
|
|
2462
|
-
if (!element) {
|
|
2463
|
-
element = this.findFocusable();
|
|
2464
|
-
}
|
|
2465
|
-
return findFocusableSibling(element, false);
|
|
2466
|
-
}
|
|
2467
|
-
findPrevFocusableSibling(element) {
|
|
2468
|
-
if (!element) {
|
|
2469
|
-
element = this.findFocusable();
|
|
2470
|
-
}
|
|
2471
|
-
return findFocusableSibling(element, false, true);
|
|
2472
|
-
}
|
|
2473
|
-
setAttribute(element, attr, value) {
|
|
2474
|
-
this.renderer.setAttribute(element, attr, value);
|
|
2475
|
-
}
|
|
2476
|
-
};
|
|
2477
|
-
RendererService = __decorate([
|
|
2478
|
-
Injectable()
|
|
2479
|
-
], RendererService);
|
|
2480
|
-
|
|
2481
|
-
/**
|
|
2482
|
-
* @hidden
|
|
2483
|
-
*/
|
|
2484
|
-
let ToolBarRendererComponent = class ToolBarRendererComponent {
|
|
2485
|
-
constructor(element, renderer, rendererService, refreshService) {
|
|
2486
|
-
this.element = element;
|
|
2487
|
-
this.renderer = renderer;
|
|
2488
|
-
this.rendererService = rendererService;
|
|
2489
|
-
this.refreshService = refreshService;
|
|
2490
|
-
this.rendererClick = new EventEmitter();
|
|
2491
|
-
this.rendererService.element = element;
|
|
2492
|
-
this.rendererService.renderer = this;
|
|
2493
|
-
this.refreshSubscription = this.refreshService.onRefresh.subscribe((tool) => {
|
|
2494
|
-
if (this.tool === tool) {
|
|
2495
|
-
this.refresh();
|
|
2496
|
-
}
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
onClick(ev) {
|
|
2500
|
-
this.rendererClick.emit({ context: this, event: ev });
|
|
2501
|
-
}
|
|
2502
|
-
ngOnInit() {
|
|
2503
|
-
if (this.resizable) {
|
|
2504
|
-
if (this.location === 'toolbar') {
|
|
2505
|
-
this.template = this.tool.toolbarTemplate;
|
|
2506
|
-
this.renderer.setStyle(this.element.nativeElement, 'visibility', 'hidden');
|
|
2507
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', 'none');
|
|
2508
|
-
}
|
|
2509
|
-
else {
|
|
2510
|
-
this.template = this.tool.popupTemplate;
|
|
2511
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', 'none');
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
else {
|
|
2515
|
-
this.tool.overflows = false;
|
|
2516
|
-
this.template = this.tool.toolbarTemplate;
|
|
2517
|
-
this.renderer.setStyle(this.element.nativeElement, 'visibility', 'display');
|
|
2518
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', 'inline-block');
|
|
2519
|
-
}
|
|
2520
|
-
}
|
|
2521
|
-
ngOnDestroy() {
|
|
2522
|
-
this.refreshSubscription.unsubscribe();
|
|
2523
|
-
}
|
|
2524
|
-
ngAfterViewInit() {
|
|
2525
|
-
if (this.resizable) {
|
|
2526
|
-
this.refresh();
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
/**
|
|
2530
|
-
* @hidden
|
|
2531
|
-
*/
|
|
2532
|
-
get width() {
|
|
2533
|
-
return this.tool.overflows ? 0 : outerWidth(this.element.nativeElement);
|
|
2534
|
-
}
|
|
2535
|
-
/**
|
|
2536
|
-
* @hidden
|
|
2537
|
-
*/
|
|
2538
|
-
isDisplayed() {
|
|
2539
|
-
return this.element.nativeElement.style.display !== 'none';
|
|
2540
|
-
}
|
|
2541
|
-
/**
|
|
2542
|
-
* @hidden
|
|
2543
|
-
*/
|
|
2544
|
-
refresh() {
|
|
2545
|
-
if (this.resizable) {
|
|
2546
|
-
if (this.location === 'toolbar') {
|
|
2547
|
-
this.renderer.setStyle(this.element.nativeElement, 'visibility', this.tool.visibility);
|
|
2548
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', this.tool.toolbarDisplay);
|
|
2549
|
-
}
|
|
2550
|
-
else {
|
|
2551
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', this.tool.overflowDisplay);
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
}
|
|
2555
|
-
/**
|
|
2556
|
-
* @hidden
|
|
2557
|
-
*/
|
|
2558
|
-
setAttribute(element, attr, value) {
|
|
2559
|
-
this.renderer.setAttribute(element, attr, value);
|
|
2560
|
-
}
|
|
2561
|
-
};
|
|
2562
|
-
__decorate([
|
|
2563
|
-
Input(),
|
|
2564
|
-
__metadata("design:type", ToolBarToolComponent)
|
|
2565
|
-
], ToolBarRendererComponent.prototype, "tool", void 0);
|
|
2566
|
-
__decorate([
|
|
2567
|
-
Input(),
|
|
2568
|
-
__metadata("design:type", String)
|
|
2569
|
-
], ToolBarRendererComponent.prototype, "location", void 0);
|
|
2570
|
-
__decorate([
|
|
2571
|
-
Input(),
|
|
2572
|
-
__metadata("design:type", Boolean)
|
|
2573
|
-
], ToolBarRendererComponent.prototype, "resizable", void 0);
|
|
2574
|
-
__decorate([
|
|
2575
|
-
Output(),
|
|
2576
|
-
__metadata("design:type", EventEmitter)
|
|
2577
|
-
], ToolBarRendererComponent.prototype, "rendererClick", void 0);
|
|
2578
|
-
__decorate([
|
|
2579
|
-
HostListener('click', ['$event']),
|
|
2580
|
-
__metadata("design:type", Function),
|
|
2581
|
-
__metadata("design:paramtypes", [Object]),
|
|
2582
|
-
__metadata("design:returntype", void 0)
|
|
2583
|
-
], ToolBarRendererComponent.prototype, "onClick", null);
|
|
2584
|
-
ToolBarRendererComponent = __decorate([
|
|
2585
|
-
Component({
|
|
2586
|
-
exportAs: 'kendoToolBarRenderer',
|
|
2587
|
-
providers: [RendererService],
|
|
2588
|
-
selector: 'kendo-toolbar-renderer',
|
|
2589
|
-
template: `
|
|
2590
|
-
<ng-container *ngIf="location === 'toolbar'">
|
|
2591
|
-
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
2592
|
-
</ng-container>
|
|
2593
|
-
<ng-container *ngIf="location === 'overflow' && tool.responsive">
|
|
2594
|
-
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
2595
|
-
</ng-container>
|
|
2596
|
-
`
|
|
2597
|
-
}),
|
|
2598
|
-
__metadata("design:paramtypes", [ElementRef,
|
|
2599
|
-
Renderer2,
|
|
2600
|
-
RendererService,
|
|
2601
|
-
RefreshService])
|
|
2602
|
-
], ToolBarRendererComponent);
|
|
2603
|
-
|
|
2604
|
-
/**
|
|
2605
|
-
* @hidden
|
|
2606
|
-
*/
|
|
2607
|
-
class ToolbarMessages extends ComponentMessages {
|
|
2608
|
-
}
|
|
2609
|
-
__decorate([
|
|
2610
|
-
Input(),
|
|
2611
|
-
__metadata("design:type", String)
|
|
2612
|
-
], ToolbarMessages.prototype, "moreToolsTitle", void 0);
|
|
2613
|
-
|
|
2614
|
-
var LocalizedToolbarMessagesDirective_1;
|
|
2615
|
-
/**
|
|
2616
|
-
* @hidden
|
|
2617
|
-
*/
|
|
2618
|
-
let LocalizedToolbarMessagesDirective = LocalizedToolbarMessagesDirective_1 = class LocalizedToolbarMessagesDirective extends ToolbarMessages {
|
|
2619
|
-
constructor(service) {
|
|
2620
|
-
super();
|
|
2621
|
-
this.service = service;
|
|
2622
|
-
}
|
|
2623
|
-
};
|
|
2624
|
-
LocalizedToolbarMessagesDirective = LocalizedToolbarMessagesDirective_1 = __decorate([
|
|
2625
|
-
Directive({
|
|
2626
|
-
providers: [
|
|
2627
|
-
{
|
|
2628
|
-
provide: ToolbarMessages,
|
|
2629
|
-
useExisting: forwardRef(() => LocalizedToolbarMessagesDirective_1) // tslint:disable-line:no-forward-ref
|
|
2630
|
-
}
|
|
2631
|
-
],
|
|
2632
|
-
selector: '[kendoToolbarLocalizedMessages]'
|
|
2633
|
-
}),
|
|
2634
|
-
__metadata("design:paramtypes", [LocalizationService])
|
|
2635
|
-
], LocalizedToolbarMessagesDirective);
|
|
2734
|
+
}]
|
|
2735
|
+
}], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
|
|
2736
|
+
type: ViewChild,
|
|
2737
|
+
args: ['toolbarTemplate', { static: true }]
|
|
2738
|
+
}], popupTemplate: [{
|
|
2739
|
+
type: ViewChild,
|
|
2740
|
+
args: ['popupTemplate', { static: true }]
|
|
2741
|
+
}], separator: [{
|
|
2742
|
+
type: ViewChild,
|
|
2743
|
+
args: ['separator', { static: false }]
|
|
2744
|
+
}] } });
|
|
2636
2745
|
|
|
2637
|
-
var ToolbarCustomMessagesComponent_1;
|
|
2638
2746
|
/**
|
|
2639
2747
|
* Custom component messages override default component messages.
|
|
2640
2748
|
*/
|
|
2641
|
-
|
|
2749
|
+
class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
2642
2750
|
constructor(service) {
|
|
2643
2751
|
super();
|
|
2644
2752
|
this.service = service;
|
|
@@ -2646,20 +2754,27 @@ let ToolbarCustomMessagesComponent = ToolbarCustomMessagesComponent_1 = class To
|
|
|
2646
2754
|
get override() {
|
|
2647
2755
|
return true;
|
|
2648
2756
|
}
|
|
2649
|
-
}
|
|
2650
|
-
ToolbarCustomMessagesComponent =
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2757
|
+
}
|
|
2758
|
+
ToolbarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolbarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2759
|
+
ToolbarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolbarCustomMessagesComponent, selector: "kendo-toolbar-messages", providers: [
|
|
2760
|
+
{
|
|
2761
|
+
provide: ToolbarMessages,
|
|
2762
|
+
useExisting: forwardRef(() => ToolbarCustomMessagesComponent)
|
|
2763
|
+
}
|
|
2764
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
2765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolbarCustomMessagesComponent, decorators: [{
|
|
2766
|
+
type: Component,
|
|
2767
|
+
args: [{
|
|
2768
|
+
providers: [
|
|
2769
|
+
{
|
|
2770
|
+
provide: ToolbarMessages,
|
|
2771
|
+
useExisting: forwardRef(() => ToolbarCustomMessagesComponent)
|
|
2772
|
+
}
|
|
2773
|
+
],
|
|
2774
|
+
selector: 'kendo-toolbar-messages',
|
|
2775
|
+
template: ``
|
|
2776
|
+
}]
|
|
2777
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
2663
2778
|
|
|
2664
2779
|
const TOOLBAR_TOOLS = [
|
|
2665
2780
|
ToolBarToolComponent,
|
|
@@ -2687,18 +2802,36 @@ const TOOLBAR_COMMON = [
|
|
|
2687
2802
|
* - `ToolBarSplitButtonComponent`—The SplitButton Tool component class.
|
|
2688
2803
|
* - `ToolBarSeparatorComponent`—The Separator Tool component class.
|
|
2689
2804
|
*/
|
|
2690
|
-
|
|
2691
|
-
}
|
|
2692
|
-
ToolBarModule =
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2805
|
+
class ToolBarModule {
|
|
2806
|
+
}
|
|
2807
|
+
ToolBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2808
|
+
ToolBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarModule, declarations: [ToolBarComponent, ToolBarToolComponent,
|
|
2809
|
+
ToolBarButtonComponent,
|
|
2810
|
+
ToolBarButtonGroupComponent,
|
|
2811
|
+
ToolBarDropDownButtonComponent,
|
|
2812
|
+
ToolBarSplitButtonComponent,
|
|
2813
|
+
ToolBarSeparatorComponent, ToolBarRendererComponent,
|
|
2814
|
+
ToolBarButtonListComponent,
|
|
2815
|
+
ToolbarCustomMessagesComponent,
|
|
2816
|
+
LocalizedToolbarMessagesDirective], imports: [CommonModule, ButtonsModule, PopupModule, ResizeSensorModule], exports: [ToolBarComponent, ToolBarToolComponent,
|
|
2817
|
+
ToolBarButtonComponent,
|
|
2818
|
+
ToolBarButtonGroupComponent,
|
|
2819
|
+
ToolBarDropDownButtonComponent,
|
|
2820
|
+
ToolBarSplitButtonComponent,
|
|
2821
|
+
ToolBarSeparatorComponent, ToolbarCustomMessagesComponent, LocalizedToolbarMessagesDirective] });
|
|
2822
|
+
ToolBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarModule, imports: [[CommonModule, ButtonsModule, PopupModule, ResizeSensorModule]] });
|
|
2823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarModule, decorators: [{
|
|
2824
|
+
type: NgModule,
|
|
2825
|
+
args: [{
|
|
2826
|
+
declarations: [ToolBarComponent, TOOLBAR_TOOLS, TOOLBAR_COMMON],
|
|
2827
|
+
exports: [ToolBarComponent, TOOLBAR_TOOLS, ToolbarCustomMessagesComponent, LocalizedToolbarMessagesDirective],
|
|
2828
|
+
imports: [CommonModule, ButtonsModule, PopupModule, ResizeSensorModule]
|
|
2829
|
+
}]
|
|
2830
|
+
}] });
|
|
2699
2831
|
|
|
2700
2832
|
/**
|
|
2701
2833
|
* Generated bundle index. Do not edit.
|
|
2702
2834
|
*/
|
|
2703
2835
|
|
|
2704
|
-
export {
|
|
2836
|
+
export { LocalizedToolbarMessagesDirective, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarComponent, ToolBarDropDownButtonComponent, ToolBarModule, ToolBarSeparatorComponent, ToolBarSplitButtonComponent, ToolBarToolComponent, ToolbarCustomMessagesComponent };
|
|
2837
|
+
|