@progress/kendo-angular-toolbar 17.0.0-develop.21 → 17.0.0-develop.22
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/common/fillmode.d.ts +1 -1
- package/common/size.d.ts +1 -1
- package/direction.d.ts +1 -1
- package/display-mode.d.ts +1 -1
- package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-toolbar-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/navigation.service.mjs +9 -7
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/refresh.service.mjs +4 -6
- package/{esm2020 → esm2022}/renderer.component.mjs +22 -10
- package/{esm2020 → esm2022}/renderer.service.mjs +5 -3
- package/{esm2020 → esm2022}/toolbar.component.mjs +83 -61
- package/{esm2020 → esm2022}/toolbar.module.mjs +4 -4
- package/{esm2020 → esm2022}/tools/toolbar-button.component.mjs +106 -90
- package/{esm2020 → esm2022}/tools/toolbar-buttongroup.component.mjs +45 -29
- package/{esm2020 → esm2022}/tools/toolbar-dropdownbutton.component.mjs +112 -95
- package/{esm2020 → esm2022}/tools/toolbar-separator.component.mjs +7 -12
- package/{esm2020 → esm2022}/tools/toolbar-spacer.component.mjs +10 -16
- package/{esm2020 → esm2022}/tools/toolbar-splitbutton.component.mjs +117 -102
- package/{esm2020 → esm2022}/tools/toolbar-tool.component.mjs +23 -13
- package/{esm2020 → esm2022}/tools/tools.service.mjs +8 -10
- package/{fesm2020 → fesm2022}/progress-kendo-angular-toolbar.mjs +578 -477
- package/group-selection-settings.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +15 -21
- package/render-location.d.ts +1 -1
- package/renderer.component.d.ts +1 -1
- package/toolbar.component.d.ts +1 -1
- package/tools/toolbar-button.component.d.ts +2 -4
- package/tools/toolbar-buttongroup.component.d.ts +2 -4
- package/tools/toolbar-dropdownbutton.component.d.ts +2 -4
- package/tools/toolbar-separator.component.d.ts +1 -3
- package/tools/toolbar-spacer.component.d.ts +1 -3
- package/tools/toolbar-splitbutton.component.d.ts +2 -4
- package/tools/toolbar-tool.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-toolbar.mjs +0 -3401
- /package/{esm2020 → esm2022}/common/fillmode.mjs +0 -0
- /package/{esm2020 → esm2022}/common/renderer-click.mjs +0 -0
- /package/{esm2020 → esm2022}/common/size.mjs +0 -0
- /package/{esm2020 → esm2022}/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/display-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/group-selection-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/popup-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/render-location.mjs +0 -0
- /package/{esm2020 → esm2022}/tool-options.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Injectable, inject, ElementRef, Directive, Input, Output, forwardRef, ViewContainerRef, Component, ContentChildren,
|
|
6
|
+
import { EventEmitter, Injectable, inject, ElementRef, Directive, ViewChild, Input, Output, forwardRef, ViewContainerRef, Component, ContentChildren, HostBinding, HostListener, isDevMode, ViewChildren, NgModule } from '@angular/core';
|
|
7
7
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
8
8
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { Keys,
|
|
9
|
+
import { Keys, isDocumentAvailable, guid, ResizeSensorComponent, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -24,8 +24,8 @@ const packageMetadata = {
|
|
|
24
24
|
name: '@progress/kendo-angular-toolbar',
|
|
25
25
|
productName: 'Kendo UI for Angular',
|
|
26
26
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
27
|
-
publishDate:
|
|
28
|
-
version: '17.0.0-develop.
|
|
27
|
+
publishDate: 1730103506,
|
|
28
|
+
version: '17.0.0-develop.22',
|
|
29
29
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -33,16 +33,14 @@ const packageMetadata = {
|
|
|
33
33
|
* @hidden
|
|
34
34
|
*/
|
|
35
35
|
class RefreshService {
|
|
36
|
-
|
|
37
|
-
this.onRefresh = new EventEmitter();
|
|
38
|
-
}
|
|
36
|
+
onRefresh = new EventEmitter();
|
|
39
37
|
refresh(tool) {
|
|
40
38
|
this.onRefresh.emit(tool);
|
|
41
39
|
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RefreshService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RefreshService });
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
RefreshService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RefreshService });
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RefreshService, decorators: [{
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RefreshService, decorators: [{
|
|
46
44
|
type: Injectable
|
|
47
45
|
}] });
|
|
48
46
|
|
|
@@ -269,12 +267,14 @@ const isElementOrTextNode = n => n.nodeType === 1 || n.nodeType === 3;
|
|
|
269
267
|
* @hidden
|
|
270
268
|
*/
|
|
271
269
|
class NavigationService {
|
|
270
|
+
zone;
|
|
271
|
+
overflowButton;
|
|
272
|
+
focused = { renderedTool: null, index: -1 };
|
|
273
|
+
renderedTools = [];
|
|
274
|
+
isPopupFocused = false;
|
|
275
|
+
isOverflowButtonFocused = false;
|
|
272
276
|
constructor(zone) {
|
|
273
277
|
this.zone = zone;
|
|
274
|
-
this.focused = { renderedTool: null, index: -1 };
|
|
275
|
-
this.renderedTools = [];
|
|
276
|
-
this.isPopupFocused = false;
|
|
277
|
-
this.isOverflowButtonFocused = false;
|
|
278
278
|
}
|
|
279
279
|
setRenderedTools(rts) {
|
|
280
280
|
this.renderedTools = rts;
|
|
@@ -406,10 +406,10 @@ class NavigationService {
|
|
|
406
406
|
return (isPresent(this.overflowButton) &&
|
|
407
407
|
window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue('visibility') === 'visible');
|
|
408
408
|
}
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
410
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService });
|
|
409
411
|
}
|
|
410
|
-
|
|
411
|
-
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService });
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, decorators: [{
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, decorators: [{
|
|
413
413
|
type: Injectable
|
|
414
414
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
415
415
|
|
|
@@ -418,17 +418,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
418
418
|
* Extend this class to create custom tools.
|
|
419
419
|
*/
|
|
420
420
|
class ToolBarToolComponent {
|
|
421
|
+
toolbarTemplate;
|
|
422
|
+
popupTemplate;
|
|
423
|
+
tabIndex = -1; //Focus movement inside the toolbar is managed using roving tabindex.
|
|
424
|
+
overflows = true;
|
|
425
|
+
visibility;
|
|
426
|
+
element;
|
|
427
|
+
isBuiltInTool = false;
|
|
421
428
|
constructor() {
|
|
422
|
-
this.tabIndex = -1; //Focus movement inside the toolbar is managed using roving tabindex.
|
|
423
|
-
this.overflows = true;
|
|
424
|
-
this.isBuiltInTool = false;
|
|
425
|
-
// this should be replaced with showTool: DisplayMode = 'both';
|
|
426
|
-
/**
|
|
427
|
-
* @hidden
|
|
428
|
-
*/
|
|
429
|
-
this.responsive = true;
|
|
430
429
|
this.element = inject(ElementRef);
|
|
431
430
|
}
|
|
431
|
+
// this should be replaced with showTool: DisplayMode = 'both';
|
|
432
|
+
/**
|
|
433
|
+
* @hidden
|
|
434
|
+
*/
|
|
435
|
+
responsive = true;
|
|
432
436
|
get toolbarDisplay() {
|
|
433
437
|
return this.overflows ? 'none' : 'inline-flex';
|
|
434
438
|
}
|
|
@@ -461,15 +465,21 @@ class ToolBarToolComponent {
|
|
|
461
465
|
handleKey(ev) {
|
|
462
466
|
return false;
|
|
463
467
|
}
|
|
468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
469
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarToolComponent, isStandalone: true, inputs: { responsive: "responsive" }, viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0 });
|
|
464
470
|
}
|
|
465
|
-
|
|
466
|
-
ToolBarToolComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarToolComponent, isStandalone: true, inputs: { responsive: "responsive" }, ngImport: i0 });
|
|
467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarToolComponent, decorators: [{
|
|
471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarToolComponent, decorators: [{
|
|
468
472
|
type: Directive,
|
|
469
473
|
args: [{
|
|
470
474
|
standalone: true
|
|
471
475
|
}]
|
|
472
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
476
|
+
}], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
|
|
477
|
+
type: ViewChild,
|
|
478
|
+
args: ['toolbarTemplate', { static: true }]
|
|
479
|
+
}], popupTemplate: [{
|
|
480
|
+
type: ViewChild,
|
|
481
|
+
args: ['popupTemplate', { static: true }]
|
|
482
|
+
}], responsive: [{
|
|
473
483
|
type: Input
|
|
474
484
|
}] } });
|
|
475
485
|
|
|
@@ -477,9 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
477
487
|
* @hidden
|
|
478
488
|
*/
|
|
479
489
|
class PreventableEvent {
|
|
480
|
-
|
|
481
|
-
this.prevented = false;
|
|
482
|
-
}
|
|
490
|
+
prevented = false;
|
|
483
491
|
/**
|
|
484
492
|
* Prevents the default action for a specified event.
|
|
485
493
|
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
@@ -501,6 +509,8 @@ class PreventableEvent {
|
|
|
501
509
|
* @hidden
|
|
502
510
|
*/
|
|
503
511
|
class RendererService {
|
|
512
|
+
element;
|
|
513
|
+
renderer;
|
|
504
514
|
getElement() {
|
|
505
515
|
return this.element.nativeElement;
|
|
506
516
|
}
|
|
@@ -534,10 +544,10 @@ class RendererService {
|
|
|
534
544
|
setAttribute(element, attr, value) {
|
|
535
545
|
this.renderer.setAttribute(element, attr, value);
|
|
536
546
|
}
|
|
547
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RendererService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
548
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RendererService });
|
|
537
549
|
}
|
|
538
|
-
|
|
539
|
-
RendererService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RendererService });
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RendererService, decorators: [{
|
|
550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RendererService, decorators: [{
|
|
541
551
|
type: Injectable
|
|
542
552
|
}] });
|
|
543
553
|
|
|
@@ -545,17 +555,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
545
555
|
* @hidden
|
|
546
556
|
*/
|
|
547
557
|
class ToolbarToolsService {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
558
|
+
renderedToolsChange = new Subject();
|
|
559
|
+
overflowToolsChange = new Subject();
|
|
560
|
+
renderedTools = [];
|
|
561
|
+
overflowTools = [];
|
|
562
|
+
allTools = [];
|
|
563
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarToolsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
564
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarToolsService });
|
|
555
565
|
}
|
|
556
|
-
|
|
557
|
-
ToolbarToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarToolsService });
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarToolsService, decorators: [{
|
|
566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarToolsService, decorators: [{
|
|
559
567
|
type: Injectable
|
|
560
568
|
}] });
|
|
561
569
|
|
|
@@ -564,19 +572,28 @@ const MIN_SPACER_WIDTH = 18;
|
|
|
564
572
|
* @hidden
|
|
565
573
|
*/
|
|
566
574
|
class ToolBarRendererComponent {
|
|
575
|
+
renderer;
|
|
576
|
+
rendererService;
|
|
577
|
+
refreshService;
|
|
578
|
+
toolsService;
|
|
579
|
+
viewContainer;
|
|
580
|
+
tool;
|
|
581
|
+
location;
|
|
582
|
+
resizable;
|
|
583
|
+
rendererClick = new EventEmitter();
|
|
584
|
+
template;
|
|
585
|
+
element;
|
|
586
|
+
get isSpacer() {
|
|
587
|
+
return this.tool && this.tool.__isSpacer;
|
|
588
|
+
}
|
|
589
|
+
refreshSubscription;
|
|
590
|
+
internalComponentRef;
|
|
567
591
|
constructor(renderer, rendererService, refreshService, toolsService, viewContainer) {
|
|
568
592
|
this.renderer = renderer;
|
|
569
593
|
this.rendererService = rendererService;
|
|
570
594
|
this.refreshService = refreshService;
|
|
571
595
|
this.toolsService = toolsService;
|
|
572
596
|
this.viewContainer = viewContainer;
|
|
573
|
-
this.rendererClick = new EventEmitter();
|
|
574
|
-
this.onClick = (ev) => {
|
|
575
|
-
this.rendererClick.emit({ context: this, event: ev });
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
get isSpacer() {
|
|
579
|
-
return this.tool && this.tool.__isSpacer;
|
|
580
597
|
}
|
|
581
598
|
ngOnInit() {
|
|
582
599
|
const viewContainerRootNodes = this.viewContainer.get(0)?.rootNodes?.filter(isElementOrTextNode);
|
|
@@ -648,6 +665,9 @@ class ToolBarRendererComponent {
|
|
|
648
665
|
setAttribute(element, attr, value) {
|
|
649
666
|
this.renderer.setAttribute(element, attr, value);
|
|
650
667
|
}
|
|
668
|
+
onClick = (ev) => {
|
|
669
|
+
this.rendererClick.emit({ context: this, event: ev });
|
|
670
|
+
};
|
|
651
671
|
updateTools() {
|
|
652
672
|
const isInToolbar = this.toolsService.renderedTools.some(t => t.tool === this.tool);
|
|
653
673
|
const isInPopup = this.toolsService.overflowTools.some(t => t.tool === this.tool);
|
|
@@ -665,10 +685,10 @@ class ToolBarRendererComponent {
|
|
|
665
685
|
}
|
|
666
686
|
}
|
|
667
687
|
}
|
|
688
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarRendererComponent, deps: [{ token: i0.Renderer2 }, { token: RendererService }, { token: RefreshService }, { token: ToolbarToolsService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
689
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarRendererComponent, isStandalone: true, selector: "[kendoToolbarRenderer]", inputs: { tool: "tool", location: "location", resizable: "resizable" }, outputs: { rendererClick: "rendererClick" }, providers: [RendererService], ngImport: i0 });
|
|
668
690
|
}
|
|
669
|
-
|
|
670
|
-
ToolBarRendererComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarRendererComponent, isStandalone: true, selector: "[kendoToolbarRenderer]", inputs: { tool: "tool", location: "location", resizable: "resizable" }, outputs: { rendererClick: "rendererClick" }, providers: [RendererService], ngImport: i0 });
|
|
671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarRendererComponent, decorators: [{
|
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarRendererComponent, decorators: [{
|
|
672
692
|
type: Directive,
|
|
673
693
|
args: [{
|
|
674
694
|
providers: [RendererService],
|
|
@@ -689,10 +709,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
689
709
|
* @hidden
|
|
690
710
|
*/
|
|
691
711
|
class ToolbarMessages extends ComponentMessages {
|
|
712
|
+
/**
|
|
713
|
+
* The title of the **more tools** button in a responsive ToolBar
|
|
714
|
+
*/
|
|
715
|
+
moreToolsTitle;
|
|
716
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
717
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ToolbarMessages, selector: "kendo-toolbar-messages-base", inputs: { moreToolsTitle: "moreToolsTitle" }, usesInheritance: true, ngImport: i0 });
|
|
692
718
|
}
|
|
693
|
-
|
|
694
|
-
ToolbarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarMessages, selector: "kendo-toolbar-messages-base", inputs: { moreToolsTitle: "moreToolsTitle" }, usesInheritance: true, ngImport: i0 });
|
|
695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarMessages, decorators: [{
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarMessages, decorators: [{
|
|
696
720
|
type: Directive,
|
|
697
721
|
args: [{
|
|
698
722
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -706,19 +730,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
706
730
|
* @hidden
|
|
707
731
|
*/
|
|
708
732
|
class LocalizedToolbarMessagesDirective extends ToolbarMessages {
|
|
733
|
+
service;
|
|
709
734
|
constructor(service) {
|
|
710
735
|
super();
|
|
711
736
|
this.service = service;
|
|
712
737
|
}
|
|
738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedToolbarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
739
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedToolbarMessagesDirective, isStandalone: true, selector: "[kendoToolbarLocalizedMessages]", providers: [
|
|
740
|
+
{
|
|
741
|
+
provide: ToolbarMessages,
|
|
742
|
+
useExisting: forwardRef(() => LocalizedToolbarMessagesDirective)
|
|
743
|
+
}
|
|
744
|
+
], usesInheritance: true, ngImport: i0 });
|
|
713
745
|
}
|
|
714
|
-
|
|
715
|
-
LocalizedToolbarMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedToolbarMessagesDirective, isStandalone: true, selector: "[kendoToolbarLocalizedMessages]", providers: [
|
|
716
|
-
{
|
|
717
|
-
provide: ToolbarMessages,
|
|
718
|
-
useExisting: forwardRef(() => LocalizedToolbarMessagesDirective)
|
|
719
|
-
}
|
|
720
|
-
], usesInheritance: true, ngImport: i0 });
|
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedToolbarMessagesDirective, decorators: [{
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedToolbarMessagesDirective, decorators: [{
|
|
722
747
|
type: Directive,
|
|
723
748
|
args: [{
|
|
724
749
|
providers: [
|
|
@@ -745,57 +770,22 @@ const getInitialPopupSettings = (isRtl) => ({
|
|
|
745
770
|
* Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
|
|
746
771
|
*/
|
|
747
772
|
class ToolBarComponent {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
this.renderer = renderer;
|
|
758
|
-
this._cdr = _cdr;
|
|
759
|
-
this.toolsService = toolsService;
|
|
760
|
-
/**
|
|
761
|
-
* Hides the overflowing tools in a popup.
|
|
762
|
-
*/
|
|
763
|
-
this.overflow = false;
|
|
764
|
-
/**
|
|
765
|
-
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the ToolBar.
|
|
766
|
-
*/
|
|
767
|
-
this.tabindex = 0;
|
|
768
|
-
/**
|
|
769
|
-
* Fires when the overflow popup of the ToolBar is opened.
|
|
770
|
-
*/
|
|
771
|
-
this.open = new EventEmitter();
|
|
772
|
-
/**
|
|
773
|
-
* Fires when the overflow popup of the ToolBar is closed.
|
|
774
|
-
*/
|
|
775
|
-
this.close = new EventEmitter();
|
|
776
|
-
this.hostClass = true;
|
|
777
|
-
this.cancelRenderedToolsSubscription$ = new Subject();
|
|
778
|
-
this._size = DEFAULT_SIZE;
|
|
779
|
-
this._fillMode = DEFAULT_FILL_MODE;
|
|
780
|
-
this.overflowButtonClickedTime = null;
|
|
781
|
-
this.subscriptions = new Subscription();
|
|
782
|
-
this.popupSubs = new Subscription();
|
|
783
|
-
this.role = 'toolbar';
|
|
784
|
-
this.moreVerticalIcon = moreVerticalIcon;
|
|
785
|
-
/**
|
|
786
|
-
* @hidden
|
|
787
|
-
*/
|
|
788
|
-
this.overflowBtnId = guid();
|
|
789
|
-
/**
|
|
790
|
-
* @hidden
|
|
791
|
-
*/
|
|
792
|
-
this.popupId = guid();
|
|
793
|
-
validatePackage(packageMetadata);
|
|
794
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
795
|
-
}
|
|
773
|
+
localization;
|
|
774
|
+
popupService;
|
|
775
|
+
refreshService;
|
|
776
|
+
navigationService;
|
|
777
|
+
element;
|
|
778
|
+
zone;
|
|
779
|
+
renderer;
|
|
780
|
+
_cdr;
|
|
781
|
+
toolsService;
|
|
796
782
|
get overflowClass() {
|
|
797
783
|
return `k-button-${SIZES[this.size]}`;
|
|
798
784
|
}
|
|
785
|
+
/**
|
|
786
|
+
* Hides the overflowing tools in a popup.
|
|
787
|
+
*/
|
|
788
|
+
overflow = false;
|
|
799
789
|
/**
|
|
800
790
|
* @hidden
|
|
801
791
|
*/
|
|
@@ -832,6 +822,10 @@ class ToolBarComponent {
|
|
|
832
822
|
get fillMode() {
|
|
833
823
|
return this._fillMode;
|
|
834
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the ToolBar.
|
|
827
|
+
*/
|
|
828
|
+
tabindex = 0;
|
|
835
829
|
/**
|
|
836
830
|
* Specifies the padding of all Toolbar elements.
|
|
837
831
|
*
|
|
@@ -858,6 +852,21 @@ class ToolBarComponent {
|
|
|
858
852
|
get tabIndex() {
|
|
859
853
|
return this.tabindex;
|
|
860
854
|
}
|
|
855
|
+
/**
|
|
856
|
+
* Fires when the overflow popup of the ToolBar is opened.
|
|
857
|
+
*/
|
|
858
|
+
open = new EventEmitter();
|
|
859
|
+
/**
|
|
860
|
+
* Fires when the overflow popup of the ToolBar is closed.
|
|
861
|
+
*/
|
|
862
|
+
close = new EventEmitter();
|
|
863
|
+
allTools;
|
|
864
|
+
overflowButton;
|
|
865
|
+
popupTemplate;
|
|
866
|
+
resizeSensor;
|
|
867
|
+
container;
|
|
868
|
+
popupRef;
|
|
869
|
+
direction;
|
|
861
870
|
get appendTo() {
|
|
862
871
|
const { appendTo } = this.popupSettings;
|
|
863
872
|
if (!appendTo || appendTo === 'root') {
|
|
@@ -884,6 +893,19 @@ class ToolBarComponent {
|
|
|
884
893
|
get popupOpen() {
|
|
885
894
|
return this._open;
|
|
886
895
|
}
|
|
896
|
+
hostClass = true;
|
|
897
|
+
_popupSettings;
|
|
898
|
+
cachedOverflowAnchorWidth;
|
|
899
|
+
_open;
|
|
900
|
+
toolbarKeydownListener;
|
|
901
|
+
overflowKeydownListener;
|
|
902
|
+
cancelRenderedToolsSubscription$ = new Subject();
|
|
903
|
+
cachedGap;
|
|
904
|
+
_size = DEFAULT_SIZE;
|
|
905
|
+
_fillMode = DEFAULT_FILL_MODE;
|
|
906
|
+
overflowButtonClickedTime = null;
|
|
907
|
+
subscriptions = new Subscription();
|
|
908
|
+
popupSubs = new Subscription();
|
|
887
909
|
/**
|
|
888
910
|
* @hidden
|
|
889
911
|
*/
|
|
@@ -904,12 +926,29 @@ class ToolBarComponent {
|
|
|
904
926
|
}
|
|
905
927
|
this.element.nativeElement.setAttribute('tabindex', this.tabindex.toString());
|
|
906
928
|
}
|
|
929
|
+
role = 'toolbar';
|
|
907
930
|
get getDir() {
|
|
908
931
|
return this.direction;
|
|
909
932
|
}
|
|
910
933
|
get resizableClass() {
|
|
911
934
|
return this.overflow;
|
|
912
935
|
}
|
|
936
|
+
moreVerticalIcon = moreVerticalIcon;
|
|
937
|
+
constructor(localization, popupService, refreshService, navigationService,
|
|
938
|
+
// Needs to be public as it is being accessed in the Editor component
|
|
939
|
+
element, zone, renderer, _cdr, toolsService) {
|
|
940
|
+
this.localization = localization;
|
|
941
|
+
this.popupService = popupService;
|
|
942
|
+
this.refreshService = refreshService;
|
|
943
|
+
this.navigationService = navigationService;
|
|
944
|
+
this.element = element;
|
|
945
|
+
this.zone = zone;
|
|
946
|
+
this.renderer = renderer;
|
|
947
|
+
this._cdr = _cdr;
|
|
948
|
+
this.toolsService = toolsService;
|
|
949
|
+
validatePackage(packageMetadata);
|
|
950
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
951
|
+
}
|
|
913
952
|
ngAfterContentInit() {
|
|
914
953
|
this.toolsService.allTools = this.allTools.toArray();
|
|
915
954
|
this.subscriptions.add(this.allTools.changes.subscribe(changes => {
|
|
@@ -1152,6 +1191,14 @@ class ToolBarComponent {
|
|
|
1152
1191
|
}
|
|
1153
1192
|
this.renderer.removeAttribute(this.overflowButton.nativeElement, 'aria-controls');
|
|
1154
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* @hidden
|
|
1196
|
+
*/
|
|
1197
|
+
overflowBtnId = guid();
|
|
1198
|
+
/**
|
|
1199
|
+
* @hidden
|
|
1200
|
+
*/
|
|
1201
|
+
popupId = guid();
|
|
1155
1202
|
displayAnchor() {
|
|
1156
1203
|
const visibility = this.allTools.filter(t => t.overflows && t.responsive).length > 0 ? 'visible' : 'hidden';
|
|
1157
1204
|
this.overflowButton && this.renderer.setStyle(this.overflowButton.nativeElement, 'visibility', visibility);
|
|
@@ -1299,18 +1346,17 @@ class ToolBarComponent {
|
|
|
1299
1346
|
}
|
|
1300
1347
|
return classes;
|
|
1301
1348
|
}
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
], queries: [{ propertyName: "allTools", predicate: ToolBarToolComponent }], viewQueries: [{ propertyName: "overflowButton", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }, { 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 }], exportAs: ["kendoToolBar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 }, { token: ToolbarToolsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1350
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarComponent, isStandalone: true, selector: "kendo-toolbar", inputs: { overflow: "overflow", resizable: "resizable", popupSettings: "popupSettings", fillMode: "fillMode", tabindex: "tabindex", size: "size", tabIndex: "tabIndex" }, outputs: { open: "open", close: "close" }, host: { listeners: { "focus": "onFocus($event)", "focusout": "onFocusOut($event)" }, properties: { "class.k-toolbar": "this.hostClass", "attr.role": "this.role", "attr.dir": "this.getDir", "class.k-toolbar-resizable": "this.resizableClass" } }, providers: [
|
|
1351
|
+
RefreshService,
|
|
1352
|
+
NavigationService,
|
|
1353
|
+
LocalizationService,
|
|
1354
|
+
ToolbarToolsService,
|
|
1355
|
+
{
|
|
1356
|
+
provide: L10N_PREFIX,
|
|
1357
|
+
useValue: 'kendo.toolbar'
|
|
1358
|
+
}
|
|
1359
|
+
], queries: [{ propertyName: "allTools", predicate: ToolBarToolComponent }], viewQueries: [{ propertyName: "overflowButton", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }, { 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 }], exportAs: ["kendoToolBar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1314
1360
|
<ng-container kendoToolbarLocalizedMessages
|
|
1315
1361
|
i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"
|
|
1316
1362
|
moreToolsTitle="More tools"
|
|
@@ -1377,7 +1423,8 @@ ToolBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
1377
1423
|
<ng-container #container></ng-container>
|
|
1378
1424
|
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
1379
1425
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: ToolBarRendererComponent, selector: "[kendoToolbarRenderer]", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
1380
|
-
|
|
1426
|
+
}
|
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
1381
1428
|
type: Component,
|
|
1382
1429
|
args: [{
|
|
1383
1430
|
exportAs: 'kendoToolBar',
|
|
@@ -1520,85 +1567,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1520
1567
|
* Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
|
|
1521
1568
|
*/
|
|
1522
1569
|
class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
this.element = element;
|
|
1526
|
-
this.zone = zone;
|
|
1527
|
-
/**
|
|
1528
|
-
* Specifies where button icon should be displayed
|
|
1529
|
-
*/
|
|
1530
|
-
this.showIcon = 'both';
|
|
1531
|
-
/**
|
|
1532
|
-
* Provides visual styling that indicates if the Button is active
|
|
1533
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-toggle-buttons)).
|
|
1534
|
-
* By default, `toggleable` is set to `false`.
|
|
1535
|
-
*/
|
|
1536
|
-
this.toggleable = false;
|
|
1537
|
-
/**
|
|
1538
|
-
* Sets the selected state of the Button.
|
|
1539
|
-
*/
|
|
1540
|
-
this.selected = false;
|
|
1541
|
-
/**
|
|
1542
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
1543
|
-
*
|
|
1544
|
-
* The available values are:
|
|
1545
|
-
* * `solid` (default)
|
|
1546
|
-
* * `flat`
|
|
1547
|
-
* * `outline`
|
|
1548
|
-
* * `link`
|
|
1549
|
-
* * `null`
|
|
1550
|
-
*/
|
|
1551
|
-
this.fillMode = 'solid';
|
|
1552
|
-
/**
|
|
1553
|
-
* The Button allows you to specify predefined theme colors.
|
|
1554
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
1555
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
1556
|
-
*
|
|
1557
|
-
* The possible values are:
|
|
1558
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
1559
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
1560
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
1561
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
1562
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
1563
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
1564
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
1565
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
1566
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
1567
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
1568
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
1569
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
1570
|
-
*/
|
|
1571
|
-
this.themeColor = 'base';
|
|
1572
|
-
/**
|
|
1573
|
-
* Fires each time the Button is clicked.
|
|
1574
|
-
*/
|
|
1575
|
-
this.click = new EventEmitter();
|
|
1576
|
-
/**
|
|
1577
|
-
* Fires when the Button [pointerdown](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event) event is triggered.
|
|
1578
|
-
*/
|
|
1579
|
-
this.pointerdown = new EventEmitter();
|
|
1580
|
-
/**
|
|
1581
|
-
* Fires each time the selected state of a Toggle Button is changed.
|
|
1582
|
-
* The event argument is the new selected state (Boolean).
|
|
1583
|
-
*/
|
|
1584
|
-
this.selectedChange = new EventEmitter();
|
|
1585
|
-
this.toolbarOptions = {
|
|
1586
|
-
text: '',
|
|
1587
|
-
icon: '',
|
|
1588
|
-
iconClass: '',
|
|
1589
|
-
svgIcon: null,
|
|
1590
|
-
imageUrl: ''
|
|
1591
|
-
};
|
|
1592
|
-
this.overflowOptions = {
|
|
1593
|
-
text: '',
|
|
1594
|
-
icon: '',
|
|
1595
|
-
iconClass: '',
|
|
1596
|
-
svgIcon: null,
|
|
1597
|
-
imageUrl: ''
|
|
1598
|
-
};
|
|
1599
|
-
this._showText = 'both';
|
|
1600
|
-
this.isBuiltInTool = true;
|
|
1601
|
-
}
|
|
1570
|
+
element;
|
|
1571
|
+
zone;
|
|
1602
1572
|
// showText and showIcon showIcon should be declared first
|
|
1603
1573
|
/**
|
|
1604
1574
|
* Specifies where button text should be displayed
|
|
@@ -1610,6 +1580,10 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1610
1580
|
get showText() {
|
|
1611
1581
|
return this._showText;
|
|
1612
1582
|
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Specifies where button icon should be displayed
|
|
1585
|
+
*/
|
|
1586
|
+
showIcon = 'both';
|
|
1613
1587
|
/**
|
|
1614
1588
|
* Specifies the text of the Button ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
1615
1589
|
*/
|
|
@@ -1620,6 +1594,29 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1620
1594
|
get text() {
|
|
1621
1595
|
return this._text;
|
|
1622
1596
|
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Specifies custom inline CSS styles of the Button.
|
|
1599
|
+
*/
|
|
1600
|
+
style;
|
|
1601
|
+
/**
|
|
1602
|
+
* Specifies custom CSS class names that will be added to the Button.
|
|
1603
|
+
*/
|
|
1604
|
+
className;
|
|
1605
|
+
/**
|
|
1606
|
+
* Specifies the title of the Button.
|
|
1607
|
+
*/
|
|
1608
|
+
title;
|
|
1609
|
+
/**
|
|
1610
|
+
* If `disabled` is set to `true`, the Button is disabled
|
|
1611
|
+
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
1612
|
+
*/
|
|
1613
|
+
disabled;
|
|
1614
|
+
/**
|
|
1615
|
+
* Provides visual styling that indicates if the Button is active
|
|
1616
|
+
* ([see example]({% slug controltypes_toolbar %}#toc-toggle-buttons)).
|
|
1617
|
+
* By default, `toggleable` is set to `false`.
|
|
1618
|
+
*/
|
|
1619
|
+
toggleable = false;
|
|
1623
1620
|
/**
|
|
1624
1621
|
* @hidden
|
|
1625
1622
|
*/
|
|
@@ -1637,6 +1634,41 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1637
1634
|
set togglable(value) {
|
|
1638
1635
|
this.toggleable = value;
|
|
1639
1636
|
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Sets the selected state of the Button.
|
|
1639
|
+
*/
|
|
1640
|
+
selected = false;
|
|
1641
|
+
/**
|
|
1642
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
1643
|
+
*
|
|
1644
|
+
* The available values are:
|
|
1645
|
+
* * `solid` (default)
|
|
1646
|
+
* * `flat`
|
|
1647
|
+
* * `outline`
|
|
1648
|
+
* * `link`
|
|
1649
|
+
* * `null`
|
|
1650
|
+
*/
|
|
1651
|
+
fillMode = 'solid';
|
|
1652
|
+
/**
|
|
1653
|
+
* The Button allows you to specify predefined theme colors.
|
|
1654
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
1655
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
1656
|
+
*
|
|
1657
|
+
* The possible values are:
|
|
1658
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
1659
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
1660
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
1661
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
1662
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
1663
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
1664
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
1665
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
1666
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
1667
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
1668
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
1669
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
1670
|
+
*/
|
|
1671
|
+
themeColor = 'base';
|
|
1640
1672
|
/**
|
|
1641
1673
|
* Defines the name for an existing icon in a Kendo UI theme
|
|
1642
1674
|
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
@@ -1678,6 +1710,43 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1678
1710
|
this.toolbarOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, false);
|
|
1679
1711
|
this.overflowOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, true);
|
|
1680
1712
|
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Fires each time the Button is clicked.
|
|
1715
|
+
*/
|
|
1716
|
+
click = new EventEmitter();
|
|
1717
|
+
/**
|
|
1718
|
+
* Fires when the Button [pointerdown](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event) event is triggered.
|
|
1719
|
+
*/
|
|
1720
|
+
pointerdown = new EventEmitter();
|
|
1721
|
+
/**
|
|
1722
|
+
* Fires each time the selected state of a Toggle Button is changed.
|
|
1723
|
+
* The event argument is the new selected state (Boolean).
|
|
1724
|
+
*/
|
|
1725
|
+
selectedChange = new EventEmitter();
|
|
1726
|
+
toolbarOptions = {
|
|
1727
|
+
text: '',
|
|
1728
|
+
icon: '',
|
|
1729
|
+
iconClass: '',
|
|
1730
|
+
svgIcon: null,
|
|
1731
|
+
imageUrl: ''
|
|
1732
|
+
};
|
|
1733
|
+
overflowOptions = {
|
|
1734
|
+
text: '',
|
|
1735
|
+
icon: '',
|
|
1736
|
+
iconClass: '',
|
|
1737
|
+
svgIcon: null,
|
|
1738
|
+
imageUrl: ''
|
|
1739
|
+
};
|
|
1740
|
+
toolbarButtonElement;
|
|
1741
|
+
overflowButtonElement;
|
|
1742
|
+
_showText = 'both';
|
|
1743
|
+
_text;
|
|
1744
|
+
constructor(element, zone) {
|
|
1745
|
+
super();
|
|
1746
|
+
this.element = element;
|
|
1747
|
+
this.zone = zone;
|
|
1748
|
+
this.isBuiltInTool = true;
|
|
1749
|
+
}
|
|
1681
1750
|
ngOnInit() {
|
|
1682
1751
|
this.setTextDisplayMode();
|
|
1683
1752
|
}
|
|
@@ -1736,9 +1805,8 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1736
1805
|
this.overflowOptions.text = this.showText === 'toolbar' ? undefined : this.text;
|
|
1737
1806
|
});
|
|
1738
1807
|
}
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarButtonComponent, isStandalone: true, 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", svgIcon: "svgIcon", 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: `
|
|
1808
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1809
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarButtonComponent, isStandalone: true, 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", svgIcon: "svgIcon", imageUrl: "imageUrl" }, outputs: { click: "click", pointerdown: "pointerdown", selectedChange: "selectedChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonComponent) }], viewQueries: [{ 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: `
|
|
1742
1810
|
<ng-template #toolbarTemplate>
|
|
1743
1811
|
<button
|
|
1744
1812
|
#toolbarButton
|
|
@@ -1792,7 +1860,8 @@ ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
1792
1860
|
</div>
|
|
1793
1861
|
</ng-template>
|
|
1794
1862
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
1795
|
-
|
|
1863
|
+
}
|
|
1864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
1796
1865
|
type: Component,
|
|
1797
1866
|
args: [{
|
|
1798
1867
|
exportAs: 'kendoToolBarButton',
|
|
@@ -1895,12 +1964,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1895
1964
|
type: Output
|
|
1896
1965
|
}], selectedChange: [{
|
|
1897
1966
|
type: Output
|
|
1898
|
-
}], toolbarTemplate: [{
|
|
1899
|
-
type: ViewChild,
|
|
1900
|
-
args: ['toolbarTemplate', { static: true }]
|
|
1901
|
-
}], popupTemplate: [{
|
|
1902
|
-
type: ViewChild,
|
|
1903
|
-
args: ['popupTemplate', { static: true }]
|
|
1904
1967
|
}], toolbarButtonElement: [{
|
|
1905
1968
|
type: ViewChild,
|
|
1906
1969
|
args: ['toolbarButton', { read: ElementRef }]
|
|
@@ -1913,24 +1976,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1913
1976
|
* Represents the Kendo UI Toolbar ButtonGroup for Angular.
|
|
1914
1977
|
*/
|
|
1915
1978
|
class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1979
|
+
localization;
|
|
1980
|
+
/**
|
|
1981
|
+
* By default, the ButtonGroup is enabled. To disable the whole group of buttons, set its `disabled`
|
|
1982
|
+
* attribute to `true`. To disable a specific button, set the `disabled` attribute of the button to
|
|
1983
|
+
* `true` and leave the `disabled` attribute of the ButtonGroup undefined. If you define the `disabled`
|
|
1984
|
+
* attribute of the ButtonGroup, it will take precedence over the `disabled` attributes of the underlying
|
|
1985
|
+
* buttons and they will be ignored.
|
|
1986
|
+
*/
|
|
1987
|
+
disabled;
|
|
1988
|
+
/**
|
|
1989
|
+
* @hidden
|
|
1990
|
+
*
|
|
1991
|
+
* Used to set different fillmode in Spreadsheet and Toolbar to comply with referent rendering.
|
|
1992
|
+
*/
|
|
1993
|
+
fillMode = 'solid';
|
|
1994
|
+
/**
|
|
1995
|
+
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
1996
|
+
*/
|
|
1997
|
+
selection = 'multiple';
|
|
1998
|
+
/**
|
|
1999
|
+
* Sets the width of the ButtonGroup.
|
|
2000
|
+
*
|
|
2001
|
+
* If the width of the ButtonGroup is set:
|
|
2002
|
+
* - The buttons resize automatically to fill the full width of the group wrapper.
|
|
2003
|
+
* - The buttons acquire the same width.
|
|
2004
|
+
*/
|
|
2005
|
+
width;
|
|
1934
2006
|
/**
|
|
1935
2007
|
* @hidden
|
|
1936
2008
|
*/
|
|
@@ -1939,6 +2011,9 @@ class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
1939
2011
|
this.buttonComponents.forEach(b => b.fillMode = look === 'default' ? 'solid' : look);
|
|
1940
2012
|
}
|
|
1941
2013
|
}
|
|
2014
|
+
toolbarButtonGroup;
|
|
2015
|
+
overflowListItems;
|
|
2016
|
+
buttonComponents;
|
|
1942
2017
|
get buttonElements() {
|
|
1943
2018
|
if (this.overflows) {
|
|
1944
2019
|
return [...this.overflowListItems.toArray().filter(el => !el.nativeElement.classList.contains('k-disabled'))].map(el => el.nativeElement);
|
|
@@ -1949,6 +2024,16 @@ class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
1949
2024
|
.map(b => b.element);
|
|
1950
2025
|
}
|
|
1951
2026
|
}
|
|
2027
|
+
focusedIndex = -1;
|
|
2028
|
+
getNextKey;
|
|
2029
|
+
getPrevKey;
|
|
2030
|
+
constructor(localization) {
|
|
2031
|
+
super();
|
|
2032
|
+
this.localization = localization;
|
|
2033
|
+
this.getNextKey = getNextKey(this.localization.rtl);
|
|
2034
|
+
this.getPrevKey = getPrevKey(this.localization.rtl);
|
|
2035
|
+
this.isBuiltInTool = true;
|
|
2036
|
+
}
|
|
1952
2037
|
/**
|
|
1953
2038
|
* @hidden
|
|
1954
2039
|
*/
|
|
@@ -2045,9 +2130,8 @@ class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
2045
2130
|
this.buttonElements[index]?.focus();
|
|
2046
2131
|
}
|
|
2047
2132
|
}
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarButtonGroupComponent, isStandalone: true, selector: "kendo-toolbar-buttongroup", inputs: { disabled: "disabled", fillMode: "fillMode", 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: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarButtonGroup"], usesInheritance: true, ngImport: i0, template: `
|
|
2133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarButtonGroupComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2134
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarButtonGroupComponent, isStandalone: true, selector: "kendo-toolbar-buttongroup", inputs: { disabled: "disabled", fillMode: "fillMode", selection: "selection", width: "width", look: "look" }, providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonGroupComponent) }], queries: [{ propertyName: "buttonComponents", predicate: i0.forwardRef(function () { return ToolBarButtonComponent; }) }], viewQueries: [{ propertyName: "toolbarButtonGroup", first: true, predicate: ["toolbarButtonGroup"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarButtonGroup"], usesInheritance: true, ngImport: i0, template: `
|
|
2051
2135
|
<ng-template #toolbarTemplate>
|
|
2052
2136
|
<kendo-buttongroup
|
|
2053
2137
|
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
@@ -2110,7 +2194,8 @@ ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
2110
2194
|
</div>
|
|
2111
2195
|
</ng-template>
|
|
2112
2196
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
2113
|
-
|
|
2197
|
+
}
|
|
2198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
2114
2199
|
type: Component,
|
|
2115
2200
|
args: [{
|
|
2116
2201
|
exportAs: 'kendoToolBarButtonGroup',
|
|
@@ -2192,12 +2277,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2192
2277
|
type: Input
|
|
2193
2278
|
}], look: [{
|
|
2194
2279
|
type: Input
|
|
2195
|
-
}], toolbarTemplate: [{
|
|
2196
|
-
type: ViewChild,
|
|
2197
|
-
args: ['toolbarTemplate', { static: true }]
|
|
2198
|
-
}], popupTemplate: [{
|
|
2199
|
-
type: ViewChild,
|
|
2200
|
-
args: ['popupTemplate', { static: true }]
|
|
2201
2280
|
}], toolbarButtonGroup: [{
|
|
2202
2281
|
type: ViewChild,
|
|
2203
2282
|
args: ['toolbarButtonGroup', { static: false }]
|
|
@@ -2213,90 +2292,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2213
2292
|
* Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
2214
2293
|
*/
|
|
2215
2294
|
class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
*/
|
|
2228
|
-
this.title = '';
|
|
2229
|
-
/**
|
|
2230
|
-
* Defines the location of the button icon that will be displayed.
|
|
2231
|
-
*/
|
|
2232
|
-
this.showIcon = 'both';
|
|
2233
|
-
/**
|
|
2234
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
2235
|
-
*
|
|
2236
|
-
* The available values are:
|
|
2237
|
-
* * `solid` (default)
|
|
2238
|
-
* * `flat`
|
|
2239
|
-
* * `outline`
|
|
2240
|
-
* * `link`
|
|
2241
|
-
* * `null`
|
|
2242
|
-
*/
|
|
2243
|
-
this.fillMode = 'solid';
|
|
2244
|
-
/**
|
|
2245
|
-
* The Button allows you to specify predefined theme colors.
|
|
2246
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
2247
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
2248
|
-
*
|
|
2249
|
-
* The possible values are:
|
|
2250
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2251
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2252
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2253
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2254
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
2255
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
2256
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2257
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
2258
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2259
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
2260
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2261
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
2262
|
-
*/
|
|
2263
|
-
this.themeColor = 'base';
|
|
2264
|
-
/**
|
|
2265
|
-
* Fires each time the user clicks a DropDownButton item.
|
|
2266
|
-
* The event data contains the data item that is bound to the clicked list item.
|
|
2267
|
-
*/
|
|
2268
|
-
this.itemClick = new EventEmitter();
|
|
2269
|
-
/**
|
|
2270
|
-
* Fires each time the popup is about to open.
|
|
2271
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
2272
|
-
*/
|
|
2273
|
-
this.open = new EventEmitter();
|
|
2274
|
-
/**
|
|
2275
|
-
* Fires each time the popup is about to close.
|
|
2276
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
2277
|
-
*/
|
|
2278
|
-
this.close = new EventEmitter();
|
|
2279
|
-
this.toolbarOptions = {
|
|
2280
|
-
text: '',
|
|
2281
|
-
icon: '',
|
|
2282
|
-
iconClass: '',
|
|
2283
|
-
svgIcon: null,
|
|
2284
|
-
imageUrl: ''
|
|
2285
|
-
};
|
|
2286
|
-
this.overflowOptions = {
|
|
2287
|
-
text: '',
|
|
2288
|
-
icon: '',
|
|
2289
|
-
iconClass: '',
|
|
2290
|
-
svgIcon: null,
|
|
2291
|
-
imageUrl: ''
|
|
2292
|
-
};
|
|
2293
|
-
this._popupSettings = { animate: true, popupClass: '' };
|
|
2294
|
-
this.focusedIndex = -1;
|
|
2295
|
-
this._showText = 'both';
|
|
2296
|
-
this.getNextKey = getNextKey();
|
|
2297
|
-
this.getPrevKey = getPrevKey();
|
|
2298
|
-
this.isBuiltInTool = true;
|
|
2299
|
-
}
|
|
2295
|
+
renderer;
|
|
2296
|
+
/**
|
|
2297
|
+
* Allows showing the default arrow icon or providing alternative one instead.
|
|
2298
|
+
* @default false
|
|
2299
|
+
*/
|
|
2300
|
+
arrowIcon = false;
|
|
2301
|
+
/**
|
|
2302
|
+
* Sets the `title` attribute of the underlying button element.
|
|
2303
|
+
* @default ''
|
|
2304
|
+
*/
|
|
2305
|
+
title = '';
|
|
2300
2306
|
// showText and showIcon showIcon should be declared first
|
|
2301
2307
|
/**
|
|
2302
2308
|
* Defines the location of the button text that will be displayed.
|
|
@@ -2308,6 +2314,10 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2308
2314
|
get showText() {
|
|
2309
2315
|
return this._showText;
|
|
2310
2316
|
}
|
|
2317
|
+
/**
|
|
2318
|
+
* Defines the location of the button icon that will be displayed.
|
|
2319
|
+
*/
|
|
2320
|
+
showIcon = 'both';
|
|
2311
2321
|
/**
|
|
2312
2322
|
* Sets the text of the DropDownButton
|
|
2313
2323
|
* ([see example](slug:controltypes_toolbar#toc-drop-down-buttons).
|
|
@@ -2383,6 +2393,51 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2383
2393
|
set primary(primary) {
|
|
2384
2394
|
this.themeColor = primary ? 'primary' : 'base';
|
|
2385
2395
|
}
|
|
2396
|
+
/**
|
|
2397
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
2398
|
+
*
|
|
2399
|
+
* The available values are:
|
|
2400
|
+
* * `solid` (default)
|
|
2401
|
+
* * `flat`
|
|
2402
|
+
* * `outline`
|
|
2403
|
+
* * `link`
|
|
2404
|
+
* * `null`
|
|
2405
|
+
*/
|
|
2406
|
+
fillMode = 'solid';
|
|
2407
|
+
/**
|
|
2408
|
+
* The Button allows you to specify predefined theme colors.
|
|
2409
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
2410
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
2411
|
+
*
|
|
2412
|
+
* The possible values are:
|
|
2413
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2414
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2415
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2416
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2417
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
2418
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
2419
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2420
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
2421
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2422
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
2423
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2424
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
2425
|
+
*/
|
|
2426
|
+
themeColor = 'base';
|
|
2427
|
+
/**
|
|
2428
|
+
* The CSS classes that will be rendered on the main button.
|
|
2429
|
+
* Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
2430
|
+
*/
|
|
2431
|
+
buttonClass;
|
|
2432
|
+
/**
|
|
2433
|
+
* Sets the data item field that represents the item text.
|
|
2434
|
+
* If the data contains only primitive values, do not define it.
|
|
2435
|
+
*/
|
|
2436
|
+
textField;
|
|
2437
|
+
/**
|
|
2438
|
+
* Sets the disabled state of the DropDownButton.
|
|
2439
|
+
*/
|
|
2440
|
+
disabled;
|
|
2386
2441
|
/**
|
|
2387
2442
|
* Sets the data of the DropDownButton
|
|
2388
2443
|
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
@@ -2398,6 +2453,38 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2398
2453
|
}
|
|
2399
2454
|
return this._data;
|
|
2400
2455
|
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Fires each time the user clicks a DropDownButton item.
|
|
2458
|
+
* The event data contains the data item that is bound to the clicked list item.
|
|
2459
|
+
*/
|
|
2460
|
+
itemClick = new EventEmitter();
|
|
2461
|
+
/**
|
|
2462
|
+
* Fires each time the popup is about to open.
|
|
2463
|
+
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
2464
|
+
*/
|
|
2465
|
+
open = new EventEmitter();
|
|
2466
|
+
/**
|
|
2467
|
+
* Fires each time the popup is about to close.
|
|
2468
|
+
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
2469
|
+
*/
|
|
2470
|
+
close = new EventEmitter();
|
|
2471
|
+
dropdownButton;
|
|
2472
|
+
dropDownButtonComponent;
|
|
2473
|
+
overflowListItems;
|
|
2474
|
+
toolbarOptions = {
|
|
2475
|
+
text: '',
|
|
2476
|
+
icon: '',
|
|
2477
|
+
iconClass: '',
|
|
2478
|
+
svgIcon: null,
|
|
2479
|
+
imageUrl: ''
|
|
2480
|
+
};
|
|
2481
|
+
overflowOptions = {
|
|
2482
|
+
text: '',
|
|
2483
|
+
icon: '',
|
|
2484
|
+
iconClass: '',
|
|
2485
|
+
svgIcon: null,
|
|
2486
|
+
imageUrl: ''
|
|
2487
|
+
};
|
|
2401
2488
|
ngOnInit() {
|
|
2402
2489
|
this.setTextDisplayMode();
|
|
2403
2490
|
}
|
|
@@ -2407,6 +2494,21 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2407
2494
|
get overflowButtons() {
|
|
2408
2495
|
return [...this.overflowListItems.toArray().filter(el => !el.nativeElement.classList.contains('k-disabled'))];
|
|
2409
2496
|
}
|
|
2497
|
+
toolbarDropDownButton;
|
|
2498
|
+
_data;
|
|
2499
|
+
_popupSettings = { animate: true, popupClass: '' };
|
|
2500
|
+
focusedIndex = -1;
|
|
2501
|
+
_showText = 'both';
|
|
2502
|
+
_text;
|
|
2503
|
+
getNextKey;
|
|
2504
|
+
getPrevKey;
|
|
2505
|
+
constructor(renderer) {
|
|
2506
|
+
super();
|
|
2507
|
+
this.renderer = renderer;
|
|
2508
|
+
this.getNextKey = getNextKey();
|
|
2509
|
+
this.getPrevKey = getPrevKey();
|
|
2510
|
+
this.isBuiltInTool = true;
|
|
2511
|
+
}
|
|
2410
2512
|
/**
|
|
2411
2513
|
* @hidden
|
|
2412
2514
|
*/
|
|
@@ -2479,9 +2581,8 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2479
2581
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
2480
2582
|
this.overflowOptions.text = this.showText === 'toolbar' ? undefined : this.text;
|
|
2481
2583
|
}
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", 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: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2585
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", 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: "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: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2485
2586
|
<ng-template #toolbarTemplate>
|
|
2486
2587
|
<kendo-dropdownbutton
|
|
2487
2588
|
#toolbarDropDownButton
|
|
@@ -2547,7 +2648,8 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2547
2648
|
</ng-container>
|
|
2548
2649
|
</ng-template>
|
|
2549
2650
|
`, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2550
|
-
|
|
2651
|
+
}
|
|
2652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
2551
2653
|
type: Component,
|
|
2552
2654
|
args: [{
|
|
2553
2655
|
exportAs: 'kendoToolBarDropDownButton',
|
|
@@ -2664,12 +2766,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2664
2766
|
type: Output
|
|
2665
2767
|
}], close: [{
|
|
2666
2768
|
type: Output
|
|
2667
|
-
}], toolbarTemplate: [{
|
|
2668
|
-
type: ViewChild,
|
|
2669
|
-
args: ['toolbarTemplate', { static: true }]
|
|
2670
|
-
}], popupTemplate: [{
|
|
2671
|
-
type: ViewChild,
|
|
2672
|
-
args: ['popupTemplate', { static: true }]
|
|
2673
2769
|
}], dropdownButton: [{
|
|
2674
2770
|
type: ViewChild,
|
|
2675
2771
|
args: ['dropdownButton', { read: ElementRef, static: true }]
|
|
@@ -2688,96 +2784,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2688
2784
|
* Represents the [Kendo UI ToolBar SplitButton for Angular]({% slug controltypes_toolbar %}#toc-splitbuttons).
|
|
2689
2785
|
*/
|
|
2690
2786
|
class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
2691
|
-
constructor() {
|
|
2692
|
-
super();
|
|
2693
|
-
/**
|
|
2694
|
-
* Specifies where button icon should be displayed
|
|
2695
|
-
*/
|
|
2696
|
-
this.showIcon = 'both';
|
|
2697
|
-
/**
|
|
2698
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
2699
|
-
*
|
|
2700
|
-
* The available values are:
|
|
2701
|
-
* * `solid` (default)
|
|
2702
|
-
* * `flat`
|
|
2703
|
-
* * `outline`
|
|
2704
|
-
* * `link`
|
|
2705
|
-
* * `null`
|
|
2706
|
-
*/
|
|
2707
|
-
this.fillMode = 'solid';
|
|
2708
|
-
/**
|
|
2709
|
-
* The Button allows you to specify predefined theme colors.
|
|
2710
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
2711
|
-
*
|
|
2712
|
-
* The possible values are:
|
|
2713
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2714
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2715
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2716
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2717
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
2718
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
2719
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2720
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
2721
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2722
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
2723
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2724
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
2725
|
-
*/
|
|
2726
|
-
this.themeColor = 'base';
|
|
2727
|
-
/**
|
|
2728
|
-
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
|
|
2729
|
-
* be rendered for the button which opens the popup.
|
|
2730
|
-
*/
|
|
2731
|
-
this.arrowButtonIcon = 'caret-alt-down';
|
|
2732
|
-
/**
|
|
2733
|
-
* Specifies the [`SVGIcon`](slug:api_icons_svgicon) that will
|
|
2734
|
-
* be rendered for the button which opens the popup.
|
|
2735
|
-
*/
|
|
2736
|
-
this.arrowButtonSvgIcon = caretAltDownIcon;
|
|
2737
|
-
/**
|
|
2738
|
-
* Configures the text field of the button-list popup.
|
|
2739
|
-
*/
|
|
2740
|
-
this.textField = 'text';
|
|
2741
|
-
/**
|
|
2742
|
-
* Fires each time the user clicks the main button.
|
|
2743
|
-
*/
|
|
2744
|
-
this.buttonClick = new EventEmitter();
|
|
2745
|
-
/**
|
|
2746
|
-
* Fires each time the user clicks the drop-down list.
|
|
2747
|
-
* The event data contains the data item that is bound to the clicked list item.
|
|
2748
|
-
*/
|
|
2749
|
-
this.itemClick = new EventEmitter();
|
|
2750
|
-
/**
|
|
2751
|
-
* Fires each time the popup is about to open.
|
|
2752
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
2753
|
-
*/
|
|
2754
|
-
this.open = new EventEmitter();
|
|
2755
|
-
/**
|
|
2756
|
-
* Fires each time the popup is about to close.
|
|
2757
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
2758
|
-
*/
|
|
2759
|
-
this.close = new EventEmitter();
|
|
2760
|
-
this.toolbarOptions = {
|
|
2761
|
-
text: '',
|
|
2762
|
-
icon: '',
|
|
2763
|
-
iconClass: '',
|
|
2764
|
-
svgIcon: null,
|
|
2765
|
-
imageUrl: ''
|
|
2766
|
-
};
|
|
2767
|
-
this.overflowOptions = {
|
|
2768
|
-
text: '',
|
|
2769
|
-
icon: '',
|
|
2770
|
-
iconClass: '',
|
|
2771
|
-
svgIcon: null,
|
|
2772
|
-
imageUrl: ''
|
|
2773
|
-
};
|
|
2774
|
-
this._popupSettings = { animate: true, popupClass: '' };
|
|
2775
|
-
this.focusedIndex = -1;
|
|
2776
|
-
this._showText = 'both';
|
|
2777
|
-
this.getNextKey = getNextKey();
|
|
2778
|
-
this.getPrevKey = getPrevKey();
|
|
2779
|
-
this.isBuiltInTool = true;
|
|
2780
|
-
}
|
|
2781
2787
|
// showText and showIcon showIcon should be declared first
|
|
2782
2788
|
/**
|
|
2783
2789
|
* Specifies where button text should be displayed
|
|
@@ -2789,6 +2795,10 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2789
2795
|
get showText() {
|
|
2790
2796
|
return this._showText;
|
|
2791
2797
|
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Specifies where button icon should be displayed
|
|
2800
|
+
*/
|
|
2801
|
+
showIcon = 'both';
|
|
2792
2802
|
/**
|
|
2793
2803
|
* Sets the text of the SplitButton ([see example](slug:controltypes_toolbar#toc-split-buttons).
|
|
2794
2804
|
*/
|
|
@@ -2837,6 +2847,10 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2837
2847
|
this.toolbarOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, false);
|
|
2838
2848
|
this.overflowOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, true);
|
|
2839
2849
|
}
|
|
2850
|
+
/**
|
|
2851
|
+
* When set to `true`, disables a SplitButton item.
|
|
2852
|
+
*/
|
|
2853
|
+
disabled;
|
|
2840
2854
|
/**
|
|
2841
2855
|
* Configures the popup of the SplitButton.
|
|
2842
2856
|
*
|
|
@@ -2853,6 +2867,36 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2853
2867
|
}
|
|
2854
2868
|
return this._popupSettings;
|
|
2855
2869
|
}
|
|
2870
|
+
/**
|
|
2871
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
2872
|
+
*
|
|
2873
|
+
* The available values are:
|
|
2874
|
+
* * `solid` (default)
|
|
2875
|
+
* * `flat`
|
|
2876
|
+
* * `outline`
|
|
2877
|
+
* * `link`
|
|
2878
|
+
* * `null`
|
|
2879
|
+
*/
|
|
2880
|
+
fillMode = 'solid';
|
|
2881
|
+
/**
|
|
2882
|
+
* The Button allows you to specify predefined theme colors.
|
|
2883
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
2884
|
+
*
|
|
2885
|
+
* The possible values are:
|
|
2886
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2887
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2888
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2889
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2890
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
2891
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
2892
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2893
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
2894
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2895
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
2896
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2897
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
2898
|
+
*/
|
|
2899
|
+
themeColor = 'base';
|
|
2856
2900
|
/**
|
|
2857
2901
|
* @hidden
|
|
2858
2902
|
*/
|
|
@@ -2861,6 +2905,30 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2861
2905
|
this.fillMode = look === 'default' ? 'solid' : look;
|
|
2862
2906
|
}
|
|
2863
2907
|
}
|
|
2908
|
+
/**
|
|
2909
|
+
* The CSS classes that will be rendered on the main button.
|
|
2910
|
+
* Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
2911
|
+
*/
|
|
2912
|
+
buttonClass;
|
|
2913
|
+
/**
|
|
2914
|
+
* The CSS classes that will be rendered on the button which opens the popup.
|
|
2915
|
+
* Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
2916
|
+
*/
|
|
2917
|
+
arrowButtonClass;
|
|
2918
|
+
/**
|
|
2919
|
+
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
|
|
2920
|
+
* be rendered for the button which opens the popup.
|
|
2921
|
+
*/
|
|
2922
|
+
arrowButtonIcon = 'caret-alt-down';
|
|
2923
|
+
/**
|
|
2924
|
+
* Specifies the [`SVGIcon`](slug:api_icons_svgicon) that will
|
|
2925
|
+
* be rendered for the button which opens the popup.
|
|
2926
|
+
*/
|
|
2927
|
+
arrowButtonSvgIcon = caretAltDownIcon;
|
|
2928
|
+
/**
|
|
2929
|
+
* Configures the text field of the button-list popup.
|
|
2930
|
+
*/
|
|
2931
|
+
textField = 'text';
|
|
2864
2932
|
/**
|
|
2865
2933
|
* Sets the data of the SplitButton ([see example]({% slug controltypes_toolbar %}#toc-splitbuttons)).
|
|
2866
2934
|
*
|
|
@@ -2875,12 +2943,61 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2875
2943
|
}
|
|
2876
2944
|
return this._data;
|
|
2877
2945
|
}
|
|
2946
|
+
/**
|
|
2947
|
+
* Fires each time the user clicks the main button.
|
|
2948
|
+
*/
|
|
2949
|
+
buttonClick = new EventEmitter();
|
|
2950
|
+
/**
|
|
2951
|
+
* Fires each time the user clicks the drop-down list.
|
|
2952
|
+
* The event data contains the data item that is bound to the clicked list item.
|
|
2953
|
+
*/
|
|
2954
|
+
itemClick = new EventEmitter();
|
|
2955
|
+
/**
|
|
2956
|
+
* Fires each time the popup is about to open.
|
|
2957
|
+
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
2958
|
+
*/
|
|
2959
|
+
open = new EventEmitter();
|
|
2960
|
+
/**
|
|
2961
|
+
* Fires each time the popup is about to close.
|
|
2962
|
+
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
2963
|
+
*/
|
|
2964
|
+
close = new EventEmitter();
|
|
2965
|
+
toolbarOptions = {
|
|
2966
|
+
text: '',
|
|
2967
|
+
icon: '',
|
|
2968
|
+
iconClass: '',
|
|
2969
|
+
svgIcon: null,
|
|
2970
|
+
imageUrl: ''
|
|
2971
|
+
};
|
|
2972
|
+
overflowOptions = {
|
|
2973
|
+
text: '',
|
|
2974
|
+
icon: '',
|
|
2975
|
+
iconClass: '',
|
|
2976
|
+
svgIcon: null,
|
|
2977
|
+
imageUrl: ''
|
|
2978
|
+
};
|
|
2878
2979
|
ngOnInit() {
|
|
2879
2980
|
this.setTextDisplayMode();
|
|
2880
2981
|
}
|
|
2881
2982
|
get overflowButtons() {
|
|
2882
2983
|
return [this.overflowMainButton, ...this.overflowListItems.toArray().filter(el => !el.nativeElement.classList.contains('k-disabled'))];
|
|
2883
2984
|
}
|
|
2985
|
+
_data;
|
|
2986
|
+
_popupSettings = { animate: true, popupClass: '' };
|
|
2987
|
+
focusedIndex = -1;
|
|
2988
|
+
_showText = 'both';
|
|
2989
|
+
_text;
|
|
2990
|
+
getNextKey;
|
|
2991
|
+
getPrevKey;
|
|
2992
|
+
toolbarSplitButton;
|
|
2993
|
+
overflowMainButton;
|
|
2994
|
+
overflowListItems;
|
|
2995
|
+
constructor() {
|
|
2996
|
+
super();
|
|
2997
|
+
this.getNextKey = getNextKey();
|
|
2998
|
+
this.getPrevKey = getPrevKey();
|
|
2999
|
+
this.isBuiltInTool = true;
|
|
3000
|
+
}
|
|
2884
3001
|
/**
|
|
2885
3002
|
* @hidden
|
|
2886
3003
|
*/
|
|
@@ -2958,9 +3075,8 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
2958
3075
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
2959
3076
|
this.overflowOptions.text = this.showText === 'toolbar' ? undefined : this.text;
|
|
2960
3077
|
}
|
|
2961
|
-
}
|
|
2962
|
-
|
|
2963
|
-
ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSplitButtonComponent, isStandalone: true, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", 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: "overflowMainButton", first: true, predicate: ["overflowMainButton"], descendants: true, read: ElementRef }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
3078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3079
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSplitButtonComponent, isStandalone: true, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "overflowMainButton", first: true, predicate: ["overflowMainButton"], descendants: true, read: ElementRef }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2964
3080
|
<ng-template #toolbarTemplate>
|
|
2965
3081
|
<kendo-splitbutton
|
|
2966
3082
|
#toolbarSplitButton
|
|
@@ -3030,8 +3146,9 @@ ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
3030
3146
|
</div>
|
|
3031
3147
|
</ng-container>
|
|
3032
3148
|
</ng-template>
|
|
3033
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "
|
|
3034
|
-
|
|
3149
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3150
|
+
}
|
|
3151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
3035
3152
|
type: Component,
|
|
3036
3153
|
args: [{
|
|
3037
3154
|
exportAs: 'kendoToolBarSplitButton',
|
|
@@ -3155,12 +3272,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3155
3272
|
type: Output
|
|
3156
3273
|
}], close: [{
|
|
3157
3274
|
type: Output
|
|
3158
|
-
}], toolbarTemplate: [{
|
|
3159
|
-
type: ViewChild,
|
|
3160
|
-
args: ['toolbarTemplate', { static: true }]
|
|
3161
|
-
}], popupTemplate: [{
|
|
3162
|
-
type: ViewChild,
|
|
3163
|
-
args: ['popupTemplate', { static: true }]
|
|
3164
3275
|
}], toolbarSplitButton: [{
|
|
3165
3276
|
type: ViewChild,
|
|
3166
3277
|
args: ['toolbarSplitButton', { static: false }]
|
|
@@ -3176,6 +3287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3176
3287
|
* Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
3177
3288
|
*/
|
|
3178
3289
|
class ToolBarSeparatorComponent extends ToolBarToolComponent {
|
|
3290
|
+
separator;
|
|
3179
3291
|
constructor() {
|
|
3180
3292
|
super();
|
|
3181
3293
|
this.isBuiltInTool = true;
|
|
@@ -3205,9 +3317,8 @@ class ToolBarSeparatorComponent extends ToolBarToolComponent {
|
|
|
3205
3317
|
this.popupTemplate = this.toolbarTemplate;
|
|
3206
3318
|
}
|
|
3207
3319
|
}
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSeparatorComponent, isStandalone: true, 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: `
|
|
3320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3321
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSeparatorComponent, isStandalone: true, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
|
|
3211
3322
|
<ng-template #toolbarTemplate>
|
|
3212
3323
|
<div class="k-separator"></div>
|
|
3213
3324
|
</ng-template>
|
|
@@ -3218,7 +3329,8 @@ ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
3218
3329
|
</div>
|
|
3219
3330
|
</ng-template>
|
|
3220
3331
|
`, isInline: true });
|
|
3221
|
-
|
|
3332
|
+
}
|
|
3333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
|
|
3222
3334
|
type: Component,
|
|
3223
3335
|
args: [{
|
|
3224
3336
|
exportAs: 'kendoToolBarSeparator',
|
|
@@ -3237,13 +3349,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3237
3349
|
`,
|
|
3238
3350
|
standalone: true
|
|
3239
3351
|
}]
|
|
3240
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
3241
|
-
type: ViewChild,
|
|
3242
|
-
args: ['toolbarTemplate', { static: true }]
|
|
3243
|
-
}], popupTemplate: [{
|
|
3244
|
-
type: ViewChild,
|
|
3245
|
-
args: ['popupTemplate', { static: true }]
|
|
3246
|
-
}], separator: [{
|
|
3352
|
+
}], ctorParameters: function () { return []; }, propDecorators: { separator: [{
|
|
3247
3353
|
type: ViewChild,
|
|
3248
3354
|
args: ['separator', { static: false }]
|
|
3249
3355
|
}] } });
|
|
@@ -3252,12 +3358,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3252
3358
|
* Represents the [Kendo UI ToolBar Spacer for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
3253
3359
|
*/
|
|
3254
3360
|
class ToolBarSpacerComponent extends ToolBarToolComponent {
|
|
3361
|
+
/**
|
|
3362
|
+
* @hidden
|
|
3363
|
+
*/
|
|
3364
|
+
__isSpacer = true;
|
|
3255
3365
|
constructor() {
|
|
3256
3366
|
super();
|
|
3257
|
-
/**
|
|
3258
|
-
* @hidden
|
|
3259
|
-
*/
|
|
3260
|
-
this.__isSpacer = true;
|
|
3261
3367
|
this.isBuiltInTool = true;
|
|
3262
3368
|
}
|
|
3263
3369
|
/**
|
|
@@ -3285,14 +3391,14 @@ class ToolBarSpacerComponent extends ToolBarToolComponent {
|
|
|
3285
3391
|
this.popupTemplate = this.toolbarTemplate;
|
|
3286
3392
|
}
|
|
3287
3393
|
}
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
-
ToolBarSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: `
|
|
3394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: `
|
|
3291
3396
|
<ng-template #toolbarTemplate>
|
|
3292
3397
|
<div class="k-spacer"></div>
|
|
3293
3398
|
</ng-template>
|
|
3294
3399
|
`, isInline: true });
|
|
3295
|
-
|
|
3400
|
+
}
|
|
3401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, decorators: [{
|
|
3296
3402
|
type: Component,
|
|
3297
3403
|
args: [{
|
|
3298
3404
|
exportAs: 'kendoToolBarSpacer',
|
|
@@ -3305,18 +3411,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3305
3411
|
`,
|
|
3306
3412
|
standalone: true
|
|
3307
3413
|
}]
|
|
3308
|
-
}], ctorParameters: function () { return []; }
|
|
3309
|
-
type: ViewChild,
|
|
3310
|
-
args: ['toolbarTemplate', { static: true }]
|
|
3311
|
-
}], popupTemplate: [{
|
|
3312
|
-
type: ViewChild,
|
|
3313
|
-
args: ['popupTemplate', { static: true }]
|
|
3314
|
-
}] } });
|
|
3414
|
+
}], ctorParameters: function () { return []; } });
|
|
3315
3415
|
|
|
3316
3416
|
/**
|
|
3317
3417
|
* Custom component messages override default component messages.
|
|
3318
3418
|
*/
|
|
3319
3419
|
class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
3420
|
+
service;
|
|
3320
3421
|
constructor(service) {
|
|
3321
3422
|
super();
|
|
3322
3423
|
this.service = service;
|
|
@@ -3324,15 +3425,15 @@ class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
|
3324
3425
|
get override() {
|
|
3325
3426
|
return true;
|
|
3326
3427
|
}
|
|
3428
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3429
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolbarCustomMessagesComponent, isStandalone: true, selector: "kendo-toolbar-messages", providers: [
|
|
3430
|
+
{
|
|
3431
|
+
provide: ToolbarMessages,
|
|
3432
|
+
useExisting: forwardRef(() => ToolbarCustomMessagesComponent)
|
|
3433
|
+
}
|
|
3434
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
3327
3435
|
}
|
|
3328
|
-
|
|
3329
|
-
ToolbarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarCustomMessagesComponent, isStandalone: true, selector: "kendo-toolbar-messages", providers: [
|
|
3330
|
-
{
|
|
3331
|
-
provide: ToolbarMessages,
|
|
3332
|
-
useExisting: forwardRef(() => ToolbarCustomMessagesComponent)
|
|
3333
|
-
}
|
|
3334
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
3335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarCustomMessagesComponent, decorators: [{
|
|
3436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarCustomMessagesComponent, decorators: [{
|
|
3336
3437
|
type: Component,
|
|
3337
3438
|
args: [{
|
|
3338
3439
|
providers: [
|
|
@@ -3376,11 +3477,11 @@ const KENDO_TOOLBAR = [
|
|
|
3376
3477
|
* - `ToolBarSeparatorComponent`—The Separator Tool component class.
|
|
3377
3478
|
*/
|
|
3378
3479
|
class ToolBarModule {
|
|
3480
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3481
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ToolBarModule, imports: [ToolBarComponent, ToolbarCustomMessagesComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent], exports: [ToolBarComponent, ToolbarCustomMessagesComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent] });
|
|
3482
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ToolBarComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSplitButtonComponent] });
|
|
3379
3483
|
}
|
|
3380
|
-
|
|
3381
|
-
ToolBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ToolBarModule, imports: [ToolBarComponent, ToolbarCustomMessagesComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent], exports: [ToolBarComponent, ToolbarCustomMessagesComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent] });
|
|
3382
|
-
ToolBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ToolBarComponent, ToolbarCustomMessagesComponent, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarDropDownButtonComponent, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent] });
|
|
3383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarModule, decorators: [{
|
|
3484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarModule, decorators: [{
|
|
3384
3485
|
type: NgModule,
|
|
3385
3486
|
args: [{
|
|
3386
3487
|
exports: [...KENDO_TOOLBAR],
|