@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
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var button_directive_1 = require("./button.directive");
|
|
10
|
-
/**
|
|
11
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
12
|
-
* definition for the Button directive.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
*
|
|
16
|
-
* ```ts-no-run
|
|
17
|
-
* // Import the Button module
|
|
18
|
-
* import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
19
|
-
*
|
|
20
|
-
* // The browser platform with a compiler
|
|
21
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
22
|
-
*
|
|
23
|
-
* import { NgModule } from '@angular/core';
|
|
24
|
-
*
|
|
25
|
-
* // Import the app component
|
|
26
|
-
* import { AppComponent } from './app.component';
|
|
27
|
-
*
|
|
28
|
-
* // Define the app module
|
|
29
|
-
* _@NgModule({
|
|
30
|
-
* declarations: [AppComponent], // declare app component
|
|
31
|
-
* imports: [BrowserModule, ButtonModule], // import Button module
|
|
32
|
-
* bootstrap: [AppComponent]
|
|
33
|
-
* })
|
|
34
|
-
* export class AppModule {}
|
|
35
|
-
*
|
|
36
|
-
* // Compile and launch the module
|
|
37
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
38
|
-
*
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
var ButtonModule = /** @class */ (function () {
|
|
42
|
-
function ButtonModule() {
|
|
43
|
-
}
|
|
44
|
-
ButtonModule = tslib_1.__decorate([
|
|
45
|
-
core_1.NgModule({
|
|
46
|
-
declarations: [button_directive_1.ButtonDirective],
|
|
47
|
-
exports: [button_directive_1.ButtonDirective]
|
|
48
|
-
})
|
|
49
|
-
], ButtonModule);
|
|
50
|
-
return ButtonModule;
|
|
51
|
-
}());
|
|
52
|
-
exports.ButtonModule = ButtonModule;
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var rxjs_1 = require("rxjs");
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var KendoButtonService = /** @class */ (function () {
|
|
14
|
-
function KendoButtonService() {
|
|
15
|
-
this.buttonClicked = new rxjs_1.Subject();
|
|
16
|
-
this.buttonClicked$ = this.buttonClicked.asObservable();
|
|
17
|
-
}
|
|
18
|
-
KendoButtonService.prototype.click = function (button) {
|
|
19
|
-
this.buttonClicked.next(button);
|
|
20
|
-
};
|
|
21
|
-
KendoButtonService = tslib_1.__decorate([
|
|
22
|
-
core_1.Injectable()
|
|
23
|
-
], KendoButtonService);
|
|
24
|
-
return KendoButtonService;
|
|
25
|
-
}());
|
|
26
|
-
exports.KendoButtonService = KendoButtonService;
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,355 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var button_directive_1 = require("../button/button.directive");
|
|
9
|
-
var core_1 = require("@angular/core");
|
|
10
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
11
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
12
|
-
var button_service_1 = require("../button/button.service");
|
|
13
|
-
var util_1 = require("../util");
|
|
14
|
-
var preventable_event_1 = require("../preventable-event");
|
|
15
|
-
var package_metadata_1 = require("../package-metadata");
|
|
16
|
-
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
var tabindex = 'tabindex';
|
|
21
|
-
/**
|
|
22
|
-
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
23
|
-
*/
|
|
24
|
-
var ButtonGroupComponent = /** @class */ (function () {
|
|
25
|
-
function ButtonGroupComponent(service, localization, element) {
|
|
26
|
-
var _this = this;
|
|
27
|
-
this.service = service;
|
|
28
|
-
this.element = element;
|
|
29
|
-
/**
|
|
30
|
-
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
31
|
-
*/
|
|
32
|
-
this.selection = 'multiple';
|
|
33
|
-
/**
|
|
34
|
-
* Fires every time keyboard navigation occurs.
|
|
35
|
-
*/
|
|
36
|
-
this.navigate = new core_1.EventEmitter();
|
|
37
|
-
this._tabIndex = 0;
|
|
38
|
-
this.currentTabIndex = 0;
|
|
39
|
-
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
40
|
-
this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
|
|
41
|
-
var rtl = _a.rtl;
|
|
42
|
-
return _this.direction = rtl ? 'rtl' : 'ltr';
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "tabIndex", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this._tabIndex;
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
51
|
-
*/
|
|
52
|
-
set: function (value) {
|
|
53
|
-
this._tabIndex = value;
|
|
54
|
-
this.currentTabIndex = value;
|
|
55
|
-
},
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "wrapperClass", {
|
|
60
|
-
get: function () {
|
|
61
|
-
return true;
|
|
62
|
-
},
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "disabledClass", {
|
|
67
|
-
get: function () {
|
|
68
|
-
return this.disabled;
|
|
69
|
-
},
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "stretchedClass", {
|
|
74
|
-
get: function () {
|
|
75
|
-
return !!this.width;
|
|
76
|
-
},
|
|
77
|
-
enumerable: true,
|
|
78
|
-
configurable: true
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "getRole", {
|
|
81
|
-
get: function () {
|
|
82
|
-
return this.isSelectionSingle() ? 'radiogroup' : 'group';
|
|
83
|
-
},
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "dir", {
|
|
88
|
-
get: function () {
|
|
89
|
-
return this.direction;
|
|
90
|
-
},
|
|
91
|
-
enumerable: true,
|
|
92
|
-
configurable: true
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "ariaDisabled", {
|
|
95
|
-
get: function () {
|
|
96
|
-
return this.disabled;
|
|
97
|
-
},
|
|
98
|
-
enumerable: true,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "wrapperWidth", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this.width;
|
|
104
|
-
},
|
|
105
|
-
enumerable: true,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(ButtonGroupComponent.prototype, "wrapperTabIndex", {
|
|
109
|
-
get: function () {
|
|
110
|
-
return this.disabled ? undefined : this.currentTabIndex;
|
|
111
|
-
},
|
|
112
|
-
enumerable: true,
|
|
113
|
-
configurable: true
|
|
114
|
-
});
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
*/
|
|
118
|
-
ButtonGroupComponent.prototype.keydown = function (event) {
|
|
119
|
-
if (!this.disabled) {
|
|
120
|
-
this.navigateFocus(event);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* @hidden
|
|
125
|
-
*/
|
|
126
|
-
ButtonGroupComponent.prototype.onFocus = function () {
|
|
127
|
-
this.currentTabIndex = -1;
|
|
128
|
-
var focusedIndex = this.buttons.toArray().findIndex(function (current) { return current.element.tabIndex !== -1; });
|
|
129
|
-
var index = focusedIndex === -1 ? 0 : focusedIndex;
|
|
130
|
-
this.focus(this.buttons.filter(function (_current, i) {
|
|
131
|
-
return i === index;
|
|
132
|
-
}));
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* @hidden
|
|
136
|
-
*/
|
|
137
|
-
ButtonGroupComponent.prototype.focusout = function (event) {
|
|
138
|
-
if (event.relatedTarget && event.relatedTarget.parentNode !== this.element.nativeElement) {
|
|
139
|
-
this.defocus(this.buttons.toArray());
|
|
140
|
-
this.currentTabIndex = this.tabIndex;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
ButtonGroupComponent.prototype.ngOnInit = function () {
|
|
144
|
-
var _this = this;
|
|
145
|
-
this.subscription = this.service.buttonClicked$.subscribe(function (button) {
|
|
146
|
-
var newSelectionValue;
|
|
147
|
-
if (_this.isSelectionSingle()) {
|
|
148
|
-
newSelectionValue = true;
|
|
149
|
-
_this.deactivate(_this.buttons.filter(function (current) { return current !== button; }));
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
_this.defocus(_this.buttons.toArray());
|
|
153
|
-
newSelectionValue = !button.selected;
|
|
154
|
-
}
|
|
155
|
-
if (button.togglable) {
|
|
156
|
-
button.setSelected(newSelectionValue);
|
|
157
|
-
}
|
|
158
|
-
button.setAttribute(tabindex, '0');
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
ButtonGroupComponent.prototype.ngOnChanges = function (change) {
|
|
162
|
-
var _this = this;
|
|
163
|
-
if (kendo_angular_common_1.isChanged('disabled', change)) {
|
|
164
|
-
this.buttons.forEach(function (button) {
|
|
165
|
-
if (util_1.isPresent(_this.disabled)) {
|
|
166
|
-
button.disabled = _this.disabled;
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
ButtonGroupComponent.prototype.ngAfterContentInit = function () {
|
|
172
|
-
this.buttons.forEach(function (button) {
|
|
173
|
-
if (button.selected) {
|
|
174
|
-
button.setAttribute(tabindex, '0');
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
button.setAttribute(tabindex, '-1');
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
ButtonGroupComponent.prototype.ngAfterViewChecked = function () {
|
|
182
|
-
if (this.buttons.length) {
|
|
183
|
-
this.buttons.first.renderer.addClass(this.buttons.first.element, 'k-group-start');
|
|
184
|
-
this.buttons.last.renderer.addClass(this.buttons.last.element, 'k-group-end');
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
ButtonGroupComponent.prototype.ngOnDestroy = function () {
|
|
188
|
-
this.subscription.unsubscribe();
|
|
189
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
190
|
-
};
|
|
191
|
-
ButtonGroupComponent.prototype.ngAfterContentChecked = function () {
|
|
192
|
-
this.verifySettings();
|
|
193
|
-
};
|
|
194
|
-
ButtonGroupComponent.prototype.navigateFocus = function (event) {
|
|
195
|
-
var focusedIndex = this.buttons.toArray().findIndex(function (current) { return current.element.tabIndex !== -1; });
|
|
196
|
-
var firstIndex = 0;
|
|
197
|
-
var lastIndex = this.buttons.length - 1;
|
|
198
|
-
var eventArgs = new preventable_event_1.PreventableEvent();
|
|
199
|
-
if (event.keyCode === kendo_angular_common_1.Keys.ArrowRight && focusedIndex < lastIndex) {
|
|
200
|
-
this.navigate.emit(eventArgs);
|
|
201
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
202
|
-
this.defocus(this.buttons.toArray());
|
|
203
|
-
this.focus(this.buttons.filter(function (_current, index) {
|
|
204
|
-
return index === focusedIndex + 1;
|
|
205
|
-
}));
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
if (event.keyCode === kendo_angular_common_1.Keys.ArrowLeft && focusedIndex > firstIndex) {
|
|
209
|
-
this.navigate.emit(eventArgs);
|
|
210
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
211
|
-
this.defocus(this.buttons.toArray());
|
|
212
|
-
this.focus(this.buttons.filter(function (_current, index) {
|
|
213
|
-
return index === focusedIndex - 1;
|
|
214
|
-
}));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
ButtonGroupComponent.prototype.deactivate = function (buttons) {
|
|
219
|
-
buttons.forEach(function (button) {
|
|
220
|
-
button.setSelected(false);
|
|
221
|
-
button.setAttribute(tabindex, '-1');
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
ButtonGroupComponent.prototype.activate = function (buttons) {
|
|
225
|
-
buttons.forEach(function (button) {
|
|
226
|
-
button.setSelected(true);
|
|
227
|
-
button.setAttribute(tabindex, '0');
|
|
228
|
-
button.focus();
|
|
229
|
-
});
|
|
230
|
-
};
|
|
231
|
-
ButtonGroupComponent.prototype.defocus = function (buttons) {
|
|
232
|
-
buttons.forEach(function (button) {
|
|
233
|
-
button.setAttribute(tabindex, '-1');
|
|
234
|
-
});
|
|
235
|
-
};
|
|
236
|
-
ButtonGroupComponent.prototype.focus = function (buttons) {
|
|
237
|
-
buttons.forEach(function (button) {
|
|
238
|
-
button.setAttribute(tabindex, '0');
|
|
239
|
-
button.focus();
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
ButtonGroupComponent.prototype.verifySettings = function () {
|
|
243
|
-
if (core_1.isDevMode()) {
|
|
244
|
-
if (this.isSelectionSingle() && this.buttons.filter(function (button) { return button.selected; }).length > 1) {
|
|
245
|
-
throw new Error('Having multiple selected buttons with single selection mode is not supported');
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
ButtonGroupComponent.prototype.isSelectionSingle = function () {
|
|
250
|
-
return this.selection === 'single';
|
|
251
|
-
};
|
|
252
|
-
tslib_1.__decorate([
|
|
253
|
-
core_1.Input('disabled'),
|
|
254
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
255
|
-
], ButtonGroupComponent.prototype, "disabled", void 0);
|
|
256
|
-
tslib_1.__decorate([
|
|
257
|
-
core_1.Input('selection'),
|
|
258
|
-
tslib_1.__metadata("design:type", String)
|
|
259
|
-
], ButtonGroupComponent.prototype, "selection", void 0);
|
|
260
|
-
tslib_1.__decorate([
|
|
261
|
-
core_1.Input('width'),
|
|
262
|
-
tslib_1.__metadata("design:type", String)
|
|
263
|
-
], ButtonGroupComponent.prototype, "width", void 0);
|
|
264
|
-
tslib_1.__decorate([
|
|
265
|
-
core_1.Input(),
|
|
266
|
-
tslib_1.__metadata("design:type", Number),
|
|
267
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
268
|
-
], ButtonGroupComponent.prototype, "tabIndex", null);
|
|
269
|
-
tslib_1.__decorate([
|
|
270
|
-
core_1.Output(),
|
|
271
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
272
|
-
], ButtonGroupComponent.prototype, "navigate", void 0);
|
|
273
|
-
tslib_1.__decorate([
|
|
274
|
-
core_1.ContentChildren(button_directive_1.ButtonDirective),
|
|
275
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
276
|
-
], ButtonGroupComponent.prototype, "buttons", void 0);
|
|
277
|
-
tslib_1.__decorate([
|
|
278
|
-
core_1.HostBinding('class.k-button-group'),
|
|
279
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
280
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
281
|
-
], ButtonGroupComponent.prototype, "wrapperClass", null);
|
|
282
|
-
tslib_1.__decorate([
|
|
283
|
-
core_1.HostBinding('class.k-disabled'),
|
|
284
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
285
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
286
|
-
], ButtonGroupComponent.prototype, "disabledClass", null);
|
|
287
|
-
tslib_1.__decorate([
|
|
288
|
-
core_1.HostBinding('class.k-button-group-stretched'),
|
|
289
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
290
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
291
|
-
], ButtonGroupComponent.prototype, "stretchedClass", null);
|
|
292
|
-
tslib_1.__decorate([
|
|
293
|
-
core_1.HostBinding('attr.role'),
|
|
294
|
-
tslib_1.__metadata("design:type", String),
|
|
295
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
296
|
-
], ButtonGroupComponent.prototype, "getRole", null);
|
|
297
|
-
tslib_1.__decorate([
|
|
298
|
-
core_1.HostBinding('attr.dir'),
|
|
299
|
-
tslib_1.__metadata("design:type", String),
|
|
300
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
301
|
-
], ButtonGroupComponent.prototype, "dir", null);
|
|
302
|
-
tslib_1.__decorate([
|
|
303
|
-
core_1.HostBinding('attr.aria-disabled'),
|
|
304
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
305
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
306
|
-
], ButtonGroupComponent.prototype, "ariaDisabled", null);
|
|
307
|
-
tslib_1.__decorate([
|
|
308
|
-
core_1.HostBinding('style.width'),
|
|
309
|
-
tslib_1.__metadata("design:type", String),
|
|
310
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
311
|
-
], ButtonGroupComponent.prototype, "wrapperWidth", null);
|
|
312
|
-
tslib_1.__decorate([
|
|
313
|
-
core_1.HostBinding('attr.tabindex'),
|
|
314
|
-
tslib_1.__metadata("design:type", Number),
|
|
315
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
316
|
-
], ButtonGroupComponent.prototype, "wrapperTabIndex", null);
|
|
317
|
-
tslib_1.__decorate([
|
|
318
|
-
core_1.HostListener('keydown', ['$event']),
|
|
319
|
-
tslib_1.__metadata("design:type", Function),
|
|
320
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
321
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
322
|
-
], ButtonGroupComponent.prototype, "keydown", null);
|
|
323
|
-
tslib_1.__decorate([
|
|
324
|
-
core_1.HostListener('focus'),
|
|
325
|
-
tslib_1.__metadata("design:type", Function),
|
|
326
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
327
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
328
|
-
], ButtonGroupComponent.prototype, "onFocus", null);
|
|
329
|
-
tslib_1.__decorate([
|
|
330
|
-
core_1.HostListener('focusout', ['$event']),
|
|
331
|
-
tslib_1.__metadata("design:type", Function),
|
|
332
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
333
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
334
|
-
], ButtonGroupComponent.prototype, "focusout", null);
|
|
335
|
-
ButtonGroupComponent = tslib_1.__decorate([
|
|
336
|
-
core_1.Component({
|
|
337
|
-
exportAs: 'kendoButtonGroup',
|
|
338
|
-
providers: [
|
|
339
|
-
button_service_1.KendoButtonService,
|
|
340
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
341
|
-
{
|
|
342
|
-
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
343
|
-
useValue: 'kendo.buttongroup'
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
selector: 'kendo-buttongroup',
|
|
347
|
-
template: "\n <ng-content select=\"[kendoButton]\"></ng-content>\n "
|
|
348
|
-
}),
|
|
349
|
-
tslib_1.__metadata("design:paramtypes", [button_service_1.KendoButtonService,
|
|
350
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
351
|
-
core_1.ElementRef])
|
|
352
|
-
], ButtonGroupComponent);
|
|
353
|
-
return ButtonGroupComponent;
|
|
354
|
-
}());
|
|
355
|
-
exports.ButtonGroupComponent = ButtonGroupComponent;
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var common_1 = require("@angular/common");
|
|
10
|
-
var button_module_1 = require("../button/button.module");
|
|
11
|
-
var buttongroup_component_1 = require("./buttongroup.component");
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* The exported package module.
|
|
16
|
-
*
|
|
17
|
-
* The package exports:
|
|
18
|
-
* - `ButtonGroupComponent`—The ButtonGroupComponent component class.
|
|
19
|
-
*/
|
|
20
|
-
var ButtonGroupModule = /** @class */ (function () {
|
|
21
|
-
function ButtonGroupModule() {
|
|
22
|
-
}
|
|
23
|
-
ButtonGroupModule = tslib_1.__decorate([
|
|
24
|
-
core_1.NgModule({
|
|
25
|
-
declarations: [buttongroup_component_1.ButtonGroupComponent],
|
|
26
|
-
exports: [buttongroup_component_1.ButtonGroupComponent],
|
|
27
|
-
imports: [common_1.CommonModule, button_module_1.ButtonModule]
|
|
28
|
-
})
|
|
29
|
-
], ButtonGroupModule);
|
|
30
|
-
return ButtonGroupModule;
|
|
31
|
-
}());
|
|
32
|
-
exports.ButtonGroupModule = ButtonGroupModule;
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var button_module_1 = require("./button/button.module");
|
|
10
|
-
var buttongroup_module_1 = require("./buttongroup/buttongroup.module");
|
|
11
|
-
var splitbutton_module_1 = require("./splitbutton/splitbutton.module");
|
|
12
|
-
var dropdownbutton_module_1 = require("./dropdownbutton/dropdownbutton.module");
|
|
13
|
-
var chip_module_1 = require("./chip/chip.module");
|
|
14
|
-
var floatingactionbutton_module_1 = require("./floatingactionbutton/floatingactionbutton.module");
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
17
|
-
* definition for the Buttons components.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
*
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* // Import the Buttons module
|
|
23
|
-
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
24
|
-
*
|
|
25
|
-
* // The browser platform with a compiler
|
|
26
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
27
|
-
*
|
|
28
|
-
* import { NgModule } from '@angular/core';
|
|
29
|
-
*
|
|
30
|
-
* // Import the app component
|
|
31
|
-
* import { AppComponent } from './app.component';
|
|
32
|
-
*
|
|
33
|
-
* // Define the app module
|
|
34
|
-
* _@NgModule({
|
|
35
|
-
* declarations: [AppComponent], // declare app component
|
|
36
|
-
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
37
|
-
* bootstrap: [AppComponent]
|
|
38
|
-
* })
|
|
39
|
-
* export class AppModule {}
|
|
40
|
-
*
|
|
41
|
-
* // Compile and launch the module
|
|
42
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
43
|
-
*
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
var ButtonsModule = /** @class */ (function () {
|
|
47
|
-
function ButtonsModule() {
|
|
48
|
-
}
|
|
49
|
-
ButtonsModule = tslib_1.__decorate([
|
|
50
|
-
core_1.NgModule({
|
|
51
|
-
exports: [buttongroup_module_1.ButtonGroupModule, button_module_1.ButtonModule, splitbutton_module_1.SplitButtonModule, dropdownbutton_module_1.DropDownButtonModule, chip_module_1.ChipModule, floatingactionbutton_module_1.FloatingActionButtonModule]
|
|
52
|
-
})
|
|
53
|
-
], ButtonsModule);
|
|
54
|
-
return ButtonsModule;
|
|
55
|
-
}());
|
|
56
|
-
exports.ButtonsModule = ButtonsModule;
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|