@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.
- package/button/button.component.d.ts +26 -22
- package/button/button.module.d.ts +8 -18
- package/button/selection-settings.d.ts +4 -1
- package/buttongroup/buttongroup.component.d.ts +22 -18
- package/buttongroup/buttongroup.module.d.ts +18 -1
- package/buttons.module.d.ts +3 -13
- package/chip/chip-list.component.d.ts +19 -13
- package/chip/chip.component.d.ts +32 -46
- package/chip/chip.module.d.ts +8 -15
- package/chip/models/avatar-settings.interface.d.ts +9 -9
- package/chip/models/selection.d.ts +0 -1
- package/common/models/arrow-settings.d.ts +4 -4
- package/common/models/fillmode.d.ts +2 -2
- package/common/models/rounded.d.ts +2 -2
- package/common/models/size.d.ts +2 -3
- package/common/models/theme-color.d.ts +20 -19
- package/directives.d.ts +88 -8
- package/dropdownbutton/dropdownbutton.component.d.ts +38 -76
- package/dropdownbutton/dropdownbutton.module.d.ts +20 -4
- package/esm2022/button/button.component.mjs +28 -24
- package/esm2022/button/button.module.mjs +8 -18
- package/esm2022/buttongroup/buttongroup.component.mjs +22 -18
- package/esm2022/buttongroup/buttongroup.module.mjs +18 -1
- package/esm2022/buttons.module.mjs +3 -13
- package/esm2022/chip/chip-list.component.mjs +19 -13
- package/esm2022/chip/chip.component.mjs +34 -48
- package/esm2022/chip/chip.module.mjs +8 -15
- package/esm2022/directives.mjs +88 -8
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +38 -76
- package/esm2022/dropdownbutton/dropdownbutton.module.mjs +20 -4
- package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +33 -75
- package/esm2022/floatingactionbutton/floatingactionbutton.module.mjs +9 -17
- package/esm2022/floatingactionbutton/templates/dial-item-template.directive.mjs +12 -4
- package/esm2022/floatingactionbutton/templates/fab-template.directive.mjs +12 -3
- package/esm2022/listbutton/button-item-template.directive.mjs +15 -37
- package/esm2022/listbutton/list-button.mjs +12 -14
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/splitbutton/localization/custom-messages.component.mjs +2 -2
- package/esm2022/splitbutton/localization/messages.mjs +14 -15
- package/esm2022/splitbutton/splitbutton.component.mjs +35 -135
- package/esm2022/splitbutton/splitbutton.module.mjs +3 -2
- package/fesm2022/progress-kendo-angular-buttons.mjs +435 -544
- package/floatingactionbutton/floatingactionbutton.component.d.ts +33 -75
- package/floatingactionbutton/floatingactionbutton.module.d.ts +9 -16
- package/floatingactionbutton/models/align.d.ts +6 -1
- package/floatingactionbutton/models/item-animation.interface.d.ts +6 -1
- package/floatingactionbutton/models/item-click.event.d.ts +8 -1
- package/floatingactionbutton/models/item.interface.d.ts +6 -6
- package/floatingactionbutton/models/offset.d.ts +7 -2
- package/floatingactionbutton/models/position-mode.d.ts +5 -5
- package/floatingactionbutton/templates/dial-item-template.directive.d.ts +12 -4
- package/floatingactionbutton/templates/fab-template.directive.d.ts +12 -3
- package/listbutton/button-item-template.directive.d.ts +15 -37
- package/listbutton/list-button.d.ts +12 -14
- package/listbutton/list-item-model.d.ts +12 -24
- package/listbutton/popup-settings.d.ts +17 -12
- package/package.json +7 -7
- package/splitbutton/localization/custom-messages.component.d.ts +2 -2
- package/splitbutton/localization/messages.d.ts +14 -15
- package/splitbutton/splitbutton.component.d.ts +35 -135
- package/splitbutton/splitbutton.module.d.ts +2 -1
|
@@ -44,8 +44,8 @@ const packageMetadata = {
|
|
|
44
44
|
productName: 'Kendo UI for Angular',
|
|
45
45
|
productCode: 'KENDOUIANGULAR',
|
|
46
46
|
productCodes: ['KENDOUIANGULAR'],
|
|
47
|
-
publishDate:
|
|
48
|
-
version: '19.1.1
|
|
47
|
+
publishDate: 1749539933,
|
|
48
|
+
version: '19.1.1',
|
|
49
49
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -155,7 +155,12 @@ const DEFAULT_FILL_MODE$3 = 'solid';
|
|
|
155
155
|
* Represents the Kendo UI Button component for Angular.
|
|
156
156
|
*
|
|
157
157
|
* As of package v17, the `span[kendoButton]` and `kendo-button` selectors are removed.
|
|
158
|
-
*
|
|
158
|
+
* Use the `button[kendoButton]` selector only.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```html
|
|
162
|
+
* <button kendoButton [icon]="'save'" [themeColor]="'primary'">Save</button>
|
|
163
|
+
* ```
|
|
159
164
|
*/
|
|
160
165
|
class ButtonComponent {
|
|
161
166
|
renderer;
|
|
@@ -168,7 +173,7 @@ class ButtonComponent {
|
|
|
168
173
|
*/
|
|
169
174
|
arrowIcon = false;
|
|
170
175
|
/**
|
|
171
|
-
*
|
|
176
|
+
* Adds visual styling to indicate when the Button is active.
|
|
172
177
|
*
|
|
173
178
|
* @default false
|
|
174
179
|
*/
|
|
@@ -189,6 +194,7 @@ class ButtonComponent {
|
|
|
189
194
|
}
|
|
190
195
|
/**
|
|
191
196
|
* Sets the selected state of the Button.
|
|
197
|
+
* Use with the `toggleable` property.
|
|
192
198
|
*
|
|
193
199
|
* @default false
|
|
194
200
|
*/
|
|
@@ -208,13 +214,12 @@ class ButtonComponent {
|
|
|
208
214
|
return this.element.tabIndex;
|
|
209
215
|
}
|
|
210
216
|
/**
|
|
211
|
-
*
|
|
217
|
+
* Specifies a URL for an `img` element inside the Button.
|
|
212
218
|
* The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
|
|
213
219
|
*/
|
|
214
220
|
imageUrl;
|
|
215
221
|
/**
|
|
216
|
-
* Defines a CSS class
|
|
217
|
-
* which are applied to a `span` element inside the Button. Allows the usage of custom icons.
|
|
222
|
+
* Defines a CSS class, or multiple classes separated by spaces applied to a `span` element inside the Button. Use the `iconClass` to add custom icons.
|
|
218
223
|
*/
|
|
219
224
|
set iconClass(value) {
|
|
220
225
|
if (isDevMode() && value && (this.icon || this.svgIcon)) {
|
|
@@ -226,7 +231,7 @@ class ButtonComponent {
|
|
|
226
231
|
return this._iconClass;
|
|
227
232
|
}
|
|
228
233
|
/**
|
|
229
|
-
*
|
|
234
|
+
* Sets the name of an existing font icon in the Kendo UI theme.
|
|
230
235
|
*/
|
|
231
236
|
set icon(name) {
|
|
232
237
|
if (isDevMode() && name && this.iconClass) {
|
|
@@ -238,7 +243,7 @@ class ButtonComponent {
|
|
|
238
243
|
return this._icon;
|
|
239
244
|
}
|
|
240
245
|
/**
|
|
241
|
-
*
|
|
246
|
+
* When `true`, disables the Button and prevents user interaction.
|
|
242
247
|
*
|
|
243
248
|
* @default false
|
|
244
249
|
*/
|
|
@@ -254,8 +259,8 @@ class ButtonComponent {
|
|
|
254
259
|
return this.isDisabled;
|
|
255
260
|
}
|
|
256
261
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
262
|
+
* Sets the padding of the Button.
|
|
263
|
+
* See [Button Appearance]({% slug appearance_button %}#size).
|
|
259
264
|
*
|
|
260
265
|
* @default 'medium'
|
|
261
266
|
*/
|
|
@@ -268,8 +273,8 @@ class ButtonComponent {
|
|
|
268
273
|
return this._size;
|
|
269
274
|
}
|
|
270
275
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
276
|
+
* Sets the border radius of the Button.
|
|
277
|
+
* See [Button Appearance](slug:appearance_button#roundness).
|
|
273
278
|
*
|
|
274
279
|
* @default 'medium'
|
|
275
280
|
*/
|
|
@@ -282,8 +287,8 @@ class ButtonComponent {
|
|
|
282
287
|
return this._rounded;
|
|
283
288
|
}
|
|
284
289
|
/**
|
|
285
|
-
*
|
|
286
|
-
*
|
|
290
|
+
* Sets the background and border styles of the Button.
|
|
291
|
+
* See [Button Appearance](slug:appearance_button#fill-mode).
|
|
287
292
|
*
|
|
288
293
|
* @default 'solid'
|
|
289
294
|
*/
|
|
@@ -296,9 +301,9 @@ class ButtonComponent {
|
|
|
296
301
|
return this._fillMode;
|
|
297
302
|
}
|
|
298
303
|
/**
|
|
299
|
-
*
|
|
300
|
-
* The theme color
|
|
301
|
-
*
|
|
304
|
+
* Sets a predefined theme color for the Button.
|
|
305
|
+
* The theme color applies as a background and border color and adjusts the text color.
|
|
306
|
+
* See [Button Appearance](slug:appearance_button#theme-colors).
|
|
302
307
|
*
|
|
303
308
|
* @default 'base'
|
|
304
309
|
*/
|
|
@@ -311,7 +316,7 @@ class ButtonComponent {
|
|
|
311
316
|
return this._themeColor;
|
|
312
317
|
}
|
|
313
318
|
/**
|
|
314
|
-
*
|
|
319
|
+
* Sets an SVG icon to display inside the Button.
|
|
315
320
|
*/
|
|
316
321
|
set svgIcon(icon) {
|
|
317
322
|
if (isDevMode() && icon && this.iconClass) {
|
|
@@ -323,13 +328,12 @@ class ButtonComponent {
|
|
|
323
328
|
return this._svgIcon;
|
|
324
329
|
}
|
|
325
330
|
/**
|
|
326
|
-
* Fires
|
|
327
|
-
*
|
|
328
|
-
* The event argument is the new selected state (boolean).
|
|
331
|
+
* Fires when the selected state of a toggleable button changes.
|
|
332
|
+
* The event argument is the new selected state (`boolean`).
|
|
329
333
|
*/
|
|
330
334
|
selectedChange = new EventEmitter();
|
|
331
335
|
/**
|
|
332
|
-
* Fires
|
|
336
|
+
* Fires when the user clicks the Button.
|
|
333
337
|
*/
|
|
334
338
|
click = new EventEmitter();
|
|
335
339
|
element;
|
|
@@ -466,7 +470,7 @@ class ButtonComponent {
|
|
|
466
470
|
}
|
|
467
471
|
}
|
|
468
472
|
/**
|
|
469
|
-
*
|
|
473
|
+
* Removes focus from the Button component.
|
|
470
474
|
*/
|
|
471
475
|
blur() {
|
|
472
476
|
if (isDocumentAvailable()) {
|
|
@@ -580,7 +584,7 @@ class ButtonComponent {
|
|
|
580
584
|
[name]="$any(arrowIcon).icon || 'caret-alt-down'"
|
|
581
585
|
[svgIcon]="$any(arrowIcon).svgIcon || caretAltDownIcon"></kendo-icon-wrapper>
|
|
582
586
|
</span>
|
|
583
|
-
|
|
587
|
+
|
|
584
588
|
`, 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"] }] });
|
|
585
589
|
}
|
|
586
590
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
@@ -612,7 +616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
612
616
|
[name]="$any(arrowIcon).icon || 'caret-alt-down'"
|
|
613
617
|
[svgIcon]="$any(arrowIcon).svgIcon || caretAltDownIcon"></kendo-icon-wrapper>
|
|
614
618
|
</span>
|
|
615
|
-
|
|
619
|
+
|
|
616
620
|
`,
|
|
617
621
|
standalone: true,
|
|
618
622
|
imports: [NgIf, IconWrapperComponent, NgClass]
|
|
@@ -709,34 +713,38 @@ class PreventableEvent {
|
|
|
709
713
|
const tabindex = 'tabindex';
|
|
710
714
|
/**
|
|
711
715
|
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
716
|
+
*
|
|
717
|
+
* @example
|
|
718
|
+
* ```html
|
|
719
|
+
* <kendo-buttongroup>
|
|
720
|
+
* <button kendoButton>Left</button>
|
|
721
|
+
* <button kendoButton>Middle</button>
|
|
722
|
+
* <button kendoButton>Right</button>
|
|
723
|
+
* </kendo-buttongroup>
|
|
724
|
+
* ```
|
|
725
|
+
*
|
|
726
|
+
* @remarks
|
|
727
|
+
* Supported children components are: {@link ButtonComponent}.
|
|
712
728
|
*/
|
|
713
729
|
class ButtonGroupComponent {
|
|
714
730
|
service;
|
|
715
731
|
renderer;
|
|
716
732
|
element;
|
|
717
733
|
/**
|
|
718
|
-
*
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
* To disable a specific button, set its own `disabled` attribute to `true`
|
|
722
|
-
* and leave the `disabled` attribute of the ButtonGroup undefined.
|
|
723
|
-
* If you define the `disabled` attribute of the ButtonGroup, it will take
|
|
724
|
-
* precedence over the `disabled` attributes of the underlying buttons and they will be ignored.
|
|
725
|
-
*
|
|
726
|
-
* For more information on how to configure the Button, refer to
|
|
727
|
-
* its [API documentation]({% slug api_buttons_buttoncomponent %}).
|
|
734
|
+
* To disable a specific button, set **only** its `disabled` property to `true`.
|
|
735
|
+
* If you also set the ButtonGroup `disabled` property, it takes precedence over
|
|
736
|
+
* the `disabled` properties of the underlying buttons and they are ignored.
|
|
728
737
|
*/
|
|
729
738
|
disabled;
|
|
730
739
|
/**
|
|
731
|
-
*
|
|
740
|
+
* Sets the selection mode of the ButtonGroup.
|
|
741
|
+
*
|
|
732
742
|
* @default 'multiple'
|
|
733
743
|
*/
|
|
734
744
|
selection = 'multiple';
|
|
735
745
|
/**
|
|
736
746
|
* Sets the width of the ButtonGroup.
|
|
737
|
-
*
|
|
738
|
-
* - The buttons resize automatically to fill the full width of the group wrapper.
|
|
739
|
-
* - The buttons acquire the same width.
|
|
747
|
+
* When set, the buttons resize automatically to fill the full width of the group wrapper and acquire the same width.
|
|
740
748
|
*/
|
|
741
749
|
width;
|
|
742
750
|
/**
|
|
@@ -750,16 +758,16 @@ class ButtonGroupComponent {
|
|
|
750
758
|
return this._tabIndex;
|
|
751
759
|
}
|
|
752
760
|
/**
|
|
753
|
-
* When
|
|
754
|
-
* and focus
|
|
761
|
+
* When set to `true`, the component is a single tab-stop,
|
|
762
|
+
* and focus moves through the inner buttons using the arrow keys.
|
|
755
763
|
*
|
|
756
|
-
* When
|
|
764
|
+
* When set to `false`, the inner buttons are part of the natural tab sequence of the page.
|
|
757
765
|
*
|
|
758
766
|
* @default true
|
|
759
767
|
*/
|
|
760
768
|
navigable = true;
|
|
761
769
|
/**
|
|
762
|
-
* Fires every time keyboard navigation occurs.
|
|
770
|
+
* Fires every time keyboard navigation occurs within the ButtonGroup.
|
|
763
771
|
*/
|
|
764
772
|
navigate = new EventEmitter();
|
|
765
773
|
buttons;
|
|
@@ -1026,7 +1034,12 @@ const DEFAULT_ROUNDED$2 = 'medium';
|
|
|
1026
1034
|
const DEFAULT_THEME_COLOR$1 = 'base';
|
|
1027
1035
|
const DEFAULT_FILL_MODE$2 = 'solid';
|
|
1028
1036
|
/**
|
|
1029
|
-
* Displays a Chip that represents an input, attribute or
|
|
1037
|
+
* Displays a Chip that represents an input, attribute, or action.
|
|
1038
|
+
*
|
|
1039
|
+
* @example
|
|
1040
|
+
* ```html
|
|
1041
|
+
* <kendo-chip label="Chip Label"></kendo-chip>
|
|
1042
|
+
* ```
|
|
1030
1043
|
*/
|
|
1031
1044
|
class ChipComponent {
|
|
1032
1045
|
element;
|
|
@@ -1043,14 +1056,13 @@ class ChipComponent {
|
|
|
1043
1056
|
*/
|
|
1044
1057
|
icon;
|
|
1045
1058
|
/**
|
|
1046
|
-
* Defines an [`SVGIcon`](slug:api_icons_svgicon)
|
|
1059
|
+
* Defines an [`SVGIcon`](slug:api_icons_svgicon) to render inside the Chip using
|
|
1047
1060
|
* a [`KendoSVGIcon`](slug:api_icons_svgiconcomponent) component.
|
|
1048
1061
|
*/
|
|
1049
1062
|
svgIcon;
|
|
1050
1063
|
/**
|
|
1051
|
-
* Defines a CSS class
|
|
1052
|
-
*
|
|
1053
|
-
* Allows the usage of custom icons.
|
|
1064
|
+
* Defines a CSS class, or multiple classes separated by spaces,
|
|
1065
|
+
* applied to a `span` element. Use the `iconClass` to add custom icons.
|
|
1054
1066
|
*/
|
|
1055
1067
|
iconClass;
|
|
1056
1068
|
/**
|
|
@@ -1063,18 +1075,18 @@ class ChipComponent {
|
|
|
1063
1075
|
*/
|
|
1064
1076
|
selected = false;
|
|
1065
1077
|
/**
|
|
1066
|
-
* Specifies if the Chip
|
|
1067
|
-
* If
|
|
1078
|
+
* Specifies if the Chip is removable.
|
|
1079
|
+
* If set to `true`, the Chip renders a remove icon.
|
|
1068
1080
|
* @default false
|
|
1069
1081
|
*/
|
|
1070
1082
|
removable = false;
|
|
1071
1083
|
/**
|
|
1072
|
-
* Specifies a custom remove font icon class
|
|
1084
|
+
* Specifies a custom remove font icon class to render when the Chip is removable.
|
|
1073
1085
|
* [see example]({% slug icons %})
|
|
1074
1086
|
*/
|
|
1075
1087
|
removeIcon;
|
|
1076
1088
|
/**
|
|
1077
|
-
* Specifies a custom remove SVG icon
|
|
1089
|
+
* Specifies a custom remove SVG icon to render when the Chip is removable.
|
|
1078
1090
|
*/
|
|
1079
1091
|
removeSvgIcon;
|
|
1080
1092
|
/**
|
|
@@ -1086,29 +1098,25 @@ class ChipComponent {
|
|
|
1086
1098
|
/**
|
|
1087
1099
|
* @hidden
|
|
1088
1100
|
*
|
|
1089
|
-
* Specifies a custom menu font icon class
|
|
1101
|
+
* Specifies a custom menu font icon class to render when the Chip has a menu.
|
|
1090
1102
|
*/
|
|
1091
1103
|
menuIcon;
|
|
1092
1104
|
/**
|
|
1093
1105
|
* @hidden
|
|
1094
1106
|
*
|
|
1095
|
-
* Specifies a custom menu SVG icon
|
|
1107
|
+
* Specifies a custom menu SVG icon to render when the Chip has a menu.
|
|
1096
1108
|
*/
|
|
1097
1109
|
menuSvgIcon;
|
|
1098
1110
|
/**
|
|
1099
|
-
* If set to `true`, the Chip
|
|
1111
|
+
* If set to `true`, the Chip is disabled.
|
|
1100
1112
|
* @default false
|
|
1101
1113
|
*/
|
|
1102
1114
|
disabled = false;
|
|
1103
1115
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
*
|
|
1116
|
+
* Sets the padding of the Chip.
|
|
1117
|
+
* See [Chip Appearance]({% slug appearance_chip %}#size).
|
|
1106
1118
|
*
|
|
1107
|
-
*
|
|
1108
|
-
* * `small`
|
|
1109
|
-
* * `medium` (default)
|
|
1110
|
-
* * `large`
|
|
1111
|
-
* * `none`
|
|
1119
|
+
* @default 'medium'
|
|
1112
1120
|
*/
|
|
1113
1121
|
set size(size) {
|
|
1114
1122
|
const newSize = size ? size : DEFAULT_SIZE$1;
|
|
@@ -1120,15 +1128,10 @@ class ChipComponent {
|
|
|
1120
1128
|
return this._size;
|
|
1121
1129
|
}
|
|
1122
1130
|
/**
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1131
|
+
* Sets the border radius of the Chip.
|
|
1132
|
+
* See [Chip Appearance](slug:appearance_chip#roundness).
|
|
1125
1133
|
*
|
|
1126
|
-
*
|
|
1127
|
-
* * `small`
|
|
1128
|
-
* * `medium` (default)
|
|
1129
|
-
* * `large`
|
|
1130
|
-
* * `full`
|
|
1131
|
-
* * `none`
|
|
1134
|
+
* @default 'medium'
|
|
1132
1135
|
*/
|
|
1133
1136
|
set rounded(rounded) {
|
|
1134
1137
|
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$2;
|
|
@@ -1139,13 +1142,10 @@ class ChipComponent {
|
|
|
1139
1142
|
return this._rounded;
|
|
1140
1143
|
}
|
|
1141
1144
|
/**
|
|
1142
|
-
*
|
|
1143
|
-
*
|
|
1145
|
+
* Sets the background and border styles of the Chip.
|
|
1146
|
+
* See [Chip Appearance](slug:appearance_chip#fill-mode).
|
|
1144
1147
|
*
|
|
1145
|
-
*
|
|
1146
|
-
* * `solid` (default)
|
|
1147
|
-
* * `outline`
|
|
1148
|
-
* * `none`
|
|
1148
|
+
* @default 'solid'
|
|
1149
1149
|
*/
|
|
1150
1150
|
set fillMode(fillMode) {
|
|
1151
1151
|
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$2;
|
|
@@ -1156,17 +1156,11 @@ class ChipComponent {
|
|
|
1156
1156
|
return this._fillMode;
|
|
1157
1157
|
}
|
|
1158
1158
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* The theme color
|
|
1161
|
-
*
|
|
1159
|
+
* Sets a predefined theme color for the Chip.
|
|
1160
|
+
* The theme color applies as a background and border color and adjusts the text color.
|
|
1161
|
+
* See [Chip Appearance](slug:appearance_chip#theme-colors).
|
|
1162
1162
|
*
|
|
1163
|
-
*
|
|
1164
|
-
* * `base` (default)
|
|
1165
|
-
* * `info`
|
|
1166
|
-
* * `success`
|
|
1167
|
-
* * `warning`
|
|
1168
|
-
* * `error`
|
|
1169
|
-
* * `none`
|
|
1163
|
+
* @default 'base'
|
|
1170
1164
|
*/
|
|
1171
1165
|
set themeColor(themeColor) {
|
|
1172
1166
|
const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR$1;
|
|
@@ -1177,17 +1171,17 @@ class ChipComponent {
|
|
|
1177
1171
|
return this._themeColor;
|
|
1178
1172
|
}
|
|
1179
1173
|
/**
|
|
1180
|
-
* Fires
|
|
1174
|
+
* Fires when the user clicks the remove icon of the Chip.
|
|
1181
1175
|
*/
|
|
1182
1176
|
remove = new EventEmitter();
|
|
1183
1177
|
/**
|
|
1184
1178
|
* @hidden
|
|
1185
1179
|
*
|
|
1186
|
-
* Fires
|
|
1180
|
+
* Fires when the user clicks the menu icon of the Chip.
|
|
1187
1181
|
*/
|
|
1188
1182
|
menuToggle = new EventEmitter();
|
|
1189
1183
|
/**
|
|
1190
|
-
* Fires
|
|
1184
|
+
* Fires when the user clicks the content of the Chip.
|
|
1191
1185
|
*/
|
|
1192
1186
|
contentClick = new EventEmitter();
|
|
1193
1187
|
tabIndex = 0;
|
|
@@ -1411,7 +1405,7 @@ class ChipComponent {
|
|
|
1411
1405
|
<img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
|
|
1412
1406
|
</span>
|
|
1413
1407
|
</ng-container>
|
|
1414
|
-
|
|
1408
|
+
|
|
1415
1409
|
<ng-container *ngIf="avatarSettings?.initials">
|
|
1416
1410
|
<span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
|
|
1417
1411
|
</ng-container>
|
|
@@ -1472,7 +1466,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1472
1466
|
<img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
|
|
1473
1467
|
</span>
|
|
1474
1468
|
</ng-container>
|
|
1475
|
-
|
|
1469
|
+
|
|
1476
1470
|
<ng-container *ngIf="avatarSettings?.initials">
|
|
1477
1471
|
<span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
|
|
1478
1472
|
</ng-container>
|
|
@@ -1582,6 +1576,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1582
1576
|
args: ['attr.dir']
|
|
1583
1577
|
}] } });
|
|
1584
1578
|
|
|
1579
|
+
/**
|
|
1580
|
+
* Represents the Kendo UI ChipList component for Angular. Displays a list of Chip components.
|
|
1581
|
+
*
|
|
1582
|
+
* @example
|
|
1583
|
+
* ```html
|
|
1584
|
+
* <kendo-chiplist selection="multiple">
|
|
1585
|
+
* <kendo-chip label="Chip 1"></kendo-chip>
|
|
1586
|
+
* <kendo-chip label="Chip 2"></kendo-chip>
|
|
1587
|
+
* </kendo-chiplist>
|
|
1588
|
+
* ```
|
|
1589
|
+
* @remarks
|
|
1590
|
+
* Supported children components are: {@link ChipComponent}.
|
|
1591
|
+
*/
|
|
1585
1592
|
class ChipListComponent {
|
|
1586
1593
|
localizationService;
|
|
1587
1594
|
renderer;
|
|
@@ -1596,21 +1603,14 @@ class ChipListComponent {
|
|
|
1596
1603
|
/**
|
|
1597
1604
|
* Sets the selection mode of the ChipList.
|
|
1598
1605
|
*
|
|
1599
|
-
*
|
|
1600
|
-
* * `none` (default)
|
|
1601
|
-
* * `single`
|
|
1602
|
-
* * `multiple`
|
|
1606
|
+
* @default 'none'
|
|
1603
1607
|
*/
|
|
1604
1608
|
selection = 'none';
|
|
1605
1609
|
/**
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1610
|
+
* Sets the gap between the Chips in the ChipList.
|
|
1611
|
+
* See [ChipList Appearance]({% slug appearance_chiplist %}#size).
|
|
1608
1612
|
*
|
|
1609
|
-
*
|
|
1610
|
-
* * `'small'`
|
|
1611
|
-
* * `'medium'` (default)
|
|
1612
|
-
* * `'large'`
|
|
1613
|
-
* * `none`
|
|
1613
|
+
* @default 'medium'
|
|
1614
1614
|
*/
|
|
1615
1615
|
set size(size) {
|
|
1616
1616
|
const sizeValue = size ? size : 'medium';
|
|
@@ -1622,11 +1622,11 @@ class ChipListComponent {
|
|
|
1622
1622
|
return this._size;
|
|
1623
1623
|
}
|
|
1624
1624
|
/**
|
|
1625
|
-
* Fires
|
|
1625
|
+
* Fires when the ChipList selection changes.
|
|
1626
1626
|
*/
|
|
1627
1627
|
selectedChange = new EventEmitter();
|
|
1628
1628
|
/**
|
|
1629
|
-
* Fires
|
|
1629
|
+
* Fires when the user clicks the remove icon of a Chip in the ChipList.
|
|
1630
1630
|
*/
|
|
1631
1631
|
remove = new EventEmitter();
|
|
1632
1632
|
chips;
|
|
@@ -1907,49 +1907,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1907
1907
|
}] } });
|
|
1908
1908
|
|
|
1909
1909
|
/**
|
|
1910
|
-
*
|
|
1910
|
+
* Renders the list item content.
|
|
1911
1911
|
*
|
|
1912
1912
|
* To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
|
|
1913
1913
|
*
|
|
1914
|
-
*
|
|
1915
|
-
*
|
|
1914
|
+
* - Use the `kendoDropDownButtonItemTemplate` directive for the DropDownButton.
|
|
1915
|
+
* - Use the `kendoSplitButtonItemTemplate` directive for the SplitButton.
|
|
1916
1916
|
*
|
|
1917
|
-
* The template context is set to the current component.
|
|
1917
|
+
* The template context is set to the current component. Use the `let-dataItem` directive to reference the current data item.
|
|
1918
1918
|
*
|
|
1919
1919
|
* @example
|
|
1920
|
-
* ```
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
1931
|
-
* <span>{{dataItem}} option</span>
|
|
1932
|
-
* </ng-template>
|
|
1933
|
-
* </kendo-dropdownbutton>
|
|
1934
|
-
* `
|
|
1935
|
-
* })
|
|
1936
|
-
* class AppComponent {
|
|
1937
|
-
* public listItems: Array<any> = [{
|
|
1938
|
-
* text: 'item1',
|
|
1939
|
-
* icon: 'arrow-rotate-cw',
|
|
1940
|
-
* disabled: false,
|
|
1941
|
-
* click: (dataItem: any) => {
|
|
1942
|
-
* //action
|
|
1943
|
-
* }
|
|
1944
|
-
* }, {
|
|
1945
|
-
* text: 'item2',
|
|
1946
|
-
* icon: 'arrow-rotate-cw',
|
|
1947
|
-
* disabled: false,
|
|
1948
|
-
* click: (dataItem: any) => {
|
|
1949
|
-
* //action
|
|
1950
|
-
* }
|
|
1951
|
-
* }]
|
|
1952
|
-
* }
|
|
1920
|
+
* ```html
|
|
1921
|
+
* <kendo-splitbutton [data]="listItems">
|
|
1922
|
+
* <ng-template kendoSplitButtonItemTemplate let-dataItem>
|
|
1923
|
+
* <span>{{dataItem}} option</span>
|
|
1924
|
+
* </ng-template>
|
|
1925
|
+
* </kendo-splitbutton>
|
|
1926
|
+
* <kendo-dropdownbutton [data]="listItems">
|
|
1927
|
+
* <ng-template kendoDropDownButtonItemTemplate let-dataItem>
|
|
1928
|
+
* <span>{{dataItem}} option</span>
|
|
1929
|
+
* </ng-template>
|
|
1930
|
+
* </kendo-dropdownbutton>
|
|
1953
1931
|
* ```
|
|
1954
1932
|
*
|
|
1955
1933
|
* For more examples, refer to the article on the [DropDownButton templates](slug:itemstemplates_dropdownbutton).
|
|
@@ -2394,6 +2372,7 @@ class ListButton extends MultiTabStop {
|
|
|
2394
2372
|
container;
|
|
2395
2373
|
/**
|
|
2396
2374
|
* Sets the disabled state of the DropDownButton.
|
|
2375
|
+
* When `true`, the button is disabled and cannot be interacted with.
|
|
2397
2376
|
*/
|
|
2398
2377
|
set disabled(value) {
|
|
2399
2378
|
if (value && this.openState) {
|
|
@@ -2406,21 +2385,24 @@ class ListButton extends MultiTabStop {
|
|
|
2406
2385
|
}
|
|
2407
2386
|
/**
|
|
2408
2387
|
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
2388
|
+
* Determines the order of focus when navigating with the keyboard.
|
|
2389
|
+
*
|
|
2390
|
+
* @default 0
|
|
2409
2391
|
*/
|
|
2410
2392
|
tabIndex = 0;
|
|
2411
2393
|
/**
|
|
2412
|
-
* The CSS classes
|
|
2413
|
-
* Supports the
|
|
2394
|
+
* The CSS classes applied to the main button.
|
|
2395
|
+
* Supports the same values as [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
2414
2396
|
*/
|
|
2415
2397
|
buttonClass;
|
|
2416
2398
|
/**
|
|
2417
|
-
* Fires
|
|
2418
|
-
* This event is preventable.
|
|
2399
|
+
* Fires when the popup is about to open.
|
|
2400
|
+
* This event is preventable. Canceling the event keeps the popup closed.
|
|
2419
2401
|
*/
|
|
2420
2402
|
open = new EventEmitter();
|
|
2421
2403
|
/**
|
|
2422
|
-
* Fires
|
|
2423
|
-
* This event is preventable.
|
|
2404
|
+
* Fires when the popup is about to close.
|
|
2405
|
+
* This event is preventable. Canceling the event keeps the popup open.
|
|
2424
2406
|
*/
|
|
2425
2407
|
close = new EventEmitter();
|
|
2426
2408
|
/**
|
|
@@ -2444,12 +2426,6 @@ class ListButton extends MultiTabStop {
|
|
|
2444
2426
|
}
|
|
2445
2427
|
/**
|
|
2446
2428
|
* Configures the popup of the DropDownButton.
|
|
2447
|
-
*
|
|
2448
|
-
* The available options are:
|
|
2449
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
2450
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
2451
|
-
* - `appendTo: "root" | "component" | ViewContainerRef`—Specifies the component to which the popup will be appended.
|
|
2452
|
-
* - `align: "left" | "center" | "right"`—Specifies the alignment of the popup.
|
|
2453
2429
|
*/
|
|
2454
2430
|
set popupSettings(settings) {
|
|
2455
2431
|
this._popupSettings = Object.assign({ animate: true, popupClass: '' }, settings);
|
|
@@ -2586,9 +2562,9 @@ class ListButton extends MultiTabStop {
|
|
|
2586
2562
|
}
|
|
2587
2563
|
/**
|
|
2588
2564
|
* Toggles the visibility of the popup.
|
|
2589
|
-
* If the `toggle` method is used
|
|
2565
|
+
* If the `toggle` method is used, the `open` and `close` events are not fired.
|
|
2590
2566
|
*
|
|
2591
|
-
* @param open - The state of the popup.
|
|
2567
|
+
* @param open - The desired state of the popup.
|
|
2592
2568
|
*/
|
|
2593
2569
|
toggle(open) {
|
|
2594
2570
|
if (this.disabled) {
|
|
@@ -2802,28 +2778,26 @@ const DEFAULT_FILL_MODE$1 = 'solid';
|
|
|
2802
2778
|
/**
|
|
2803
2779
|
* Represents the Kendo UI DropDownButton component for Angular.
|
|
2804
2780
|
*
|
|
2781
|
+
* Use the DropDownButton to display a button with a popup list of actions.
|
|
2782
|
+
*
|
|
2805
2783
|
* @example
|
|
2806
2784
|
* ```ts
|
|
2807
|
-
*
|
|
2808
|
-
*
|
|
2809
|
-
*
|
|
2810
|
-
*
|
|
2811
|
-
*
|
|
2812
|
-
*
|
|
2813
|
-
*
|
|
2785
|
+
* @Component({
|
|
2786
|
+
* selector: 'my-app',
|
|
2787
|
+
* template: `
|
|
2788
|
+
* <kendo-dropdownbutton [data]="data">
|
|
2789
|
+
* User Settings
|
|
2790
|
+
* </kendo-dropdownbutton>
|
|
2791
|
+
* `
|
|
2814
2792
|
* })
|
|
2815
2793
|
* class AppComponent {
|
|
2816
|
-
* public data: Array<any> = [
|
|
2817
|
-
*
|
|
2818
|
-
*
|
|
2819
|
-
*
|
|
2820
|
-
*
|
|
2821
|
-
*
|
|
2822
|
-
*
|
|
2823
|
-
* text: 'Support'
|
|
2824
|
-
* }, {
|
|
2825
|
-
* text: 'Log Out'
|
|
2826
|
-
* }];
|
|
2794
|
+
* public data: Array<any> = [
|
|
2795
|
+
* { text: 'My Profile' },
|
|
2796
|
+
* { text: 'Friend Requests' },
|
|
2797
|
+
* { text: 'Account Settings' },
|
|
2798
|
+
* { text: 'Support' },
|
|
2799
|
+
* { text: 'Log Out' }
|
|
2800
|
+
* ];
|
|
2827
2801
|
* }
|
|
2828
2802
|
* ```
|
|
2829
2803
|
*/
|
|
@@ -2831,35 +2805,33 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2831
2805
|
containerService;
|
|
2832
2806
|
renderer;
|
|
2833
2807
|
/**
|
|
2834
|
-
*
|
|
2808
|
+
* Displays the default arrow icon or a custom one.
|
|
2835
2809
|
* @default false
|
|
2836
2810
|
*/
|
|
2837
2811
|
arrowIcon = false;
|
|
2838
2812
|
/**
|
|
2839
|
-
*
|
|
2813
|
+
* Specifies the name of an existing icon in the Kendo UI theme.
|
|
2840
2814
|
*/
|
|
2841
2815
|
icon = '';
|
|
2842
2816
|
/**
|
|
2843
|
-
*
|
|
2817
|
+
* Specifies an [`SVGIcon`](slug:api_icons_svgicon) to render within the button.
|
|
2844
2818
|
*/
|
|
2845
2819
|
svgIcon;
|
|
2846
2820
|
/**
|
|
2847
|
-
*
|
|
2821
|
+
* Specifies a list of CSS classes for styling the button with custom icons.
|
|
2848
2822
|
*/
|
|
2849
2823
|
iconClass = '';
|
|
2850
2824
|
/**
|
|
2851
|
-
*
|
|
2825
|
+
* Specifies a URL for styling the button with a custom image.
|
|
2852
2826
|
*/
|
|
2853
2827
|
imageUrl = '';
|
|
2854
2828
|
/**
|
|
2855
2829
|
* Sets the data item field that represents the item text.
|
|
2856
|
-
* If the data contains only primitive values,
|
|
2830
|
+
* If the data contains only primitive values, leave this undefined.
|
|
2857
2831
|
*/
|
|
2858
2832
|
textField;
|
|
2859
2833
|
/**
|
|
2860
|
-
* Sets or gets the data of the DropDownButton.
|
|
2861
|
-
*
|
|
2862
|
-
* > The data has to be provided in an array-like list.
|
|
2834
|
+
* Sets or gets the data of the DropDownButton. Provide the data as an array-like list.
|
|
2863
2835
|
*/
|
|
2864
2836
|
set data(data) {
|
|
2865
2837
|
this._data = data || [];
|
|
@@ -2868,38 +2840,18 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2868
2840
|
return this._data;
|
|
2869
2841
|
}
|
|
2870
2842
|
/**
|
|
2871
|
-
*
|
|
2872
|
-
*
|
|
2873
|
-
*
|
|
2874
|
-
* The possible values are:
|
|
2875
|
-
* * `small`
|
|
2876
|
-
* * `medium` (default)
|
|
2877
|
-
* * `large`
|
|
2878
|
-
* * `none`
|
|
2843
|
+
* Specifies the padding of the DropDownButton. See [DropDownButton Appearance](slug:appearance_dropdownbutton#size).
|
|
2844
|
+
* @default 'medium'
|
|
2879
2845
|
*/
|
|
2880
2846
|
size = 'medium';
|
|
2881
2847
|
/**
|
|
2882
|
-
*
|
|
2883
|
-
*
|
|
2884
|
-
*
|
|
2885
|
-
* The possible values are:
|
|
2886
|
-
* * `small`
|
|
2887
|
-
* * `medium` (default)
|
|
2888
|
-
* * `large`
|
|
2889
|
-
* * `full`
|
|
2890
|
-
* * `none`
|
|
2848
|
+
* Specifies the border radius of the DropDownButton. See [DropDownButton Appearance](slug:appearance_dropdownbutton#roundness).
|
|
2849
|
+
* @default 'medium'
|
|
2891
2850
|
*/
|
|
2892
2851
|
rounded = 'medium';
|
|
2893
2852
|
/**
|
|
2894
|
-
*
|
|
2895
|
-
*
|
|
2896
|
-
*
|
|
2897
|
-
* The available values are:
|
|
2898
|
-
* * `solid` (default)
|
|
2899
|
-
* * `flat`
|
|
2900
|
-
* * `outline`
|
|
2901
|
-
* * `link`
|
|
2902
|
-
* * `none`
|
|
2853
|
+
* Specifies the background and border styles of the DropDownButton. See [DropDownButton Appearance](slug:appearance_dropdownbutton#fill-mode).
|
|
2854
|
+
* @default 'solid'
|
|
2903
2855
|
*/
|
|
2904
2856
|
set fillMode(fillMode) {
|
|
2905
2857
|
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
@@ -2908,27 +2860,12 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2908
2860
|
return this._fillMode;
|
|
2909
2861
|
}
|
|
2910
2862
|
/**
|
|
2911
|
-
*
|
|
2912
|
-
*
|
|
2913
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
2914
|
-
*
|
|
2915
|
-
* The possible values are:
|
|
2916
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2917
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2918
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2919
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2920
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
2921
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
2922
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2923
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
2924
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2925
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
2926
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2927
|
-
* * `none` —Removes the default CSS class (no class would be rendered).
|
|
2863
|
+
* Specifies predefined theme colors for the DropDownButton. See [DropDownButton Appearance](slug:appearance_dropdownbutton#theme-colors).
|
|
2864
|
+
* @default 'base'
|
|
2928
2865
|
*/
|
|
2929
2866
|
themeColor = 'base';
|
|
2930
2867
|
/**
|
|
2931
|
-
* Sets attributes
|
|
2868
|
+
* Sets attributes for the main button.
|
|
2932
2869
|
*/
|
|
2933
2870
|
set buttonAttributes(buttonAttributes) {
|
|
2934
2871
|
const newButtonAttributes = buttonAttributes ? buttonAttributes : null;
|
|
@@ -2939,15 +2876,16 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2939
2876
|
return this._buttonAttributes;
|
|
2940
2877
|
}
|
|
2941
2878
|
/**
|
|
2942
|
-
* Fires
|
|
2879
|
+
* Fires when the user clicks a drop-down list item.
|
|
2880
|
+
* The event data contains the data item bound to the clicked list item.
|
|
2943
2881
|
*/
|
|
2944
2882
|
itemClick = new EventEmitter();
|
|
2945
2883
|
/**
|
|
2946
|
-
* Fires
|
|
2884
|
+
* Fires when the DropDownButton is focused.
|
|
2947
2885
|
*/
|
|
2948
2886
|
onFocus = new EventEmitter();
|
|
2949
2887
|
/**
|
|
2950
|
-
* Fires
|
|
2888
|
+
* Fires when the DropDownButton is blurred.
|
|
2951
2889
|
*/
|
|
2952
2890
|
onBlur = new EventEmitter();
|
|
2953
2891
|
get focused() {
|
|
@@ -3022,7 +2960,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3022
2960
|
}
|
|
3023
2961
|
}
|
|
3024
2962
|
/**
|
|
3025
|
-
* Focuses the DropDownButton
|
|
2963
|
+
* Focuses the DropDownButton.
|
|
3026
2964
|
*/
|
|
3027
2965
|
focus() {
|
|
3028
2966
|
if (isDocumentAvailable()) {
|
|
@@ -3030,7 +2968,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3030
2968
|
}
|
|
3031
2969
|
}
|
|
3032
2970
|
/**
|
|
3033
|
-
* Blurs the DropDownButton
|
|
2971
|
+
* Blurs the DropDownButton.
|
|
3034
2972
|
*/
|
|
3035
2973
|
blur() {
|
|
3036
2974
|
if (isDocumentAvailable()) {
|
|
@@ -3349,10 +3287,18 @@ function closeAnimation(animationSettings) {
|
|
|
3349
3287
|
}
|
|
3350
3288
|
|
|
3351
3289
|
/**
|
|
3352
|
-
* Represents a template that defines the content of
|
|
3353
|
-
* To define the template, nest an `<ng-template>` tag
|
|
3354
|
-
*
|
|
3355
|
-
*
|
|
3290
|
+
* Represents a template that defines the content of a dial item.
|
|
3291
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
3292
|
+
*([see example]({% slug templates_floatingactionbutton %}#dial-item-template)).
|
|
3293
|
+
*
|
|
3294
|
+
* @example
|
|
3295
|
+
* ```html
|
|
3296
|
+
* <kendo-floatingactionbutton>
|
|
3297
|
+
* <ng-template kendoDialItemTemplate let-item="item">
|
|
3298
|
+
* {{ item.label }}
|
|
3299
|
+
* </ng-template>
|
|
3300
|
+
* </kendo-floatingactionbutton>
|
|
3301
|
+
* ```
|
|
3356
3302
|
*/
|
|
3357
3303
|
class DialItemTemplateDirective {
|
|
3358
3304
|
templateRef;
|
|
@@ -3374,9 +3320,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3374
3320
|
|
|
3375
3321
|
/**
|
|
3376
3322
|
* Represents a template that defines the content of the FloatingActionButton.
|
|
3377
|
-
* To define the template, nest an `<ng-template>` tag
|
|
3378
|
-
*
|
|
3379
|
-
* ([see example](
|
|
3323
|
+
* To define the template, nest an `<ng-template>` tag with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
3324
|
+
*
|
|
3325
|
+
* ([see example](slug:templates_floatingactionbutton#floatingactionbutton-template)).
|
|
3326
|
+
*
|
|
3327
|
+
* @example
|
|
3328
|
+
* ```html
|
|
3329
|
+
* <kendo-floatingactionbutton>
|
|
3330
|
+
* <ng-template kendoFloatingActionButtonTemplate>
|
|
3331
|
+
* Custom Content
|
|
3332
|
+
* </ng-template>
|
|
3333
|
+
* </kendo-floatingactionbutton>
|
|
3334
|
+
* ```
|
|
3380
3335
|
*/
|
|
3381
3336
|
class FloatingActionButtonTemplateDirective {
|
|
3382
3337
|
templateRef;
|
|
@@ -3651,10 +3606,17 @@ const DEFAULT_ROUNDED$1 = 'full';
|
|
|
3651
3606
|
const DEFAULT_SIZE = 'medium';
|
|
3652
3607
|
const DEFAULT_THEME_COLOR = 'primary';
|
|
3653
3608
|
/**
|
|
3609
|
+
* Represents the Kendo UI FloatingActionButton component for Angular.
|
|
3610
|
+
* Use it to represent the primary or most common action in an application.
|
|
3654
3611
|
*
|
|
3655
|
-
*
|
|
3656
|
-
*
|
|
3657
|
-
*
|
|
3612
|
+
* @example
|
|
3613
|
+
* ```html
|
|
3614
|
+
* <kendo-floatingactionbutton
|
|
3615
|
+
* [icon]="'plus'"
|
|
3616
|
+
* [text]="'Add'"
|
|
3617
|
+
* [align]="{ horizontal: 'end', vertical: 'bottom' }">
|
|
3618
|
+
* </kendo-floatingactionbutton>
|
|
3619
|
+
* ```
|
|
3658
3620
|
*/
|
|
3659
3621
|
class FloatingActionButtonComponent {
|
|
3660
3622
|
renderer;
|
|
@@ -3677,22 +3639,8 @@ class FloatingActionButtonComponent {
|
|
|
3677
3639
|
dialItemTemplate;
|
|
3678
3640
|
fabTemplate;
|
|
3679
3641
|
/**
|
|
3680
|
-
* Specifies the theme color of the FloatingActionButton
|
|
3681
|
-
*
|
|
3682
|
-
* The theme color will be applied as background color of the component.
|
|
3683
|
-
*
|
|
3684
|
-
* The possible values are:
|
|
3685
|
-
* * `primary` (Default)—Applies coloring based on the `primary` theme color.
|
|
3686
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
3687
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
3688
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
3689
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
3690
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
3691
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
3692
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
3693
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
3694
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
3695
|
-
* * `none`— Removes the built in theme color.
|
|
3642
|
+
* Specifies the theme color of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#theme-colors)).
|
|
3643
|
+
* @default "primary"
|
|
3696
3644
|
*/
|
|
3697
3645
|
set themeColor(themeColor) {
|
|
3698
3646
|
const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
|
|
@@ -3703,14 +3651,8 @@ class FloatingActionButtonComponent {
|
|
|
3703
3651
|
return this._themeColor;
|
|
3704
3652
|
}
|
|
3705
3653
|
/**
|
|
3706
|
-
* Specifies the size of the FloatingActionButton
|
|
3707
|
-
*
|
|
3708
|
-
*
|
|
3709
|
-
* The possible values are:
|
|
3710
|
-
* * `small`
|
|
3711
|
-
* * `medium` (Default)
|
|
3712
|
-
* * `large`
|
|
3713
|
-
* * `none`
|
|
3654
|
+
* Specifies the size of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#size)).
|
|
3655
|
+
* @default "medium"
|
|
3714
3656
|
*/
|
|
3715
3657
|
set size(size) {
|
|
3716
3658
|
const newSize = size ? size : DEFAULT_SIZE;
|
|
@@ -3721,14 +3663,9 @@ class FloatingActionButtonComponent {
|
|
|
3721
3663
|
return this._size;
|
|
3722
3664
|
}
|
|
3723
3665
|
/**
|
|
3724
|
-
*
|
|
3666
|
+
* Specifies the border radius of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#roundness)).
|
|
3725
3667
|
*
|
|
3726
|
-
*
|
|
3727
|
-
* * `small`
|
|
3728
|
-
* * `medium`
|
|
3729
|
-
* * `large`
|
|
3730
|
-
* * `full` (default)
|
|
3731
|
-
* * `none`
|
|
3668
|
+
* @default "full"
|
|
3732
3669
|
*/
|
|
3733
3670
|
set rounded(rounded) {
|
|
3734
3671
|
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$1;
|
|
@@ -3740,6 +3677,7 @@ class FloatingActionButtonComponent {
|
|
|
3740
3677
|
}
|
|
3741
3678
|
/**
|
|
3742
3679
|
* Specifies whether the FloatingActionButton is disabled.
|
|
3680
|
+
* @default false
|
|
3743
3681
|
*/
|
|
3744
3682
|
set disabled(disabled) {
|
|
3745
3683
|
this._disabled = disabled;
|
|
@@ -3748,15 +3686,8 @@ class FloatingActionButtonComponent {
|
|
|
3748
3686
|
return this._disabled;
|
|
3749
3687
|
}
|
|
3750
3688
|
/**
|
|
3751
|
-
* Specifies the
|
|
3752
|
-
*
|
|
3753
|
-
*
|
|
3754
|
-
* The possible values are:
|
|
3755
|
-
* * `{ horizontal: 'start'|'center'|'end', vertical: 'top'|'middle'|'bottom' }`
|
|
3756
|
-
*
|
|
3757
|
-
* The default value is:
|
|
3758
|
-
* * `{ horizontal: 'end', vertical: 'bottom' }`
|
|
3759
|
-
*
|
|
3689
|
+
* Specifies the alignment of the FloatingActionButton ([see example](slug:positioning_floatingactionbutton#alignment)).
|
|
3690
|
+
* @default { horizontal: 'end', vertical: 'top' }
|
|
3760
3691
|
*/
|
|
3761
3692
|
set align(align) {
|
|
3762
3693
|
this._align = Object.assign(this._align, align);
|
|
@@ -3765,11 +3696,8 @@ class FloatingActionButtonComponent {
|
|
|
3765
3696
|
return this._align;
|
|
3766
3697
|
}
|
|
3767
3698
|
/**
|
|
3768
|
-
* Specifies the
|
|
3769
|
-
*
|
|
3770
|
-
*
|
|
3771
|
-
* * The default value is:
|
|
3772
|
-
* * `{ x: '16px', y: '16px' }`
|
|
3699
|
+
* Specifies the offset position of the FloatingActionButton ([see example]({% slug positioning_floatingactionbutton %}#offset)).
|
|
3700
|
+
* @default { x: '16px', y: '16px' }
|
|
3773
3701
|
*/
|
|
3774
3702
|
set offset(offset) {
|
|
3775
3703
|
this._offset = Object.assign(this._offset, offset);
|
|
@@ -3779,17 +3707,12 @@ class FloatingActionButtonComponent {
|
|
|
3779
3707
|
return this._offset;
|
|
3780
3708
|
}
|
|
3781
3709
|
/**
|
|
3782
|
-
* Specifies the
|
|
3783
|
-
*
|
|
3784
|
-
*
|
|
3785
|
-
* * The possible values are:
|
|
3786
|
-
* * `absolute`—Positions the FloatingActionButton absolutely to its first positioned parent element.
|
|
3787
|
-
* * `fixed` (Default)—Positions the FloatingActionButton relative to the viewport. It always stays in the same place even if the page is scrolled.
|
|
3710
|
+
* Specifies the position mode of the FloatingActionButton ([see example](slug:positioning_floatingactionbutton#position-mode)).
|
|
3711
|
+
* @default "fixed"
|
|
3788
3712
|
*/
|
|
3789
3713
|
positionMode = 'fixed';
|
|
3790
3714
|
/**
|
|
3791
3715
|
* Defines the name of an existing icon in a Kendo UI theme.
|
|
3792
|
-
* If provided, the icon will be rendered inside the FloatingActionButton by a `span.k-icon` element.
|
|
3793
3716
|
*/
|
|
3794
3717
|
icon;
|
|
3795
3718
|
/**
|
|
@@ -3797,8 +3720,7 @@ class FloatingActionButtonComponent {
|
|
|
3797
3720
|
*/
|
|
3798
3721
|
svgIcon;
|
|
3799
3722
|
/**
|
|
3800
|
-
* Defines a CSS class or multiple classes
|
|
3801
|
-
* Allows the usage of custom icons, rendered inside the FloatingActionButton by a `span` element.
|
|
3723
|
+
* Defines a CSS class or multiple classes for custom icons.
|
|
3802
3724
|
*/
|
|
3803
3725
|
iconClass;
|
|
3804
3726
|
/**
|
|
@@ -3817,46 +3739,37 @@ class FloatingActionButtonComponent {
|
|
|
3817
3739
|
text;
|
|
3818
3740
|
/**
|
|
3819
3741
|
* Specifies the animation settings of the FloatingActionButton dial items.
|
|
3820
|
-
*
|
|
3821
|
-
*
|
|
3822
|
-
* The possible values are:
|
|
3823
|
-
* * Boolean
|
|
3824
|
-
* * (Default) `true`—Applies the default [`DialItemAnimation`]({% slug api_buttons_dialitemanimation %}) settings.
|
|
3825
|
-
* * `false`
|
|
3826
|
-
* * `DialItemAnimation`
|
|
3827
|
-
* * `duration`—Specifies the animation duration in milliseconds for each dial item. Defaults to `180ms`.
|
|
3828
|
-
* * `gap`—Specifies the animation duration gap in milliseconds after each dial item is animated. Defaults to `90ms`.
|
|
3742
|
+
* @default true
|
|
3829
3743
|
*/
|
|
3830
3744
|
dialItemAnimation = true;
|
|
3831
3745
|
/**
|
|
3832
3746
|
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the FloatingActionButton.
|
|
3747
|
+
* @default 0
|
|
3833
3748
|
*/
|
|
3834
3749
|
tabIndex = 0;
|
|
3835
3750
|
/**
|
|
3836
|
-
* Specifies the collection of
|
|
3751
|
+
* Specifies the collection of dial items rendered in the FloatingActionButton popup.
|
|
3837
3752
|
*/
|
|
3838
3753
|
dialItems = [];
|
|
3839
3754
|
/**
|
|
3840
|
-
* Fires
|
|
3755
|
+
* Fires when the FloatingActionButton is blurred.
|
|
3841
3756
|
*/
|
|
3842
3757
|
onBlur = new EventEmitter();
|
|
3843
3758
|
/**
|
|
3844
|
-
* Fires
|
|
3759
|
+
* Fires when the FloatingActionButton is focused.
|
|
3845
3760
|
*/
|
|
3846
3761
|
onFocus = new EventEmitter();
|
|
3847
3762
|
/**
|
|
3848
|
-
* Fires
|
|
3763
|
+
* Fires when a dial item is clicked.
|
|
3849
3764
|
*/
|
|
3850
3765
|
dialItemClick = new EventEmitter();
|
|
3851
3766
|
/**
|
|
3852
|
-
* Fires
|
|
3853
|
-
*
|
|
3854
|
-
* ([more information and example](slug:events_floatingactionbutton)).
|
|
3767
|
+
* Fires when the popup is about to open. This event is preventable
|
|
3768
|
+
* ([more information and example](slug:events_floatingactionbutton)).
|
|
3855
3769
|
*/
|
|
3856
3770
|
open = new EventEmitter();
|
|
3857
3771
|
/**
|
|
3858
|
-
* Fires
|
|
3859
|
-
* This event is preventable. If you cancel the event, the popup will remain open
|
|
3772
|
+
* Fires when the popup is about to close. This event is preventable
|
|
3860
3773
|
* ([more information and example](slug:events_floatingactionbutton)).
|
|
3861
3774
|
*/
|
|
3862
3775
|
close = new EventEmitter();
|
|
@@ -4578,25 +4491,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4578
4491
|
*/
|
|
4579
4492
|
class Messages extends ComponentMessages {
|
|
4580
4493
|
/**
|
|
4581
|
-
*
|
|
4494
|
+
* Specifies the text for the SplitButton `aria-label`.
|
|
4582
4495
|
*
|
|
4583
|
-
* The
|
|
4584
|
-
* For a SplitButton with text 'Reply'
|
|
4496
|
+
* The `aria-label` text consists of two parts: the SplitButton text and a localizable string.
|
|
4497
|
+
* For example, for a SplitButton with the text `'Reply'`, the default `aria-label` is `'Reply splitbutton'`.
|
|
4585
4498
|
*
|
|
4586
|
-
* To
|
|
4587
|
-
* placeholder for the button text
|
|
4588
|
-
* internally with the current SplitButton text,
|
|
4499
|
+
* To reorder the SplitButton text and the localizable part, use the `splitButtonLabel` property with a
|
|
4500
|
+
* placeholder for the button text, such as `'splitbutton for {buttonText}'`. The `{buttonText}` placeholder
|
|
4501
|
+
* is replaced internally with the current SplitButton text. For instance, the resulting `aria-label` is
|
|
4502
|
+
* rendered as `'splitbutton for Reply'`.
|
|
4589
4503
|
*
|
|
4590
4504
|
* @example
|
|
4591
|
-
*
|
|
4592
|
-
*
|
|
4593
|
-
*
|
|
4594
|
-
*
|
|
4595
|
-
*
|
|
4596
|
-
*
|
|
4597
|
-
*
|
|
4598
|
-
* </kendo-splitbutton>
|
|
4599
|
-
* ```
|
|
4505
|
+
* ```ts
|
|
4506
|
+
* <kendo-splitbutton>
|
|
4507
|
+
* <kendo-splitbutton-messages
|
|
4508
|
+
* splitButtonLabel="splitbutton for {buttonText}">
|
|
4509
|
+
* </kendo-splitbutton-messages>
|
|
4510
|
+
* </kendo-splitbutton>
|
|
4511
|
+
* ```
|
|
4600
4512
|
*/
|
|
4601
4513
|
splitButtonLabel;
|
|
4602
4514
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -4613,8 +4525,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4613
4525
|
}] } });
|
|
4614
4526
|
|
|
4615
4527
|
/**
|
|
4616
|
-
*
|
|
4617
|
-
* ([see example]({% slug rtl_buttons %}).
|
|
4528
|
+
* Represents a custom component for overriding the default SplitButton messages.
|
|
4529
|
+
* ([see example]({% slug rtl_buttons %})).
|
|
4618
4530
|
*/
|
|
4619
4531
|
class SplitButtonCustomMessagesComponent extends Messages {
|
|
4620
4532
|
service;
|
|
@@ -4689,39 +4601,27 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
4689
4601
|
*
|
|
4690
4602
|
* @example
|
|
4691
4603
|
* ```ts
|
|
4692
|
-
*
|
|
4604
|
+
* @Component({
|
|
4693
4605
|
* selector: 'my-app',
|
|
4694
4606
|
* template: `
|
|
4695
|
-
* <kendo-splitbutton [data]="
|
|
4696
|
-
* (itemClick)="onSplitButtonItemClick($event)"
|
|
4697
|
-
* (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
|
|
4607
|
+
* <kendo-splitbutton [data]="items" (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
|
|
4698
4608
|
* `
|
|
4699
4609
|
* })
|
|
4700
4610
|
*
|
|
4701
4611
|
* class AppComponent {
|
|
4702
|
-
* public
|
|
4612
|
+
* public items: Array<any> = [{
|
|
4703
4613
|
* text: 'Keep Text Only',
|
|
4704
4614
|
* icon: 'clipboard-text',
|
|
4705
4615
|
* click: () => { console.log('Keep Text Only click handler'); }
|
|
4706
4616
|
* }, {
|
|
4707
4617
|
* text: 'Paste as HTML',
|
|
4708
4618
|
* icon: 'clipboard-code'
|
|
4709
|
-
*
|
|
4710
|
-
*
|
|
4711
|
-
* icon: 'clipboard-markdown'
|
|
4712
|
-
* }, {
|
|
4713
|
-
* text: 'Set Default Paste'
|
|
4714
|
-
* }];
|
|
4619
|
+
* }
|
|
4620
|
+
* ];
|
|
4715
4621
|
*
|
|
4716
4622
|
* public onSplitButtonClick(dataItem: any): void {
|
|
4717
4623
|
* console.log('Paste');
|
|
4718
4624
|
* }
|
|
4719
|
-
*
|
|
4720
|
-
* public onSplitButtonItemClick(dataItem: any): void {
|
|
4721
|
-
* if (dataItem) {
|
|
4722
|
-
* console.log(dataItem.text);
|
|
4723
|
-
* }
|
|
4724
|
-
* }
|
|
4725
4625
|
* }
|
|
4726
4626
|
* ```
|
|
4727
4627
|
*/
|
|
@@ -4729,53 +4629,39 @@ class SplitButtonComponent extends ListButton {
|
|
|
4729
4629
|
localization;
|
|
4730
4630
|
renderer;
|
|
4731
4631
|
/**
|
|
4732
|
-
* Sets the text
|
|
4632
|
+
* Sets the text displayed within the SplitButton.
|
|
4733
4633
|
*/
|
|
4734
4634
|
text = '';
|
|
4735
4635
|
/**
|
|
4736
|
-
*
|
|
4737
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
4636
|
+
* Specifies an icon to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
4738
4637
|
*/
|
|
4739
4638
|
icon = '';
|
|
4740
4639
|
/**
|
|
4741
|
-
*
|
|
4640
|
+
* Specifies an `SVGIcon` to display next to the button text.
|
|
4742
4641
|
*/
|
|
4743
4642
|
svgIcon;
|
|
4744
4643
|
/**
|
|
4745
|
-
*
|
|
4746
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
4644
|
+
* Specifies a custom CSS class for the icon displayed next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
4747
4645
|
*/
|
|
4748
4646
|
iconClass;
|
|
4749
4647
|
/**
|
|
4750
|
-
*
|
|
4648
|
+
* Specifies the `type` attribute of the main button.
|
|
4751
4649
|
*/
|
|
4752
4650
|
type = 'button';
|
|
4753
4651
|
/**
|
|
4754
|
-
*
|
|
4755
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
4652
|
+
* Specifies the URL of an image to display next to the button text ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
4756
4653
|
*/
|
|
4757
4654
|
imageUrl = '';
|
|
4758
4655
|
/**
|
|
4759
|
-
*
|
|
4760
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
|
|
4656
|
+
* Configures the padding of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#size)).
|
|
4761
4657
|
*
|
|
4762
|
-
*
|
|
4763
|
-
* * `small`
|
|
4764
|
-
* * `medium` (default)
|
|
4765
|
-
* * `large`
|
|
4766
|
-
* * `none`
|
|
4658
|
+
* @default 'medium'
|
|
4767
4659
|
*/
|
|
4768
4660
|
size = 'medium';
|
|
4769
4661
|
/**
|
|
4770
|
-
*
|
|
4771
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
4662
|
+
* Configures the border radius of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#rounded)).
|
|
4772
4663
|
*
|
|
4773
|
-
*
|
|
4774
|
-
* * `small`
|
|
4775
|
-
* * `medium` (default)
|
|
4776
|
-
* * `large`
|
|
4777
|
-
* * `full`
|
|
4778
|
-
* * `none`
|
|
4664
|
+
* @default 'medium'
|
|
4779
4665
|
*/
|
|
4780
4666
|
set rounded(rounded) {
|
|
4781
4667
|
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
@@ -4786,14 +4672,9 @@ class SplitButtonComponent extends ListButton {
|
|
|
4786
4672
|
return this._rounded;
|
|
4787
4673
|
}
|
|
4788
4674
|
/**
|
|
4789
|
-
*
|
|
4790
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
4675
|
+
* Configures the background and border styles of the SplitButton ([see example]({% slug api_buttons_splitbuttoncomponent %}#fillMode)).
|
|
4791
4676
|
*
|
|
4792
|
-
*
|
|
4793
|
-
* * `solid` (default)
|
|
4794
|
-
* * `flat`
|
|
4795
|
-
* * `outline`
|
|
4796
|
-
* * `link`
|
|
4677
|
+
* @default 'solid'
|
|
4797
4678
|
*/
|
|
4798
4679
|
set fillMode(fillMode) {
|
|
4799
4680
|
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
@@ -4803,28 +4684,13 @@ class SplitButtonComponent extends ListButton {
|
|
|
4803
4684
|
return this._fillMode;
|
|
4804
4685
|
}
|
|
4805
4686
|
/**
|
|
4806
|
-
*
|
|
4807
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
4808
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-themeColor)).
|
|
4687
|
+
* Configures the theme color of the SplitButton. The theme color applies to the background, border, and text ([see example]({% slug api_buttons_splitbuttoncomponent %}#themeColor)).
|
|
4809
4688
|
*
|
|
4810
|
-
*
|
|
4811
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
4812
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
4813
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
4814
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
4815
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
4816
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
4817
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
4818
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
4819
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
4820
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
4821
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
4822
|
-
* * `none`— Removes the built in theme color.
|
|
4689
|
+
* @default 'base'
|
|
4823
4690
|
*/
|
|
4824
4691
|
themeColor = 'base';
|
|
4825
4692
|
/**
|
|
4826
|
-
*
|
|
4827
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
4693
|
+
* Disables the SplitButton when set to `true` ([see example]({% slug databinding_splitbutton %}#arrays-of-complex-data)).
|
|
4828
4694
|
*/
|
|
4829
4695
|
set disabled(value) {
|
|
4830
4696
|
if (this.isOpen) {
|
|
@@ -4836,13 +4702,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4836
4702
|
return this._disabled;
|
|
4837
4703
|
}
|
|
4838
4704
|
/**
|
|
4839
|
-
* Configures the popup of the SplitButton.
|
|
4840
|
-
*
|
|
4841
|
-
* The available options are:
|
|
4842
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
4843
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
4844
|
-
* - `appendTo: "root" | "component" | ViewContainerRef`—Specifies the component to which the popup will be appended.
|
|
4845
|
-
* - `align: "left" | "center" | "right"`—Specifies the alignment of the popup.
|
|
4705
|
+
* Configures the popup settings of the SplitButton.
|
|
4846
4706
|
*/
|
|
4847
4707
|
set popupSettings(settings) {
|
|
4848
4708
|
this._popupSettings = Object.assign({ animate: true, popupClass: '' }, settings);
|
|
@@ -4851,7 +4711,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4851
4711
|
return this._popupSettings;
|
|
4852
4712
|
}
|
|
4853
4713
|
/**
|
|
4854
|
-
* Specifies the [`
|
|
4714
|
+
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
4855
4715
|
*/
|
|
4856
4716
|
tabIndex = 0;
|
|
4857
4717
|
/**
|
|
@@ -4859,9 +4719,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4859
4719
|
*/
|
|
4860
4720
|
textField;
|
|
4861
4721
|
/**
|
|
4862
|
-
* Sets the data
|
|
4863
|
-
*
|
|
4864
|
-
* > The data has to be provided in an array-like list.
|
|
4722
|
+
* Sets the data for the SplitButton. Provide the data as an array-like list.
|
|
4865
4723
|
*/
|
|
4866
4724
|
set data(data) {
|
|
4867
4725
|
this._data = data || [];
|
|
@@ -4873,22 +4731,20 @@ class SplitButtonComponent extends ListButton {
|
|
|
4873
4731
|
return this._data;
|
|
4874
4732
|
}
|
|
4875
4733
|
/**
|
|
4876
|
-
*
|
|
4877
|
-
* Supports
|
|
4734
|
+
* Specifies the CSS classes for the button that opens the popup.
|
|
4735
|
+
* Supports values compatible with [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
4878
4736
|
*/
|
|
4879
4737
|
arrowButtonClass;
|
|
4880
4738
|
/**
|
|
4881
|
-
* Specifies the name of the
|
|
4882
|
-
* be rendered for the button which opens the popup.
|
|
4739
|
+
* Specifies the name of the font icon displayed on the button that opens the popup.
|
|
4883
4740
|
*/
|
|
4884
4741
|
arrowButtonIcon = 'caret-alt-down';
|
|
4885
4742
|
/**
|
|
4886
|
-
* Specifies the [`SVGIcon`](slug:
|
|
4887
|
-
* be rendered for the button which opens the popup.
|
|
4743
|
+
* Specifies the [`SVGIcon`](slug:api_icons_svgiconcomponent) displayed on the button that opens the popup.
|
|
4888
4744
|
*/
|
|
4889
4745
|
arrowButtonSvgIcon = caretAltDownIcon;
|
|
4890
4746
|
/**
|
|
4891
|
-
* Sets attributes
|
|
4747
|
+
* Sets attributes for the main button.
|
|
4892
4748
|
*/
|
|
4893
4749
|
set buttonAttributes(buttonAttributes) {
|
|
4894
4750
|
const newButtonAttributes = buttonAttributes ? buttonAttributes : null;
|
|
@@ -4899,75 +4755,31 @@ class SplitButtonComponent extends ListButton {
|
|
|
4899
4755
|
return this._buttonAttributes;
|
|
4900
4756
|
}
|
|
4901
4757
|
/**
|
|
4902
|
-
*
|
|
4903
|
-
*
|
|
4904
|
-
* @example
|
|
4905
|
-
* ```ts
|
|
4906
|
-
* _@Component({
|
|
4907
|
-
* selector: 'my-app',
|
|
4908
|
-
* template: `
|
|
4909
|
-
* <kendo-splitbutton (buttonClick)="onSplitButtonClick()" [data]="data">
|
|
4910
|
-
* Reply
|
|
4911
|
-
* </kendo-splitbutton>
|
|
4912
|
-
* `
|
|
4913
|
-
* })
|
|
4914
|
-
* class AppComponent {
|
|
4915
|
-
* public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
|
|
4916
|
-
*
|
|
4917
|
-
* public onSplitButtonClick(): void {
|
|
4918
|
-
* console.log('SplitButton click');
|
|
4919
|
-
* }
|
|
4920
|
-
* }
|
|
4921
|
-
* ```
|
|
4922
|
-
*
|
|
4758
|
+
* Emits an event when the main button is clicked.
|
|
4923
4759
|
*/
|
|
4924
4760
|
buttonClick = new EventEmitter();
|
|
4925
4761
|
/**
|
|
4926
|
-
*
|
|
4927
|
-
*
|
|
4928
|
-
* @example
|
|
4929
|
-
* ```ts
|
|
4930
|
-
* _@Component({
|
|
4931
|
-
* selector: 'my-app',
|
|
4932
|
-
* template: `
|
|
4933
|
-
* <kendo-splitbutton (itemClick)="onSplitButtonItemClick($event)" [data]="data">
|
|
4934
|
-
* Reply
|
|
4935
|
-
* </kendo-splitbutton>
|
|
4936
|
-
* `
|
|
4937
|
-
* })
|
|
4938
|
-
* class AppComponent {
|
|
4939
|
-
* public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
|
|
4940
|
-
*
|
|
4941
|
-
* public onSplitButtonItemClick(dataItem?: string): void {
|
|
4942
|
-
* if (dataItem) {
|
|
4943
|
-
* console.log(dataItem);
|
|
4944
|
-
* }
|
|
4945
|
-
* }
|
|
4946
|
-
* }
|
|
4947
|
-
* ```
|
|
4948
|
-
*
|
|
4762
|
+
* Emits an event when an item in the drop-down list is clicked. The event data contains the clicked item's data.
|
|
4949
4763
|
*/
|
|
4950
4764
|
itemClick = new EventEmitter();
|
|
4951
4765
|
/**
|
|
4952
|
-
*
|
|
4766
|
+
* Emits an event when the SplitButton gains focus.
|
|
4953
4767
|
*/
|
|
4954
4768
|
onFocus = new EventEmitter();
|
|
4955
4769
|
/**
|
|
4956
|
-
*
|
|
4770
|
+
* Emits an event when the SplitButton is blurred.
|
|
4957
4771
|
*/
|
|
4958
4772
|
onBlur = new EventEmitter();
|
|
4959
4773
|
/**
|
|
4960
|
-
*
|
|
4961
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
4774
|
+
* Emits an event before the popup opens. This event is preventable.
|
|
4962
4775
|
*/
|
|
4963
4776
|
open = new EventEmitter();
|
|
4964
4777
|
/**
|
|
4965
|
-
*
|
|
4966
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
4778
|
+
* Emits an event before the popup closes. This event is preventable.
|
|
4967
4779
|
*/
|
|
4968
4780
|
close = new EventEmitter();
|
|
4969
4781
|
/**
|
|
4970
|
-
*
|
|
4782
|
+
* Specifies a template to customize the content of the items in the drop-down list.
|
|
4971
4783
|
*/
|
|
4972
4784
|
itemTemplate;
|
|
4973
4785
|
activeArrow = false;
|
|
@@ -5499,40 +5311,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5499
5311
|
}] } });
|
|
5500
5312
|
|
|
5501
5313
|
/**
|
|
5502
|
-
*
|
|
5314
|
+
* Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
|
|
5315
|
+
*
|
|
5316
|
+
* @example
|
|
5317
|
+
* ```typescript
|
|
5318
|
+
* @Component({
|
|
5319
|
+
* standalone: true,
|
|
5320
|
+
* imports: [KENDO_BUTTON],
|
|
5321
|
+
* // ...
|
|
5322
|
+
* })
|
|
5323
|
+
* export class MyComponent {}
|
|
5324
|
+
* ```
|
|
5503
5325
|
*/
|
|
5504
5326
|
const KENDO_BUTTON = [
|
|
5505
5327
|
ButtonComponent
|
|
5506
5328
|
];
|
|
5507
5329
|
/**
|
|
5508
|
-
*
|
|
5330
|
+
* Use the `KENDO_BUTTONGROUP` utility array to add all ButtonGroup-related components and directives to a standalone Angular component.
|
|
5331
|
+
*
|
|
5332
|
+
* @example
|
|
5333
|
+
* ```typescript
|
|
5334
|
+
* @Component({
|
|
5335
|
+
* standalone: true,
|
|
5336
|
+
* imports: [KENDO_BUTTONGROUP],
|
|
5337
|
+
* // ...
|
|
5338
|
+
* })
|
|
5339
|
+
* export class MyComponent {}
|
|
5340
|
+
* ```
|
|
5509
5341
|
*/
|
|
5510
5342
|
const KENDO_BUTTONGROUP = [
|
|
5511
5343
|
ButtonComponent,
|
|
5512
5344
|
ButtonGroupComponent
|
|
5513
5345
|
];
|
|
5514
5346
|
/**
|
|
5515
|
-
*
|
|
5347
|
+
* Use the `KENDO_DROPDOWNBUTTON` utility array to add all DropDownButton-related components and directives to a standalone Angular component.
|
|
5348
|
+
*
|
|
5349
|
+
* @example
|
|
5350
|
+
* ```typescript
|
|
5351
|
+
* @Component({
|
|
5352
|
+
* standalone: true,
|
|
5353
|
+
* imports: [KENDO_DROPDOWNBUTTON],
|
|
5354
|
+
* // ...
|
|
5355
|
+
* })
|
|
5356
|
+
* export class MyComponent {}
|
|
5357
|
+
* ```
|
|
5516
5358
|
*/
|
|
5517
5359
|
const KENDO_DROPDOWNBUTTON = [
|
|
5518
5360
|
DropDownButtonComponent,
|
|
5519
5361
|
ButtonItemTemplateDirective
|
|
5520
5362
|
];
|
|
5521
5363
|
/**
|
|
5522
|
-
*
|
|
5364
|
+
* Use the `KENDO_CHIP` utility array to add all Chip-related components and directives to a standalone Angular component.
|
|
5365
|
+
*
|
|
5366
|
+
* @example
|
|
5367
|
+
* ```typescript
|
|
5368
|
+
* @Component({
|
|
5369
|
+
* standalone: true,
|
|
5370
|
+
* imports: [KENDO_CHIP],
|
|
5371
|
+
* // ...
|
|
5372
|
+
* })
|
|
5373
|
+
* export class MyComponent {}
|
|
5374
|
+
* ```
|
|
5523
5375
|
*/
|
|
5524
5376
|
const KENDO_CHIP = [
|
|
5525
5377
|
ChipComponent
|
|
5526
5378
|
];
|
|
5527
5379
|
/**
|
|
5528
|
-
*
|
|
5380
|
+
* Use the `KENDO_CHIPLIST` utility array to add all ChipList-related components and directives to a standalone Angular component.
|
|
5381
|
+
*
|
|
5382
|
+
* @example
|
|
5383
|
+
* ```typescript
|
|
5384
|
+
* @Component({
|
|
5385
|
+
* standalone: true,
|
|
5386
|
+
* imports: [KENDO_CHIPLIST],
|
|
5387
|
+
* // ...
|
|
5388
|
+
* })
|
|
5389
|
+
* export class MyComponent {}
|
|
5390
|
+
* ```
|
|
5529
5391
|
*/
|
|
5530
5392
|
const KENDO_CHIPLIST = [
|
|
5531
5393
|
ChipComponent,
|
|
5532
5394
|
ChipListComponent
|
|
5533
5395
|
];
|
|
5534
5396
|
/**
|
|
5535
|
-
*
|
|
5397
|
+
* Use the `KENDO_FLOATINGACTIONBUTTON` utility array to add all FloatingActionButton-related components and directives to a standalone Angular component.
|
|
5398
|
+
*
|
|
5399
|
+
* @example
|
|
5400
|
+
* ```typescript
|
|
5401
|
+
* @Component({
|
|
5402
|
+
* standalone: true,
|
|
5403
|
+
* imports: [KENDO_FLOATINGACTIONBUTTON],
|
|
5404
|
+
* // ...
|
|
5405
|
+
* })
|
|
5406
|
+
* export class MyComponent {}
|
|
5407
|
+
* ```
|
|
5536
5408
|
*/
|
|
5537
5409
|
const KENDO_FLOATINGACTIONBUTTON = [
|
|
5538
5410
|
FloatingActionButtonComponent,
|
|
@@ -5540,7 +5412,17 @@ const KENDO_FLOATINGACTIONBUTTON = [
|
|
|
5540
5412
|
FloatingActionButtonTemplateDirective
|
|
5541
5413
|
];
|
|
5542
5414
|
/**
|
|
5543
|
-
*
|
|
5415
|
+
* Use the `KENDO_SPLITBUTTON` utility array to add all SplitButton-related components and directives to a standalone Angular component.
|
|
5416
|
+
*
|
|
5417
|
+
* @example
|
|
5418
|
+
* ```typescript
|
|
5419
|
+
* @Component({
|
|
5420
|
+
* standalone: true,
|
|
5421
|
+
* imports: [KENDO_SPLITBUTTON],
|
|
5422
|
+
* // ...
|
|
5423
|
+
* })
|
|
5424
|
+
* export class MyComponent {}
|
|
5425
|
+
* ```
|
|
5544
5426
|
*/
|
|
5545
5427
|
const KENDO_SPLITBUTTON = [
|
|
5546
5428
|
SplitButtonComponent,
|
|
@@ -5549,7 +5431,17 @@ const KENDO_SPLITBUTTON = [
|
|
|
5549
5431
|
ButtonItemTemplateDirective
|
|
5550
5432
|
];
|
|
5551
5433
|
/**
|
|
5552
|
-
*
|
|
5434
|
+
* Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
|
|
5435
|
+
*
|
|
5436
|
+
* @example
|
|
5437
|
+
* ```typescript
|
|
5438
|
+
* @Component({
|
|
5439
|
+
* standalone: true,
|
|
5440
|
+
* imports: [KENDO_BUTTONS],
|
|
5441
|
+
* // ...
|
|
5442
|
+
* })
|
|
5443
|
+
* export class MyComponent {}
|
|
5444
|
+
* ```
|
|
5553
5445
|
*/
|
|
5554
5446
|
const KENDO_BUTTONS = [
|
|
5555
5447
|
...KENDO_BUTTON,
|
|
@@ -5563,12 +5455,29 @@ const KENDO_BUTTONS = [
|
|
|
5563
5455
|
|
|
5564
5456
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
5565
5457
|
/**
|
|
5458
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
5459
|
+
* definition for the ButtonGroup directive.
|
|
5566
5460
|
*
|
|
5567
|
-
*
|
|
5461
|
+
* Required for adding ButtonGroup features in NgModule-based Angular applications.
|
|
5568
5462
|
*
|
|
5569
5463
|
* The package exports:
|
|
5570
5464
|
* - `ButtonGroupComponent`—The ButtonGroup component class.
|
|
5571
5465
|
* - `ButtonComponent`—The Button component class.
|
|
5466
|
+
*
|
|
5467
|
+
* @example
|
|
5468
|
+
* ```typescript
|
|
5469
|
+
* import { ButtonGroupModule } from '@progress/kendo-angular-buttons';
|
|
5470
|
+
* import { NgModule } from '@angular/core';
|
|
5471
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5472
|
+
* import { AppComponent } from './app.component';
|
|
5473
|
+
*
|
|
5474
|
+
* @NgModule({
|
|
5475
|
+
* declarations: [AppComponent],
|
|
5476
|
+
* imports: [BrowserModule, ButtonGroupModule],
|
|
5477
|
+
* bootstrap: [AppComponent]
|
|
5478
|
+
* })
|
|
5479
|
+
* export class AppModule {}
|
|
5480
|
+
* ```
|
|
5572
5481
|
*/
|
|
5573
5482
|
class ButtonGroupModule {
|
|
5574
5483
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -5589,31 +5498,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5589
5498
|
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
5590
5499
|
* definition for the Button directive.
|
|
5591
5500
|
*
|
|
5592
|
-
*
|
|
5501
|
+
* Required for adding Button features in NgModule-based Angular applications.
|
|
5593
5502
|
*
|
|
5594
|
-
*
|
|
5595
|
-
*
|
|
5503
|
+
* @example
|
|
5504
|
+
* ```typescript
|
|
5596
5505
|
* import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
5597
|
-
*
|
|
5598
|
-
* // The browser platform with a compiler
|
|
5599
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
5600
|
-
*
|
|
5601
5506
|
* import { NgModule } from '@angular/core';
|
|
5602
|
-
*
|
|
5603
|
-
* // Import the app component
|
|
5507
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5604
5508
|
* import { AppComponent } from './app.component';
|
|
5605
5509
|
*
|
|
5606
|
-
*
|
|
5607
|
-
*
|
|
5608
|
-
*
|
|
5609
|
-
*
|
|
5610
|
-
* bootstrap: [AppComponent]
|
|
5510
|
+
* @NgModule({
|
|
5511
|
+
* declarations: [AppComponent],
|
|
5512
|
+
* imports: [BrowserModule, ButtonModule],
|
|
5513
|
+
* bootstrap: [AppComponent]
|
|
5611
5514
|
* })
|
|
5612
5515
|
* export class AppModule {}
|
|
5613
|
-
*
|
|
5614
|
-
* // Compile and launch the module
|
|
5615
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
5616
|
-
*
|
|
5617
5516
|
* ```
|
|
5618
5517
|
*/
|
|
5619
5518
|
class ButtonModule {
|
|
@@ -5635,31 +5534,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5635
5534
|
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
5636
5535
|
* definition for the Buttons components.
|
|
5637
5536
|
*
|
|
5537
|
+
* Required for adding all Button features in NgModule-based Angular applications.
|
|
5538
|
+
*
|
|
5638
5539
|
* @example
|
|
5639
5540
|
*
|
|
5640
5541
|
* ```ts-no-run
|
|
5641
|
-
* // Import the Buttons module
|
|
5642
5542
|
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
5643
|
-
*
|
|
5644
|
-
* // The browser platform with a compiler
|
|
5645
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
5646
|
-
*
|
|
5647
5543
|
* import { NgModule } from '@angular/core';
|
|
5648
|
-
*
|
|
5649
|
-
* // Import the app component
|
|
5650
5544
|
* import { AppComponent } from './app.component';
|
|
5651
5545
|
*
|
|
5652
|
-
*
|
|
5653
|
-
* _@NgModule({
|
|
5546
|
+
* @NgModule({
|
|
5654
5547
|
* declarations: [AppComponent], // declare app component
|
|
5655
5548
|
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
5656
5549
|
* bootstrap: [AppComponent]
|
|
5657
5550
|
* })
|
|
5658
5551
|
* export class AppModule {}
|
|
5659
|
-
*
|
|
5660
|
-
* // Compile and launch the module
|
|
5661
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
5662
|
-
*
|
|
5663
5552
|
* ```
|
|
5664
5553
|
*/
|
|
5665
5554
|
class ButtonsModule {
|
|
@@ -5676,10 +5565,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5676
5565
|
}]
|
|
5677
5566
|
}] });
|
|
5678
5567
|
|
|
5679
|
-
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
5568
|
+
// IMPORTANT: NgModule export kept for backwards compatibility.
|
|
5680
5569
|
/**
|
|
5570
|
+
* Represents the exported package module.
|
|
5681
5571
|
*
|
|
5682
|
-
*
|
|
5572
|
+
* Required for adding SplitButton features in NgModule-based Angular applications.
|
|
5683
5573
|
*
|
|
5684
5574
|
* The package exports:
|
|
5685
5575
|
* - `SplitButtonComponent`—The SplitButton component class.
|
|
@@ -5701,12 +5591,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5701
5591
|
|
|
5702
5592
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
5703
5593
|
/**
|
|
5594
|
+
* Exports the package module.
|
|
5704
5595
|
*
|
|
5705
|
-
*
|
|
5596
|
+
* Required for adding DropDownButton features in NgModule-based Angular applications.
|
|
5706
5597
|
*
|
|
5707
|
-
* The
|
|
5708
|
-
* - `DropDownButtonComponent`—The
|
|
5709
|
-
* - `ButtonItemTemplateDirective`—The
|
|
5598
|
+
* The module includes:
|
|
5599
|
+
* - `DropDownButtonComponent`—The component class for the DropDownButton.
|
|
5600
|
+
* - `ButtonItemTemplateDirective`—The directive for the button item template.
|
|
5601
|
+
*
|
|
5602
|
+
* @example
|
|
5603
|
+
* ```typescript
|
|
5604
|
+
* import { DropDownButtonModule } from '@progress/kendo-angular-buttons';
|
|
5605
|
+
* import { NgModule } from '@angular/core';
|
|
5606
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5607
|
+
* import { AppComponent } from './app.component';
|
|
5608
|
+
*
|
|
5609
|
+
* @NgModule({
|
|
5610
|
+
* declarations: [AppComponent],
|
|
5611
|
+
* imports: [BrowserModule, DropDownButtonModule],
|
|
5612
|
+
* bootstrap: [AppComponent]
|
|
5613
|
+
* })
|
|
5614
|
+
* export class AppModule {}
|
|
5615
|
+
* ```
|
|
5710
5616
|
*/
|
|
5711
5617
|
class DropDownButtonModule {
|
|
5712
5618
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -5727,28 +5633,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5727
5633
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
5728
5634
|
* definition for the Chip and ChipList components.
|
|
5729
5635
|
*
|
|
5730
|
-
*
|
|
5636
|
+
* Required for adding Chip and ChipList features in NgModule-based Angular applications.
|
|
5731
5637
|
*
|
|
5732
|
-
*
|
|
5733
|
-
*
|
|
5638
|
+
* @example
|
|
5639
|
+
* ```typescript
|
|
5734
5640
|
* import { ChipModule } from '@progress/kendo-angular-buttons';
|
|
5735
|
-
*
|
|
5736
|
-
* // The browser platform with a compiler
|
|
5737
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
5738
|
-
*
|
|
5739
5641
|
* import { NgModule } from '@angular/core';
|
|
5740
|
-
*
|
|
5741
|
-
* // Import the app component
|
|
5642
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5742
5643
|
* import { AppComponent } from './app.component';
|
|
5743
5644
|
*
|
|
5744
|
-
*
|
|
5745
|
-
*
|
|
5746
|
-
*
|
|
5747
|
-
*
|
|
5748
|
-
* bootstrap: [AppComponent]
|
|
5645
|
+
* @NgModule({
|
|
5646
|
+
* declarations: [AppComponent],
|
|
5647
|
+
* imports: [BrowserModule, ChipModule],
|
|
5648
|
+
* bootstrap: [AppComponent]
|
|
5749
5649
|
* })
|
|
5750
5650
|
* export class AppModule {}
|
|
5751
|
-
*
|
|
5752
5651
|
* ```
|
|
5753
5652
|
*/
|
|
5754
5653
|
class ChipModule {
|
|
@@ -5765,33 +5664,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5765
5664
|
}]
|
|
5766
5665
|
}] });
|
|
5767
5666
|
|
|
5768
|
-
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
5769
5667
|
/**
|
|
5770
|
-
* Represents the
|
|
5771
|
-
* definition for the FloatingActionButton component.
|
|
5668
|
+
* Represents the NgModule definition for the FloatingActionButton component.
|
|
5772
5669
|
*
|
|
5773
|
-
*
|
|
5670
|
+
* Required for adding FloatingActionButton features in NgModule-based Angular applications.
|
|
5774
5671
|
*
|
|
5775
|
-
*
|
|
5776
|
-
*
|
|
5672
|
+
* @example
|
|
5673
|
+
* ```ts
|
|
5777
5674
|
* import { FloatingActionButtonModule } from '@progress/kendo-angular-buttons';
|
|
5778
|
-
*
|
|
5779
|
-
* // The browser platform with a compiler
|
|
5780
5675
|
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
5781
|
-
*
|
|
5782
5676
|
* import { NgModule } from '@angular/core';
|
|
5783
|
-
*
|
|
5784
|
-
* // Import the app component
|
|
5785
5677
|
* import { AppComponent } from './app.component';
|
|
5678
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5786
5679
|
*
|
|
5787
|
-
*
|
|
5788
|
-
*
|
|
5789
|
-
*
|
|
5790
|
-
*
|
|
5791
|
-
* bootstrap: [AppComponent]
|
|
5680
|
+
* @NgModule({
|
|
5681
|
+
* declarations: [AppComponent],
|
|
5682
|
+
* imports: [BrowserModule, FloatingActionButtonModule],
|
|
5683
|
+
* bootstrap: [AppComponent]
|
|
5792
5684
|
* })
|
|
5793
5685
|
* export class AppModule {}
|
|
5794
|
-
*
|
|
5795
5686
|
* ```
|
|
5796
5687
|
*/
|
|
5797
5688
|
class FloatingActionButtonModule {
|