@progress/kendo-angular-buttons 19.1.1-develop.2 → 19.1.1

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 (61) hide show
  1. package/button/button.component.d.ts +26 -22
  2. package/button/button.module.d.ts +8 -18
  3. package/button/selection-settings.d.ts +4 -1
  4. package/buttongroup/buttongroup.component.d.ts +22 -18
  5. package/buttongroup/buttongroup.module.d.ts +18 -1
  6. package/buttons.module.d.ts +3 -13
  7. package/chip/chip-list.component.d.ts +19 -13
  8. package/chip/chip.component.d.ts +32 -46
  9. package/chip/chip.module.d.ts +8 -15
  10. package/chip/models/avatar-settings.interface.d.ts +9 -9
  11. package/chip/models/selection.d.ts +0 -1
  12. package/common/models/arrow-settings.d.ts +4 -4
  13. package/common/models/fillmode.d.ts +2 -2
  14. package/common/models/rounded.d.ts +2 -2
  15. package/common/models/size.d.ts +2 -3
  16. package/common/models/theme-color.d.ts +20 -19
  17. package/directives.d.ts +88 -8
  18. package/dropdownbutton/dropdownbutton.component.d.ts +38 -76
  19. package/dropdownbutton/dropdownbutton.module.d.ts +20 -4
  20. package/esm2022/button/button.component.mjs +28 -24
  21. package/esm2022/button/button.module.mjs +8 -18
  22. package/esm2022/buttongroup/buttongroup.component.mjs +22 -18
  23. package/esm2022/buttongroup/buttongroup.module.mjs +18 -1
  24. package/esm2022/buttons.module.mjs +3 -13
  25. package/esm2022/chip/chip-list.component.mjs +19 -13
  26. package/esm2022/chip/chip.component.mjs +34 -48
  27. package/esm2022/chip/chip.module.mjs +8 -15
  28. package/esm2022/directives.mjs +88 -8
  29. package/esm2022/dropdownbutton/dropdownbutton.component.mjs +38 -76
  30. package/esm2022/dropdownbutton/dropdownbutton.module.mjs +20 -4
  31. package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +33 -75
  32. package/esm2022/floatingactionbutton/floatingactionbutton.module.mjs +9 -17
  33. package/esm2022/floatingactionbutton/templates/dial-item-template.directive.mjs +12 -4
  34. package/esm2022/floatingactionbutton/templates/fab-template.directive.mjs +12 -3
  35. package/esm2022/listbutton/button-item-template.directive.mjs +15 -37
  36. package/esm2022/listbutton/list-button.mjs +12 -14
  37. package/esm2022/package-metadata.mjs +2 -2
  38. package/esm2022/splitbutton/localization/custom-messages.component.mjs +2 -2
  39. package/esm2022/splitbutton/localization/messages.mjs +14 -15
  40. package/esm2022/splitbutton/splitbutton.component.mjs +35 -135
  41. package/esm2022/splitbutton/splitbutton.module.mjs +3 -2
  42. package/fesm2022/progress-kendo-angular-buttons.mjs +435 -544
  43. package/floatingactionbutton/floatingactionbutton.component.d.ts +33 -75
  44. package/floatingactionbutton/floatingactionbutton.module.d.ts +9 -16
  45. package/floatingactionbutton/models/align.d.ts +6 -1
  46. package/floatingactionbutton/models/item-animation.interface.d.ts +6 -1
  47. package/floatingactionbutton/models/item-click.event.d.ts +8 -1
  48. package/floatingactionbutton/models/item.interface.d.ts +6 -6
  49. package/floatingactionbutton/models/offset.d.ts +7 -2
  50. package/floatingactionbutton/models/position-mode.d.ts +5 -5
  51. package/floatingactionbutton/templates/dial-item-template.directive.d.ts +12 -4
  52. package/floatingactionbutton/templates/fab-template.directive.d.ts +12 -3
  53. package/listbutton/button-item-template.directive.d.ts +15 -37
  54. package/listbutton/list-button.d.ts +12 -14
  55. package/listbutton/list-item-model.d.ts +12 -24
  56. package/listbutton/popup-settings.d.ts +17 -12
  57. package/package.json +7 -7
  58. package/splitbutton/localization/custom-messages.component.d.ts +2 -2
  59. package/splitbutton/localization/messages.d.ts +14 -15
  60. package/splitbutton/splitbutton.component.d.ts +35 -135
  61. package/splitbutton/splitbutton.module.d.ts +2 -1
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1749196463,
14
- version: '19.1.1-develop.2',
13
+ publishDate: 1749539933,
14
+ version: '19.1.1',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -8,8 +8,8 @@ import { Messages } from './messages';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-l10n";
10
10
  /**
11
- * Custom component messages override default component messages
12
- * ([see example]({% slug rtl_buttons %}).
11
+ * Represents a custom component for overriding the default SplitButton messages.
12
+ * ([see example]({% slug rtl_buttons %})).
13
13
  */
14
14
  export class SplitButtonCustomMessagesComponent extends Messages {
15
15
  service;
@@ -10,25 +10,24 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class Messages extends ComponentMessages {
12
12
  /**
13
- * The text for the SplitButton aria-label.
13
+ * Specifies the text for the SplitButton `aria-label`.
14
14
  *
15
- * The text for the aria-label consists of a two-part message - the text of the SplitButton and a localizable string.
16
- * For a SplitButton with text 'Reply', the default aria-label will be 'Reply splitbutton'.
15
+ * The `aria-label` text consists of two parts: the SplitButton text and a localizable string.
16
+ * For example, for a SplitButton with the text `'Reply'`, the default `aria-label` is `'Reply splitbutton'`.
17
17
  *
18
- * To allow reordering of the SplitButton text and the localizable part, the splitButtonLabel accepts a string with a
19
- * placeholder for the button text - e.g. 'splitbutton for {buttonText}'. The '{buttonText}' placeholder will be replaced
20
- * internally with the current SplitButton text, and the resulting aria-label will be rendered as 'splitbutton for Reply'.
18
+ * To reorder the SplitButton text and the localizable part, use the `splitButtonLabel` property with a
19
+ * placeholder for the button text, such as `'splitbutton for {buttonText}'`. The `{buttonText}` placeholder
20
+ * is replaced internally with the current SplitButton text. For instance, the resulting `aria-label` is
21
+ * rendered as `'splitbutton for Reply'`.
21
22
  *
22
23
  * @example
23
- *
24
- * ```ts-no-run
25
- * <kendo-splitbutton>
26
- * <kendo-splitbutton-messages
27
- * splitButtonLabel="splitbutton for {buttonText}"
28
- * >
29
- * </kendo-splitbutton-messages>
30
- * </kendo-splitbutton>
31
- * ```
24
+ * ```ts
25
+ * <kendo-splitbutton>
26
+ * <kendo-splitbutton-messages
27
+ * splitButtonLabel="splitbutton for {buttonText}">
28
+ * </kendo-splitbutton-messages>
29
+ * </kendo-splitbutton>
30
+ * ```
32
31
  */
33
32
  splitButtonLabel;
34
33
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
@@ -40,39 +40,27 @@ const DEFAULT_FILL_MODE = 'solid';
40
40
  *
41
41
  * @example
42
42
  * ```ts
43
- * _@Component({
43
+ * @Component({
44
44
  * selector: 'my-app',
45
45
  * template: `
46
- * <kendo-splitbutton [data]="data" icon="clipboard"
47
- * (itemClick)="onSplitButtonItemClick($event)"
48
- * (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
46
+ * <kendo-splitbutton [data]="items" (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
49
47
  * `
50
48
  * })
51
49
  *
52
50
  * class AppComponent {
53
- * public data: Array<any> = [{
51
+ * public items: Array<any> = [{
54
52
  * text: 'Keep Text Only',
55
53
  * icon: 'clipboard-text',
56
54
  * click: () => { console.log('Keep Text Only click handler'); }
57
55
  * }, {
58
56
  * text: 'Paste as HTML',
59
57
  * icon: 'clipboard-code'
60
- * }, {
61
- * text: 'Paste Markdown',
62
- * icon: 'clipboard-markdown'
63
- * }, {
64
- * text: 'Set Default Paste'
65
- * }];
58
+ * }
59
+ * ];
66
60
  *
67
61
  * public onSplitButtonClick(dataItem: any): void {
68
62
  * console.log('Paste');
69
63
  * }
70
- *
71
- * public onSplitButtonItemClick(dataItem: any): void {
72
- * if (dataItem) {
73
- * console.log(dataItem.text);
74
- * }
75
- * }
76
64
  * }
77
65
  * ```
78
66
  */
@@ -80,53 +68,39 @@ export class SplitButtonComponent extends ListButton {
80
68
  localization;
81
69
  renderer;
82
70
  /**
83
- * Sets the text of the SplitButton.
71
+ * Sets the text displayed within the SplitButton.
84
72
  */
85
73
  text = '';
86
74
  /**
87
- * Defines an icon to be rendered next to the button text.
88
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
75
+ * Specifies an icon to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
89
76
  */
90
77
  icon = '';
91
78
  /**
92
- * Defines an SVGIcon to be rendered next to the button text.
79
+ * Specifies an `SVGIcon` to display next to the button text.
93
80
  */
94
81
  svgIcon;
95
82
  /**
96
- * Defines an icon with a custom CSS class to be rendered next to the button text
97
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
83
+ * Specifies a custom CSS class for the icon displayed next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
98
84
  */
99
85
  iconClass;
100
86
  /**
101
- * Defines the type attribute of the main button
87
+ * Specifies the `type` attribute of the main button.
102
88
  */
103
89
  type = 'button';
104
90
  /**
105
- * Defines the location of an image to be displayed next to the button text
106
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
91
+ * Specifies the URL of an image to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
107
92
  */
108
93
  imageUrl = '';
109
94
  /**
110
- * The size property specifies the padding of the SplitButton
111
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
95
+ * Configures the padding of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#size)).
112
96
  *
113
- * The possible values are:
114
- * * `small`
115
- * * `medium` (default)
116
- * * `large`
117
- * * `none`
97
+ * @default 'medium'
118
98
  */
119
99
  size = 'medium';
120
100
  /**
121
- * The rounded property specifies the border radius of the SplitButton
122
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
101
+ * Configures the border radius of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#rounded)).
123
102
  *
124
- * The possible values are:
125
- * * `small`
126
- * * `medium` (default)
127
- * * `large`
128
- * * `full`
129
- * * `none`
103
+ * @default 'medium'
130
104
  */
131
105
  set rounded(rounded) {
132
106
  const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
@@ -137,14 +111,9 @@ export class SplitButtonComponent extends ListButton {
137
111
  return this._rounded;
138
112
  }
139
113
  /**
140
- * The fillMode property specifies the background and border styles of the SplitButton
141
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
114
+ * Configures the background and border styles of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#fillMode)).
142
115
  *
143
- * The available values are:
144
- * * `solid` (default)
145
- * * `flat`
146
- * * `outline`
147
- * * `link`
116
+ * @default 'solid'
148
117
  */
149
118
  set fillMode(fillMode) {
150
119
  const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
@@ -154,28 +123,13 @@ export class SplitButtonComponent extends ListButton {
154
123
  return this._fillMode;
155
124
  }
156
125
  /**
157
- * The SplitButton allows you to specify predefined theme colors.
158
- * The theme color will be applied as a background and border color while also amending the text color accordingly
159
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-themeColor)).
126
+ * Configures the theme color of the SplitButton. The theme color applies to the background, border, and text ([see example]({% slug api_buttons_splitbuttoncomponent %}#themeColor)).
160
127
  *
161
- * The possible values are:
162
- * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
163
- * * `primary` &mdash;Applies coloring based on the `primary` theme color.
164
- * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
165
- * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
166
- * * `info`&mdash;Applies coloring based on the `info` theme color.
167
- * * `success`&mdash; Applies coloring based on the `success` theme color.
168
- * * `warning`&mdash; Applies coloring based on the `warning` theme color.
169
- * * `error`&mdash; Applies coloring based on the `error` theme color.
170
- * * `dark`&mdash; Applies coloring based on the `dark` theme color.
171
- * * `light`&mdash; Applies coloring based on the `light` theme color.
172
- * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
173
- * * `none`&mdash; Removes the built in theme color.
128
+ * @default 'base'
174
129
  */
175
130
  themeColor = 'base';
176
131
  /**
177
- * When set to `true`, disables a SplitButton item
178
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
132
+ * Disables the SplitButton when set to `true` ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
179
133
  */
180
134
  set disabled(value) {
181
135
  if (this.isOpen) {
@@ -187,13 +141,7 @@ export class SplitButtonComponent extends ListButton {
187
141
  return this._disabled;
188
142
  }
189
143
  /**
190
- * Configures the popup of the SplitButton.
191
- *
192
- * The available options are:
193
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
194
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
195
- * - `appendTo: "root" | "component" | ViewContainerRef`&mdash;Specifies the component to which the popup will be appended.
196
- * - `align: "left" | "center" | "right"`&mdash;Specifies the alignment of the popup.
144
+ * Configures the popup settings of the SplitButton.
197
145
  */
198
146
  set popupSettings(settings) {
199
147
  this._popupSettings = Object.assign({ animate: true, popupClass: '' }, settings);
@@ -202,7 +150,7 @@ export class SplitButtonComponent extends ListButton {
202
150
  return this._popupSettings;
203
151
  }
204
152
  /**
205
- * Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
153
+ * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
206
154
  */
207
155
  tabIndex = 0;
208
156
  /**
@@ -210,9 +158,7 @@ export class SplitButtonComponent extends ListButton {
210
158
  */
211
159
  textField;
212
160
  /**
213
- * Sets the data of the SplitButton.
214
- *
215
- * > The data has to be provided in an array-like list.
161
+ * Sets the data for the SplitButton. Provide the data as an array-like list.
216
162
  */
217
163
  set data(data) {
218
164
  this._data = data || [];
@@ -224,22 +170,20 @@ export class SplitButtonComponent extends ListButton {
224
170
  return this._data;
225
171
  }
226
172
  /**
227
- * The CSS classes that will be rendered on the button which opens the popup.
228
- * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
173
+ * Specifies the CSS classes for the button that opens the popup.
174
+ * Supports values compatible with [`ngClass`](link:site.data.urls.angular['ngclassapi']).
229
175
  */
230
176
  arrowButtonClass;
231
177
  /**
232
- * Specifies the name of the [font icon](slug:icons#icons-list) that will
233
- * be rendered for the button which opens the popup.
178
+ * Specifies the name of the font icon displayed on the button that opens the popup.
234
179
  */
235
180
  arrowButtonIcon = 'caret-alt-down';
236
181
  /**
237
- * Specifies the [`SVGIcon`](slug:api_icons_svgicon) that will
238
- * be rendered for the button which opens the popup.
182
+ * Specifies the [`SVGIcon`](slug:api_icons_svgiconcomponent) displayed on the button that opens the popup.
239
183
  */
240
184
  arrowButtonSvgIcon = caretAltDownIcon;
241
185
  /**
242
- * Sets attributes to the main button.
186
+ * Sets attributes for the main button.
243
187
  */
244
188
  set buttonAttributes(buttonAttributes) {
245
189
  const newButtonAttributes = buttonAttributes ? buttonAttributes : null;
@@ -250,75 +194,31 @@ export class SplitButtonComponent extends ListButton {
250
194
  return this._buttonAttributes;
251
195
  }
252
196
  /**
253
- * Fires each time the user clicks the main button.
254
- *
255
- * @example
256
- * ```ts
257
- * _@Component({
258
- * selector: 'my-app',
259
- * template: `
260
- * <kendo-splitbutton (buttonClick)="onSplitButtonClick()" [data]="data">
261
- * Reply
262
- * </kendo-splitbutton>
263
- * `
264
- * })
265
- * class AppComponent {
266
- * public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
267
- *
268
- * public onSplitButtonClick(): void {
269
- * console.log('SplitButton click');
270
- * }
271
- * }
272
- * ```
273
- *
197
+ * Emits an event when the main button is clicked.
274
198
  */
275
199
  buttonClick = new EventEmitter();
276
200
  /**
277
- * Fires each time the user clicks on the drop-down list. The event data contains the data item bound to the clicked list item.
278
- *
279
- * @example
280
- * ```ts
281
- * _@Component({
282
- * selector: 'my-app',
283
- * template: `
284
- * <kendo-splitbutton (itemClick)="onSplitButtonItemClick($event)" [data]="data">
285
- * Reply
286
- * </kendo-splitbutton>
287
- * `
288
- * })
289
- * class AppComponent {
290
- * public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
291
- *
292
- * public onSplitButtonItemClick(dataItem?: string): void {
293
- * if (dataItem) {
294
- * console.log(dataItem);
295
- * }
296
- * }
297
- * }
298
- * ```
299
- *
201
+ * Emits an event when an item in the drop-down list is clicked. The event data contains the clicked item's data.
300
202
  */
301
203
  itemClick = new EventEmitter();
302
204
  /**
303
- * Fires each time the SplitButton gets focused.
205
+ * Emits an event when the SplitButton gains focus.
304
206
  */
305
207
  onFocus = new EventEmitter();
306
208
  /**
307
- * Fires each time the SplitButton gets blurred.
209
+ * Emits an event when the SplitButton is blurred.
308
210
  */
309
211
  onBlur = new EventEmitter();
310
212
  /**
311
- * Fires each time the popup is about to open.
312
- * This event is preventable. If you cancel the event, the popup will remain closed.
213
+ * Emits an event before the popup opens. This event is preventable.
313
214
  */
314
215
  open = new EventEmitter();
315
216
  /**
316
- * Fires each time the popup is about to close.
317
- * This event is preventable. If you cancel the event, the popup will remain open.
217
+ * Emits an event before the popup closes. This event is preventable.
318
218
  */
319
219
  close = new EventEmitter();
320
220
  /**
321
- * An item template that helps to customize the item content.
221
+ * Specifies a template to customize the content of the items in the drop-down list.
322
222
  */
323
223
  itemTemplate;
324
224
  activeArrow = false;
@@ -12,10 +12,11 @@ import * as i1 from "./splitbutton.component";
12
12
  import * as i2 from "./localization/custom-messages.component";
13
13
  import * as i3 from "@progress/kendo-angular-common";
14
14
  import * as i4 from "../listbutton/button-item-template.directive";
15
- //IMPORTANT: NgModule export kept for backwards compatibility
15
+ // IMPORTANT: NgModule export kept for backwards compatibility.
16
16
  /**
17
+ * Represents the exported package module.
17
18
  *
18
- * The exported package module.
19
+ * Required for adding SplitButton features in NgModule-based Angular applications.
19
20
  *
20
21
  * The package exports:
21
22
  * - `SplitButtonComponent`&mdash;The SplitButton component class.