@progress/kendo-angular-buttons 7.0.6 → 8.0.0-dev.202204190655
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 +64 -62
- 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 +14 -11
- 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 +8 -4
- package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip.component.d.ts +39 -33
- 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 +2 -2
- package/{dist/es2015/common → common}/models/rounded.d.ts +2 -2
- package/{dist/es2015/common → common}/models/size.d.ts +3 -3
- package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
- package/{dist/es2015/common → common}/models/theme-color.d.ts +3 -3
- package/{dist/es2015/common → common}/models.d.ts +0 -1
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +37 -38
- package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
- package/{dist/es2015 → esm2015}/button/button.directive.js +145 -215
- 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 +88 -111
- 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 +62 -73
- package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip.component.js +171 -167
- 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/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 +5 -0
- package/{dist/es → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +185 -214
- 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 +127 -0
- package/esm2015/floatingactionbutton/dial-list.component.js +90 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +205 -210
- 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 +20 -27
- 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 +12 -12
- package/{dist/es2015 → esm2015}/listbutton/list-button.js +30 -37
- package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
- package/esm2015/listbutton/list.component.js +140 -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 +34 -0
- package/{dist/es2015 → esm2015}/main.js +7 -0
- package/{dist/es → esm2015}/navigation/key-events.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-action.js +1 -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 +23 -0
- package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +221 -209
- package/esm2015/splitbutton/splitbutton.module.js +34 -0
- package/{dist/es2015 → esm2015}/util.js +7 -7
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1885 -1941
- 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 +50 -51
- 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 +4 -2
- package/{dist/es2015/common/models/shape.d.ts → kendo-angular-buttons.d.ts} +3 -3
- package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
- package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +7 -13
- 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} +7 -1
- 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 +38 -113
- 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 +39 -27
- 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 -775
- 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/common/models/shape.js +0 -4
- 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/main.js +0 -22
- package/dist/es/navigation/navigation-action.js +0 -19
- 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 -108
- 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 -115
- 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/navigation/key-events.js +0 -13
- 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 -5577
- package/dist/npm/button/button.directive.js +0 -777
- 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 -111
- package/dist/systemjs/kendo-angular-buttons.js +0 -5
|
@@ -2,11 +2,8 @@
|
|
|
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
|
-
/* tslint:disable:no-access-missing-member */
|
|
7
|
-
import { Component, ElementRef, TemplateRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef, NgZone, ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef } from '@angular/core';
|
|
8
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
7
|
import { ListButton } from './../listbutton/list-button';
|
|
11
8
|
import { ButtonItemTemplateDirective } from './../listbutton/button-item-template.directive';
|
|
12
9
|
import { FocusService } from './../focusable/focus.service';
|
|
@@ -17,14 +14,25 @@ import { isPresent, tick } from './../util';
|
|
|
17
14
|
import { PreventableEvent } from '../preventable-event';
|
|
18
15
|
import { Keys } from '@progress/kendo-angular-common';
|
|
19
16
|
import { replaceMessagePlaceholder, getStylingClasses } from '../util';
|
|
17
|
+
import { Subscription } from 'rxjs';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
import * as i1 from "./../focusable/focus.service";
|
|
20
|
+
import * as i2 from "./../navigation/navigation.service";
|
|
21
|
+
import * as i3 from "@progress/kendo-angular-popup";
|
|
22
|
+
import * as i4 from "@progress/kendo-angular-l10n";
|
|
23
|
+
import * as i5 from "../listbutton/list.component";
|
|
24
|
+
import * as i6 from "./localization/localized-messages.directive";
|
|
25
|
+
import * as i7 from "../button/button.directive";
|
|
26
|
+
import * as i8 from "@angular/common";
|
|
20
27
|
const NAVIGATION_SETTINGS = {
|
|
21
28
|
useLeftRightArrows: true
|
|
22
29
|
};
|
|
23
|
-
const ɵ0 = NAVIGATION_SETTINGS;
|
|
24
30
|
const NAVIGATION_SETTINGS_PROVIDER = {
|
|
25
31
|
provide: NAVIGATION_CONFIG,
|
|
26
|
-
useValue:
|
|
32
|
+
useValue: NAVIGATION_SETTINGS
|
|
27
33
|
};
|
|
34
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
35
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
28
36
|
/**
|
|
29
37
|
* Represents the Kendo UI SplitButton component for Angular.
|
|
30
38
|
*
|
|
@@ -66,7 +74,7 @@ const NAVIGATION_SETTINGS_PROVIDER = {
|
|
|
66
74
|
* }
|
|
67
75
|
* ```
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
export class SplitButtonComponent extends ListButton {
|
|
70
78
|
constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
|
|
71
79
|
super(focusService, navigationService, wrapperRef, zone, localization, cdr);
|
|
72
80
|
this.popupService = popupService;
|
|
@@ -101,10 +109,10 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
101
109
|
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
|
|
102
110
|
*
|
|
103
111
|
* The possible values are:
|
|
104
|
-
* * `
|
|
105
|
-
* * `
|
|
106
|
-
* * `
|
|
107
|
-
* * `
|
|
112
|
+
* * `small`
|
|
113
|
+
* * `medium` (default)
|
|
114
|
+
* * `large`
|
|
115
|
+
* * `none`
|
|
108
116
|
*/
|
|
109
117
|
this.size = 'medium';
|
|
110
118
|
/**
|
|
@@ -124,6 +132,7 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
124
132
|
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
125
133
|
* * `light`— Applies coloring based on the `light` theme color.
|
|
126
134
|
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
135
|
+
* * `none`— Removes the built in theme color.
|
|
127
136
|
*/
|
|
128
137
|
this.themeColor = 'base';
|
|
129
138
|
/**
|
|
@@ -188,11 +197,11 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
188
197
|
/**
|
|
189
198
|
* Fires each time the SplitButton gets focused.
|
|
190
199
|
*/
|
|
191
|
-
this.onFocus = new EventEmitter();
|
|
200
|
+
this.onFocus = new EventEmitter();
|
|
192
201
|
/**
|
|
193
202
|
* Fires each time the SplitButton gets blurred.
|
|
194
203
|
*/
|
|
195
|
-
this.onBlur = new EventEmitter();
|
|
204
|
+
this.onBlur = new EventEmitter();
|
|
196
205
|
/**
|
|
197
206
|
* Fires each time the popup is about to open.
|
|
198
207
|
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
@@ -210,8 +219,9 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
210
219
|
this.listId = guid();
|
|
211
220
|
this.buttonText = '';
|
|
212
221
|
this.lockFocus = false;
|
|
213
|
-
this._rounded =
|
|
214
|
-
this._fillMode =
|
|
222
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
223
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
224
|
+
this.popupSubs = new Subscription();
|
|
215
225
|
this._itemClick = this.itemClick;
|
|
216
226
|
this._blur = this.onBlur;
|
|
217
227
|
}
|
|
@@ -220,15 +230,16 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
220
230
|
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
221
231
|
*
|
|
222
232
|
* The possible values are:
|
|
223
|
-
* * `
|
|
224
|
-
* * `
|
|
225
|
-
* * `
|
|
226
|
-
* * `
|
|
227
|
-
* * `
|
|
233
|
+
* * `small`
|
|
234
|
+
* * `medium` (default)
|
|
235
|
+
* * `large`
|
|
236
|
+
* * `full`
|
|
237
|
+
* * `none`
|
|
228
238
|
*/
|
|
229
239
|
set rounded(rounded) {
|
|
230
|
-
|
|
231
|
-
this.
|
|
240
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
241
|
+
this.handleClasses(newRounded, 'rounded');
|
|
242
|
+
this._rounded = newRounded;
|
|
232
243
|
}
|
|
233
244
|
get rounded() {
|
|
234
245
|
return this._rounded;
|
|
@@ -244,7 +255,8 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
244
255
|
* * `link`
|
|
245
256
|
*/
|
|
246
257
|
set fillMode(fillMode) {
|
|
247
|
-
|
|
258
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
259
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : newFillMode;
|
|
248
260
|
}
|
|
249
261
|
get fillMode() {
|
|
250
262
|
return this._fillMode;
|
|
@@ -559,11 +571,12 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
559
571
|
popupAlign: this.popupAlign,
|
|
560
572
|
popupClass: this.popupClasses
|
|
561
573
|
});
|
|
562
|
-
this.popupRef.popupAnchorViewportLeave.subscribe(() => (this.openState = false));
|
|
563
|
-
this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this));
|
|
574
|
+
this.popupSubs.add(this.popupRef.popupAnchorViewportLeave.subscribe(() => (this.openState = false)));
|
|
575
|
+
this.popupSubs.add(this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this)));
|
|
564
576
|
}
|
|
565
577
|
destroyPopup() {
|
|
566
578
|
if (this.popupRef) {
|
|
579
|
+
this.popupSubs.unsubscribe();
|
|
567
580
|
this.popupRef.close();
|
|
568
581
|
this.popupRef = null;
|
|
569
582
|
}
|
|
@@ -578,173 +591,18 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
578
591
|
this.renderer.addClass(elem, classes.toAdd);
|
|
579
592
|
}
|
|
580
593
|
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
], SplitButtonComponent.prototype, "iconClass", void 0);
|
|
594
|
-
tslib_1.__decorate([
|
|
595
|
-
Input(),
|
|
596
|
-
tslib_1.__metadata("design:type", String)
|
|
597
|
-
], SplitButtonComponent.prototype, "type", void 0);
|
|
598
|
-
tslib_1.__decorate([
|
|
599
|
-
Input(),
|
|
600
|
-
tslib_1.__metadata("design:type", String)
|
|
601
|
-
], SplitButtonComponent.prototype, "imageUrl", void 0);
|
|
602
|
-
tslib_1.__decorate([
|
|
603
|
-
Input(),
|
|
604
|
-
tslib_1.__metadata("design:type", String)
|
|
605
|
-
], SplitButtonComponent.prototype, "size", void 0);
|
|
606
|
-
tslib_1.__decorate([
|
|
607
|
-
Input(),
|
|
608
|
-
tslib_1.__metadata("design:type", String),
|
|
609
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
610
|
-
], SplitButtonComponent.prototype, "rounded", null);
|
|
611
|
-
tslib_1.__decorate([
|
|
612
|
-
Input(),
|
|
613
|
-
tslib_1.__metadata("design:type", String),
|
|
614
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
615
|
-
], SplitButtonComponent.prototype, "fillMode", null);
|
|
616
|
-
tslib_1.__decorate([
|
|
617
|
-
Input(),
|
|
618
|
-
tslib_1.__metadata("design:type", String)
|
|
619
|
-
], SplitButtonComponent.prototype, "themeColor", void 0);
|
|
620
|
-
tslib_1.__decorate([
|
|
621
|
-
Input(),
|
|
622
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
623
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
624
|
-
], SplitButtonComponent.prototype, "disabled", null);
|
|
625
|
-
tslib_1.__decorate([
|
|
626
|
-
Input(),
|
|
627
|
-
tslib_1.__metadata("design:type", Object),
|
|
628
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
629
|
-
], SplitButtonComponent.prototype, "popupSettings", null);
|
|
630
|
-
tslib_1.__decorate([
|
|
631
|
-
Input(),
|
|
632
|
-
tslib_1.__metadata("design:type", Number)
|
|
633
|
-
], SplitButtonComponent.prototype, "tabIndex", void 0);
|
|
634
|
-
tslib_1.__decorate([
|
|
635
|
-
Input(),
|
|
636
|
-
tslib_1.__metadata("design:type", String)
|
|
637
|
-
], SplitButtonComponent.prototype, "textField", void 0);
|
|
638
|
-
tslib_1.__decorate([
|
|
639
|
-
Input(),
|
|
640
|
-
tslib_1.__metadata("design:type", Object),
|
|
641
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
642
|
-
], SplitButtonComponent.prototype, "data", null);
|
|
643
|
-
tslib_1.__decorate([
|
|
644
|
-
Input(),
|
|
645
|
-
tslib_1.__metadata("design:type", Object)
|
|
646
|
-
], SplitButtonComponent.prototype, "buttonClass", void 0);
|
|
647
|
-
tslib_1.__decorate([
|
|
648
|
-
Input(),
|
|
649
|
-
tslib_1.__metadata("design:type", Object)
|
|
650
|
-
], SplitButtonComponent.prototype, "arrowButtonClass", void 0);
|
|
651
|
-
tslib_1.__decorate([
|
|
652
|
-
Input(),
|
|
653
|
-
tslib_1.__metadata("design:type", String)
|
|
654
|
-
], SplitButtonComponent.prototype, "arrowButtonIcon", void 0);
|
|
655
|
-
tslib_1.__decorate([
|
|
656
|
-
Output(),
|
|
657
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
658
|
-
], SplitButtonComponent.prototype, "buttonClick", void 0);
|
|
659
|
-
tslib_1.__decorate([
|
|
660
|
-
Output(),
|
|
661
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
662
|
-
], SplitButtonComponent.prototype, "itemClick", void 0);
|
|
663
|
-
tslib_1.__decorate([
|
|
664
|
-
Output('focus'),
|
|
665
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
666
|
-
], SplitButtonComponent.prototype, "onFocus", void 0);
|
|
667
|
-
tslib_1.__decorate([
|
|
668
|
-
Output('blur'),
|
|
669
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
670
|
-
], SplitButtonComponent.prototype, "onBlur", void 0);
|
|
671
|
-
tslib_1.__decorate([
|
|
672
|
-
Output(),
|
|
673
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
674
|
-
], SplitButtonComponent.prototype, "open", void 0);
|
|
675
|
-
tslib_1.__decorate([
|
|
676
|
-
Output(),
|
|
677
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
678
|
-
], SplitButtonComponent.prototype, "close", void 0);
|
|
679
|
-
tslib_1.__decorate([
|
|
680
|
-
ContentChild(ButtonItemTemplateDirective, { static: false }),
|
|
681
|
-
tslib_1.__metadata("design:type", ButtonItemTemplateDirective)
|
|
682
|
-
], SplitButtonComponent.prototype, "itemTemplate", void 0);
|
|
683
|
-
tslib_1.__decorate([
|
|
684
|
-
ViewChild('button', { static: true }),
|
|
685
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
686
|
-
], SplitButtonComponent.prototype, "button", void 0);
|
|
687
|
-
tslib_1.__decorate([
|
|
688
|
-
ViewChild('arrowButton', { static: true, read: ElementRef }),
|
|
689
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
690
|
-
], SplitButtonComponent.prototype, "arrowButton", void 0);
|
|
691
|
-
tslib_1.__decorate([
|
|
692
|
-
ViewChild('popupTemplate', { static: true }),
|
|
693
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
694
|
-
], SplitButtonComponent.prototype, "popupTemplate", void 0);
|
|
695
|
-
tslib_1.__decorate([
|
|
696
|
-
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
697
|
-
tslib_1.__metadata("design:type", ViewContainerRef)
|
|
698
|
-
], SplitButtonComponent.prototype, "containerRef", void 0);
|
|
699
|
-
tslib_1.__decorate([
|
|
700
|
-
HostBinding('class.k-focus'),
|
|
701
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
702
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
703
|
-
], SplitButtonComponent.prototype, "isFocused", null);
|
|
704
|
-
tslib_1.__decorate([
|
|
705
|
-
HostBinding('class.k-split-button'),
|
|
706
|
-
HostBinding('class.k-button-group'),
|
|
707
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
708
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
709
|
-
], SplitButtonComponent.prototype, "widgetClasses", null);
|
|
710
|
-
tslib_1.__decorate([
|
|
711
|
-
HostBinding('attr.dir'),
|
|
712
|
-
tslib_1.__metadata("design:type", String),
|
|
713
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
714
|
-
], SplitButtonComponent.prototype, "dir", null);
|
|
715
|
-
tslib_1.__decorate([
|
|
716
|
-
HostListener('keydown', ['$event']),
|
|
717
|
-
tslib_1.__metadata("design:type", Function),
|
|
718
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
719
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
720
|
-
], SplitButtonComponent.prototype, "keydown", null);
|
|
721
|
-
tslib_1.__decorate([
|
|
722
|
-
HostListener('keypress', ['$event']),
|
|
723
|
-
tslib_1.__metadata("design:type", Function),
|
|
724
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
725
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
726
|
-
], SplitButtonComponent.prototype, "keypress", null);
|
|
727
|
-
tslib_1.__decorate([
|
|
728
|
-
HostListener('keyup', ['$event']),
|
|
729
|
-
tslib_1.__metadata("design:type", Function),
|
|
730
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
731
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
732
|
-
], SplitButtonComponent.prototype, "keyup", null);
|
|
733
|
-
SplitButtonComponent = tslib_1.__decorate([
|
|
734
|
-
Component({
|
|
735
|
-
exportAs: 'kendoSplitButton',
|
|
736
|
-
providers: [
|
|
737
|
-
FocusService,
|
|
738
|
-
NavigationService,
|
|
739
|
-
NAVIGATION_SETTINGS_PROVIDER,
|
|
740
|
-
LocalizationService,
|
|
741
|
-
{
|
|
742
|
-
provide: L10N_PREFIX,
|
|
743
|
-
useValue: 'kendo.splitbutton'
|
|
744
|
-
}
|
|
745
|
-
],
|
|
746
|
-
selector: 'kendo-splitbutton',
|
|
747
|
-
template: `
|
|
594
|
+
}
|
|
595
|
+
SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
596
|
+
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: [
|
|
597
|
+
FocusService,
|
|
598
|
+
NavigationService,
|
|
599
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
600
|
+
LocalizationService,
|
|
601
|
+
{
|
|
602
|
+
provide: L10N_PREFIX,
|
|
603
|
+
useValue: 'kendo.splitbutton'
|
|
604
|
+
}
|
|
605
|
+
], 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: `
|
|
748
606
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
749
607
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
750
608
|
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
@@ -780,19 +638,100 @@ SplitButtonComponent = tslib_1.__decorate([
|
|
|
780
638
|
{{ text }}
|
|
781
639
|
</span><ng-content></ng-content>
|
|
782
640
|
</button>
|
|
641
|
+
<button kendoButton #arrowButton type="button"
|
|
642
|
+
class="k-split-button-arrow"
|
|
643
|
+
[class.k-active]="activeArrow"
|
|
644
|
+
[ngClass]="arrowButtonClass"
|
|
645
|
+
[disabled]="disabled"
|
|
646
|
+
[icon]="arrowButtonIcon"
|
|
647
|
+
[size]="size"
|
|
648
|
+
[rounded]="rounded"
|
|
649
|
+
[fillMode]="fillMode"
|
|
650
|
+
[themeColor]="themeColor"
|
|
651
|
+
[tabindex]="-1"
|
|
652
|
+
(click)="onArrowButtonClick()"
|
|
653
|
+
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
654
|
+
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
655
|
+
></button>
|
|
656
|
+
<ng-template #popupTemplate>
|
|
657
|
+
<kendo-button-list
|
|
658
|
+
[id]="listId"
|
|
659
|
+
[data]="data"
|
|
660
|
+
[textField]="textField"
|
|
661
|
+
[itemTemplate]="itemTemplate"
|
|
662
|
+
(onItemClick)="onItemClick($event)"
|
|
663
|
+
(keydown)="keyDownHandler($event)"
|
|
664
|
+
(keypress)="keyPressHandler($event)"
|
|
665
|
+
(keyup)="keyUpHandler($event)"
|
|
666
|
+
[attr.dir]="dir"
|
|
667
|
+
[size]="size"
|
|
668
|
+
>
|
|
669
|
+
</kendo-button-list>
|
|
670
|
+
</ng-template>
|
|
671
|
+
<ng-container #container></ng-container>
|
|
672
|
+
`, isInline: true, components: [{ type: i5.ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: i6.LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { type: i7.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
674
|
+
type: Component,
|
|
675
|
+
args: [{
|
|
676
|
+
exportAs: 'kendoSplitButton',
|
|
677
|
+
providers: [
|
|
678
|
+
FocusService,
|
|
679
|
+
NavigationService,
|
|
680
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
681
|
+
LocalizationService,
|
|
682
|
+
{
|
|
683
|
+
provide: L10N_PREFIX,
|
|
684
|
+
useValue: 'kendo.splitbutton'
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
selector: 'kendo-splitbutton',
|
|
688
|
+
template: `
|
|
689
|
+
<ng-container kendoSplitButtonLocalizedMessages
|
|
690
|
+
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
691
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
692
|
+
</ng-container>
|
|
783
693
|
<button
|
|
784
694
|
kendoButton
|
|
785
|
-
#
|
|
786
|
-
type="
|
|
695
|
+
#button
|
|
696
|
+
[type]="type"
|
|
697
|
+
[tabindex]="componentTabIndex"
|
|
698
|
+
[disabled]="disabled"
|
|
699
|
+
[size]="size"
|
|
700
|
+
[rounded]="rounded"
|
|
701
|
+
[fillMode]="fillMode"
|
|
702
|
+
[themeColor]="themeColor"
|
|
703
|
+
[icon]="icon"
|
|
704
|
+
[class.k-active]="active"
|
|
705
|
+
[class.k-icon-button]="!text && icon"
|
|
706
|
+
[iconClass]="iconClass"
|
|
707
|
+
[imageUrl]="imageUrl"
|
|
708
|
+
[ngClass]="buttonClass"
|
|
709
|
+
(focus)="onButtonFocus()"
|
|
710
|
+
(click)="onButtonClick()"
|
|
711
|
+
(blur)="onButtonBlur()"
|
|
712
|
+
(mousedown)="toggleButtonActiveState(true)"
|
|
713
|
+
(mouseup)="toggleButtonActiveState(false)"
|
|
714
|
+
[attr.aria-disabled]="disabled"
|
|
715
|
+
[attr.aria-expanded]="openState"
|
|
716
|
+
[attr.aria-haspopup]="true"
|
|
717
|
+
[attr.aria-owns]="listId"
|
|
718
|
+
[attr.aria-label]="ariaLabel"
|
|
719
|
+
>
|
|
720
|
+
<span *ngIf="text" class="k-button-text">
|
|
721
|
+
{{ text }}
|
|
722
|
+
</span><ng-content></ng-content>
|
|
723
|
+
</button>
|
|
724
|
+
<button kendoButton #arrowButton type="button"
|
|
725
|
+
class="k-split-button-arrow"
|
|
787
726
|
[class.k-active]="activeArrow"
|
|
727
|
+
[ngClass]="arrowButtonClass"
|
|
788
728
|
[disabled]="disabled"
|
|
789
729
|
[icon]="arrowButtonIcon"
|
|
790
730
|
[size]="size"
|
|
791
731
|
[rounded]="rounded"
|
|
792
732
|
[fillMode]="fillMode"
|
|
793
|
-
[themeColor]="
|
|
733
|
+
[themeColor]="themeColor"
|
|
794
734
|
[tabindex]="-1"
|
|
795
|
-
[ngClass]="arrowButtonClass"
|
|
796
735
|
(click)="onArrowButtonClick()"
|
|
797
736
|
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
798
737
|
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
@@ -814,16 +753,89 @@ SplitButtonComponent = tslib_1.__decorate([
|
|
|
814
753
|
</ng-template>
|
|
815
754
|
<ng-container #container></ng-container>
|
|
816
755
|
`
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
756
|
+
}]
|
|
757
|
+
}], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { text: [{
|
|
758
|
+
type: Input
|
|
759
|
+
}], icon: [{
|
|
760
|
+
type: Input
|
|
761
|
+
}], iconClass: [{
|
|
762
|
+
type: Input
|
|
763
|
+
}], type: [{
|
|
764
|
+
type: Input
|
|
765
|
+
}], imageUrl: [{
|
|
766
|
+
type: Input
|
|
767
|
+
}], size: [{
|
|
768
|
+
type: Input
|
|
769
|
+
}], rounded: [{
|
|
770
|
+
type: Input
|
|
771
|
+
}], fillMode: [{
|
|
772
|
+
type: Input
|
|
773
|
+
}], themeColor: [{
|
|
774
|
+
type: Input
|
|
775
|
+
}], disabled: [{
|
|
776
|
+
type: Input
|
|
777
|
+
}], popupSettings: [{
|
|
778
|
+
type: Input
|
|
779
|
+
}], tabIndex: [{
|
|
780
|
+
type: Input
|
|
781
|
+
}], textField: [{
|
|
782
|
+
type: Input
|
|
783
|
+
}], data: [{
|
|
784
|
+
type: Input
|
|
785
|
+
}], buttonClass: [{
|
|
786
|
+
type: Input
|
|
787
|
+
}], arrowButtonClass: [{
|
|
788
|
+
type: Input
|
|
789
|
+
}], arrowButtonIcon: [{
|
|
790
|
+
type: Input
|
|
791
|
+
}], buttonClick: [{
|
|
792
|
+
type: Output
|
|
793
|
+
}], itemClick: [{
|
|
794
|
+
type: Output
|
|
795
|
+
}], onFocus: [{
|
|
796
|
+
type: Output,
|
|
797
|
+
args: ['focus']
|
|
798
|
+
}], onBlur: [{
|
|
799
|
+
type: Output,
|
|
800
|
+
args: ['blur']
|
|
801
|
+
}], open: [{
|
|
802
|
+
type: Output
|
|
803
|
+
}], close: [{
|
|
804
|
+
type: Output
|
|
805
|
+
}], itemTemplate: [{
|
|
806
|
+
type: ContentChild,
|
|
807
|
+
args: [ButtonItemTemplateDirective, { static: false }]
|
|
808
|
+
}], button: [{
|
|
809
|
+
type: ViewChild,
|
|
810
|
+
args: ['button', { static: true }]
|
|
811
|
+
}], arrowButton: [{
|
|
812
|
+
type: ViewChild,
|
|
813
|
+
args: ['arrowButton', { static: true, read: ElementRef }]
|
|
814
|
+
}], popupTemplate: [{
|
|
815
|
+
type: ViewChild,
|
|
816
|
+
args: ['popupTemplate', { static: true }]
|
|
817
|
+
}], containerRef: [{
|
|
818
|
+
type: ViewChild,
|
|
819
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
820
|
+
}], isFocused: [{
|
|
821
|
+
type: HostBinding,
|
|
822
|
+
args: ['class.k-focus']
|
|
823
|
+
}], widgetClasses: [{
|
|
824
|
+
type: HostBinding,
|
|
825
|
+
args: ['class.k-split-button']
|
|
826
|
+
}, {
|
|
827
|
+
type: HostBinding,
|
|
828
|
+
args: ['class.k-button-group']
|
|
829
|
+
}], dir: [{
|
|
830
|
+
type: HostBinding,
|
|
831
|
+
args: ['attr.dir']
|
|
832
|
+
}], keydown: [{
|
|
833
|
+
type: HostListener,
|
|
834
|
+
args: ['keydown', ['$event']]
|
|
835
|
+
}], keypress: [{
|
|
836
|
+
type: HostListener,
|
|
837
|
+
args: ['keypress', ['$event']]
|
|
838
|
+
}], keyup: [{
|
|
839
|
+
type: HostListener,
|
|
840
|
+
args: ['keyup', ['$event']]
|
|
841
|
+
}] } });
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { ButtonModule } from './../button/button.module';
|
|
9
|
+
import { ListModule } from './../listbutton/list.module';
|
|
10
|
+
import { SplitButtonComponent } from './splitbutton.component';
|
|
11
|
+
import { LocalizedSplitButtonMessagesDirective } from './localization/localized-messages.directive';
|
|
12
|
+
import { SplitButtonCustomMessagesComponent } from './localization/custom-messages.component';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*
|
|
17
|
+
* The exported package module.
|
|
18
|
+
*
|
|
19
|
+
* The package exports:
|
|
20
|
+
* - `SplitButtonComponent`—The SplitButtonComponent component class.
|
|
21
|
+
*/
|
|
22
|
+
export class SplitButtonModule {
|
|
23
|
+
}
|
|
24
|
+
SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
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] });
|
|
26
|
+
SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
28
|
+
type: NgModule,
|
|
29
|
+
args: [{
|
|
30
|
+
declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
31
|
+
exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
32
|
+
imports: [CommonModule, PopupModule, ButtonModule, ListModule]
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
@@ -2,9 +2,10 @@
|
|
|
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
|
-
/* tslint:disable:no-null-keyword */
|
|
6
|
-
/* tslint:disable:no-bitwise */
|
|
7
5
|
import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
8
9
|
const resolvedPromise = Promise.resolve(null);
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
@@ -66,18 +67,17 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
66
67
|
case 'size':
|
|
67
68
|
return {
|
|
68
69
|
toRemove: `k-${componentType}-${SIZES[previousValue]}`,
|
|
69
|
-
toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` :
|
|
70
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
|
|
70
71
|
};
|
|
71
72
|
case 'rounded':
|
|
72
73
|
return {
|
|
73
74
|
toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
|
|
74
|
-
toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` :
|
|
75
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
|
|
75
76
|
};
|
|
76
77
|
case 'fillMode':
|
|
77
|
-
case 'shape':
|
|
78
78
|
return {
|
|
79
79
|
toRemove: `k-${componentType}-${previousValue}`,
|
|
80
|
-
toAdd: newValue ? `k-${componentType}-${newValue}` :
|
|
80
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
|
|
81
81
|
};
|
|
82
82
|
default:
|
|
83
83
|
break;
|
|
@@ -91,7 +91,7 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
91
91
|
export const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
|
|
92
92
|
return {
|
|
93
93
|
toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
|
|
94
|
-
toAdd: newValue ? `k-${componentType}-${fillMode}-${newValue}` :
|
|
94
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
/**
|