@progress/kendo-angular-dropdowns 7.0.0-next.202204011414 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete.component.d.ts +13 -13
- package/bundles/kendo-angular-dropdowns.umd.js +1 -1
- package/comboboxes/combobox.component.d.ts +13 -13
- package/common/models/fillmode.d.ts +1 -7
- package/common/models/remove-tag-event.d.ts +4 -1
- package/common/models/rounded.d.ts +1 -8
- package/common/models/size.d.ts +1 -7
- package/dropdownlist/dropdownlist.component.d.ts +13 -13
- package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +8 -0
- package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +8 -0
- package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +8 -0
- package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +8 -0
- package/dropdowntrees/dropdowntree.component.d.ts +13 -13
- package/dropdowntrees/multiselecttree.component.d.ts +13 -13
- package/esm2015/autocomplete/autocomplete.component.js +33 -27
- package/esm2015/comboboxes/combobox.component.js +32 -26
- package/esm2015/dropdownlist/dropdownlist.component.js +31 -25
- package/esm2015/dropdowntrees/checked-state/check-all.directive.js +12 -5
- package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +12 -0
- package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +34 -0
- package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +12 -0
- package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +12 -0
- package/esm2015/dropdowntrees/dropdowntree.component.js +37 -28
- package/esm2015/dropdowntrees/multiselecttree.component.js +48 -33
- package/esm2015/main.js +4 -0
- package/esm2015/multiselect/multiselect.component.js +33 -27
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-dropdowns.js +296 -172
- package/main.d.ts +4 -0
- package/multiselect/multiselect.component.d.ts +14 -14
- package/package.json +11 -13
- package/schematics/ngAdd/index.js +2 -2
|
@@ -242,10 +242,10 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
|
|
|
242
242
|
* Sets the size of the component.
|
|
243
243
|
*
|
|
244
244
|
* The possible values are:
|
|
245
|
-
* * `
|
|
246
|
-
* * `
|
|
247
|
-
* * `
|
|
248
|
-
* * `
|
|
245
|
+
* * `small`
|
|
246
|
+
* * `medium` (default)
|
|
247
|
+
* * `large`
|
|
248
|
+
* * `none`
|
|
249
249
|
*
|
|
250
250
|
*/
|
|
251
251
|
set size(size: DropDownSize);
|
|
@@ -254,11 +254,11 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
|
|
|
254
254
|
* Sets the border radius of the component.
|
|
255
255
|
*
|
|
256
256
|
* The possible values are:
|
|
257
|
-
* * `
|
|
258
|
-
* * `
|
|
259
|
-
* * `
|
|
260
|
-
* * `
|
|
261
|
-
* * `
|
|
257
|
+
* * `small`
|
|
258
|
+
* * `medium` (default)
|
|
259
|
+
* * `large`
|
|
260
|
+
* * `full`
|
|
261
|
+
* * `none`
|
|
262
262
|
*
|
|
263
263
|
*/
|
|
264
264
|
set rounded(rounded: DropDownRounded);
|
|
@@ -267,10 +267,10 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
|
|
|
267
267
|
* Sets the fillMode of the component.
|
|
268
268
|
*
|
|
269
269
|
* The possible values are:
|
|
270
|
-
* * `
|
|
271
|
-
* * `
|
|
272
|
-
* * `
|
|
273
|
-
* * `
|
|
270
|
+
* * `flat`
|
|
271
|
+
* * `solid` (default)
|
|
272
|
+
* * `outline`
|
|
273
|
+
* * `none`
|
|
274
274
|
*
|
|
275
275
|
*/
|
|
276
276
|
set fillMode(fillMode: DropDownFillMode);
|
|
@@ -4,11 +4,5 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible fillMode options of the dropdowns.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* - `'solid'`
|
|
10
|
-
* - `'flat'`
|
|
11
|
-
* - `'outline'`
|
|
12
|
-
* - `null`
|
|
13
7
|
*/
|
|
14
|
-
export declare type DropDownFillMode = 'solid' | 'flat' | 'outline';
|
|
8
|
+
export declare type DropDownFillMode = 'solid' | 'flat' | 'outline' | 'none';
|
|
@@ -8,7 +8,10 @@ import { PreventableEvent } from './preventable-event';
|
|
|
8
8
|
* to the removed. If you cancel the event, the removal is prevented.
|
|
9
9
|
*/
|
|
10
10
|
export declare class RemoveTagEvent extends PreventableEvent {
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The data item or an array of data items that will be removed.
|
|
13
|
+
*/
|
|
14
|
+
readonly dataItem: any;
|
|
12
15
|
/**
|
|
13
16
|
* Constructs the event arguments for the `remove` event.
|
|
14
17
|
* @param dataItem - The data item or an array of data items that will be removed.
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible rounded options of the dropdowns.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* - `'small'`
|
|
10
|
-
* - `'medium'`
|
|
11
|
-
* - `'large'`
|
|
12
|
-
* - `'full'`
|
|
13
|
-
* - `null`
|
|
14
7
|
*/
|
|
15
|
-
export declare type DropDownRounded = 'small' | 'medium' | 'large' | 'full';
|
|
8
|
+
export declare type DropDownRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
package/common/models/size.d.ts
CHANGED
|
@@ -4,11 +4,5 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible size options of the dropdowns.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* - `'small'`
|
|
10
|
-
* - `'medium'`
|
|
11
|
-
* - `'large'`
|
|
12
|
-
* - `null`
|
|
13
7
|
*/
|
|
14
|
-
export declare type DropDownSize = 'small' | 'medium' | 'large';
|
|
8
|
+
export declare type DropDownSize = 'small' | 'medium' | 'large' | 'none';
|
|
@@ -181,10 +181,10 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
181
181
|
* Sets the size of the component.
|
|
182
182
|
*
|
|
183
183
|
* The possible values are:
|
|
184
|
-
* * `
|
|
185
|
-
* * `
|
|
186
|
-
* * `
|
|
187
|
-
* * `
|
|
184
|
+
* * `small`
|
|
185
|
+
* * `medium` (default)
|
|
186
|
+
* * `large`
|
|
187
|
+
* * `none`
|
|
188
188
|
*
|
|
189
189
|
*/
|
|
190
190
|
set size(size: DropDownSize);
|
|
@@ -193,11 +193,11 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
193
193
|
* Sets the border radius of the component.
|
|
194
194
|
*
|
|
195
195
|
* The possible values are:
|
|
196
|
-
* * `
|
|
197
|
-
* * `
|
|
198
|
-
* * `
|
|
199
|
-
* * `
|
|
200
|
-
* * `
|
|
196
|
+
* * `small`
|
|
197
|
+
* * `medium` (default)
|
|
198
|
+
* * `large`
|
|
199
|
+
* * `full`
|
|
200
|
+
* * `none`
|
|
201
201
|
*
|
|
202
202
|
*/
|
|
203
203
|
set rounded(rounded: DropDownRounded);
|
|
@@ -206,10 +206,10 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
206
206
|
* Sets the fillMode of the component.
|
|
207
207
|
*
|
|
208
208
|
* The possible values are:
|
|
209
|
-
* * `
|
|
210
|
-
* * `
|
|
211
|
-
* * `
|
|
212
|
-
* * `
|
|
209
|
+
* * `flat`
|
|
210
|
+
* * `solid` (default)
|
|
211
|
+
* * `outline`
|
|
212
|
+
* * `none`
|
|
213
213
|
*
|
|
214
214
|
*/
|
|
215
215
|
set fillMode(fillMode: DropDownFillMode);
|
|
@@ -17,6 +17,14 @@ export declare class DropDownTreeFlatBindingDirective extends FlatDataBindingDir
|
|
|
17
17
|
* Represents the unique field which identifies a node.
|
|
18
18
|
*/
|
|
19
19
|
idField: string;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
set nodes(values: any[]);
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
set filter(term: string);
|
|
20
28
|
constructor(dropDownTree: DataBoundComponent);
|
|
21
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownTreeFlatBindingDirective, never>;
|
|
22
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropDownTreeFlatBindingDirective, "[kendoDropDownTreeFlatBinding]", never, { "data": "kendoDropDownTreeFlatBinding"; "idField": "valueField"; }, {}, never>;
|
|
@@ -13,6 +13,14 @@ export declare class DropDownTreeHierarchyBindingDirective extends HierarchyBind
|
|
|
13
13
|
* The nodes which will be displayed by the DropDownTree.
|
|
14
14
|
*/
|
|
15
15
|
set data(nodes: any[]);
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
set nodes(values: any[]);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
set filter(term: string);
|
|
16
24
|
constructor(dropDownTree: DataBoundComponent);
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownTreeHierarchyBindingDirective, never>;
|
|
18
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropDownTreeHierarchyBindingDirective, "[kendoDropDownTreeHierarchyBinding]", never, { "data": "kendoDropDownTreeHierarchyBinding"; }, {}, never>;
|
|
@@ -17,6 +17,14 @@ export declare class MultiSelectTreeFlatBindingDirective extends FlatDataBinding
|
|
|
17
17
|
* Represents the unique field which identifies a node.
|
|
18
18
|
*/
|
|
19
19
|
idField: string;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
set nodes(values: any[]);
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
set filter(term: string);
|
|
20
28
|
constructor(multiSelectTree: DataBoundComponent);
|
|
21
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTreeFlatBindingDirective, never>;
|
|
22
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectTreeFlatBindingDirective, "[kendoMultiSelectTreeFlatBinding]", never, { "data": "kendoMultiSelectTreeFlatBinding"; "idField": "valueField"; }, {}, never>;
|
|
@@ -13,6 +13,14 @@ export declare class MultiSelectTreeHierarchyBindingDirective extends HierarchyB
|
|
|
13
13
|
* The nodes which will be displayed by the MultiSelectTree.
|
|
14
14
|
*/
|
|
15
15
|
set data(nodes: any[]);
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
set nodes(values: any[]);
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
set filter(term: string);
|
|
16
24
|
constructor(multiSelectTree: DataBoundComponent);
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTreeHierarchyBindingDirective, never>;
|
|
18
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectTreeHierarchyBindingDirective, "[kendoMultiSelectTreeHierarchyBinding]", never, { "data": "kendoMultiSelectTreeHierarchyBinding"; }, {}, never>;
|
|
@@ -213,10 +213,10 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
213
213
|
* Sets the size of the component.
|
|
214
214
|
*
|
|
215
215
|
* The possible values are:
|
|
216
|
-
* * `
|
|
217
|
-
* * `
|
|
218
|
-
* * `
|
|
219
|
-
* * `
|
|
216
|
+
* * `small`
|
|
217
|
+
* * `medium` (default)
|
|
218
|
+
* * `large`
|
|
219
|
+
* * `none`
|
|
220
220
|
*
|
|
221
221
|
*/
|
|
222
222
|
set size(size: DropDownSize);
|
|
@@ -225,11 +225,11 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
225
225
|
* Sets the border radius of the component.
|
|
226
226
|
*
|
|
227
227
|
* The possible values are:
|
|
228
|
-
* * `
|
|
229
|
-
* * `
|
|
230
|
-
* * `
|
|
231
|
-
* * `
|
|
232
|
-
* * `
|
|
228
|
+
* * `small`
|
|
229
|
+
* * `medium` (default)
|
|
230
|
+
* * `large`
|
|
231
|
+
* * `full`
|
|
232
|
+
* * `none`
|
|
233
233
|
*
|
|
234
234
|
*/
|
|
235
235
|
set rounded(rounded: DropDownRounded);
|
|
@@ -238,10 +238,10 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
238
238
|
* Sets the fillMode of the component.
|
|
239
239
|
*
|
|
240
240
|
* The possible values are:
|
|
241
|
-
* * `
|
|
242
|
-
* * `
|
|
243
|
-
* * `
|
|
244
|
-
* * `
|
|
241
|
+
* * `flat`
|
|
242
|
+
* * `solid` (default)
|
|
243
|
+
* * `outline`
|
|
244
|
+
* * `none`
|
|
245
245
|
*
|
|
246
246
|
*/
|
|
247
247
|
set fillMode(fillMode: DropDownFillMode);
|
|
@@ -78,10 +78,10 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
78
78
|
* Sets the size of the component.
|
|
79
79
|
*
|
|
80
80
|
* The possible values are:
|
|
81
|
-
* * `
|
|
82
|
-
* * `
|
|
83
|
-
* * `
|
|
84
|
-
* * `
|
|
81
|
+
* * `small`
|
|
82
|
+
* * `medium` (default)
|
|
83
|
+
* * `large`
|
|
84
|
+
* * `none`
|
|
85
85
|
*
|
|
86
86
|
*/
|
|
87
87
|
set size(size: DropDownSize);
|
|
@@ -90,11 +90,11 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
90
90
|
* Sets the border radius of the component.
|
|
91
91
|
*
|
|
92
92
|
* The possible values are:
|
|
93
|
-
* * `
|
|
94
|
-
* * `
|
|
95
|
-
* * `
|
|
96
|
-
* * `
|
|
97
|
-
* * `
|
|
93
|
+
* * `small`
|
|
94
|
+
* * `medium` (default)
|
|
95
|
+
* * `large`
|
|
96
|
+
* * `full`
|
|
97
|
+
* * `none`
|
|
98
98
|
*
|
|
99
99
|
*/
|
|
100
100
|
set rounded(rounded: DropDownRounded);
|
|
@@ -103,10 +103,10 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
103
103
|
* Sets the fillMode of the component.
|
|
104
104
|
*
|
|
105
105
|
* The possible values are:
|
|
106
|
-
* * `
|
|
107
|
-
* * `
|
|
108
|
-
* * `
|
|
109
|
-
* * `
|
|
106
|
+
* * `flat`
|
|
107
|
+
* * `solid` (default)
|
|
108
|
+
* * `outline`
|
|
109
|
+
* * `none`
|
|
110
110
|
*
|
|
111
111
|
*/
|
|
112
112
|
set fillMode(fillMode: DropDownFillMode);
|
|
@@ -40,6 +40,9 @@ import * as i10 from "../common/localization/localized-messages.directive";
|
|
|
40
40
|
import * as i11 from "@angular/common";
|
|
41
41
|
import * as i12 from "../common/templates/template-context.directive";
|
|
42
42
|
const NO_VALUE = "";
|
|
43
|
+
const DEFAULT_SIZE = 'medium';
|
|
44
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
45
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
43
46
|
/**
|
|
44
47
|
* @hidden
|
|
45
48
|
*/
|
|
@@ -365,18 +368,19 @@ export class AutoCompleteComponent {
|
|
|
365
368
|
* Sets the size of the component.
|
|
366
369
|
*
|
|
367
370
|
* The possible values are:
|
|
368
|
-
* * `
|
|
369
|
-
* * `
|
|
370
|
-
* * `
|
|
371
|
-
* * `
|
|
371
|
+
* * `small`
|
|
372
|
+
* * `medium` (default)
|
|
373
|
+
* * `large`
|
|
374
|
+
* * `none`
|
|
372
375
|
*
|
|
373
376
|
*/
|
|
374
377
|
set size(size) {
|
|
378
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
375
379
|
this.renderer.removeClass(this.wrapper, getSizeClass('input', this.size));
|
|
376
|
-
if (size) {
|
|
377
|
-
this.renderer.addClass(this.wrapper, getSizeClass('input',
|
|
380
|
+
if (size !== 'none') {
|
|
381
|
+
this.renderer.addClass(this.wrapper, getSizeClass('input', newSize));
|
|
378
382
|
}
|
|
379
|
-
this._size =
|
|
383
|
+
this._size = newSize;
|
|
380
384
|
}
|
|
381
385
|
get size() {
|
|
382
386
|
return this._size;
|
|
@@ -385,19 +389,20 @@ export class AutoCompleteComponent {
|
|
|
385
389
|
* Sets the border radius of the component.
|
|
386
390
|
*
|
|
387
391
|
* The possible values are:
|
|
388
|
-
* * `
|
|
389
|
-
* * `
|
|
390
|
-
* * `
|
|
391
|
-
* * `
|
|
392
|
-
* * `
|
|
392
|
+
* * `small`
|
|
393
|
+
* * `medium` (default)
|
|
394
|
+
* * `large`
|
|
395
|
+
* * `full`
|
|
396
|
+
* * `none`
|
|
393
397
|
*
|
|
394
398
|
*/
|
|
395
399
|
set rounded(rounded) {
|
|
400
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
396
401
|
this.renderer.removeClass(this.wrapper, getRoundedClass(this.rounded));
|
|
397
|
-
if (rounded) {
|
|
398
|
-
this.renderer.addClass(this.wrapper, getRoundedClass(
|
|
402
|
+
if (rounded !== 'none') {
|
|
403
|
+
this.renderer.addClass(this.wrapper, getRoundedClass(newRounded));
|
|
399
404
|
}
|
|
400
|
-
this._rounded =
|
|
405
|
+
this._rounded = newRounded;
|
|
401
406
|
}
|
|
402
407
|
get rounded() {
|
|
403
408
|
return this._rounded;
|
|
@@ -406,18 +411,19 @@ export class AutoCompleteComponent {
|
|
|
406
411
|
* Sets the fillMode of the component.
|
|
407
412
|
*
|
|
408
413
|
* The possible values are:
|
|
409
|
-
* * `
|
|
410
|
-
* * `
|
|
411
|
-
* * `
|
|
412
|
-
* * `
|
|
414
|
+
* * `flat`
|
|
415
|
+
* * `solid` (default)
|
|
416
|
+
* * `outline`
|
|
417
|
+
* * `none`
|
|
413
418
|
*
|
|
414
419
|
*/
|
|
415
420
|
set fillMode(fillMode) {
|
|
421
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
416
422
|
this.renderer.removeClass(this.wrapper, getFillModeClass('input', this.fillMode));
|
|
417
|
-
if (fillMode) {
|
|
418
|
-
this.renderer.addClass(this.wrapper, getFillModeClass('input',
|
|
423
|
+
if (fillMode !== 'none') {
|
|
424
|
+
this.renderer.addClass(this.wrapper, getFillModeClass('input', newFillMode));
|
|
419
425
|
}
|
|
420
|
-
this._fillMode =
|
|
426
|
+
this._fillMode = newFillMode;
|
|
421
427
|
}
|
|
422
428
|
get fillMode() {
|
|
423
429
|
return this._fillMode;
|
|
@@ -871,13 +877,13 @@ export class AutoCompleteComponent {
|
|
|
871
877
|
}
|
|
872
878
|
}
|
|
873
879
|
setComponentClasses() {
|
|
874
|
-
if (this.size) {
|
|
880
|
+
if (this.size !== 'none') {
|
|
875
881
|
this.renderer.addClass(this.wrapper, getSizeClass('input', this.size));
|
|
876
882
|
}
|
|
877
|
-
if (this.rounded) {
|
|
883
|
+
if (this.rounded !== 'none') {
|
|
878
884
|
this.renderer.addClass(this.wrapper, getRoundedClass(this.rounded));
|
|
879
885
|
}
|
|
880
|
-
if (this.fillMode) {
|
|
886
|
+
if (this.fillMode !== 'none') {
|
|
881
887
|
this.renderer.addClass(this.wrapper, getFillModeClass('input', this.fillMode));
|
|
882
888
|
}
|
|
883
889
|
}
|
|
@@ -941,7 +947,7 @@ AutoCompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
941
947
|
>
|
|
942
948
|
<span class="k-icon k-i-x"></span>
|
|
943
949
|
</span>
|
|
944
|
-
<span *ngIf="loading" class="k-icon k-i-loading"></span>
|
|
950
|
+
<span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>
|
|
945
951
|
<ng-template #popupTemplate>
|
|
946
952
|
<!--header template-->
|
|
947
953
|
<ng-template *ngIf="headerTemplate"
|
|
@@ -1055,7 +1061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1055
1061
|
>
|
|
1056
1062
|
<span class="k-icon k-i-x"></span>
|
|
1057
1063
|
</span>
|
|
1058
|
-
<span *ngIf="loading" class="k-icon k-i-loading"></span>
|
|
1064
|
+
<span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>
|
|
1059
1065
|
<ng-template #popupTemplate>
|
|
1060
1066
|
<!--header template-->
|
|
1061
1067
|
<ng-template *ngIf="headerTemplate"
|
|
@@ -51,6 +51,9 @@ export const COMBOBOX_VALUE_ACCESSOR = {
|
|
|
51
51
|
provide: NG_VALUE_ACCESSOR,
|
|
52
52
|
useExisting: forwardRef(() => ComboBoxComponent)
|
|
53
53
|
};
|
|
54
|
+
const DEFAULT_SIZE = 'medium';
|
|
55
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
56
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
54
57
|
/**
|
|
55
58
|
* Represents the [Kendo UI ComboBox component for Angular]({% slug overview_combobox %}).
|
|
56
59
|
*
|
|
@@ -402,18 +405,19 @@ export class ComboBoxComponent {
|
|
|
402
405
|
* Sets the size of the component.
|
|
403
406
|
*
|
|
404
407
|
* The possible values are:
|
|
405
|
-
* * `
|
|
406
|
-
* * `
|
|
407
|
-
* * `
|
|
408
|
-
* * `
|
|
408
|
+
* * `small`
|
|
409
|
+
* * `medium` (default)
|
|
410
|
+
* * `large`
|
|
411
|
+
* * `none`
|
|
409
412
|
*
|
|
410
413
|
*/
|
|
411
414
|
set size(size) {
|
|
415
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
412
416
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
413
|
-
if (size) {
|
|
414
|
-
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input',
|
|
417
|
+
if (size !== 'none') {
|
|
418
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
415
419
|
}
|
|
416
|
-
this._size =
|
|
420
|
+
this._size = newSize;
|
|
417
421
|
}
|
|
418
422
|
get size() {
|
|
419
423
|
return this._size;
|
|
@@ -422,19 +426,20 @@ export class ComboBoxComponent {
|
|
|
422
426
|
* Sets the border radius of the component.
|
|
423
427
|
*
|
|
424
428
|
* The possible values are:
|
|
425
|
-
* * `
|
|
426
|
-
* * `
|
|
427
|
-
* * `
|
|
428
|
-
* * `
|
|
429
|
-
* * `
|
|
429
|
+
* * `small`
|
|
430
|
+
* * `medium` (default)
|
|
431
|
+
* * `large`
|
|
432
|
+
* * `full`
|
|
433
|
+
* * `none`
|
|
430
434
|
*
|
|
431
435
|
*/
|
|
432
436
|
set rounded(rounded) {
|
|
437
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
433
438
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
434
|
-
if (rounded) {
|
|
435
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(
|
|
439
|
+
if (rounded !== 'none') {
|
|
440
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
436
441
|
}
|
|
437
|
-
this._rounded =
|
|
442
|
+
this._rounded = newRounded;
|
|
438
443
|
}
|
|
439
444
|
get rounded() {
|
|
440
445
|
return this._rounded;
|
|
@@ -443,18 +448,19 @@ export class ComboBoxComponent {
|
|
|
443
448
|
* Sets the fillMode of the component.
|
|
444
449
|
*
|
|
445
450
|
* The possible values are:
|
|
446
|
-
* * `
|
|
447
|
-
* * `
|
|
448
|
-
* * `
|
|
449
|
-
* * `
|
|
451
|
+
* * `flat`
|
|
452
|
+
* * `solid` (default)
|
|
453
|
+
* * `outline`
|
|
454
|
+
* * `none`
|
|
450
455
|
*
|
|
451
456
|
*/
|
|
452
457
|
set fillMode(fillMode) {
|
|
458
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
453
459
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
454
|
-
if (fillMode) {
|
|
455
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input',
|
|
460
|
+
if (fillMode !== 'none') {
|
|
461
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
456
462
|
}
|
|
457
|
-
this._fillMode =
|
|
463
|
+
this._fillMode = newFillMode;
|
|
458
464
|
}
|
|
459
465
|
get fillMode() {
|
|
460
466
|
return this._fillMode;
|
|
@@ -781,7 +787,7 @@ export class ComboBoxComponent {
|
|
|
781
787
|
* @hidden
|
|
782
788
|
*/
|
|
783
789
|
get buttonClasses() {
|
|
784
|
-
return this.loading ? 'k-i-loading' : this.iconClass || 'k-i-arrow-s';
|
|
790
|
+
return this.loading ? 'k-i-loading k-input-loading-icon' : this.iconClass || 'k-i-arrow-s';
|
|
785
791
|
}
|
|
786
792
|
/**
|
|
787
793
|
* @hidden
|
|
@@ -1248,13 +1254,13 @@ export class ComboBoxComponent {
|
|
|
1248
1254
|
this.selectClickDisposeHandler = this.renderer.listen(selectElement, event, this.selectClick.bind(this));
|
|
1249
1255
|
}
|
|
1250
1256
|
setComponentClasses() {
|
|
1251
|
-
if (this.size) {
|
|
1257
|
+
if (this.size !== 'none') {
|
|
1252
1258
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
1253
1259
|
}
|
|
1254
|
-
if (this.rounded) {
|
|
1260
|
+
if (this.rounded !== 'none') {
|
|
1255
1261
|
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
1256
1262
|
}
|
|
1257
|
-
if (this.fillMode) {
|
|
1263
|
+
if (this.fillMode !== 'none') {
|
|
1258
1264
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
1259
1265
|
}
|
|
1260
1266
|
}
|
|
@@ -52,6 +52,9 @@ export const DROPDOWNLIST_VALUE_ACCESSOR = {
|
|
|
52
52
|
provide: NG_VALUE_ACCESSOR,
|
|
53
53
|
useExisting: forwardRef(() => DropDownListComponent)
|
|
54
54
|
};
|
|
55
|
+
const DEFAULT_SIZE = 'medium';
|
|
56
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
57
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
55
58
|
/**
|
|
56
59
|
* Represents the [Kendo UI DropDownList component for Angular]({% slug overview_ddl %}).
|
|
57
60
|
*
|
|
@@ -341,18 +344,19 @@ export class DropDownListComponent {
|
|
|
341
344
|
* Sets the size of the component.
|
|
342
345
|
*
|
|
343
346
|
* The possible values are:
|
|
344
|
-
* * `
|
|
345
|
-
* * `
|
|
346
|
-
* * `
|
|
347
|
-
* * `
|
|
347
|
+
* * `small`
|
|
348
|
+
* * `medium` (default)
|
|
349
|
+
* * `large`
|
|
350
|
+
* * `none`
|
|
348
351
|
*
|
|
349
352
|
*/
|
|
350
353
|
set size(size) {
|
|
354
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
351
355
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
|
|
352
|
-
if (size) {
|
|
353
|
-
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker',
|
|
356
|
+
if (size !== 'none') {
|
|
357
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', newSize));
|
|
354
358
|
}
|
|
355
|
-
this._size =
|
|
359
|
+
this._size = newSize;
|
|
356
360
|
}
|
|
357
361
|
get size() {
|
|
358
362
|
return this._size;
|
|
@@ -361,17 +365,18 @@ export class DropDownListComponent {
|
|
|
361
365
|
* Sets the border radius of the component.
|
|
362
366
|
*
|
|
363
367
|
* The possible values are:
|
|
364
|
-
* * `
|
|
365
|
-
* * `
|
|
366
|
-
* * `
|
|
367
|
-
* * `
|
|
368
|
-
* * `
|
|
368
|
+
* * `small`
|
|
369
|
+
* * `medium` (default)
|
|
370
|
+
* * `large`
|
|
371
|
+
* * `full`
|
|
372
|
+
* * `none`
|
|
369
373
|
*
|
|
370
374
|
*/
|
|
371
375
|
set rounded(rounded) {
|
|
376
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
372
377
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
373
|
-
if (rounded) {
|
|
374
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(
|
|
378
|
+
if (rounded !== 'none') {
|
|
379
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
375
380
|
}
|
|
376
381
|
this._rounded = rounded;
|
|
377
382
|
}
|
|
@@ -382,18 +387,19 @@ export class DropDownListComponent {
|
|
|
382
387
|
* Sets the fillMode of the component.
|
|
383
388
|
*
|
|
384
389
|
* The possible values are:
|
|
385
|
-
* * `
|
|
386
|
-
* * `
|
|
387
|
-
* * `
|
|
388
|
-
* * `
|
|
390
|
+
* * `flat`
|
|
391
|
+
* * `solid` (default)
|
|
392
|
+
* * `outline`
|
|
393
|
+
* * `none`
|
|
389
394
|
*
|
|
390
395
|
*/
|
|
391
396
|
set fillMode(fillMode) {
|
|
397
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
392
398
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
|
|
393
|
-
if (fillMode) {
|
|
394
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker',
|
|
399
|
+
if (fillMode !== 'none') {
|
|
400
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', newFillMode));
|
|
395
401
|
}
|
|
396
|
-
this._fillMode =
|
|
402
|
+
this._fillMode = newFillMode;
|
|
397
403
|
}
|
|
398
404
|
get fillMode() {
|
|
399
405
|
return this._fillMode;
|
|
@@ -721,7 +727,7 @@ export class DropDownListComponent {
|
|
|
721
727
|
* @hidden
|
|
722
728
|
*/
|
|
723
729
|
get buttonClasses() {
|
|
724
|
-
return this.loading ? 'k-i-loading' : this.iconClass || 'k-i-arrow-s';
|
|
730
|
+
return this.loading ? 'k-i-loading k-input-loading-icon' : this.iconClass || 'k-i-arrow-s';
|
|
725
731
|
}
|
|
726
732
|
/**
|
|
727
733
|
* @hidden
|
|
@@ -1199,13 +1205,13 @@ export class DropDownListComponent {
|
|
|
1199
1205
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-describedby', newValue);
|
|
1200
1206
|
}
|
|
1201
1207
|
setComponentClasses() {
|
|
1202
|
-
if (this.size) {
|
|
1208
|
+
if (this.size !== 'none') {
|
|
1203
1209
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
|
|
1204
1210
|
}
|
|
1205
|
-
if (this.rounded) {
|
|
1211
|
+
if (this.rounded !== 'none') {
|
|
1206
1212
|
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
1207
1213
|
}
|
|
1208
|
-
if (this.fillMode) {
|
|
1214
|
+
if (this.fillMode !== 'none') {
|
|
1209
1215
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
|
|
1210
1216
|
}
|
|
1211
1217
|
}
|