@progress/kendo-angular-dropdowns 11.0.0-develop.92 → 11.0.0-develop.94
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 +5 -0
- package/comboboxes/combobox.component.d.ts +9 -0
- package/common/shared.module.d.ts +2 -1
- package/common/taglist.component.d.ts +5 -0
- package/common/util.d.ts +15 -0
- package/dropdownlist/dropdownlist.component.d.ts +9 -0
- package/dropdowntrees/dropdowntree.component.d.ts +21 -1
- package/dropdowntrees/multiselecttree.component.d.ts +17 -1
- package/esm2020/autocomplete/autocomplete.component.mjs +22 -8
- package/esm2020/comboboxes/combobox.component.mjs +41 -11
- package/esm2020/comboboxes/multicolumncombobox.component.mjs +31 -10
- package/esm2020/common/shared.module.mjs +6 -5
- package/esm2020/common/taglist.component.mjs +21 -9
- package/esm2020/common/util.mjs +26 -0
- package/esm2020/dropdownlist/dropdownlist.component.mjs +48 -22
- package/esm2020/dropdowntrees/dropdowntree.component.mjs +132 -54
- package/esm2020/dropdowntrees/multiselecttree.component.mjs +108 -34
- package/esm2020/multiselect/multiselect.component.mjs +41 -11
- package/esm2020/package-metadata.mjs +1 -1
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +417 -118
- package/fesm2020/progress-kendo-angular-dropdowns.mjs +417 -118
- package/multiselect/multiselect.component.d.ts +9 -0
- package/package.json +8 -7
- package/schematics/ngAdd/index.js +3 -1
|
@@ -16,7 +16,7 @@ import { PreventableEvent } from '../common/models/preventable-event';
|
|
|
16
16
|
import { NavigationAction } from '../common/navigation/navigation-action';
|
|
17
17
|
import { RemoveTagEvent } from '../common/models/remove-tag-event';
|
|
18
18
|
import { MultiSelectTreeMessages } from '../common/constants/error-messages';
|
|
19
|
-
import { fetchDescendentNodes, getFillModeClass, getRoundedClass, getSizeClass, hasProps, isArray, isObject, isObjectArray, isPresent, isUntouched, noop, parseNumber, valueFrom } from '../common/util';
|
|
19
|
+
import { fetchDescendentNodes, getFillModeClass, getRoundedClass, getSearchableItems, getSizeClass, hasProps, isArray, isLetter, isObject, isObjectArray, isPresent, isUntouched, noop, parseNumber, valueFrom } from '../common/util';
|
|
20
20
|
import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
|
|
21
21
|
import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
|
|
22
22
|
import { NodeTemplateDirective } from './templates/node-template.directive';
|
|
@@ -24,24 +24,26 @@ import { NoDataTemplateDirective } from '../common/templates/no-data-template.di
|
|
|
24
24
|
import { TagTemplateDirective } from '../common/templates/tag-template.directive';
|
|
25
25
|
import { GroupTagTemplateDirective } from '../common/templates/group-tag-template.directive';
|
|
26
26
|
import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
|
|
27
|
-
import { merge, of } from 'rxjs';
|
|
28
|
-
import { filter, tap } from 'rxjs/operators';
|
|
27
|
+
import { merge, of, Subject, Subscription } from 'rxjs';
|
|
28
|
+
import { debounceTime, filter, tap } from 'rxjs/operators';
|
|
29
29
|
import { buildTreeItem, MultiSelectTreeLookupService, nodeIndex } from './lookup/lookup.service';
|
|
30
|
+
import { searchIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
30
31
|
import * as i0 from "@angular/core";
|
|
31
32
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
32
33
|
import * as i2 from "../common/navigation/navigation.service";
|
|
33
34
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
34
35
|
import * as i4 from "./lookup/lookup.service";
|
|
35
36
|
import * as i5 from "../common/taglist.component";
|
|
36
|
-
import * as i6 from "@progress/kendo-angular-
|
|
37
|
-
import * as i7 from "
|
|
38
|
-
import * as i8 from "
|
|
39
|
-
import * as i9 from "@angular/
|
|
40
|
-
import * as i10 from "
|
|
41
|
-
import * as i11 from "
|
|
42
|
-
import * as i12 from "
|
|
43
|
-
import * as i13 from "
|
|
44
|
-
import * as i14 from "./checked-state/check.directive";
|
|
37
|
+
import * as i6 from "@progress/kendo-angular-icons";
|
|
38
|
+
import * as i7 from "@progress/kendo-angular-treeview";
|
|
39
|
+
import * as i8 from "../common/localization/localized-messages.directive";
|
|
40
|
+
import * as i9 from "@angular/common";
|
|
41
|
+
import * as i10 from "@angular/forms";
|
|
42
|
+
import * as i11 from "../common/filter-input.directive";
|
|
43
|
+
import * as i12 from "@progress/kendo-angular-common";
|
|
44
|
+
import * as i13 from "../common/templates/template-context.directive";
|
|
45
|
+
import * as i14 from "./checked-state/check-all.directive";
|
|
46
|
+
import * as i15 from "./checked-state/check.directive";
|
|
45
47
|
const DEFAULT_POPUP_SETTINGS = { animate: true };
|
|
46
48
|
const DEFAULT_CHECKABLE_SETTINGS = { checkChildren: true, checkOnClick: true };
|
|
47
49
|
const hasChildren = () => false;
|
|
@@ -66,6 +68,14 @@ export class MultiSelectTreeComponent {
|
|
|
66
68
|
this.cdr = cdr;
|
|
67
69
|
this.lookup = lookup;
|
|
68
70
|
this.touchEnabled = touchEnabled;
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
this.searchIcon = searchIcon;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
this.xIcon = xIcon;
|
|
69
79
|
this.hostClasses = true;
|
|
70
80
|
this.role = 'combobox';
|
|
71
81
|
this.ariaHasPopup = 'tree';
|
|
@@ -231,7 +241,10 @@ export class MultiSelectTreeComponent {
|
|
|
231
241
|
this._size = 'medium';
|
|
232
242
|
this._rounded = 'medium';
|
|
233
243
|
this._fillMode = 'solid';
|
|
234
|
-
this.
|
|
244
|
+
this._searchableNodes = [];
|
|
245
|
+
this._typedValue = '';
|
|
246
|
+
this.printableCharacters = new Subject();
|
|
247
|
+
this.subs = new Subscription();
|
|
235
248
|
this.lastAction = 'check';
|
|
236
249
|
this.onTouchedCallback = noop;
|
|
237
250
|
this.onChangeCallback = noop;
|
|
@@ -300,6 +313,9 @@ export class MultiSelectTreeComponent {
|
|
|
300
313
|
if (this.disabled || this.readonly) {
|
|
301
314
|
return;
|
|
302
315
|
}
|
|
316
|
+
if (isLetter(event.key)) {
|
|
317
|
+
this.printableCharacters.next(event.key);
|
|
318
|
+
}
|
|
303
319
|
const eventData = event;
|
|
304
320
|
const action = this.navigationService.process({
|
|
305
321
|
originalEvent: eventData
|
|
@@ -630,9 +646,20 @@ export class MultiSelectTreeComponent {
|
|
|
630
646
|
return this.checkAllInput && document.activeElement === this.checkAllInput.nativeElement;
|
|
631
647
|
}
|
|
632
648
|
ngOnInit() {
|
|
649
|
+
this.subs.add(this.printableCharacters.pipe(tap((char) => {
|
|
650
|
+
this._typedValue += char;
|
|
651
|
+
const itemToFocus = this._searchableNodes.find((node) => {
|
|
652
|
+
return node.text.toLowerCase().indexOf(this._typedValue) === 0;
|
|
653
|
+
});
|
|
654
|
+
this.treeview.focus(itemToFocus?.index);
|
|
655
|
+
const htmlItem = document.querySelector(`kendo-popup[id='${this._popupId}'] li.k-treeview-item[data-treeindex='${itemToFocus?.index}']`);
|
|
656
|
+
htmlItem?.scrollIntoView();
|
|
657
|
+
}), debounceTime(1000)).subscribe(() => {
|
|
658
|
+
this._typedValue = '';
|
|
659
|
+
}));
|
|
633
660
|
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
634
661
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', String(this.isOpen));
|
|
635
|
-
this.
|
|
662
|
+
this.subs.add(this.localization
|
|
636
663
|
.changes.subscribe(({ rtl }) => {
|
|
637
664
|
this.direction = rtl ? 'rtl' : 'ltr';
|
|
638
665
|
this.cdr.markForCheck();
|
|
@@ -1039,9 +1066,11 @@ export class MultiSelectTreeComponent {
|
|
|
1039
1066
|
popupWrapper.style.height = this.height;
|
|
1040
1067
|
this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
|
|
1041
1068
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
|
|
1069
|
+
this.renderer.setAttribute(popupWrapper, 'id', this._popupId);
|
|
1042
1070
|
this.popupRef.popupOpen.subscribe(() => {
|
|
1043
1071
|
this.cdr.detectChanges();
|
|
1044
1072
|
this.opened.emit();
|
|
1073
|
+
this._searchableNodes = getSearchableItems(this._popupId, this.popupRef.popupElement);
|
|
1045
1074
|
});
|
|
1046
1075
|
this.popupRef.popupClose.subscribe(() => {
|
|
1047
1076
|
this.closed.emit();
|
|
@@ -1064,20 +1093,33 @@ export class MultiSelectTreeComponent {
|
|
|
1064
1093
|
}
|
|
1065
1094
|
}
|
|
1066
1095
|
subscribeEvents() {
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
this.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1096
|
+
[
|
|
1097
|
+
this.navigationService.open.subscribe((event) => {
|
|
1098
|
+
event.originalEvent.preventDefault();
|
|
1099
|
+
this.togglePopup(true);
|
|
1100
|
+
}),
|
|
1101
|
+
this.navigationService.enter
|
|
1102
|
+
.pipe(tap((event) => event.originalEvent.preventDefault()))
|
|
1103
|
+
.subscribe(() => this.togglePopup(true)),
|
|
1104
|
+
merge(this.navigationService.close, this.navigationService.esc).subscribe((event) => {
|
|
1105
|
+
event.originalEvent.preventDefault();
|
|
1106
|
+
this.focus();
|
|
1107
|
+
this.togglePopup(false);
|
|
1108
|
+
}),
|
|
1109
|
+
this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),
|
|
1110
|
+
this.navigationService.up.subscribe(this.handleUpKey.bind(this)),
|
|
1111
|
+
this.navigationService.down.subscribe(this.handleDownKey.bind(this)),
|
|
1112
|
+
this.navigationService.left
|
|
1113
|
+
.pipe(filter(() => !this.isTreeViewActive))
|
|
1114
|
+
.subscribe(this.direction === 'rtl' ? this.handleRightKey.bind(this) : this.handleLeftKey.bind(this)),
|
|
1115
|
+
this.navigationService.right
|
|
1116
|
+
.pipe(filter(() => !this.isTreeViewActive))
|
|
1117
|
+
.subscribe(this.direction === 'rtl' ? this.handleLeftKey.bind(this) : this.handleRightKey.bind(this)),
|
|
1118
|
+
this.navigationService.home.pipe(filter(() => !this.isOpen)).subscribe(this.handleHome.bind(this)),
|
|
1119
|
+
this.navigationService.end.pipe(filter(() => !this.isOpen)).subscribe(this.handleEnd.bind(this)),
|
|
1120
|
+
this.navigationService.backspace.pipe(filter(() => this.isTagFocused)).subscribe(this.handleBackspace.bind(this)),
|
|
1121
|
+
this.navigationService.delete.pipe(filter(() => this.isTagFocused)).subscribe(this.handleDelete.bind(this))
|
|
1122
|
+
].forEach(sub => this.subs.add(sub));
|
|
1081
1123
|
}
|
|
1082
1124
|
subscribeFocusEvents() {
|
|
1083
1125
|
if (isDocumentAvailable()) {
|
|
@@ -1208,7 +1250,7 @@ export class MultiSelectTreeComponent {
|
|
|
1208
1250
|
}
|
|
1209
1251
|
}
|
|
1210
1252
|
unsubscribeEvents() {
|
|
1211
|
-
this.
|
|
1253
|
+
this.subs.unsubscribe();
|
|
1212
1254
|
this.unSubscribeFocusEvents();
|
|
1213
1255
|
}
|
|
1214
1256
|
/**
|
|
@@ -1243,6 +1285,16 @@ export class MultiSelectTreeComponent {
|
|
|
1243
1285
|
this.value = newValue;
|
|
1244
1286
|
this.emitValueChange(this.value);
|
|
1245
1287
|
}
|
|
1288
|
+
/**
|
|
1289
|
+
* @hidden
|
|
1290
|
+
*/
|
|
1291
|
+
onChildrenLoaded() {
|
|
1292
|
+
setTimeout(() => {
|
|
1293
|
+
if (this.popupRef) {
|
|
1294
|
+
this._searchableNodes = getSearchableItems(this._popupId, this.popupRef.popupElement);
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1246
1298
|
/**
|
|
1247
1299
|
* @hidden
|
|
1248
1300
|
*
|
|
@@ -1378,7 +1430,12 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1378
1430
|
tabindex="-1"
|
|
1379
1431
|
(click)="clearAll($event)"
|
|
1380
1432
|
>
|
|
1381
|
-
<
|
|
1433
|
+
<kendo-icon-wrapper
|
|
1434
|
+
class="k-icon"
|
|
1435
|
+
name="x"
|
|
1436
|
+
[svgIcon]="xIcon"
|
|
1437
|
+
>
|
|
1438
|
+
</kendo-icon-wrapper>
|
|
1382
1439
|
</span>
|
|
1383
1440
|
<span
|
|
1384
1441
|
*ngIf="loading"
|
|
@@ -1395,7 +1452,12 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1395
1452
|
[ngClass]="filterInputClasses"
|
|
1396
1453
|
>
|
|
1397
1454
|
<span class="k-input-prefix">
|
|
1398
|
-
<
|
|
1455
|
+
<kendo-icon-wrapper
|
|
1456
|
+
class="k-icon"
|
|
1457
|
+
name="search"
|
|
1458
|
+
[svgIcon]="searchIcon"
|
|
1459
|
+
>
|
|
1460
|
+
</kendo-icon-wrapper>
|
|
1399
1461
|
</span>
|
|
1400
1462
|
<input
|
|
1401
1463
|
#filterInput
|
|
@@ -1483,6 +1545,7 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1483
1545
|
focusout: handleBlur
|
|
1484
1546
|
}"
|
|
1485
1547
|
[scope]="this"
|
|
1548
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1486
1549
|
>
|
|
1487
1550
|
</kendo-treeview>
|
|
1488
1551
|
<!--footer template-->
|
|
@@ -1505,7 +1568,7 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1505
1568
|
</div>
|
|
1506
1569
|
</ng-template>
|
|
1507
1570
|
<ng-container #container></ng-container>
|
|
1508
|
-
`, isInline: true, components: [{ type: i5.TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { type: i6.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }], directives: [{ type:
|
|
1571
|
+
`, isInline: true, components: [{ type: i5.TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i7.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }], directives: [{ type: i8.LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i11.FilterInputDirective, selector: "[filterInput]", inputs: ["filterInput"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i12.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i13.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i14.CheckAllDirective, selector: "[checkAll]", inputs: ["lastAction", "treeview", "checkedItems", "valueField", "checkAll"], outputs: ["checkedItemsChange"] }, { type: i15.CheckDirective, selector: "[kendoMultiSelectTreeCheckable]", inputs: ["checkable", "valueField", "checkedItems"], outputs: ["checkedItemsChange"] }] });
|
|
1509
1572
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectTreeComponent, decorators: [{
|
|
1510
1573
|
type: Component,
|
|
1511
1574
|
args: [{
|
|
@@ -1583,7 +1646,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1583
1646
|
tabindex="-1"
|
|
1584
1647
|
(click)="clearAll($event)"
|
|
1585
1648
|
>
|
|
1586
|
-
<
|
|
1649
|
+
<kendo-icon-wrapper
|
|
1650
|
+
class="k-icon"
|
|
1651
|
+
name="x"
|
|
1652
|
+
[svgIcon]="xIcon"
|
|
1653
|
+
>
|
|
1654
|
+
</kendo-icon-wrapper>
|
|
1587
1655
|
</span>
|
|
1588
1656
|
<span
|
|
1589
1657
|
*ngIf="loading"
|
|
@@ -1600,7 +1668,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1600
1668
|
[ngClass]="filterInputClasses"
|
|
1601
1669
|
>
|
|
1602
1670
|
<span class="k-input-prefix">
|
|
1603
|
-
<
|
|
1671
|
+
<kendo-icon-wrapper
|
|
1672
|
+
class="k-icon"
|
|
1673
|
+
name="search"
|
|
1674
|
+
[svgIcon]="searchIcon"
|
|
1675
|
+
>
|
|
1676
|
+
</kendo-icon-wrapper>
|
|
1604
1677
|
</span>
|
|
1605
1678
|
<input
|
|
1606
1679
|
#filterInput
|
|
@@ -1688,6 +1761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1688
1761
|
focusout: handleBlur
|
|
1689
1762
|
}"
|
|
1690
1763
|
[scope]="this"
|
|
1764
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1691
1765
|
>
|
|
1692
1766
|
</kendo-treeview>
|
|
1693
1767
|
<!--footer template-->
|
|
@@ -36,6 +36,7 @@ import { DataService } from '../common/data.service';
|
|
|
36
36
|
import { ListComponent } from '../common/list.component';
|
|
37
37
|
import { normalizeCheckboxesSettings } from '../common/models/checkboxes-settings';
|
|
38
38
|
import { normalizeVirtualizationSettings } from '../common/models/virtualization-settings';
|
|
39
|
+
import { plusIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
39
40
|
import * as i0 from "@angular/core";
|
|
40
41
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
41
42
|
import * as i2 from "@progress/kendo-angular-popup";
|
|
@@ -45,12 +46,13 @@ import * as i5 from "../common/navigation/navigation.service";
|
|
|
45
46
|
import * as i6 from "../common/disabled-items/disabled-items.service";
|
|
46
47
|
import * as i7 from "../common/taglist.component";
|
|
47
48
|
import * as i8 from "../common/searchbar.component";
|
|
48
|
-
import * as i9 from "
|
|
49
|
-
import * as i10 from "
|
|
50
|
-
import * as i11 from "
|
|
51
|
-
import * as i12 from "
|
|
52
|
-
import * as i13 from "
|
|
53
|
-
import * as i14 from "../common/
|
|
49
|
+
import * as i9 from "@progress/kendo-angular-icons";
|
|
50
|
+
import * as i10 from "../common/list.component";
|
|
51
|
+
import * as i11 from "@progress/kendo-angular-common";
|
|
52
|
+
import * as i12 from "../common/localization/localized-messages.directive";
|
|
53
|
+
import * as i13 from "@angular/common";
|
|
54
|
+
import * as i14 from "../common/templates/template-context.directive";
|
|
55
|
+
import * as i15 from "../common/selection/selectable.directive";
|
|
54
56
|
const MULTISELECT_VALUE_ACCESSOR = {
|
|
55
57
|
multi: true,
|
|
56
58
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -90,6 +92,14 @@ export class MultiSelectComponent {
|
|
|
90
92
|
this.renderer = renderer;
|
|
91
93
|
this._zone = _zone;
|
|
92
94
|
this.touchEnabled = touchEnabled;
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
this.xIcon = xIcon;
|
|
99
|
+
/**
|
|
100
|
+
* @hidden
|
|
101
|
+
*/
|
|
102
|
+
this.plusIcon = plusIcon;
|
|
93
103
|
this.listBoxId = guid();
|
|
94
104
|
this.tagListId = guid();
|
|
95
105
|
this.tagPrefix = "tag-" + guid();
|
|
@@ -1537,7 +1547,12 @@ MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1537
1547
|
tabindex="-1"
|
|
1538
1548
|
(mousedown)="clearAll($event)"
|
|
1539
1549
|
>
|
|
1540
|
-
<
|
|
1550
|
+
<kendo-icon-wrapper
|
|
1551
|
+
class="k-icon"
|
|
1552
|
+
name="x"
|
|
1553
|
+
[svgIcon]="xIcon"
|
|
1554
|
+
>
|
|
1555
|
+
</kendo-icon-wrapper>
|
|
1541
1556
|
</span>
|
|
1542
1557
|
<span
|
|
1543
1558
|
*ngIf="loading"
|
|
@@ -1565,7 +1580,12 @@ MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1565
1580
|
}">
|
|
1566
1581
|
</ng-template>
|
|
1567
1582
|
<ng-template #default_custom_item_template>{{ text }}</ng-template>
|
|
1568
|
-
<
|
|
1583
|
+
<kendo-icon-wrapper
|
|
1584
|
+
class="k-icon"
|
|
1585
|
+
name="plus"
|
|
1586
|
+
[svgIcon]="plusIcon"
|
|
1587
|
+
>
|
|
1588
|
+
</kendo-icon-wrapper>
|
|
1569
1589
|
</div>
|
|
1570
1590
|
</div>
|
|
1571
1591
|
<!--list-->
|
|
@@ -1612,7 +1632,7 @@ MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1612
1632
|
<kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
|
|
1613
1633
|
</ng-template>
|
|
1614
1634
|
<ng-container #container></ng-container>
|
|
1615
|
-
`, isInline: true, components: [{ type: i7.TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { type: i8.SearchBarComponent, selector: "kendo-searchbar", inputs: ["id", "listId", "tagListId", "activeDescendant", "disabled", "readonly", "tabIndex", "popupOpen", "role", "isLoading", "isSuggestable", "isFilterable", "userInput", "suggestedText", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { type: i9.ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize"] }, { type:
|
|
1635
|
+
`, isInline: true, components: [{ type: i7.TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { type: i8.SearchBarComponent, selector: "kendo-searchbar", inputs: ["id", "listId", "tagListId", "activeDescendant", "disabled", "readonly", "tabIndex", "popupOpen", "role", "isLoading", "isSuggestable", "isFilterable", "userInput", "suggestedText", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { type: i9.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i10.ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize"] }, { type: i11.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i12.LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i15.SelectableDirective, selector: "[kendoDropDownsSelectable]", inputs: ["index", "checkboxes", "height", "multipleSelection"] }] });
|
|
1616
1636
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
1617
1637
|
type: Component,
|
|
1618
1638
|
args: [{
|
|
@@ -1693,7 +1713,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1693
1713
|
tabindex="-1"
|
|
1694
1714
|
(mousedown)="clearAll($event)"
|
|
1695
1715
|
>
|
|
1696
|
-
<
|
|
1716
|
+
<kendo-icon-wrapper
|
|
1717
|
+
class="k-icon"
|
|
1718
|
+
name="x"
|
|
1719
|
+
[svgIcon]="xIcon"
|
|
1720
|
+
>
|
|
1721
|
+
</kendo-icon-wrapper>
|
|
1697
1722
|
</span>
|
|
1698
1723
|
<span
|
|
1699
1724
|
*ngIf="loading"
|
|
@@ -1721,7 +1746,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1721
1746
|
}">
|
|
1722
1747
|
</ng-template>
|
|
1723
1748
|
<ng-template #default_custom_item_template>{{ text }}</ng-template>
|
|
1724
|
-
<
|
|
1749
|
+
<kendo-icon-wrapper
|
|
1750
|
+
class="k-icon"
|
|
1751
|
+
name="plus"
|
|
1752
|
+
[svgIcon]="plusIcon"
|
|
1753
|
+
>
|
|
1754
|
+
</kendo-icon-wrapper>
|
|
1725
1755
|
</div>
|
|
1726
1756
|
</div>
|
|
1727
1757
|
<!--list-->
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dropdowns',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1673372510,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|