@progress/kendo-angular-dropdowns 5.5.1 → 6.0.1-dev.202201201129
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-dropdowns.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/autocomplete/autocomplete.component.js +120 -5
- package/dist/es/comboboxes/combobox.component.js +141 -20
- package/dist/es/comboboxes/multicolumncombobox.component.js +30 -10
- package/dist/es/common/list.component.js +83 -5
- package/dist/es/common/models/fillmode.js +4 -0
- package/dist/es/common/models/list-type.js +4 -0
- package/dist/es/common/models/rounded.js +4 -0
- package/dist/es/common/models/size.js +4 -0
- package/dist/es/common/searchbar.component.js +1 -1
- package/dist/es/common/selection/selectable.directive.js +2 -2
- package/dist/es/common/taglist.component.js +58 -5
- package/dist/es/common/util.js +37 -0
- package/dist/es/dropdownlist/dropdownlist.component.js +335 -54
- package/dist/es/dropdowntrees/dropdowntree.component.js +276 -42
- package/dist/es/dropdowntrees/multiselecttree.component.js +307 -46
- package/dist/es/multiselect/multiselect.component.js +162 -35
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/autocomplete/autocomplete.component.d.ts +42 -0
- package/dist/es2015/autocomplete/autocomplete.component.js +109 -7
- package/dist/es2015/comboboxes/combobox.component.d.ts +49 -4
- package/dist/es2015/comboboxes/combobox.component.js +207 -106
- package/dist/es2015/comboboxes/multicolumncombobox.component.d.ts +9 -1
- package/dist/es2015/comboboxes/multicolumncombobox.component.js +185 -166
- package/dist/es2015/common/list.component.d.ts +22 -1
- package/dist/es2015/common/list.component.js +115 -37
- package/dist/es2015/common/models/fillmode.d.ts +14 -0
- package/dist/es2015/common/models/fillmode.js +4 -0
- package/dist/es2015/common/models/list-type.d.ts +8 -0
- package/dist/es2015/common/models/list-type.js +4 -0
- package/dist/es2015/common/models/rounded.d.ts +15 -0
- package/dist/es2015/common/models/rounded.js +4 -0
- package/dist/es2015/common/models/size.d.ts +14 -0
- package/dist/es2015/common/models/size.js +4 -0
- package/dist/es2015/common/searchbar.component.js +1 -1
- package/dist/es2015/common/selection/selectable.directive.js +2 -2
- package/dist/es2015/common/taglist.component.d.ts +13 -1
- package/dist/es2015/common/taglist.component.js +102 -47
- package/dist/es2015/common/util.d.ts +17 -0
- package/dist/es2015/common/util.js +37 -0
- package/dist/es2015/dropdownlist/dropdownlist.component.d.ts +80 -17
- package/dist/es2015/dropdownlist/dropdownlist.component.js +391 -167
- package/dist/es2015/dropdowntrees/dropdowntree.component.d.ts +71 -13
- package/dist/es2015/dropdowntrees/dropdowntree.component.js +287 -99
- package/dist/es2015/dropdowntrees/multiselecttree.component.d.ts +72 -12
- package/dist/es2015/dropdowntrees/multiselecttree.component.js +319 -117
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/multiselect/multiselect.component.d.ts +53 -8
- package/dist/es2015/multiselect/multiselect.component.js +183 -70
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +1956 -837
- package/dist/fesm5/index.js +1558 -231
- package/dist/npm/autocomplete/autocomplete.component.js +119 -4
- package/dist/npm/comboboxes/combobox.component.js +140 -19
- package/dist/npm/comboboxes/multicolumncombobox.component.js +29 -9
- package/dist/npm/common/list.component.js +82 -4
- package/dist/npm/common/models/fillmode.js +6 -0
- package/dist/npm/common/models/list-type.js +6 -0
- package/dist/npm/common/models/rounded.js +6 -0
- package/dist/npm/common/models/size.js +6 -0
- package/dist/npm/common/searchbar.component.js +1 -1
- package/dist/npm/common/selection/selectable.directive.js +2 -2
- package/dist/npm/common/taglist.component.js +56 -3
- package/dist/npm/common/util.js +37 -0
- package/dist/npm/dropdownlist/dropdownlist.component.js +333 -52
- package/dist/npm/dropdowntrees/dropdowntree.component.js +274 -40
- package/dist/npm/dropdowntrees/multiselecttree.component.js +304 -43
- package/dist/npm/multiselect/multiselect.component.js +160 -33
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
- package/package.json +21 -17
|
@@ -170,6 +170,9 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
170
170
|
this._value = "";
|
|
171
171
|
this.valueChangeSubject = new rxjs_1.Subject();
|
|
172
172
|
this._isFocused = false;
|
|
173
|
+
this._size = 'medium';
|
|
174
|
+
this._rounded = 'medium';
|
|
175
|
+
this._fillMode = 'solid';
|
|
173
176
|
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
174
177
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
175
178
|
this.wrapper = this.hostElement.nativeElement;
|
|
@@ -420,12 +423,85 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
420
423
|
enumerable: true,
|
|
421
424
|
configurable: true
|
|
422
425
|
});
|
|
426
|
+
Object.defineProperty(AutoCompleteComponent.prototype, "size", {
|
|
427
|
+
get: function () {
|
|
428
|
+
return this._size;
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* Sets the size of the component.
|
|
432
|
+
*
|
|
433
|
+
* The possible values are:
|
|
434
|
+
* * `'small'`
|
|
435
|
+
* * `'medium'` (default)
|
|
436
|
+
* * `'large'`
|
|
437
|
+
* * `null`
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
set: function (size) {
|
|
441
|
+
this.renderer.removeClass(this.wrapper, util_1.getSizeClass('input', this.size));
|
|
442
|
+
if (size) {
|
|
443
|
+
this.renderer.addClass(this.wrapper, util_1.getSizeClass('input', size));
|
|
444
|
+
}
|
|
445
|
+
this._size = size;
|
|
446
|
+
},
|
|
447
|
+
enumerable: true,
|
|
448
|
+
configurable: true
|
|
449
|
+
});
|
|
450
|
+
Object.defineProperty(AutoCompleteComponent.prototype, "rounded", {
|
|
451
|
+
get: function () {
|
|
452
|
+
return this._rounded;
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
* Sets the border radius of the component.
|
|
456
|
+
*
|
|
457
|
+
* The possible values are:
|
|
458
|
+
* * `'small'`
|
|
459
|
+
* * `'medium'` (default)
|
|
460
|
+
* * `'large'`
|
|
461
|
+
* * `'full'`
|
|
462
|
+
* * `null`
|
|
463
|
+
*
|
|
464
|
+
*/
|
|
465
|
+
set: function (rounded) {
|
|
466
|
+
this.renderer.removeClass(this.wrapper, util_1.getRoundedClass(this.rounded));
|
|
467
|
+
if (rounded) {
|
|
468
|
+
this.renderer.addClass(this.wrapper, util_1.getRoundedClass(rounded));
|
|
469
|
+
}
|
|
470
|
+
this._rounded = rounded;
|
|
471
|
+
},
|
|
472
|
+
enumerable: true,
|
|
473
|
+
configurable: true
|
|
474
|
+
});
|
|
475
|
+
Object.defineProperty(AutoCompleteComponent.prototype, "fillMode", {
|
|
476
|
+
get: function () {
|
|
477
|
+
return this._fillMode;
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* Sets the fillMode of the component.
|
|
481
|
+
*
|
|
482
|
+
* The possible values are:
|
|
483
|
+
* * `'flat'`
|
|
484
|
+
* * `'solid'` (default)
|
|
485
|
+
* * `'outline'`
|
|
486
|
+
* * `null`
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
489
|
+
set: function (fillMode) {
|
|
490
|
+
this.renderer.removeClass(this.wrapper, util_1.getFillModeClass('input', this.fillMode));
|
|
491
|
+
if (fillMode) {
|
|
492
|
+
this.renderer.addClass(this.wrapper, util_1.getFillModeClass('input', fillMode));
|
|
493
|
+
}
|
|
494
|
+
this._fillMode = fillMode;
|
|
495
|
+
},
|
|
496
|
+
enumerable: true,
|
|
497
|
+
configurable: true
|
|
498
|
+
});
|
|
423
499
|
Object.defineProperty(AutoCompleteComponent.prototype, "isFocused", {
|
|
424
500
|
get: function () {
|
|
425
501
|
return this._isFocused;
|
|
426
502
|
},
|
|
427
503
|
set: function (isFocused) {
|
|
428
|
-
this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper, "k-
|
|
504
|
+
this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper, "k-focus");
|
|
429
505
|
this._isFocused = isFocused;
|
|
430
506
|
},
|
|
431
507
|
enumerable: true,
|
|
@@ -438,6 +514,13 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
438
514
|
enumerable: true,
|
|
439
515
|
configurable: true
|
|
440
516
|
});
|
|
517
|
+
Object.defineProperty(AutoCompleteComponent.prototype, "isLoading", {
|
|
518
|
+
get: function () {
|
|
519
|
+
return this.loading;
|
|
520
|
+
},
|
|
521
|
+
enumerable: true,
|
|
522
|
+
configurable: true
|
|
523
|
+
});
|
|
441
524
|
Object.defineProperty(AutoCompleteComponent.prototype, "dir", {
|
|
442
525
|
get: function () {
|
|
443
526
|
return this.direction;
|
|
@@ -456,6 +539,7 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
456
539
|
_this.setMessages();
|
|
457
540
|
});
|
|
458
541
|
this.setMessages();
|
|
542
|
+
this.setComponentClasses();
|
|
459
543
|
};
|
|
460
544
|
AutoCompleteComponent.prototype.ngOnDestroy = function () {
|
|
461
545
|
this.destroyPopup();
|
|
@@ -892,6 +976,17 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
892
976
|
});
|
|
893
977
|
});
|
|
894
978
|
};
|
|
979
|
+
AutoCompleteComponent.prototype.setComponentClasses = function () {
|
|
980
|
+
if (this.size) {
|
|
981
|
+
this.renderer.addClass(this.wrapper, util_1.getSizeClass('input', this.size));
|
|
982
|
+
}
|
|
983
|
+
if (this.rounded) {
|
|
984
|
+
this.renderer.addClass(this.wrapper, util_1.getRoundedClass(this.rounded));
|
|
985
|
+
}
|
|
986
|
+
if (this.fillMode) {
|
|
987
|
+
this.renderer.addClass(this.wrapper, util_1.getFillModeClass('input', this.fillMode));
|
|
988
|
+
}
|
|
989
|
+
};
|
|
895
990
|
var AutoCompleteComponent_1;
|
|
896
991
|
tslib_1.__decorate([
|
|
897
992
|
core_1.Input(),
|
|
@@ -971,6 +1066,21 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
971
1066
|
tslib_1.__metadata("design:type", Object),
|
|
972
1067
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
973
1068
|
], AutoCompleteComponent.prototype, "virtual", null);
|
|
1069
|
+
tslib_1.__decorate([
|
|
1070
|
+
core_1.Input(),
|
|
1071
|
+
tslib_1.__metadata("design:type", String),
|
|
1072
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1073
|
+
], AutoCompleteComponent.prototype, "size", null);
|
|
1074
|
+
tslib_1.__decorate([
|
|
1075
|
+
core_1.Input(),
|
|
1076
|
+
tslib_1.__metadata("design:type", String),
|
|
1077
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1078
|
+
], AutoCompleteComponent.prototype, "rounded", null);
|
|
1079
|
+
tslib_1.__decorate([
|
|
1080
|
+
core_1.Input(),
|
|
1081
|
+
tslib_1.__metadata("design:type", String),
|
|
1082
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1083
|
+
], AutoCompleteComponent.prototype, "fillMode", null);
|
|
974
1084
|
tslib_1.__decorate([
|
|
975
1085
|
core_1.Output(),
|
|
976
1086
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1044,15 +1154,20 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
1044
1154
|
tslib_1.__metadata("design:type", list_component_1.ListComponent)
|
|
1045
1155
|
], AutoCompleteComponent.prototype, "optionsList", void 0);
|
|
1046
1156
|
tslib_1.__decorate([
|
|
1047
|
-
core_1.HostBinding('class.k-widget'),
|
|
1048
1157
|
core_1.HostBinding('class.k-autocomplete'),
|
|
1158
|
+
core_1.HostBinding('class.k-input'),
|
|
1049
1159
|
tslib_1.__metadata("design:type", Boolean)
|
|
1050
1160
|
], AutoCompleteComponent.prototype, "widgetClasses", void 0);
|
|
1051
1161
|
tslib_1.__decorate([
|
|
1052
|
-
core_1.HostBinding('class.k-
|
|
1162
|
+
core_1.HostBinding('class.k-disabled'),
|
|
1053
1163
|
tslib_1.__metadata("design:type", Boolean),
|
|
1054
1164
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1055
1165
|
], AutoCompleteComponent.prototype, "isDisabled", null);
|
|
1166
|
+
tslib_1.__decorate([
|
|
1167
|
+
core_1.HostBinding('class.k-loading'),
|
|
1168
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
1169
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
1170
|
+
], AutoCompleteComponent.prototype, "isLoading", null);
|
|
1056
1171
|
tslib_1.__decorate([
|
|
1057
1172
|
core_1.HostBinding('attr.dir'),
|
|
1058
1173
|
tslib_1.__metadata("design:type", Object),
|
|
@@ -1082,7 +1197,7 @@ var AutoCompleteComponent = /** @class */ (function () {
|
|
|
1082
1197
|
}
|
|
1083
1198
|
],
|
|
1084
1199
|
selector: 'kendo-autocomplete',
|
|
1085
|
-
template: "\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText=\"kendo.autocomplete.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.autocomplete.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"suggestion\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n ></kendo-searchbar>\n <span\n *ngIf=\"!loading && !readonly && (clearButton && text?.length)\"\n class=\"k-
|
|
1200
|
+
template: "\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText=\"kendo.autocomplete.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.autocomplete.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"suggestion\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n ></kendo-searchbar>\n <span\n *ngIf=\"!loading && !readonly && (clearButton && text?.length)\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n [attr.title]=\"clearTitle\"\n role=\"button\"\n tabindex=\"-1\"\n (click)=\"clearValue($event)\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n <span *ngIf=\"loading\" class=\"k-icon k-i-loading\"></span>\n <ng-template #popupTemplate>\n <!--header template-->\n <ng-template *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate.templateRef\n }\">\n </ng-template>\n <!--list-->\n <kendo-list\n #optionsList\n [size]=\"size\"\n [rounded]=\"rounded\"\n [id]=\"listBoxId\"\n [optionPrefix]=\"optionPrefix\"\n [data]=\"data\"\n [textField]=\"valueField\"\n [valueField]=\"valueField\"\n [template]=\"template\"\n [groupTemplate]=\"groupTemplate\"\n [fixedGroupTemplate]=\"fixedGroupTemplate\"\n [height]=\"listHeight\"\n [show]=\"isOpen\"\n [virtual]=\"virtual\"\n (pageChange)=\"pageChange($event)\"\n >\n </kendo-list>\n <!--no-data template-->\n <div class=\"k-no-data\" *ngIf=\"data.length === 0\">\n <ng-template [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n <!--footer template-->\n <ng-template *ngIf=\"footerTemplate\"\n [templateContext]=\"{\n templateRef: footerTemplate.templateRef\n }\">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]=\"isOpen\">\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
1086
1201
|
}),
|
|
1087
1202
|
tslib_1.__param(10, core_1.Optional()), tslib_1.__param(10, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
|
|
1088
1203
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
|
|
@@ -62,7 +62,8 @@ exports.COMBOBOX_VALUE_ACCESSOR = {
|
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
64
|
var ComboBoxComponent = /** @class */ (function () {
|
|
65
|
-
function ComboBoxComponent(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, cdr, renderer,
|
|
65
|
+
function ComboBoxComponent(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, cdr, renderer, touchEnabled) {
|
|
66
|
+
this.wrapper = wrapper;
|
|
66
67
|
this.localization = localization;
|
|
67
68
|
this.popupService = popupService;
|
|
68
69
|
this.selectionService = selectionService;
|
|
@@ -72,7 +73,6 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
72
73
|
this.zone = zone;
|
|
73
74
|
this.cdr = cdr;
|
|
74
75
|
this.renderer = renderer;
|
|
75
|
-
this.hostElement = hostElement;
|
|
76
76
|
this.touchEnabled = touchEnabled;
|
|
77
77
|
this.selected = [];
|
|
78
78
|
/**
|
|
@@ -239,6 +239,9 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
239
239
|
this.valueSubject = new rxjs_1.Subject();
|
|
240
240
|
this.clearValueSubject = new rxjs_1.Subject();
|
|
241
241
|
this.subs = new rxjs_1.Subscription();
|
|
242
|
+
this._size = 'medium';
|
|
243
|
+
this._rounded = 'medium';
|
|
244
|
+
this._fillMode = 'solid';
|
|
242
245
|
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
243
246
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
244
247
|
this.data = [];
|
|
@@ -442,9 +445,89 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
442
445
|
enumerable: true,
|
|
443
446
|
configurable: true
|
|
444
447
|
});
|
|
445
|
-
Object.defineProperty(ComboBoxComponent.prototype, "
|
|
448
|
+
Object.defineProperty(ComboBoxComponent.prototype, "size", {
|
|
446
449
|
get: function () {
|
|
447
|
-
return this.
|
|
450
|
+
return this._size;
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
* Sets the size of the component.
|
|
454
|
+
*
|
|
455
|
+
* The possible values are:
|
|
456
|
+
* * `'small'`
|
|
457
|
+
* * `'medium'` (default)
|
|
458
|
+
* * `'large'`
|
|
459
|
+
* * `null`
|
|
460
|
+
*
|
|
461
|
+
*/
|
|
462
|
+
set: function (size) {
|
|
463
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
|
|
464
|
+
if (size) {
|
|
465
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
|
|
466
|
+
}
|
|
467
|
+
this._size = size;
|
|
468
|
+
},
|
|
469
|
+
enumerable: true,
|
|
470
|
+
configurable: true
|
|
471
|
+
});
|
|
472
|
+
Object.defineProperty(ComboBoxComponent.prototype, "rounded", {
|
|
473
|
+
get: function () {
|
|
474
|
+
return this._rounded;
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* Sets the border radius of the component.
|
|
478
|
+
*
|
|
479
|
+
* The possible values are:
|
|
480
|
+
* * `'small'`
|
|
481
|
+
* * `'medium'` (default)
|
|
482
|
+
* * `'large'`
|
|
483
|
+
* * `'full'`
|
|
484
|
+
* * `null`
|
|
485
|
+
*
|
|
486
|
+
*/
|
|
487
|
+
set: function (rounded) {
|
|
488
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
|
|
489
|
+
if (rounded) {
|
|
490
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
|
|
491
|
+
}
|
|
492
|
+
this._rounded = rounded;
|
|
493
|
+
},
|
|
494
|
+
enumerable: true,
|
|
495
|
+
configurable: true
|
|
496
|
+
});
|
|
497
|
+
Object.defineProperty(ComboBoxComponent.prototype, "fillMode", {
|
|
498
|
+
get: function () {
|
|
499
|
+
return this._fillMode;
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
* Sets the fillMode of the component.
|
|
503
|
+
*
|
|
504
|
+
* The possible values are:
|
|
505
|
+
* * `'flat'`
|
|
506
|
+
* * `'solid'` (default)
|
|
507
|
+
* * `'outline'`
|
|
508
|
+
* * `null`
|
|
509
|
+
*
|
|
510
|
+
*/
|
|
511
|
+
set: function (fillMode) {
|
|
512
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
|
|
513
|
+
if (fillMode) {
|
|
514
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
|
|
515
|
+
}
|
|
516
|
+
this._fillMode = fillMode;
|
|
517
|
+
},
|
|
518
|
+
enumerable: true,
|
|
519
|
+
configurable: true
|
|
520
|
+
});
|
|
521
|
+
Object.defineProperty(ComboBoxComponent.prototype, "isDisabled", {
|
|
522
|
+
get: function () {
|
|
523
|
+
return this.disabled;
|
|
524
|
+
},
|
|
525
|
+
enumerable: true,
|
|
526
|
+
configurable: true
|
|
527
|
+
});
|
|
528
|
+
Object.defineProperty(ComboBoxComponent.prototype, "isLoading", {
|
|
529
|
+
get: function () {
|
|
530
|
+
return this.loading;
|
|
448
531
|
},
|
|
449
532
|
enumerable: true,
|
|
450
533
|
configurable: true
|
|
@@ -461,7 +544,7 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
461
544
|
return this._isFocused;
|
|
462
545
|
},
|
|
463
546
|
set: function (value) {
|
|
464
|
-
this.renderer[value ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, "k-
|
|
547
|
+
this.renderer[value ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, "k-focus");
|
|
465
548
|
this._isFocused = value;
|
|
466
549
|
},
|
|
467
550
|
enumerable: true,
|
|
@@ -499,12 +582,13 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
499
582
|
configurable: true
|
|
500
583
|
});
|
|
501
584
|
ComboBoxComponent.prototype.ngOnInit = function () {
|
|
502
|
-
this.renderer.removeAttribute(this.
|
|
585
|
+
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
503
586
|
this.attachStreams();
|
|
504
587
|
this.createValueStream();
|
|
505
588
|
this.subscribeTouchEvents();
|
|
506
589
|
this.attachSelectClickHandler();
|
|
507
590
|
this.setMessages();
|
|
591
|
+
this.setComponentClasses();
|
|
508
592
|
};
|
|
509
593
|
ComboBoxComponent.prototype.createValueStream = function () {
|
|
510
594
|
var _this = this;
|
|
@@ -794,6 +878,16 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
794
878
|
enumerable: true,
|
|
795
879
|
configurable: true
|
|
796
880
|
});
|
|
881
|
+
Object.defineProperty(ComboBoxComponent.prototype, "selectButtonClasses", {
|
|
882
|
+
/**
|
|
883
|
+
* @hidden
|
|
884
|
+
*/
|
|
885
|
+
get: function () {
|
|
886
|
+
return (this.size ? util_1.getSizeClass('button', this.size) : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode + '-base' : '') + "\n ";
|
|
887
|
+
},
|
|
888
|
+
enumerable: true,
|
|
889
|
+
configurable: true
|
|
890
|
+
});
|
|
797
891
|
/**
|
|
798
892
|
* @hidden
|
|
799
893
|
*/
|
|
@@ -1025,7 +1119,7 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1025
1119
|
var currentText = this.searchbar.value;
|
|
1026
1120
|
var textHasChanged = currentText !== (util_1.getter(this.dataItem, this.textField) || '');
|
|
1027
1121
|
var valueHasChanged = unresolvedSelection || textHasChanged;
|
|
1028
|
-
var runInZone = valueHasChanged || kendo_angular_common_1.hasObservers(this.onBlur) || kendo_angular_common_1.hasObservers(this.close) || util_1.isUntouched(this.
|
|
1122
|
+
var runInZone = valueHasChanged || kendo_angular_common_1.hasObservers(this.onBlur) || kendo_angular_common_1.hasObservers(this.close) || util_1.isUntouched(this.wrapper.nativeElement);
|
|
1029
1123
|
if (runInZone) {
|
|
1030
1124
|
this.zone.run(function () {
|
|
1031
1125
|
if (valueHasChanged) {
|
|
@@ -1263,7 +1357,7 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1263
1357
|
// Roll up ComboBox on iOS when tapped outside
|
|
1264
1358
|
return _this.touchstartDisposeHandler = _this.renderer.listen(document, 'touchstart', function (e) {
|
|
1265
1359
|
var target = e.target;
|
|
1266
|
-
var isInDropDown = util_1.inDropDown(_this.
|
|
1360
|
+
var isInDropDown = util_1.inDropDown(_this.wrapper, target, _this.popupRef);
|
|
1267
1361
|
if (_this.isFocused && !isInDropDown) {
|
|
1268
1362
|
// Close popup and mobile keyboard if searchbar is focused
|
|
1269
1363
|
_this.zone.run(function () { return _this.blur(); });
|
|
@@ -1280,6 +1374,17 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1280
1374
|
var event = kendo_common_1.pointers ? 'pointerdown' : 'click';
|
|
1281
1375
|
this.selectClickDisposeHandler = this.renderer.listen(selectElement, event, this.selectClick.bind(this));
|
|
1282
1376
|
};
|
|
1377
|
+
ComboBoxComponent.prototype.setComponentClasses = function () {
|
|
1378
|
+
if (this.size) {
|
|
1379
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
|
|
1380
|
+
}
|
|
1381
|
+
if (this.rounded) {
|
|
1382
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
|
|
1383
|
+
}
|
|
1384
|
+
if (this.fillMode) {
|
|
1385
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1283
1388
|
var ComboBoxComponent_1;
|
|
1284
1389
|
tslib_1.__decorate([
|
|
1285
1390
|
core_1.Input(),
|
|
@@ -1376,6 +1481,21 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1376
1481
|
tslib_1.__metadata("design:type", Object),
|
|
1377
1482
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
1378
1483
|
], ComboBoxComponent.prototype, "virtual", null);
|
|
1484
|
+
tslib_1.__decorate([
|
|
1485
|
+
core_1.Input(),
|
|
1486
|
+
tslib_1.__metadata("design:type", String),
|
|
1487
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1488
|
+
], ComboBoxComponent.prototype, "size", null);
|
|
1489
|
+
tslib_1.__decorate([
|
|
1490
|
+
core_1.Input(),
|
|
1491
|
+
tslib_1.__metadata("design:type", String),
|
|
1492
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1493
|
+
], ComboBoxComponent.prototype, "rounded", null);
|
|
1494
|
+
tslib_1.__decorate([
|
|
1495
|
+
core_1.Input(),
|
|
1496
|
+
tslib_1.__metadata("design:type", String),
|
|
1497
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1498
|
+
], ComboBoxComponent.prototype, "fillMode", null);
|
|
1379
1499
|
tslib_1.__decorate([
|
|
1380
1500
|
core_1.Output(),
|
|
1381
1501
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1452,24 +1572,25 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1452
1572
|
core_1.ViewChild('optionsList', { static: false }),
|
|
1453
1573
|
tslib_1.__metadata("design:type", list_component_1.ListComponent)
|
|
1454
1574
|
], ComboBoxComponent.prototype, "optionsList", void 0);
|
|
1455
|
-
tslib_1.__decorate([
|
|
1456
|
-
core_1.ViewChild('wrapper', { static: true }),
|
|
1457
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1458
|
-
], ComboBoxComponent.prototype, "wrapper", void 0);
|
|
1459
1575
|
tslib_1.__decorate([
|
|
1460
1576
|
core_1.ViewChild('select', { static: true }),
|
|
1461
1577
|
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1462
1578
|
], ComboBoxComponent.prototype, "select", void 0);
|
|
1463
1579
|
tslib_1.__decorate([
|
|
1464
|
-
core_1.HostBinding('class.k-widget'),
|
|
1465
1580
|
core_1.HostBinding('class.k-combobox'),
|
|
1581
|
+
core_1.HostBinding('class.k-input'),
|
|
1466
1582
|
tslib_1.__metadata("design:type", Boolean)
|
|
1467
1583
|
], ComboBoxComponent.prototype, "widgetClasses", void 0);
|
|
1468
1584
|
tslib_1.__decorate([
|
|
1469
|
-
core_1.HostBinding('class.k-
|
|
1585
|
+
core_1.HostBinding('class.k-disabled'),
|
|
1586
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
1587
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
1588
|
+
], ComboBoxComponent.prototype, "isDisabled", null);
|
|
1589
|
+
tslib_1.__decorate([
|
|
1590
|
+
core_1.HostBinding('class.k-loading'),
|
|
1470
1591
|
tslib_1.__metadata("design:type", Boolean),
|
|
1471
1592
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1472
|
-
], ComboBoxComponent.prototype, "
|
|
1593
|
+
], ComboBoxComponent.prototype, "isLoading", null);
|
|
1473
1594
|
tslib_1.__decorate([
|
|
1474
1595
|
core_1.HostBinding('attr.dir'),
|
|
1475
1596
|
tslib_1.__metadata("design:type", Object),
|
|
@@ -1497,10 +1618,11 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1497
1618
|
}
|
|
1498
1619
|
],
|
|
1499
1620
|
selector: 'kendo-combobox',
|
|
1500
|
-
template: "\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText=\"kendo.combobox.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.combobox.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <
|
|
1621
|
+
template: "\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText=\"kendo.combobox.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.combobox.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"getSuggestion()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n ></kendo-searchbar>\n <span\n *ngIf=\"clearButton && !loading && !disabled && !readonly && text?.length\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n aria-hidden=\"true\"\n [attr.title]=\"clearTitle\"\n (click)=\"clearValue($event)\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n <button\n #select\n aria-hidden=\"true\"\n unselectable=\"on\"\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [ngClass]=\"selectButtonClasses\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-button-icon k-icon\" [ngClass]=\"buttonClasses\"></span>\n </button>\n <ng-template #popupTemplate>\n <!--header template-->\n <ng-template *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate.templateRef\n }\">\n </ng-template>\n <!--list-->\n <kendo-list\n #optionsList\n [size]=\"size\"\n [rounded]=\"rounded\"\n [id]=\"listBoxId\"\n [optionPrefix]=\"optionPrefix\"\n [data]=\"data\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [template]=\"template\"\n [groupTemplate]=\"groupTemplate\"\n [fixedGroupTemplate]=\"fixedGroupTemplate\"\n [height]=\"listHeight\"\n [show]=\"isOpen\"\n [virtual]=\"virtual\"\n (pageChange)=\"pageChange($event)\"\n >\n </kendo-list>\n <!--no-data template-->\n <div class=\"k-no-data\" *ngIf=\"data.length === 0\">\n <ng-template [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n <!--footer template-->\n <ng-template *ngIf=\"footerTemplate\"\n [templateContext]=\"{\n templateRef: footerTemplate.templateRef\n }\">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]=\"isOpen\">\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
1501
1622
|
}),
|
|
1502
1623
|
tslib_1.__param(10, core_1.Optional()), tslib_1.__param(10, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
|
|
1503
|
-
tslib_1.__metadata("design:paramtypes", [
|
|
1624
|
+
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
1625
|
+
kendo_angular_l10n_1.LocalizationService,
|
|
1504
1626
|
kendo_angular_popup_1.PopupService,
|
|
1505
1627
|
selection_service_1.SelectionService,
|
|
1506
1628
|
navigation_service_1.NavigationService,
|
|
@@ -1508,8 +1630,7 @@ var ComboBoxComponent = /** @class */ (function () {
|
|
|
1508
1630
|
data_service_1.DataService,
|
|
1509
1631
|
core_1.NgZone,
|
|
1510
1632
|
core_1.ChangeDetectorRef,
|
|
1511
|
-
core_1.Renderer2,
|
|
1512
|
-
core_1.ElementRef, Boolean])
|
|
1633
|
+
core_1.Renderer2, Boolean])
|
|
1513
1634
|
], ComboBoxComponent);
|
|
1514
1635
|
return ComboBoxComponent;
|
|
1515
1636
|
}());
|
|
@@ -26,8 +26,8 @@ var error_messages_1 = require("../common/constants/error-messages");
|
|
|
26
26
|
*/
|
|
27
27
|
var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
|
|
28
28
|
tslib_1.__extends(MultiColumnComboBoxComponent, _super);
|
|
29
|
-
function MultiColumnComboBoxComponent(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer,
|
|
30
|
-
var _this = _super.call(this, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer,
|
|
29
|
+
function MultiColumnComboBoxComponent(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, wrapper, touchEnabled) {
|
|
30
|
+
var _this = _super.call(this, wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, touchEnabled) || this;
|
|
31
31
|
/**
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
@@ -40,6 +40,16 @@ var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
|
|
|
40
40
|
return _this;
|
|
41
41
|
}
|
|
42
42
|
MultiColumnComboBoxComponent_1 = MultiColumnComboBoxComponent;
|
|
43
|
+
Object.defineProperty(MultiColumnComboBoxComponent.prototype, "isDisabled", {
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
get: function () {
|
|
48
|
+
return this.disabled;
|
|
49
|
+
},
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
43
53
|
Object.defineProperty(MultiColumnComboBoxComponent.prototype, "header", {
|
|
44
54
|
/**
|
|
45
55
|
* @hidden
|
|
@@ -62,19 +72,24 @@ var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
|
|
|
62
72
|
enumerable: true,
|
|
63
73
|
configurable: true
|
|
64
74
|
});
|
|
75
|
+
Object.defineProperty(MultiColumnComboBoxComponent.prototype, "tableSizeClass", {
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
get: function () {
|
|
80
|
+
return "" + (this.size ? util_1.getSizeClass('table', this.size) : '');
|
|
81
|
+
},
|
|
82
|
+
enumerable: true,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
65
85
|
Object.defineProperty(MultiColumnComboBoxComponent.prototype, "listContainerClasses", {
|
|
66
86
|
/**
|
|
67
87
|
* @hidden
|
|
68
88
|
*/
|
|
69
89
|
get: function () {
|
|
70
90
|
return [
|
|
71
|
-
'k-list-container',
|
|
72
91
|
'k-popup',
|
|
73
|
-
'k-
|
|
74
|
-
'k-group',
|
|
75
|
-
'k-dropdowngrid-popup',
|
|
76
|
-
'k-popup-flush',
|
|
77
|
-
'k-state-border-up'
|
|
92
|
+
'k-dropdowngrid-popup'
|
|
78
93
|
].concat(this.popupSettings.popupClass || []);
|
|
79
94
|
},
|
|
80
95
|
enumerable: true,
|
|
@@ -157,6 +172,11 @@ var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
|
|
|
157
172
|
core_1.HostBinding('class.k-dropdowngrid'),
|
|
158
173
|
tslib_1.__metadata("design:type", Boolean)
|
|
159
174
|
], MultiColumnComboBoxComponent.prototype, "hostClasses", void 0);
|
|
175
|
+
tslib_1.__decorate([
|
|
176
|
+
core_1.HostBinding('class.k-disabled'),
|
|
177
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
178
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
179
|
+
], MultiColumnComboBoxComponent.prototype, "isDisabled", null);
|
|
160
180
|
tslib_1.__decorate([
|
|
161
181
|
core_1.ContentChildren(combobox_column_component_1.ComboBoxColumnComponent),
|
|
162
182
|
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
@@ -193,7 +213,7 @@ var MultiColumnComboBoxComponent = /** @class */ (function (_super) {
|
|
|
193
213
|
}
|
|
194
214
|
],
|
|
195
215
|
selector: 'kendo-multicolumncombobox',
|
|
196
|
-
template: "\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText=\"kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.multicolumncombobox.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <
|
|
216
|
+
template: "\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText=\"kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items\"\n noDataText=\"NO DATA FOUND\"\n\n i18n-clearTitle=\"kendo.multicolumncombobox.clearTitle|The title of the clear button\"\n clearTitle=\"clear\"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]=\"'combobox'\"\n [id]=\"focusableId\"\n [listId]=\"listBoxId\"\n [activeDescendant]=\"activeDescendant\"\n [noDataLabel]=\"noDataLabel\"\n [userInput]=\"text\"\n [suggestedText]=\"getSuggestion()\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabIndex]=\"tabIndex\"\n [popupOpen]=\"isOpen\"\n [placeholder]=\"placeholder\"\n (onNavigate)=\"handleNavigate($event)\"\n (valueChange)=\"searchBarChange($event)\"\n (onBlur)=\"handleBlur()\"\n (onFocus)=\"handleFocus()\"\n >\n </kendo-searchbar>\n\n <span\n *ngIf=\"clearButton && !loading && !disabled && !readonly && text?.length\"\n class=\"k-clear-value\"\n [style.visibility]=\"clearButtonVisiblity\"\n aria-hidden=\"true\"\n [attr.title]=\"clearTitle\"\n (click)=\"clearValue($event)\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-icon k-i-x\"></span>\n </span>\n\n <button\n #select\n tabindex=\"-1\"\n aria-hidden=\"true\"\n unselectable=\"on\"\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [ngClass]=\"selectButtonClasses\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventEventDefault\n }\"\n >\n <span class=\"k-button-icon k-icon\" [ngClass]=\"buttonClasses\"></span>\n </button>\n\n <ng-template #popupTemplate>\n <!--user-defined header template -->\n <ng-template\n *ngIf=\"headerTemplate\"\n [templateContext]=\"{\n templateRef: headerTemplate?.templateRef\n }\"\n >\n </ng-template>\n\n <!--data table-->\n <div class=\"k-data-table\" [ngClass]=\"tableSizeClass\">\n\n <!--grid header-->\n <div\n #header\n class=\"k-table-header\"\n >\n <div class=\"k-table-header-wrap\">\n <table class=\"k-table\" role=\"presentation\">\n <colgroup>\n <ng-container *ngFor=\"let column of columns\">\n <col\n *ngIf=\"!column.hidden && column.matchesMedia\"\n [style.width.px]=\"column.width\"\n />\n </ng-container>\n </colgroup>\n <thead class=\"k-table-thead\">\n <tr class=\"k-table-row\">\n <ng-container *ngFor=\"let column of columns\">\n <th\n *ngIf=\"!column.hidden && column.matchesMedia\"\n class=\"k-table-th\"\n [ngStyle]=\"column.headerStyle\"\n [ngClass]=\"column.headerClass\"\n >\n <ng-container *ngIf=\"!column.headerTemplate\">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf=\"column.headerTemplate\"\n [templateContext]=\"{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }\"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n <!-- item template -->\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor=\"let column of columns\">\n <span\n *ngIf=\"!column.hidden && column.matchesMedia\"\n class=\"k-table-td\"\n [ngClass]=\"column.class\"\n [style.width.px]=\"column.width\"\n [ngStyle]=\"column.style\"\n >\n <ng-container *ngIf=\"!column.cellTemplate\">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf=\"column.cellTemplate\"\n [templateContext]=\"{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }\"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n <!--list-->\n <kendo-list\n #optionsList\n [id]=\"listBoxId\"\n [optionPrefix]=\"optionPrefix\"\n [data]=\"data\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [template]=\"{ templateRef: rowTemplate }\"\n [groupTemplate]=\"groupTemplate\"\n [fixedGroupTemplate]=\"fixedGroupTemplate\"\n [height]=\"listHeight\"\n [show]=\"isOpen\"\n [virtual]=\"virtual\"\n [type]=\"'dropdowngrid'\"\n (pageChange)=\"pageChange($event)\"\n (listResize)=\"updateHeaderPadding(header)\"\n >\n </kendo-list>\n\n <!--no-data template-->\n <div\n class=\"k-no-data\"\n *ngIf=\"data.length === 0\"\n >\n <ng-template\n [ngIf]=\"noDataTemplate\"\n [templateContext]=\"{\n templateRef: noDataTemplate?.templateRef\n }\"\n >\n </ng-template>\n <ng-template [ngIf]=\"!noDataTemplate\">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n <!--user-defined footer template-->\n <ng-container *ngIf=\"footerTemplate\">\n <div class=\"k-table-footer\">\n <table class=\"k-table\">\n <tfoot class=\"k-table-tfoot\">\n <tr class=\"k-table-row\">\n <td class=\"k-table-td\">\n <ng-template\n [templateContext]=\"{\n templateRef: footerTemplate.templateRef\n }\"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf=\"isOpen\"\n (resize)=\"onResize()\"\n >\n </kendo-resize-sensor>\n\n <!-- when the popupSettings.appendTo value is set to 'component', this container is used -->\n <ng-container #container></ng-container>\n "
|
|
197
217
|
}),
|
|
198
218
|
tslib_1.__param(10, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
|
|
199
219
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
|