@progress/kendo-angular-buttons 7.0.2 → 8.0.0-next.202202081332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-buttons.umd.js +5 -0
- package/{dist/es2015/button → button}/button.directive.d.ts +36 -23
- package/{dist/es2015/button → button}/button.module.d.ts +5 -0
- package/{dist/es2015/button → button}/button.service.d.ts +3 -0
- package/{dist/es2015/button → button}/selection-settings.d.ts +0 -0
- package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +13 -9
- package/{dist/es2015/buttongroup → buttongroup}/buttongroup.module.d.ts +7 -0
- package/{dist/es2015/buttons.module.d.ts → buttons.module.d.ts} +10 -0
- package/{dist/es2015/chip → chip}/chip-content-click-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip-list-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip-list.component.d.ts +7 -3
- package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip.component.d.ts +20 -13
- package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
- package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +0 -0
- package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
- package/{dist/es2015/common → common}/models/shape.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
- package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
- package/{dist/es2015/common → common}/models.d.ts +0 -0
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +24 -16
- package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
- package/{dist/es2015 → esm2015}/button/button.directive.js +92 -153
- package/{dist/es2015 → esm2015}/button/button.module.js +13 -10
- package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
- package/{dist/es → esm2015}/button/selection-settings.js +1 -0
- package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +82 -106
- package/esm2015/buttongroup/buttongroup.module.js +30 -0
- package/{dist/es → esm2015}/buttons.module.js +12 -12
- package/{dist/es2015 → esm2015}/chip/chip-content-click-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip-list-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip-list.component.js +58 -70
- package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip.component.js +124 -120
- package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
- package/{dist/es → esm2015}/chip/models/selection.js +1 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/shape.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es → esm2015}/common/models/styling-classes.js +1 -0
- package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
- package/{dist/es → esm2015}/common/models.js +6 -0
- package/{dist/es → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +166 -183
- package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
- package/esm2015/floatingactionbutton/dial-item.component.js +126 -0
- package/esm2015/floatingactionbutton/dial-list.component.js +89 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +152 -155
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
- package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
- package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
- package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
- package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
- package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
- package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
- package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +13 -12
- package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
- package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
- package/esm2015/listbutton/list.component.js +136 -0
- package/esm2015/listbutton/list.module.js +39 -0
- package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
- package/esm2015/listbutton/template-context.directive.js +33 -0
- package/{dist/es → esm2015}/main.js +6 -0
- package/{dist/es → esm2015}/navigation/key-events.js +0 -0
- package/{dist/es → esm2015}/navigation/navigation-action.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/esm2015/splitbutton/localization/custom-messages.component.js +37 -0
- package/esm2015/splitbutton/localization/localized-messages.directive.js +36 -0
- package/esm2015/splitbutton/localization/messages.js +22 -0
- package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +198 -189
- package/esm2015/splitbutton/splitbutton.module.js +34 -0
- package/{dist/es2015 → esm2015}/util.js +2 -2
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1673 -1687
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +30 -20
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
- package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
- package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
- package/kendo-angular-buttons.d.ts +9 -0
- package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
- package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
- package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
- package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +4 -1
- package/listbutton/list.module.d.ts +18 -0
- package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
- package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +6 -0
- package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +35 -110
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/splitbutton → splitbutton}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/splitbutton → splitbutton}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/splitbutton → splitbutton}/localization/messages.d.ts +3 -0
- package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +28 -18
- package/splitbutton/splitbutton.module.d.ts +25 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-buttons.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/button/button.directive.js +0 -769
- package/dist/es/button/button.module.js +0 -50
- package/dist/es/button/button.service.js +0 -24
- package/dist/es/buttongroup/buttongroup.component.js +0 -353
- package/dist/es/buttongroup/buttongroup.module.js +0 -30
- package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
- package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
- package/dist/es/chip/chip-list.component.js +0 -214
- package/dist/es/chip/chip-remove-event-args.interface.js +0 -4
- package/dist/es/chip/chip.component.js +0 -449
- package/dist/es/chip/chip.module.js +0 -55
- package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -704
- package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
- package/dist/es/floatingactionbutton/animations/animations.js +0 -33
- package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
- package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
- package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -903
- package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
- package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
- package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
- package/dist/es/floatingactionbutton/utils.js +0 -38
- package/dist/es/focusable/focus.service.js +0 -43
- package/dist/es/focusable/focusable.directive.js +0 -68
- package/dist/es/index.js +0 -22
- package/dist/es/listbutton/button-item-template.directive.js +0 -68
- package/dist/es/listbutton/list-button.js +0 -243
- package/dist/es/listbutton/list.component.js +0 -85
- package/dist/es/listbutton/list.module.js +0 -33
- package/dist/es/listbutton/template-context.directive.js +0 -40
- package/dist/es/navigation/navigation-config.js +0 -9
- package/dist/es/navigation/navigation.service.js +0 -114
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -29
- package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
- package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
- package/dist/es/splitbutton/localization/messages.js +0 -22
- package/dist/es/splitbutton/splitbutton.component.js +0 -830
- package/dist/es/splitbutton/splitbutton.module.js +0 -34
- package/dist/es/util.js +0 -97
- package/dist/es2015/button/selection-settings.js +0 -4
- package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
- package/dist/es2015/buttons.module.js +0 -51
- package/dist/es2015/chip/models/selection.js +0 -4
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/shape.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/common/models/styling-classes.js +0 -4
- package/dist/es2015/common/models/theme-color.js +0 -4
- package/dist/es2015/common/models.js +0 -4
- package/dist/es2015/direction.js +0 -4
- package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
- package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
- package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
- package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
- package/dist/es2015/floatingactionbutton/models/align.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
- package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
- package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
- package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
- package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/listbutton/list-item-model.js +0 -4
- package/dist/es2015/listbutton/list.component.js +0 -113
- package/dist/es2015/listbutton/list.module.js +0 -30
- package/dist/es2015/listbutton/popup-settings.js +0 -4
- package/dist/es2015/listbutton/template-context.directive.js +0 -35
- package/dist/es2015/main.js +0 -22
- package/dist/es2015/navigation/key-events.js +0 -13
- package/dist/es2015/navigation/navigation-action.js +0 -19
- package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
- package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/splitbutton/localization/messages.js +0 -16
- package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
- package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
- package/dist/fesm5/index.js +0 -5561
- package/dist/npm/button/button.directive.js +0 -771
- package/dist/npm/button/button.module.js +0 -52
- package/dist/npm/button/button.service.js +0 -26
- package/dist/npm/button/selection-settings.js +0 -6
- package/dist/npm/buttongroup/buttongroup.component.js +0 -355
- package/dist/npm/buttongroup/buttongroup.module.js +0 -32
- package/dist/npm/buttons.module.js +0 -56
- package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
- package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
- package/dist/npm/chip/chip-list.component.js +0 -216
- package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
- package/dist/npm/chip/chip.component.js +0 -451
- package/dist/npm/chip/chip.module.js +0 -57
- package/dist/npm/chip/models/selection.js +0 -6
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/shape.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/models/styling-classes.js +0 -6
- package/dist/npm/common/models/theme-color.js +0 -6
- package/dist/npm/common/models.js +0 -6
- package/dist/npm/direction.js +0 -6
- package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -706
- package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
- package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
- package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
- package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
- package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -905
- package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
- package/dist/npm/floatingactionbutton/models/align.js +0 -6
- package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
- package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
- package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
- package/dist/npm/floatingactionbutton/models/offset.js +0 -6
- package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
- package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
- package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
- package/dist/npm/floatingactionbutton/utils.js +0 -42
- package/dist/npm/focusable/focus.service.js +0 -45
- package/dist/npm/focusable/focusable.directive.js +0 -70
- package/dist/npm/index.js +0 -39
- package/dist/npm/listbutton/button-item-template.directive.js +0 -70
- package/dist/npm/listbutton/list-button.js +0 -245
- package/dist/npm/listbutton/list-item-model.js +0 -6
- package/dist/npm/listbutton/list.component.js +0 -87
- package/dist/npm/listbutton/list.module.js +0 -35
- package/dist/npm/listbutton/popup-settings.js +0 -6
- package/dist/npm/listbutton/template-context.directive.js +0 -42
- package/dist/npm/main.js +0 -45
- package/dist/npm/navigation/key-events.js +0 -15
- package/dist/npm/navigation/navigation-action.js +0 -21
- package/dist/npm/navigation/navigation-config.js +0 -11
- package/dist/npm/navigation/navigation.service.js +0 -116
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-event.js +0 -31
- package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
- package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
- package/dist/npm/splitbutton/localization/messages.js +0 -24
- package/dist/npm/splitbutton/splitbutton.component.js +0 -832
- package/dist/npm/splitbutton/splitbutton.module.js +0 -36
- package/dist/npm/util.js +0 -100
- package/dist/systemjs/kendo-angular-buttons.js +0 -5
|
@@ -2,35 +2,21 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Injectable, EventEmitter, Input, Output, HostBinding, HostListener,
|
|
7
|
-
import
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Injectable, EventEmitter, Directive, Optional, Input, Output, HostBinding, HostListener, isDevMode, Component, ContentChildren, NgModule, InjectionToken, Inject, forwardRef, ElementRef, ViewContainerRef, ContentChild, ViewChild } from '@angular/core';
|
|
7
|
+
import * as i8 from '@progress/kendo-angular-common';
|
|
8
8
|
import { Keys, isChanged, isDocumentAvailable, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
|
|
9
|
+
import * as i1 from '@progress/kendo-angular-l10n';
|
|
9
10
|
import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
10
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
|
+
import { Subject, fromEvent, merge, Subscription } from 'rxjs';
|
|
13
|
+
import * as i2 from '@angular/common';
|
|
11
14
|
import { CommonModule } from '@angular/common';
|
|
12
|
-
import
|
|
15
|
+
import * as i3 from '@progress/kendo-angular-popup';
|
|
16
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
13
17
|
import { filter, take } from 'rxjs/operators';
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
let KendoButtonService = class KendoButtonService {
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
constructor() {
|
|
24
|
-
this.buttonClicked = new Subject();
|
|
25
|
-
this.buttonClicked$ = this.buttonClicked.asObservable();
|
|
26
|
-
}
|
|
27
|
-
click(button) {
|
|
28
|
-
this.buttonClicked.next(button);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
KendoButtonService = __decorate([
|
|
32
|
-
Injectable()
|
|
33
|
-
], KendoButtonService);
|
|
18
|
+
import * as i4 from '@angular/animations';
|
|
19
|
+
import { sequence, query, style, stagger, animate } from '@angular/animations';
|
|
34
20
|
|
|
35
21
|
/**
|
|
36
22
|
* @hidden
|
|
@@ -39,13 +25,13 @@ const packageMetadata = {
|
|
|
39
25
|
name: '@progress/kendo-angular-buttons',
|
|
40
26
|
productName: 'Kendo UI for Angular',
|
|
41
27
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
42
|
-
publishDate:
|
|
28
|
+
publishDate: 1644327071,
|
|
43
29
|
version: '',
|
|
44
30
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
45
31
|
};
|
|
46
32
|
|
|
47
|
-
/*
|
|
48
|
-
/*
|
|
33
|
+
/* eslint-disable no-null-keyword */
|
|
34
|
+
/* eslint-disable no-bitwise */
|
|
49
35
|
const resolvedPromise = Promise.resolve(null);
|
|
50
36
|
/**
|
|
51
37
|
* @hidden
|
|
@@ -136,11 +122,29 @@ const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousVal
|
|
|
136
122
|
};
|
|
137
123
|
};
|
|
138
124
|
|
|
125
|
+
/**
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
class KendoButtonService {
|
|
129
|
+
constructor() {
|
|
130
|
+
this.buttonClicked = new Subject();
|
|
131
|
+
this.buttonClicked$ = this.buttonClicked.asObservable();
|
|
132
|
+
}
|
|
133
|
+
click(button) {
|
|
134
|
+
this.buttonClicked.next(button);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
+
KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, decorators: [{
|
|
140
|
+
type: Injectable
|
|
141
|
+
}] });
|
|
142
|
+
|
|
139
143
|
const SPAN_TAG_NAME = 'SPAN';
|
|
140
144
|
/**
|
|
141
145
|
* Represents the Kendo UI Button component for Angular.
|
|
142
146
|
*/
|
|
143
|
-
|
|
147
|
+
class ButtonDirective {
|
|
144
148
|
constructor(element, renderer, service, localization, ngZone) {
|
|
145
149
|
this.service = service;
|
|
146
150
|
this.ngZone = ngZone;
|
|
@@ -645,155 +649,94 @@ let ButtonDirective = class ButtonDirective {
|
|
|
645
649
|
}
|
|
646
650
|
}
|
|
647
651
|
}
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
__metadata("design:type", Boolean)
|
|
652
|
-
], ButtonDirective.prototype, "toggleable", void 0);
|
|
653
|
-
__decorate([
|
|
654
|
-
Input(),
|
|
655
|
-
__metadata("design:type", Boolean),
|
|
656
|
-
__metadata("design:paramtypes", [Boolean])
|
|
657
|
-
], ButtonDirective.prototype, "togglable", null);
|
|
658
|
-
__decorate([
|
|
659
|
-
Input(),
|
|
660
|
-
__metadata("design:type", Boolean),
|
|
661
|
-
__metadata("design:paramtypes", [Boolean])
|
|
662
|
-
], ButtonDirective.prototype, "selected", null);
|
|
663
|
-
__decorate([
|
|
664
|
-
Input(),
|
|
665
|
-
__metadata("design:type", Number),
|
|
666
|
-
__metadata("design:paramtypes", [Number])
|
|
667
|
-
], ButtonDirective.prototype, "tabIndex", null);
|
|
668
|
-
__decorate([
|
|
669
|
-
Input(),
|
|
670
|
-
__metadata("design:type", String),
|
|
671
|
-
__metadata("design:paramtypes", [String])
|
|
672
|
-
], ButtonDirective.prototype, "icon", null);
|
|
673
|
-
__decorate([
|
|
674
|
-
Input(),
|
|
675
|
-
__metadata("design:type", String),
|
|
676
|
-
__metadata("design:paramtypes", [String])
|
|
677
|
-
], ButtonDirective.prototype, "iconClass", null);
|
|
678
|
-
__decorate([
|
|
679
|
-
Input(),
|
|
680
|
-
__metadata("design:type", String),
|
|
681
|
-
__metadata("design:paramtypes", [String])
|
|
682
|
-
], ButtonDirective.prototype, "imageUrl", null);
|
|
683
|
-
__decorate([
|
|
684
|
-
Input(),
|
|
685
|
-
__metadata("design:type", Boolean),
|
|
686
|
-
__metadata("design:paramtypes", [Boolean])
|
|
687
|
-
], ButtonDirective.prototype, "disabled", null);
|
|
688
|
-
__decorate([
|
|
689
|
-
Input(),
|
|
690
|
-
__metadata("design:type", String),
|
|
691
|
-
__metadata("design:paramtypes", [String])
|
|
692
|
-
], ButtonDirective.prototype, "size", null);
|
|
693
|
-
__decorate([
|
|
694
|
-
Input(),
|
|
695
|
-
__metadata("design:type", String),
|
|
696
|
-
__metadata("design:paramtypes", [String])
|
|
697
|
-
], ButtonDirective.prototype, "rounded", null);
|
|
698
|
-
__decorate([
|
|
699
|
-
Input(),
|
|
700
|
-
__metadata("design:type", String),
|
|
701
|
-
__metadata("design:paramtypes", [String])
|
|
702
|
-
], ButtonDirective.prototype, "fillMode", null);
|
|
703
|
-
__decorate([
|
|
704
|
-
Input(),
|
|
705
|
-
__metadata("design:type", String),
|
|
706
|
-
__metadata("design:paramtypes", [String])
|
|
707
|
-
], ButtonDirective.prototype, "themeColor", null);
|
|
708
|
-
__decorate([
|
|
709
|
-
Input(),
|
|
710
|
-
__metadata("design:type", String),
|
|
711
|
-
__metadata("design:paramtypes", [String])
|
|
712
|
-
], ButtonDirective.prototype, "shape", null);
|
|
713
|
-
__decorate([
|
|
714
|
-
Input(),
|
|
715
|
-
__metadata("design:type", String)
|
|
716
|
-
], ButtonDirective.prototype, "role", void 0);
|
|
717
|
-
__decorate([
|
|
718
|
-
Output(),
|
|
719
|
-
__metadata("design:type", EventEmitter)
|
|
720
|
-
], ButtonDirective.prototype, "selectedChange", void 0);
|
|
721
|
-
__decorate([
|
|
722
|
-
Output(),
|
|
723
|
-
__metadata("design:type", EventEmitter)
|
|
724
|
-
], ButtonDirective.prototype, "click", void 0);
|
|
725
|
-
__decorate([
|
|
726
|
-
HostBinding('class.k-button'),
|
|
727
|
-
__metadata("design:type", Boolean),
|
|
728
|
-
__metadata("design:paramtypes", [])
|
|
729
|
-
], ButtonDirective.prototype, "classButton", null);
|
|
730
|
-
__decorate([
|
|
731
|
-
HostBinding('class.k-toggle-button'),
|
|
732
|
-
__metadata("design:type", Boolean),
|
|
733
|
-
__metadata("design:paramtypes", [])
|
|
734
|
-
], ButtonDirective.prototype, "isToggleable", null);
|
|
735
|
-
__decorate([
|
|
736
|
-
HostBinding('attr.role'),
|
|
737
|
-
__metadata("design:type", String),
|
|
738
|
-
__metadata("design:paramtypes", [])
|
|
739
|
-
], ButtonDirective.prototype, "roleSetter", null);
|
|
740
|
-
__decorate([
|
|
741
|
-
HostBinding('attr.aria-disabled'),
|
|
742
|
-
HostBinding('class.k-disabled'),
|
|
743
|
-
__metadata("design:type", Boolean),
|
|
744
|
-
__metadata("design:paramtypes", [])
|
|
745
|
-
], ButtonDirective.prototype, "classDisabled", null);
|
|
746
|
-
__decorate([
|
|
747
|
-
HostBinding('class.k-selected'),
|
|
748
|
-
__metadata("design:type", Boolean),
|
|
749
|
-
__metadata("design:paramtypes", [])
|
|
750
|
-
], ButtonDirective.prototype, "classActive", null);
|
|
751
|
-
__decorate([
|
|
752
|
-
HostBinding('attr.dir'),
|
|
753
|
-
__metadata("design:type", String),
|
|
754
|
-
__metadata("design:paramtypes", [])
|
|
755
|
-
], ButtonDirective.prototype, "getDirection", null);
|
|
756
|
-
__decorate([
|
|
757
|
-
HostListener('focus'),
|
|
758
|
-
__metadata("design:type", Function),
|
|
759
|
-
__metadata("design:paramtypes", []),
|
|
760
|
-
__metadata("design:returntype", void 0)
|
|
761
|
-
], ButtonDirective.prototype, "onFocus", null);
|
|
762
|
-
__decorate([
|
|
763
|
-
HostListener('blur'),
|
|
764
|
-
__metadata("design:type", Function),
|
|
765
|
-
__metadata("design:paramtypes", []),
|
|
766
|
-
__metadata("design:returntype", void 0)
|
|
767
|
-
], ButtonDirective.prototype, "onBlur", null);
|
|
768
|
-
__decorate([
|
|
769
|
-
Input(),
|
|
770
|
-
__metadata("design:type", Boolean),
|
|
771
|
-
__metadata("design:paramtypes", [Boolean])
|
|
772
|
-
], ButtonDirective.prototype, "primary", null);
|
|
773
|
-
__decorate([
|
|
774
|
-
Input(),
|
|
775
|
-
__metadata("design:type", String),
|
|
776
|
-
__metadata("design:paramtypes", [String])
|
|
777
|
-
], ButtonDirective.prototype, "look", null);
|
|
778
|
-
ButtonDirective = __decorate([
|
|
779
|
-
Directive({
|
|
780
|
-
exportAs: 'kendoButton',
|
|
781
|
-
providers: [
|
|
782
|
-
LocalizationService,
|
|
783
|
-
{
|
|
784
|
-
provide: L10N_PREFIX,
|
|
785
|
-
useValue: 'kendo.button'
|
|
786
|
-
}
|
|
787
|
-
],
|
|
788
|
-
selector: 'button[kendoButton], span[kendoButton]',
|
|
789
|
-
}),
|
|
790
|
-
__param(2, Optional()),
|
|
791
|
-
__metadata("design:paramtypes", [ElementRef,
|
|
792
|
-
Renderer2,
|
|
793
|
-
KendoButtonService,
|
|
652
|
+
}
|
|
653
|
+
ButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: KendoButtonService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
654
|
+
ButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: { toggleable: "toggleable", togglable: "togglable", selected: "selected", tabIndex: "tabIndex", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", shape: "shape", role: "role", primary: "primary", look: "look" }, outputs: { selectedChange: "selectedChange", click: "click" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-button": "this.classButton", "class.k-toggle-button": "this.isToggleable", "attr.role": "this.roleSetter", "attr.aria-disabled": "this.classDisabled", "class.k-disabled": "this.classDisabled", "class.k-selected": "this.classActive", "attr.dir": "this.getDirection" } }, providers: [
|
|
794
655
|
LocalizationService,
|
|
795
|
-
|
|
796
|
-
|
|
656
|
+
{
|
|
657
|
+
provide: L10N_PREFIX,
|
|
658
|
+
useValue: 'kendo.button'
|
|
659
|
+
}
|
|
660
|
+
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0 });
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
662
|
+
type: Directive,
|
|
663
|
+
args: [{
|
|
664
|
+
exportAs: 'kendoButton',
|
|
665
|
+
providers: [
|
|
666
|
+
LocalizationService,
|
|
667
|
+
{
|
|
668
|
+
provide: L10N_PREFIX,
|
|
669
|
+
useValue: 'kendo.button'
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
selector: 'button[kendoButton], span[kendoButton]' // eslint-disable-line
|
|
673
|
+
}]
|
|
674
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: KendoButtonService, decorators: [{
|
|
675
|
+
type: Optional
|
|
676
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { toggleable: [{
|
|
677
|
+
type: Input
|
|
678
|
+
}], togglable: [{
|
|
679
|
+
type: Input
|
|
680
|
+
}], selected: [{
|
|
681
|
+
type: Input
|
|
682
|
+
}], tabIndex: [{
|
|
683
|
+
type: Input
|
|
684
|
+
}], icon: [{
|
|
685
|
+
type: Input
|
|
686
|
+
}], iconClass: [{
|
|
687
|
+
type: Input
|
|
688
|
+
}], imageUrl: [{
|
|
689
|
+
type: Input
|
|
690
|
+
}], disabled: [{
|
|
691
|
+
type: Input
|
|
692
|
+
}], size: [{
|
|
693
|
+
type: Input
|
|
694
|
+
}], rounded: [{
|
|
695
|
+
type: Input
|
|
696
|
+
}], fillMode: [{
|
|
697
|
+
type: Input
|
|
698
|
+
}], themeColor: [{
|
|
699
|
+
type: Input
|
|
700
|
+
}], shape: [{
|
|
701
|
+
type: Input
|
|
702
|
+
}], role: [{
|
|
703
|
+
type: Input
|
|
704
|
+
}], selectedChange: [{
|
|
705
|
+
type: Output
|
|
706
|
+
}], click: [{
|
|
707
|
+
type: Output
|
|
708
|
+
}], classButton: [{
|
|
709
|
+
type: HostBinding,
|
|
710
|
+
args: ['class.k-button']
|
|
711
|
+
}], isToggleable: [{
|
|
712
|
+
type: HostBinding,
|
|
713
|
+
args: ['class.k-toggle-button']
|
|
714
|
+
}], roleSetter: [{
|
|
715
|
+
type: HostBinding,
|
|
716
|
+
args: ['attr.role']
|
|
717
|
+
}], classDisabled: [{
|
|
718
|
+
type: HostBinding,
|
|
719
|
+
args: ['attr.aria-disabled']
|
|
720
|
+
}, {
|
|
721
|
+
type: HostBinding,
|
|
722
|
+
args: ['class.k-disabled']
|
|
723
|
+
}], classActive: [{
|
|
724
|
+
type: HostBinding,
|
|
725
|
+
args: ['class.k-selected']
|
|
726
|
+
}], getDirection: [{
|
|
727
|
+
type: HostBinding,
|
|
728
|
+
args: ['attr.dir']
|
|
729
|
+
}], onFocus: [{
|
|
730
|
+
type: HostListener,
|
|
731
|
+
args: ['focus']
|
|
732
|
+
}], onBlur: [{
|
|
733
|
+
type: HostListener,
|
|
734
|
+
args: ['blur']
|
|
735
|
+
}], primary: [{
|
|
736
|
+
type: Input
|
|
737
|
+
}], look: [{
|
|
738
|
+
type: Input
|
|
739
|
+
}] } });
|
|
797
740
|
|
|
798
741
|
/**
|
|
799
742
|
* @hidden
|
|
@@ -826,7 +769,7 @@ const tabindex = 'tabindex';
|
|
|
826
769
|
/**
|
|
827
770
|
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
828
771
|
*/
|
|
829
|
-
|
|
772
|
+
class ButtonGroupComponent {
|
|
830
773
|
constructor(service, localization, element) {
|
|
831
774
|
this.service = service;
|
|
832
775
|
this.element = element;
|
|
@@ -1012,110 +955,85 @@ let ButtonGroupComponent = class ButtonGroupComponent {
|
|
|
1012
955
|
isSelectionSingle() {
|
|
1013
956
|
return this.selection === 'single';
|
|
1014
957
|
}
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
__decorate([
|
|
1042
|
-
HostBinding('class.k-button-group'),
|
|
1043
|
-
__metadata("design:type", Boolean),
|
|
1044
|
-
__metadata("design:paramtypes", [])
|
|
1045
|
-
], ButtonGroupComponent.prototype, "wrapperClass", null);
|
|
1046
|
-
__decorate([
|
|
1047
|
-
HostBinding('class.k-disabled'),
|
|
1048
|
-
__metadata("design:type", Boolean),
|
|
1049
|
-
__metadata("design:paramtypes", [])
|
|
1050
|
-
], ButtonGroupComponent.prototype, "disabledClass", null);
|
|
1051
|
-
__decorate([
|
|
1052
|
-
HostBinding('class.k-button-group-stretched'),
|
|
1053
|
-
__metadata("design:type", Boolean),
|
|
1054
|
-
__metadata("design:paramtypes", [])
|
|
1055
|
-
], ButtonGroupComponent.prototype, "stretchedClass", null);
|
|
1056
|
-
__decorate([
|
|
1057
|
-
HostBinding('attr.role'),
|
|
1058
|
-
__metadata("design:type", String),
|
|
1059
|
-
__metadata("design:paramtypes", [])
|
|
1060
|
-
], ButtonGroupComponent.prototype, "getRole", null);
|
|
1061
|
-
__decorate([
|
|
1062
|
-
HostBinding('attr.dir'),
|
|
1063
|
-
__metadata("design:type", String),
|
|
1064
|
-
__metadata("design:paramtypes", [])
|
|
1065
|
-
], ButtonGroupComponent.prototype, "dir", null);
|
|
1066
|
-
__decorate([
|
|
1067
|
-
HostBinding('attr.aria-disabled'),
|
|
1068
|
-
__metadata("design:type", Boolean),
|
|
1069
|
-
__metadata("design:paramtypes", [])
|
|
1070
|
-
], ButtonGroupComponent.prototype, "ariaDisabled", null);
|
|
1071
|
-
__decorate([
|
|
1072
|
-
HostBinding('style.width'),
|
|
1073
|
-
__metadata("design:type", String),
|
|
1074
|
-
__metadata("design:paramtypes", [])
|
|
1075
|
-
], ButtonGroupComponent.prototype, "wrapperWidth", null);
|
|
1076
|
-
__decorate([
|
|
1077
|
-
HostBinding('attr.tabindex'),
|
|
1078
|
-
__metadata("design:type", Number),
|
|
1079
|
-
__metadata("design:paramtypes", [])
|
|
1080
|
-
], ButtonGroupComponent.prototype, "wrapperTabIndex", null);
|
|
1081
|
-
__decorate([
|
|
1082
|
-
HostListener('keydown', ['$event']),
|
|
1083
|
-
__metadata("design:type", Function),
|
|
1084
|
-
__metadata("design:paramtypes", [Object]),
|
|
1085
|
-
__metadata("design:returntype", void 0)
|
|
1086
|
-
], ButtonGroupComponent.prototype, "keydown", null);
|
|
1087
|
-
__decorate([
|
|
1088
|
-
HostListener('focus'),
|
|
1089
|
-
__metadata("design:type", Function),
|
|
1090
|
-
__metadata("design:paramtypes", []),
|
|
1091
|
-
__metadata("design:returntype", void 0)
|
|
1092
|
-
], ButtonGroupComponent.prototype, "onFocus", null);
|
|
1093
|
-
__decorate([
|
|
1094
|
-
HostListener('focusout', ['$event']),
|
|
1095
|
-
__metadata("design:type", Function),
|
|
1096
|
-
__metadata("design:paramtypes", [Object]),
|
|
1097
|
-
__metadata("design:returntype", void 0)
|
|
1098
|
-
], ButtonGroupComponent.prototype, "focusout", null);
|
|
1099
|
-
ButtonGroupComponent = __decorate([
|
|
1100
|
-
Component({
|
|
1101
|
-
exportAs: 'kendoButtonGroup',
|
|
1102
|
-
providers: [
|
|
1103
|
-
KendoButtonService,
|
|
1104
|
-
LocalizationService,
|
|
1105
|
-
{
|
|
1106
|
-
provide: L10N_PREFIX,
|
|
1107
|
-
useValue: 'kendo.buttongroup'
|
|
1108
|
-
}
|
|
1109
|
-
],
|
|
1110
|
-
selector: 'kendo-buttongroup',
|
|
1111
|
-
template: `
|
|
958
|
+
}
|
|
959
|
+
ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: KendoButtonService }, { token: i1.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
960
|
+
ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: { disabled: "disabled", selection: "selection", width: "width", tabIndex: "tabIndex" }, outputs: { navigate: "navigate" }, host: { listeners: { "keydown": "keydown($event)", "focus": "onFocus()", "focusout": "focusout($event)" }, properties: { "class.k-button-group": "this.wrapperClass", "class.k-disabled": "this.disabledClass", "class.k-button-group-stretched": "this.stretchedClass", "attr.role": "this.getRole", "attr.dir": "this.dir", "attr.aria-disabled": "this.ariaDisabled", "style.width": "this.wrapperWidth", "attr.tabindex": "this.wrapperTabIndex" } }, providers: [
|
|
961
|
+
KendoButtonService,
|
|
962
|
+
LocalizationService,
|
|
963
|
+
{
|
|
964
|
+
provide: L10N_PREFIX,
|
|
965
|
+
useValue: 'kendo.buttongroup'
|
|
966
|
+
}
|
|
967
|
+
], queries: [{ propertyName: "buttons", predicate: ButtonDirective }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
|
|
968
|
+
<ng-content select="[kendoButton]"></ng-content>
|
|
969
|
+
`, isInline: true });
|
|
970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
971
|
+
type: Component,
|
|
972
|
+
args: [{
|
|
973
|
+
exportAs: 'kendoButtonGroup',
|
|
974
|
+
providers: [
|
|
975
|
+
KendoButtonService,
|
|
976
|
+
LocalizationService,
|
|
977
|
+
{
|
|
978
|
+
provide: L10N_PREFIX,
|
|
979
|
+
useValue: 'kendo.buttongroup'
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
selector: 'kendo-buttongroup',
|
|
983
|
+
template: `
|
|
1112
984
|
<ng-content select="[kendoButton]"></ng-content>
|
|
1113
985
|
`
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
],
|
|
986
|
+
}]
|
|
987
|
+
}], ctorParameters: function () { return [{ type: KendoButtonService }, { type: i1.LocalizationService }, { type: i0.ElementRef }]; }, propDecorators: { disabled: [{
|
|
988
|
+
type: Input,
|
|
989
|
+
args: ['disabled']
|
|
990
|
+
}], selection: [{
|
|
991
|
+
type: Input,
|
|
992
|
+
args: ['selection']
|
|
993
|
+
}], width: [{
|
|
994
|
+
type: Input,
|
|
995
|
+
args: ['width']
|
|
996
|
+
}], tabIndex: [{
|
|
997
|
+
type: Input
|
|
998
|
+
}], navigate: [{
|
|
999
|
+
type: Output
|
|
1000
|
+
}], buttons: [{
|
|
1001
|
+
type: ContentChildren,
|
|
1002
|
+
args: [ButtonDirective]
|
|
1003
|
+
}], wrapperClass: [{
|
|
1004
|
+
type: HostBinding,
|
|
1005
|
+
args: ['class.k-button-group']
|
|
1006
|
+
}], disabledClass: [{
|
|
1007
|
+
type: HostBinding,
|
|
1008
|
+
args: ['class.k-disabled']
|
|
1009
|
+
}], stretchedClass: [{
|
|
1010
|
+
type: HostBinding,
|
|
1011
|
+
args: ['class.k-button-group-stretched']
|
|
1012
|
+
}], getRole: [{
|
|
1013
|
+
type: HostBinding,
|
|
1014
|
+
args: ['attr.role']
|
|
1015
|
+
}], dir: [{
|
|
1016
|
+
type: HostBinding,
|
|
1017
|
+
args: ['attr.dir']
|
|
1018
|
+
}], ariaDisabled: [{
|
|
1019
|
+
type: HostBinding,
|
|
1020
|
+
args: ['attr.aria-disabled']
|
|
1021
|
+
}], wrapperWidth: [{
|
|
1022
|
+
type: HostBinding,
|
|
1023
|
+
args: ['style.width']
|
|
1024
|
+
}], wrapperTabIndex: [{
|
|
1025
|
+
type: HostBinding,
|
|
1026
|
+
args: ['attr.tabindex']
|
|
1027
|
+
}], keydown: [{
|
|
1028
|
+
type: HostListener,
|
|
1029
|
+
args: ['keydown', ['$event']]
|
|
1030
|
+
}], onFocus: [{
|
|
1031
|
+
type: HostListener,
|
|
1032
|
+
args: ['focus']
|
|
1033
|
+
}], focusout: [{
|
|
1034
|
+
type: HostListener,
|
|
1035
|
+
args: ['focusout', ['$event']]
|
|
1036
|
+
}] } });
|
|
1119
1037
|
|
|
1120
1038
|
/**
|
|
1121
1039
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
@@ -1148,14 +1066,18 @@ ButtonGroupComponent = __decorate([
|
|
|
1148
1066
|
*
|
|
1149
1067
|
* ```
|
|
1150
1068
|
*/
|
|
1151
|
-
|
|
1152
|
-
}
|
|
1153
|
-
ButtonModule =
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1069
|
+
class ButtonModule {
|
|
1070
|
+
}
|
|
1071
|
+
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1072
|
+
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective], exports: [ButtonDirective] });
|
|
1073
|
+
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule });
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, decorators: [{
|
|
1075
|
+
type: NgModule,
|
|
1076
|
+
args: [{
|
|
1077
|
+
declarations: [ButtonDirective],
|
|
1078
|
+
exports: [ButtonDirective]
|
|
1079
|
+
}]
|
|
1080
|
+
}] });
|
|
1159
1081
|
|
|
1160
1082
|
/**
|
|
1161
1083
|
* @hidden
|
|
@@ -1165,186 +1087,24 @@ ButtonModule = __decorate([
|
|
|
1165
1087
|
* The package exports:
|
|
1166
1088
|
* - `ButtonGroupComponent`—The ButtonGroupComponent component class.
|
|
1167
1089
|
*/
|
|
1168
|
-
|
|
1169
|
-
}
|
|
1170
|
-
ButtonGroupModule =
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
],
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
* To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
|
|
1182
|
-
*
|
|
1183
|
-
* For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
|
|
1184
|
-
* For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
|
|
1185
|
-
*
|
|
1186
|
-
* The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
|
|
1187
|
-
*
|
|
1188
|
-
* @example
|
|
1189
|
-
* ```ts
|
|
1190
|
-
* _@Component({
|
|
1191
|
-
* selector: 'my-app',
|
|
1192
|
-
* template: `
|
|
1193
|
-
* <kendo-splitbutton [data]="listItems">
|
|
1194
|
-
* <ng-template kendoSplitButtonItemTemplate let-dataItem>
|
|
1195
|
-
* <span>{{dataItem}} option</span>
|
|
1196
|
-
* </ng-template>
|
|
1197
|
-
* </kendo-splitbutton>
|
|
1198
|
-
* <kendo-dropdownbutton [data]="listItems">
|
|
1199
|
-
* <ng-template kendoDropDownButtonItemTemplate let-dataItem>
|
|
1200
|
-
* <span>{{dataItem}} option</span>
|
|
1201
|
-
* </ng-template>
|
|
1202
|
-
* </kendo-dropdownbutton>
|
|
1203
|
-
* `
|
|
1204
|
-
* })
|
|
1205
|
-
* class AppComponent {
|
|
1206
|
-
* public listItems: Array<any> = [{
|
|
1207
|
-
* text: 'item1',
|
|
1208
|
-
* icon: 'refresh',
|
|
1209
|
-
* disabled: false,
|
|
1210
|
-
* click: (dataItem: any) => {
|
|
1211
|
-
* //action
|
|
1212
|
-
* }
|
|
1213
|
-
* }, {
|
|
1214
|
-
* text: 'item2',
|
|
1215
|
-
* icon: 'refresh',
|
|
1216
|
-
* disabled: false,
|
|
1217
|
-
* click: (dataItem: any) => {
|
|
1218
|
-
* //action
|
|
1219
|
-
* }
|
|
1220
|
-
* }]
|
|
1221
|
-
* }
|
|
1222
|
-
* ```
|
|
1223
|
-
*
|
|
1224
|
-
* For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
|
|
1225
|
-
*/
|
|
1226
|
-
let ButtonItemTemplateDirective = class ButtonItemTemplateDirective {
|
|
1227
|
-
constructor(templateRef) {
|
|
1228
|
-
this.templateRef = templateRef;
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
|
-
ButtonItemTemplateDirective = __decorate([
|
|
1232
|
-
Directive({
|
|
1233
|
-
selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
|
|
1234
|
-
}),
|
|
1235
|
-
__metadata("design:paramtypes", [TemplateRef])
|
|
1236
|
-
], ButtonItemTemplateDirective);
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* @hidden
|
|
1240
|
-
*/
|
|
1241
|
-
let ListComponent = class ListComponent {
|
|
1242
|
-
constructor() {
|
|
1243
|
-
this.onItemClick = new EventEmitter();
|
|
1244
|
-
this.onItemBlur = new EventEmitter();
|
|
1245
|
-
this.sizeClass = '';
|
|
1246
|
-
validatePackage(packageMetadata);
|
|
1247
|
-
}
|
|
1248
|
-
set size(size) {
|
|
1249
|
-
if (size) {
|
|
1250
|
-
this.sizeClass = `k-menu-group-${SIZES[size]}`;
|
|
1251
|
-
}
|
|
1252
|
-
else {
|
|
1253
|
-
this.sizeClass = '';
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
getText(dataItem) {
|
|
1257
|
-
if (dataItem) {
|
|
1258
|
-
return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
|
|
1259
|
-
}
|
|
1260
|
-
return undefined;
|
|
1261
|
-
}
|
|
1262
|
-
getIconClasses(dataItem) {
|
|
1263
|
-
const icon = dataItem.icon ? 'k-icon k-i-' + dataItem.icon : undefined;
|
|
1264
|
-
const classes = {};
|
|
1265
|
-
classes[icon || dataItem.iconClass] = true;
|
|
1266
|
-
return classes;
|
|
1267
|
-
}
|
|
1268
|
-
onClick(index) {
|
|
1269
|
-
this.onItemClick.emit(index);
|
|
1270
|
-
}
|
|
1271
|
-
onBlur() {
|
|
1272
|
-
this.onItemBlur.emit();
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
__decorate([
|
|
1276
|
-
Input(),
|
|
1277
|
-
__metadata("design:type", Array)
|
|
1278
|
-
], ListComponent.prototype, "data", void 0);
|
|
1279
|
-
__decorate([
|
|
1280
|
-
Input(),
|
|
1281
|
-
__metadata("design:type", String)
|
|
1282
|
-
], ListComponent.prototype, "textField", void 0);
|
|
1283
|
-
__decorate([
|
|
1284
|
-
Input(),
|
|
1285
|
-
__metadata("design:type", ButtonItemTemplateDirective)
|
|
1286
|
-
], ListComponent.prototype, "itemTemplate", void 0);
|
|
1287
|
-
__decorate([
|
|
1288
|
-
Output(),
|
|
1289
|
-
__metadata("design:type", EventEmitter)
|
|
1290
|
-
], ListComponent.prototype, "onItemClick", void 0);
|
|
1291
|
-
__decorate([
|
|
1292
|
-
Output(),
|
|
1293
|
-
__metadata("design:type", EventEmitter)
|
|
1294
|
-
], ListComponent.prototype, "onItemBlur", void 0);
|
|
1295
|
-
__decorate([
|
|
1296
|
-
Input(),
|
|
1297
|
-
__metadata("design:type", String),
|
|
1298
|
-
__metadata("design:paramtypes", [String])
|
|
1299
|
-
], ListComponent.prototype, "size", null);
|
|
1300
|
-
ListComponent = __decorate([
|
|
1301
|
-
Component({
|
|
1302
|
-
selector: 'kendo-button-list',
|
|
1303
|
-
template: `
|
|
1304
|
-
<ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
|
|
1305
|
-
<li role="menuitem" unselectable="on"
|
|
1306
|
-
kendoButtonFocusable
|
|
1307
|
-
*ngFor="let dataItem of data; let index = index;"
|
|
1308
|
-
class="k-item k-menu-item"
|
|
1309
|
-
(click)="onClick(index)"
|
|
1310
|
-
(blur)="onBlur()"
|
|
1311
|
-
[attr.aria-disabled]="dataItem.disabled ? true : false">
|
|
1312
|
-
<ng-template [ngIf]="itemTemplate?.templateRef">
|
|
1313
|
-
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1314
|
-
<ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
|
|
1315
|
-
</span>
|
|
1316
|
-
</ng-template>
|
|
1317
|
-
<ng-template [ngIf]="!itemTemplate?.templateRef">
|
|
1318
|
-
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1319
|
-
<span
|
|
1320
|
-
*ngIf="dataItem.icon || dataItem.iconClass"
|
|
1321
|
-
[ngClass]="getIconClasses(dataItem)"
|
|
1322
|
-
></span>
|
|
1323
|
-
<img
|
|
1324
|
-
*ngIf="dataItem.imageUrl"
|
|
1325
|
-
class="k-image"
|
|
1326
|
-
[src]="dataItem.imageUrl"
|
|
1327
|
-
alt=""
|
|
1328
|
-
>
|
|
1329
|
-
<span *ngIf="getText(dataItem)" class="k-menu-link-text">
|
|
1330
|
-
{{ getText(dataItem) }}
|
|
1331
|
-
</span>
|
|
1332
|
-
</span>
|
|
1333
|
-
</ng-template>
|
|
1334
|
-
</li>
|
|
1335
|
-
</ul>
|
|
1336
|
-
`
|
|
1337
|
-
}),
|
|
1338
|
-
__metadata("design:paramtypes", [])
|
|
1339
|
-
], ListComponent);
|
|
1090
|
+
class ButtonGroupModule {
|
|
1091
|
+
}
|
|
1092
|
+
ButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1093
|
+
ButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, declarations: [ButtonGroupComponent], imports: [CommonModule, ButtonModule], exports: [ButtonGroupComponent] });
|
|
1094
|
+
ButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, imports: [[CommonModule, ButtonModule]] });
|
|
1095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, decorators: [{
|
|
1096
|
+
type: NgModule,
|
|
1097
|
+
args: [{
|
|
1098
|
+
declarations: [ButtonGroupComponent],
|
|
1099
|
+
exports: [ButtonGroupComponent],
|
|
1100
|
+
imports: [CommonModule, ButtonModule]
|
|
1101
|
+
}]
|
|
1102
|
+
}] });
|
|
1340
1103
|
|
|
1341
1104
|
/**
|
|
1342
1105
|
* @hidden
|
|
1343
1106
|
*/
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* @hidden
|
|
1347
|
-
*/
|
|
1107
|
+
class FocusService {
|
|
1348
1108
|
constructor() {
|
|
1349
1109
|
this.onFocus = new EventEmitter();
|
|
1350
1110
|
}
|
|
@@ -1368,15 +1128,17 @@ let FocusService = class FocusService {
|
|
|
1368
1128
|
this.focusedIndex = index;
|
|
1369
1129
|
this.onFocus.emit(index);
|
|
1370
1130
|
}
|
|
1371
|
-
}
|
|
1372
|
-
FocusService =
|
|
1373
|
-
|
|
1374
|
-
|
|
1131
|
+
}
|
|
1132
|
+
FocusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1133
|
+
FocusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService });
|
|
1134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, decorators: [{
|
|
1135
|
+
type: Injectable
|
|
1136
|
+
}] });
|
|
1375
1137
|
|
|
1376
1138
|
/**
|
|
1377
1139
|
* @hidden
|
|
1378
1140
|
*/
|
|
1379
|
-
|
|
1141
|
+
class FocusableDirective {
|
|
1380
1142
|
constructor(focusService, elementRef, renderer) {
|
|
1381
1143
|
this.focusService = focusService;
|
|
1382
1144
|
this.renderer = renderer;
|
|
@@ -1419,22 +1181,22 @@ let FocusableDirective = class FocusableDirective {
|
|
|
1419
1181
|
this.focusSubscription.unsubscribe();
|
|
1420
1182
|
}
|
|
1421
1183
|
}
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
]
|
|
1184
|
+
}
|
|
1185
|
+
FocusableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, deps: [{ token: FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1186
|
+
FocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: { index: "index" }, ngImport: i0 });
|
|
1187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, decorators: [{
|
|
1188
|
+
type: Directive,
|
|
1189
|
+
args: [{
|
|
1190
|
+
selector: '[kendoButtonFocusable]'
|
|
1191
|
+
}]
|
|
1192
|
+
}], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { index: [{
|
|
1193
|
+
type: Input
|
|
1194
|
+
}] } });
|
|
1433
1195
|
|
|
1434
1196
|
/**
|
|
1435
1197
|
* @hidden
|
|
1436
1198
|
*/
|
|
1437
|
-
|
|
1199
|
+
class TemplateContextDirective {
|
|
1438
1200
|
constructor(viewContainerRef) {
|
|
1439
1201
|
this.viewContainerRef = viewContainerRef;
|
|
1440
1202
|
}
|
|
@@ -1447,100 +1209,406 @@ let TemplateContextDirective = class TemplateContextDirective {
|
|
|
1447
1209
|
this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
|
|
1448
1210
|
}
|
|
1449
1211
|
}
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
], TemplateContextDirective);
|
|
1462
|
-
|
|
1463
|
-
const EXPORTED_DIRECTIVES = [
|
|
1464
|
-
ListComponent,
|
|
1465
|
-
FocusableDirective,
|
|
1466
|
-
ButtonItemTemplateDirective,
|
|
1467
|
-
TemplateContextDirective
|
|
1468
|
-
];
|
|
1469
|
-
/**
|
|
1470
|
-
* @hidden
|
|
1471
|
-
*/
|
|
1472
|
-
let ListModule = class ListModule {
|
|
1473
|
-
};
|
|
1474
|
-
ListModule = __decorate([
|
|
1475
|
-
NgModule({
|
|
1476
|
-
declarations: [EXPORTED_DIRECTIVES],
|
|
1477
|
-
exports: [EXPORTED_DIRECTIVES],
|
|
1478
|
-
imports: [CommonModule]
|
|
1479
|
-
})
|
|
1480
|
-
], ListModule);
|
|
1481
|
-
|
|
1482
|
-
/**
|
|
1483
|
-
* @hidden
|
|
1484
|
-
*/
|
|
1485
|
-
var KeyEvents;
|
|
1486
|
-
(function (KeyEvents) {
|
|
1487
|
-
KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
|
|
1488
|
-
KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
|
|
1489
|
-
KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
|
|
1490
|
-
})(KeyEvents || (KeyEvents = {}));
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* @hidden
|
|
1494
|
-
*/
|
|
1495
|
-
var NavigationAction;
|
|
1496
|
-
(function (NavigationAction) {
|
|
1497
|
-
NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
|
|
1498
|
-
NavigationAction[NavigationAction["Open"] = 1] = "Open";
|
|
1499
|
-
NavigationAction[NavigationAction["Close"] = 2] = "Close";
|
|
1500
|
-
NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
|
|
1501
|
-
NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
|
|
1502
|
-
NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
|
|
1503
|
-
NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
|
|
1504
|
-
NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
|
|
1505
|
-
NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
|
|
1506
|
-
})(NavigationAction || (NavigationAction = {}));
|
|
1212
|
+
}
|
|
1213
|
+
TemplateContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1214
|
+
TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TemplateContextDirective, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, decorators: [{
|
|
1216
|
+
type: Directive,
|
|
1217
|
+
args: [{
|
|
1218
|
+
selector: '[templateContext]' // eslint-disable-line directive-selector
|
|
1219
|
+
}]
|
|
1220
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { templateContext: [{
|
|
1221
|
+
type: Input
|
|
1222
|
+
}] } });
|
|
1507
1223
|
|
|
1508
|
-
/* tslint:disable:deprecation */
|
|
1509
1224
|
/**
|
|
1510
1225
|
* @hidden
|
|
1511
1226
|
*/
|
|
1512
|
-
class
|
|
1513
|
-
constructor(
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1517
|
-
this._zone = _zone;
|
|
1518
|
-
this.cdr = cdr;
|
|
1519
|
-
this._open = false;
|
|
1520
|
-
this._disabled = false;
|
|
1521
|
-
this._active = false;
|
|
1522
|
-
this._popupSettings = { animate: true, popupClass: '' };
|
|
1523
|
-
this.listId = guid();
|
|
1524
|
-
this._isFocused = false;
|
|
1227
|
+
class ListComponent {
|
|
1228
|
+
constructor() {
|
|
1229
|
+
this.onItemClick = new EventEmitter();
|
|
1230
|
+
this.onItemBlur = new EventEmitter();
|
|
1231
|
+
this.sizeClass = '';
|
|
1525
1232
|
validatePackage(packageMetadata);
|
|
1526
|
-
this.focusService = focusService;
|
|
1527
|
-
this.navigationService = navigationService;
|
|
1528
|
-
this.wrapper = wrapperRef.nativeElement;
|
|
1529
|
-
this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr'));
|
|
1530
|
-
this.subscribeEvents();
|
|
1531
1233
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1234
|
+
set size(size) {
|
|
1235
|
+
if (size) {
|
|
1236
|
+
this.sizeClass = `k-menu-group-${SIZES[size]}`;
|
|
1237
|
+
}
|
|
1238
|
+
else {
|
|
1239
|
+
this.sizeClass = '';
|
|
1536
1240
|
}
|
|
1537
|
-
return popupClasses.join(' ');
|
|
1538
1241
|
}
|
|
1539
|
-
|
|
1540
|
-
|
|
1242
|
+
getText(dataItem) {
|
|
1243
|
+
if (dataItem) {
|
|
1244
|
+
return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
|
|
1245
|
+
}
|
|
1246
|
+
return undefined;
|
|
1541
1247
|
}
|
|
1542
|
-
|
|
1543
|
-
|
|
1248
|
+
getIconClasses(dataItem) {
|
|
1249
|
+
const icon = dataItem.icon ? 'k-icon k-i-' + dataItem.icon : undefined;
|
|
1250
|
+
const classes = {};
|
|
1251
|
+
classes[icon || dataItem.iconClass] = true;
|
|
1252
|
+
return classes;
|
|
1253
|
+
}
|
|
1254
|
+
onClick(index) {
|
|
1255
|
+
this.onItemClick.emit(index);
|
|
1256
|
+
}
|
|
1257
|
+
onBlur() {
|
|
1258
|
+
this.onItemBlur.emit();
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1262
|
+
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListComponent, selector: "kendo-button-list", inputs: { data: "data", textField: "textField", itemTemplate: "itemTemplate", size: "size" }, outputs: { onItemClick: "onItemClick", onItemBlur: "onItemBlur" }, ngImport: i0, template: `
|
|
1263
|
+
<ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
|
|
1264
|
+
<li role="menuitem" unselectable="on"
|
|
1265
|
+
kendoButtonFocusable
|
|
1266
|
+
*ngFor="let dataItem of data; let index = index;"
|
|
1267
|
+
class="k-item k-menu-item"
|
|
1268
|
+
(click)="onClick(index)"
|
|
1269
|
+
(blur)="onBlur()"
|
|
1270
|
+
[attr.aria-disabled]="dataItem.disabled ? true : false">
|
|
1271
|
+
<ng-template [ngIf]="itemTemplate?.templateRef">
|
|
1272
|
+
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1273
|
+
<ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
|
|
1274
|
+
</span>
|
|
1275
|
+
</ng-template>
|
|
1276
|
+
<ng-template [ngIf]="!itemTemplate?.templateRef">
|
|
1277
|
+
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1278
|
+
<span
|
|
1279
|
+
*ngIf="dataItem.icon || dataItem.iconClass"
|
|
1280
|
+
[ngClass]="getIconClasses(dataItem)"
|
|
1281
|
+
></span>
|
|
1282
|
+
<img
|
|
1283
|
+
*ngIf="dataItem.imageUrl"
|
|
1284
|
+
class="k-image"
|
|
1285
|
+
[src]="dataItem.imageUrl"
|
|
1286
|
+
alt=""
|
|
1287
|
+
>
|
|
1288
|
+
<span *ngIf="getText(dataItem)" class="k-menu-link-text">
|
|
1289
|
+
{{ getText(dataItem) }}
|
|
1290
|
+
</span>
|
|
1291
|
+
</span>
|
|
1292
|
+
</ng-template>
|
|
1293
|
+
</li>
|
|
1294
|
+
</ul>
|
|
1295
|
+
`, isInline: true, directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
1296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListComponent, decorators: [{
|
|
1297
|
+
type: Component,
|
|
1298
|
+
args: [{
|
|
1299
|
+
selector: 'kendo-button-list',
|
|
1300
|
+
template: `
|
|
1301
|
+
<ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
|
|
1302
|
+
<li role="menuitem" unselectable="on"
|
|
1303
|
+
kendoButtonFocusable
|
|
1304
|
+
*ngFor="let dataItem of data; let index = index;"
|
|
1305
|
+
class="k-item k-menu-item"
|
|
1306
|
+
(click)="onClick(index)"
|
|
1307
|
+
(blur)="onBlur()"
|
|
1308
|
+
[attr.aria-disabled]="dataItem.disabled ? true : false">
|
|
1309
|
+
<ng-template [ngIf]="itemTemplate?.templateRef">
|
|
1310
|
+
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1311
|
+
<ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
|
|
1312
|
+
</span>
|
|
1313
|
+
</ng-template>
|
|
1314
|
+
<ng-template [ngIf]="!itemTemplate?.templateRef">
|
|
1315
|
+
<span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
|
|
1316
|
+
<span
|
|
1317
|
+
*ngIf="dataItem.icon || dataItem.iconClass"
|
|
1318
|
+
[ngClass]="getIconClasses(dataItem)"
|
|
1319
|
+
></span>
|
|
1320
|
+
<img
|
|
1321
|
+
*ngIf="dataItem.imageUrl"
|
|
1322
|
+
class="k-image"
|
|
1323
|
+
[src]="dataItem.imageUrl"
|
|
1324
|
+
alt=""
|
|
1325
|
+
>
|
|
1326
|
+
<span *ngIf="getText(dataItem)" class="k-menu-link-text">
|
|
1327
|
+
{{ getText(dataItem) }}
|
|
1328
|
+
</span>
|
|
1329
|
+
</span>
|
|
1330
|
+
</ng-template>
|
|
1331
|
+
</li>
|
|
1332
|
+
</ul>
|
|
1333
|
+
`
|
|
1334
|
+
}]
|
|
1335
|
+
}], ctorParameters: function () { return []; }, propDecorators: { data: [{
|
|
1336
|
+
type: Input
|
|
1337
|
+
}], textField: [{
|
|
1338
|
+
type: Input
|
|
1339
|
+
}], itemTemplate: [{
|
|
1340
|
+
type: Input
|
|
1341
|
+
}], onItemClick: [{
|
|
1342
|
+
type: Output
|
|
1343
|
+
}], onItemBlur: [{
|
|
1344
|
+
type: Output
|
|
1345
|
+
}], size: [{
|
|
1346
|
+
type: Input
|
|
1347
|
+
}] } });
|
|
1348
|
+
|
|
1349
|
+
/* eslint-disable directive-selector-name */
|
|
1350
|
+
/**
|
|
1351
|
+
* Used for rendering the list item content.
|
|
1352
|
+
*
|
|
1353
|
+
* To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
|
|
1354
|
+
*
|
|
1355
|
+
* For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
|
|
1356
|
+
* For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
|
|
1357
|
+
*
|
|
1358
|
+
* The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
* ```ts
|
|
1362
|
+
* _@Component({
|
|
1363
|
+
* selector: 'my-app',
|
|
1364
|
+
* template: `
|
|
1365
|
+
* <kendo-splitbutton [data]="listItems">
|
|
1366
|
+
* <ng-template kendoSplitButtonItemTemplate let-dataItem>
|
|
1367
|
+
* <span>{{dataItem}} option</span>
|
|
1368
|
+
* </ng-template>
|
|
1369
|
+
* </kendo-splitbutton>
|
|
1370
|
+
* <kendo-dropdownbutton [data]="listItems">
|
|
1371
|
+
* <ng-template kendoDropDownButtonItemTemplate let-dataItem>
|
|
1372
|
+
* <span>{{dataItem}} option</span>
|
|
1373
|
+
* </ng-template>
|
|
1374
|
+
* </kendo-dropdownbutton>
|
|
1375
|
+
* `
|
|
1376
|
+
* })
|
|
1377
|
+
* class AppComponent {
|
|
1378
|
+
* public listItems: Array<any> = [{
|
|
1379
|
+
* text: 'item1',
|
|
1380
|
+
* icon: 'refresh',
|
|
1381
|
+
* disabled: false,
|
|
1382
|
+
* click: (dataItem: any) => {
|
|
1383
|
+
* //action
|
|
1384
|
+
* }
|
|
1385
|
+
* }, {
|
|
1386
|
+
* text: 'item2',
|
|
1387
|
+
* icon: 'refresh',
|
|
1388
|
+
* disabled: false,
|
|
1389
|
+
* click: (dataItem: any) => {
|
|
1390
|
+
* //action
|
|
1391
|
+
* }
|
|
1392
|
+
* }]
|
|
1393
|
+
* }
|
|
1394
|
+
* ```
|
|
1395
|
+
*
|
|
1396
|
+
* For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
|
|
1397
|
+
*/
|
|
1398
|
+
class ButtonItemTemplateDirective {
|
|
1399
|
+
constructor(templateRef) {
|
|
1400
|
+
this.templateRef = templateRef;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
ButtonItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1404
|
+
ButtonItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ButtonItemTemplateDirective, selector: "[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]", ngImport: i0 });
|
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, decorators: [{
|
|
1406
|
+
type: Directive,
|
|
1407
|
+
args: [{
|
|
1408
|
+
selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
|
|
1409
|
+
}]
|
|
1410
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1411
|
+
|
|
1412
|
+
const EXPORTED_DIRECTIVES = [
|
|
1413
|
+
ListComponent,
|
|
1414
|
+
FocusableDirective,
|
|
1415
|
+
ButtonItemTemplateDirective,
|
|
1416
|
+
TemplateContextDirective
|
|
1417
|
+
];
|
|
1418
|
+
/**
|
|
1419
|
+
* @hidden
|
|
1420
|
+
*/
|
|
1421
|
+
class ListModule {
|
|
1422
|
+
}
|
|
1423
|
+
ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1424
|
+
ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, declarations: [ListComponent,
|
|
1425
|
+
FocusableDirective,
|
|
1426
|
+
ButtonItemTemplateDirective,
|
|
1427
|
+
TemplateContextDirective], imports: [CommonModule], exports: [ListComponent,
|
|
1428
|
+
FocusableDirective,
|
|
1429
|
+
ButtonItemTemplateDirective,
|
|
1430
|
+
TemplateContextDirective] });
|
|
1431
|
+
ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, imports: [[CommonModule]] });
|
|
1432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, decorators: [{
|
|
1433
|
+
type: NgModule,
|
|
1434
|
+
args: [{
|
|
1435
|
+
declarations: [EXPORTED_DIRECTIVES],
|
|
1436
|
+
exports: [EXPORTED_DIRECTIVES],
|
|
1437
|
+
imports: [CommonModule]
|
|
1438
|
+
}]
|
|
1439
|
+
}] });
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* @hidden
|
|
1443
|
+
*/
|
|
1444
|
+
var KeyEvents;
|
|
1445
|
+
(function (KeyEvents) {
|
|
1446
|
+
KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
|
|
1447
|
+
KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
|
|
1448
|
+
KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
|
|
1449
|
+
})(KeyEvents || (KeyEvents = {}));
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* @hidden
|
|
1453
|
+
*/
|
|
1454
|
+
var NavigationAction;
|
|
1455
|
+
(function (NavigationAction) {
|
|
1456
|
+
NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
|
|
1457
|
+
NavigationAction[NavigationAction["Open"] = 1] = "Open";
|
|
1458
|
+
NavigationAction[NavigationAction["Close"] = 2] = "Close";
|
|
1459
|
+
NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
|
|
1460
|
+
NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
|
|
1461
|
+
NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
|
|
1462
|
+
NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
|
|
1463
|
+
NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
|
|
1464
|
+
NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
|
|
1465
|
+
})(NavigationAction || (NavigationAction = {}));
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @hidden
|
|
1469
|
+
*/
|
|
1470
|
+
const NAVIGATION_CONFIG = new InjectionToken('navigation.config');
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* @hidden
|
|
1474
|
+
*/
|
|
1475
|
+
class NavigationService {
|
|
1476
|
+
constructor(config) {
|
|
1477
|
+
this.navigate = new EventEmitter();
|
|
1478
|
+
this.open = new EventEmitter();
|
|
1479
|
+
this.close = new EventEmitter();
|
|
1480
|
+
this.enter = new EventEmitter();
|
|
1481
|
+
this.enterpress = new EventEmitter();
|
|
1482
|
+
this.enterup = new EventEmitter();
|
|
1483
|
+
this.tab = new EventEmitter();
|
|
1484
|
+
this.esc = new EventEmitter();
|
|
1485
|
+
this.useLeftRightArrows = config.useLeftRightArrows;
|
|
1486
|
+
}
|
|
1487
|
+
process(args) {
|
|
1488
|
+
const keyCode = args.keyCode;
|
|
1489
|
+
const keyEvent = args.keyEvent;
|
|
1490
|
+
let index;
|
|
1491
|
+
let action = NavigationAction.Undefined;
|
|
1492
|
+
if (keyEvent === KeyEvents.keypress) {
|
|
1493
|
+
if (this.isEnter(keyCode)) {
|
|
1494
|
+
action = NavigationAction.EnterPress;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
else if (keyEvent === KeyEvents.keyup) {
|
|
1498
|
+
if (this.isEnter(keyCode)) {
|
|
1499
|
+
action = NavigationAction.EnterUp;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
if (args.altKey && keyCode === Keys.ArrowDown) {
|
|
1504
|
+
action = NavigationAction.Open;
|
|
1505
|
+
}
|
|
1506
|
+
else if (args.altKey && keyCode === Keys.ArrowUp) {
|
|
1507
|
+
action = NavigationAction.Close;
|
|
1508
|
+
}
|
|
1509
|
+
else if (this.isEnter(keyCode)) {
|
|
1510
|
+
action = NavigationAction.Enter;
|
|
1511
|
+
}
|
|
1512
|
+
else if (keyCode === Keys.Escape) {
|
|
1513
|
+
action = NavigationAction.Esc;
|
|
1514
|
+
}
|
|
1515
|
+
else if (keyCode === Keys.Tab) {
|
|
1516
|
+
action = NavigationAction.Tab;
|
|
1517
|
+
}
|
|
1518
|
+
else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
|
|
1519
|
+
const step = args.flipNavigation ? 1 : -1;
|
|
1520
|
+
const start = args.flipNavigation ? args.min : args.max;
|
|
1521
|
+
const end = args.flipNavigation ? args.max : args.min;
|
|
1522
|
+
index = this.next({
|
|
1523
|
+
current: args.current,
|
|
1524
|
+
start: start,
|
|
1525
|
+
end: end,
|
|
1526
|
+
step: step
|
|
1527
|
+
});
|
|
1528
|
+
action = NavigationAction.Navigate;
|
|
1529
|
+
}
|
|
1530
|
+
else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
|
|
1531
|
+
const step = args.flipNavigation ? -1 : 1;
|
|
1532
|
+
const start = args.flipNavigation ? args.max : args.min;
|
|
1533
|
+
const end = args.flipNavigation ? args.min : args.max;
|
|
1534
|
+
index = this.next({
|
|
1535
|
+
current: args.current,
|
|
1536
|
+
start: start,
|
|
1537
|
+
end: end,
|
|
1538
|
+
step: step
|
|
1539
|
+
});
|
|
1540
|
+
action = NavigationAction.Navigate;
|
|
1541
|
+
}
|
|
1542
|
+
else if (keyCode === Keys.Home) {
|
|
1543
|
+
index = args.min;
|
|
1544
|
+
action = NavigationAction.Navigate;
|
|
1545
|
+
}
|
|
1546
|
+
else if (keyCode === Keys.End) {
|
|
1547
|
+
index = args.max;
|
|
1548
|
+
action = NavigationAction.Navigate;
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
if (action !== NavigationAction.Undefined) {
|
|
1552
|
+
this[NavigationAction[action].toLowerCase()].emit(index);
|
|
1553
|
+
}
|
|
1554
|
+
return action;
|
|
1555
|
+
}
|
|
1556
|
+
isEnter(keyCode) {
|
|
1557
|
+
return keyCode === Keys.Enter || keyCode === Keys.Space;
|
|
1558
|
+
}
|
|
1559
|
+
next(args) {
|
|
1560
|
+
if (!isPresent(args.current)) {
|
|
1561
|
+
return args.start;
|
|
1562
|
+
}
|
|
1563
|
+
else {
|
|
1564
|
+
return args.current !== args.end ? args.current + args.step : args.end;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: NAVIGATION_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1569
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
|
|
1570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
|
|
1571
|
+
type: Injectable
|
|
1572
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1573
|
+
type: Inject,
|
|
1574
|
+
args: [NAVIGATION_CONFIG]
|
|
1575
|
+
}] }]; } });
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* @hidden
|
|
1579
|
+
*/
|
|
1580
|
+
class ListButton {
|
|
1581
|
+
constructor(focusService, navigationService, wrapperRef, _zone, localization, cdr) {
|
|
1582
|
+
this.focusService = focusService;
|
|
1583
|
+
this.navigationService = navigationService;
|
|
1584
|
+
this.wrapperRef = wrapperRef;
|
|
1585
|
+
this._zone = _zone;
|
|
1586
|
+
this.cdr = cdr;
|
|
1587
|
+
this._open = false;
|
|
1588
|
+
this._disabled = false;
|
|
1589
|
+
this._active = false;
|
|
1590
|
+
this._popupSettings = { animate: true, popupClass: '' };
|
|
1591
|
+
this.listId = guid();
|
|
1592
|
+
this._isFocused = false;
|
|
1593
|
+
validatePackage(packageMetadata);
|
|
1594
|
+
this.focusService = focusService;
|
|
1595
|
+
this.navigationService = navigationService;
|
|
1596
|
+
this.wrapper = wrapperRef.nativeElement;
|
|
1597
|
+
this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr'));
|
|
1598
|
+
this.subscribeEvents();
|
|
1599
|
+
}
|
|
1600
|
+
get popupClasses() {
|
|
1601
|
+
const popupClasses = ['k-menu-popup'];
|
|
1602
|
+
if (this._popupSettings.popupClass) {
|
|
1603
|
+
popupClasses.push(this._popupSettings.popupClass);
|
|
1604
|
+
}
|
|
1605
|
+
return popupClasses.join(' ');
|
|
1606
|
+
}
|
|
1607
|
+
get openState() {
|
|
1608
|
+
return this._open;
|
|
1609
|
+
}
|
|
1610
|
+
set openState(open) {
|
|
1611
|
+
this._open = open;
|
|
1544
1612
|
}
|
|
1545
1613
|
/**
|
|
1546
1614
|
* @hidden
|
|
@@ -1608,7 +1676,7 @@ class ListButton {
|
|
|
1608
1676
|
});
|
|
1609
1677
|
this.closeSubscription = merge(this.navigationService.close, this.navigationService.esc).subscribe(() => this.focusWrapper());
|
|
1610
1678
|
}
|
|
1611
|
-
enterHandler() { } //
|
|
1679
|
+
enterHandler() { } // eslint-disable-line
|
|
1612
1680
|
unsubscribeEvents() {
|
|
1613
1681
|
if (!isDocumentAvailable()) {
|
|
1614
1682
|
return;
|
|
@@ -1716,121 +1784,67 @@ class ListButton {
|
|
|
1716
1784
|
this.blurWrapper(false);
|
|
1717
1785
|
}
|
|
1718
1786
|
}
|
|
1787
|
+
ListButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListButton, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1788
|
+
ListButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListButton, selector: "ng-component", ngImport: i0, template: '', isInline: true });
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListButton, decorators: [{
|
|
1790
|
+
type: Component,
|
|
1791
|
+
args: [{
|
|
1792
|
+
template: ''
|
|
1793
|
+
}]
|
|
1794
|
+
}], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
|
|
1719
1795
|
|
|
1720
1796
|
/**
|
|
1721
1797
|
* @hidden
|
|
1722
1798
|
*/
|
|
1723
|
-
|
|
1799
|
+
class Messages extends ComponentMessages {
|
|
1800
|
+
}
|
|
1801
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1802
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "kendo-splitbutton-messages-base", inputs: { splitButtonLabel: "splitButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
1803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
|
|
1804
|
+
type: Directive,
|
|
1805
|
+
args: [{
|
|
1806
|
+
selector: 'kendo-splitbutton-messages-base'
|
|
1807
|
+
}]
|
|
1808
|
+
}], propDecorators: { splitButtonLabel: [{
|
|
1809
|
+
type: Input
|
|
1810
|
+
}] } });
|
|
1724
1811
|
|
|
1725
1812
|
/**
|
|
1726
1813
|
* @hidden
|
|
1727
1814
|
*/
|
|
1728
|
-
|
|
1729
|
-
constructor(
|
|
1730
|
-
|
|
1731
|
-
this.
|
|
1732
|
-
this.close = new EventEmitter();
|
|
1733
|
-
this.enter = new EventEmitter();
|
|
1734
|
-
this.enterpress = new EventEmitter();
|
|
1735
|
-
this.enterup = new EventEmitter();
|
|
1736
|
-
this.tab = new EventEmitter();
|
|
1737
|
-
this.esc = new EventEmitter();
|
|
1738
|
-
this.useLeftRightArrows = config.useLeftRightArrows;
|
|
1739
|
-
}
|
|
1740
|
-
process(args) {
|
|
1741
|
-
const keyCode = args.keyCode;
|
|
1742
|
-
const keyEvent = args.keyEvent;
|
|
1743
|
-
let index;
|
|
1744
|
-
let action = NavigationAction.Undefined;
|
|
1745
|
-
if (keyEvent === KeyEvents.keypress) {
|
|
1746
|
-
if (this.isEnter(keyCode)) {
|
|
1747
|
-
action = NavigationAction.EnterPress;
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
else if (keyEvent === KeyEvents.keyup) {
|
|
1751
|
-
if (this.isEnter(keyCode)) {
|
|
1752
|
-
action = NavigationAction.EnterUp;
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
else {
|
|
1756
|
-
if (args.altKey && keyCode === Keys.ArrowDown) {
|
|
1757
|
-
action = NavigationAction.Open;
|
|
1758
|
-
}
|
|
1759
|
-
else if (args.altKey && keyCode === Keys.ArrowUp) {
|
|
1760
|
-
action = NavigationAction.Close;
|
|
1761
|
-
}
|
|
1762
|
-
else if (this.isEnter(keyCode)) {
|
|
1763
|
-
action = NavigationAction.Enter;
|
|
1764
|
-
}
|
|
1765
|
-
else if (keyCode === Keys.Escape) {
|
|
1766
|
-
action = NavigationAction.Esc;
|
|
1767
|
-
}
|
|
1768
|
-
else if (keyCode === Keys.Tab) {
|
|
1769
|
-
action = NavigationAction.Tab;
|
|
1770
|
-
}
|
|
1771
|
-
else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
|
|
1772
|
-
const step = args.flipNavigation ? 1 : -1;
|
|
1773
|
-
const start = args.flipNavigation ? args.min : args.max;
|
|
1774
|
-
const end = args.flipNavigation ? args.max : args.min;
|
|
1775
|
-
index = this.next({
|
|
1776
|
-
current: args.current,
|
|
1777
|
-
start: start,
|
|
1778
|
-
end: end,
|
|
1779
|
-
step: step
|
|
1780
|
-
});
|
|
1781
|
-
action = NavigationAction.Navigate;
|
|
1782
|
-
}
|
|
1783
|
-
else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
|
|
1784
|
-
const step = args.flipNavigation ? -1 : 1;
|
|
1785
|
-
const start = args.flipNavigation ? args.max : args.min;
|
|
1786
|
-
const end = args.flipNavigation ? args.min : args.max;
|
|
1787
|
-
index = this.next({
|
|
1788
|
-
current: args.current,
|
|
1789
|
-
start: start,
|
|
1790
|
-
end: end,
|
|
1791
|
-
step: step
|
|
1792
|
-
});
|
|
1793
|
-
action = NavigationAction.Navigate;
|
|
1794
|
-
}
|
|
1795
|
-
else if (keyCode === Keys.Home) {
|
|
1796
|
-
index = args.min;
|
|
1797
|
-
action = NavigationAction.Navigate;
|
|
1798
|
-
}
|
|
1799
|
-
else if (keyCode === Keys.End) {
|
|
1800
|
-
index = args.max;
|
|
1801
|
-
action = NavigationAction.Navigate;
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
if (action !== NavigationAction.Undefined) {
|
|
1805
|
-
this[NavigationAction[action].toLowerCase()].emit(index);
|
|
1806
|
-
}
|
|
1807
|
-
return action;
|
|
1808
|
-
}
|
|
1809
|
-
isEnter(keyCode) {
|
|
1810
|
-
return keyCode === Keys.Enter || keyCode === Keys.Space;
|
|
1811
|
-
}
|
|
1812
|
-
next(args) {
|
|
1813
|
-
if (!isPresent(args.current)) {
|
|
1814
|
-
return args.start;
|
|
1815
|
-
}
|
|
1816
|
-
else {
|
|
1817
|
-
return args.current !== args.end ? args.current + args.step : args.end;
|
|
1818
|
-
}
|
|
1815
|
+
class LocalizedSplitButtonMessagesDirective extends Messages {
|
|
1816
|
+
constructor(service) {
|
|
1817
|
+
super();
|
|
1818
|
+
this.service = service;
|
|
1819
1819
|
}
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1820
|
+
}
|
|
1821
|
+
LocalizedSplitButtonMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1822
|
+
LocalizedSplitButtonMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]", providers: [
|
|
1823
|
+
{
|
|
1824
|
+
provide: Messages,
|
|
1825
|
+
useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
|
|
1826
|
+
}
|
|
1827
|
+
], usesInheritance: true, ngImport: i0 });
|
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, decorators: [{
|
|
1829
|
+
type: Directive,
|
|
1830
|
+
args: [{
|
|
1831
|
+
providers: [
|
|
1832
|
+
{
|
|
1833
|
+
provide: Messages,
|
|
1834
|
+
useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
|
|
1835
|
+
}
|
|
1836
|
+
],
|
|
1837
|
+
selector: '[kendoSplitButtonLocalizedMessages]'
|
|
1838
|
+
}]
|
|
1839
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
1826
1840
|
|
|
1827
|
-
|
|
1841
|
+
/* eslint-disable no-access-missing-member */
|
|
1842
|
+
const NAVIGATION_SETTINGS$2 = {
|
|
1828
1843
|
useLeftRightArrows: true
|
|
1829
1844
|
};
|
|
1830
|
-
const
|
|
1831
|
-
const NAVIGATION_SETTINGS_PROVIDER = {
|
|
1845
|
+
const NAVIGATION_SETTINGS_PROVIDER$2 = {
|
|
1832
1846
|
provide: NAVIGATION_CONFIG,
|
|
1833
|
-
useValue:
|
|
1847
|
+
useValue: NAVIGATION_SETTINGS$2
|
|
1834
1848
|
};
|
|
1835
1849
|
/**
|
|
1836
1850
|
* Represents the Kendo UI SplitButton component for Angular.
|
|
@@ -1873,7 +1887,7 @@ const NAVIGATION_SETTINGS_PROVIDER = {
|
|
|
1873
1887
|
* }
|
|
1874
1888
|
* ```
|
|
1875
1889
|
*/
|
|
1876
|
-
|
|
1890
|
+
class SplitButtonComponent extends ListButton {
|
|
1877
1891
|
constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
|
|
1878
1892
|
super(focusService, navigationService, wrapperRef, zone, localization, cdr);
|
|
1879
1893
|
this.popupService = popupService;
|
|
@@ -1995,11 +2009,11 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
1995
2009
|
/**
|
|
1996
2010
|
* Fires each time the SplitButton gets focused.
|
|
1997
2011
|
*/
|
|
1998
|
-
this.onFocus = new EventEmitter(); //
|
|
2012
|
+
this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
1999
2013
|
/**
|
|
2000
2014
|
* Fires each time the SplitButton gets blurred.
|
|
2001
2015
|
*/
|
|
2002
|
-
this.onBlur = new EventEmitter(); //
|
|
2016
|
+
this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
2003
2017
|
/**
|
|
2004
2018
|
* Fires each time the popup is about to open.
|
|
2005
2019
|
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
@@ -2385,173 +2399,103 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
2385
2399
|
this.renderer.addClass(elem, classes.toAdd);
|
|
2386
2400
|
}
|
|
2387
2401
|
}
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
]
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
]
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
]
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
]
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
]
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
]
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
]
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
], SplitButtonComponent.prototype, "close", void 0);
|
|
2486
|
-
__decorate([
|
|
2487
|
-
ContentChild(ButtonItemTemplateDirective, { static: false }),
|
|
2488
|
-
__metadata("design:type", ButtonItemTemplateDirective)
|
|
2489
|
-
], SplitButtonComponent.prototype, "itemTemplate", void 0);
|
|
2490
|
-
__decorate([
|
|
2491
|
-
ViewChild('button', { static: true }),
|
|
2492
|
-
__metadata("design:type", ElementRef)
|
|
2493
|
-
], SplitButtonComponent.prototype, "button", void 0);
|
|
2494
|
-
__decorate([
|
|
2495
|
-
ViewChild('arrowButton', { static: true, read: ElementRef }),
|
|
2496
|
-
__metadata("design:type", ElementRef)
|
|
2497
|
-
], SplitButtonComponent.prototype, "arrowButton", void 0);
|
|
2498
|
-
__decorate([
|
|
2499
|
-
ViewChild('popupTemplate', { static: true }),
|
|
2500
|
-
__metadata("design:type", TemplateRef)
|
|
2501
|
-
], SplitButtonComponent.prototype, "popupTemplate", void 0);
|
|
2502
|
-
__decorate([
|
|
2503
|
-
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
2504
|
-
__metadata("design:type", ViewContainerRef)
|
|
2505
|
-
], SplitButtonComponent.prototype, "containerRef", void 0);
|
|
2506
|
-
__decorate([
|
|
2507
|
-
HostBinding('class.k-focus'),
|
|
2508
|
-
__metadata("design:type", Boolean),
|
|
2509
|
-
__metadata("design:paramtypes", [Boolean])
|
|
2510
|
-
], SplitButtonComponent.prototype, "isFocused", null);
|
|
2511
|
-
__decorate([
|
|
2512
|
-
HostBinding('class.k-split-button'),
|
|
2513
|
-
HostBinding('class.k-button-group'),
|
|
2514
|
-
__metadata("design:type", Boolean),
|
|
2515
|
-
__metadata("design:paramtypes", [])
|
|
2516
|
-
], SplitButtonComponent.prototype, "widgetClasses", null);
|
|
2517
|
-
__decorate([
|
|
2518
|
-
HostBinding('attr.dir'),
|
|
2519
|
-
__metadata("design:type", String),
|
|
2520
|
-
__metadata("design:paramtypes", [])
|
|
2521
|
-
], SplitButtonComponent.prototype, "dir", null);
|
|
2522
|
-
__decorate([
|
|
2523
|
-
HostListener('keydown', ['$event']),
|
|
2524
|
-
__metadata("design:type", Function),
|
|
2525
|
-
__metadata("design:paramtypes", [Object]),
|
|
2526
|
-
__metadata("design:returntype", void 0)
|
|
2527
|
-
], SplitButtonComponent.prototype, "keydown", null);
|
|
2528
|
-
__decorate([
|
|
2529
|
-
HostListener('keypress', ['$event']),
|
|
2530
|
-
__metadata("design:type", Function),
|
|
2531
|
-
__metadata("design:paramtypes", [Object]),
|
|
2532
|
-
__metadata("design:returntype", void 0)
|
|
2533
|
-
], SplitButtonComponent.prototype, "keypress", null);
|
|
2534
|
-
__decorate([
|
|
2535
|
-
HostListener('keyup', ['$event']),
|
|
2536
|
-
__metadata("design:type", Function),
|
|
2537
|
-
__metadata("design:paramtypes", [Object]),
|
|
2538
|
-
__metadata("design:returntype", void 0)
|
|
2539
|
-
], SplitButtonComponent.prototype, "keyup", null);
|
|
2540
|
-
SplitButtonComponent = __decorate([
|
|
2541
|
-
Component({
|
|
2542
|
-
exportAs: 'kendoSplitButton',
|
|
2543
|
-
providers: [
|
|
2544
|
-
FocusService,
|
|
2545
|
-
NavigationService,
|
|
2546
|
-
NAVIGATION_SETTINGS_PROVIDER,
|
|
2547
|
-
LocalizationService,
|
|
2548
|
-
{
|
|
2549
|
-
provide: L10N_PREFIX,
|
|
2550
|
-
useValue: 'kendo.splitbutton'
|
|
2551
|
-
}
|
|
2552
|
-
],
|
|
2553
|
-
selector: 'kendo-splitbutton',
|
|
2554
|
-
template: `
|
|
2402
|
+
}
|
|
2403
|
+
SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2404
|
+
SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keypress": "keypress($event)", "keyup": "keyup($event)" }, properties: { "class.k-focus": "this.isFocused", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
|
|
2405
|
+
FocusService,
|
|
2406
|
+
NavigationService,
|
|
2407
|
+
NAVIGATION_SETTINGS_PROVIDER$2,
|
|
2408
|
+
LocalizationService,
|
|
2409
|
+
{
|
|
2410
|
+
provide: L10N_PREFIX,
|
|
2411
|
+
useValue: 'kendo.splitbutton'
|
|
2412
|
+
}
|
|
2413
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "arrowButton", first: true, predicate: ["arrowButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
2414
|
+
<ng-container kendoSplitButtonLocalizedMessages
|
|
2415
|
+
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
2416
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
2417
|
+
</ng-container>
|
|
2418
|
+
<button
|
|
2419
|
+
kendoButton
|
|
2420
|
+
#button
|
|
2421
|
+
[type]="type"
|
|
2422
|
+
[tabindex]="componentTabIndex"
|
|
2423
|
+
[disabled]="disabled"
|
|
2424
|
+
[size]="size"
|
|
2425
|
+
[rounded]="rounded"
|
|
2426
|
+
[fillMode]="fillMode"
|
|
2427
|
+
[themeColor]="themeColor"
|
|
2428
|
+
[icon]="icon"
|
|
2429
|
+
[class.k-active]="active"
|
|
2430
|
+
[class.k-icon-button]="!text && icon"
|
|
2431
|
+
[iconClass]="iconClass"
|
|
2432
|
+
[imageUrl]="imageUrl"
|
|
2433
|
+
[ngClass]="buttonClass"
|
|
2434
|
+
(focus)="onButtonFocus()"
|
|
2435
|
+
(click)="onButtonClick()"
|
|
2436
|
+
(blur)="onButtonBlur()"
|
|
2437
|
+
(mousedown)="toggleButtonActiveState(true)"
|
|
2438
|
+
(mouseup)="toggleButtonActiveState(false)"
|
|
2439
|
+
[attr.aria-disabled]="disabled"
|
|
2440
|
+
[attr.aria-expanded]="openState"
|
|
2441
|
+
[attr.aria-haspopup]="true"
|
|
2442
|
+
[attr.aria-owns]="listId"
|
|
2443
|
+
[attr.aria-label]="ariaLabel"
|
|
2444
|
+
>
|
|
2445
|
+
<span *ngIf="text" class="k-button-text">
|
|
2446
|
+
{{ text }}
|
|
2447
|
+
</span><ng-content></ng-content>
|
|
2448
|
+
</button>
|
|
2449
|
+
<button
|
|
2450
|
+
kendoButton
|
|
2451
|
+
#arrowButton
|
|
2452
|
+
type="button"
|
|
2453
|
+
[class.k-active]="activeArrow"
|
|
2454
|
+
[disabled]="disabled"
|
|
2455
|
+
[icon]="arrowButtonIcon"
|
|
2456
|
+
[size]="size"
|
|
2457
|
+
[rounded]="rounded"
|
|
2458
|
+
[fillMode]="fillMode"
|
|
2459
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2460
|
+
[tabindex]="-1"
|
|
2461
|
+
[ngClass]="arrowButtonClass"
|
|
2462
|
+
(click)="onArrowButtonClick()"
|
|
2463
|
+
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
2464
|
+
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
2465
|
+
></button>
|
|
2466
|
+
<ng-template #popupTemplate>
|
|
2467
|
+
<kendo-button-list
|
|
2468
|
+
[id]="listId"
|
|
2469
|
+
[data]="data"
|
|
2470
|
+
[textField]="textField"
|
|
2471
|
+
[itemTemplate]="itemTemplate"
|
|
2472
|
+
(onItemClick)="onItemClick($event)"
|
|
2473
|
+
(keydown)="keyDownHandler($event)"
|
|
2474
|
+
(keypress)="keyPressHandler($event)"
|
|
2475
|
+
(keyup)="keyUpHandler($event)"
|
|
2476
|
+
[attr.dir]="dir"
|
|
2477
|
+
[size]="size"
|
|
2478
|
+
>
|
|
2479
|
+
</kendo-button-list>
|
|
2480
|
+
</ng-template>
|
|
2481
|
+
<ng-container #container></ng-container>
|
|
2482
|
+
`, isInline: true, components: [{ type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
2484
|
+
type: Component,
|
|
2485
|
+
args: [{
|
|
2486
|
+
exportAs: 'kendoSplitButton',
|
|
2487
|
+
providers: [
|
|
2488
|
+
FocusService,
|
|
2489
|
+
NavigationService,
|
|
2490
|
+
NAVIGATION_SETTINGS_PROVIDER$2,
|
|
2491
|
+
LocalizationService,
|
|
2492
|
+
{
|
|
2493
|
+
provide: L10N_PREFIX,
|
|
2494
|
+
useValue: 'kendo.splitbutton'
|
|
2495
|
+
}
|
|
2496
|
+
],
|
|
2497
|
+
selector: 'kendo-splitbutton',
|
|
2498
|
+
template: `
|
|
2555
2499
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
2556
2500
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
2557
2501
|
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
@@ -2621,57 +2565,98 @@ SplitButtonComponent = __decorate([
|
|
|
2621
2565
|
</ng-template>
|
|
2622
2566
|
<ng-container #container></ng-container>
|
|
2623
2567
|
`
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
{
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2568
|
+
}]
|
|
2569
|
+
}], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { text: [{
|
|
2570
|
+
type: Input
|
|
2571
|
+
}], icon: [{
|
|
2572
|
+
type: Input
|
|
2573
|
+
}], iconClass: [{
|
|
2574
|
+
type: Input
|
|
2575
|
+
}], type: [{
|
|
2576
|
+
type: Input
|
|
2577
|
+
}], imageUrl: [{
|
|
2578
|
+
type: Input
|
|
2579
|
+
}], size: [{
|
|
2580
|
+
type: Input
|
|
2581
|
+
}], rounded: [{
|
|
2582
|
+
type: Input
|
|
2583
|
+
}], fillMode: [{
|
|
2584
|
+
type: Input
|
|
2585
|
+
}], themeColor: [{
|
|
2586
|
+
type: Input
|
|
2587
|
+
}], disabled: [{
|
|
2588
|
+
type: Input
|
|
2589
|
+
}], popupSettings: [{
|
|
2590
|
+
type: Input
|
|
2591
|
+
}], tabIndex: [{
|
|
2592
|
+
type: Input
|
|
2593
|
+
}], textField: [{
|
|
2594
|
+
type: Input
|
|
2595
|
+
}], data: [{
|
|
2596
|
+
type: Input
|
|
2597
|
+
}], buttonClass: [{
|
|
2598
|
+
type: Input
|
|
2599
|
+
}], arrowButtonClass: [{
|
|
2600
|
+
type: Input
|
|
2601
|
+
}], arrowButtonIcon: [{
|
|
2602
|
+
type: Input
|
|
2603
|
+
}], buttonClick: [{
|
|
2604
|
+
type: Output
|
|
2605
|
+
}], itemClick: [{
|
|
2606
|
+
type: Output
|
|
2607
|
+
}], onFocus: [{
|
|
2608
|
+
type: Output,
|
|
2609
|
+
args: ['focus']
|
|
2610
|
+
}], onBlur: [{
|
|
2611
|
+
type: Output,
|
|
2612
|
+
args: ['blur']
|
|
2613
|
+
}], open: [{
|
|
2614
|
+
type: Output
|
|
2615
|
+
}], close: [{
|
|
2616
|
+
type: Output
|
|
2617
|
+
}], itemTemplate: [{
|
|
2618
|
+
type: ContentChild,
|
|
2619
|
+
args: [ButtonItemTemplateDirective, { static: false }]
|
|
2620
|
+
}], button: [{
|
|
2621
|
+
type: ViewChild,
|
|
2622
|
+
args: ['button', { static: true }]
|
|
2623
|
+
}], arrowButton: [{
|
|
2624
|
+
type: ViewChild,
|
|
2625
|
+
args: ['arrowButton', { static: true, read: ElementRef }]
|
|
2626
|
+
}], popupTemplate: [{
|
|
2627
|
+
type: ViewChild,
|
|
2628
|
+
args: ['popupTemplate', { static: true }]
|
|
2629
|
+
}], containerRef: [{
|
|
2630
|
+
type: ViewChild,
|
|
2631
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
2632
|
+
}], isFocused: [{
|
|
2633
|
+
type: HostBinding,
|
|
2634
|
+
args: ['class.k-focus']
|
|
2635
|
+
}], widgetClasses: [{
|
|
2636
|
+
type: HostBinding,
|
|
2637
|
+
args: ['class.k-split-button']
|
|
2638
|
+
}, {
|
|
2639
|
+
type: HostBinding,
|
|
2640
|
+
args: ['class.k-button-group']
|
|
2641
|
+
}], dir: [{
|
|
2642
|
+
type: HostBinding,
|
|
2643
|
+
args: ['attr.dir']
|
|
2644
|
+
}], keydown: [{
|
|
2645
|
+
type: HostListener,
|
|
2646
|
+
args: ['keydown', ['$event']]
|
|
2647
|
+
}], keypress: [{
|
|
2648
|
+
type: HostListener,
|
|
2649
|
+
args: ['keypress', ['$event']]
|
|
2650
|
+
}], keyup: [{
|
|
2651
|
+
type: HostListener,
|
|
2652
|
+
args: ['keyup', ['$event']]
|
|
2653
|
+
}] } });
|
|
2668
2654
|
|
|
2669
|
-
var SplitButtonCustomMessagesComponent_1;
|
|
2670
2655
|
/**
|
|
2671
2656
|
* Custom component messages override default component messages
|
|
2672
2657
|
* ([see example]({% slug rtl_buttons %}).
|
|
2673
2658
|
*/
|
|
2674
|
-
|
|
2659
|
+
class SplitButtonCustomMessagesComponent extends Messages {
|
|
2675
2660
|
constructor(service) {
|
|
2676
2661
|
super();
|
|
2677
2662
|
this.service = service;
|
|
@@ -2679,20 +2664,23 @@ let SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 =
|
|
|
2679
2664
|
get override() {
|
|
2680
2665
|
return true;
|
|
2681
2666
|
}
|
|
2682
|
-
}
|
|
2683
|
-
SplitButtonCustomMessagesComponent =
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2667
|
+
}
|
|
2668
|
+
SplitButtonCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2669
|
+
SplitButtonCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitButtonCustomMessagesComponent, selector: "kendo-splitbutton-messages", providers: [{
|
|
2670
|
+
provide: Messages,
|
|
2671
|
+
useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
|
|
2672
|
+
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, decorators: [{
|
|
2674
|
+
type: Component,
|
|
2675
|
+
args: [{
|
|
2676
|
+
providers: [{
|
|
2677
|
+
provide: Messages,
|
|
2678
|
+
useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
|
|
2679
|
+
}],
|
|
2680
|
+
selector: 'kendo-splitbutton-messages',
|
|
2681
|
+
template: ``
|
|
2682
|
+
}]
|
|
2683
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
2696
2684
|
|
|
2697
2685
|
/**
|
|
2698
2686
|
* @hidden
|
|
@@ -2702,23 +2690,27 @@ SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = __de
|
|
|
2702
2690
|
* The package exports:
|
|
2703
2691
|
* - `SplitButtonComponent`—The SplitButtonComponent component class.
|
|
2704
2692
|
*/
|
|
2705
|
-
|
|
2706
|
-
}
|
|
2707
|
-
SplitButtonModule =
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
],
|
|
2693
|
+
class SplitButtonModule {
|
|
2694
|
+
}
|
|
2695
|
+
SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2696
|
+
SplitButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent], imports: [CommonModule, PopupModule, ButtonModule, ListModule], exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent] });
|
|
2697
|
+
SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
|
|
2698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
2699
|
+
type: NgModule,
|
|
2700
|
+
args: [{
|
|
2701
|
+
declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
2702
|
+
exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
2703
|
+
imports: [CommonModule, PopupModule, ButtonModule, ListModule]
|
|
2704
|
+
}]
|
|
2705
|
+
}] });
|
|
2714
2706
|
|
|
2707
|
+
/* eslint-disable no-access-missing-member */
|
|
2715
2708
|
const NAVIGATION_SETTINGS$1 = {
|
|
2716
2709
|
useLeftRightArrows: true
|
|
2717
2710
|
};
|
|
2718
|
-
const ɵ0$1 = NAVIGATION_SETTINGS$1;
|
|
2719
2711
|
const NAVIGATION_SETTINGS_PROVIDER$1 = {
|
|
2720
2712
|
provide: NAVIGATION_CONFIG,
|
|
2721
|
-
useValue:
|
|
2713
|
+
useValue: NAVIGATION_SETTINGS$1
|
|
2722
2714
|
};
|
|
2723
2715
|
/**
|
|
2724
2716
|
* Represents the Kendo UI DropDownButton component for Angular.
|
|
@@ -2748,7 +2740,7 @@ const NAVIGATION_SETTINGS_PROVIDER$1 = {
|
|
|
2748
2740
|
* }
|
|
2749
2741
|
* ```
|
|
2750
2742
|
*/
|
|
2751
|
-
|
|
2743
|
+
class DropDownButtonComponent extends ListButton {
|
|
2752
2744
|
constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
|
|
2753
2745
|
super(focusService, navigationService, wrapperRef, zone, localization, cdr);
|
|
2754
2746
|
this.popupService = popupService;
|
|
@@ -2839,11 +2831,11 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
|
|
|
2839
2831
|
/**
|
|
2840
2832
|
* Fires each time the DropDownButton gets focused.
|
|
2841
2833
|
*/
|
|
2842
|
-
this.onFocus = new EventEmitter(); //
|
|
2834
|
+
this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
2843
2835
|
/**
|
|
2844
2836
|
* Fires each time the DropDownButton gets blurred.
|
|
2845
2837
|
*/
|
|
2846
|
-
this.onBlur = new EventEmitter(); //
|
|
2838
|
+
this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
2847
2839
|
this.listId = guid();
|
|
2848
2840
|
this._fillMode = 'solid';
|
|
2849
2841
|
this._itemClick = this.itemClick;
|
|
@@ -3163,167 +3155,77 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
|
|
|
3163
3155
|
this.popupRef = null;
|
|
3164
3156
|
}
|
|
3165
3157
|
}
|
|
3166
|
-
}
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
]
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
]
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
]
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
]
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
]
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
]
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
],
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
__metadata("design:type", EventEmitter)
|
|
3238
|
-
], DropDownButtonComponent.prototype, "close", void 0);
|
|
3239
|
-
__decorate([
|
|
3240
|
-
Output('focus'),
|
|
3241
|
-
__metadata("design:type", EventEmitter)
|
|
3242
|
-
], DropDownButtonComponent.prototype, "onFocus", void 0);
|
|
3243
|
-
__decorate([
|
|
3244
|
-
Output('blur'),
|
|
3245
|
-
__metadata("design:type", EventEmitter)
|
|
3246
|
-
], DropDownButtonComponent.prototype, "onBlur", void 0);
|
|
3247
|
-
__decorate([
|
|
3248
|
-
HostBinding('class.k-focus'),
|
|
3249
|
-
__metadata("design:type", Boolean),
|
|
3250
|
-
__metadata("design:paramtypes", [])
|
|
3251
|
-
], DropDownButtonComponent.prototype, "focused", null);
|
|
3252
|
-
__decorate([
|
|
3253
|
-
HostBinding('class.k-dropdown-button'),
|
|
3254
|
-
__metadata("design:type", Boolean),
|
|
3255
|
-
__metadata("design:paramtypes", [])
|
|
3256
|
-
], DropDownButtonComponent.prototype, "widgetClasses", null);
|
|
3257
|
-
__decorate([
|
|
3258
|
-
HostBinding('attr.dir'),
|
|
3259
|
-
__metadata("design:type", String),
|
|
3260
|
-
__metadata("design:paramtypes", [])
|
|
3261
|
-
], DropDownButtonComponent.prototype, "dir", null);
|
|
3262
|
-
__decorate([
|
|
3263
|
-
ContentChild(ButtonItemTemplateDirective, { static: false }),
|
|
3264
|
-
__metadata("design:type", ButtonItemTemplateDirective)
|
|
3265
|
-
], DropDownButtonComponent.prototype, "itemTemplate", void 0);
|
|
3266
|
-
__decorate([
|
|
3267
|
-
ViewChild('button', { static: true }),
|
|
3268
|
-
__metadata("design:type", ElementRef)
|
|
3269
|
-
], DropDownButtonComponent.prototype, "button", void 0);
|
|
3270
|
-
__decorate([
|
|
3271
|
-
ViewChild('buttonList', { static: false }),
|
|
3272
|
-
__metadata("design:type", ListComponent)
|
|
3273
|
-
], DropDownButtonComponent.prototype, "buttonList", void 0);
|
|
3274
|
-
__decorate([
|
|
3275
|
-
ViewChild('popupTemplate', { static: true }),
|
|
3276
|
-
__metadata("design:type", TemplateRef)
|
|
3277
|
-
], DropDownButtonComponent.prototype, "popupTemplate", void 0);
|
|
3278
|
-
__decorate([
|
|
3279
|
-
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
3280
|
-
__metadata("design:type", ViewContainerRef)
|
|
3281
|
-
], DropDownButtonComponent.prototype, "container", void 0);
|
|
3282
|
-
__decorate([
|
|
3283
|
-
HostListener('keydown', ['$event']),
|
|
3284
|
-
__metadata("design:type", Function),
|
|
3285
|
-
__metadata("design:paramtypes", [Object]),
|
|
3286
|
-
__metadata("design:returntype", void 0)
|
|
3287
|
-
], DropDownButtonComponent.prototype, "keydown", null);
|
|
3288
|
-
__decorate([
|
|
3289
|
-
HostListener('keypress', ['$event']),
|
|
3290
|
-
__metadata("design:type", Function),
|
|
3291
|
-
__metadata("design:paramtypes", [Object]),
|
|
3292
|
-
__metadata("design:returntype", void 0)
|
|
3293
|
-
], DropDownButtonComponent.prototype, "keypress", null);
|
|
3294
|
-
__decorate([
|
|
3295
|
-
HostListener('keyup', ['$event']),
|
|
3296
|
-
__metadata("design:type", Function),
|
|
3297
|
-
__metadata("design:paramtypes", [Object]),
|
|
3298
|
-
__metadata("design:returntype", void 0)
|
|
3299
|
-
], DropDownButtonComponent.prototype, "keyup", null);
|
|
3300
|
-
__decorate([
|
|
3301
|
-
HostListener('mousedown', ['$event']),
|
|
3302
|
-
__metadata("design:type", Function),
|
|
3303
|
-
__metadata("design:paramtypes", [Object]),
|
|
3304
|
-
__metadata("design:returntype", void 0)
|
|
3305
|
-
], DropDownButtonComponent.prototype, "mousedown", null);
|
|
3306
|
-
__decorate([
|
|
3307
|
-
HostListener('mouseup', ['$event']),
|
|
3308
|
-
__metadata("design:type", Function),
|
|
3309
|
-
__metadata("design:paramtypes", [Object]),
|
|
3310
|
-
__metadata("design:returntype", void 0)
|
|
3311
|
-
], DropDownButtonComponent.prototype, "mouseup", null);
|
|
3312
|
-
DropDownButtonComponent = __decorate([
|
|
3313
|
-
Component({
|
|
3314
|
-
exportAs: 'kendoDropDownButton',
|
|
3315
|
-
providers: [
|
|
3316
|
-
FocusService,
|
|
3317
|
-
NavigationService,
|
|
3318
|
-
NAVIGATION_SETTINGS_PROVIDER$1,
|
|
3319
|
-
LocalizationService,
|
|
3320
|
-
{
|
|
3321
|
-
provide: L10N_PREFIX,
|
|
3322
|
-
useValue: 'kendo.dropdownbutton'
|
|
3323
|
-
}
|
|
3324
|
-
],
|
|
3325
|
-
selector: 'kendo-dropdownbutton',
|
|
3326
|
-
template: `
|
|
3158
|
+
}
|
|
3159
|
+
DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3160
|
+
DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: { icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", textField: "textField", disabled: "disabled", data: "data", size: "size", shape: "shape", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", tabIndex: "tabIndex" }, outputs: { itemClick: "itemClick", open: "open", close: "close", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keypress": "keypress($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "class.k-dropdown-button": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
|
|
3161
|
+
FocusService,
|
|
3162
|
+
NavigationService,
|
|
3163
|
+
NAVIGATION_SETTINGS_PROVIDER$1,
|
|
3164
|
+
LocalizationService,
|
|
3165
|
+
{
|
|
3166
|
+
provide: L10N_PREFIX,
|
|
3167
|
+
useValue: 'kendo.dropdownbutton'
|
|
3168
|
+
}
|
|
3169
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], exportAs: ["kendoDropDownButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
3170
|
+
<button kendoButton #button
|
|
3171
|
+
role="menu"
|
|
3172
|
+
type="button"
|
|
3173
|
+
[tabindex]="componentTabIndex"
|
|
3174
|
+
[class.k-active]="active"
|
|
3175
|
+
[disabled]="disabled"
|
|
3176
|
+
[icon]="icon"
|
|
3177
|
+
[iconClass]="iconClass"
|
|
3178
|
+
[imageUrl]="imageUrl"
|
|
3179
|
+
[ngClass]="buttonClass"
|
|
3180
|
+
[size]="size"
|
|
3181
|
+
[shape]="shape"
|
|
3182
|
+
[rounded]="rounded"
|
|
3183
|
+
[fillMode]="fillMode"
|
|
3184
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
3185
|
+
(click)="openPopup()"
|
|
3186
|
+
(focus)="handleFocus()"
|
|
3187
|
+
(blur)="onButtonBlur()"
|
|
3188
|
+
[attr.aria-disabled]="disabled"
|
|
3189
|
+
[attr.aria-expanded]="openState"
|
|
3190
|
+
[attr.aria-haspopup]="true"
|
|
3191
|
+
[attr.aria-owns]="listId"
|
|
3192
|
+
>
|
|
3193
|
+
<ng-content></ng-content>
|
|
3194
|
+
</button>
|
|
3195
|
+
<ng-template #popupTemplate>
|
|
3196
|
+
<kendo-button-list
|
|
3197
|
+
#buttonList
|
|
3198
|
+
[id]="listId"
|
|
3199
|
+
[data]="data"
|
|
3200
|
+
[textField]="textField"
|
|
3201
|
+
[itemTemplate]="itemTemplate"
|
|
3202
|
+
(onItemClick)="onItemClick($event)"
|
|
3203
|
+
(keydown)="keyDownHandler($event)"
|
|
3204
|
+
(keypress)="keyPressHandler($event)"
|
|
3205
|
+
(keyup)="keyUpHandler($event)"
|
|
3206
|
+
[attr.dir]="dir"
|
|
3207
|
+
[size]="size"
|
|
3208
|
+
>
|
|
3209
|
+
</kendo-button-list>
|
|
3210
|
+
</ng-template>
|
|
3211
|
+
<ng-container #container></ng-container>
|
|
3212
|
+
`, isInline: true, components: [{ type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
3213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, decorators: [{
|
|
3214
|
+
type: Component,
|
|
3215
|
+
args: [{
|
|
3216
|
+
exportAs: 'kendoDropDownButton',
|
|
3217
|
+
providers: [
|
|
3218
|
+
FocusService,
|
|
3219
|
+
NavigationService,
|
|
3220
|
+
NAVIGATION_SETTINGS_PROVIDER$1,
|
|
3221
|
+
LocalizationService,
|
|
3222
|
+
{
|
|
3223
|
+
provide: L10N_PREFIX,
|
|
3224
|
+
useValue: 'kendo.dropdownbutton'
|
|
3225
|
+
}
|
|
3226
|
+
],
|
|
3227
|
+
selector: 'kendo-dropdownbutton',
|
|
3228
|
+
template: `
|
|
3327
3229
|
<button kendoButton #button
|
|
3328
3230
|
role="menu"
|
|
3329
3231
|
type="button"
|
|
@@ -3367,16 +3269,87 @@ DropDownButtonComponent = __decorate([
|
|
|
3367
3269
|
</ng-template>
|
|
3368
3270
|
<ng-container #container></ng-container>
|
|
3369
3271
|
`
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
],
|
|
3272
|
+
}]
|
|
3273
|
+
}], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
|
|
3274
|
+
type: Input
|
|
3275
|
+
}], iconClass: [{
|
|
3276
|
+
type: Input
|
|
3277
|
+
}], imageUrl: [{
|
|
3278
|
+
type: Input
|
|
3279
|
+
}], popupSettings: [{
|
|
3280
|
+
type: Input
|
|
3281
|
+
}], textField: [{
|
|
3282
|
+
type: Input
|
|
3283
|
+
}], disabled: [{
|
|
3284
|
+
type: Input
|
|
3285
|
+
}], data: [{
|
|
3286
|
+
type: Input
|
|
3287
|
+
}], size: [{
|
|
3288
|
+
type: Input
|
|
3289
|
+
}], shape: [{
|
|
3290
|
+
type: Input
|
|
3291
|
+
}], rounded: [{
|
|
3292
|
+
type: Input
|
|
3293
|
+
}], fillMode: [{
|
|
3294
|
+
type: Input
|
|
3295
|
+
}], themeColor: [{
|
|
3296
|
+
type: Input
|
|
3297
|
+
}], buttonClass: [{
|
|
3298
|
+
type: Input
|
|
3299
|
+
}], tabIndex: [{
|
|
3300
|
+
type: Input
|
|
3301
|
+
}], itemClick: [{
|
|
3302
|
+
type: Output
|
|
3303
|
+
}], open: [{
|
|
3304
|
+
type: Output
|
|
3305
|
+
}], close: [{
|
|
3306
|
+
type: Output
|
|
3307
|
+
}], onFocus: [{
|
|
3308
|
+
type: Output,
|
|
3309
|
+
args: ['focus']
|
|
3310
|
+
}], onBlur: [{
|
|
3311
|
+
type: Output,
|
|
3312
|
+
args: ['blur']
|
|
3313
|
+
}], focused: [{
|
|
3314
|
+
type: HostBinding,
|
|
3315
|
+
args: ['class.k-focus']
|
|
3316
|
+
}], widgetClasses: [{
|
|
3317
|
+
type: HostBinding,
|
|
3318
|
+
args: ['class.k-dropdown-button']
|
|
3319
|
+
}], dir: [{
|
|
3320
|
+
type: HostBinding,
|
|
3321
|
+
args: ['attr.dir']
|
|
3322
|
+
}], itemTemplate: [{
|
|
3323
|
+
type: ContentChild,
|
|
3324
|
+
args: [ButtonItemTemplateDirective, { static: false }]
|
|
3325
|
+
}], button: [{
|
|
3326
|
+
type: ViewChild,
|
|
3327
|
+
args: ['button', { static: true }]
|
|
3328
|
+
}], buttonList: [{
|
|
3329
|
+
type: ViewChild,
|
|
3330
|
+
args: ['buttonList', { static: false }]
|
|
3331
|
+
}], popupTemplate: [{
|
|
3332
|
+
type: ViewChild,
|
|
3333
|
+
args: ['popupTemplate', { static: true }]
|
|
3334
|
+
}], container: [{
|
|
3335
|
+
type: ViewChild,
|
|
3336
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
3337
|
+
}], keydown: [{
|
|
3338
|
+
type: HostListener,
|
|
3339
|
+
args: ['keydown', ['$event']]
|
|
3340
|
+
}], keypress: [{
|
|
3341
|
+
type: HostListener,
|
|
3342
|
+
args: ['keypress', ['$event']]
|
|
3343
|
+
}], keyup: [{
|
|
3344
|
+
type: HostListener,
|
|
3345
|
+
args: ['keyup', ['$event']]
|
|
3346
|
+
}], mousedown: [{
|
|
3347
|
+
type: HostListener,
|
|
3348
|
+
args: ['mousedown', ['$event']]
|
|
3349
|
+
}], mouseup: [{
|
|
3350
|
+
type: HostListener,
|
|
3351
|
+
args: ['mouseup', ['$event']]
|
|
3352
|
+
}] } });
|
|
3380
3353
|
|
|
3381
3354
|
/**
|
|
3382
3355
|
* @hidden
|
|
@@ -3386,20 +3359,24 @@ DropDownButtonComponent = __decorate([
|
|
|
3386
3359
|
* The package exports:
|
|
3387
3360
|
* - `DropDownButtonComponent`—The DropDownButtonComponent component class.
|
|
3388
3361
|
*/
|
|
3389
|
-
|
|
3390
|
-
}
|
|
3391
|
-
DropDownButtonModule =
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
],
|
|
3362
|
+
class DropDownButtonModule {
|
|
3363
|
+
}
|
|
3364
|
+
DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3365
|
+
DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, declarations: [DropDownButtonComponent], imports: [CommonModule, PopupModule, ListModule, ButtonModule], exports: [DropDownButtonComponent, ListModule] });
|
|
3366
|
+
DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
|
|
3367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, decorators: [{
|
|
3368
|
+
type: NgModule,
|
|
3369
|
+
args: [{
|
|
3370
|
+
declarations: [DropDownButtonComponent],
|
|
3371
|
+
exports: [DropDownButtonComponent, ListModule],
|
|
3372
|
+
imports: [CommonModule, PopupModule, ListModule, ButtonModule]
|
|
3373
|
+
}]
|
|
3374
|
+
}] });
|
|
3398
3375
|
|
|
3399
3376
|
/**
|
|
3400
3377
|
* Displays a Chip that represents an input, attribute or an action.
|
|
3401
3378
|
*/
|
|
3402
|
-
|
|
3379
|
+
class ChipComponent {
|
|
3403
3380
|
constructor(element, renderer, ngZone, localizationService) {
|
|
3404
3381
|
this.element = element;
|
|
3405
3382
|
this.renderer = renderer;
|
|
@@ -3658,109 +3635,61 @@ let ChipComponent = class ChipComponent {
|
|
|
3658
3635
|
}
|
|
3659
3636
|
}
|
|
3660
3637
|
}
|
|
3661
|
-
}
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
],
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
]
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
__metadata("design:type", EventEmitter)
|
|
3717
|
-
], ChipComponent.prototype, "remove", void 0);
|
|
3718
|
-
__decorate([
|
|
3719
|
-
Output(),
|
|
3720
|
-
__metadata("design:type", EventEmitter)
|
|
3721
|
-
], ChipComponent.prototype, "contentClick", void 0);
|
|
3722
|
-
__decorate([
|
|
3723
|
-
HostBinding('attr.tabindex'),
|
|
3724
|
-
__metadata("design:type", Number)
|
|
3725
|
-
], ChipComponent.prototype, "tabIndex", void 0);
|
|
3726
|
-
__decorate([
|
|
3727
|
-
HostBinding('attr.aria-checked'),
|
|
3728
|
-
__metadata("design:type", Boolean),
|
|
3729
|
-
__metadata("design:paramtypes", [])
|
|
3730
|
-
], ChipComponent.prototype, "ariaChecked", null);
|
|
3731
|
-
__decorate([
|
|
3732
|
-
HostBinding('class.k-chip'),
|
|
3733
|
-
__metadata("design:type", Boolean)
|
|
3734
|
-
], ChipComponent.prototype, "hostClass", void 0);
|
|
3735
|
-
__decorate([
|
|
3736
|
-
HostBinding('class.k-chip-has-icon'),
|
|
3737
|
-
__metadata("design:type", Boolean),
|
|
3738
|
-
__metadata("design:paramtypes", [])
|
|
3739
|
-
], ChipComponent.prototype, "hasIconClass", null);
|
|
3740
|
-
__decorate([
|
|
3741
|
-
HostBinding('attr.aria-disabled'),
|
|
3742
|
-
HostBinding('class.k-disabled'),
|
|
3743
|
-
__metadata("design:type", Boolean),
|
|
3744
|
-
__metadata("design:paramtypes", [])
|
|
3745
|
-
], ChipComponent.prototype, "disabledClass", null);
|
|
3746
|
-
__decorate([
|
|
3747
|
-
HostBinding('class.k-selected'),
|
|
3748
|
-
__metadata("design:type", Boolean),
|
|
3749
|
-
__metadata("design:paramtypes", [])
|
|
3750
|
-
], ChipComponent.prototype, "selectedClass", null);
|
|
3751
|
-
__decorate([
|
|
3752
|
-
HostBinding('class.k-focus'),
|
|
3753
|
-
__metadata("design:type", Boolean),
|
|
3754
|
-
__metadata("design:paramtypes", [])
|
|
3755
|
-
], ChipComponent.prototype, "focusedClass", null);
|
|
3756
|
-
__decorate([
|
|
3757
|
-
HostBinding('attr.dir'),
|
|
3758
|
-
__metadata("design:type", String)
|
|
3759
|
-
], ChipComponent.prototype, "direction", void 0);
|
|
3760
|
-
ChipComponent = __decorate([
|
|
3761
|
-
Component({
|
|
3762
|
-
selector: 'kendo-chip',
|
|
3763
|
-
template: `
|
|
3638
|
+
}
|
|
3639
|
+
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3640
|
+
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "attr.aria-checked": "this.ariaChecked", "class.k-chip": "this.hostClass", "class.k-chip-has-icon": "this.hasIconClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
|
|
3641
|
+
LocalizationService,
|
|
3642
|
+
{
|
|
3643
|
+
provide: L10N_PREFIX,
|
|
3644
|
+
useValue: 'kendo.chip'
|
|
3645
|
+
}
|
|
3646
|
+
], ngImport: i0, template: `
|
|
3647
|
+
<span
|
|
3648
|
+
*ngIf="icon"
|
|
3649
|
+
class="k-chip-icon k-icon"
|
|
3650
|
+
[ngClass]="kendoIconClass"
|
|
3651
|
+
>
|
|
3652
|
+
</span>
|
|
3653
|
+
|
|
3654
|
+
<span
|
|
3655
|
+
*ngIf="iconClass"
|
|
3656
|
+
class="k-chip-icon"
|
|
3657
|
+
[ngClass]="customIconClass"
|
|
3658
|
+
>
|
|
3659
|
+
</span>
|
|
3660
|
+
|
|
3661
|
+
<span
|
|
3662
|
+
*ngIf="avatarClass"
|
|
3663
|
+
class="k-chip-avatar k-avatar k-rounded-full"
|
|
3664
|
+
>
|
|
3665
|
+
<span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
|
|
3666
|
+
</span>
|
|
3667
|
+
|
|
3668
|
+
<span class="k-chip-content">
|
|
3669
|
+
<span class="k-chip-label" *ngIf="label">
|
|
3670
|
+
{{ label }}
|
|
3671
|
+
</span>
|
|
3672
|
+
<ng-content *ngIf="!label"></ng-content>
|
|
3673
|
+
</span>
|
|
3674
|
+
|
|
3675
|
+
<span class="k-chip-actions">
|
|
3676
|
+
<span class="k-chip-action k-chip-remove-action"
|
|
3677
|
+
*ngIf="removable"
|
|
3678
|
+
(click)="onRemoveClick($event)"
|
|
3679
|
+
>
|
|
3680
|
+
<span
|
|
3681
|
+
class="k-icon"
|
|
3682
|
+
[ngClass]="removeIconClass"
|
|
3683
|
+
>
|
|
3684
|
+
</span>
|
|
3685
|
+
</span>
|
|
3686
|
+
</span>
|
|
3687
|
+
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
3688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipComponent, decorators: [{
|
|
3689
|
+
type: Component,
|
|
3690
|
+
args: [{
|
|
3691
|
+
selector: 'kendo-chip',
|
|
3692
|
+
template: `
|
|
3764
3693
|
<span
|
|
3765
3694
|
*ngIf="icon"
|
|
3766
3695
|
class="k-chip-icon k-icon"
|
|
@@ -3802,21 +3731,72 @@ ChipComponent = __decorate([
|
|
|
3802
3731
|
</span>
|
|
3803
3732
|
</span>
|
|
3804
3733
|
`,
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
],
|
|
3734
|
+
providers: [
|
|
3735
|
+
LocalizationService,
|
|
3736
|
+
{
|
|
3737
|
+
provide: L10N_PREFIX,
|
|
3738
|
+
useValue: 'kendo.chip'
|
|
3739
|
+
}
|
|
3740
|
+
]
|
|
3741
|
+
}]
|
|
3742
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { label: [{
|
|
3743
|
+
type: Input
|
|
3744
|
+
}], icon: [{
|
|
3745
|
+
type: Input
|
|
3746
|
+
}], iconClass: [{
|
|
3747
|
+
type: Input
|
|
3748
|
+
}], avatarClass: [{
|
|
3749
|
+
type: Input
|
|
3750
|
+
}], selected: [{
|
|
3751
|
+
type: Input
|
|
3752
|
+
}], removable: [{
|
|
3753
|
+
type: Input
|
|
3754
|
+
}], removeIcon: [{
|
|
3755
|
+
type: Input
|
|
3756
|
+
}], disabled: [{
|
|
3757
|
+
type: Input
|
|
3758
|
+
}], size: [{
|
|
3759
|
+
type: Input
|
|
3760
|
+
}], rounded: [{
|
|
3761
|
+
type: Input
|
|
3762
|
+
}], fillMode: [{
|
|
3763
|
+
type: Input
|
|
3764
|
+
}], themeColor: [{
|
|
3765
|
+
type: Input
|
|
3766
|
+
}], remove: [{
|
|
3767
|
+
type: Output
|
|
3768
|
+
}], contentClick: [{
|
|
3769
|
+
type: Output
|
|
3770
|
+
}], tabIndex: [{
|
|
3771
|
+
type: HostBinding,
|
|
3772
|
+
args: ['attr.tabindex']
|
|
3773
|
+
}], ariaChecked: [{
|
|
3774
|
+
type: HostBinding,
|
|
3775
|
+
args: ['attr.aria-checked']
|
|
3776
|
+
}], hostClass: [{
|
|
3777
|
+
type: HostBinding,
|
|
3778
|
+
args: ['class.k-chip']
|
|
3779
|
+
}], hasIconClass: [{
|
|
3780
|
+
type: HostBinding,
|
|
3781
|
+
args: ['class.k-chip-has-icon']
|
|
3782
|
+
}], disabledClass: [{
|
|
3783
|
+
type: HostBinding,
|
|
3784
|
+
args: ['attr.aria-disabled']
|
|
3785
|
+
}, {
|
|
3786
|
+
type: HostBinding,
|
|
3787
|
+
args: ['class.k-disabled']
|
|
3788
|
+
}], selectedClass: [{
|
|
3789
|
+
type: HostBinding,
|
|
3790
|
+
args: ['class.k-selected']
|
|
3791
|
+
}], focusedClass: [{
|
|
3792
|
+
type: HostBinding,
|
|
3793
|
+
args: ['class.k-focus']
|
|
3794
|
+
}], direction: [{
|
|
3795
|
+
type: HostBinding,
|
|
3796
|
+
args: ['attr.dir']
|
|
3797
|
+
}] } });
|
|
3818
3798
|
|
|
3819
|
-
|
|
3799
|
+
class ChipListComponent {
|
|
3820
3800
|
constructor(localizationService, renderer, element) {
|
|
3821
3801
|
this.localizationService = localizationService;
|
|
3822
3802
|
this.renderer = renderer;
|
|
@@ -3933,81 +3913,69 @@ let ChipListComponent = class ChipListComponent {
|
|
|
3933
3913
|
this.renderer.addClass(elem, classes.toAdd);
|
|
3934
3914
|
}
|
|
3935
3915
|
}
|
|
3936
|
-
}
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
],
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
__metadata("design:paramtypes", [String])
|
|
3953
|
-
], ChipListComponent.prototype, "size", null);
|
|
3954
|
-
__decorate([
|
|
3955
|
-
Output(),
|
|
3956
|
-
__metadata("design:type", EventEmitter)
|
|
3957
|
-
], ChipListComponent.prototype, "selectedChange", void 0);
|
|
3958
|
-
__decorate([
|
|
3959
|
-
Output(),
|
|
3960
|
-
__metadata("design:type", EventEmitter)
|
|
3961
|
-
], ChipListComponent.prototype, "remove", void 0);
|
|
3962
|
-
__decorate([
|
|
3963
|
-
ContentChildren(ChipComponent),
|
|
3964
|
-
__metadata("design:type", QueryList)
|
|
3965
|
-
], ChipListComponent.prototype, "chips", void 0);
|
|
3966
|
-
__decorate([
|
|
3967
|
-
HostBinding('class.k-selection-single'),
|
|
3968
|
-
__metadata("design:type", Boolean),
|
|
3969
|
-
__metadata("design:paramtypes", [])
|
|
3970
|
-
], ChipListComponent.prototype, "single", null);
|
|
3971
|
-
__decorate([
|
|
3972
|
-
HostBinding('class.k-selection-multiple'),
|
|
3973
|
-
__metadata("design:type", Boolean),
|
|
3974
|
-
__metadata("design:paramtypes", [])
|
|
3975
|
-
], ChipListComponent.prototype, "multiple", null);
|
|
3976
|
-
__decorate([
|
|
3977
|
-
HostBinding('attr.role'),
|
|
3978
|
-
__metadata("design:type", String)
|
|
3979
|
-
], ChipListComponent.prototype, "role", void 0);
|
|
3980
|
-
__decorate([
|
|
3981
|
-
HostListener('click', ['$event']),
|
|
3982
|
-
__metadata("design:type", Function),
|
|
3983
|
-
__metadata("design:paramtypes", [Object]),
|
|
3984
|
-
__metadata("design:returntype", void 0)
|
|
3985
|
-
], ChipListComponent.prototype, "onClick", null);
|
|
3986
|
-
ChipListComponent = __decorate([
|
|
3987
|
-
Component({
|
|
3988
|
-
selector: 'kendo-chiplist, kendo-chip-list',
|
|
3989
|
-
template: `
|
|
3916
|
+
}
|
|
3917
|
+
ChipListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3918
|
+
ChipListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: { selection: "selection", size: "size" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.dir": "this.direction", "class.k-selection-single": "this.single", "class.k-selection-multiple": "this.multiple", "attr.role": "this.role" } }, providers: [
|
|
3919
|
+
LocalizationService,
|
|
3920
|
+
{
|
|
3921
|
+
provide: L10N_PREFIX,
|
|
3922
|
+
useValue: 'kendo.chiplist'
|
|
3923
|
+
}
|
|
3924
|
+
], queries: [{ propertyName: "chips", predicate: ChipComponent }], ngImport: i0, template: `
|
|
3925
|
+
<ng-content></ng-content>
|
|
3926
|
+
`, isInline: true });
|
|
3927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipListComponent, decorators: [{
|
|
3928
|
+
type: Component,
|
|
3929
|
+
args: [{
|
|
3930
|
+
selector: 'kendo-chiplist, kendo-chip-list',
|
|
3931
|
+
template: `
|
|
3990
3932
|
<ng-content></ng-content>
|
|
3991
3933
|
`,
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
],
|
|
3934
|
+
providers: [
|
|
3935
|
+
LocalizationService,
|
|
3936
|
+
{
|
|
3937
|
+
provide: L10N_PREFIX,
|
|
3938
|
+
useValue: 'kendo.chiplist'
|
|
3939
|
+
}
|
|
3940
|
+
]
|
|
3941
|
+
}]
|
|
3942
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { hostClass: [{
|
|
3943
|
+
type: HostBinding,
|
|
3944
|
+
args: ['class.k-chip-list']
|
|
3945
|
+
}], direction: [{
|
|
3946
|
+
type: HostBinding,
|
|
3947
|
+
args: ['attr.dir']
|
|
3948
|
+
}], selection: [{
|
|
3949
|
+
type: Input
|
|
3950
|
+
}], size: [{
|
|
3951
|
+
type: Input
|
|
3952
|
+
}], selectedChange: [{
|
|
3953
|
+
type: Output
|
|
3954
|
+
}], remove: [{
|
|
3955
|
+
type: Output
|
|
3956
|
+
}], chips: [{
|
|
3957
|
+
type: ContentChildren,
|
|
3958
|
+
args: [ChipComponent]
|
|
3959
|
+
}], single: [{
|
|
3960
|
+
type: HostBinding,
|
|
3961
|
+
args: ['class.k-selection-single']
|
|
3962
|
+
}], multiple: [{
|
|
3963
|
+
type: HostBinding,
|
|
3964
|
+
args: ['class.k-selection-multiple']
|
|
3965
|
+
}], role: [{
|
|
3966
|
+
type: HostBinding,
|
|
3967
|
+
args: ['attr.role']
|
|
3968
|
+
}], onClick: [{
|
|
3969
|
+
type: HostListener,
|
|
3970
|
+
args: ['click', ['$event']]
|
|
3971
|
+
}] } });
|
|
4004
3972
|
|
|
4005
|
-
const exportedModules = [
|
|
3973
|
+
const exportedModules$1 = [
|
|
4006
3974
|
ChipComponent,
|
|
4007
3975
|
ChipListComponent
|
|
4008
3976
|
];
|
|
4009
|
-
const declarations = [
|
|
4010
|
-
...exportedModules
|
|
3977
|
+
const declarations$1 = [
|
|
3978
|
+
...exportedModules$1
|
|
4011
3979
|
];
|
|
4012
3980
|
/**
|
|
4013
3981
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -4037,15 +4005,21 @@ const declarations = [
|
|
|
4037
4005
|
*
|
|
4038
4006
|
* ```
|
|
4039
4007
|
*/
|
|
4040
|
-
|
|
4041
|
-
}
|
|
4042
|
-
ChipModule =
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4008
|
+
class ChipModule {
|
|
4009
|
+
}
|
|
4010
|
+
ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4011
|
+
ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, declarations: [ChipComponent,
|
|
4012
|
+
ChipListComponent], imports: [CommonModule], exports: [ChipComponent,
|
|
4013
|
+
ChipListComponent] });
|
|
4014
|
+
ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, imports: [[CommonModule]] });
|
|
4015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, decorators: [{
|
|
4016
|
+
type: NgModule,
|
|
4017
|
+
args: [{
|
|
4018
|
+
declarations: [declarations$1],
|
|
4019
|
+
exports: [exportedModules$1],
|
|
4020
|
+
imports: [CommonModule]
|
|
4021
|
+
}]
|
|
4022
|
+
}] });
|
|
4049
4023
|
|
|
4050
4024
|
/**
|
|
4051
4025
|
* @hidden
|
|
@@ -4111,51 +4085,254 @@ function closeAnimation(animationSettings) {
|
|
|
4111
4085
|
]);
|
|
4112
4086
|
}
|
|
4113
4087
|
|
|
4114
|
-
/**
|
|
4115
|
-
* Represents a template that defines the content of the whole dial item.
|
|
4116
|
-
* To define the template, nest an `<ng-template>` tag
|
|
4117
|
-
* with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
4118
|
-
* ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
|
|
4119
|
-
*/
|
|
4120
|
-
|
|
4121
|
-
constructor(templateRef) {
|
|
4122
|
-
this.templateRef = templateRef;
|
|
4123
|
-
}
|
|
4124
|
-
}
|
|
4125
|
-
DialItemTemplateDirective =
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
]
|
|
4088
|
+
/**
|
|
4089
|
+
* Represents a template that defines the content of the whole dial item.
|
|
4090
|
+
* To define the template, nest an `<ng-template>` tag
|
|
4091
|
+
* with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
4092
|
+
* ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
|
|
4093
|
+
*/
|
|
4094
|
+
class DialItemTemplateDirective {
|
|
4095
|
+
constructor(templateRef) {
|
|
4096
|
+
this.templateRef = templateRef;
|
|
4097
|
+
}
|
|
4098
|
+
}
|
|
4099
|
+
DialItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4100
|
+
DialItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialItemTemplateDirective, selector: "[kendoDialItemTemplate]", ngImport: i0 });
|
|
4101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemTemplateDirective, decorators: [{
|
|
4102
|
+
type: Directive,
|
|
4103
|
+
args: [{
|
|
4104
|
+
selector: '[kendoDialItemTemplate]'
|
|
4105
|
+
}]
|
|
4106
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
4107
|
+
type: Optional
|
|
4108
|
+
}] }]; } });
|
|
4109
|
+
|
|
4110
|
+
/**
|
|
4111
|
+
* Represents a template that defines the content of the FloatingActionButton.
|
|
4112
|
+
* To define the template, nest an `<ng-template>` tag
|
|
4113
|
+
* with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
4114
|
+
* ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
|
|
4115
|
+
*/
|
|
4116
|
+
class FloatingActionButtonTemplateDirective {
|
|
4117
|
+
constructor(templateRef) {
|
|
4118
|
+
this.templateRef = templateRef;
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
FloatingActionButtonTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4122
|
+
FloatingActionButtonTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonTemplateDirective, selector: "[kendoFloatingActionButtonTemplate]", ngImport: i0 });
|
|
4123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonTemplateDirective, decorators: [{
|
|
4124
|
+
type: Directive,
|
|
4125
|
+
args: [{
|
|
4126
|
+
selector: '[kendoFloatingActionButtonTemplate]'
|
|
4127
|
+
}]
|
|
4128
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
4129
|
+
type: Optional
|
|
4130
|
+
}] }]; } });
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* @hidden
|
|
4134
|
+
*/
|
|
4135
|
+
class DialItemComponent {
|
|
4136
|
+
constructor(element, renderer, localisationService) {
|
|
4137
|
+
this.element = element;
|
|
4138
|
+
this.renderer = renderer;
|
|
4139
|
+
this.localisationService = localisationService;
|
|
4140
|
+
this.hostClass = true;
|
|
4141
|
+
this.role = 'menuitem';
|
|
4142
|
+
}
|
|
4143
|
+
get disabledClass() {
|
|
4144
|
+
return this.item.disabled;
|
|
4145
|
+
}
|
|
4146
|
+
get title() {
|
|
4147
|
+
const label = this.item.label;
|
|
4148
|
+
return label ? label : this.itemTitle;
|
|
4149
|
+
}
|
|
4150
|
+
get indexAttr() {
|
|
4151
|
+
return this.index;
|
|
4152
|
+
}
|
|
4153
|
+
get iconClasses() {
|
|
4154
|
+
const classes = [];
|
|
4155
|
+
if (this.item.iconClass) {
|
|
4156
|
+
classes.push(`${this.item.iconClass}`);
|
|
4157
|
+
}
|
|
4158
|
+
if (this.item.icon) {
|
|
4159
|
+
classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
|
|
4160
|
+
}
|
|
4161
|
+
return classes;
|
|
4162
|
+
}
|
|
4163
|
+
get itemTitle() {
|
|
4164
|
+
const icon = this.item.icon;
|
|
4165
|
+
const itemTitle = this.item.itemTitle;
|
|
4166
|
+
return (icon && itemTitle) ? itemTitle : icon;
|
|
4167
|
+
}
|
|
4168
|
+
ngAfterViewInit() {
|
|
4169
|
+
const element = this.element.nativeElement;
|
|
4170
|
+
const rtl = this.localisationService.rtl;
|
|
4171
|
+
const hAlign = this.align.horizontal;
|
|
4172
|
+
this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
|
|
4173
|
+
}
|
|
4174
|
+
getTextDirectionClass(rtl, hAlign) {
|
|
4175
|
+
const dir = rtl ? 'rtl' : 'ltr';
|
|
4176
|
+
const align = hAlign === 'end' ? 'end' : 'start';
|
|
4177
|
+
const directions = {
|
|
4178
|
+
rtl: { end: 'k-text-left', start: 'k-text-right' },
|
|
4179
|
+
ltr: { start: 'k-text-left', end: 'k-text-right' }
|
|
4180
|
+
};
|
|
4181
|
+
return directions[dir][align];
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
DialItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4185
|
+
DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialItemComponent, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
|
|
4186
|
+
<ng-template *ngIf="dialItemTemplate"
|
|
4187
|
+
[ngTemplateOutlet]="dialItemTemplate"
|
|
4188
|
+
[ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
|
|
4189
|
+
>
|
|
4190
|
+
</ng-template>
|
|
4191
|
+
|
|
4192
|
+
<ng-container *ngIf="!dialItemTemplate">
|
|
4193
|
+
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
4194
|
+
<span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
|
|
4195
|
+
</ng-container>
|
|
4196
|
+
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
4197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
|
|
4198
|
+
type: Component,
|
|
4199
|
+
args: [{
|
|
4200
|
+
selector: '[kendoDialItem]',
|
|
4201
|
+
template: `
|
|
4202
|
+
<ng-template *ngIf="dialItemTemplate"
|
|
4203
|
+
[ngTemplateOutlet]="dialItemTemplate"
|
|
4204
|
+
[ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
|
|
4205
|
+
>
|
|
4206
|
+
</ng-template>
|
|
4207
|
+
|
|
4208
|
+
<ng-container *ngIf="!dialItemTemplate">
|
|
4209
|
+
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
4210
|
+
<span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
|
|
4211
|
+
</ng-container>
|
|
4212
|
+
`
|
|
4213
|
+
}]
|
|
4214
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
|
|
4215
|
+
type: HostBinding,
|
|
4216
|
+
args: ['class.k-fab-item']
|
|
4217
|
+
}], role: [{
|
|
4218
|
+
type: HostBinding,
|
|
4219
|
+
args: ['attr.role']
|
|
4220
|
+
}], disabledClass: [{
|
|
4221
|
+
type: HostBinding,
|
|
4222
|
+
args: ['attr.aria-disabled']
|
|
4223
|
+
}, {
|
|
4224
|
+
type: HostBinding,
|
|
4225
|
+
args: ['class.k-disabled']
|
|
4226
|
+
}], title: [{
|
|
4227
|
+
type: HostBinding,
|
|
4228
|
+
args: ['attr.title']
|
|
4229
|
+
}, {
|
|
4230
|
+
type: HostBinding,
|
|
4231
|
+
args: ['attr.aria-label']
|
|
4232
|
+
}], indexAttr: [{
|
|
4233
|
+
type: HostBinding,
|
|
4234
|
+
args: ['attr.data-fab-item-index']
|
|
4235
|
+
}], cssClass: [{
|
|
4236
|
+
type: Input
|
|
4237
|
+
}], cssStyle: [{
|
|
4238
|
+
type: Input
|
|
4239
|
+
}], isFocused: [{
|
|
4240
|
+
type: Input
|
|
4241
|
+
}], index: [{
|
|
4242
|
+
type: Input
|
|
4243
|
+
}], item: [{
|
|
4244
|
+
type: Input
|
|
4245
|
+
}], dialItemTemplate: [{
|
|
4246
|
+
type: Input
|
|
4247
|
+
}], align: [{
|
|
4248
|
+
type: Input
|
|
4249
|
+
}] } });
|
|
4132
4250
|
|
|
4133
4251
|
/**
|
|
4134
|
-
*
|
|
4135
|
-
* To define the template, nest an `<ng-template>` tag
|
|
4136
|
-
* with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
4137
|
-
* ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
|
|
4252
|
+
* @hidden
|
|
4138
4253
|
*/
|
|
4139
|
-
|
|
4140
|
-
constructor(
|
|
4141
|
-
this.
|
|
4254
|
+
class DialListComponent {
|
|
4255
|
+
constructor(focusService, cdr) {
|
|
4256
|
+
this.focusService = focusService;
|
|
4257
|
+
this.cdr = cdr;
|
|
4258
|
+
this.hostClass = true;
|
|
4259
|
+
this.subscriptions = new Subscription();
|
|
4260
|
+
this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
|
|
4142
4261
|
}
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4262
|
+
get bottomClass() {
|
|
4263
|
+
return this.align.vertical === 'top' || this.align.vertical === 'middle';
|
|
4264
|
+
}
|
|
4265
|
+
get topClass() {
|
|
4266
|
+
return this.align.vertical === 'bottom';
|
|
4267
|
+
}
|
|
4268
|
+
isFocused(index) {
|
|
4269
|
+
return this.focusService.isFocused(index);
|
|
4270
|
+
}
|
|
4271
|
+
ngOnDestroy() {
|
|
4272
|
+
this.subscriptions.unsubscribe();
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, deps: [{ token: FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4276
|
+
DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialListComponent, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
|
|
4277
|
+
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
4278
|
+
<li
|
|
4279
|
+
kendoButtonFocusable
|
|
4280
|
+
kendoDialItem
|
|
4281
|
+
[item]="dialItems[idx]"
|
|
4282
|
+
[index]="idx"
|
|
4283
|
+
[dialItemTemplate]="dialItemTemplate"
|
|
4284
|
+
[isFocused]="isFocused(idx)"
|
|
4285
|
+
[ngClass]='item.cssClass'
|
|
4286
|
+
[ngStyle]='item.cssStyle'
|
|
4287
|
+
[align]="align"
|
|
4288
|
+
>
|
|
4289
|
+
</li>
|
|
4290
|
+
</ng-container>
|
|
4291
|
+
`, isInline: true, components: [{ type: DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
|
|
4293
|
+
type: Component,
|
|
4294
|
+
args: [{
|
|
4295
|
+
selector: '[kendoDialList]',
|
|
4296
|
+
template: `
|
|
4297
|
+
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
4298
|
+
<li
|
|
4299
|
+
kendoButtonFocusable
|
|
4300
|
+
kendoDialItem
|
|
4301
|
+
[item]="dialItems[idx]"
|
|
4302
|
+
[index]="idx"
|
|
4303
|
+
[dialItemTemplate]="dialItemTemplate"
|
|
4304
|
+
[isFocused]="isFocused(idx)"
|
|
4305
|
+
[ngClass]='item.cssClass'
|
|
4306
|
+
[ngStyle]='item.cssStyle'
|
|
4307
|
+
[align]="align"
|
|
4308
|
+
>
|
|
4309
|
+
</li>
|
|
4310
|
+
</ng-container>
|
|
4311
|
+
`
|
|
4312
|
+
}]
|
|
4313
|
+
}], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
|
|
4314
|
+
type: HostBinding,
|
|
4315
|
+
args: ['class.k-fab-items']
|
|
4316
|
+
}], bottomClass: [{
|
|
4317
|
+
type: HostBinding,
|
|
4318
|
+
args: ['class.k-fab-items-bottom']
|
|
4319
|
+
}], topClass: [{
|
|
4320
|
+
type: HostBinding,
|
|
4321
|
+
args: ['class.k-fab-items-top']
|
|
4322
|
+
}], dialItems: [{
|
|
4323
|
+
type: Input
|
|
4324
|
+
}], dialItemTemplate: [{
|
|
4325
|
+
type: Input
|
|
4326
|
+
}], align: [{
|
|
4327
|
+
type: Input
|
|
4328
|
+
}] } });
|
|
4151
4329
|
|
|
4152
|
-
const NAVIGATION_SETTINGS
|
|
4330
|
+
const NAVIGATION_SETTINGS = {
|
|
4153
4331
|
useLeftRightArrows: false
|
|
4154
4332
|
};
|
|
4155
|
-
const
|
|
4156
|
-
const NAVIGATION_SETTINGS_PROVIDER$2 = {
|
|
4333
|
+
const NAVIGATION_SETTINGS_PROVIDER = {
|
|
4157
4334
|
provide: NAVIGATION_CONFIG,
|
|
4158
|
-
useValue:
|
|
4335
|
+
useValue: NAVIGATION_SETTINGS
|
|
4159
4336
|
};
|
|
4160
4337
|
const SIZE_CLASSES = {
|
|
4161
4338
|
small: 'k-fab-sm',
|
|
@@ -4182,7 +4359,7 @@ const DEFAULT_OFFSET = '16px';
|
|
|
4182
4359
|
* Used to specify the primary or the most common action in an application.
|
|
4183
4360
|
*
|
|
4184
4361
|
*/
|
|
4185
|
-
|
|
4362
|
+
class FloatingActionButtonComponent {
|
|
4186
4363
|
constructor(renderer, element, focusService, navigationService, ngZone, popupService, builder, localizationService) {
|
|
4187
4364
|
this.renderer = renderer;
|
|
4188
4365
|
this.element = element;
|
|
@@ -4789,142 +4966,18 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
|
|
|
4789
4966
|
}
|
|
4790
4967
|
return DEFAULT_DURATION;
|
|
4791
4968
|
}
|
|
4792
|
-
}
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
HostBinding('attr.dir'),
|
|
4805
|
-
__metadata("design:type", String)
|
|
4806
|
-
], FloatingActionButtonComponent.prototype, "direction", void 0);
|
|
4807
|
-
__decorate([
|
|
4808
|
-
ViewChild('button', { static: true }),
|
|
4809
|
-
__metadata("design:type", ElementRef)
|
|
4810
|
-
], FloatingActionButtonComponent.prototype, "button", void 0);
|
|
4811
|
-
__decorate([
|
|
4812
|
-
ViewChild('popupTemplate', { static: true }),
|
|
4813
|
-
__metadata("design:type", TemplateRef)
|
|
4814
|
-
], FloatingActionButtonComponent.prototype, "popupTemplate", void 0);
|
|
4815
|
-
__decorate([
|
|
4816
|
-
ContentChild(DialItemTemplateDirective, { static: true }),
|
|
4817
|
-
__metadata("design:type", DialItemTemplateDirective)
|
|
4818
|
-
], FloatingActionButtonComponent.prototype, "dialItemTemplate", void 0);
|
|
4819
|
-
__decorate([
|
|
4820
|
-
ContentChild(FloatingActionButtonTemplateDirective, { static: true }),
|
|
4821
|
-
__metadata("design:type", FloatingActionButtonTemplateDirective)
|
|
4822
|
-
], FloatingActionButtonComponent.prototype, "fabTemplate", void 0);
|
|
4823
|
-
__decorate([
|
|
4824
|
-
Input(),
|
|
4825
|
-
__metadata("design:type", String),
|
|
4826
|
-
__metadata("design:paramtypes", [String])
|
|
4827
|
-
], FloatingActionButtonComponent.prototype, "themeColor", null);
|
|
4828
|
-
__decorate([
|
|
4829
|
-
Input(),
|
|
4830
|
-
__metadata("design:type", String),
|
|
4831
|
-
__metadata("design:paramtypes", [String])
|
|
4832
|
-
], FloatingActionButtonComponent.prototype, "size", null);
|
|
4833
|
-
__decorate([
|
|
4834
|
-
Input(),
|
|
4835
|
-
__metadata("design:type", String),
|
|
4836
|
-
__metadata("design:paramtypes", [String])
|
|
4837
|
-
], FloatingActionButtonComponent.prototype, "rounded", null);
|
|
4838
|
-
__decorate([
|
|
4839
|
-
Input(),
|
|
4840
|
-
__metadata("design:type", String),
|
|
4841
|
-
__metadata("design:paramtypes", [String])
|
|
4842
|
-
], FloatingActionButtonComponent.prototype, "shape", null);
|
|
4843
|
-
__decorate([
|
|
4844
|
-
Input(),
|
|
4845
|
-
__metadata("design:type", Boolean),
|
|
4846
|
-
__metadata("design:paramtypes", [Boolean])
|
|
4847
|
-
], FloatingActionButtonComponent.prototype, "disabled", null);
|
|
4848
|
-
__decorate([
|
|
4849
|
-
Input(),
|
|
4850
|
-
__metadata("design:type", Object),
|
|
4851
|
-
__metadata("design:paramtypes", [Object])
|
|
4852
|
-
], FloatingActionButtonComponent.prototype, "align", null);
|
|
4853
|
-
__decorate([
|
|
4854
|
-
Input(),
|
|
4855
|
-
__metadata("design:type", Object),
|
|
4856
|
-
__metadata("design:paramtypes", [Object])
|
|
4857
|
-
], FloatingActionButtonComponent.prototype, "offset", null);
|
|
4858
|
-
__decorate([
|
|
4859
|
-
Input(),
|
|
4860
|
-
__metadata("design:type", String)
|
|
4861
|
-
], FloatingActionButtonComponent.prototype, "positionMode", void 0);
|
|
4862
|
-
__decorate([
|
|
4863
|
-
Input(),
|
|
4864
|
-
__metadata("design:type", String)
|
|
4865
|
-
], FloatingActionButtonComponent.prototype, "icon", void 0);
|
|
4866
|
-
__decorate([
|
|
4867
|
-
Input(),
|
|
4868
|
-
__metadata("design:type", String)
|
|
4869
|
-
], FloatingActionButtonComponent.prototype, "iconClass", void 0);
|
|
4870
|
-
__decorate([
|
|
4871
|
-
Input(),
|
|
4872
|
-
__metadata("design:type", Object)
|
|
4873
|
-
], FloatingActionButtonComponent.prototype, "buttonClass", void 0);
|
|
4874
|
-
__decorate([
|
|
4875
|
-
Input(),
|
|
4876
|
-
__metadata("design:type", Object)
|
|
4877
|
-
], FloatingActionButtonComponent.prototype, "dialClass", void 0);
|
|
4878
|
-
__decorate([
|
|
4879
|
-
Input(),
|
|
4880
|
-
__metadata("design:type", String)
|
|
4881
|
-
], FloatingActionButtonComponent.prototype, "text", void 0);
|
|
4882
|
-
__decorate([
|
|
4883
|
-
Input(),
|
|
4884
|
-
__metadata("design:type", Object)
|
|
4885
|
-
], FloatingActionButtonComponent.prototype, "dialItemAnimation", void 0);
|
|
4886
|
-
__decorate([
|
|
4887
|
-
Input(),
|
|
4888
|
-
__metadata("design:type", Number)
|
|
4889
|
-
], FloatingActionButtonComponent.prototype, "tabIndex", void 0);
|
|
4890
|
-
__decorate([
|
|
4891
|
-
Input(),
|
|
4892
|
-
__metadata("design:type", Array)
|
|
4893
|
-
], FloatingActionButtonComponent.prototype, "dialItems", void 0);
|
|
4894
|
-
__decorate([
|
|
4895
|
-
Output('blur'),
|
|
4896
|
-
__metadata("design:type", EventEmitter)
|
|
4897
|
-
], FloatingActionButtonComponent.prototype, "onBlur", void 0);
|
|
4898
|
-
__decorate([
|
|
4899
|
-
Output('focus'),
|
|
4900
|
-
__metadata("design:type", EventEmitter)
|
|
4901
|
-
], FloatingActionButtonComponent.prototype, "onFocus", void 0);
|
|
4902
|
-
__decorate([
|
|
4903
|
-
Output('dialItemClick'),
|
|
4904
|
-
__metadata("design:type", EventEmitter)
|
|
4905
|
-
], FloatingActionButtonComponent.prototype, "dialItemClick", void 0);
|
|
4906
|
-
__decorate([
|
|
4907
|
-
Output(),
|
|
4908
|
-
__metadata("design:type", EventEmitter)
|
|
4909
|
-
], FloatingActionButtonComponent.prototype, "open", void 0);
|
|
4910
|
-
__decorate([
|
|
4911
|
-
Output(),
|
|
4912
|
-
__metadata("design:type", EventEmitter)
|
|
4913
|
-
], FloatingActionButtonComponent.prototype, "close", void 0);
|
|
4914
|
-
FloatingActionButtonComponent = __decorate([
|
|
4915
|
-
Component({
|
|
4916
|
-
selector: 'kendo-floatingactionbutton',
|
|
4917
|
-
providers: [
|
|
4918
|
-
FocusService,
|
|
4919
|
-
NavigationService,
|
|
4920
|
-
NAVIGATION_SETTINGS_PROVIDER$2,
|
|
4921
|
-
LocalizationService,
|
|
4922
|
-
{
|
|
4923
|
-
provide: L10N_PREFIX,
|
|
4924
|
-
useValue: 'kendo.floatingactionbutton'
|
|
4925
|
-
}
|
|
4926
|
-
],
|
|
4927
|
-
template: `
|
|
4969
|
+
}
|
|
4970
|
+
FloatingActionButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: FocusService }, { token: NavigationService }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i4.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4971
|
+
FloatingActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonComponent, selector: "kendo-floatingactionbutton", inputs: { themeColor: "themeColor", size: "size", rounded: "rounded", shape: "shape", disabled: "disabled", align: "align", offset: "offset", positionMode: "positionMode", icon: "icon", iconClass: "iconClass", buttonClass: "buttonClass", dialClass: "dialClass", text: "text", dialItemAnimation: "dialItemAnimation", tabIndex: "tabIndex", dialItems: "dialItems" }, outputs: { onBlur: "blur", onFocus: "focus", dialItemClick: "dialItemClick", open: "open", close: "close" }, host: { properties: { "class.k-pos-fixed": "this.fixedClass", "class.k-pos-absolute": "this.absoluteClass", "attr.dir": "this.direction" } }, providers: [
|
|
4972
|
+
FocusService,
|
|
4973
|
+
NavigationService,
|
|
4974
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
4975
|
+
LocalizationService,
|
|
4976
|
+
{
|
|
4977
|
+
provide: L10N_PREFIX,
|
|
4978
|
+
useValue: 'kendo.floatingactionbutton'
|
|
4979
|
+
}
|
|
4980
|
+
], queries: [{ propertyName: "dialItemTemplate", first: true, predicate: DialItemTemplateDirective, descendants: true, static: true }, { propertyName: "fabTemplate", first: true, predicate: FloatingActionButtonTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
|
|
4928
4981
|
<button
|
|
4929
4982
|
#button
|
|
4930
4983
|
[attr.id]="id"
|
|
@@ -4969,224 +5022,143 @@ FloatingActionButtonComponent = __decorate([
|
|
|
4969
5022
|
>
|
|
4970
5023
|
</ul>
|
|
4971
5024
|
</ng-template>
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
5025
|
+
`, isInline: true, components: [{ type: DialListComponent, selector: "[kendoDialList]", inputs: ["dialItems", "dialItemTemplate", "align"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
5026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonComponent, decorators: [{
|
|
5027
|
+
type: Component,
|
|
5028
|
+
args: [{
|
|
5029
|
+
selector: 'kendo-floatingactionbutton',
|
|
5030
|
+
providers: [
|
|
5031
|
+
FocusService,
|
|
5032
|
+
NavigationService,
|
|
5033
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
5034
|
+
LocalizationService,
|
|
5035
|
+
{
|
|
5036
|
+
provide: L10N_PREFIX,
|
|
5037
|
+
useValue: 'kendo.floatingactionbutton'
|
|
5038
|
+
}
|
|
5039
|
+
],
|
|
5040
|
+
template: `
|
|
5041
|
+
<button
|
|
5042
|
+
#button
|
|
5043
|
+
[attr.id]="id"
|
|
5044
|
+
[attr.role]="role"
|
|
5045
|
+
[tabIndex]="componentTabIndex"
|
|
5046
|
+
type="button"
|
|
5047
|
+
class="k-fab k-fab-solid"
|
|
5048
|
+
[class.k-disabled]="disabled"
|
|
5049
|
+
[ngClass]="buttonClass"
|
|
5050
|
+
[disabled]="disabled"
|
|
5051
|
+
[attr.aria-disabled]="disabled"
|
|
5052
|
+
[attr.aria-expanded]="ariaExpanded"
|
|
5053
|
+
[attr.aria-haspopup]="ariaHasPopup"
|
|
5054
|
+
(focus)="focusHandler()"
|
|
5055
|
+
(blur)="blurHandler()"
|
|
5056
|
+
[kendoEventsOutsideAngular]="{
|
|
5057
|
+
keydown: keyDownHandler,
|
|
5058
|
+
click: clickHandler
|
|
5059
|
+
}"
|
|
5060
|
+
[scope]="this"
|
|
5061
|
+
>
|
|
5062
|
+
<ng-template *ngIf="fabTemplate"
|
|
5063
|
+
[ngTemplateOutlet]="fabTemplate?.templateRef"
|
|
5064
|
+
>
|
|
5065
|
+
</ng-template>
|
|
4983
5066
|
|
|
4984
|
-
|
|
4985
|
-
*
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
return this.align.vertical === 'top' || this.align.vertical === 'middle';
|
|
4997
|
-
}
|
|
4998
|
-
get topClass() {
|
|
4999
|
-
return this.align.vertical === 'bottom';
|
|
5000
|
-
}
|
|
5001
|
-
isFocused(index) {
|
|
5002
|
-
return this.focusService.isFocused(index);
|
|
5003
|
-
}
|
|
5004
|
-
ngOnDestroy() {
|
|
5005
|
-
this.subscriptions.unsubscribe();
|
|
5006
|
-
}
|
|
5007
|
-
};
|
|
5008
|
-
__decorate([
|
|
5009
|
-
HostBinding('class.k-fab-items'),
|
|
5010
|
-
__metadata("design:type", Boolean)
|
|
5011
|
-
], DialListComponent.prototype, "hostClass", void 0);
|
|
5012
|
-
__decorate([
|
|
5013
|
-
HostBinding('class.k-fab-items-bottom'),
|
|
5014
|
-
__metadata("design:type", Boolean),
|
|
5015
|
-
__metadata("design:paramtypes", [])
|
|
5016
|
-
], DialListComponent.prototype, "bottomClass", null);
|
|
5017
|
-
__decorate([
|
|
5018
|
-
HostBinding('class.k-fab-items-top'),
|
|
5019
|
-
__metadata("design:type", Boolean),
|
|
5020
|
-
__metadata("design:paramtypes", [])
|
|
5021
|
-
], DialListComponent.prototype, "topClass", null);
|
|
5022
|
-
__decorate([
|
|
5023
|
-
Input(),
|
|
5024
|
-
__metadata("design:type", Array)
|
|
5025
|
-
], DialListComponent.prototype, "dialItems", void 0);
|
|
5026
|
-
__decorate([
|
|
5027
|
-
Input(),
|
|
5028
|
-
__metadata("design:type", TemplateRef)
|
|
5029
|
-
], DialListComponent.prototype, "dialItemTemplate", void 0);
|
|
5030
|
-
__decorate([
|
|
5031
|
-
Input(),
|
|
5032
|
-
__metadata("design:type", Object)
|
|
5033
|
-
], DialListComponent.prototype, "align", void 0);
|
|
5034
|
-
DialListComponent = __decorate([
|
|
5035
|
-
Component({
|
|
5036
|
-
selector: '[kendoDialList]',
|
|
5037
|
-
template: `
|
|
5038
|
-
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
5039
|
-
<li
|
|
5040
|
-
kendoButtonFocusable
|
|
5041
|
-
kendoDialItem
|
|
5042
|
-
[item]="dialItems[idx]"
|
|
5043
|
-
[index]="idx"
|
|
5044
|
-
[dialItemTemplate]="dialItemTemplate"
|
|
5045
|
-
[isFocused]="isFocused(idx)"
|
|
5046
|
-
[ngClass]='item.cssClass'
|
|
5047
|
-
[ngStyle]='item.cssStyle'
|
|
5067
|
+
<ng-container *ngIf="!fabTemplate">
|
|
5068
|
+
<span *ngIf="icon || iconClass" [ngClass]="iconClasses"></span>
|
|
5069
|
+
<span *ngIf="text" class="k-fab-text">{{ text }}</span>
|
|
5070
|
+
</ng-container>
|
|
5071
|
+
</button>
|
|
5072
|
+
|
|
5073
|
+
<ng-template #popupTemplate>
|
|
5074
|
+
<ul
|
|
5075
|
+
kendoDialList
|
|
5076
|
+
[ngClass]="dialClass"
|
|
5077
|
+
[dialItems]="dialItems"
|
|
5078
|
+
[dialItemTemplate]='dialItemTemplate?.templateRef'
|
|
5048
5079
|
[align]="align"
|
|
5080
|
+
[attr.aria-labelledby]="id"
|
|
5081
|
+
(click)="onItemClick($event)"
|
|
5049
5082
|
>
|
|
5050
|
-
</
|
|
5051
|
-
</ng-container>
|
|
5052
|
-
`
|
|
5053
|
-
}),
|
|
5054
|
-
__metadata("design:paramtypes", [FocusService, ChangeDetectorRef])
|
|
5055
|
-
], DialListComponent);
|
|
5056
|
-
|
|
5057
|
-
/**
|
|
5058
|
-
* @hidden
|
|
5059
|
-
*/
|
|
5060
|
-
let DialItemComponent = class DialItemComponent {
|
|
5061
|
-
constructor(element, renderer, localisationService) {
|
|
5062
|
-
this.element = element;
|
|
5063
|
-
this.renderer = renderer;
|
|
5064
|
-
this.localisationService = localisationService;
|
|
5065
|
-
this.hostClass = true;
|
|
5066
|
-
this.role = 'menuitem';
|
|
5067
|
-
}
|
|
5068
|
-
get disabledClass() {
|
|
5069
|
-
return this.item.disabled;
|
|
5070
|
-
}
|
|
5071
|
-
get title() {
|
|
5072
|
-
const label = this.item.label;
|
|
5073
|
-
return label ? label : this.itemTitle;
|
|
5074
|
-
}
|
|
5075
|
-
get indexAttr() {
|
|
5076
|
-
return this.index;
|
|
5077
|
-
}
|
|
5078
|
-
get iconClasses() {
|
|
5079
|
-
const classes = [];
|
|
5080
|
-
if (this.item.iconClass) {
|
|
5081
|
-
classes.push(`${this.item.iconClass}`);
|
|
5082
|
-
}
|
|
5083
|
-
if (this.item.icon) {
|
|
5084
|
-
classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
|
|
5085
|
-
}
|
|
5086
|
-
return classes;
|
|
5087
|
-
}
|
|
5088
|
-
get itemTitle() {
|
|
5089
|
-
const icon = this.item.icon;
|
|
5090
|
-
const itemTitle = this.item.itemTitle;
|
|
5091
|
-
return (icon && itemTitle) ? itemTitle : icon;
|
|
5092
|
-
}
|
|
5093
|
-
ngAfterViewInit() {
|
|
5094
|
-
const element = this.element.nativeElement;
|
|
5095
|
-
const rtl = this.localisationService.rtl;
|
|
5096
|
-
const hAlign = this.align.horizontal;
|
|
5097
|
-
this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
|
|
5098
|
-
}
|
|
5099
|
-
getTextDirectionClass(rtl, hAlign) {
|
|
5100
|
-
const dir = rtl ? 'rtl' : 'ltr';
|
|
5101
|
-
const align = hAlign === 'end' ? 'end' : 'start';
|
|
5102
|
-
const directions = {
|
|
5103
|
-
rtl: { end: 'k-text-left', start: 'k-text-right' },
|
|
5104
|
-
ltr: { start: 'k-text-left', end: 'k-text-right' }
|
|
5105
|
-
};
|
|
5106
|
-
return directions[dir][align];
|
|
5107
|
-
}
|
|
5108
|
-
};
|
|
5109
|
-
__decorate([
|
|
5110
|
-
HostBinding('class.k-fab-item'),
|
|
5111
|
-
__metadata("design:type", Boolean)
|
|
5112
|
-
], DialItemComponent.prototype, "hostClass", void 0);
|
|
5113
|
-
__decorate([
|
|
5114
|
-
HostBinding('attr.role'),
|
|
5115
|
-
__metadata("design:type", String)
|
|
5116
|
-
], DialItemComponent.prototype, "role", void 0);
|
|
5117
|
-
__decorate([
|
|
5118
|
-
HostBinding('attr.aria-disabled'),
|
|
5119
|
-
HostBinding('class.k-disabled'),
|
|
5120
|
-
__metadata("design:type", Boolean),
|
|
5121
|
-
__metadata("design:paramtypes", [])
|
|
5122
|
-
], DialItemComponent.prototype, "disabledClass", null);
|
|
5123
|
-
__decorate([
|
|
5124
|
-
HostBinding('attr.title'),
|
|
5125
|
-
HostBinding('attr.aria-label'),
|
|
5126
|
-
__metadata("design:type", String),
|
|
5127
|
-
__metadata("design:paramtypes", [])
|
|
5128
|
-
], DialItemComponent.prototype, "title", null);
|
|
5129
|
-
__decorate([
|
|
5130
|
-
HostBinding('attr.data-fab-item-index'),
|
|
5131
|
-
__metadata("design:type", String),
|
|
5132
|
-
__metadata("design:paramtypes", [])
|
|
5133
|
-
], DialItemComponent.prototype, "indexAttr", null);
|
|
5134
|
-
__decorate([
|
|
5135
|
-
Input(),
|
|
5136
|
-
__metadata("design:type", Object)
|
|
5137
|
-
], DialItemComponent.prototype, "cssClass", void 0);
|
|
5138
|
-
__decorate([
|
|
5139
|
-
Input(),
|
|
5140
|
-
__metadata("design:type", Object)
|
|
5141
|
-
], DialItemComponent.prototype, "cssStyle", void 0);
|
|
5142
|
-
__decorate([
|
|
5143
|
-
Input(),
|
|
5144
|
-
__metadata("design:type", Boolean)
|
|
5145
|
-
], DialItemComponent.prototype, "isFocused", void 0);
|
|
5146
|
-
__decorate([
|
|
5147
|
-
Input(),
|
|
5148
|
-
__metadata("design:type", Object)
|
|
5149
|
-
], DialItemComponent.prototype, "index", void 0);
|
|
5150
|
-
__decorate([
|
|
5151
|
-
Input(),
|
|
5152
|
-
__metadata("design:type", Object)
|
|
5153
|
-
], DialItemComponent.prototype, "item", void 0);
|
|
5154
|
-
__decorate([
|
|
5155
|
-
Input(),
|
|
5156
|
-
__metadata("design:type", TemplateRef)
|
|
5157
|
-
], DialItemComponent.prototype, "dialItemTemplate", void 0);
|
|
5158
|
-
__decorate([
|
|
5159
|
-
Input(),
|
|
5160
|
-
__metadata("design:type", Object)
|
|
5161
|
-
], DialItemComponent.prototype, "align", void 0);
|
|
5162
|
-
DialItemComponent = __decorate([
|
|
5163
|
-
Component({
|
|
5164
|
-
selector: '[kendoDialItem]',
|
|
5165
|
-
template: `
|
|
5166
|
-
<ng-template *ngIf="dialItemTemplate"
|
|
5167
|
-
[ngTemplateOutlet]="dialItemTemplate"
|
|
5168
|
-
[ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
|
|
5169
|
-
>
|
|
5083
|
+
</ul>
|
|
5170
5084
|
</ng-template>
|
|
5171
|
-
|
|
5172
|
-
<ng-container *ngIf="!dialItemTemplate">
|
|
5173
|
-
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
5174
|
-
<span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
|
|
5175
|
-
</ng-container>
|
|
5176
5085
|
`
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
],
|
|
5086
|
+
}]
|
|
5087
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: FocusService }, { type: NavigationService }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i4.AnimationBuilder }, { type: i1.LocalizationService }]; }, propDecorators: { fixedClass: [{
|
|
5088
|
+
type: HostBinding,
|
|
5089
|
+
args: ['class.k-pos-fixed']
|
|
5090
|
+
}], absoluteClass: [{
|
|
5091
|
+
type: HostBinding,
|
|
5092
|
+
args: ['class.k-pos-absolute']
|
|
5093
|
+
}], direction: [{
|
|
5094
|
+
type: HostBinding,
|
|
5095
|
+
args: ['attr.dir']
|
|
5096
|
+
}], button: [{
|
|
5097
|
+
type: ViewChild,
|
|
5098
|
+
args: ['button', { static: true }]
|
|
5099
|
+
}], popupTemplate: [{
|
|
5100
|
+
type: ViewChild,
|
|
5101
|
+
args: ['popupTemplate', { static: true }]
|
|
5102
|
+
}], dialItemTemplate: [{
|
|
5103
|
+
type: ContentChild,
|
|
5104
|
+
args: [DialItemTemplateDirective, { static: true }]
|
|
5105
|
+
}], fabTemplate: [{
|
|
5106
|
+
type: ContentChild,
|
|
5107
|
+
args: [FloatingActionButtonTemplateDirective, { static: true }]
|
|
5108
|
+
}], themeColor: [{
|
|
5109
|
+
type: Input
|
|
5110
|
+
}], size: [{
|
|
5111
|
+
type: Input
|
|
5112
|
+
}], rounded: [{
|
|
5113
|
+
type: Input
|
|
5114
|
+
}], shape: [{
|
|
5115
|
+
type: Input
|
|
5116
|
+
}], disabled: [{
|
|
5117
|
+
type: Input
|
|
5118
|
+
}], align: [{
|
|
5119
|
+
type: Input
|
|
5120
|
+
}], offset: [{
|
|
5121
|
+
type: Input
|
|
5122
|
+
}], positionMode: [{
|
|
5123
|
+
type: Input
|
|
5124
|
+
}], icon: [{
|
|
5125
|
+
type: Input
|
|
5126
|
+
}], iconClass: [{
|
|
5127
|
+
type: Input
|
|
5128
|
+
}], buttonClass: [{
|
|
5129
|
+
type: Input
|
|
5130
|
+
}], dialClass: [{
|
|
5131
|
+
type: Input
|
|
5132
|
+
}], text: [{
|
|
5133
|
+
type: Input
|
|
5134
|
+
}], dialItemAnimation: [{
|
|
5135
|
+
type: Input
|
|
5136
|
+
}], tabIndex: [{
|
|
5137
|
+
type: Input
|
|
5138
|
+
}], dialItems: [{
|
|
5139
|
+
type: Input
|
|
5140
|
+
}], onBlur: [{
|
|
5141
|
+
type: Output,
|
|
5142
|
+
args: ['blur']
|
|
5143
|
+
}], onFocus: [{
|
|
5144
|
+
type: Output,
|
|
5145
|
+
args: ['focus']
|
|
5146
|
+
}], dialItemClick: [{
|
|
5147
|
+
type: Output,
|
|
5148
|
+
args: ['dialItemClick']
|
|
5149
|
+
}], open: [{
|
|
5150
|
+
type: Output
|
|
5151
|
+
}], close: [{
|
|
5152
|
+
type: Output
|
|
5153
|
+
}] } });
|
|
5182
5154
|
|
|
5183
|
-
const exportedModules
|
|
5155
|
+
const exportedModules = [
|
|
5184
5156
|
FloatingActionButtonComponent,
|
|
5185
5157
|
DialItemTemplateDirective,
|
|
5186
5158
|
FloatingActionButtonTemplateDirective
|
|
5187
5159
|
];
|
|
5188
|
-
const declarations
|
|
5189
|
-
...exportedModules
|
|
5160
|
+
const declarations = [
|
|
5161
|
+
...exportedModules,
|
|
5190
5162
|
DialListComponent,
|
|
5191
5163
|
DialItemComponent
|
|
5192
5164
|
];
|
|
@@ -5218,15 +5190,24 @@ const declarations$1 = [
|
|
|
5218
5190
|
*
|
|
5219
5191
|
* ```
|
|
5220
5192
|
*/
|
|
5221
|
-
|
|
5222
|
-
}
|
|
5223
|
-
FloatingActionButtonModule =
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
imports: [CommonModule, PopupModule, ListModule, EventsModule]
|
|
5228
|
-
|
|
5229
|
-
]
|
|
5193
|
+
class FloatingActionButtonModule {
|
|
5194
|
+
}
|
|
5195
|
+
FloatingActionButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5196
|
+
FloatingActionButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, declarations: [FloatingActionButtonComponent,
|
|
5197
|
+
DialItemTemplateDirective,
|
|
5198
|
+
FloatingActionButtonTemplateDirective, DialListComponent,
|
|
5199
|
+
DialItemComponent], imports: [CommonModule, PopupModule, ListModule, EventsModule], exports: [FloatingActionButtonComponent,
|
|
5200
|
+
DialItemTemplateDirective,
|
|
5201
|
+
FloatingActionButtonTemplateDirective] });
|
|
5202
|
+
FloatingActionButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, imports: [[CommonModule, PopupModule, ListModule, EventsModule]] });
|
|
5203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, decorators: [{
|
|
5204
|
+
type: NgModule,
|
|
5205
|
+
args: [{
|
|
5206
|
+
declarations: [declarations],
|
|
5207
|
+
exports: [exportedModules],
|
|
5208
|
+
imports: [CommonModule, PopupModule, ListModule, EventsModule]
|
|
5209
|
+
}]
|
|
5210
|
+
}] });
|
|
5230
5211
|
|
|
5231
5212
|
/**
|
|
5232
5213
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
@@ -5259,16 +5240,21 @@ FloatingActionButtonModule = __decorate([
|
|
|
5259
5240
|
*
|
|
5260
5241
|
* ```
|
|
5261
5242
|
*/
|
|
5262
|
-
|
|
5263
|
-
}
|
|
5264
|
-
ButtonsModule =
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5243
|
+
class ButtonsModule {
|
|
5244
|
+
}
|
|
5245
|
+
ButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5246
|
+
ButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
|
|
5247
|
+
ButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, imports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
|
|
5248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, decorators: [{
|
|
5249
|
+
type: NgModule,
|
|
5250
|
+
args: [{
|
|
5251
|
+
exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
|
|
5252
|
+
}]
|
|
5253
|
+
}] });
|
|
5269
5254
|
|
|
5270
5255
|
/**
|
|
5271
5256
|
* Generated bundle index. Do not edit.
|
|
5272
5257
|
*/
|
|
5273
5258
|
|
|
5274
|
-
export {
|
|
5259
|
+
export { ButtonDirective as Button, ButtonDirective, ButtonGroupComponent as ButtonGroup, ButtonGroupComponent, ButtonGroupModule, ButtonItemTemplateDirective, ButtonModule, ButtonsModule, ChipComponent, ChipListComponent, ChipModule, DialItemTemplateDirective, DropDownButtonComponent as DropDownButton, DropDownButtonComponent, DropDownButtonModule, FloatingActionButtonComponent, FloatingActionButtonModule, FloatingActionButtonTemplateDirective, FocusableDirective, ListComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonComponent as SplitButton, SplitButtonComponent, SplitButtonCustomMessagesComponent, SplitButtonModule, TemplateContextDirective };
|
|
5260
|
+
|