@progress/kendo-angular-buttons 17.0.0-develop.3 → 17.0.0-develop.30

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.
Files changed (92) hide show
  1. package/README.md +27 -106
  2. package/button/button.component.d.ts +3 -9
  3. package/button/selection-settings.d.ts +1 -1
  4. package/buttongroup/buttongroup.component.d.ts +2 -2
  5. package/chip/chip-list.component.d.ts +4 -4
  6. package/chip/chip.component.d.ts +4 -7
  7. package/chip/models/avatar-settings.interface.d.ts +33 -0
  8. package/chip/models/selection.d.ts +1 -1
  9. package/common/models/fillmode.d.ts +2 -2
  10. package/common/models/rounded.d.ts +2 -2
  11. package/common/models/size.d.ts +3 -3
  12. package/common/models/theme-color.d.ts +2 -2
  13. package/direction.d.ts +1 -1
  14. package/dropdownbutton/dropdownbutton.component.d.ts +7 -10
  15. package/{esm2020 → esm2022}/button/button.component.mjs +80 -108
  16. package/{esm2020 → esm2022}/button/button.module.mjs +4 -4
  17. package/{esm2020 → esm2022}/button/button.service.mjs +5 -7
  18. package/{esm2020 → esm2022}/buttongroup/buttongroup.component.mjs +79 -56
  19. package/{esm2020 → esm2022}/buttongroup/buttongroup.module.mjs +4 -4
  20. package/{esm2020 → esm2022}/buttons.module.mjs +4 -4
  21. package/{esm2020 → esm2022}/chip/chip-list.component.mjs +58 -48
  22. package/{esm2020 → esm2022}/chip/chip.component.mjs +155 -93
  23. package/{esm2020 → esm2022}/chip/chip.module.mjs +4 -4
  24. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.component.mjs +130 -118
  25. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.module.mjs +4 -4
  26. package/{esm2020 → esm2022}/floatingactionbutton/dial-item.component.mjs +21 -11
  27. package/{esm2020 → esm2022}/floatingactionbutton/dial-list.component.mjs +16 -11
  28. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.component.mjs +145 -102
  29. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.module.mjs +4 -4
  30. package/{esm2020 → esm2022}/floatingactionbutton/templates/dial-item-template.directive.mjs +4 -3
  31. package/{esm2020 → esm2022}/floatingactionbutton/templates/fab-template.directive.mjs +4 -3
  32. package/{esm2020 → esm2022}/focusable/focus.service.mjs +5 -6
  33. package/{esm2020 → esm2022}/focusable/focusable.directive.mjs +8 -4
  34. package/{esm2020 → esm2022}/listbutton/button-item-template.directive.mjs +4 -3
  35. package/{esm2020 → esm2022}/listbutton/container.service.mjs +5 -3
  36. package/{esm2020 → esm2022}/listbutton/list-button.mjs +88 -51
  37. package/{esm2020 → esm2022}/listbutton/list.component.mjs +13 -10
  38. package/{esm2020 → esm2022}/listbutton/list.module.mjs +8 -8
  39. package/esm2022/listbutton/popup-settings.mjs +5 -0
  40. package/{esm2020 → esm2022}/navigation/navigation.service.mjs +12 -11
  41. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  42. package/{esm2020 → esm2022}/preventable-event.mjs +1 -3
  43. package/{esm2020 → esm2022}/splitbutton/localization/custom-messages.component.mjs +7 -6
  44. package/{esm2020 → esm2022}/splitbutton/localization/localized-messages.directive.mjs +9 -8
  45. package/esm2022/splitbutton/localization/messages.mjs +45 -0
  46. package/{esm2020 → esm2022}/splitbutton/splitbutton.component.mjs +213 -189
  47. package/{esm2020 → esm2022}/splitbutton/splitbutton.module.mjs +4 -4
  48. package/{esm2020 → esm2022}/util.mjs +6 -0
  49. package/{fesm2020 → fesm2022}/progress-kendo-angular-buttons.mjs +1324 -1089
  50. package/floatingactionbutton/dial-item.component.d.ts +1 -1
  51. package/floatingactionbutton/dial-list.component.d.ts +1 -1
  52. package/floatingactionbutton/floatingactionbutton.component.d.ts +1 -1
  53. package/floatingactionbutton/models/position-mode.d.ts +1 -1
  54. package/focusable/focusable.directive.d.ts +1 -1
  55. package/index.d.ts +1 -0
  56. package/listbutton/list-button.d.ts +9 -4
  57. package/listbutton/list.component.d.ts +1 -1
  58. package/package.json +14 -20
  59. package/splitbutton/localization/messages.d.ts +1 -1
  60. package/splitbutton/splitbutton.component.d.ts +8 -16
  61. package/util.d.ts +6 -0
  62. package/esm2020/splitbutton/localization/messages.mjs +0 -23
  63. package/fesm2015/progress-kendo-angular-buttons.mjs +0 -5589
  64. /package/{esm2020 → esm2022}/button/selection-settings.mjs +0 -0
  65. /package/{esm2020 → esm2022}/chip/chip-content-click-event-args.interface.mjs +0 -0
  66. /package/{esm2020 → esm2022}/chip/chip-list-remove-event-args.interface.mjs +0 -0
  67. /package/{esm2020 → esm2022}/chip/chip-remove-event-args.interface.mjs +0 -0
  68. /package/{esm2020/chip/models/selection.mjs → esm2022/chip/models/avatar-settings.interface.mjs} +0 -0
  69. /package/{esm2020/common/models/arrow-settings.mjs → esm2022/chip/models/selection.mjs} +0 -0
  70. /package/{esm2020/common/models/fillmode.mjs → esm2022/common/models/arrow-settings.mjs} +0 -0
  71. /package/{esm2020/common/models/rounded.mjs → esm2022/common/models/fillmode.mjs} +0 -0
  72. /package/{esm2020/common/models/size.mjs → esm2022/common/models/rounded.mjs} +0 -0
  73. /package/{esm2020/common/models/styling-classes.mjs → esm2022/common/models/size.mjs} +0 -0
  74. /package/{esm2020/common/models/theme-color.mjs → esm2022/common/models/styling-classes.mjs} +0 -0
  75. /package/{esm2020/direction.mjs → esm2022/common/models/theme-color.mjs} +0 -0
  76. /package/{esm2020 → esm2022}/common/models.mjs +0 -0
  77. /package/{esm2020/floatingactionbutton/models/align.mjs → esm2022/direction.mjs} +0 -0
  78. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  79. /package/{esm2020 → esm2022}/floatingactionbutton/animations/animations.mjs +0 -0
  80. /package/{esm2020/floatingactionbutton/models/item-animation.interface.mjs → esm2022/floatingactionbutton/models/align.mjs} +0 -0
  81. /package/{esm2020/floatingactionbutton/models/item-click.event.mjs → esm2022/floatingactionbutton/models/item-animation.interface.mjs} +0 -0
  82. /package/{esm2020/floatingactionbutton/models/item.interface.mjs → esm2022/floatingactionbutton/models/item-click.event.mjs} +0 -0
  83. /package/{esm2020/floatingactionbutton/models/offset.mjs → esm2022/floatingactionbutton/models/item.interface.mjs} +0 -0
  84. /package/{esm2020/floatingactionbutton/models/position-mode.mjs → esm2022/floatingactionbutton/models/offset.mjs} +0 -0
  85. /package/{esm2020/listbutton/list-item-model.mjs → esm2022/floatingactionbutton/models/position-mode.mjs} +0 -0
  86. /package/{esm2020 → esm2022}/floatingactionbutton/utils.mjs +0 -0
  87. /package/{esm2020 → esm2022}/index.mjs +0 -0
  88. /package/{esm2020/listbutton/popup-settings.mjs → esm2022/listbutton/list-item-model.mjs} +0 -0
  89. /package/{esm2020 → esm2022}/navigation/key-events.mjs +0 -0
  90. /package/{esm2020 → esm2022}/navigation/navigation-action.mjs +0 -0
  91. /package/{esm2020 → esm2022}/navigation/navigation-config.mjs +0 -0
  92. /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 (Button, ButtonGroup, Chip and ChipList, DropDownButton, FloatingActionButton, and SplitButton)
5
+ ## Kendo UI for Angular Buttons Package
6
6
 
7
- > **Important**
8
- > * This package is part of [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons)&mdash;a commercial library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
9
- > * You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Angular My License page](https://www.telerik.com/kendo-angular-ui/my-license?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons).
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/)&mdash;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
- What's in this package (ToC):
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 Button Component
13
+ ## What's Included in the Angular Buttons Package
26
14
 
27
- The [Angular Button](https://www.telerik.com/kendo-angular-ui/components/buttons/button/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) performs any action attached to it and will trigger and event when clicked. You can communicate the button's purprose with text only, and image (or icon only), or both. Additionally, built-in propertys help you easily configure the appearance.
15
+ The [Angular Buttons](https://www.telerik.com/kendo-angular-ui/components/buttons) package includes seven built-in components:
28
16
 
29
- ### Key Features
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
- * **Icon Button:** Chose an icon from the Kendo UI Icon library or provide your own image to give the button a viusal element.
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
- ## Angular ButtonGroup Component
27
+ Among the many features which the Kendo UI for Angular Buttons deliver are:
36
28
 
37
- The [Angular ButtonGroup](https://www.telerik.com/kendo-angular-ui/components/buttons/buttongroup/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-buttons) serves as a container for two or more buttons. The buttons contained within can be configured together or separately dending on your requirements.
38
-
39
- ### Key Features
40
- * **Single or Multiple Selection Modes:** Choose to allow users to select only one button in each group or allow them to select multiple.
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&mdash;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&mdash;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&mdash;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&mdash;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, use any of the available support channels:
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&mdash;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&mdash;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&mdash;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
- * [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
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.*
@@ -12,9 +12,8 @@ import * as i0 from "@angular/core";
12
12
  /**
13
13
  * Represents the Kendo UI Button component for Angular.
14
14
  *
15
- * As of package v16, the `span[kendoButton]` and `kendo-button` selectors are deprecated and can
16
- * be removed in a future major version. We recommend using the `button[kendoButton]` selector
17
- * to avoid discrepancies between the behavior of the `ButtonComponent` and the native HTML Button element.
15
+ * As of package v17, the `span[kendoButton]` and `kendo-button` selectors are removed.
16
+ * Please use the `button[kendoButton]` selector only.
18
17
  */
19
18
  export declare class ButtonComponent implements OnDestroy, AfterViewInit {
20
19
  renderer: Renderer2;
@@ -115,10 +114,6 @@ export declare class ButtonComponent implements OnDestroy, AfterViewInit {
115
114
  */
116
115
  set svgIcon(icon: SVGIcon);
117
116
  get svgIcon(): SVGIcon;
118
- /**
119
- * @hidden
120
- */
121
- role: string;
122
117
  /**
123
118
  * Fires each time the selected state of a toggleable button is changed.
124
119
  *
@@ -148,7 +143,6 @@ export declare class ButtonComponent implements OnDestroy, AfterViewInit {
148
143
  get classButton(): boolean;
149
144
  get isToggleable(): boolean;
150
145
  get iconButtonClass(): boolean;
151
- get roleSetter(): string;
152
146
  get classDisabled(): boolean;
153
147
  get classActive(): boolean;
154
148
  get getDirection(): string;
@@ -212,5 +206,5 @@ export declare class ButtonComponent implements OnDestroy, AfterViewInit {
212
206
  private handleClasses;
213
207
  private handleThemeColor;
214
208
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, [null, null, { optional: true; }, null, null]>;
215
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[kendoButton], span[kendoButton], kendo-button", ["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"; "role": "role"; "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>;
216
210
  }
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * The selection mode of the [ButtonGroup]({% slug api_buttons_buttongroupcomponent %}).
7
7
  */
8
- export declare type ButtonGroupSelection = 'single' | 'multiple';
8
+ export type ButtonGroupSelection = 'single' | 'multiple';
@@ -65,7 +65,7 @@ export declare class ButtonGroupComponent implements OnInit, OnDestroy, AfterCon
65
65
  private lastFocusedIndex;
66
66
  private direction;
67
67
  private subs;
68
- get wrapperClass(): boolean;
68
+ wrapperClasses: boolean;
69
69
  get disabledClass(): boolean;
70
70
  get stretchedClass(): boolean;
71
71
  role: string;
@@ -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], kendo-button"], 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
  }
@@ -65,10 +65,10 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
65
65
  */
66
66
  onClick($event: any): void;
67
67
  /**
68
- * When set to `true`, keyboard navigation is available through arrow keys and roving tabindex. Otherwise, all chips
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 false
71
+ * @default true
72
72
  */
73
73
  set navigable(value: boolean);
74
74
  get navigable(): boolean;
@@ -91,5 +91,5 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
91
91
  private updateChips;
92
92
  private normalizeActiveIndex;
93
93
  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>;
94
+ 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
95
  }
@@ -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
- * The avatarClass allows the usage of avatar icons rendered in the Chip.
42
+ * Use these settings to render an avatar within the Chip.
42
43
  */
43
- avatarClass: string;
44
+ avatarSettings: ChipAvatarSettings;
44
45
  /**
45
46
  * Specifies the selected state of the Chip.
46
47
  * @default false
@@ -186,10 +187,6 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
186
187
  * @hidden
187
188
  */
188
189
  get customIconClass(): string;
189
- /**
190
- * @hidden
191
- */
192
- get chipAvatarClass(): string;
193
190
  /**
194
191
  * @hidden
195
192
  */
@@ -219,5 +216,5 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
219
216
  private handleThemeColor;
220
217
  private keyDownHandler;
221
218
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
222
- static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "kendo-chip", never, { "label": "label"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "avatarClass": "avatarClass"; "selected": "selected"; "removable": "removable"; "removeIcon": "removeIcon"; "removeSvgIcon": "removeSvgIcon"; "hasMenu": "hasMenu"; "menuIcon": "menuIcon"; "menuSvgIcon": "menuSvgIcon"; "disabled": "disabled"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "themeColor": "themeColor"; }, { "remove": "remove"; "menuToggle": "menuToggle"; "contentClick": "contentClick"; }, never, ["*"], true, never>;
219
+ 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
220
  }
@@ -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
+ }
@@ -11,4 +11,4 @@
11
11
  * * `multiple`
12
12
  *
13
13
  */
14
- export declare type ChipListSelection = 'none' | 'single' | 'multiple';
14
+ export type ChipListSelection = 'none' | 'single' | 'multiple';
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * Represents the possible fillMode options of the buttons.
7
7
  */
8
- export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear' | 'none';
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 declare type ChipFillMode = 'solid' | 'outline' | 'none';
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 declare type ButtonRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
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 declare type ChipRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
12
+ export type ChipRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
@@ -6,12 +6,12 @@
6
6
  * Specifies the possible sizes of the buttons.
7
7
  *
8
8
  */
9
- export declare type ButtonSize = 'small' | 'medium' | 'large' | 'none';
9
+ export type ButtonSize = 'small' | 'medium' | 'large' | 'none';
10
10
  /**
11
11
  * Specifies the possible sizes of the Chip.
12
12
  */
13
- export declare type ChipSize = 'small' | 'medium' | 'large' | 'none';
13
+ export type ChipSize = 'small' | 'medium' | 'large' | 'none';
14
14
  /**
15
15
  * Specifies the possible gap between Chips in a ChipList.
16
16
  */
17
- export declare type ChipListSize = 'small' | 'medium' | 'large' | 'none';
17
+ export type ChipListSize = 'small' | 'medium' | 'large' | 'none';
@@ -19,7 +19,7 @@
19
19
  * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
20
20
  *
21
21
  */
22
- export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'none';
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`&mdash; Applies coloring based on the `warning` theme color.
31
31
  * * `error`&mdash; Applies coloring based on the `error` theme color.
32
32
  */
33
- export declare type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error' | 'none';
33
+ export type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error' | 'none';
package/direction.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * @hidden
7
7
  */
8
- export declare type Direction = 'ltr' | 'rtl';
8
+ export type Direction = 'ltr' | 'rtl';
@@ -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 { TemplateRef, ViewContainerRef, ElementRef, EventEmitter, NgZone, ChangeDetectorRef, AfterViewInit, Renderer2 } from '@angular/core';
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
  }