@progress/kendo-angular-dropdowns 24.2.2 → 25.0.0-develop.12
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/fesm2022/progress-kendo-angular-dropdowns.mjs +789 -478
- package/index.d.ts +5821 -65
- package/package-metadata.mjs +2 -2
- package/package.json +15 -15
- package/schematics/ngAdd/index.js +2 -2
- package/autocomplete/autocomplete.component.d.ts +0 -524
- package/autocomplete/autocomplete.module.d.ts +0 -45
- package/comboboxes/combobox-column/column-cell-template.directive.d.ts +0 -33
- package/comboboxes/combobox-column/column-header-template.directive.d.ts +0 -31
- package/comboboxes/combobox-column/combobox-column.component.d.ts +0 -91
- package/comboboxes/combobox-column/util.d.ts +0 -15
- package/comboboxes/combobox.component.d.ts +0 -632
- package/comboboxes/combobox.module.d.ts +0 -52
- package/comboboxes/multicolumncombobox.component.d.ts +0 -116
- package/common/adaptive-renderer.component.d.ts +0 -44
- package/common/constants/error-messages.d.ts +0 -61
- package/common/data.service.d.ts +0 -90
- package/common/disabled-items/disabled-items.service.d.ts +0 -20
- package/common/disabled-items/item-disabled.d.ts +0 -21
- package/common/filter-input.directive.d.ts +0 -19
- package/common/filtering/filter-settings.d.ts +0 -55
- package/common/filtering/filter.directive.d.ts +0 -65
- package/common/filtering/filterable-component.d.ts +0 -35
- package/common/list-item.directive.d.ts +0 -15
- package/common/list.component.d.ts +0 -145
- package/common/localization/custom-messages.component.d.ts +0 -70
- package/common/localization/localized-messages.directive.d.ts +0 -16
- package/common/localization/messages.d.ts +0 -55
- package/common/models/checkboxes-settings.d.ts +0 -27
- package/common/models/direction.d.ts +0 -8
- package/common/models/fillmode.d.ts +0 -8
- package/common/models/list-type.d.ts +0 -8
- package/common/models/page-change-event.d.ts +0 -18
- package/common/models/popup-settings.d.ts +0 -46
- package/common/models/preventable-event.d.ts +0 -21
- package/common/models/remove-tag-event.d.ts +0 -20
- package/common/models/rounded.d.ts +0 -8
- package/common/models/size.d.ts +0 -8
- package/common/models/virtualization-settings.d.ts +0 -49
- package/common/navigation/navigation-action.d.ts +0 -30
- package/common/navigation/navigation.service.d.ts +0 -55
- package/common/searchbar.component.d.ts +0 -95
- package/common/selection/selectable.directive.d.ts +0 -24
- package/common/selection/selection.service.d.ts +0 -54
- package/common/shared-events.directive.d.ts +0 -27
- package/common/taglist.component.d.ts +0 -57
- package/common/templates/custom-item-template.directive.d.ts +0 -39
- package/common/templates/fixed-group-template.directive.d.ts +0 -46
- package/common/templates/footer-template.directive.d.ts +0 -40
- package/common/templates/group-tag-template.directive.d.ts +0 -38
- package/common/templates/group-template.directive.d.ts +0 -46
- package/common/templates/header-template.directive.d.ts +0 -40
- package/common/templates/item-template.directive.d.ts +0 -39
- package/common/templates/no-data-template.directive.d.ts +0 -40
- package/common/templates/tag-template.directive.d.ts +0 -37
- package/common/templates/value-template.directive.d.ts +0 -41
- package/common/util.d.ts +0 -204
- package/directives.d.ts +0 -67
- package/dropdownlist/dropdownlist.component.d.ts +0 -564
- package/dropdownlist/dropdownlist.module.d.ts +0 -54
- package/dropdowns.module.d.ts +0 -60
- package/dropdowntrees/checked-state/base-check.directive.d.ts +0 -46
- package/dropdowntrees/checked-state/check-all.directive.d.ts +0 -53
- package/dropdowntrees/checked-state/check.directive.d.ts +0 -53
- package/dropdowntrees/checked-state/checkable-settings.d.ts +0 -19
- package/dropdowntrees/checked-state/checked-item.d.ts +0 -28
- package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +0 -38
- package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +0 -34
- package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +0 -38
- package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +0 -34
- package/dropdowntrees/dropdowntree.component.d.ts +0 -622
- package/dropdowntrees/dropdowntrees.module.d.ts +0 -45
- package/dropdowntrees/expanded-state/expand.directive.d.ts +0 -33
- package/dropdowntrees/lookup/lookup.d.ts +0 -51
- package/dropdowntrees/lookup/lookup.service.d.ts +0 -32
- package/dropdowntrees/multiselecttree.component.d.ts +0 -709
- package/dropdowntrees/summary-tag/summary-tag.directive.d.ts +0 -39
- package/dropdowntrees/templates/node-template.directive.d.ts +0 -22
- package/multiselect/multiselect.component.d.ts +0 -647
- package/multiselect/multiselect.module.d.ts +0 -54
- package/multiselect/summary-tag.directive.d.ts +0 -36
- package/package-metadata.d.ts +0 -9
|
@@ -1,647 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AdaptiveMode } from '../common/util';
|
|
6
|
-
import { SearchBarComponent } from '../common/searchbar.component';
|
|
7
|
-
import { Renderer2, ViewContainerRef, ElementRef, TemplateRef, OnDestroy, OnChanges, DoCheck, EventEmitter, AfterContentChecked, AfterViewInit, ChangeDetectorRef, KeyValueDiffers, NgZone, OnInit, Injector } from '@angular/core';
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
import { SuffixTemplateDirective, PrefixTemplateDirective } from '@progress/kendo-angular-common';
|
|
10
|
-
import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
|
|
11
|
-
import { FormControl } from '@angular/forms';
|
|
12
|
-
import { SelectionService, SelectionEvent } from '../common/selection/selection.service';
|
|
13
|
-
import { PopupSettings } from '../common/models/popup-settings';
|
|
14
|
-
import { NavigationService } from '../common/navigation/navigation.service';
|
|
15
|
-
import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
|
|
16
|
-
import { ItemDisabledFn } from '../common/disabled-items/item-disabled';
|
|
17
|
-
import { ItemTemplateDirective } from '../common/templates/item-template.directive';
|
|
18
|
-
import { CustomItemTemplateDirective } from '../common/templates/custom-item-template.directive';
|
|
19
|
-
import { GroupTemplateDirective } from '../common/templates/group-template.directive';
|
|
20
|
-
import { FixedGroupTemplateDirective } from '../common/templates/fixed-group-template.directive';
|
|
21
|
-
import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
|
|
22
|
-
import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
|
|
23
|
-
import { TagTemplateDirective } from '../common/templates/tag-template.directive';
|
|
24
|
-
import { GroupTagTemplateDirective } from '../common/templates/group-tag-template.directive';
|
|
25
|
-
import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
|
|
26
|
-
import { PreventableEvent } from '../common/models/preventable-event';
|
|
27
|
-
import { RemoveTagEvent } from '../common/models/remove-tag-event';
|
|
28
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
29
|
-
import { PopupService, PopupRef } from '@progress/kendo-angular-popup';
|
|
30
|
-
import { FilterableComponent } from '../common/filtering/filterable-component';
|
|
31
|
-
import { DataService } from '../common/data.service';
|
|
32
|
-
import { ListComponent } from '../common/list.component';
|
|
33
|
-
import { MultiSelectCheckableSettings } from '../common/models/checkboxes-settings';
|
|
34
|
-
import { VirtualizationSettings } from '../common/models/virtualization-settings';
|
|
35
|
-
import { PageChangeEvent } from '../common/models/page-change-event';
|
|
36
|
-
import { DropDownSize } from '../common/models/size';
|
|
37
|
-
import { DropDownRounded } from '../common/models/rounded';
|
|
38
|
-
import { DropDownFillMode } from '../common/models/fillmode';
|
|
39
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
40
|
-
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
41
|
-
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
42
|
-
import { AdaptiveRendererComponent } from '../common/adaptive-renderer.component';
|
|
43
|
-
import { TagListComponent } from '../common/taglist.component';
|
|
44
|
-
import * as i0 from "@angular/core";
|
|
45
|
-
/**
|
|
46
|
-
* Represents the [Kendo UI MultiSelect component for Angular](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect).
|
|
47
|
-
*
|
|
48
|
-
* Use the `MultiSelectComponent` to show a dropdown list where users can select multiple items.
|
|
49
|
-
* [See example](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect).
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```typescript
|
|
53
|
-
* @Component({
|
|
54
|
-
* selector: 'my-app',
|
|
55
|
-
* template: `
|
|
56
|
-
* <kendo-multiselect
|
|
57
|
-
* [data]="listItems"
|
|
58
|
-
* textField="name"
|
|
59
|
-
* valueField="id"
|
|
60
|
-
* placeholder="Select items...">
|
|
61
|
-
* </kendo-multiselect>
|
|
62
|
-
* `
|
|
63
|
-
* })
|
|
64
|
-
* export class AppComponent {
|
|
65
|
-
* public listItems = [
|
|
66
|
-
* { id: 1, name: "Item 1" },
|
|
67
|
-
* { id: 2, name: "Item 2" },
|
|
68
|
-
* { id: 3, name: "Item 3" }
|
|
69
|
-
* ];
|
|
70
|
-
* }
|
|
71
|
-
* ```
|
|
72
|
-
* @remarks
|
|
73
|
-
* Supported children components are: {@link CustomMessagesComponent}.
|
|
74
|
-
*/
|
|
75
|
-
export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnInit, DoCheck, AfterContentChecked, AfterViewInit, FilterableComponent {
|
|
76
|
-
wrapper: ElementRef;
|
|
77
|
-
private localization;
|
|
78
|
-
private popupService;
|
|
79
|
-
private dataService;
|
|
80
|
-
private selectionService;
|
|
81
|
-
private navigationService;
|
|
82
|
-
private disabledItemsService;
|
|
83
|
-
private cdr;
|
|
84
|
-
private differs;
|
|
85
|
-
private renderer;
|
|
86
|
-
private _zone;
|
|
87
|
-
private injector;
|
|
88
|
-
private adaptiveService;
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
animationDuration: number;
|
|
93
|
-
/**
|
|
94
|
-
* @hidden
|
|
95
|
-
*/
|
|
96
|
-
xIcon: SVGIcon;
|
|
97
|
-
listBoxId: string;
|
|
98
|
-
tagListId: string;
|
|
99
|
-
tagPrefix: string;
|
|
100
|
-
optionPrefix: string;
|
|
101
|
-
popupRef: PopupRef;
|
|
102
|
-
text: string;
|
|
103
|
-
tags: any[];
|
|
104
|
-
focusedTagIndex: number;
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
adaptiveRendererComponent: AdaptiveRendererComponent;
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
get actionSheet(): ActionSheetComponent;
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
get actionSheetSearchBar(): TextBoxComponent;
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
get ariaControls(): string;
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
get isControlRequired(): boolean;
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
get formControl(): FormControl;
|
|
129
|
-
/**
|
|
130
|
-
* Focuses a specific item in the MultiSelect based on the provided index.
|
|
131
|
-
* Sets the index to `-1` to focus the custom item if available.
|
|
132
|
-
* Pass `null` or an invalid index to remove focus.
|
|
133
|
-
*/
|
|
134
|
-
focusItemAt(index: number): void;
|
|
135
|
-
/**
|
|
136
|
-
* Focuses the MultiSelect input element.
|
|
137
|
-
*/
|
|
138
|
-
focus(): void;
|
|
139
|
-
/**
|
|
140
|
-
* @hidden
|
|
141
|
-
*/
|
|
142
|
-
handleInputFocus(): void;
|
|
143
|
-
/**
|
|
144
|
-
* Removes focus from the MultiSelect input element.
|
|
145
|
-
*/
|
|
146
|
-
blur(): void;
|
|
147
|
-
/**
|
|
148
|
-
* @hidden
|
|
149
|
-
*/
|
|
150
|
-
handleFocus(): void;
|
|
151
|
-
/**
|
|
152
|
-
* @hidden
|
|
153
|
-
*/
|
|
154
|
-
handleBlur(): void;
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
handleInputBlur(): void;
|
|
159
|
-
/**
|
|
160
|
-
* @hidden
|
|
161
|
-
*/
|
|
162
|
-
onMouseDown(event: any): void;
|
|
163
|
-
/**
|
|
164
|
-
* @hidden
|
|
165
|
-
*/
|
|
166
|
-
onResize(): void;
|
|
167
|
-
get appendTo(): ViewContainerRef;
|
|
168
|
-
/**
|
|
169
|
-
* Shows or hides the current group sticky header when using grouped data.
|
|
170
|
-
* By default the sticky header is displayed ([see example](https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/grouping#sticky-header)).
|
|
171
|
-
*/
|
|
172
|
-
showStickyHeader: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* @hidden
|
|
175
|
-
*/
|
|
176
|
-
focusableId: string;
|
|
177
|
-
/**
|
|
178
|
-
* Controls whether the options list closes after item selection finishes ([see example](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/open-state#keeping-the-options-list-open-while-on-focus)).
|
|
179
|
-
* Set to `false` to keep the list open while the component has focus.
|
|
180
|
-
*
|
|
181
|
-
* @default true
|
|
182
|
-
*/
|
|
183
|
-
autoClose: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Controls the loading state of the MultiSelect.
|
|
186
|
-
* Set to `true` to display the loading indicator.
|
|
187
|
-
*/
|
|
188
|
-
loading: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Sets the data source for the MultiSelect.
|
|
191
|
-
* Provide the data as an array of items.
|
|
192
|
-
*/
|
|
193
|
-
set data(data: any[]);
|
|
194
|
-
get data(): any[];
|
|
195
|
-
/**
|
|
196
|
-
* Sets the selected values of the MultiSelect.
|
|
197
|
-
* Accepts primitive values (strings, numbers) or complex objects.
|
|
198
|
-
* Use the `valuePrimitive` property to define the value type.
|
|
199
|
-
* > The component ignores selected values that don't exist in the data source.
|
|
200
|
-
*/
|
|
201
|
-
set value(values: any[]);
|
|
202
|
-
get value(): any[];
|
|
203
|
-
/**
|
|
204
|
-
* Sets the field name that contains the item value in the data objects.
|
|
205
|
-
* Skip this property when your data contains only primitive values.
|
|
206
|
-
* Supports nested property paths like `category.id`.
|
|
207
|
-
*/
|
|
208
|
-
valueField: string;
|
|
209
|
-
/**
|
|
210
|
-
* Sets the field name that contains the item text in the data objects.
|
|
211
|
-
* Skip this property when your data contains only primitive values.
|
|
212
|
-
* Supports nested property paths like `category.name`.
|
|
213
|
-
*/
|
|
214
|
-
textField: string;
|
|
215
|
-
/**
|
|
216
|
-
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) attribute of the component.
|
|
217
|
-
*
|
|
218
|
-
* @default 0
|
|
219
|
-
*/
|
|
220
|
-
tabindex: number;
|
|
221
|
-
/**
|
|
222
|
-
* @hidden
|
|
223
|
-
*/
|
|
224
|
-
set tabIndex(tabIndex: number);
|
|
225
|
-
get tabIndex(): number;
|
|
226
|
-
/**
|
|
227
|
-
* Sets the size of the component. The default value is set by the Kendo theme.
|
|
228
|
-
*/
|
|
229
|
-
set size(size: DropDownSize);
|
|
230
|
-
get size(): DropDownSize;
|
|
231
|
-
/**
|
|
232
|
-
* Sets the border radius of the component. The default value is set by the Kendo theme.
|
|
233
|
-
*/
|
|
234
|
-
set rounded(rounded: DropDownRounded);
|
|
235
|
-
get rounded(): DropDownRounded;
|
|
236
|
-
/**
|
|
237
|
-
* Sets the fill mode of the component. The default value is set by the Kendo theme.
|
|
238
|
-
*/
|
|
239
|
-
set fillMode(fillMode: DropDownFillMode);
|
|
240
|
-
get fillMode(): DropDownFillMode;
|
|
241
|
-
/**
|
|
242
|
-
* Sets the placeholder text for the MultiSelect input.
|
|
243
|
-
* When the values are selected, it disappears.
|
|
244
|
-
*/
|
|
245
|
-
set placeholder(text: string);
|
|
246
|
-
get placeholder(): string;
|
|
247
|
-
/**
|
|
248
|
-
* Controls the adaptive mode behavior of the component.
|
|
249
|
-
* Set to `auto` to enable adaptive rendering on small screens.
|
|
250
|
-
*
|
|
251
|
-
* @default "none"
|
|
252
|
-
*/
|
|
253
|
-
adaptiveMode: AdaptiveMode;
|
|
254
|
-
/**
|
|
255
|
-
* Sets the title text for the ActionSheet in adaptive mode.
|
|
256
|
-
* Uses the component's label text by default.
|
|
257
|
-
*/
|
|
258
|
-
adaptiveTitle: string;
|
|
259
|
-
/**
|
|
260
|
-
* Sets the subtitle text for the ActionSheet in adaptive mode.
|
|
261
|
-
* No subtitle appears by default.
|
|
262
|
-
*/
|
|
263
|
-
adaptiveSubtitle: string;
|
|
264
|
-
/**
|
|
265
|
-
* @hidden
|
|
266
|
-
*/
|
|
267
|
-
get isAdaptiveModeEnabled(): boolean;
|
|
268
|
-
/**
|
|
269
|
-
* Controls the disabled state of the component.
|
|
270
|
-
* When true, sets the component to disabled.
|
|
271
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/forms#managing-the-multiselect-disabled-state-in-reactive-forms).
|
|
272
|
-
*
|
|
273
|
-
* @default false
|
|
274
|
-
*/
|
|
275
|
-
disabled: boolean;
|
|
276
|
-
/**
|
|
277
|
-
* Determines wether the item will be disabled. The function is executed for each data item.
|
|
278
|
-
* The function receives the item as an argument and should return `true` if the item is disabled.
|
|
279
|
-
*/
|
|
280
|
-
set itemDisabled(fn: ItemDisabledFn);
|
|
281
|
-
/**
|
|
282
|
-
* Controls whether checkboxes appear before each item in the popup list.
|
|
283
|
-
* Pass `true` to enable checkboxes or an object to configure checkbox settings.
|
|
284
|
-
*
|
|
285
|
-
* @default false
|
|
286
|
-
*/
|
|
287
|
-
set checkboxes(settings: MultiSelectCheckableSettings | boolean);
|
|
288
|
-
get checkboxes(): MultiSelectCheckableSettings;
|
|
289
|
-
/**
|
|
290
|
-
* Controls the read-only state of the component.
|
|
291
|
-
* When true, the component does not allow user input or selection changes.
|
|
292
|
-
*
|
|
293
|
-
* @default false
|
|
294
|
-
*/
|
|
295
|
-
readonly: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Enables the filtering functionality of the MultiSelect.
|
|
298
|
-
* Set to `true` to allow users to filter the data by typing.
|
|
299
|
-
*
|
|
300
|
-
* @default false
|
|
301
|
-
*/
|
|
302
|
-
filterable: boolean;
|
|
303
|
-
/**
|
|
304
|
-
* Enables virtualization to improve performance with large datasets.
|
|
305
|
-
* Pass `true` for default settings or an object to configure virtualization.
|
|
306
|
-
*/
|
|
307
|
-
set virtual(settings: boolean | VirtualizationSettings);
|
|
308
|
-
get virtual(): VirtualizationSettings;
|
|
309
|
-
/**
|
|
310
|
-
* Configures the popup appearance and behavior.
|
|
311
|
-
* Set properties like `animate`, `width`, `height`, `popupClass`, and `appendTo`.
|
|
312
|
-
*/
|
|
313
|
-
set popupSettings(settings: PopupSettings);
|
|
314
|
-
get popupSettings(): PopupSettings;
|
|
315
|
-
/**
|
|
316
|
-
* Sets the height of the options list in the popup.
|
|
317
|
-
* This affects only the list height, not the entire popup container.
|
|
318
|
-
*
|
|
319
|
-
* @default 200
|
|
320
|
-
*/
|
|
321
|
-
set listHeight(_listHeight: number);
|
|
322
|
-
get listHeight(): number;
|
|
323
|
-
private _listHeight;
|
|
324
|
-
/**
|
|
325
|
-
* Controls the type of selected values.
|
|
326
|
-
* Set to `true` for primitive values or `false` for object references.
|
|
327
|
-
* When undefined, the component determines the type based on `valueField`.
|
|
328
|
-
*/
|
|
329
|
-
set valuePrimitive(isPrimitive: boolean);
|
|
330
|
-
get valuePrimitive(): boolean;
|
|
331
|
-
/**
|
|
332
|
-
* Controls whether a clear button appears when items are selected.
|
|
333
|
-
* Set to `true` to show the button that clears all selections.
|
|
334
|
-
*
|
|
335
|
-
* @default true
|
|
336
|
-
*/
|
|
337
|
-
clearButton: boolean;
|
|
338
|
-
/**
|
|
339
|
-
* Sets a function that transforms selected data items into display tags.
|
|
340
|
-
* Use this to customize how selected items appear as tags.
|
|
341
|
-
*
|
|
342
|
-
* @default (tags) => tags || []
|
|
343
|
-
*/
|
|
344
|
-
tagMapper: (tags: any) => any;
|
|
345
|
-
/**
|
|
346
|
-
* Allows users to add custom values not present in the data source.
|
|
347
|
-
* Set to `true` to enable custom value input.
|
|
348
|
-
* This feature is not available in adaptive mode.
|
|
349
|
-
*
|
|
350
|
-
* @default false
|
|
351
|
-
*/
|
|
352
|
-
allowCustom: boolean;
|
|
353
|
-
/**
|
|
354
|
-
* Sets a function that normalizes custom user input into data items.
|
|
355
|
-
* Use this when your data items differ from simple strings.
|
|
356
|
-
*/
|
|
357
|
-
valueNormalizer: (text: Observable<string>) => Observable<any>;
|
|
358
|
-
/**
|
|
359
|
-
* Sets HTML attributes for the inner input element.
|
|
360
|
-
* You cannot change attributes essential for component functionality.
|
|
361
|
-
*
|
|
362
|
-
* @remarks
|
|
363
|
-
* This property is related to accessibility.
|
|
364
|
-
*/
|
|
365
|
-
inputAttributes: {
|
|
366
|
-
[key: string]: string;
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* Fires when the user types in the input field.
|
|
370
|
-
* Use this event to filter the data source based on user input.
|
|
371
|
-
*/
|
|
372
|
-
filterChange: EventEmitter<string>;
|
|
373
|
-
/**
|
|
374
|
-
* Fires when the value changes through user interaction or the Clear button.
|
|
375
|
-
* This event does not fire when you change the value programmatically.
|
|
376
|
-
*/
|
|
377
|
-
valueChange: EventEmitter<any[]>;
|
|
378
|
-
/**
|
|
379
|
-
* Fires before the popup opens.
|
|
380
|
-
* You can prevent the popup from opening by calling `preventDefault()` on the event.
|
|
381
|
-
*/
|
|
382
|
-
open: EventEmitter<PreventableEvent>;
|
|
383
|
-
/**
|
|
384
|
-
* Fires after the popup opens completely.
|
|
385
|
-
*/
|
|
386
|
-
opened: EventEmitter<any>;
|
|
387
|
-
/**
|
|
388
|
-
* Fires before the popup closes.
|
|
389
|
-
* You can prevent the popup from closing by calling `preventDefault()` on the event.
|
|
390
|
-
*/
|
|
391
|
-
close: EventEmitter<PreventableEvent>;
|
|
392
|
-
/**
|
|
393
|
-
* Fires after the popup closes completely.
|
|
394
|
-
*/
|
|
395
|
-
closed: EventEmitter<any>;
|
|
396
|
-
/**
|
|
397
|
-
* Fires when the user focuses the MultiSelect component.
|
|
398
|
-
*/
|
|
399
|
-
onFocus: EventEmitter<any>;
|
|
400
|
-
/**
|
|
401
|
-
* Fires when the MultiSelect component loses focus.
|
|
402
|
-
*/
|
|
403
|
-
onBlur: EventEmitter<any>;
|
|
404
|
-
/**
|
|
405
|
-
* Fires when the user focuses the input element inside the MultiSelect.
|
|
406
|
-
*/
|
|
407
|
-
inputFocus: EventEmitter<any>;
|
|
408
|
-
/**
|
|
409
|
-
* Fires when the input element inside the MultiSelect loses focus.
|
|
410
|
-
*/
|
|
411
|
-
inputBlur: EventEmitter<any>;
|
|
412
|
-
/**
|
|
413
|
-
* Fires before a tag gets removed from the selection.
|
|
414
|
-
* You can prevent tag removal by calling `preventDefault()` on the event.
|
|
415
|
-
*/
|
|
416
|
-
removeTag: EventEmitter<RemoveTagEvent>;
|
|
417
|
-
container: ViewContainerRef;
|
|
418
|
-
searchbar: SearchBarComponent;
|
|
419
|
-
tagList: TagListComponent;
|
|
420
|
-
popupTemplate: TemplateRef<any>;
|
|
421
|
-
optionsList: ListComponent;
|
|
422
|
-
template: ItemTemplateDirective;
|
|
423
|
-
customItemTemplate: CustomItemTemplateDirective;
|
|
424
|
-
groupTemplate: GroupTemplateDirective;
|
|
425
|
-
fixedGroupTemplate: FixedGroupTemplateDirective;
|
|
426
|
-
headerTemplate: HeaderTemplateDirective;
|
|
427
|
-
footerTemplate: FooterTemplateDirective;
|
|
428
|
-
tagTemplate: TagTemplateDirective;
|
|
429
|
-
groupTagTemplate: GroupTagTemplateDirective;
|
|
430
|
-
noDataTemplate: NoDataTemplateDirective;
|
|
431
|
-
/**
|
|
432
|
-
* @hidden
|
|
433
|
-
*/
|
|
434
|
-
suffixTemplate: SuffixTemplateDirective;
|
|
435
|
-
/**
|
|
436
|
-
* @hidden
|
|
437
|
-
*/
|
|
438
|
-
prefixTemplate: PrefixTemplateDirective;
|
|
439
|
-
get dir(): string;
|
|
440
|
-
get disabledClass(): boolean;
|
|
441
|
-
get isLoading(): boolean;
|
|
442
|
-
/**
|
|
443
|
-
* @hidden
|
|
444
|
-
*/
|
|
445
|
-
windowSize: AdaptiveSize;
|
|
446
|
-
/**
|
|
447
|
-
* @hidden
|
|
448
|
-
*/
|
|
449
|
-
get isActionSheetExpanded(): boolean;
|
|
450
|
-
/**
|
|
451
|
-
* @hidden
|
|
452
|
-
*/
|
|
453
|
-
get isAdaptive(): boolean;
|
|
454
|
-
/**
|
|
455
|
-
* @hidden
|
|
456
|
-
*/
|
|
457
|
-
applyValue(): void;
|
|
458
|
-
disabledIndices: Set<number>;
|
|
459
|
-
private initialized;
|
|
460
|
-
private _size;
|
|
461
|
-
private _rounded;
|
|
462
|
-
private _fillMode;
|
|
463
|
-
private _valueHolder;
|
|
464
|
-
private isCustomValueSelected;
|
|
465
|
-
constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, dataService: DataService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, cdr: ChangeDetectorRef, differs: KeyValueDiffers, renderer: Renderer2, _zone: NgZone, injector: Injector, adaptiveService: AdaptiveService);
|
|
466
|
-
get listContainerClasses(): any[];
|
|
467
|
-
/**
|
|
468
|
-
* @hidden
|
|
469
|
-
*/
|
|
470
|
-
get customItemSizeClass(): any;
|
|
471
|
-
get width(): any;
|
|
472
|
-
get height(): any;
|
|
473
|
-
get activeDescendant(): string;
|
|
474
|
-
get clearButtonVisibility(): string;
|
|
475
|
-
/**
|
|
476
|
-
* @hidden
|
|
477
|
-
*/
|
|
478
|
-
verifySettings(): void;
|
|
479
|
-
/**
|
|
480
|
-
* @hidden
|
|
481
|
-
*/
|
|
482
|
-
change(event: SelectionEvent): void;
|
|
483
|
-
/**
|
|
484
|
-
* @hidden
|
|
485
|
-
*/
|
|
486
|
-
setState(value: any[]): void;
|
|
487
|
-
/**
|
|
488
|
-
* @hidden
|
|
489
|
-
*/
|
|
490
|
-
handleFilter(text: string): void;
|
|
491
|
-
/**
|
|
492
|
-
* @hidden
|
|
493
|
-
*/
|
|
494
|
-
pageChange(event: PageChangeEvent): void;
|
|
495
|
-
/**
|
|
496
|
-
* @hidden
|
|
497
|
-
*/
|
|
498
|
-
clearFilter(): void;
|
|
499
|
-
/**
|
|
500
|
-
* @hidden
|
|
501
|
-
*/
|
|
502
|
-
handleNavigate(event: any): void;
|
|
503
|
-
/**
|
|
504
|
-
* @hidden
|
|
505
|
-
*/
|
|
506
|
-
handleRemoveTag({ tag }: {
|
|
507
|
-
tag: any;
|
|
508
|
-
index?: number;
|
|
509
|
-
}): void;
|
|
510
|
-
/**
|
|
511
|
-
* @hidden
|
|
512
|
-
*/
|
|
513
|
-
clearAll(event?: any): void;
|
|
514
|
-
/**
|
|
515
|
-
* @hidden
|
|
516
|
-
*/
|
|
517
|
-
protected addCustomValue(text: string): void;
|
|
518
|
-
ngAfterContentChecked(): void;
|
|
519
|
-
ngDoCheck(): void;
|
|
520
|
-
ngOnInit(): void;
|
|
521
|
-
ngOnChanges(changes: any): void;
|
|
522
|
-
ngAfterViewInit(): void;
|
|
523
|
-
ngOnDestroy(): void;
|
|
524
|
-
/**
|
|
525
|
-
* Toggles the visibility of the popup or actionSheet
|
|
526
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/open-state#setting-the-initially-opened-component)).
|
|
527
|
-
* If you use the `toggle` method to open or close the popup or actionSheet, the respective `open` and `close` events will not be fired.
|
|
528
|
-
*
|
|
529
|
-
* @param open - The state of the popup.
|
|
530
|
-
*/
|
|
531
|
-
toggle(open?: boolean): void;
|
|
532
|
-
/**
|
|
533
|
-
* Returns the current open state. Returns `true` if the popup or actionSheet is open.
|
|
534
|
-
*/
|
|
535
|
-
get isOpen(): boolean;
|
|
536
|
-
/**
|
|
537
|
-
* Resets the MultiSelect by clearing the text and value.
|
|
538
|
-
* This method does not trigger the `selectionChange` and `valueChange` events.
|
|
539
|
-
*/
|
|
540
|
-
reset(): void;
|
|
541
|
-
/**
|
|
542
|
-
* @hidden
|
|
543
|
-
*/
|
|
544
|
-
messageFor(key: string): string;
|
|
545
|
-
/**
|
|
546
|
-
* @hidden
|
|
547
|
-
*/
|
|
548
|
-
writeValue(value: any): void;
|
|
549
|
-
/**
|
|
550
|
-
* @hidden
|
|
551
|
-
*/
|
|
552
|
-
registerOnChange(fn: any): void;
|
|
553
|
-
/**
|
|
554
|
-
* @hidden
|
|
555
|
-
*/
|
|
556
|
-
registerOnTouched(fn: any): void;
|
|
557
|
-
/**
|
|
558
|
-
* @hidden
|
|
559
|
-
*/
|
|
560
|
-
setDisabledState(isDisabled: boolean): void;
|
|
561
|
-
/**
|
|
562
|
-
* @hidden
|
|
563
|
-
*/
|
|
564
|
-
onTagMapperChange(): void;
|
|
565
|
-
/**
|
|
566
|
-
* @hidden
|
|
567
|
-
*/
|
|
568
|
-
handleClick(): void;
|
|
569
|
-
protected onChangeCallback: Function;
|
|
570
|
-
protected onTouchedCallback: Function;
|
|
571
|
-
private _placeholder;
|
|
572
|
-
private _open;
|
|
573
|
-
private _value;
|
|
574
|
-
private _popupSettings;
|
|
575
|
-
private _virtualSettings;
|
|
576
|
-
private _valuePrimitive;
|
|
577
|
-
private _checkboxes;
|
|
578
|
-
private _isFocused;
|
|
579
|
-
set isFocused(isFocused: boolean);
|
|
580
|
-
get isFocused(): boolean;
|
|
581
|
-
private selectedDataItems;
|
|
582
|
-
private popupMouseDownHandler;
|
|
583
|
-
private isOpenPrevented;
|
|
584
|
-
private customValueSubject;
|
|
585
|
-
private customValueSubscription;
|
|
586
|
-
private subs;
|
|
587
|
-
private touchstartDisposeHandler;
|
|
588
|
-
private direction;
|
|
589
|
-
private differ;
|
|
590
|
-
private valueChangeDetected;
|
|
591
|
-
private subscribeEvents;
|
|
592
|
-
private subscribeTouchEvents;
|
|
593
|
-
private unsubscribeEvents;
|
|
594
|
-
private getDataItems;
|
|
595
|
-
private removeGroupTag;
|
|
596
|
-
private removeSingleTag;
|
|
597
|
-
/**
|
|
598
|
-
* @hidden
|
|
599
|
-
*
|
|
600
|
-
* Determines which of the provided tags should be disabled and stores their position indices
|
|
601
|
-
*/
|
|
602
|
-
private disabledItemsMapper;
|
|
603
|
-
private createCustomValueStream;
|
|
604
|
-
private handleItemChange;
|
|
605
|
-
private handleMousedown;
|
|
606
|
-
private handleKeydown;
|
|
607
|
-
private handleEnter;
|
|
608
|
-
private handleClose;
|
|
609
|
-
private handleEnd;
|
|
610
|
-
private handleHome;
|
|
611
|
-
private sortSelectionAscending;
|
|
612
|
-
private handleSelectAll;
|
|
613
|
-
private handleSelectAllToBeginning;
|
|
614
|
-
private handleSelectAllToEnd;
|
|
615
|
-
private handleSelectUpDown;
|
|
616
|
-
/**
|
|
617
|
-
* Selects all items between the focused item and the last clicked item (index). Also removes all other selected items.
|
|
618
|
-
*/
|
|
619
|
-
private selectRangeFromTo;
|
|
620
|
-
private handleUp;
|
|
621
|
-
private handleBackspace;
|
|
622
|
-
private handleDelete;
|
|
623
|
-
private handleLeftKey;
|
|
624
|
-
private handleDownKey;
|
|
625
|
-
private handleRightKey;
|
|
626
|
-
private findIndex;
|
|
627
|
-
private searchTextAndFocus;
|
|
628
|
-
private closePopup;
|
|
629
|
-
private openPopup;
|
|
630
|
-
/**
|
|
631
|
-
* @hidden
|
|
632
|
-
*/
|
|
633
|
-
togglePopup(open: boolean): void;
|
|
634
|
-
private triggerPopupEvents;
|
|
635
|
-
private _toggle;
|
|
636
|
-
private destroyPopup;
|
|
637
|
-
private createPopup;
|
|
638
|
-
private emitValueChange;
|
|
639
|
-
private resolveDataItemFromTags;
|
|
640
|
-
private firstFocusableIndex;
|
|
641
|
-
private nextTick;
|
|
642
|
-
private setComponentClasses;
|
|
643
|
-
private openActionSheet;
|
|
644
|
-
private blurComponent;
|
|
645
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
|
|
646
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "kendo-multiselect", ["kendoMultiSelect"], { "showStickyHeader": { "alias": "showStickyHeader"; "required": false; }; "focusableId": { "alias": "focusableId"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "data": { "alias": "data"; "required": false; }; "value": { "alias": "value"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "adaptiveMode": { "alias": "adaptiveMode"; "required": false; }; "adaptiveTitle": { "alias": "adaptiveTitle"; "required": false; }; "adaptiveSubtitle": { "alias": "adaptiveSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "listHeight": { "alias": "listHeight"; "required": false; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "tagMapper": { "alias": "tagMapper"; "required": false; }; "allowCustom": { "alias": "allowCustom"; "required": false; }; "valueNormalizer": { "alias": "valueNormalizer"; "required": false; }; "inputAttributes": { "alias": "inputAttributes"; "required": false; }; }, { "filterChange": "filterChange"; "valueChange": "valueChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "removeTag": "removeTag"; }, ["template", "customItemTemplate", "groupTemplate", "fixedGroupTemplate", "headerTemplate", "footerTemplate", "tagTemplate", "groupTagTemplate", "noDataTemplate", "suffixTemplate", "prefixTemplate"], never, true, never>;
|
|
647
|
-
}
|