@progress/kendo-angular-buttons 7.0.0-next.202111120840 → 7.0.2-dev.202201201235
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-buttons.js +20 -0
- package/dist/cdn/main.js +5 -0
- package/dist/es/button/button.directive.js +769 -0
- package/{esm2015 → dist/es}/button/button.module.js +13 -13
- package/dist/es/button/button.service.js +24 -0
- package/{esm2015 → dist/es}/button/selection-settings.js +0 -1
- package/dist/es/buttongroup/buttongroup.component.js +353 -0
- package/dist/es/buttongroup/buttongroup.module.js +30 -0
- package/{esm2015 → dist/es}/buttons.module.js +12 -12
- package/{esm2015 → dist/es}/chip/chip-content-click-event-args.interface.js +0 -1
- package/{esm2015 → dist/es}/chip/chip-list-remove-event-args.interface.js +0 -1
- package/dist/es/chip/chip-list.component.js +214 -0
- package/{esm2015 → dist/es}/chip/chip-remove-event-args.interface.js +0 -1
- package/dist/es/chip/chip.component.js +449 -0
- package/dist/es/chip/chip.module.js +55 -0
- package/{esm2015 → dist/es}/chip/models/selection.js +0 -1
- package/dist/es/common/models/fillmode.js +4 -0
- package/dist/es/common/models/rounded.js +4 -0
- package/{esm2015 → dist/es}/common/models/shape.js +0 -1
- package/{esm2015 → dist/es}/common/models/size.js +0 -1
- package/dist/es/common/models/styling-classes.js +4 -0
- package/{esm2015 → dist/es}/common/models/theme-color.js +0 -1
- package/{esm2015/button-look.js → dist/es/common/models.js} +0 -1
- package/{esm2015 → dist/es}/direction.js +0 -1
- package/dist/es/dropdownbutton/dropdownbutton.component.js +704 -0
- package/dist/es/dropdownbutton/dropdownbutton.module.js +32 -0
- package/dist/es/floatingactionbutton/animations/animations.js +33 -0
- package/dist/es/floatingactionbutton/dial-item.component.js +143 -0
- package/dist/es/floatingactionbutton/dial-list.component.js +76 -0
- package/dist/es/floatingactionbutton/floatingactionbutton.component.js +903 -0
- package/dist/es/floatingactionbutton/floatingactionbutton.module.js +65 -0
- package/{esm2015 → dist/es}/floatingactionbutton/models/align.js +0 -1
- package/{esm2015 → dist/es}/floatingactionbutton/models/item-animation.interface.js +0 -1
- package/{esm2015 → dist/es}/floatingactionbutton/models/item-click.event.js +0 -1
- package/{esm2015 → dist/es}/floatingactionbutton/models/item.interface.js +0 -1
- package/{esm2015 → dist/es}/floatingactionbutton/models/offset.js +0 -1
- package/{esm2015 → dist/es}/floatingactionbutton/models/position-mode.js +0 -1
- package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +26 -0
- package/dist/es/floatingactionbutton/templates/fab-template.directive.js +26 -0
- package/dist/es/floatingactionbutton/utils.js +38 -0
- package/dist/es/focusable/focus.service.js +43 -0
- package/dist/es/focusable/focusable.directive.js +68 -0
- package/dist/es/index.js +22 -0
- package/dist/es/listbutton/button-item-template.directive.js +68 -0
- package/dist/es/listbutton/list-button.js +243 -0
- package/{esm2015 → dist/es}/listbutton/list-item-model.js +0 -1
- package/dist/es/listbutton/list.component.js +85 -0
- package/dist/es/listbutton/list.module.js +33 -0
- package/{esm2015 → dist/es}/listbutton/popup-settings.js +0 -1
- package/dist/es/listbutton/template-context.directive.js +40 -0
- package/{esm2015 → dist/es}/main.js +1 -5
- package/{esm2015 → dist/es}/navigation/key-events.js +0 -0
- package/{esm2015 → dist/es}/navigation/navigation-action.js +0 -0
- package/dist/es/navigation/navigation-config.js +9 -0
- package/dist/es/navigation/navigation.service.js +114 -0
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/preventable-event.js +29 -0
- package/dist/es/splitbutton/localization/custom-messages.component.js +44 -0
- package/dist/es/splitbutton/localization/localized-messages.directive.js +35 -0
- package/dist/es/splitbutton/localization/messages.js +22 -0
- package/dist/es/splitbutton/splitbutton.component.js +830 -0
- package/dist/es/splitbutton/splitbutton.module.js +34 -0
- package/dist/es/util.js +97 -0
- package/{button → dist/es2015/button}/button.directive.d.ts +101 -46
- package/dist/es2015/button/button.directive.js +671 -0
- package/{button → dist/es2015/button}/button.module.d.ts +0 -5
- package/dist/es2015/button/button.module.js +47 -0
- package/{button → dist/es2015/button}/button.service.d.ts +1 -7
- package/dist/es2015/button/button.service.js +26 -0
- package/{button → dist/es2015/button}/selection-settings.d.ts +0 -0
- package/dist/es2015/button/selection-settings.js +4 -0
- package/{buttongroup → dist/es2015/buttongroup}/buttongroup.component.d.ts +9 -28
- package/{esm2015 → dist/es2015}/buttongroup/buttongroup.component.js +116 -121
- package/dist/es2015/buttongroup/buttongroup.module.d.ts +14 -0
- package/dist/es2015/buttongroup/buttongroup.module.js +27 -0
- package/{buttons.module.d.ts → dist/es2015/buttons.module.d.ts} +0 -10
- package/dist/es2015/buttons.module.js +51 -0
- package/{chip → dist/es2015/chip}/chip-content-click-event-args.interface.d.ts +0 -0
- package/dist/es2015/chip/chip-content-click-event-args.interface.js +4 -0
- package/{chip → dist/es2015/chip}/chip-list-remove-event-args.interface.d.ts +0 -0
- package/dist/es2015/chip/chip-list-remove-event-args.interface.js +4 -0
- package/{chip → dist/es2015/chip}/chip-list.component.d.ts +21 -8
- package/dist/es2015/chip/chip-list.component.js +197 -0
- package/{chip → dist/es2015/chip}/chip-remove-event-args.interface.d.ts +0 -0
- package/dist/es2015/chip/chip-remove-event-args.interface.js +4 -0
- package/{chip → dist/es2015/chip}/chip.component.d.ts +72 -38
- package/dist/es2015/chip/chip.component.js +431 -0
- package/{chip → dist/es2015/chip}/chip.module.d.ts +0 -7
- package/{esm2015 → dist/es2015}/chip/chip.module.js +11 -16
- package/{chip → dist/es2015/chip}/models/selection.d.ts +0 -0
- package/dist/es2015/chip/models/selection.js +4 -0
- package/{util.d.ts → dist/es2015/common/models/fillmode.d.ts} +4 -8
- package/dist/es2015/common/models/fillmode.js +4 -0
- package/dist/es2015/common/models/rounded.d.ts +12 -0
- package/dist/es2015/common/models/rounded.js +4 -0
- package/dist/es2015/common/models/shape.d.ts +9 -0
- package/dist/es2015/common/models/shape.js +4 -0
- package/dist/es2015/common/models/size.d.ts +17 -0
- package/dist/es2015/common/models/size.js +4 -0
- package/{esm2015/kendo-angular-buttons.js → dist/es2015/common/models/styling-classes.d.ts} +5 -2
- package/dist/es2015/common/models/styling-classes.js +4 -0
- package/{common → dist/es2015/common}/models/theme-color.d.ts +15 -4
- package/dist/es2015/common/models/theme-color.js +4 -0
- package/{common/models/size.d.ts → dist/es2015/common/models.d.ts} +6 -10
- package/dist/es2015/common/models.js +4 -0
- package/{direction.d.ts → dist/es2015/direction.d.ts} +0 -0
- package/dist/es2015/direction.js +4 -0
- package/{dropdownbutton → dist/es2015/dropdownbutton}/dropdownbutton.component.d.ts +74 -29
- package/{esm2015 → dist/es2015}/dropdownbutton/dropdownbutton.component.js +257 -179
- package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +14 -0
- package/dist/es2015/dropdownbutton/dropdownbutton.module.js +29 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/animations/animations.d.ts +0 -0
- package/{esm2015 → dist/es2015}/floatingactionbutton/animations/animations.js +0 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/dial-item.component.d.ts +5 -8
- package/dist/es2015/floatingactionbutton/dial-item.component.js +133 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/dial-list.component.d.ts +2 -5
- package/dist/es2015/floatingactionbutton/dial-list.component.js +81 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/floatingactionbutton.component.d.ts +47 -49
- package/{esm2015 → dist/es2015}/floatingactionbutton/floatingactionbutton.component.js +212 -192
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/floatingactionbutton.module.d.ts +0 -13
- package/{esm2015 → dist/es2015}/floatingactionbutton/floatingactionbutton.module.js +11 -19
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/align.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/align.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item-click.event.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/item-click.event.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item.interface.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/item.interface.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/offset.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/offset.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/position-mode.d.ts +0 -0
- package/dist/es2015/floatingactionbutton/models/position-mode.js +4 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/templates/dial-item-template.directive.d.ts +0 -3
- package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +25 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/templates/fab-template.directive.d.ts +0 -3
- package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +25 -0
- package/{floatingactionbutton → dist/es2015/floatingactionbutton}/utils.d.ts +0 -0
- package/{esm2015 → dist/es2015}/floatingactionbutton/utils.js +0 -0
- package/{focusable → dist/es2015/focusable}/focus.service.d.ts +1 -5
- package/{esm2015 → dist/es2015}/focusable/focus.service.js +10 -8
- package/{focusable → dist/es2015/focusable}/focusable.directive.d.ts +0 -3
- package/{esm2015 → dist/es2015}/focusable/focusable.directive.js +20 -19
- package/dist/es2015/index.d.ts +22 -0
- package/dist/es2015/index.js +22 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/{listbutton → dist/es2015/listbutton}/button-item-template.directive.d.ts +0 -3
- package/{esm2015 → dist/es2015}/listbutton/button-item-template.directive.js +12 -13
- package/{listbutton → dist/es2015/listbutton}/list-button.d.ts +2 -6
- package/{esm2015 → dist/es2015}/listbutton/list-button.js +6 -16
- package/{listbutton → dist/es2015/listbutton}/list-item-model.d.ts +0 -0
- package/dist/es2015/listbutton/list-item-model.js +4 -0
- package/{listbutton → dist/es2015/listbutton}/list.component.d.ts +3 -3
- package/dist/es2015/listbutton/list.component.js +113 -0
- package/dist/es2015/listbutton/list.module.d.ts +9 -0
- package/dist/es2015/listbutton/list.module.js +30 -0
- package/{listbutton → dist/es2015/listbutton}/popup-settings.d.ts +0 -0
- package/dist/es2015/listbutton/popup-settings.js +4 -0
- package/{listbutton → dist/es2015/listbutton}/template-context.directive.d.ts +1 -4
- package/dist/es2015/listbutton/template-context.directive.js +35 -0
- package/{main.d.ts → dist/es2015/main.d.ts} +5 -9
- package/dist/es2015/main.js +22 -0
- package/{navigation → dist/es2015/navigation}/key-events.d.ts +0 -0
- package/dist/es2015/navigation/key-events.js +13 -0
- package/{navigation → dist/es2015/navigation}/navigation-action.d.ts +0 -0
- package/dist/es2015/navigation/navigation-action.js +19 -0
- package/{navigation → dist/es2015/navigation}/navigation-config.d.ts +0 -0
- package/{esm2015 → dist/es2015}/navigation/navigation-config.js +0 -0
- package/{navigation → dist/es2015/navigation}/navigation.service.d.ts +0 -3
- package/{esm2015 → dist/es2015}/navigation/navigation.service.js +9 -11
- package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
- package/{preventable-event.d.ts → dist/es2015/preventable-event.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/preventable-event.js +0 -0
- package/dist/es2015/splitbutton/localization/custom-messages.component.d.ts +15 -0
- package/dist/es2015/splitbutton/localization/custom-messages.component.js +36 -0
- package/dist/es2015/splitbutton/localization/localized-messages.directive.d.ts +13 -0
- package/dist/es2015/splitbutton/localization/localized-messages.directive.js +31 -0
- package/dist/es2015/splitbutton/localization/messages.d.ts +32 -0
- package/dist/es2015/splitbutton/localization/messages.js +16 -0
- package/{splitbutton → dist/es2015/splitbutton}/splitbutton.component.d.ts +74 -34
- package/{esm2015 → dist/es2015}/splitbutton/splitbutton.component.js +288 -203
- package/dist/es2015/splitbutton/splitbutton.module.d.ts +14 -0
- package/dist/es2015/splitbutton/splitbutton.module.js +31 -0
- package/dist/es2015/util.d.ts +41 -0
- package/dist/es2015/util.js +95 -0
- package/{fesm2015/kendo-angular-buttons.js → dist/fesm2015/index.js} +2394 -1838
- package/dist/fesm5/index.js +5561 -0
- package/dist/npm/button/button.directive.js +771 -0
- package/dist/npm/button/button.module.js +52 -0
- package/dist/npm/button/button.service.js +26 -0
- package/dist/npm/button/selection-settings.js +6 -0
- package/dist/npm/buttongroup/buttongroup.component.js +355 -0
- package/dist/npm/buttongroup/buttongroup.module.js +32 -0
- package/dist/npm/buttons.module.js +56 -0
- package/dist/npm/chip/chip-content-click-event-args.interface.js +6 -0
- package/dist/npm/chip/chip-list-remove-event-args.interface.js +6 -0
- package/dist/npm/chip/chip-list.component.js +216 -0
- package/dist/npm/chip/chip-remove-event-args.interface.js +6 -0
- package/dist/npm/chip/chip.component.js +451 -0
- package/dist/npm/chip/chip.module.js +57 -0
- package/dist/npm/chip/models/selection.js +6 -0
- package/dist/npm/common/models/fillmode.js +6 -0
- package/dist/npm/common/models/rounded.js +6 -0
- package/dist/npm/common/models/shape.js +6 -0
- package/dist/npm/common/models/size.js +6 -0
- package/dist/npm/common/models/styling-classes.js +6 -0
- package/dist/npm/common/models/theme-color.js +6 -0
- package/dist/npm/common/models.js +6 -0
- package/dist/npm/direction.js +6 -0
- package/dist/npm/dropdownbutton/dropdownbutton.component.js +706 -0
- package/dist/npm/dropdownbutton/dropdownbutton.module.js +34 -0
- package/dist/npm/floatingactionbutton/animations/animations.js +37 -0
- package/dist/npm/floatingactionbutton/dial-item.component.js +145 -0
- package/dist/npm/floatingactionbutton/dial-list.component.js +78 -0
- package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +905 -0
- package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +67 -0
- package/dist/npm/floatingactionbutton/models/align.js +6 -0
- package/dist/npm/floatingactionbutton/models/item-animation.interface.js +6 -0
- package/dist/npm/floatingactionbutton/models/item-click.event.js +6 -0
- package/dist/npm/floatingactionbutton/models/item.interface.js +6 -0
- package/dist/npm/floatingactionbutton/models/offset.js +6 -0
- package/dist/npm/floatingactionbutton/models/position-mode.js +6 -0
- package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +28 -0
- package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +28 -0
- package/dist/npm/floatingactionbutton/utils.js +42 -0
- package/dist/npm/focusable/focus.service.js +45 -0
- package/dist/npm/focusable/focusable.directive.js +70 -0
- package/dist/npm/index.js +39 -0
- package/dist/npm/listbutton/button-item-template.directive.js +70 -0
- package/dist/npm/listbutton/list-button.js +245 -0
- package/dist/npm/listbutton/list-item-model.js +6 -0
- package/dist/npm/listbutton/list.component.js +87 -0
- package/dist/npm/listbutton/list.module.js +35 -0
- package/dist/npm/listbutton/popup-settings.js +6 -0
- package/dist/npm/listbutton/template-context.directive.js +42 -0
- package/dist/npm/main.js +45 -0
- package/dist/npm/navigation/key-events.js +15 -0
- package/dist/npm/navigation/navigation-action.js +21 -0
- package/dist/npm/navigation/navigation-config.js +11 -0
- package/dist/npm/navigation/navigation.service.js +116 -0
- package/dist/npm/package-metadata.js +17 -0
- package/dist/npm/preventable-event.js +31 -0
- package/dist/npm/splitbutton/localization/custom-messages.component.js +46 -0
- package/dist/npm/splitbutton/localization/localized-messages.directive.js +37 -0
- package/dist/npm/splitbutton/localization/messages.js +24 -0
- package/dist/npm/splitbutton/splitbutton.component.js +832 -0
- package/dist/npm/splitbutton/splitbutton.module.js +36 -0
- package/dist/npm/util.js +100 -0
- package/dist/systemjs/kendo-angular-buttons.js +5 -0
- package/package.json +110 -35
- package/schematics/ngAdd/index.js +2 -5
- package/schematics/ngAdd/index.js.map +1 -1
- package/bundles/kendo-angular-buttons.umd.js +0 -5
- package/button-look.d.ts +0 -21
- package/buttongroup/buttongroup.module.d.ts +0 -21
- package/chip/models/chip-look.d.ts +0 -18
- package/chip/models/type.d.ts +0 -21
- package/common/models/shape.d.ts +0 -16
- package/dropdownbutton/dropdownbutton.module.d.ts +0 -23
- package/esm2015/button/button.directive.js +0 -488
- package/esm2015/button/button.service.js +0 -28
- package/esm2015/buttongroup/buttongroup.module.js +0 -30
- package/esm2015/chip/chip-list.component.js +0 -145
- package/esm2015/chip/chip.component.js +0 -335
- package/esm2015/chip/models/chip-look.js +0 -5
- package/esm2015/chip/models/type.js +0 -5
- package/esm2015/dropdownbutton/dropdownbutton.module.js +0 -32
- package/esm2015/floatingactionbutton/dial-item.component.js +0 -126
- package/esm2015/floatingactionbutton/dial-list.component.js +0 -89
- package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -27
- package/esm2015/floatingactionbutton/templates/fab-template.directive.js +0 -27
- package/esm2015/listbutton/list.component.js +0 -120
- package/esm2015/listbutton/list.module.js +0 -39
- package/esm2015/listbutton/template-context.directive.js +0 -33
- package/esm2015/splitbutton/splitbutton.module.js +0 -32
- package/esm2015/util.js +0 -39
- package/kendo-angular-buttons.d.ts +0 -9
- package/listbutton/list.module.d.ts +0 -18
- package/splitbutton/splitbutton.module.d.ts +0 -23
|
@@ -0,0 +1,47 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
+
import { NgModule } from '@angular/core';
|
|
7
|
+
import { ButtonDirective } from './button.directive';
|
|
8
|
+
/**
|
|
9
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
10
|
+
* definition for the Button directive.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```ts-no-run
|
|
15
|
+
* // Import the Button module
|
|
16
|
+
* import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
17
|
+
*
|
|
18
|
+
* // The browser platform with a compiler
|
|
19
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
20
|
+
*
|
|
21
|
+
* import { NgModule } from '@angular/core';
|
|
22
|
+
*
|
|
23
|
+
* // Import the app component
|
|
24
|
+
* import { AppComponent } from './app.component';
|
|
25
|
+
*
|
|
26
|
+
* // Define the app module
|
|
27
|
+
* _@NgModule({
|
|
28
|
+
* declarations: [AppComponent], // declare app component
|
|
29
|
+
* imports: [BrowserModule, ButtonModule], // import Button module
|
|
30
|
+
* bootstrap: [AppComponent]
|
|
31
|
+
* })
|
|
32
|
+
* export class AppModule {}
|
|
33
|
+
*
|
|
34
|
+
* // Compile and launch the module
|
|
35
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
36
|
+
*
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
let ButtonModule = class ButtonModule {
|
|
40
|
+
};
|
|
41
|
+
ButtonModule = tslib_1.__decorate([
|
|
42
|
+
NgModule({
|
|
43
|
+
declarations: [ButtonDirective],
|
|
44
|
+
exports: [ButtonDirective]
|
|
45
|
+
})
|
|
46
|
+
], ButtonModule);
|
|
47
|
+
export { ButtonModule };
|
|
@@ -2,19 +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 { Observable,
|
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { ButtonDirective } from "./button.directive";
|
|
7
|
-
import { ButtonLook } from '../button-look';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
7
|
/**
|
|
10
8
|
* @hidden
|
|
11
9
|
*/
|
|
12
10
|
export declare class KendoButtonService {
|
|
13
|
-
buttonLookChange: BehaviorSubject<ButtonLook>;
|
|
14
11
|
buttonClicked: Subject<ButtonDirective>;
|
|
15
12
|
buttonClicked$: Observable<ButtonDirective>;
|
|
16
13
|
click(button: ButtonDirective): void;
|
|
17
|
-
setButtonLook(look: ButtonLook): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KendoButtonService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<KendoButtonService>;
|
|
20
14
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
let KendoButtonService = class KendoButtonService {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor() {
|
|
16
|
+
this.buttonClicked = new Subject();
|
|
17
|
+
this.buttonClicked$ = this.buttonClicked.asObservable();
|
|
18
|
+
}
|
|
19
|
+
click(button) {
|
|
20
|
+
this.buttonClicked.next(button);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
KendoButtonService = tslib_1.__decorate([
|
|
24
|
+
Injectable()
|
|
25
|
+
], KendoButtonService);
|
|
26
|
+
export { KendoButtonService };
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -7,9 +7,7 @@ import { EventEmitter, QueryList, OnInit, OnDestroy, AfterContentChecked, AfterV
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { ButtonGroupSelection } from '../button/selection-settings';
|
|
9
9
|
import { KendoButtonService } from '../button/button.service';
|
|
10
|
-
import { ButtonLook } from '../button-look';
|
|
11
10
|
import { PreventableEvent } from '../preventable-event';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
11
|
/**
|
|
14
12
|
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
15
13
|
*/
|
|
@@ -40,22 +38,10 @@ export declare class ButtonGroupComponent implements OnInit, OnDestroy, AfterCon
|
|
|
40
38
|
* - The buttons acquire the same width.
|
|
41
39
|
*/
|
|
42
40
|
width: string;
|
|
43
|
-
/**
|
|
44
|
-
* Changes the visual appearance by using alternative styling options
|
|
45
|
-
* ([more information and examples]({% slug styling_buttongroup %})).
|
|
46
|
-
* The `look` property of the ButtonGroup takes precedence over the `look` property
|
|
47
|
-
* of the individual buttons that are part of the group.
|
|
48
|
-
*
|
|
49
|
-
* The available values are:
|
|
50
|
-
* * `flat`
|
|
51
|
-
* * `outline`
|
|
52
|
-
*/
|
|
53
|
-
look: ButtonLook;
|
|
54
41
|
/**
|
|
55
42
|
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
56
43
|
*/
|
|
57
|
-
|
|
58
|
-
get tabIndex(): number;
|
|
44
|
+
tabIndex: number;
|
|
59
45
|
/**
|
|
60
46
|
* Fires every time keyboard navigation occurs.
|
|
61
47
|
*/
|
|
@@ -66,17 +52,14 @@ export declare class ButtonGroupComponent implements OnInit, OnDestroy, AfterCon
|
|
|
66
52
|
private direction;
|
|
67
53
|
private subscription;
|
|
68
54
|
private localizationChangeSubscription;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
get ariaDisabled(): boolean;
|
|
78
|
-
get wrapperWidth(): string;
|
|
79
|
-
get wrapperTabIndex(): number;
|
|
55
|
+
readonly wrapperClass: boolean;
|
|
56
|
+
readonly disabledClass: boolean;
|
|
57
|
+
readonly stretchedClass: boolean;
|
|
58
|
+
readonly getRole: string;
|
|
59
|
+
readonly dir: string;
|
|
60
|
+
readonly ariaDisabled: boolean;
|
|
61
|
+
readonly wrapperWidth: string;
|
|
62
|
+
readonly wrapperTabIndex: number;
|
|
80
63
|
/**
|
|
81
64
|
* @hidden
|
|
82
65
|
*/
|
|
@@ -103,6 +86,4 @@ export declare class ButtonGroupComponent implements OnInit, OnDestroy, AfterCon
|
|
|
103
86
|
protected focus(buttons: Array<ButtonDirective>): void;
|
|
104
87
|
private verifySettings;
|
|
105
88
|
private isSelectionSingle;
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "kendo-buttongroup", ["kendoButtonGroup"], { "disabled": "disabled"; "selection": "selection"; "width": "width"; "look": "look"; "tabIndex": "tabIndex"; }, { "navigate": "navigate"; }, ["buttons"], ["[kendoButton]"]>;
|
|
108
89
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
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";
|
|
5
6
|
import { ButtonDirective } from '../button/button.directive';
|
|
6
|
-
import { Component, EventEmitter, Output, Input, ContentChildren, HostBinding, HostListener, isDevMode } from '@angular/core';
|
|
7
|
+
import { Component, EventEmitter, Output, Input, ContentChildren, QueryList, HostBinding, HostListener, isDevMode, ElementRef } from '@angular/core';
|
|
7
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
9
|
import { isChanged, Keys } from '@progress/kendo-angular-common';
|
|
9
10
|
import { KendoButtonService } from '../button/button.service';
|
|
10
11
|
import { isPresent } from '../util';
|
|
11
12
|
import { PreventableEvent } from '../preventable-event';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
+
import { packageMetadata } from '../package-metadata';
|
|
14
|
+
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
@@ -19,7 +19,7 @@ const tabindex = 'tabindex';
|
|
|
19
19
|
/**
|
|
20
20
|
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
let ButtonGroupComponent = class ButtonGroupComponent {
|
|
23
23
|
constructor(service, localization, element) {
|
|
24
24
|
this.service = service;
|
|
25
25
|
this.element = element;
|
|
@@ -27,23 +27,13 @@ export class ButtonGroupComponent {
|
|
|
27
27
|
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
28
28
|
*/
|
|
29
29
|
this.selection = 'multiple';
|
|
30
|
-
/**
|
|
31
|
-
* Changes the visual appearance by using alternative styling options
|
|
32
|
-
* ([more information and examples]({% slug styling_buttongroup %})).
|
|
33
|
-
* The `look` property of the ButtonGroup takes precedence over the `look` property
|
|
34
|
-
* of the individual buttons that are part of the group.
|
|
35
|
-
*
|
|
36
|
-
* The available values are:
|
|
37
|
-
* * `flat`
|
|
38
|
-
* * `outline`
|
|
39
|
-
*/
|
|
40
|
-
this.look = 'default';
|
|
41
30
|
/**
|
|
42
31
|
* Fires every time keyboard navigation occurs.
|
|
43
32
|
*/
|
|
44
33
|
this.navigate = new EventEmitter();
|
|
45
34
|
this._tabIndex = 0;
|
|
46
35
|
this.currentTabIndex = 0;
|
|
36
|
+
validatePackage(packageMetadata);
|
|
47
37
|
this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
|
|
48
38
|
}
|
|
49
39
|
/**
|
|
@@ -65,15 +55,6 @@ export class ButtonGroupComponent {
|
|
|
65
55
|
get stretchedClass() {
|
|
66
56
|
return !!this.width;
|
|
67
57
|
}
|
|
68
|
-
get isFlat() {
|
|
69
|
-
return this.look === 'flat';
|
|
70
|
-
}
|
|
71
|
-
get isBare() {
|
|
72
|
-
return this.look === 'bare';
|
|
73
|
-
}
|
|
74
|
-
get isOutline() {
|
|
75
|
-
return this.look === 'outline';
|
|
76
|
-
}
|
|
77
58
|
get getRole() {
|
|
78
59
|
return this.isSelectionSingle() ? 'radiogroup' : 'group';
|
|
79
60
|
}
|
|
@@ -118,7 +99,6 @@ export class ButtonGroupComponent {
|
|
|
118
99
|
}
|
|
119
100
|
}
|
|
120
101
|
ngOnInit() {
|
|
121
|
-
this.service.setButtonLook(this.look);
|
|
122
102
|
this.subscription = this.service.buttonClicked$.subscribe((button) => {
|
|
123
103
|
let newSelectionValue;
|
|
124
104
|
if (this.isSelectionSingle()) {
|
|
@@ -132,7 +112,7 @@ export class ButtonGroupComponent {
|
|
|
132
112
|
if (button.togglable) {
|
|
133
113
|
button.setSelected(newSelectionValue);
|
|
134
114
|
}
|
|
135
|
-
button.setAttribute(tabindex,
|
|
115
|
+
button.setAttribute(tabindex, '0');
|
|
136
116
|
});
|
|
137
117
|
}
|
|
138
118
|
ngOnChanges(change) {
|
|
@@ -147,10 +127,10 @@ export class ButtonGroupComponent {
|
|
|
147
127
|
ngAfterContentInit() {
|
|
148
128
|
this.buttons.forEach((button) => {
|
|
149
129
|
if (button.selected) {
|
|
150
|
-
button.setAttribute(tabindex,
|
|
130
|
+
button.setAttribute(tabindex, '0');
|
|
151
131
|
}
|
|
152
132
|
else {
|
|
153
|
-
button.setAttribute(tabindex,
|
|
133
|
+
button.setAttribute(tabindex, '-1');
|
|
154
134
|
}
|
|
155
135
|
});
|
|
156
136
|
}
|
|
@@ -194,24 +174,24 @@ export class ButtonGroupComponent {
|
|
|
194
174
|
deactivate(buttons) {
|
|
195
175
|
buttons.forEach((button) => {
|
|
196
176
|
button.setSelected(false);
|
|
197
|
-
button.setAttribute(tabindex,
|
|
177
|
+
button.setAttribute(tabindex, '-1');
|
|
198
178
|
});
|
|
199
179
|
}
|
|
200
180
|
activate(buttons) {
|
|
201
181
|
buttons.forEach((button) => {
|
|
202
182
|
button.setSelected(true);
|
|
203
|
-
button.setAttribute(tabindex,
|
|
183
|
+
button.setAttribute(tabindex, '0');
|
|
204
184
|
button.focus();
|
|
205
185
|
});
|
|
206
186
|
}
|
|
207
187
|
defocus(buttons) {
|
|
208
188
|
buttons.forEach((button) => {
|
|
209
|
-
button.setAttribute(tabindex,
|
|
189
|
+
button.setAttribute(tabindex, '-1');
|
|
210
190
|
});
|
|
211
191
|
}
|
|
212
192
|
focus(buttons) {
|
|
213
193
|
buttons.forEach((button) => {
|
|
214
|
-
button.setAttribute(tabindex,
|
|
194
|
+
button.setAttribute(tabindex, '0');
|
|
215
195
|
button.focus();
|
|
216
196
|
});
|
|
217
197
|
}
|
|
@@ -225,93 +205,108 @@ export class ButtonGroupComponent {
|
|
|
225
205
|
isSelectionSingle() {
|
|
226
206
|
return this.selection === 'single';
|
|
227
207
|
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
208
|
+
};
|
|
209
|
+
tslib_1.__decorate([
|
|
210
|
+
Input('disabled'),
|
|
211
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
212
|
+
], ButtonGroupComponent.prototype, "disabled", void 0);
|
|
213
|
+
tslib_1.__decorate([
|
|
214
|
+
Input('selection'),
|
|
215
|
+
tslib_1.__metadata("design:type", String)
|
|
216
|
+
], ButtonGroupComponent.prototype, "selection", void 0);
|
|
217
|
+
tslib_1.__decorate([
|
|
218
|
+
Input('width'),
|
|
219
|
+
tslib_1.__metadata("design:type", String)
|
|
220
|
+
], ButtonGroupComponent.prototype, "width", void 0);
|
|
221
|
+
tslib_1.__decorate([
|
|
222
|
+
Input(),
|
|
223
|
+
tslib_1.__metadata("design:type", Number),
|
|
224
|
+
tslib_1.__metadata("design:paramtypes", [Number])
|
|
225
|
+
], ButtonGroupComponent.prototype, "tabIndex", null);
|
|
226
|
+
tslib_1.__decorate([
|
|
227
|
+
Output(),
|
|
228
|
+
tslib_1.__metadata("design:type", EventEmitter)
|
|
229
|
+
], ButtonGroupComponent.prototype, "navigate", void 0);
|
|
230
|
+
tslib_1.__decorate([
|
|
231
|
+
ContentChildren(ButtonDirective),
|
|
232
|
+
tslib_1.__metadata("design:type", QueryList)
|
|
233
|
+
], ButtonGroupComponent.prototype, "buttons", void 0);
|
|
234
|
+
tslib_1.__decorate([
|
|
235
|
+
HostBinding('class.k-button-group'),
|
|
236
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
237
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
238
|
+
], ButtonGroupComponent.prototype, "wrapperClass", null);
|
|
239
|
+
tslib_1.__decorate([
|
|
240
|
+
HostBinding('class.k-disabled'),
|
|
241
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
242
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
243
|
+
], ButtonGroupComponent.prototype, "disabledClass", null);
|
|
244
|
+
tslib_1.__decorate([
|
|
245
|
+
HostBinding('class.k-button-group-stretched'),
|
|
246
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
247
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
248
|
+
], ButtonGroupComponent.prototype, "stretchedClass", null);
|
|
249
|
+
tslib_1.__decorate([
|
|
250
|
+
HostBinding('attr.role'),
|
|
251
|
+
tslib_1.__metadata("design:type", String),
|
|
252
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
253
|
+
], ButtonGroupComponent.prototype, "getRole", null);
|
|
254
|
+
tslib_1.__decorate([
|
|
255
|
+
HostBinding('attr.dir'),
|
|
256
|
+
tslib_1.__metadata("design:type", String),
|
|
257
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
258
|
+
], ButtonGroupComponent.prototype, "dir", null);
|
|
259
|
+
tslib_1.__decorate([
|
|
260
|
+
HostBinding('attr.aria-disabled'),
|
|
261
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
262
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
263
|
+
], ButtonGroupComponent.prototype, "ariaDisabled", null);
|
|
264
|
+
tslib_1.__decorate([
|
|
265
|
+
HostBinding('style.width'),
|
|
266
|
+
tslib_1.__metadata("design:type", String),
|
|
267
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
268
|
+
], ButtonGroupComponent.prototype, "wrapperWidth", null);
|
|
269
|
+
tslib_1.__decorate([
|
|
270
|
+
HostBinding('attr.tabindex'),
|
|
271
|
+
tslib_1.__metadata("design:type", Number),
|
|
272
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
273
|
+
], ButtonGroupComponent.prototype, "wrapperTabIndex", null);
|
|
274
|
+
tslib_1.__decorate([
|
|
275
|
+
HostListener('keydown', ['$event']),
|
|
276
|
+
tslib_1.__metadata("design:type", Function),
|
|
277
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
278
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
279
|
+
], ButtonGroupComponent.prototype, "keydown", null);
|
|
280
|
+
tslib_1.__decorate([
|
|
281
|
+
HostListener('focus'),
|
|
282
|
+
tslib_1.__metadata("design:type", Function),
|
|
283
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
284
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
285
|
+
], ButtonGroupComponent.prototype, "onFocus", null);
|
|
286
|
+
tslib_1.__decorate([
|
|
287
|
+
HostListener('focusout', ['$event']),
|
|
288
|
+
tslib_1.__metadata("design:type", Function),
|
|
289
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
290
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
291
|
+
], ButtonGroupComponent.prototype, "focusout", null);
|
|
292
|
+
ButtonGroupComponent = tslib_1.__decorate([
|
|
293
|
+
Component({
|
|
294
|
+
exportAs: 'kendoButtonGroup',
|
|
295
|
+
providers: [
|
|
296
|
+
KendoButtonService,
|
|
297
|
+
LocalizationService,
|
|
298
|
+
{
|
|
299
|
+
provide: L10N_PREFIX,
|
|
300
|
+
useValue: 'kendo.buttongroup'
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
selector: 'kendo-buttongroup',
|
|
304
|
+
template: `
|
|
254
305
|
<ng-content select="[kendoButton]"></ng-content>
|
|
255
306
|
`
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
args: ['selection']
|
|
263
|
-
}], width: [{
|
|
264
|
-
type: Input,
|
|
265
|
-
args: ['width']
|
|
266
|
-
}], look: [{
|
|
267
|
-
type: Input
|
|
268
|
-
}], tabIndex: [{
|
|
269
|
-
type: Input
|
|
270
|
-
}], navigate: [{
|
|
271
|
-
type: Output
|
|
272
|
-
}], buttons: [{
|
|
273
|
-
type: ContentChildren,
|
|
274
|
-
args: [ButtonDirective]
|
|
275
|
-
}], wrapperClass: [{
|
|
276
|
-
type: HostBinding,
|
|
277
|
-
args: ['class.k-button-group']
|
|
278
|
-
}], disabledClass: [{
|
|
279
|
-
type: HostBinding,
|
|
280
|
-
args: ['class.k-state-disabled']
|
|
281
|
-
}], stretchedClass: [{
|
|
282
|
-
type: HostBinding,
|
|
283
|
-
args: ['class.k-button-group-stretched']
|
|
284
|
-
}], isFlat: [{
|
|
285
|
-
type: HostBinding,
|
|
286
|
-
args: ['class.k-button-group-flat']
|
|
287
|
-
}], isBare: [{
|
|
288
|
-
type: HostBinding,
|
|
289
|
-
args: ['class.k-button-group-bare']
|
|
290
|
-
}], isOutline: [{
|
|
291
|
-
type: HostBinding,
|
|
292
|
-
args: ['class.k-button-group-outline']
|
|
293
|
-
}], getRole: [{
|
|
294
|
-
type: HostBinding,
|
|
295
|
-
args: ['attr.role']
|
|
296
|
-
}], dir: [{
|
|
297
|
-
type: HostBinding,
|
|
298
|
-
args: ['attr.dir']
|
|
299
|
-
}], ariaDisabled: [{
|
|
300
|
-
type: HostBinding,
|
|
301
|
-
args: ['attr.aria-disabled']
|
|
302
|
-
}], wrapperWidth: [{
|
|
303
|
-
type: HostBinding,
|
|
304
|
-
args: ['style.width']
|
|
305
|
-
}], wrapperTabIndex: [{
|
|
306
|
-
type: HostBinding,
|
|
307
|
-
args: ['attr.tabindex']
|
|
308
|
-
}], keydown: [{
|
|
309
|
-
type: HostListener,
|
|
310
|
-
args: ['keydown', ['$event']]
|
|
311
|
-
}], onFocus: [{
|
|
312
|
-
type: HostListener,
|
|
313
|
-
args: ['focus']
|
|
314
|
-
}], focusout: [{
|
|
315
|
-
type: HostListener,
|
|
316
|
-
args: ['focusout', ['$event']]
|
|
317
|
-
}] } });
|
|
307
|
+
}),
|
|
308
|
+
tslib_1.__metadata("design:paramtypes", [KendoButtonService,
|
|
309
|
+
LocalizationService,
|
|
310
|
+
ElementRef])
|
|
311
|
+
], ButtonGroupComponent);
|
|
312
|
+
export { ButtonGroupComponent };
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* The exported package module.
|
|
9
|
+
*
|
|
10
|
+
* The package exports:
|
|
11
|
+
* - `ButtonGroupComponent`—The ButtonGroupComponent component class.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ButtonGroupModule {
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
+
import { NgModule } from '@angular/core';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { ButtonModule } from '../button/button.module';
|
|
9
|
+
import { ButtonGroupComponent } from './buttongroup.component';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*
|
|
13
|
+
* The exported package module.
|
|
14
|
+
*
|
|
15
|
+
* The package exports:
|
|
16
|
+
* - `ButtonGroupComponent`—The ButtonGroupComponent component class.
|
|
17
|
+
*/
|
|
18
|
+
let ButtonGroupModule = class ButtonGroupModule {
|
|
19
|
+
};
|
|
20
|
+
ButtonGroupModule = tslib_1.__decorate([
|
|
21
|
+
NgModule({
|
|
22
|
+
declarations: [ButtonGroupComponent],
|
|
23
|
+
exports: [ButtonGroupComponent],
|
|
24
|
+
imports: [CommonModule, ButtonModule]
|
|
25
|
+
})
|
|
26
|
+
], ButtonGroupModule);
|
|
27
|
+
export { ButtonGroupModule };
|
|
@@ -2,13 +2,6 @@
|
|
|
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 i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./buttongroup/buttongroup.module";
|
|
7
|
-
import * as i2 from "./button/button.module";
|
|
8
|
-
import * as i3 from "./splitbutton/splitbutton.module";
|
|
9
|
-
import * as i4 from "./dropdownbutton/dropdownbutton.module";
|
|
10
|
-
import * as i5 from "./chip/chip.module";
|
|
11
|
-
import * as i6 from "./floatingactionbutton/floatingactionbutton.module";
|
|
12
5
|
/**
|
|
13
6
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
14
7
|
* definition for the Buttons components.
|
|
@@ -41,7 +34,4 @@ import * as i6 from "./floatingactionbutton/floatingactionbutton.module";
|
|
|
41
34
|
* ```
|
|
42
35
|
*/
|
|
43
36
|
export declare class ButtonsModule {
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonsModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonsModule, never, never, [typeof i1.ButtonGroupModule, typeof i2.ButtonModule, typeof i3.SplitButtonModule, typeof i4.DropDownButtonModule, typeof i5.ChipModule, typeof i6.FloatingActionButtonModule]>;
|
|
46
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonsModule>;
|
|
47
37
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
+
import { NgModule } from '@angular/core';
|
|
7
|
+
import { ButtonModule } from './button/button.module';
|
|
8
|
+
import { ButtonGroupModule } from './buttongroup/buttongroup.module';
|
|
9
|
+
import { SplitButtonModule } from './splitbutton/splitbutton.module';
|
|
10
|
+
import { DropDownButtonModule } from './dropdownbutton/dropdownbutton.module';
|
|
11
|
+
import { ChipModule } from './chip/chip.module';
|
|
12
|
+
import { FloatingActionButtonModule } from './floatingactionbutton/floatingactionbutton.module';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
15
|
+
* definition for the Buttons components.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```ts-no-run
|
|
20
|
+
* // Import the Buttons module
|
|
21
|
+
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
22
|
+
*
|
|
23
|
+
* // The browser platform with a compiler
|
|
24
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
|
+
*
|
|
26
|
+
* import { NgModule } from '@angular/core';
|
|
27
|
+
*
|
|
28
|
+
* // Import the app component
|
|
29
|
+
* import { AppComponent } from './app.component';
|
|
30
|
+
*
|
|
31
|
+
* // Define the app module
|
|
32
|
+
* _@NgModule({
|
|
33
|
+
* declarations: [AppComponent], // declare app component
|
|
34
|
+
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
35
|
+
* bootstrap: [AppComponent]
|
|
36
|
+
* })
|
|
37
|
+
* export class AppModule {}
|
|
38
|
+
*
|
|
39
|
+
* // Compile and launch the module
|
|
40
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
let ButtonsModule = class ButtonsModule {
|
|
45
|
+
};
|
|
46
|
+
ButtonsModule = tslib_1.__decorate([
|
|
47
|
+
NgModule({
|
|
48
|
+
exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
|
|
49
|
+
})
|
|
50
|
+
], ButtonsModule);
|
|
51
|
+
export { ButtonsModule };
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|