@progress/kendo-angular-buttons 19.1.1-develop.2 → 19.1.2-develop.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
|
@@ -22,34 +22,38 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
22
22
|
const tabindex = 'tabindex';
|
|
23
23
|
/**
|
|
24
24
|
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```html
|
|
28
|
+
* <kendo-buttongroup>
|
|
29
|
+
* <button kendoButton>Left</button>
|
|
30
|
+
* <button kendoButton>Middle</button>
|
|
31
|
+
* <button kendoButton>Right</button>
|
|
32
|
+
* </kendo-buttongroup>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Supported children components are: {@link ButtonComponent}.
|
|
25
37
|
*/
|
|
26
38
|
export class ButtonGroupComponent {
|
|
27
39
|
service;
|
|
28
40
|
renderer;
|
|
29
41
|
element;
|
|
30
42
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* To disable a specific button, set its own `disabled` attribute to `true`
|
|
35
|
-
* and leave the `disabled` attribute of the ButtonGroup undefined.
|
|
36
|
-
* If you define the `disabled` attribute of the ButtonGroup, it will take
|
|
37
|
-
* precedence over the `disabled` attributes of the underlying buttons and they will be ignored.
|
|
38
|
-
*
|
|
39
|
-
* For more information on how to configure the Button, refer to
|
|
40
|
-
* its [API documentation]({% slug api_buttons_buttoncomponent %}).
|
|
43
|
+
* To disable a specific button, set **only** its `disabled` property to `true`.
|
|
44
|
+
* If you also set the ButtonGroup `disabled` property, it takes precedence over
|
|
45
|
+
* the `disabled` properties of the underlying buttons and they are ignored.
|
|
41
46
|
*/
|
|
42
47
|
disabled;
|
|
43
48
|
/**
|
|
44
|
-
*
|
|
49
|
+
* Sets the selection mode of the ButtonGroup.
|
|
50
|
+
*
|
|
45
51
|
* @default 'multiple'
|
|
46
52
|
*/
|
|
47
53
|
selection = 'multiple';
|
|
48
54
|
/**
|
|
49
55
|
* Sets the width of the ButtonGroup.
|
|
50
|
-
*
|
|
51
|
-
* - The buttons resize automatically to fill the full width of the group wrapper.
|
|
52
|
-
* - The buttons acquire the same width.
|
|
56
|
+
* When set, the buttons resize automatically to fill the full width of the group wrapper and acquire the same width.
|
|
53
57
|
*/
|
|
54
58
|
width;
|
|
55
59
|
/**
|
|
@@ -63,16 +67,16 @@ export class ButtonGroupComponent {
|
|
|
63
67
|
return this._tabIndex;
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
|
-
* When
|
|
67
|
-
* and focus
|
|
70
|
+
* When set to `true`, the component is a single tab-stop,
|
|
71
|
+
* and focus moves through the inner buttons using the arrow keys.
|
|
68
72
|
*
|
|
69
|
-
* When
|
|
73
|
+
* When set to `false`, the inner buttons are part of the natural tab sequence of the page.
|
|
70
74
|
*
|
|
71
75
|
* @default true
|
|
72
76
|
*/
|
|
73
77
|
navigable = true;
|
|
74
78
|
/**
|
|
75
|
-
* Fires every time keyboard navigation occurs.
|
|
79
|
+
* Fires every time keyboard navigation occurs within the ButtonGroup.
|
|
76
80
|
*/
|
|
77
81
|
navigate = new EventEmitter();
|
|
78
82
|
buttons;
|
|
@@ -10,12 +10,29 @@ import * as i1 from "../button/button.component";
|
|
|
10
10
|
import * as i2 from "./buttongroup.component";
|
|
11
11
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
12
|
/**
|
|
13
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
14
|
+
* definition for the ButtonGroup directive.
|
|
13
15
|
*
|
|
14
|
-
*
|
|
16
|
+
* Required for adding ButtonGroup features in NgModule-based Angular applications.
|
|
15
17
|
*
|
|
16
18
|
* The package exports:
|
|
17
19
|
* - `ButtonGroupComponent`—The ButtonGroup component class.
|
|
18
20
|
* - `ButtonComponent`—The Button component class.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { ButtonGroupModule } from '@progress/kendo-angular-buttons';
|
|
25
|
+
* import { NgModule } from '@angular/core';
|
|
26
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
27
|
+
* import { AppComponent } from './app.component';
|
|
28
|
+
*
|
|
29
|
+
* @NgModule({
|
|
30
|
+
* declarations: [AppComponent],
|
|
31
|
+
* imports: [BrowserModule, ButtonGroupModule],
|
|
32
|
+
* bootstrap: [AppComponent]
|
|
33
|
+
* })
|
|
34
|
+
* export class AppModule {}
|
|
35
|
+
* ```
|
|
19
36
|
*/
|
|
20
37
|
export class ButtonGroupModule {
|
|
21
38
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -25,31 +25,21 @@ import * as i12 from "@progress/kendo-angular-common";
|
|
|
25
25
|
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
26
26
|
* definition for the Buttons components.
|
|
27
27
|
*
|
|
28
|
+
* Required for adding all Button features in NgModule-based Angular applications.
|
|
29
|
+
*
|
|
28
30
|
* @example
|
|
29
31
|
*
|
|
30
32
|
* ```ts-no-run
|
|
31
|
-
* // Import the Buttons module
|
|
32
33
|
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
33
|
-
*
|
|
34
|
-
* // The browser platform with a compiler
|
|
35
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
36
|
-
*
|
|
37
34
|
* import { NgModule } from '@angular/core';
|
|
38
|
-
*
|
|
39
|
-
* // Import the app component
|
|
40
35
|
* import { AppComponent } from './app.component';
|
|
41
36
|
*
|
|
42
|
-
*
|
|
43
|
-
* _@NgModule({
|
|
37
|
+
* @NgModule({
|
|
44
38
|
* declarations: [AppComponent], // declare app component
|
|
45
39
|
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
46
40
|
* bootstrap: [AppComponent]
|
|
47
41
|
* })
|
|
48
42
|
* export class AppModule {}
|
|
49
|
-
*
|
|
50
|
-
* // Compile and launch the module
|
|
51
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
52
|
-
*
|
|
53
43
|
* ```
|
|
54
44
|
*/
|
|
55
45
|
export class ButtonsModule {
|
|
@@ -12,6 +12,19 @@ import { packageMetadata } from '../package-metadata';
|
|
|
12
12
|
import { isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
|
+
/**
|
|
16
|
+
* Represents the Kendo UI ChipList component for Angular. Displays a list of Chip components.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-chiplist selection="multiple">
|
|
21
|
+
* <kendo-chip label="Chip 1"></kendo-chip>
|
|
22
|
+
* <kendo-chip label="Chip 2"></kendo-chip>
|
|
23
|
+
* </kendo-chiplist>
|
|
24
|
+
* ```
|
|
25
|
+
* @remarks
|
|
26
|
+
* Supported children components are: {@link ChipComponent}.
|
|
27
|
+
*/
|
|
15
28
|
export class ChipListComponent {
|
|
16
29
|
localizationService;
|
|
17
30
|
renderer;
|
|
@@ -26,21 +39,14 @@ export class ChipListComponent {
|
|
|
26
39
|
/**
|
|
27
40
|
* Sets the selection mode of the ChipList.
|
|
28
41
|
*
|
|
29
|
-
*
|
|
30
|
-
* * `none` (default)
|
|
31
|
-
* * `single`
|
|
32
|
-
* * `multiple`
|
|
42
|
+
* @default 'none'
|
|
33
43
|
*/
|
|
34
44
|
selection = 'none';
|
|
35
45
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
46
|
+
* Sets the gap between the Chips in the ChipList.
|
|
47
|
+
* See [ChipList Appearance]({% slug appearance_chiplist %}#size).
|
|
38
48
|
*
|
|
39
|
-
*
|
|
40
|
-
* * `'small'`
|
|
41
|
-
* * `'medium'` (default)
|
|
42
|
-
* * `'large'`
|
|
43
|
-
* * `none`
|
|
49
|
+
* @default 'medium'
|
|
44
50
|
*/
|
|
45
51
|
set size(size) {
|
|
46
52
|
const sizeValue = size ? size : 'medium';
|
|
@@ -52,11 +58,11 @@ export class ChipListComponent {
|
|
|
52
58
|
return this._size;
|
|
53
59
|
}
|
|
54
60
|
/**
|
|
55
|
-
* Fires
|
|
61
|
+
* Fires when the ChipList selection changes.
|
|
56
62
|
*/
|
|
57
63
|
selectedChange = new EventEmitter();
|
|
58
64
|
/**
|
|
59
|
-
* Fires
|
|
65
|
+
* Fires when the user clicks the remove icon of a Chip in the ChipList.
|
|
60
66
|
*/
|
|
61
67
|
remove = new EventEmitter();
|
|
62
68
|
chips;
|
|
@@ -19,7 +19,12 @@ const DEFAULT_ROUNDED = 'medium';
|
|
|
19
19
|
const DEFAULT_THEME_COLOR = 'base';
|
|
20
20
|
const DEFAULT_FILL_MODE = 'solid';
|
|
21
21
|
/**
|
|
22
|
-
* Displays a Chip that represents an input, attribute or
|
|
22
|
+
* Displays a Chip that represents an input, attribute, or action.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <kendo-chip label="Chip Label"></kendo-chip>
|
|
27
|
+
* ```
|
|
23
28
|
*/
|
|
24
29
|
export class ChipComponent {
|
|
25
30
|
element;
|
|
@@ -36,14 +41,13 @@ export class ChipComponent {
|
|
|
36
41
|
*/
|
|
37
42
|
icon;
|
|
38
43
|
/**
|
|
39
|
-
* Defines an [`SVGIcon`](slug:api_icons_svgicon)
|
|
44
|
+
* Defines an [`SVGIcon`](slug:api_icons_svgicon) to render inside the Chip using
|
|
40
45
|
* a [`KendoSVGIcon`](slug:api_icons_svgiconcomponent) component.
|
|
41
46
|
*/
|
|
42
47
|
svgIcon;
|
|
43
48
|
/**
|
|
44
|
-
* Defines a CSS class
|
|
45
|
-
*
|
|
46
|
-
* Allows the usage of custom icons.
|
|
49
|
+
* Defines a CSS class, or multiple classes separated by spaces,
|
|
50
|
+
* applied to a `span` element. Use the `iconClass` to add custom icons.
|
|
47
51
|
*/
|
|
48
52
|
iconClass;
|
|
49
53
|
/**
|
|
@@ -56,18 +60,18 @@ export class ChipComponent {
|
|
|
56
60
|
*/
|
|
57
61
|
selected = false;
|
|
58
62
|
/**
|
|
59
|
-
* Specifies if the Chip
|
|
60
|
-
* If
|
|
63
|
+
* Specifies if the Chip is removable.
|
|
64
|
+
* If set to `true`, the Chip renders a remove icon.
|
|
61
65
|
* @default false
|
|
62
66
|
*/
|
|
63
67
|
removable = false;
|
|
64
68
|
/**
|
|
65
|
-
* Specifies a custom remove font icon class
|
|
69
|
+
* Specifies a custom remove font icon class to render when the Chip is removable.
|
|
66
70
|
* [see example]({% slug icons %})
|
|
67
71
|
*/
|
|
68
72
|
removeIcon;
|
|
69
73
|
/**
|
|
70
|
-
* Specifies a custom remove SVG icon
|
|
74
|
+
* Specifies a custom remove SVG icon to render when the Chip is removable.
|
|
71
75
|
*/
|
|
72
76
|
removeSvgIcon;
|
|
73
77
|
/**
|
|
@@ -79,29 +83,25 @@ export class ChipComponent {
|
|
|
79
83
|
/**
|
|
80
84
|
* @hidden
|
|
81
85
|
*
|
|
82
|
-
* Specifies a custom menu font icon class
|
|
86
|
+
* Specifies a custom menu font icon class to render when the Chip has a menu.
|
|
83
87
|
*/
|
|
84
88
|
menuIcon;
|
|
85
89
|
/**
|
|
86
90
|
* @hidden
|
|
87
91
|
*
|
|
88
|
-
* Specifies a custom menu SVG icon
|
|
92
|
+
* Specifies a custom menu SVG icon to render when the Chip has a menu.
|
|
89
93
|
*/
|
|
90
94
|
menuSvgIcon;
|
|
91
95
|
/**
|
|
92
|
-
* If set to `true`, the Chip
|
|
96
|
+
* If set to `true`, the Chip is disabled.
|
|
93
97
|
* @default false
|
|
94
98
|
*/
|
|
95
99
|
disabled = false;
|
|
96
100
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
101
|
+
* Sets the padding of the Chip.
|
|
102
|
+
* See [Chip Appearance]({% slug appearance_chip %}#size).
|
|
99
103
|
*
|
|
100
|
-
*
|
|
101
|
-
* * `small`
|
|
102
|
-
* * `medium` (default)
|
|
103
|
-
* * `large`
|
|
104
|
-
* * `none`
|
|
104
|
+
* @default 'medium'
|
|
105
105
|
*/
|
|
106
106
|
set size(size) {
|
|
107
107
|
const newSize = size ? size : DEFAULT_SIZE;
|
|
@@ -113,15 +113,10 @@ export class ChipComponent {
|
|
|
113
113
|
return this._size;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
116
|
+
* Sets the border radius of the Chip.
|
|
117
|
+
* See [Chip Appearance](slug:appearance_chip#roundness).
|
|
118
118
|
*
|
|
119
|
-
*
|
|
120
|
-
* * `small`
|
|
121
|
-
* * `medium` (default)
|
|
122
|
-
* * `large`
|
|
123
|
-
* * `full`
|
|
124
|
-
* * `none`
|
|
119
|
+
* @default 'medium'
|
|
125
120
|
*/
|
|
126
121
|
set rounded(rounded) {
|
|
127
122
|
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
@@ -132,13 +127,10 @@ export class ChipComponent {
|
|
|
132
127
|
return this._rounded;
|
|
133
128
|
}
|
|
134
129
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
130
|
+
* Sets the background and border styles of the Chip.
|
|
131
|
+
* See [Chip Appearance](slug:appearance_chip#fill-mode).
|
|
137
132
|
*
|
|
138
|
-
*
|
|
139
|
-
* * `solid` (default)
|
|
140
|
-
* * `outline`
|
|
141
|
-
* * `none`
|
|
133
|
+
* @default 'solid'
|
|
142
134
|
*/
|
|
143
135
|
set fillMode(fillMode) {
|
|
144
136
|
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
@@ -149,17 +141,11 @@ export class ChipComponent {
|
|
|
149
141
|
return this._fillMode;
|
|
150
142
|
}
|
|
151
143
|
/**
|
|
152
|
-
*
|
|
153
|
-
* The theme color
|
|
154
|
-
*
|
|
144
|
+
* Sets a predefined theme color for the Chip.
|
|
145
|
+
* The theme color applies as a background and border color and adjusts the text color.
|
|
146
|
+
* See [Chip Appearance](slug:appearance_chip#theme-colors).
|
|
155
147
|
*
|
|
156
|
-
*
|
|
157
|
-
* * `base` (default)
|
|
158
|
-
* * `info`
|
|
159
|
-
* * `success`
|
|
160
|
-
* * `warning`
|
|
161
|
-
* * `error`
|
|
162
|
-
* * `none`
|
|
148
|
+
* @default 'base'
|
|
163
149
|
*/
|
|
164
150
|
set themeColor(themeColor) {
|
|
165
151
|
const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
|
|
@@ -170,17 +156,17 @@ export class ChipComponent {
|
|
|
170
156
|
return this._themeColor;
|
|
171
157
|
}
|
|
172
158
|
/**
|
|
173
|
-
* Fires
|
|
159
|
+
* Fires when the user clicks the remove icon of the Chip.
|
|
174
160
|
*/
|
|
175
161
|
remove = new EventEmitter();
|
|
176
162
|
/**
|
|
177
163
|
* @hidden
|
|
178
164
|
*
|
|
179
|
-
* Fires
|
|
165
|
+
* Fires when the user clicks the menu icon of the Chip.
|
|
180
166
|
*/
|
|
181
167
|
menuToggle = new EventEmitter();
|
|
182
168
|
/**
|
|
183
|
-
* Fires
|
|
169
|
+
* Fires when the user clicks the content of the Chip.
|
|
184
170
|
*/
|
|
185
171
|
contentClick = new EventEmitter();
|
|
186
172
|
tabIndex = 0;
|
|
@@ -404,7 +390,7 @@ export class ChipComponent {
|
|
|
404
390
|
<img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
|
|
405
391
|
</span>
|
|
406
392
|
</ng-container>
|
|
407
|
-
|
|
393
|
+
|
|
408
394
|
<ng-container *ngIf="avatarSettings?.initials">
|
|
409
395
|
<span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
|
|
410
396
|
</ng-container>
|
|
@@ -465,7 +451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
465
451
|
<img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
|
|
466
452
|
</span>
|
|
467
453
|
</ng-container>
|
|
468
|
-
|
|
454
|
+
|
|
469
455
|
<ng-container *ngIf="avatarSettings?.initials">
|
|
470
456
|
<span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
|
|
471
457
|
</ng-container>
|
|
@@ -13,28 +13,21 @@ import * as i2 from "./chip-list.component";
|
|
|
13
13
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
14
14
|
* definition for the Chip and ChipList components.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* Required for adding Chip and ChipList features in NgModule-based Angular applications.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
20
|
* import { ChipModule } from '@progress/kendo-angular-buttons';
|
|
21
|
-
*
|
|
22
|
-
* // The browser platform with a compiler
|
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
24
|
-
*
|
|
25
21
|
* import { NgModule } from '@angular/core';
|
|
26
|
-
*
|
|
27
|
-
* // Import the app component
|
|
22
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
28
23
|
* import { AppComponent } from './app.component';
|
|
29
24
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* bootstrap: [AppComponent]
|
|
25
|
+
* @NgModule({
|
|
26
|
+
* declarations: [AppComponent],
|
|
27
|
+
* imports: [BrowserModule, ChipModule],
|
|
28
|
+
* bootstrap: [AppComponent]
|
|
35
29
|
* })
|
|
36
30
|
* export class AppModule {}
|
|
37
|
-
*
|
|
38
31
|
* ```
|
|
39
32
|
*/
|
|
40
33
|
export class ChipModule {
|
package/esm2022/directives.mjs
CHANGED
|
@@ -15,40 +15,100 @@ import { SplitButtonComponent } from './splitbutton/splitbutton.component';
|
|
|
15
15
|
import { ButtonItemTemplateDirective } from './listbutton/button-item-template.directive';
|
|
16
16
|
import { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* @Component({
|
|
23
|
+
* standalone: true,
|
|
24
|
+
* imports: [KENDO_BUTTON],
|
|
25
|
+
* // ...
|
|
26
|
+
* })
|
|
27
|
+
* export class MyComponent {}
|
|
28
|
+
* ```
|
|
19
29
|
*/
|
|
20
30
|
export const KENDO_BUTTON = [
|
|
21
31
|
ButtonComponent
|
|
22
32
|
];
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
34
|
+
* Use the `KENDO_BUTTONGROUP` utility array to add all ButtonGroup-related components and directives to a standalone Angular component.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* @Component({
|
|
39
|
+
* standalone: true,
|
|
40
|
+
* imports: [KENDO_BUTTONGROUP],
|
|
41
|
+
* // ...
|
|
42
|
+
* })
|
|
43
|
+
* export class MyComponent {}
|
|
44
|
+
* ```
|
|
25
45
|
*/
|
|
26
46
|
export const KENDO_BUTTONGROUP = [
|
|
27
47
|
ButtonComponent,
|
|
28
48
|
ButtonGroupComponent
|
|
29
49
|
];
|
|
30
50
|
/**
|
|
31
|
-
*
|
|
51
|
+
* Use the `KENDO_DROPDOWNBUTTON` utility array to add all DropDownButton-related components and directives to a standalone Angular component.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* @Component({
|
|
56
|
+
* standalone: true,
|
|
57
|
+
* imports: [KENDO_DROPDOWNBUTTON],
|
|
58
|
+
* // ...
|
|
59
|
+
* })
|
|
60
|
+
* export class MyComponent {}
|
|
61
|
+
* ```
|
|
32
62
|
*/
|
|
33
63
|
export const KENDO_DROPDOWNBUTTON = [
|
|
34
64
|
DropDownButtonComponent,
|
|
35
65
|
ButtonItemTemplateDirective
|
|
36
66
|
];
|
|
37
67
|
/**
|
|
38
|
-
*
|
|
68
|
+
* Use the `KENDO_CHIP` utility array to add all Chip-related components and directives to a standalone Angular component.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* @Component({
|
|
73
|
+
* standalone: true,
|
|
74
|
+
* imports: [KENDO_CHIP],
|
|
75
|
+
* // ...
|
|
76
|
+
* })
|
|
77
|
+
* export class MyComponent {}
|
|
78
|
+
* ```
|
|
39
79
|
*/
|
|
40
80
|
export const KENDO_CHIP = [
|
|
41
81
|
ChipComponent
|
|
42
82
|
];
|
|
43
83
|
/**
|
|
44
|
-
*
|
|
84
|
+
* Use the `KENDO_CHIPLIST` utility array to add all ChipList-related components and directives to a standalone Angular component.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```typescript
|
|
88
|
+
* @Component({
|
|
89
|
+
* standalone: true,
|
|
90
|
+
* imports: [KENDO_CHIPLIST],
|
|
91
|
+
* // ...
|
|
92
|
+
* })
|
|
93
|
+
* export class MyComponent {}
|
|
94
|
+
* ```
|
|
45
95
|
*/
|
|
46
96
|
export const KENDO_CHIPLIST = [
|
|
47
97
|
ChipComponent,
|
|
48
98
|
ChipListComponent
|
|
49
99
|
];
|
|
50
100
|
/**
|
|
51
|
-
*
|
|
101
|
+
* Use the `KENDO_FLOATINGACTIONBUTTON` utility array to add all FloatingActionButton-related components and directives to a standalone Angular component.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* @Component({
|
|
106
|
+
* standalone: true,
|
|
107
|
+
* imports: [KENDO_FLOATINGACTIONBUTTON],
|
|
108
|
+
* // ...
|
|
109
|
+
* })
|
|
110
|
+
* export class MyComponent {}
|
|
111
|
+
* ```
|
|
52
112
|
*/
|
|
53
113
|
export const KENDO_FLOATINGACTIONBUTTON = [
|
|
54
114
|
FloatingActionButtonComponent,
|
|
@@ -56,7 +116,17 @@ export const KENDO_FLOATINGACTIONBUTTON = [
|
|
|
56
116
|
FloatingActionButtonTemplateDirective
|
|
57
117
|
];
|
|
58
118
|
/**
|
|
59
|
-
*
|
|
119
|
+
* Use the `KENDO_SPLITBUTTON` utility array to add all SplitButton-related components and directives to a standalone Angular component.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* @Component({
|
|
124
|
+
* standalone: true,
|
|
125
|
+
* imports: [KENDO_SPLITBUTTON],
|
|
126
|
+
* // ...
|
|
127
|
+
* })
|
|
128
|
+
* export class MyComponent {}
|
|
129
|
+
* ```
|
|
60
130
|
*/
|
|
61
131
|
export const KENDO_SPLITBUTTON = [
|
|
62
132
|
SplitButtonComponent,
|
|
@@ -65,7 +135,17 @@ export const KENDO_SPLITBUTTON = [
|
|
|
65
135
|
ButtonItemTemplateDirective
|
|
66
136
|
];
|
|
67
137
|
/**
|
|
68
|
-
*
|
|
138
|
+
* Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* @Component({
|
|
143
|
+
* standalone: true,
|
|
144
|
+
* imports: [KENDO_BUTTONS],
|
|
145
|
+
* // ...
|
|
146
|
+
* })
|
|
147
|
+
* export class MyComponent {}
|
|
148
|
+
* ```
|
|
69
149
|
*/
|
|
70
150
|
export const KENDO_BUTTONS = [
|
|
71
151
|
...KENDO_BUTTON,
|