@progress/kendo-angular-buttons 17.0.0-develop.9 → 17.0.0
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/README.md +27 -106
- package/button/button.component.d.ts +1 -1
- package/button/selection-settings.d.ts +1 -1
- package/buttongroup/buttongroup.component.d.ts +1 -1
- package/chip/chip-list.component.d.ts +8 -7
- package/chip/chip.component.d.ts +8 -7
- package/chip/models/avatar-settings.interface.d.ts +33 -0
- package/chip/models/selection.d.ts +1 -1
- package/common/models/fillmode.d.ts +2 -2
- package/common/models/rounded.d.ts +2 -2
- package/common/models/size.d.ts +2 -6
- package/common/models/theme-color.d.ts +2 -2
- package/direction.d.ts +1 -1
- package/dropdownbutton/dropdownbutton.component.d.ts +7 -10
- package/{esm2020 → esm2022}/button/button.component.mjs +63 -52
- package/{esm2020 → esm2022}/button/button.module.mjs +4 -4
- package/{esm2020 → esm2022}/button/button.service.mjs +5 -7
- package/{esm2020 → esm2022}/buttongroup/buttongroup.component.mjs +76 -51
- package/{esm2020 → esm2022}/buttongroup/buttongroup.module.mjs +4 -4
- package/{esm2020 → esm2022}/buttons.module.mjs +4 -4
- package/{esm2020 → esm2022}/chip/chip-list.component.mjs +64 -48
- package/{esm2020 → esm2022}/chip/chip.component.mjs +160 -93
- package/{esm2020 → esm2022}/chip/chip.module.mjs +4 -4
- package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.component.mjs +125 -117
- package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.module.mjs +4 -4
- package/{esm2020 → esm2022}/floatingactionbutton/dial-item.component.mjs +21 -11
- package/{esm2020 → esm2022}/floatingactionbutton/dial-list.component.mjs +16 -11
- package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.component.mjs +145 -102
- package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.module.mjs +4 -4
- package/{esm2020 → esm2022}/floatingactionbutton/templates/dial-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/floatingactionbutton/templates/fab-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/focusable/focus.service.mjs +5 -6
- package/{esm2020 → esm2022}/focusable/focusable.directive.mjs +8 -4
- package/{esm2020 → esm2022}/index.mjs +0 -1
- package/{esm2020 → esm2022}/listbutton/button-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/listbutton/container.service.mjs +5 -3
- package/{esm2020 → esm2022}/listbutton/list-button.mjs +88 -51
- package/{esm2020 → esm2022}/listbutton/list.component.mjs +13 -10
- package/esm2022/listbutton/popup-settings.mjs +5 -0
- package/{esm2020 → esm2022}/navigation/navigation.service.mjs +12 -11
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/splitbutton/localization/custom-messages.component.mjs +7 -6
- package/{esm2020 → esm2022}/splitbutton/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/splitbutton/localization/messages.mjs +45 -0
- package/{esm2020 → esm2022}/splitbutton/splitbutton.component.mjs +214 -188
- package/{esm2020 → esm2022}/splitbutton/splitbutton.module.mjs +4 -4
- package/{esm2020 → esm2022}/util.mjs +6 -0
- package/{fesm2020 → fesm2022}/progress-kendo-angular-buttons.mjs +1317 -1056
- package/floatingactionbutton/dial-item.component.d.ts +1 -1
- package/floatingactionbutton/dial-list.component.d.ts +1 -1
- package/floatingactionbutton/floatingactionbutton.component.d.ts +1 -1
- package/floatingactionbutton/models/position-mode.d.ts +1 -1
- package/focusable/focusable.directive.d.ts +1 -1
- package/index.d.ts +1 -1
- package/listbutton/list-button.d.ts +9 -4
- package/listbutton/list.component.d.ts +1 -1
- package/package.json +15 -21
- package/schematics/ngAdd/index.js +1 -1
- package/splitbutton/localization/messages.d.ts +1 -1
- package/splitbutton/splitbutton.component.d.ts +8 -16
- package/util.d.ts +6 -0
- package/esm2020/listbutton/list.module.mjs +0 -33
- package/esm2020/splitbutton/localization/messages.mjs +0 -23
- package/fesm2015/progress-kendo-angular-buttons.mjs +0 -5551
- package/listbutton/list.module.d.ts +0 -13
- /package/{esm2020 → esm2022}/button/selection-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/chip-content-click-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/chip-list-remove-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/chip-remove-event-args.interface.mjs +0 -0
- /package/{esm2020/chip/models/selection.mjs → esm2022/chip/models/avatar-settings.interface.mjs} +0 -0
- /package/{esm2020/common/models/arrow-settings.mjs → esm2022/chip/models/selection.mjs} +0 -0
- /package/{esm2020/common/models/fillmode.mjs → esm2022/common/models/arrow-settings.mjs} +0 -0
- /package/{esm2020/common/models/rounded.mjs → esm2022/common/models/fillmode.mjs} +0 -0
- /package/{esm2020/common/models/size.mjs → esm2022/common/models/rounded.mjs} +0 -0
- /package/{esm2020/common/models/styling-classes.mjs → esm2022/common/models/size.mjs} +0 -0
- /package/{esm2020/common/models/theme-color.mjs → esm2022/common/models/styling-classes.mjs} +0 -0
- /package/{esm2020/direction.mjs → esm2022/common/models/theme-color.mjs} +0 -0
- /package/{esm2020 → esm2022}/common/models.mjs +0 -0
- /package/{esm2020/floatingactionbutton/models/align.mjs → esm2022/direction.mjs} +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/floatingactionbutton/animations/animations.mjs +0 -0
- /package/{esm2020/floatingactionbutton/models/item-animation.interface.mjs → esm2022/floatingactionbutton/models/align.mjs} +0 -0
- /package/{esm2020/floatingactionbutton/models/item-click.event.mjs → esm2022/floatingactionbutton/models/item-animation.interface.mjs} +0 -0
- /package/{esm2020/floatingactionbutton/models/item.interface.mjs → esm2022/floatingactionbutton/models/item-click.event.mjs} +0 -0
- /package/{esm2020/floatingactionbutton/models/offset.mjs → esm2022/floatingactionbutton/models/item.interface.mjs} +0 -0
- /package/{esm2020/floatingactionbutton/models/position-mode.mjs → esm2022/floatingactionbutton/models/offset.mjs} +0 -0
- /package/{esm2020/listbutton/list-item-model.mjs → esm2022/floatingactionbutton/models/position-mode.mjs} +0 -0
- /package/{esm2020 → esm2022}/floatingactionbutton/utils.mjs +0 -0
- /package/{esm2020/listbutton/popup-settings.mjs → esm2022/listbutton/list-item-model.mjs} +0 -0
- /package/{esm2020 → esm2022}/navigation/key-events.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-action.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-config.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-buttons.mjs +0 -0
package/README.md
CHANGED
|
@@ -1,131 +1,52 @@
|
|
|
1
|
-
<a href="https://www.telerik.com/kendo-angular-ui/" target="_blank">
|
|
1
|
+
<a href="https://www.telerik.com/kendo-angular-ui/components/buttons" target="_blank">
|
|
2
2
|
<img width="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
|
|
3
3
|
</a>
|
|
4
4
|
|
|
5
|
-
## Kendo UI for Angular Buttons Package
|
|
5
|
+
## Kendo UI for Angular Buttons Package
|
|
6
6
|
|
|
7
|
-
>
|
|
8
|
-
> *
|
|
9
|
-
> *
|
|
10
|
-
> * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons).
|
|
11
|
-
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
|
|
12
|
-
>
|
|
13
|
-
> [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) and speed up your development process!
|
|
7
|
+
> * This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/)—a commercial UI library.
|
|
8
|
+
> * You must [install a license key](https://www.telerik.com/kendo-angular-ui/my-license) when adding the package to your project. To receive a license key, either [purchase a license](https://www.telerik.com/purchase/kendo-ui) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui).
|
|
9
|
+
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular team!
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
* [Angular Button Component](#angular-button-component)
|
|
17
|
-
* [Angular ButtonGroup Component](#angular-buttongroup-component)
|
|
18
|
-
* [Angular Chip Component](#angular-chip-component)
|
|
19
|
-
* [Angular Chip Component](#angular-chip-component)
|
|
20
|
-
* [Angular Chiplist Component](#angular-chiplist-component)
|
|
21
|
-
* [Angular DropDownButton Component](#angular-dropdownbutton-component)
|
|
22
|
-
* [Angular FloatingActionButton Component](#angular-floatingactionbutton-component)
|
|
23
|
-
* [Angular SplitButton Component](#angular-splitbutton-component)
|
|
11
|
+
The Kendo UI for Angular Buttons provide a clickable UI functionality which can be set to display arbitrary content.
|
|
24
12
|
|
|
25
|
-
## Angular
|
|
13
|
+
## What's Included in the Angular Buttons Package
|
|
26
14
|
|
|
27
|
-
The [Angular
|
|
15
|
+
The [Angular Buttons](https://www.telerik.com/kendo-angular-ui/components/buttons) package includes seven built-in components:
|
|
28
16
|
|
|
29
|
-
|
|
17
|
+
* [Angular Button Component](https://www.telerik.com/kendo-angular-ui/components/buttons/button)
|
|
18
|
+
* [Angular ButtonGroup Component](https://www.telerik.com/kendo-angular-ui/components/buttons/buttongroup)
|
|
19
|
+
* [Angular Chip Component](https://www.telerik.com/kendo-angular-ui/components/buttons/chip)
|
|
20
|
+
* [Angular ChipList Component](https://www.telerik.com/kendo-angular-ui/components/buttons/chiplist)
|
|
21
|
+
* [Angular DropDownButton Component](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton)
|
|
22
|
+
* [Angular FloatingActionButton Component](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton)
|
|
23
|
+
* [Angular SplitButton Component](https://www.telerik.com/kendo-angular-ui/components/buttons/splitbutton)
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
* **Toggleable Button:** Allow users to toggle true/false values and show which is active.
|
|
33
|
-
* **Appearance:** Set the button's size, border radius, fill mode, and theme color.
|
|
25
|
+
## Key Features
|
|
34
26
|
|
|
35
|
-
|
|
27
|
+
Among the many features which the Kendo UI for Angular Buttons deliver are:
|
|
36
28
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
* **Buttons Collection:** Conveniently and programatically render buttons and handle changes as a group.
|
|
42
|
-
|
|
43
|
-
## Angular Chip Component
|
|
44
|
-
|
|
45
|
-
The [Angular Chip Component](https://www.telerik.com/kendo-angular-ui/components/buttons/buttongroup/collections/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) represents a piece of information or an entity in a compact form. Chips, also called Pills, can typically be selected and removed. These useful tools are most often used to represent people in email clients.
|
|
46
|
-
|
|
47
|
-
### Key Features
|
|
48
|
-
|
|
49
|
-
* **Appearance:** Built-in options for size, border radius, fill, and theme colors make styling easy.
|
|
50
|
-
* **Content Setup:** Either manually define content or programatically pass in a string.
|
|
51
|
-
* **Customization:** Customize the default remove icon or display avatars.
|
|
52
|
-
|
|
53
|
-
## Angular ChipList Component
|
|
54
|
-
|
|
55
|
-
The [Angular Chiplist Component](https://www.telerik.com/kendo-angular-ui/components/buttons/chiplist/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) is a container for two or more Chip components. It's a great way to manage selected entities such as recipients of an email.
|
|
56
|
-
|
|
57
|
-
### Key Features
|
|
58
|
-
|
|
59
|
-
* **Selection Mode:** By default, Chips cannot be selected and the mode is set to none. But you can enable single or multiple selection modes.
|
|
60
|
-
* **Size:** Setting the size of the ChipList determines the gap beteen individual Chips.
|
|
61
|
-
|
|
62
|
-
## Angular DropDownButton Component
|
|
63
|
-
|
|
64
|
-
The [Angular DropDownButton Component](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) displays a list with action items when clicked. Many configuration options allow you to confure the button and its dropdown menu, bind data, set icons, and more.
|
|
65
|
-
|
|
66
|
-
### Key Features
|
|
67
|
-
|
|
68
|
-
* **Data Binding:** Populate the button and menu content by binding to local or remote data.
|
|
69
|
-
* **Templates:** Use templates to customize the popup menu and the items contained within.
|
|
70
|
-
* **Icon DropDown:** Choose to render an icon with the menu items by choosing from the Kendo UI Icon collection or provide your own.
|
|
71
|
-
* **Appearance:** Built-in options for size, border radius, fill, and theme colors make styling easy.
|
|
72
|
-
|
|
73
|
-
## Angular FloatingActionButton Component
|
|
74
|
-
|
|
75
|
-
The [Angular FloatingActionButton](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) makes the most primary function of the application most availble by rendeing a button overlayed in an obvious location. When clicked, you can optionally, show additional options. A common example without secondary actions is the new email button in your Gmail app. A common example of a FloatingActionButton with secondard actions is a share button. When clicked, it shows your sharing options.
|
|
76
|
-
|
|
77
|
-
### Key Features
|
|
78
|
-
|
|
79
|
-
* **Icon FloatingActionButton:** The FloatingActionButton enables you to display various types of icons including the built-in Kendo UI icons or your own images.
|
|
80
|
-
* **Positioning:** Align and position the FloatingActionButton in relation to a web page, an HTML element, or another Angular Component.
|
|
81
|
-
* **Dial Items:** Display a stack of related sub-actions when the FloatingActionButton is clicked.
|
|
82
|
-
* **Templates:** Define templates to display custom content or customize the appearance of the FloatingActionButton Dial items list.
|
|
83
|
-
* **Appearance:** The FloatingActionButton delivers ready-to-use, predefined sets of styling options.
|
|
84
|
-
|
|
85
|
-
## Angular SplitButton Component
|
|
86
|
-
|
|
87
|
-
The [Angular SplitButton Component](https://www.telerik.com/kendo-angular-ui/components/buttons/splitbutton/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) gives the user a choise to click the main action or drop down a menu for additional choices.
|
|
88
|
-
|
|
89
|
-
### Key Features
|
|
90
|
-
|
|
91
|
-
* **Icon SplitButton"** The SplitButton enables you to display various types of icons including the built-in Kendo UI icons or your own images.
|
|
92
|
-
* **Popup Items and Templates:** Configure the SplitButton popup and popup items by visually enhancing their rendering and by using templates for controlling their content.
|
|
93
|
-
* **Content:** Configure the content of the SplitButton by adding it between the opening and the closing tags and by setting its text property.
|
|
94
|
-
* **Data Binding:** Bind the SplitButton to data of the primitive (strings and numbers) or of the complex (data inside objects) type.
|
|
95
|
-
|
|
96
|
-
## Angular Buttons Package Features
|
|
97
|
-
|
|
98
|
-
The following features are available across all the components in this package:
|
|
99
|
-
|
|
100
|
-
* **Disabled state:** To make the component read-only, just change a single property.
|
|
101
|
-
* **Custom rendering:** You can replace the content of the buttons with custom icons, text and elements.
|
|
102
|
-
* **Keyboard navigation:** You can interact with the buttons using only the keyboard.
|
|
103
|
-
* **Accessibility support:** The Buttons are compliant with WAI-ARIA and Section 508.
|
|
104
|
-
* [**Theme support:**](https://www.telerik.com/kendo-react-ui/components/styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) The Angular Buttons, as well as all+ components in the Kendo UI for Angular suite, are styled in three polished themes (Bootstrap, Material, and Default) and can be further customized to match your specific design guidelines.
|
|
29
|
+
* Disabled Buttons—You can render the Buttons in their disabled state so that users cannot interact with them. [Read more about the Disabled Button...](https://www.telerik.com/kendo-angular-ui/components/buttons/button/disabled-state)
|
|
30
|
+
* Icon Buttons—All Buttons components provide configuration options that enable the easy rendering of icon, icon-and-text, or text-only buttons. What's more, you can not only use any icon from the rich collection of built-in Kendo UI icons, but also FontAwesome or image icons. [Read more about the Icon Button...](https://www.telerik.com/kendo-angular-ui/components/buttons/button/icons)
|
|
31
|
+
* Customizable Appearance—The color and style of the Buttons are normally picked up by the current Kendo UI theme, but each aspect of the Buttons can be customized by theme variables or configuration options. Kendo UI for Angular delivers a set of popular themes including Bootstrap and Material, all of which can be easily customized with the Progress ThemeBuilder online utility. [Read more about the appearance of the Button...](https://www.telerik.com/kendo-angular-ui/components/buttons/button/appearance)
|
|
32
|
+
* Globalization—The Kendo UI for Angular Buttons support globalization to ensure that each Buttons component can fit well in any application, no matter what languages and locales need to be supported. Additionally, the Buttons support rendering in a right-to-left (RTL) direction. [Read more about Buttons globalization...](https://www.telerik.com/kendo-angular-ui/components/buttons/globalization)
|
|
105
33
|
|
|
106
34
|
## Support Options
|
|
107
35
|
|
|
108
|
-
For any issues you might encounter while working with the Angular Buttons,
|
|
109
|
-
|
|
110
|
-
* **Industry-leading technical support:** Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons).
|
|
111
|
-
* **Product forums:** The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-ui-angular?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) are part of the free support you can get from the community and from the Kendo UI for Angular team.
|
|
112
|
-
* **Feedback portal:** The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) is where you can request and vote for new features to be added.
|
|
36
|
+
For any issues you might encounter while working with the Kendo UI for Angular Buttons, you have the following support channels available:
|
|
113
37
|
|
|
38
|
+
* Industry-leading technical support—Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the [dedicated Kendo UI for Angular support system](https://www.telerik.com/account/support-center/contact-us/technical-support).
|
|
39
|
+
* Product forums—The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-angular-ui) are part of the free support you can get from the community and from the Kendo UI for Angular team.
|
|
40
|
+
* Feedback portal—The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui) is where you can request and vote for new features to be added.
|
|
114
41
|
|
|
115
42
|
## Resources
|
|
116
43
|
|
|
117
|
-
* [
|
|
44
|
+
* [Getting Started with Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/getting-started)
|
|
45
|
+
* [Getting Started with the Kendo UI for Angular Buttons](https://www.telerik.com/kendo-angular-ui/components/buttons/installation/getting-started)
|
|
118
46
|
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
|
|
119
47
|
* [Blogs](http://www.telerik.com/blogs/kendo-ui)
|
|
120
48
|
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
|
|
121
49
|
|
|
122
|
-
## Questions and Feedback
|
|
123
|
-
|
|
124
|
-
* [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
|
|
125
|
-
* [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
|
|
126
|
-
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
|
|
127
|
-
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
|
|
128
|
-
|
|
129
50
|
*Copyright © 2024 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
130
51
|
|
|
131
52
|
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
|
|
@@ -206,5 +206,5 @@ export declare class ButtonComponent implements OnDestroy, AfterViewInit {
|
|
|
206
206
|
private handleClasses;
|
|
207
207
|
private handleThemeColor;
|
|
208
208
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, [null, null, { optional: true; }, null, null]>;
|
|
209
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[kendoButton]", ["kendoButton"], { "arrowIcon": "arrowIcon"; "toggleable": "toggleable"; "togglable": "togglable"; "selected": "selected"; "tabIndex": "tabIndex"; "imageUrl": "imageUrl"; "iconClass": "iconClass"; "icon": "icon"; "disabled": "disabled"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "themeColor": "themeColor"; "svgIcon": "svgIcon"; "primary": "primary"; "look": "look"; }, { "selectedChange": "selectedChange"; "click": "click"; }, never, ["*"], true, never>;
|
|
209
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[kendoButton]", ["kendoButton"], { "arrowIcon": { "alias": "arrowIcon"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "togglable": { "alias": "togglable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "look": { "alias": "look"; "required": false; }; }, { "selectedChange": "selectedChange"; "click": "click"; }, never, ["*"], true, never>;
|
|
210
210
|
}
|
|
@@ -90,5 +90,5 @@ export declare class ButtonGroupComponent implements OnInit, OnDestroy, AfterCon
|
|
|
90
90
|
private handleSubs;
|
|
91
91
|
private focusHandler;
|
|
92
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "kendo-buttongroup", ["kendoButtonGroup"], { "disabled": "disabled"; "selection": "selection"; "width": "width"; "tabIndex": "tabIndex"; "navigable": "navigable"; }, { "navigate": "navigate"; }, ["buttons"], ["[kendoButton]"], true, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "kendo-buttongroup", ["kendoButtonGroup"], { "disabled": { "alias": "disabled"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "width": { "alias": "width"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; }, { "navigate": "navigate"; }, ["buttons"], ["[kendoButton]"], true, never>;
|
|
94
94
|
}
|
|
@@ -7,7 +7,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
7
7
|
import { ChipComponent } from './chip.component';
|
|
8
8
|
import { ChipListSelection } from './models/selection';
|
|
9
9
|
import { ChipListRemoveEvent } from './chip-list-remove-event-args.interface';
|
|
10
|
-
import {
|
|
10
|
+
import { ChipSize } from '../common/models';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class ChipListComponent implements OnInit, AfterViewInit, AfterContentInit, OnDestroy {
|
|
13
13
|
private localizationService;
|
|
@@ -39,8 +39,8 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
|
|
|
39
39
|
* * `'large'`
|
|
40
40
|
* * `none`
|
|
41
41
|
*/
|
|
42
|
-
set size(size:
|
|
43
|
-
get size():
|
|
42
|
+
set size(size: ChipSize);
|
|
43
|
+
get size(): ChipSize;
|
|
44
44
|
/**
|
|
45
45
|
* Fires each time when the ChipList selection is changed.
|
|
46
46
|
*/
|
|
@@ -65,10 +65,10 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
|
|
|
65
65
|
*/
|
|
66
66
|
onClick($event: any): void;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* are part of the default tabbing sequence of the page.
|
|
68
|
+
* By default, keyboard navigation is available through arrow keys and roving tabindex.
|
|
69
|
+
* When set to `false`, all chips are part of the default tabbing sequence of the page.
|
|
70
70
|
*
|
|
71
|
-
* @default
|
|
71
|
+
* @default true
|
|
72
72
|
*/
|
|
73
73
|
set navigable(value: boolean);
|
|
74
74
|
get navigable(): boolean;
|
|
@@ -90,6 +90,7 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
|
|
|
90
90
|
private handleArrowKeys;
|
|
91
91
|
private updateChips;
|
|
92
92
|
private normalizeActiveIndex;
|
|
93
|
+
private setChipSize;
|
|
93
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipListComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipListComponent, "kendo-chiplist, kendo-chip-list", never, { "selection": "selection"; "size": "size"; "role": "role"; "navigable": "navigable"; }, { "selectedChange": "selectedChange"; "remove": "remove"; }, ["chips"], ["*"], true, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipListComponent, "kendo-chiplist, kendo-chip-list", never, { "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "role": { "alias": "role"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; }, { "selectedChange": "selectedChange"; "remove": "remove"; }, ["chips"], ["*"], true, never>;
|
|
95
96
|
}
|
package/chip/chip.component.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ChipRemoveEvent } from './chip-remove-event-args.interface';
|
|
|
8
8
|
import { ChipContentClickEvent } from './chip-content-click-event-args.interface';
|
|
9
9
|
import { ChipFillMode, ChipRounded, ChipSize, ChipThemeColor } from '../common/models';
|
|
10
10
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
11
|
+
import { ChipAvatarSettings } from './models/avatar-settings.interface';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
/**
|
|
13
14
|
* Displays a Chip that represents an input, attribute or an action.
|
|
@@ -38,9 +39,9 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
38
39
|
*/
|
|
39
40
|
iconClass: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Use these settings to render an avatar within the Chip.
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
avatarSettings: ChipAvatarSettings;
|
|
44
45
|
/**
|
|
45
46
|
* Specifies the selected state of the Chip.
|
|
46
47
|
* @default false
|
|
@@ -167,6 +168,10 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
167
168
|
* @hidden
|
|
168
169
|
*/
|
|
169
170
|
defaultMenuIcon: SVGIcon;
|
|
171
|
+
/**
|
|
172
|
+
* @hidden
|
|
173
|
+
*/
|
|
174
|
+
sizeIsSet: boolean;
|
|
170
175
|
private _size;
|
|
171
176
|
private _rounded;
|
|
172
177
|
private _fillMode;
|
|
@@ -186,10 +191,6 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
186
191
|
* @hidden
|
|
187
192
|
*/
|
|
188
193
|
get customIconClass(): string;
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
get chipAvatarClass(): string;
|
|
193
194
|
/**
|
|
194
195
|
* @hidden
|
|
195
196
|
*/
|
|
@@ -219,5 +220,5 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
219
220
|
private handleThemeColor;
|
|
220
221
|
private keyDownHandler;
|
|
221
222
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
222
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "kendo-chip", never, { "label": "label"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "
|
|
223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "kendo-chip", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "avatarSettings": { "alias": "avatarSettings"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "removeSvgIcon": { "alias": "removeSvgIcon"; "required": false; }; "hasMenu": { "alias": "hasMenu"; "required": false; }; "menuIcon": { "alias": "menuIcon"; "required": false; }; "menuSvgIcon": { "alias": "menuSvgIcon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; }, { "remove": "remove"; "menuToggle": "menuToggle"; "contentClick": "contentClick"; }, never, ["*"], true, never>;
|
|
223
224
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export interface ChipAvatarSettings {
|
|
6
|
+
/**
|
|
7
|
+
* The CSS styles that will be rendered on the wrapper element of the avatar.
|
|
8
|
+
* Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
|
|
9
|
+
*/
|
|
10
|
+
cssStyle?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Sets `initials` to the Chip avatar.
|
|
13
|
+
*/
|
|
14
|
+
initials?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The CSS styles that will be rendered on the wrapper element of the avatar initials.
|
|
17
|
+
* Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
|
|
18
|
+
*/
|
|
19
|
+
initialsCssStyle?: any;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the `image` source of the Chip avatar.
|
|
22
|
+
*/
|
|
23
|
+
imageSrc?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Allows setting the `alt` attribute of a Chip avatar image.
|
|
26
|
+
*/
|
|
27
|
+
imageAltText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The CSS styles that will be rendered on the avatar image element.
|
|
30
|
+
* Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
|
|
31
|
+
*/
|
|
32
|
+
imageCssStyle?: any;
|
|
33
|
+
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible fillMode options of the buttons.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear' | 'none';
|
|
9
9
|
/**
|
|
10
10
|
* Represents the possible fillMode options of the Chip.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type ChipFillMode = 'solid' | 'outline' | 'none';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible rounded options of the buttons.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type ButtonRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
|
9
9
|
/**
|
|
10
10
|
* Represents the possible rounded options of the Chip.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type ChipRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
package/common/models/size.d.ts
CHANGED
|
@@ -6,12 +6,8 @@
|
|
|
6
6
|
* Specifies the possible sizes of the buttons.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type ButtonSize = 'small' | 'medium' | 'large' | 'none';
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the possible sizes of the Chip.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the possible gap between Chips in a ChipList.
|
|
16
|
-
*/
|
|
17
|
-
export declare type ChipListSize = 'small' | 'medium' | 'large' | 'none';
|
|
13
|
+
export type ChipSize = 'small' | 'medium' | 'large' | 'none';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'none';
|
|
23
23
|
/**
|
|
24
24
|
* Specifies the possible theme colors of the Chip.
|
|
25
25
|
*
|
|
@@ -30,4 +30,4 @@ export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'terti
|
|
|
30
30
|
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
31
31
|
* * `error`— Applies coloring based on the `error` theme color.
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error' | 'none';
|
package/direction.d.ts
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
* Copyright © 2024 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 {
|
|
5
|
+
import { ElementRef, EventEmitter, NgZone, ChangeDetectorRef, AfterViewInit, Renderer2 } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
8
|
import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
|
|
9
9
|
import { Direction } from '../direction';
|
|
10
10
|
import { ListButton } from '../listbutton/list-button';
|
|
11
|
-
import { ListComponent } from '../listbutton/list.component';
|
|
12
11
|
import { FocusService } from '../focusable/focus.service';
|
|
13
12
|
import { NavigationService } from '../navigation/navigation.service';
|
|
14
13
|
import { ArrowIconSettings, ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from '../common/models';
|
|
@@ -157,21 +156,15 @@ export declare class DropDownButtonComponent extends ListButton implements After
|
|
|
157
156
|
*/
|
|
158
157
|
onBlur: EventEmitter<any>;
|
|
159
158
|
get focused(): boolean;
|
|
160
|
-
get widgetClasses(): boolean;
|
|
161
159
|
get dir(): Direction;
|
|
162
160
|
/**
|
|
163
161
|
* @hidden
|
|
164
162
|
*/
|
|
165
163
|
get active(): boolean;
|
|
166
164
|
itemTemplate: ButtonItemTemplateDirective;
|
|
167
|
-
button: ElementRef<HTMLButtonElement>;
|
|
168
|
-
buttonList: ListComponent;
|
|
169
|
-
popupTemplate: TemplateRef<any>;
|
|
170
|
-
container: ViewContainerRef;
|
|
171
|
-
listId: string;
|
|
172
|
-
buttonId: string;
|
|
173
165
|
private _fillMode;
|
|
174
166
|
private _buttonAttributes;
|
|
167
|
+
private documentMouseUpSub;
|
|
175
168
|
/**
|
|
176
169
|
* @hidden
|
|
177
170
|
*/
|
|
@@ -215,6 +208,10 @@ export declare class DropDownButtonComponent extends ListButton implements After
|
|
|
215
208
|
*/
|
|
216
209
|
wrapperContains(element: any): boolean;
|
|
217
210
|
private handleButtonAttributes;
|
|
211
|
+
/**
|
|
212
|
+
* @hidden
|
|
213
|
+
*/
|
|
214
|
+
ngOnDestroy(): void;
|
|
218
215
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownButtonComponent, never>;
|
|
219
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "kendo-dropdownbutton", ["kendoDropDownButton"], { "arrowIcon": "arrowIcon"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "imageUrl": "imageUrl"; "textField": "textField"; "data": "data"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "themeColor": "themeColor"; "buttonAttributes": "buttonAttributes"; }, { "itemClick": "itemClick"; "onFocus": "focus"; "onBlur": "blur"; }, ["itemTemplate"], ["*"], true, never>;
|
|
216
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "kendo-dropdownbutton", ["kendoDropDownButton"], { "arrowIcon": { "alias": "arrowIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "buttonAttributes": { "alias": "buttonAttributes"; "required": false; }; }, { "itemClick": "itemClick"; "onFocus": "focus"; "onBlur": "blur"; }, ["itemTemplate"], ["*"], true, never>;
|
|
220
217
|
}
|
|
@@ -27,45 +27,21 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
27
27
|
* Please use the `button[kendoButton]` selector only.
|
|
28
28
|
*/
|
|
29
29
|
export class ButtonComponent {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.toggleable = false;
|
|
46
|
-
/**
|
|
47
|
-
* Fires each time the selected state of a toggleable button is changed.
|
|
48
|
-
*
|
|
49
|
-
* The event argument is the new selected state (boolean).
|
|
50
|
-
*/
|
|
51
|
-
this.selectedChange = new EventEmitter();
|
|
52
|
-
/**
|
|
53
|
-
* Fires each time the user clicks the button.
|
|
54
|
-
*/
|
|
55
|
-
this.click = new EventEmitter();
|
|
56
|
-
this.isDisabled = false;
|
|
57
|
-
this.caretAltDownIcon = caretAltDownIcon;
|
|
58
|
-
this._size = DEFAULT_SIZE;
|
|
59
|
-
this._rounded = DEFAULT_ROUNDED;
|
|
60
|
-
this._fillMode = DEFAULT_FILL_MODE;
|
|
61
|
-
this._themeColor = DEFAULT_THEME_COLOR;
|
|
62
|
-
this._focused = false;
|
|
63
|
-
this.subs = new Subscription();
|
|
64
|
-
validatePackage(packageMetadata);
|
|
65
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
66
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
67
|
-
this.element = element.nativeElement;
|
|
68
|
-
}
|
|
30
|
+
renderer;
|
|
31
|
+
service;
|
|
32
|
+
ngZone;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
* @default false
|
|
36
|
+
* required for DropDownButton arrow icon.
|
|
37
|
+
*/
|
|
38
|
+
arrowIcon = false;
|
|
39
|
+
/**
|
|
40
|
+
* Provides visual styling that indicates if the Button is active.
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
toggleable = false;
|
|
69
45
|
/**
|
|
70
46
|
* Backwards-compatible alias
|
|
71
47
|
*
|
|
@@ -100,6 +76,11 @@ export class ButtonComponent {
|
|
|
100
76
|
get tabIndex() {
|
|
101
77
|
return this.element.tabIndex;
|
|
102
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Defines a URL which is used for an `img` element inside the Button.
|
|
81
|
+
* The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
|
|
82
|
+
*/
|
|
83
|
+
imageUrl;
|
|
103
84
|
/**
|
|
104
85
|
* Defines a CSS class—or multiple classes separated by spaces—
|
|
105
86
|
* which are applied to a `span` element inside the Button. Allows the usage of custom icons.
|
|
@@ -210,6 +191,30 @@ export class ButtonComponent {
|
|
|
210
191
|
get svgIcon() {
|
|
211
192
|
return this._svgIcon;
|
|
212
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Fires each time the selected state of a toggleable button is changed.
|
|
196
|
+
*
|
|
197
|
+
* The event argument is the new selected state (boolean).
|
|
198
|
+
*/
|
|
199
|
+
selectedChange = new EventEmitter();
|
|
200
|
+
/**
|
|
201
|
+
* Fires each time the user clicks the button.
|
|
202
|
+
*/
|
|
203
|
+
click = new EventEmitter();
|
|
204
|
+
element;
|
|
205
|
+
isDisabled = false;
|
|
206
|
+
caretAltDownIcon = caretAltDownIcon;
|
|
207
|
+
_size = DEFAULT_SIZE;
|
|
208
|
+
_rounded = DEFAULT_ROUNDED;
|
|
209
|
+
_fillMode = DEFAULT_FILL_MODE;
|
|
210
|
+
_themeColor = DEFAULT_THEME_COLOR;
|
|
211
|
+
_focused = false;
|
|
212
|
+
direction;
|
|
213
|
+
_selected;
|
|
214
|
+
subs = new Subscription();
|
|
215
|
+
_iconClass;
|
|
216
|
+
_icon;
|
|
217
|
+
_svgIcon;
|
|
213
218
|
set isFocused(isFocused) {
|
|
214
219
|
this.toggleClass('k-focus', isFocused);
|
|
215
220
|
this._focused = isFocused;
|
|
@@ -276,6 +281,15 @@ export class ButtonComponent {
|
|
|
276
281
|
get nativeElement() {
|
|
277
282
|
return this.element;
|
|
278
283
|
}
|
|
284
|
+
constructor(element, renderer, service, localization, ngZone) {
|
|
285
|
+
this.renderer = renderer;
|
|
286
|
+
this.service = service;
|
|
287
|
+
this.ngZone = ngZone;
|
|
288
|
+
validatePackage(packageMetadata);
|
|
289
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
290
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
291
|
+
this.element = element.nativeElement;
|
|
292
|
+
}
|
|
279
293
|
ngOnInit() {
|
|
280
294
|
if (!this.element.hasAttribute('role') && this.togglable) {
|
|
281
295
|
this.toggleAriaPressed(this.toggleable);
|
|
@@ -411,15 +425,14 @@ export class ButtonComponent {
|
|
|
411
425
|
}
|
|
412
426
|
}
|
|
413
427
|
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0, template: `
|
|
428
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.KendoButtonService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
429
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonComponent, isStandalone: true, selector: "button[kendoButton]", inputs: { arrowIcon: "arrowIcon", toggleable: "toggleable", togglable: "togglable", selected: "selected", tabIndex: "tabIndex", imageUrl: "imageUrl", iconClass: "iconClass", icon: "icon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", svgIcon: "svgIcon", 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", "class.k-icon-button": "this.iconButtonClass", "class.k-disabled": "this.classDisabled", "class.k-selected": "this.classActive", "attr.dir": "this.getDirection" } }, providers: [
|
|
430
|
+
LocalizationService,
|
|
431
|
+
{
|
|
432
|
+
provide: L10N_PREFIX,
|
|
433
|
+
useValue: 'kendo.button'
|
|
434
|
+
}
|
|
435
|
+
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0, template: `
|
|
423
436
|
<kendo-icon-wrapper
|
|
424
437
|
*ngIf="icon || svgIcon"
|
|
425
438
|
innerCssClass="k-button-icon"
|
|
@@ -438,7 +451,8 @@ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
438
451
|
</span>
|
|
439
452
|
|
|
440
453
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
441
|
-
|
|
454
|
+
}
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
442
456
|
type: Component,
|
|
443
457
|
args: [{
|
|
444
458
|
exportAs: 'kendoButton',
|
|
@@ -516,9 +530,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
516
530
|
type: HostBinding,
|
|
517
531
|
args: ['class.k-icon-button']
|
|
518
532
|
}], classDisabled: [{
|
|
519
|
-
type: HostBinding,
|
|
520
|
-
args: ['attr.aria-disabled']
|
|
521
|
-
}, {
|
|
522
533
|
type: HostBinding,
|
|
523
534
|
args: ['class.k-disabled']
|
|
524
535
|
}], classActive: [{
|