@progress/kendo-angular-dropdowns 11.6.0 → 12.0.0-develop.10
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 +82 -20
- package/comboboxes/combobox.component.d.ts +76 -8
- package/comboboxes/multicolumncombobox.component.d.ts +4 -0
- package/common/action-sheet.component.d.ts +43 -0
- package/common/list.component.d.ts +2 -1
- package/common/localization/messages.d.ts +9 -1
- package/common/selection/selectable.directive.d.ts +2 -1
- package/common/shared.module.d.ts +11 -7
- package/common/util.d.ts +39 -2
- package/dropdownlist/dropdownlist.component.d.ts +78 -9
- package/dropdowntrees/dropdowntree.component.d.ts +80 -8
- package/dropdowntrees/multiselecttree.component.d.ts +90 -6
- package/esm2020/autocomplete/autocomplete.component.mjs +294 -116
- package/esm2020/comboboxes/combobox.component.mjs +251 -60
- package/esm2020/comboboxes/multicolumncombobox.component.mjs +110 -119
- package/esm2020/common/action-sheet.component.mjs +243 -0
- package/esm2020/common/list.component.mjs +11 -2
- package/esm2020/common/localization/messages.mjs +5 -1
- package/esm2020/common/selection/selectable.directive.mjs +3 -3
- package/esm2020/common/shared.module.mjs +13 -6
- package/esm2020/common/util.mjs +68 -2
- package/esm2020/dropdownlist/dropdownlist.component.mjs +245 -64
- package/esm2020/dropdowntrees/dropdowntree.component.mjs +254 -56
- package/esm2020/dropdowntrees/multiselecttree.component.mjs +291 -55
- package/esm2020/index.mjs +1 -0
- package/esm2020/multiselect/multiselect.component.mjs +320 -88
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +2085 -552
- package/fesm2020/progress-kendo-angular-dropdowns.mjs +2054 -545
- package/index.d.ts +2 -0
- package/multiselect/multiselect.component.d.ts +87 -10
- package/package.json +9 -8
- package/schematics/ngAdd/index.js +2 -2
package/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { ComboBoxModule } from './comboboxes/combobox.module';
|
|
|
54
54
|
export { DropDownListModule } from './dropdownlist/dropdownlist.module';
|
|
55
55
|
export { SharedDirectivesModule } from './common/shared-directives.module';
|
|
56
56
|
export { ListComponent } from './common/list.component';
|
|
57
|
+
export { ResponsiveRendererComponent } from './common/action-sheet.component';
|
|
57
58
|
/**
|
|
58
59
|
* @hidden
|
|
59
60
|
* TODO: See if the export could be removed (AOT should pass)
|
|
@@ -67,3 +68,4 @@ export { DropDownSize } from './common/models/size';
|
|
|
67
68
|
export { DropDownRounded } from './common/models/rounded';
|
|
68
69
|
export { DropDownFillMode } from './common/models/fillmode';
|
|
69
70
|
export { MultiSelectCheckableSettings } from './common/models/checkboxes-settings';
|
|
71
|
+
export { AdaptiveMode } from './common/util';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { AdaptiveMode, WindowSize } from '../common/util';
|
|
5
6
|
import { SearchBarComponent } from '../common/searchbar.component';
|
|
6
7
|
import { Renderer2, ViewContainerRef, ElementRef, TemplateRef, OnDestroy, OnChanges, DoCheck, EventEmitter, AfterContentChecked, AfterViewInit, ChangeDetectorRef, KeyValueDiffers, NgZone, OnInit } from '@angular/core';
|
|
7
8
|
import { Observable } from 'rxjs';
|
|
@@ -33,6 +34,9 @@ import { DropDownSize } from '../common/models/size';
|
|
|
33
34
|
import { DropDownRounded } from '../common/models/rounded';
|
|
34
35
|
import { DropDownFillMode } from '../common/models/fillmode';
|
|
35
36
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
37
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
38
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
39
|
+
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
36
40
|
import * as i0 from "@angular/core";
|
|
37
41
|
/**
|
|
38
42
|
* Represents the [Kendo UI MultiSelect component for Angular]({% slug overview_multiselect %}).
|
|
@@ -64,6 +68,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
64
68
|
private renderer;
|
|
65
69
|
private _zone;
|
|
66
70
|
private touchEnabled;
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
animationDuration: number;
|
|
67
75
|
/**
|
|
68
76
|
* @hidden
|
|
69
77
|
*/
|
|
@@ -80,6 +88,18 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
80
88
|
text: string;
|
|
81
89
|
tags: any[];
|
|
82
90
|
focusedTagIndex: number;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
responsiveRendererComponent: ResponsiveRendererComponent;
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
get actionSheet(): ActionSheetComponent;
|
|
99
|
+
/**
|
|
100
|
+
* @hidden
|
|
101
|
+
*/
|
|
102
|
+
get actionSheetSearchBar(): TextBoxComponent;
|
|
83
103
|
/**
|
|
84
104
|
* @hidden
|
|
85
105
|
*/
|
|
@@ -98,6 +118,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
98
118
|
* @hidden
|
|
99
119
|
*/
|
|
100
120
|
onSearchBarFocus(): void;
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
*/
|
|
124
|
+
onAdaptiveTextBoxChange(text: string): void;
|
|
101
125
|
/**
|
|
102
126
|
* Blurs the MultiSelect.
|
|
103
127
|
*/
|
|
@@ -210,6 +234,25 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
210
234
|
*/
|
|
211
235
|
set placeholder(text: string);
|
|
212
236
|
get placeholder(): string;
|
|
237
|
+
/**
|
|
238
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
239
|
+
*/
|
|
240
|
+
adaptiveMode: AdaptiveMode;
|
|
241
|
+
/**
|
|
242
|
+
* Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
243
|
+
* By default the ActionSheet title uses the text provided for the label of the AutoComplete.
|
|
244
|
+
*/
|
|
245
|
+
title: string;
|
|
246
|
+
/**
|
|
247
|
+
* Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
248
|
+
* By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
|
|
249
|
+
*/
|
|
250
|
+
set subtitle(_subtitle: string);
|
|
251
|
+
get subtitle(): string;
|
|
252
|
+
/**
|
|
253
|
+
* @hidden
|
|
254
|
+
*/
|
|
255
|
+
get isAdaptiveModeEnabled(): boolean;
|
|
213
256
|
/**
|
|
214
257
|
* Sets the disabled state of the component.
|
|
215
258
|
*/
|
|
@@ -250,12 +293,16 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
250
293
|
set popupSettings(settings: PopupSettings);
|
|
251
294
|
get popupSettings(): PopupSettings;
|
|
252
295
|
/**
|
|
253
|
-
* Sets the height of the
|
|
296
|
+
* Sets the height of the options list in the popup. By default, `listHeight` is 200px.
|
|
254
297
|
*
|
|
255
|
-
* > The `listHeight` property affects only the list of
|
|
298
|
+
* > The `listHeight` property affects only the list of options and not the whole popup container.
|
|
256
299
|
* > To set the height of the popup container, use `popupSettings.height`.
|
|
300
|
+
*
|
|
301
|
+
* > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
|
|
257
302
|
*/
|
|
258
|
-
listHeight: number;
|
|
303
|
+
set listHeight(_listHeight: number);
|
|
304
|
+
get listHeight(): number;
|
|
305
|
+
private _listHeight;
|
|
259
306
|
/**
|
|
260
307
|
* Specifies the type of the selected value.
|
|
261
308
|
* If set to `true`, the selected value has to be of the primitive type
|
|
@@ -393,11 +440,25 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
393
440
|
get dir(): string;
|
|
394
441
|
get disabledClass(): boolean;
|
|
395
442
|
get isLoading(): boolean;
|
|
443
|
+
/**
|
|
444
|
+
* @hidden
|
|
445
|
+
*/
|
|
446
|
+
windowSize: WindowSize;
|
|
447
|
+
/**
|
|
448
|
+
* @hidden
|
|
449
|
+
*/
|
|
450
|
+
get isActionSheetExpanded(): boolean;
|
|
451
|
+
/**
|
|
452
|
+
* @hidden
|
|
453
|
+
*/
|
|
454
|
+
get isAdaptive(): boolean;
|
|
396
455
|
disabledIndices: Set<number>;
|
|
397
456
|
private initialized;
|
|
398
457
|
private _size;
|
|
399
458
|
private _rounded;
|
|
400
459
|
private _fillMode;
|
|
460
|
+
private _subtitle;
|
|
461
|
+
private _valueHolder;
|
|
401
462
|
constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, dataService: DataService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, cdr: ChangeDetectorRef, differs: KeyValueDiffers, renderer: Renderer2, _zone: NgZone, touchEnabled: boolean);
|
|
402
463
|
get listContainerClasses(): any[];
|
|
403
464
|
/**
|
|
@@ -408,6 +469,14 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
408
469
|
get height(): any;
|
|
409
470
|
get activeDescendant(): string;
|
|
410
471
|
get clearButtonVisiblity(): string;
|
|
472
|
+
/**
|
|
473
|
+
* @hidden
|
|
474
|
+
*/
|
|
475
|
+
applyValue(): void;
|
|
476
|
+
/**
|
|
477
|
+
* @hidden
|
|
478
|
+
*/
|
|
479
|
+
cancelValue(): void;
|
|
411
480
|
/**
|
|
412
481
|
* @hidden
|
|
413
482
|
*/
|
|
@@ -458,15 +527,15 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
458
527
|
ngAfterViewInit(): void;
|
|
459
528
|
ngOnDestroy(): void;
|
|
460
529
|
/**
|
|
461
|
-
* Toggles the visibility of the popup
|
|
530
|
+
* Toggles the visibility of the popup or actionSheet
|
|
462
531
|
* ([see example]({% slug openstate_multiselect %}#toc-setting-the-initially-opened-component)).
|
|
463
|
-
* If you use the `toggle` method to open or close the popup, the respective `open` and `close` events will not be fired.
|
|
532
|
+
* If you use the `toggle` method to open or close the popup or actionSheet, the respective `open` and `close` events will not be fired.
|
|
464
533
|
*
|
|
465
534
|
* @param open - The state of the popup.
|
|
466
535
|
*/
|
|
467
536
|
toggle(open?: boolean): void;
|
|
468
537
|
/**
|
|
469
|
-
* Returns the current open state
|
|
538
|
+
* Returns the current open state. Returns `true` if the popup or actionSheet is open.
|
|
470
539
|
*/
|
|
471
540
|
get isOpen(): boolean;
|
|
472
541
|
/**
|
|
@@ -499,6 +568,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
499
568
|
* @hidden
|
|
500
569
|
*/
|
|
501
570
|
onTagMapperChange(): void;
|
|
571
|
+
/**
|
|
572
|
+
* @hidden
|
|
573
|
+
*/
|
|
574
|
+
handleClick(): void;
|
|
502
575
|
protected onChangeCallback: Function;
|
|
503
576
|
protected onTouchedCallback: Function;
|
|
504
577
|
private _placeholder;
|
|
@@ -515,8 +588,7 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
515
588
|
private popupMouseDownHandler;
|
|
516
589
|
private customValueSubject;
|
|
517
590
|
private customValueSubscription;
|
|
518
|
-
private
|
|
519
|
-
private localizationChangeSubscription;
|
|
591
|
+
private subs;
|
|
520
592
|
private touchstartDisposeHandler;
|
|
521
593
|
private direction;
|
|
522
594
|
private differ;
|
|
@@ -559,7 +631,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
559
631
|
private searchTextAndFocus;
|
|
560
632
|
private closePopup;
|
|
561
633
|
private openPopup;
|
|
562
|
-
|
|
634
|
+
/**
|
|
635
|
+
* @hidden
|
|
636
|
+
*/
|
|
637
|
+
togglePopup(open: boolean): void;
|
|
563
638
|
private triggerPopupEvents;
|
|
564
639
|
private _toggle;
|
|
565
640
|
private destroyPopup;
|
|
@@ -569,6 +644,8 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
569
644
|
private firstFocusableIndex;
|
|
570
645
|
private nextTick;
|
|
571
646
|
private setComponentClasses;
|
|
647
|
+
private closeActionSheet;
|
|
648
|
+
private openActionSheet;
|
|
572
649
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
573
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "kendo-multiselect", ["kendoMultiSelect"], { "focusableId": "focusableId"; "autoClose": "autoClose"; "loading": "loading"; "data": "data"; "value": "value"; "valueField": "valueField"; "textField": "textField"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "placeholder": "placeholder"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "checkboxes": "checkboxes"; "readonly": "readonly"; "filterable": "filterable"; "virtual": "virtual"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "valuePrimitive": "valuePrimitive"; "clearButton": "clearButton"; "tagMapper": "tagMapper"; "allowCustom": "allowCustom"; "valueNormalizer": "valueNormalizer"; }, { "filterChange": "filterChange"; "valueChange": "valueChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; "removeTag": "removeTag"; }, ["template", "customItemTemplate", "groupTemplate", "fixedGroupTemplate", "headerTemplate", "footerTemplate", "tagTemplate", "groupTagTemplate", "noDataTemplate"], never>;
|
|
650
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "kendo-multiselect", ["kendoMultiSelect"], { "focusableId": "focusableId"; "autoClose": "autoClose"; "loading": "loading"; "data": "data"; "value": "value"; "valueField": "valueField"; "textField": "textField"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "placeholder": "placeholder"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "checkboxes": "checkboxes"; "readonly": "readonly"; "filterable": "filterable"; "virtual": "virtual"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "valuePrimitive": "valuePrimitive"; "clearButton": "clearButton"; "tagMapper": "tagMapper"; "allowCustom": "allowCustom"; "valueNormalizer": "valueNormalizer"; }, { "filterChange": "filterChange"; "valueChange": "valueChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; "removeTag": "removeTag"; }, ["template", "customItemTemplate", "groupTemplate", "fixedGroupTemplate", "headerTemplate", "footerTemplate", "tagTemplate", "groupTagTemplate", "noDataTemplate"], never>;
|
|
574
651
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dropdowns",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-develop.10",
|
|
4
4
|
"description": "A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree ",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -24,17 +24,18 @@
|
|
|
24
24
|
"@angular/core": "13 - 15",
|
|
25
25
|
"@angular/platform-browser": "13 - 15",
|
|
26
26
|
"@progress/kendo-licensing": "^1.0.2",
|
|
27
|
-
"@progress/kendo-angular-common": "
|
|
28
|
-
"@progress/kendo-angular-l10n": "
|
|
29
|
-
"@progress/kendo-angular-popup": "
|
|
30
|
-
"@progress/kendo-angular-icons": "
|
|
31
|
-
"@progress/kendo-angular-treeview": "
|
|
27
|
+
"@progress/kendo-angular-common": "12.0.0-develop.10",
|
|
28
|
+
"@progress/kendo-angular-l10n": "12.0.0-develop.10",
|
|
29
|
+
"@progress/kendo-angular-popup": "12.0.0-develop.10",
|
|
30
|
+
"@progress/kendo-angular-icons": "12.0.0-develop.10",
|
|
31
|
+
"@progress/kendo-angular-treeview": "12.0.0-develop.10",
|
|
32
32
|
"rxjs": "^6.5.3 || ^7.0.0",
|
|
33
|
-
"@progress/kendo-angular-
|
|
33
|
+
"@progress/kendo-angular-navigation": "12.0.0-develop.10",
|
|
34
|
+
"@progress/kendo-angular-label": "12.0.0-develop.10"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"tslib": "^2.3.1",
|
|
37
|
-
"@progress/kendo-angular-schematics": "
|
|
38
|
+
"@progress/kendo-angular-schematics": "12.0.0-develop.10",
|
|
38
39
|
"@progress/kendo-common": "^0.2.1"
|
|
39
40
|
},
|
|
40
41
|
"schematics": "./schematics/collection.json",
|
|
@@ -4,9 +4,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
|
|
6
6
|
// peers of the treeview
|
|
7
|
-
'@progress/kendo-angular-inputs': '
|
|
7
|
+
'@progress/kendo-angular-inputs': '12.0.0-develop.10',
|
|
8
8
|
// peers of inputs
|
|
9
|
-
'@progress/kendo-angular-intl': '
|
|
9
|
+
'@progress/kendo-angular-intl': '12.0.0-develop.10',
|
|
10
10
|
'@progress/kendo-drawing': '^1.17.2',
|
|
11
11
|
// Peer dependency of icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^1.0.0'
|