@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,19 +2,25 @@
|
|
|
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 { Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, Renderer2 as Renderer, Output, Optional, NgZone } from '@angular/core';
|
|
7
|
-
import { KendoButtonService } from './button.service';
|
|
5
|
+
import { Directive, EventEmitter, HostBinding, HostListener, Input, Output, Optional } from '@angular/core';
|
|
8
6
|
import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/kendo-angular-common';
|
|
9
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
10
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
10
|
import { packageMetadata } from '../package-metadata';
|
|
12
11
|
import { getStylingClasses, getThemeColorClasses, isFirefox } from '../util';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "./button.service";
|
|
14
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
15
|
const SPAN_TAG_NAME = 'SPAN';
|
|
16
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
17
|
+
const DEFAULT_SIZE = 'medium';
|
|
18
|
+
const DEFAULT_THEME_COLOR = 'base';
|
|
19
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
14
20
|
/**
|
|
15
21
|
* Represents the Kendo UI Button component for Angular.
|
|
16
22
|
*/
|
|
17
|
-
|
|
23
|
+
export class ButtonDirective {
|
|
18
24
|
constructor(element, renderer, service, localization, ngZone) {
|
|
19
25
|
this.service = service;
|
|
20
26
|
this.ngZone = ngZone;
|
|
@@ -40,16 +46,15 @@ let ButtonDirective = class ButtonDirective {
|
|
|
40
46
|
this.isDisabled = false;
|
|
41
47
|
this.isIcon = false;
|
|
42
48
|
this.isIconClass = false;
|
|
43
|
-
this._size =
|
|
44
|
-
this._rounded =
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this._themeColor = 'base';
|
|
49
|
+
this._size = DEFAULT_SIZE;
|
|
50
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
51
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
52
|
+
this._themeColor = DEFAULT_THEME_COLOR;
|
|
48
53
|
this._focused = false;
|
|
49
|
-
this.
|
|
54
|
+
this.subs = new Subscription();
|
|
50
55
|
validatePackage(packageMetadata);
|
|
51
56
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
52
|
-
this.
|
|
57
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
53
58
|
this.element = element.nativeElement;
|
|
54
59
|
this.renderer = renderer;
|
|
55
60
|
}
|
|
@@ -150,14 +155,15 @@ let ButtonDirective = class ButtonDirective {
|
|
|
150
155
|
* ([see example]({% slug appearance_button %}#toc-size)).
|
|
151
156
|
*
|
|
152
157
|
* The possible values are:
|
|
153
|
-
* * `
|
|
154
|
-
* * `
|
|
155
|
-
* * `
|
|
156
|
-
* * `
|
|
158
|
+
* * `small`
|
|
159
|
+
* * `medium` (default)
|
|
160
|
+
* * `large`
|
|
161
|
+
* * `none`
|
|
157
162
|
*/
|
|
158
163
|
set size(size) {
|
|
159
|
-
|
|
160
|
-
this.
|
|
164
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
165
|
+
this.handleClasses(newSize, 'size');
|
|
166
|
+
this._size = newSize;
|
|
161
167
|
}
|
|
162
168
|
get size() {
|
|
163
169
|
return this._size;
|
|
@@ -167,15 +173,16 @@ let ButtonDirective = class ButtonDirective {
|
|
|
167
173
|
* ([see example]({% slug appearance_button %}#toc-rounded)).
|
|
168
174
|
*
|
|
169
175
|
* The possible values are:
|
|
170
|
-
* * `
|
|
171
|
-
* * `
|
|
172
|
-
* * `
|
|
173
|
-
* * `
|
|
174
|
-
* * `
|
|
176
|
+
* * `small`
|
|
177
|
+
* * `medium` (default)
|
|
178
|
+
* * `large`
|
|
179
|
+
* * `full`
|
|
180
|
+
* * `none`
|
|
175
181
|
*/
|
|
176
182
|
set rounded(rounded) {
|
|
177
|
-
|
|
178
|
-
this.
|
|
183
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
184
|
+
this.handleClasses(newRounded, 'rounded');
|
|
185
|
+
this._rounded = newRounded;
|
|
179
186
|
}
|
|
180
187
|
get rounded() {
|
|
181
188
|
return this._rounded;
|
|
@@ -185,16 +192,17 @@ let ButtonDirective = class ButtonDirective {
|
|
|
185
192
|
* ([see example]({% slug appearance_button %}#toc-fillMode)).
|
|
186
193
|
*
|
|
187
194
|
* The possible values are:
|
|
188
|
-
* * `
|
|
189
|
-
* * `
|
|
190
|
-
* * `
|
|
191
|
-
* * `
|
|
192
|
-
* * `
|
|
193
|
-
* * `
|
|
195
|
+
* * `flat`
|
|
196
|
+
* * `solid` (default)
|
|
197
|
+
* * `outline`
|
|
198
|
+
* * `clear`
|
|
199
|
+
* * `link`
|
|
200
|
+
* * `none`
|
|
194
201
|
*/
|
|
195
202
|
set fillMode(fillMode) {
|
|
196
|
-
|
|
197
|
-
this.
|
|
203
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
204
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
205
|
+
this._fillMode = newFillMode;
|
|
198
206
|
}
|
|
199
207
|
get fillMode() {
|
|
200
208
|
return this._fillMode;
|
|
@@ -205,40 +213,27 @@ let ButtonDirective = class ButtonDirective {
|
|
|
205
213
|
* ([see example]({% slug appearance_button %}#toc-themeColor)).
|
|
206
214
|
*
|
|
207
215
|
* The possible values are:
|
|
208
|
-
* * `
|
|
209
|
-
* * `
|
|
210
|
-
* * `
|
|
211
|
-
* * `
|
|
212
|
-
* * `
|
|
213
|
-
* * `
|
|
214
|
-
* * `
|
|
215
|
-
* * `
|
|
216
|
-
* * `
|
|
217
|
-
* * `
|
|
218
|
-
* * `
|
|
216
|
+
* * `base` (default)
|
|
217
|
+
* * `primary`
|
|
218
|
+
* * `secondary`
|
|
219
|
+
* * `tertiary`
|
|
220
|
+
* * `info`
|
|
221
|
+
* * `success`
|
|
222
|
+
* * `warning`
|
|
223
|
+
* * `error`
|
|
224
|
+
* * `dark`
|
|
225
|
+
* * `light`
|
|
226
|
+
* * `inverse`
|
|
227
|
+
* * `none`
|
|
219
228
|
*/
|
|
220
229
|
set themeColor(themeColor) {
|
|
221
|
-
|
|
222
|
-
this.
|
|
230
|
+
const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
|
|
231
|
+
this.handleThemeColor(newThemeColor);
|
|
232
|
+
this._themeColor = newThemeColor;
|
|
223
233
|
}
|
|
224
234
|
get themeColor() {
|
|
225
235
|
return this._themeColor;
|
|
226
236
|
}
|
|
227
|
-
/**
|
|
228
|
-
* The shape property specifies if the Button will form a rectangle or square.
|
|
229
|
-
* ([see example]({% slug appearance_button %}#toc-shape)).
|
|
230
|
-
*
|
|
231
|
-
* The possible values are:
|
|
232
|
-
* * `'square'`
|
|
233
|
-
* * `'rectangle'` (default)
|
|
234
|
-
*/
|
|
235
|
-
set shape(shape) {
|
|
236
|
-
this.handleClasses(shape, 'shape');
|
|
237
|
-
this._shape = shape;
|
|
238
|
-
}
|
|
239
|
-
get shape() {
|
|
240
|
-
return this._shape;
|
|
241
|
-
}
|
|
242
237
|
set isFocused(isFocused) {
|
|
243
238
|
this.toggleClass('k-focus', isFocused);
|
|
244
239
|
this._focused = isFocused;
|
|
@@ -305,8 +300,8 @@ let ButtonDirective = class ButtonDirective {
|
|
|
305
300
|
this.setAttribute('role', this.role);
|
|
306
301
|
}
|
|
307
302
|
this.ngZone.runOutsideAngular(() => {
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
303
|
+
this.subs.add(this.renderer.listen(this.element, 'click', this._onButtonClick.bind(this)));
|
|
304
|
+
this.subs.add(this.renderer.listen(this.element, 'keydown', (event) => {
|
|
310
305
|
const isSpaceOrEnter = event.keyCode === Keys.Space || event.keyCode === Keys.Enter;
|
|
311
306
|
if (isSpan && isSpaceOrEnter) {
|
|
312
307
|
this.click.emit(event);
|
|
@@ -321,7 +316,7 @@ let ButtonDirective = class ButtonDirective {
|
|
|
321
316
|
}
|
|
322
317
|
}
|
|
323
318
|
ngAfterViewInit() {
|
|
324
|
-
const stylingOptions = ['size', 'rounded', '
|
|
319
|
+
const stylingOptions = ['size', 'rounded', 'fillMode'];
|
|
325
320
|
stylingOptions.forEach(input => {
|
|
326
321
|
this.handleClasses(this[input], input);
|
|
327
322
|
});
|
|
@@ -334,9 +329,8 @@ let ButtonDirective = class ButtonDirective {
|
|
|
334
329
|
this.iconNode = null;
|
|
335
330
|
this.iconSpanNode = null;
|
|
336
331
|
this.renderer = null;
|
|
337
|
-
this.
|
|
332
|
+
this.subs.unsubscribe();
|
|
338
333
|
clearTimeout(this.deferTimeout);
|
|
339
|
-
this.domEvents.forEach(unbindHandler => unbindHandler());
|
|
340
334
|
}
|
|
341
335
|
/**
|
|
342
336
|
* Focuses the Button component.
|
|
@@ -519,159 +513,95 @@ let ButtonDirective = class ButtonDirective {
|
|
|
519
513
|
const addFillMode = fillMode ? fillMode : this.fillMode;
|
|
520
514
|
const themeColorClass = getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
|
|
521
515
|
this.renderer.removeClass(elem, themeColorClass.toRemove);
|
|
522
|
-
if (addFillMode !==
|
|
516
|
+
if (addFillMode !== 'none' && fillMode !== 'none') {
|
|
523
517
|
if (themeColorClass.toAdd) {
|
|
524
518
|
this.renderer.addClass(elem, themeColorClass.toAdd);
|
|
525
519
|
}
|
|
526
520
|
}
|
|
527
521
|
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
532
|
-
], ButtonDirective.prototype, "toggleable", void 0);
|
|
533
|
-
tslib_1.__decorate([
|
|
534
|
-
Input(),
|
|
535
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
536
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
537
|
-
], ButtonDirective.prototype, "togglable", null);
|
|
538
|
-
tslib_1.__decorate([
|
|
539
|
-
Input(),
|
|
540
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
541
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
542
|
-
], ButtonDirective.prototype, "selected", null);
|
|
543
|
-
tslib_1.__decorate([
|
|
544
|
-
Input(),
|
|
545
|
-
tslib_1.__metadata("design:type", Number),
|
|
546
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
547
|
-
], ButtonDirective.prototype, "tabIndex", null);
|
|
548
|
-
tslib_1.__decorate([
|
|
549
|
-
Input(),
|
|
550
|
-
tslib_1.__metadata("design:type", String),
|
|
551
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
552
|
-
], ButtonDirective.prototype, "icon", null);
|
|
553
|
-
tslib_1.__decorate([
|
|
554
|
-
Input(),
|
|
555
|
-
tslib_1.__metadata("design:type", String),
|
|
556
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
557
|
-
], ButtonDirective.prototype, "iconClass", null);
|
|
558
|
-
tslib_1.__decorate([
|
|
559
|
-
Input(),
|
|
560
|
-
tslib_1.__metadata("design:type", String),
|
|
561
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
562
|
-
], ButtonDirective.prototype, "imageUrl", null);
|
|
563
|
-
tslib_1.__decorate([
|
|
564
|
-
Input(),
|
|
565
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
566
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
567
|
-
], ButtonDirective.prototype, "disabled", null);
|
|
568
|
-
tslib_1.__decorate([
|
|
569
|
-
Input(),
|
|
570
|
-
tslib_1.__metadata("design:type", String),
|
|
571
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
572
|
-
], ButtonDirective.prototype, "size", null);
|
|
573
|
-
tslib_1.__decorate([
|
|
574
|
-
Input(),
|
|
575
|
-
tslib_1.__metadata("design:type", String),
|
|
576
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
577
|
-
], ButtonDirective.prototype, "rounded", null);
|
|
578
|
-
tslib_1.__decorate([
|
|
579
|
-
Input(),
|
|
580
|
-
tslib_1.__metadata("design:type", String),
|
|
581
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
582
|
-
], ButtonDirective.prototype, "fillMode", null);
|
|
583
|
-
tslib_1.__decorate([
|
|
584
|
-
Input(),
|
|
585
|
-
tslib_1.__metadata("design:type", String),
|
|
586
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
587
|
-
], ButtonDirective.prototype, "themeColor", null);
|
|
588
|
-
tslib_1.__decorate([
|
|
589
|
-
Input(),
|
|
590
|
-
tslib_1.__metadata("design:type", String),
|
|
591
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
592
|
-
], ButtonDirective.prototype, "shape", null);
|
|
593
|
-
tslib_1.__decorate([
|
|
594
|
-
Input(),
|
|
595
|
-
tslib_1.__metadata("design:type", String)
|
|
596
|
-
], ButtonDirective.prototype, "role", void 0);
|
|
597
|
-
tslib_1.__decorate([
|
|
598
|
-
Output(),
|
|
599
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
600
|
-
], ButtonDirective.prototype, "selectedChange", void 0);
|
|
601
|
-
tslib_1.__decorate([
|
|
602
|
-
Output(),
|
|
603
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
604
|
-
], ButtonDirective.prototype, "click", void 0);
|
|
605
|
-
tslib_1.__decorate([
|
|
606
|
-
HostBinding('class.k-button'),
|
|
607
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
608
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
609
|
-
], ButtonDirective.prototype, "classButton", null);
|
|
610
|
-
tslib_1.__decorate([
|
|
611
|
-
HostBinding('class.k-toggle-button'),
|
|
612
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
613
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
614
|
-
], ButtonDirective.prototype, "isToggleable", null);
|
|
615
|
-
tslib_1.__decorate([
|
|
616
|
-
HostBinding('attr.role'),
|
|
617
|
-
tslib_1.__metadata("design:type", String),
|
|
618
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
619
|
-
], ButtonDirective.prototype, "roleSetter", null);
|
|
620
|
-
tslib_1.__decorate([
|
|
621
|
-
HostBinding('attr.aria-disabled'),
|
|
622
|
-
HostBinding('class.k-disabled'),
|
|
623
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
624
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
625
|
-
], ButtonDirective.prototype, "classDisabled", null);
|
|
626
|
-
tslib_1.__decorate([
|
|
627
|
-
HostBinding('class.k-selected'),
|
|
628
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
629
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
630
|
-
], ButtonDirective.prototype, "classActive", null);
|
|
631
|
-
tslib_1.__decorate([
|
|
632
|
-
HostBinding('attr.dir'),
|
|
633
|
-
tslib_1.__metadata("design:type", String),
|
|
634
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
635
|
-
], ButtonDirective.prototype, "getDirection", null);
|
|
636
|
-
tslib_1.__decorate([
|
|
637
|
-
HostListener('focus'),
|
|
638
|
-
tslib_1.__metadata("design:type", Function),
|
|
639
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
640
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
641
|
-
], ButtonDirective.prototype, "onFocus", null);
|
|
642
|
-
tslib_1.__decorate([
|
|
643
|
-
HostListener('blur'),
|
|
644
|
-
tslib_1.__metadata("design:type", Function),
|
|
645
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
646
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
647
|
-
], ButtonDirective.prototype, "onBlur", null);
|
|
648
|
-
tslib_1.__decorate([
|
|
649
|
-
Input(),
|
|
650
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
651
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
652
|
-
], ButtonDirective.prototype, "primary", null);
|
|
653
|
-
tslib_1.__decorate([
|
|
654
|
-
Input(),
|
|
655
|
-
tslib_1.__metadata("design:type", String),
|
|
656
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
657
|
-
], ButtonDirective.prototype, "look", null);
|
|
658
|
-
ButtonDirective = tslib_1.__decorate([
|
|
659
|
-
Directive({
|
|
660
|
-
exportAs: 'kendoButton',
|
|
661
|
-
providers: [
|
|
662
|
-
LocalizationService,
|
|
663
|
-
{
|
|
664
|
-
provide: L10N_PREFIX,
|
|
665
|
-
useValue: 'kendo.button'
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
selector: 'button[kendoButton], span[kendoButton]',
|
|
669
|
-
}),
|
|
670
|
-
tslib_1.__param(2, Optional()),
|
|
671
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
672
|
-
Renderer,
|
|
673
|
-
KendoButtonService,
|
|
522
|
+
}
|
|
523
|
+
ButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.KendoButtonService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
524
|
+
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", 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: [
|
|
674
525
|
LocalizationService,
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
526
|
+
{
|
|
527
|
+
provide: L10N_PREFIX,
|
|
528
|
+
useValue: 'kendo.button'
|
|
529
|
+
}
|
|
530
|
+
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0 });
|
|
531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
532
|
+
type: Directive,
|
|
533
|
+
args: [{
|
|
534
|
+
exportAs: 'kendoButton',
|
|
535
|
+
providers: [
|
|
536
|
+
LocalizationService,
|
|
537
|
+
{
|
|
538
|
+
provide: L10N_PREFIX,
|
|
539
|
+
useValue: 'kendo.button'
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
selector: 'button[kendoButton], span[kendoButton]' // eslint-disable-line
|
|
543
|
+
}]
|
|
544
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.KendoButtonService, decorators: [{
|
|
545
|
+
type: Optional
|
|
546
|
+
}] }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { toggleable: [{
|
|
547
|
+
type: Input
|
|
548
|
+
}], togglable: [{
|
|
549
|
+
type: Input
|
|
550
|
+
}], selected: [{
|
|
551
|
+
type: Input
|
|
552
|
+
}], tabIndex: [{
|
|
553
|
+
type: Input
|
|
554
|
+
}], icon: [{
|
|
555
|
+
type: Input
|
|
556
|
+
}], iconClass: [{
|
|
557
|
+
type: Input
|
|
558
|
+
}], imageUrl: [{
|
|
559
|
+
type: Input
|
|
560
|
+
}], disabled: [{
|
|
561
|
+
type: Input
|
|
562
|
+
}], size: [{
|
|
563
|
+
type: Input
|
|
564
|
+
}], rounded: [{
|
|
565
|
+
type: Input
|
|
566
|
+
}], fillMode: [{
|
|
567
|
+
type: Input
|
|
568
|
+
}], themeColor: [{
|
|
569
|
+
type: Input
|
|
570
|
+
}], role: [{
|
|
571
|
+
type: Input
|
|
572
|
+
}], selectedChange: [{
|
|
573
|
+
type: Output
|
|
574
|
+
}], click: [{
|
|
575
|
+
type: Output
|
|
576
|
+
}], classButton: [{
|
|
577
|
+
type: HostBinding,
|
|
578
|
+
args: ['class.k-button']
|
|
579
|
+
}], isToggleable: [{
|
|
580
|
+
type: HostBinding,
|
|
581
|
+
args: ['class.k-toggle-button']
|
|
582
|
+
}], roleSetter: [{
|
|
583
|
+
type: HostBinding,
|
|
584
|
+
args: ['attr.role']
|
|
585
|
+
}], classDisabled: [{
|
|
586
|
+
type: HostBinding,
|
|
587
|
+
args: ['attr.aria-disabled']
|
|
588
|
+
}, {
|
|
589
|
+
type: HostBinding,
|
|
590
|
+
args: ['class.k-disabled']
|
|
591
|
+
}], classActive: [{
|
|
592
|
+
type: HostBinding,
|
|
593
|
+
args: ['class.k-selected']
|
|
594
|
+
}], getDirection: [{
|
|
595
|
+
type: HostBinding,
|
|
596
|
+
args: ['attr.dir']
|
|
597
|
+
}], onFocus: [{
|
|
598
|
+
type: HostListener,
|
|
599
|
+
args: ['focus']
|
|
600
|
+
}], onBlur: [{
|
|
601
|
+
type: HostListener,
|
|
602
|
+
args: ['blur']
|
|
603
|
+
}], primary: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], look: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}] } });
|
|
@@ -2,9 +2,9 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { ButtonDirective } from './button.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
10
10
|
* definition for the Button directive.
|
|
@@ -36,12 +36,15 @@ import { ButtonDirective } from './button.directive';
|
|
|
36
36
|
*
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
ButtonModule =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
export class ButtonModule {
|
|
40
|
+
}
|
|
41
|
+
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
42
|
+
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective], exports: [ButtonDirective] });
|
|
43
|
+
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, decorators: [{
|
|
45
|
+
type: NgModule,
|
|
46
|
+
args: [{
|
|
47
|
+
declarations: [ButtonDirective],
|
|
48
|
+
exports: [ButtonDirective]
|
|
49
|
+
}]
|
|
50
|
+
}] });
|
|
@@ -2,16 +2,13 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
5
|
import { Injectable } from '@angular/core';
|
|
7
6
|
import { Subject } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
11
|
+
export class KendoButtonService {
|
|
15
12
|
constructor() {
|
|
16
13
|
this.buttonClicked = new Subject();
|
|
17
14
|
this.buttonClicked$ = this.buttonClicked.asObservable();
|
|
@@ -19,8 +16,9 @@ let KendoButtonService = class KendoButtonService {
|
|
|
19
16
|
click(button) {
|
|
20
17
|
this.buttonClicked.next(button);
|
|
21
18
|
}
|
|
22
|
-
}
|
|
23
|
-
KendoButtonService =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
}
|
|
20
|
+
KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, decorators: [{
|
|
23
|
+
type: Injectable
|
|
24
|
+
}] });
|
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export {};
|