@progress/kendo-angular-dropdowns 17.0.0-develop.8 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -99
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.module.d.ts +1 -1
- package/comboboxes/combobox-column/combobox-column.component.d.ts +1 -1
- package/comboboxes/combobox.component.d.ts +1 -1
- package/comboboxes/combobox.module.d.ts +1 -1
- package/common/action-sheet.component.d.ts +1 -1
- package/common/disabled-items/item-disabled.d.ts +1 -1
- package/common/filter-input.directive.d.ts +1 -1
- package/common/filtering/filter.directive.d.ts +1 -1
- package/common/list.component.d.ts +1 -1
- package/common/localization/messages.d.ts +1 -1
- package/common/models/direction.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/list-type.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/searchbar.component.d.ts +1 -1
- package/common/selection/selectable.directive.d.ts +1 -1
- package/common/shared-events.directive.d.ts +1 -1
- package/common/taglist.component.d.ts +2 -2
- package/common/util.d.ts +2 -2
- package/dropdownlist/dropdownlist.component.d.ts +1 -1
- package/dropdowns.module.d.ts +1 -1
- package/dropdowntrees/checked-state/base-check.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/check-all.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/check.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/dropdowntree.component.d.ts +1 -1
- package/dropdowntrees/expanded-state/expand.directive.d.ts +1 -1
- package/dropdowntrees/multiselecttree.component.d.ts +1 -1
- package/dropdowntrees/summary-tag/summary-tag.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +235 -173
- package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +11 -11
- package/{esm2020 → esm2022}/comboboxes/combobox-column/column-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/comboboxes/combobox-column/column-header-template.directive.mjs +4 -3
- package/esm2022/comboboxes/combobox-column/combobox-column.component.mjs +105 -0
- package/{esm2020 → esm2022}/comboboxes/combobox.component.mjs +326 -248
- package/{esm2020 → esm2022}/comboboxes/combobox.module.mjs +11 -11
- package/{esm2020 → esm2022}/comboboxes/multicolumncombobox.component.mjs +53 -48
- package/{esm2020 → esm2022}/common/action-sheet.component.mjs +26 -14
- package/{esm2020 → esm2022}/common/data.service.mjs +8 -7
- package/{esm2020 → esm2022}/common/disabled-items/disabled-items.service.mjs +6 -4
- package/{esm2020 → esm2022}/common/filter-input.directive.mjs +6 -3
- package/{esm2020 → esm2022}/common/filtering/filter.directive.mjs +20 -13
- package/{esm2020 → esm2022}/common/filtering/filterable-component.mjs +21 -0
- package/{esm2020 → esm2022}/common/list-item.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/list.component.mjs +72 -36
- package/{esm2020 → esm2022}/common/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/common/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/common/localization/messages.mjs +65 -0
- package/{esm2020 → esm2022}/common/models/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/common/models/remove-tag-event.mjs +4 -0
- package/{esm2020 → esm2022}/common/navigation/navigation.service.mjs +27 -23
- package/{esm2020 → esm2022}/common/searchbar.component.mjs +45 -28
- package/{esm2020 → esm2022}/common/selection/selectable.directive.mjs +9 -5
- package/{esm2020 → esm2022}/common/selection/selection.service.mjs +13 -10
- package/{esm2020 → esm2022}/common/shared-events.directive.mjs +13 -7
- package/{esm2020 → esm2022}/common/taglist.component.mjs +36 -27
- package/{esm2020 → esm2022}/common/templates/custom-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/fixed-group-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/group-tag-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/group-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/no-data-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/tag-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/common/templates/value-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/dropdownlist/dropdownlist.component.mjs +259 -184
- package/{esm2020 → esm2022}/dropdownlist/dropdownlist.module.mjs +8 -8
- package/esm2022/dropdowns.module.mjs +87 -0
- package/{esm2020 → esm2022}/dropdowntrees/checked-state/base-check.directive.mjs +10 -3
- package/{esm2020 → esm2022}/dropdowntrees/checked-state/check-all.directive.mjs +38 -21
- package/{esm2020 → esm2022}/dropdowntrees/checked-state/check.directive.mjs +31 -15
- package/{esm2020 → esm2022}/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.mjs +12 -7
- package/{esm2020 → esm2022}/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.mjs +8 -7
- package/{esm2020 → esm2022}/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.mjs +12 -7
- package/{esm2020 → esm2022}/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.mjs +8 -7
- package/{esm2020 → esm2022}/dropdowntrees/dropdowntree.component.mjs +309 -232
- package/{esm2020 → esm2022}/dropdowntrees/dropdowntrees.module.mjs +12 -12
- package/{esm2020 → esm2022}/dropdowntrees/expanded-state/expand.directive.mjs +8 -7
- package/{esm2020 → esm2022}/dropdowntrees/lookup/lookup.service.mjs +4 -6
- package/{esm2020 → esm2022}/dropdowntrees/multiselecttree.component.mjs +324 -254
- package/{esm2020 → esm2022}/dropdowntrees/summary-tag/summary-tag.directive.mjs +8 -7
- package/{esm2020 → esm2022}/dropdowntrees/templates/node-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/index.mjs +0 -2
- package/{esm2020 → esm2022}/multiselect/multiselect.component.mjs +328 -254
- package/{esm2020 → esm2022}/multiselect/multiselect.module.mjs +11 -11
- package/{esm2020 → esm2022}/multiselect/summary-tag.directive.mjs +8 -7
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{fesm2020 → fesm2022}/progress-kendo-angular-dropdowns.mjs +2528 -1927
- package/index.d.ts +0 -2
- package/multiselect/multiselect.component.d.ts +1 -1
- package/multiselect/multiselect.module.d.ts +1 -1
- package/multiselect/summary-tag.directive.d.ts +1 -1
- package/package.json +18 -24
- package/schematics/ngAdd/index.js +3 -3
- package/common/shared-directives.module.d.ts +0 -37
- package/common/shared.module.d.ts +0 -29
- package/esm2020/comboboxes/combobox-column/combobox-column.component.mjs +0 -60
- package/esm2020/common/localization/messages.mjs +0 -33
- package/esm2020/common/shared-directives.module.mjs +0 -84
- package/esm2020/common/shared.module.mjs +0 -68
- package/esm2020/dropdowns.module.mjs +0 -87
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +0 -17609
- /package/{esm2020 → esm2022}/comboboxes/combobox-column/util.mjs +0 -0
- /package/{esm2020 → esm2022}/common/constants/error-messages.mjs +0 -0
- /package/{esm2020 → esm2022}/common/disabled-items/item-disabled.mjs +0 -0
- /package/{esm2020 → esm2022}/common/filtering/filter-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/checkboxes-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/list-type.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/page-change-event.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/popup-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/virtualization-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/navigation/navigation-action.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdowntrees/checked-state/checkable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdowntrees/checked-state/checked-item.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdowntrees/lookup/lookup.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-dropdowns.mjs +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { KENDO_COMBOBOX, KENDO_MULTICOLUMNCOMBOBOX } from '../directives';
|
|
7
|
-
import {
|
|
7
|
+
import { KENDO_ADORNMENTS, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
8
|
import { IconsService } from '@progress/kendo-angular-icons';
|
|
9
9
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
@@ -43,19 +43,19 @@ import * as i14 from "./combobox-column/column-cell-template.directive";
|
|
|
43
43
|
* - `PrefixTemplateDirective`—The prefix template directive.
|
|
44
44
|
*/
|
|
45
45
|
export class ComboBoxModule {
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, imports: [i1.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i12.ComboBoxColumnComponent, i13.ColumnHeaderTemplateDirective, i14.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent], exports: [i1.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i12.ComboBoxColumnComponent, i13.ColumnHeaderTemplateDirective, i14.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent] });
|
|
48
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, providers: [
|
|
49
|
+
PopupService,
|
|
50
|
+
ResizeBatchService,
|
|
51
|
+
IconsService
|
|
52
|
+
], imports: [i1.ComboBoxComponent, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i10.SeparatorComponent, i10.SeparatorComponent] });
|
|
46
53
|
}
|
|
47
|
-
|
|
48
|
-
ComboBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ComboBoxModule, imports: [i1.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i12.ComboBoxColumnComponent, i13.ColumnHeaderTemplateDirective, i14.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent], exports: [i1.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i12.ComboBoxColumnComponent, i13.ColumnHeaderTemplateDirective, i14.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, AdornmentsModule] });
|
|
49
|
-
ComboBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ComboBoxModule, providers: [
|
|
50
|
-
PopupService,
|
|
51
|
-
ResizeBatchService,
|
|
52
|
-
IconsService
|
|
53
|
-
], imports: [i1.ComboBoxComponent, i9.CustomMessagesComponent, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i12.ComboBoxColumnComponent, i9.CustomMessagesComponent, i10.SeparatorComponent, AdornmentsModule] });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ComboBoxModule, decorators: [{
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
|
-
imports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX],
|
|
58
|
-
exports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX,
|
|
57
|
+
imports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX, ...KENDO_ADORNMENTS],
|
|
58
|
+
exports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX, ...KENDO_ADORNMENTS],
|
|
59
59
|
providers: [
|
|
60
60
|
PopupService,
|
|
61
61
|
ResizeBatchService,
|
|
@@ -35,29 +35,25 @@ import * as i6 from "../common/data.service";
|
|
|
35
35
|
* Represents the [Kendo UI MultiColumnComboBox component for Angular]({% slug overview_multicolumncombobox %}).
|
|
36
36
|
*/
|
|
37
37
|
export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*/
|
|
48
|
-
this.hostClasses = true;
|
|
49
|
-
this.removeWindowResizeListener = noop;
|
|
50
|
-
// the row height in @progress/kendo-theme-default
|
|
51
|
-
this.defaultVirtualItemHeight = 36;
|
|
52
|
-
// use a smaller virtual page size as columns with multiple cells can cause poor performance
|
|
53
|
-
this.defaultVirtualPageSize = 30;
|
|
54
|
-
}
|
|
38
|
+
hostElement;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
animationDuration = animationDuration;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
hostClasses = true;
|
|
55
47
|
/**
|
|
56
48
|
* @hidden
|
|
57
49
|
*/
|
|
58
50
|
get isDisabled() {
|
|
59
51
|
return this.disabled;
|
|
60
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* A query list of all declared columns.
|
|
55
|
+
*/
|
|
56
|
+
columns;
|
|
61
57
|
/**
|
|
62
58
|
* @hidden
|
|
63
59
|
*/
|
|
@@ -72,6 +68,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
72
68
|
const max = isNaN(width) ? width : `${width}px`;
|
|
73
69
|
return { min, max };
|
|
74
70
|
}
|
|
71
|
+
removeWindowResizeListener = noop;
|
|
75
72
|
/**
|
|
76
73
|
* @hidden
|
|
77
74
|
*/
|
|
@@ -84,6 +81,14 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
84
81
|
get listContainerClasses() {
|
|
85
82
|
return ['k-popup', 'k-dropdowngrid-popup'].concat(this.popupSettings.popupClass || []);
|
|
86
83
|
}
|
|
84
|
+
constructor(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, wrapper, injector, hostElement) {
|
|
85
|
+
super(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, injector, hostElement);
|
|
86
|
+
this.hostElement = hostElement;
|
|
87
|
+
// the row height in @progress/kendo-theme-default
|
|
88
|
+
this.defaultVirtualItemHeight = 36;
|
|
89
|
+
// use a smaller virtual page size as columns with multiple cells can cause poor performance
|
|
90
|
+
this.defaultVirtualPageSize = 30;
|
|
91
|
+
}
|
|
87
92
|
ngAfterViewInit() {
|
|
88
93
|
this.updateColumnsMediaState();
|
|
89
94
|
this.addWindowResizeListener();
|
|
@@ -159,36 +164,35 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
159
164
|
}
|
|
160
165
|
});
|
|
161
166
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
], queries: [{ propertyName: "columns", predicate: ComboBoxColumnComponent }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
168
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultiColumnComboBoxComponent, isStandalone: true, selector: "kendo-multicolumncombobox", host: { properties: { "class.k-dropdowngrid": "this.hostClasses", "class.k-disabled": "this.isDisabled" } }, providers: [
|
|
169
|
+
SelectionService,
|
|
170
|
+
DataService,
|
|
171
|
+
NavigationService,
|
|
172
|
+
DisabledItemsService,
|
|
173
|
+
LocalizationService,
|
|
174
|
+
{
|
|
175
|
+
provide: L10N_PREFIX,
|
|
176
|
+
useValue: 'kendo.multicolumncombobox',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
multi: true,
|
|
180
|
+
provide: NG_VALUE_ACCESSOR,
|
|
181
|
+
useExisting: forwardRef(() => MultiColumnComboBoxComponent),
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
provide: KendoInput,
|
|
185
|
+
useExisting: forwardRef(() => MultiColumnComboBoxComponent),
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
provide: FilterableComponent,
|
|
189
|
+
useExisting: forwardRef(() => MultiColumnComboBoxComponent),
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
provide: MultiTabStop,
|
|
193
|
+
useExisting: forwardRef(() => MultiColumnComboBoxComponent),
|
|
194
|
+
},
|
|
195
|
+
], queries: [{ propertyName: "columns", predicate: ComboBoxColumnComponent }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
192
196
|
<ng-container
|
|
193
197
|
kendoMultiColumnComboBoxLocalizedMessages
|
|
194
198
|
i18n-noDataText="
|
|
@@ -438,7 +442,8 @@ MultiColumnComboBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
438
442
|
</div>
|
|
439
443
|
</ng-template>
|
|
440
444
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ResponsiveRendererComponent, selector: "responsive-renderer", inputs: ["title", "showActionButtons", "subtitle", "size", "showTextInput", "sharedPopupActionSheetTemplate", "isActionSheetExpanded", "text", "placeholder"], outputs: ["closePopup", "textInputChange", "navigate", "onExpand", "onCollapse", "onApply", "onCancel"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "isActionSheetExpanded", "showStickyHeader", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
441
|
-
|
|
445
|
+
}
|
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, decorators: [{
|
|
442
447
|
type: Component,
|
|
443
448
|
args: [{
|
|
444
449
|
providers: [
|
|
@@ -17,19 +17,31 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
export class ResponsiveRendererComponent {
|
|
20
|
+
localization;
|
|
21
|
+
title;
|
|
22
|
+
showActionButtons;
|
|
23
|
+
subtitle;
|
|
24
|
+
size;
|
|
25
|
+
showTextInput;
|
|
26
|
+
sharedPopupActionSheetTemplate;
|
|
27
|
+
isActionSheetExpanded;
|
|
28
|
+
text;
|
|
29
|
+
placeholder;
|
|
30
|
+
closePopup = new EventEmitter();
|
|
31
|
+
textInputChange = new EventEmitter();
|
|
32
|
+
navigate = new EventEmitter();
|
|
33
|
+
onExpand = new EventEmitter();
|
|
34
|
+
onCollapse = new EventEmitter();
|
|
35
|
+
onApply = new EventEmitter();
|
|
36
|
+
onCancel = new EventEmitter();
|
|
37
|
+
actionSheet;
|
|
38
|
+
actionSheetSearchBar;
|
|
20
39
|
constructor(localization) {
|
|
21
40
|
this.localization = localization;
|
|
22
|
-
this.closePopup = new EventEmitter();
|
|
23
|
-
this.textInputChange = new EventEmitter();
|
|
24
|
-
this.navigate = new EventEmitter();
|
|
25
|
-
this.onExpand = new EventEmitter();
|
|
26
|
-
this.onCollapse = new EventEmitter();
|
|
27
|
-
this.onApply = new EventEmitter();
|
|
28
|
-
this.onCancel = new EventEmitter();
|
|
29
|
-
this.searchBarValue = '';
|
|
30
|
-
this.animationDuration = animationDuration;
|
|
31
|
-
this.xIcon = xIcon;
|
|
32
41
|
}
|
|
42
|
+
searchBarValue = '';
|
|
43
|
+
animationDuration = animationDuration;
|
|
44
|
+
xIcon = xIcon;
|
|
33
45
|
messageFor(key) {
|
|
34
46
|
return this.localization.get(key);
|
|
35
47
|
}
|
|
@@ -37,9 +49,8 @@ export class ResponsiveRendererComponent {
|
|
|
37
49
|
this.searchBarValue = value;
|
|
38
50
|
this.textInputChange.emit(value);
|
|
39
51
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
ResponsiveRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ResponsiveRendererComponent, isStandalone: true, selector: "responsive-renderer", inputs: { title: "title", showActionButtons: "showActionButtons", subtitle: "subtitle", size: "size", showTextInput: "showTextInput", sharedPopupActionSheetTemplate: "sharedPopupActionSheetTemplate", isActionSheetExpanded: "isActionSheetExpanded", text: "text", placeholder: "placeholder" }, outputs: { closePopup: "closePopup", textInputChange: "textInputChange", navigate: "navigate", onExpand: "onExpand", onCollapse: "onCollapse", onApply: "onApply", onCancel: "onCancel" }, viewQueries: [{ propertyName: "actionSheet", first: true, predicate: ActionSheetComponent, descendants: true }, { propertyName: "actionSheetSearchBar", first: true, predicate: ["actionSheetSearchBar"], descendants: true }], ngImport: i0, template: `
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsiveRendererComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ResponsiveRendererComponent, isStandalone: true, selector: "responsive-renderer", inputs: { title: "title", showActionButtons: "showActionButtons", subtitle: "subtitle", size: "size", showTextInput: "showTextInput", sharedPopupActionSheetTemplate: "sharedPopupActionSheetTemplate", isActionSheetExpanded: "isActionSheetExpanded", text: "text", placeholder: "placeholder" }, outputs: { closePopup: "closePopup", textInputChange: "textInputChange", navigate: "navigate", onExpand: "onExpand", onCollapse: "onCollapse", onApply: "onApply", onCancel: "onCancel" }, viewQueries: [{ propertyName: "actionSheet", first: true, predicate: ActionSheetComponent, descendants: true }, { propertyName: "actionSheetSearchBar", first: true, predicate: ["actionSheetSearchBar"], descendants: true }], ngImport: i0, template: `
|
|
43
54
|
<kendo-actionsheet
|
|
44
55
|
#actionSheet
|
|
45
56
|
[animation]="{ duration: animationDuration }"
|
|
@@ -120,7 +131,8 @@ ResponsiveRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
120
131
|
</ng-template>
|
|
121
132
|
</kendo-actionsheet>
|
|
122
133
|
`, isInline: true, dependencies: [{ kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "[kendoTextBoxPrefixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: IconComponent, selector: "kendo-icon", inputs: ["name"], exportAs: ["kendoIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
123
|
-
|
|
134
|
+
}
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResponsiveRendererComponent, decorators: [{
|
|
124
136
|
type: Component,
|
|
125
137
|
args: [{
|
|
126
138
|
selector: 'responsive-renderer',
|
|
@@ -9,10 +9,11 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class DataService {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
grouped = false;
|
|
13
|
+
groupIndices = [];
|
|
14
|
+
view;
|
|
15
|
+
_data;
|
|
16
|
+
_flatData;
|
|
16
17
|
set data(data) {
|
|
17
18
|
this._data = data;
|
|
18
19
|
this.grouped = this.isGrouped(data);
|
|
@@ -239,9 +240,9 @@ export class DataService {
|
|
|
239
240
|
}
|
|
240
241
|
return flat;
|
|
241
242
|
}
|
|
243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
244
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataService });
|
|
242
245
|
}
|
|
243
|
-
|
|
244
|
-
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataService });
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataService, decorators: [{
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataService, decorators: [{
|
|
246
247
|
type: Injectable
|
|
247
248
|
}] });
|
|
@@ -11,9 +11,11 @@ import * as i1 from "../data.service";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class DisabledItemsService {
|
|
14
|
+
dataService;
|
|
15
|
+
defaultItem;
|
|
16
|
+
itemDisabled = null;
|
|
14
17
|
constructor(dataService) {
|
|
15
18
|
this.dataService = dataService;
|
|
16
|
-
this.itemDisabled = null;
|
|
17
19
|
}
|
|
18
20
|
isIndexDisabled(index) {
|
|
19
21
|
if (this.itemDisabled) {
|
|
@@ -37,9 +39,9 @@ export class DisabledItemsService {
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisabledItemsService, deps: [{ token: i1.DataService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisabledItemsService });
|
|
40
44
|
}
|
|
41
|
-
|
|
42
|
-
DisabledItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DisabledItemsService });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DisabledItemsService, decorators: [{
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisabledItemsService, decorators: [{
|
|
44
46
|
type: Injectable
|
|
45
47
|
}], ctorParameters: function () { return [{ type: i1.DataService }]; } });
|
|
@@ -8,6 +8,9 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class FilterInputDirective {
|
|
11
|
+
element;
|
|
12
|
+
zone;
|
|
13
|
+
focused;
|
|
11
14
|
constructor(element, zone) {
|
|
12
15
|
this.element = element;
|
|
13
16
|
this.zone = zone;
|
|
@@ -20,10 +23,10 @@ export class FilterInputDirective {
|
|
|
20
23
|
nextTick(fn) {
|
|
21
24
|
this.zone.runOutsideAngular(() => setTimeout(fn));
|
|
22
25
|
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FilterInputDirective, isStandalone: true, selector: "[filterInput]", inputs: { focused: ["filterInput", "focused"] }, usesOnChanges: true, ngImport: i0 });
|
|
23
28
|
}
|
|
24
|
-
|
|
25
|
-
FilterInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FilterInputDirective, isStandalone: true, selector: "[filterInput]", inputs: { focused: ["filterInput", "focused"] }, usesOnChanges: true, ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterInputDirective, decorators: [{
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterInputDirective, decorators: [{
|
|
27
30
|
type: Directive,
|
|
28
31
|
args: [{
|
|
29
32
|
selector: '[filterInput]' // eslint-disable-line
|
|
@@ -35,16 +35,7 @@ const DEFAULT_FILTER_SETTINGS = {
|
|
|
35
35
|
* > Currently, the built-in filtering does not work with [grouped data]({% slug api_kendo-data-query_groupby %}).
|
|
36
36
|
*/
|
|
37
37
|
export class FilterDirective {
|
|
38
|
-
|
|
39
|
-
this.component = component;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*
|
|
43
|
-
* Sets whether the filtering functionality is enabled on component init.
|
|
44
|
-
*/
|
|
45
|
-
this.filterable = true;
|
|
46
|
-
this._data = [];
|
|
47
|
-
}
|
|
38
|
+
component;
|
|
48
39
|
/**
|
|
49
40
|
* The initial data that will be used as a source array for the filtering operations.
|
|
50
41
|
*/
|
|
@@ -54,6 +45,22 @@ export class FilterDirective {
|
|
|
54
45
|
get data() {
|
|
55
46
|
return this._data;
|
|
56
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* The configuration object which sets the behavior of the `kendoDropDownFilter` directive.
|
|
50
|
+
* If no [DropDownFilterSettings]({% slug api_dropdowns_dropdownfiltersettings %}) object is provided to this input, the directive will use the default interface settings.
|
|
51
|
+
*/
|
|
52
|
+
rawSettings;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*
|
|
56
|
+
* Sets whether the filtering functionality is enabled on component init.
|
|
57
|
+
*/
|
|
58
|
+
filterable = true;
|
|
59
|
+
_data = [];
|
|
60
|
+
filterChangeSubscription;
|
|
61
|
+
constructor(component) {
|
|
62
|
+
this.component = component;
|
|
63
|
+
}
|
|
57
64
|
ngOnInit() {
|
|
58
65
|
this.component.filterable = this.filterable;
|
|
59
66
|
this.filterChangeSubscription = this.component.filterChange
|
|
@@ -108,10 +115,10 @@ export class FilterDirective {
|
|
|
108
115
|
const providedFields = isPresent(settings) && typeof settings === 'object' ? settings.fields : [];
|
|
109
116
|
return Object.assign({}, DEFAULT_FILTER_SETTINGS, settings, { fields: this.getFilterFields(providedFields) });
|
|
110
117
|
}
|
|
118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterDirective, deps: [{ token: i1.FilterableComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
119
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FilterDirective, isStandalone: true, selector: "[kendoDropDownFilter]", inputs: { data: "data", rawSettings: ["kendoDropDownFilter", "rawSettings"], filterable: "filterable" }, ngImport: i0 });
|
|
111
120
|
}
|
|
112
|
-
|
|
113
|
-
FilterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FilterDirective, isStandalone: true, selector: "[kendoDropDownFilter]", inputs: { data: "data", rawSettings: ["kendoDropDownFilter", "rawSettings"], filterable: "filterable" }, ngImport: i0 });
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterDirective, decorators: [{
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterDirective, decorators: [{
|
|
115
122
|
type: Directive,
|
|
116
123
|
args: [{
|
|
117
124
|
selector: '[kendoDropDownFilter]',
|
|
@@ -10,4 +10,25 @@
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class FilterableComponent {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the data of the component.
|
|
15
|
+
*/
|
|
16
|
+
data;
|
|
17
|
+
/**
|
|
18
|
+
* Explicitly enables the emitting of the `filterChange` event.
|
|
19
|
+
*/
|
|
20
|
+
filterable;
|
|
21
|
+
/**
|
|
22
|
+
* Hooks to the `filter` event.
|
|
23
|
+
*/
|
|
24
|
+
filterChange;
|
|
25
|
+
/**
|
|
26
|
+
* Reads the data from the components with complex data.
|
|
27
|
+
*/
|
|
28
|
+
textField;
|
|
29
|
+
/**
|
|
30
|
+
* Reads the data from the components with complex data which use `valueField` instead of
|
|
31
|
+
* `textField`—for example, the AutoComplete.
|
|
32
|
+
*/
|
|
33
|
+
valueField;
|
|
13
34
|
}
|
|
@@ -8,13 +8,14 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class ListItemDirective {
|
|
11
|
+
element;
|
|
11
12
|
constructor(element) {
|
|
12
13
|
this.element = element;
|
|
13
14
|
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListItemDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ListItemDirective, isStandalone: true, selector: "\"li[role=option], li[role=group]\"", ngImport: i0 });
|
|
14
17
|
}
|
|
15
|
-
|
|
16
|
-
ListItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ListItemDirective, isStandalone: true, selector: "\"li[role=option], li[role=group]\"", ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListItemDirective, decorators: [{
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListItemDirective, decorators: [{
|
|
18
19
|
type: Directive,
|
|
19
20
|
args: [{
|
|
20
21
|
selector: '"li[role=option], li[role=group]"' // eslint-disable-line
|
|
@@ -25,38 +25,32 @@ import * as i3 from "./disabled-items/disabled-items.service";
|
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
27
|
export class ListComponent {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.pipe(
|
|
55
|
-
// handle only the very last onSelect/onFocus emission
|
|
56
|
-
switchMap(event => this.zone.onStable.pipe(take(1), map(() => event))))
|
|
57
|
-
.subscribe(this.scrollToItem.bind(this));
|
|
58
|
-
this.prepareClasses();
|
|
59
|
-
}
|
|
28
|
+
dataService;
|
|
29
|
+
wrapper;
|
|
30
|
+
selectionService;
|
|
31
|
+
disabledItemsService;
|
|
32
|
+
cdr;
|
|
33
|
+
zone;
|
|
34
|
+
renderer;
|
|
35
|
+
selected = [];
|
|
36
|
+
focused = -1;
|
|
37
|
+
textField;
|
|
38
|
+
valueField;
|
|
39
|
+
height;
|
|
40
|
+
template;
|
|
41
|
+
groupTemplate;
|
|
42
|
+
fixedGroupTemplate;
|
|
43
|
+
show = true;
|
|
44
|
+
id;
|
|
45
|
+
optionPrefix;
|
|
46
|
+
multipleSelection = false;
|
|
47
|
+
virtual;
|
|
48
|
+
type = 'list';
|
|
49
|
+
checkboxes = { enabled: false };
|
|
50
|
+
ariaLive;
|
|
51
|
+
isMultiselect;
|
|
52
|
+
isActionSheetExpanded;
|
|
53
|
+
showStickyHeader;
|
|
60
54
|
set data(data) {
|
|
61
55
|
this._data = data[0] && data[0].header ? data.slice(0) : data;
|
|
62
56
|
}
|
|
@@ -75,6 +69,32 @@ export class ListComponent {
|
|
|
75
69
|
get size() {
|
|
76
70
|
return this._size;
|
|
77
71
|
}
|
|
72
|
+
rounded = 'medium';
|
|
73
|
+
onClick = new EventEmitter();
|
|
74
|
+
pageChange = new EventEmitter();
|
|
75
|
+
listResize = new EventEmitter();
|
|
76
|
+
popupListScroll = new EventEmitter();
|
|
77
|
+
items;
|
|
78
|
+
content;
|
|
79
|
+
list;
|
|
80
|
+
virtualContainer;
|
|
81
|
+
currentGroup;
|
|
82
|
+
startFrom = 0;
|
|
83
|
+
lastLoaded = 0;
|
|
84
|
+
lastScrollTop = 0;
|
|
85
|
+
listContentClass;
|
|
86
|
+
listClass;
|
|
87
|
+
listItemClass;
|
|
88
|
+
listVirtualClass;
|
|
89
|
+
listGroupStickyHeaderClass;
|
|
90
|
+
listGroupStickyHeaderTextClass;
|
|
91
|
+
listGroupItemClass;
|
|
92
|
+
listGroupItemTextClass;
|
|
93
|
+
scrollToFocused = false;
|
|
94
|
+
_data;
|
|
95
|
+
scrollSubscription;
|
|
96
|
+
selectSubscription;
|
|
97
|
+
_size = 'medium';
|
|
78
98
|
get pageSize() {
|
|
79
99
|
if (this.virtual.pageSize) {
|
|
80
100
|
return this.virtual.pageSize;
|
|
@@ -97,6 +117,22 @@ export class ListComponent {
|
|
|
97
117
|
get checkboxClasses() {
|
|
98
118
|
return `${this.size ? getSizeClass('checkbox', this.size) : ''} ${this.rounded ? getRoundedClass(this.rounded) : ''}`;
|
|
99
119
|
}
|
|
120
|
+
/* tslint:disable:member-ordering */
|
|
121
|
+
constructor(dataService, wrapper, selectionService, disabledItemsService, cdr, zone, renderer) {
|
|
122
|
+
this.dataService = dataService;
|
|
123
|
+
this.wrapper = wrapper;
|
|
124
|
+
this.selectionService = selectionService;
|
|
125
|
+
this.disabledItemsService = disabledItemsService;
|
|
126
|
+
this.cdr = cdr;
|
|
127
|
+
this.zone = zone;
|
|
128
|
+
this.renderer = renderer;
|
|
129
|
+
this.selectSubscription = merge(this.selectionService.onSelect.pipe(map((args) => args.indices[0])), this.selectionService.onFocus)
|
|
130
|
+
.pipe(
|
|
131
|
+
// handle only the very last onSelect/onFocus emission
|
|
132
|
+
switchMap(event => this.zone.onStable.pipe(take(1), map(() => event))))
|
|
133
|
+
.subscribe(this.scrollToItem.bind(this));
|
|
134
|
+
this.prepareClasses();
|
|
135
|
+
}
|
|
100
136
|
ngOnChanges(changes) {
|
|
101
137
|
if (isChanged('data', changes, false)) {
|
|
102
138
|
if (this.lastLoaded <= 0) {
|
|
@@ -402,9 +438,8 @@ export class ListComponent {
|
|
|
402
438
|
this.renderer.addClass(this.wrapper.nativeElement, this.listVirtualClass);
|
|
403
439
|
}
|
|
404
440
|
}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListComponent, isStandalone: true, selector: "kendo-list", inputs: { selected: "selected", focused: "focused", textField: "textField", valueField: "valueField", height: "height", template: "template", groupTemplate: "groupTemplate", fixedGroupTemplate: "fixedGroupTemplate", show: "show", id: "id", optionPrefix: "optionPrefix", multipleSelection: "multipleSelection", virtual: "virtual", type: "type", checkboxes: "checkboxes", ariaLive: "ariaLive", isMultiselect: "isMultiselect", isActionSheetExpanded: "isActionSheetExpanded", showStickyHeader: "showStickyHeader", data: "data", size: "size", rounded: "rounded" }, outputs: { onClick: "onClick", pageChange: "pageChange", listResize: "listResize", popupListScroll: "popupListScroll" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }, { propertyName: "virtualContainer", first: true, predicate: ["virtualContainer"], descendants: true }, { propertyName: "items", predicate: ListItemDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
441
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListComponent, deps: [{ token: i1.DataService }, { token: i0.ElementRef }, { token: i2.SelectionService }, { token: i3.DisabledItemsService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
442
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ListComponent, isStandalone: true, selector: "kendo-list", inputs: { selected: "selected", focused: "focused", textField: "textField", valueField: "valueField", height: "height", template: "template", groupTemplate: "groupTemplate", fixedGroupTemplate: "fixedGroupTemplate", show: "show", id: "id", optionPrefix: "optionPrefix", multipleSelection: "multipleSelection", virtual: "virtual", type: "type", checkboxes: "checkboxes", ariaLive: "ariaLive", isMultiselect: "isMultiselect", isActionSheetExpanded: "isActionSheetExpanded", showStickyHeader: "showStickyHeader", data: "data", size: "size", rounded: "rounded" }, outputs: { onClick: "onClick", pageChange: "pageChange", listResize: "listResize", popupListScroll: "popupListScroll" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }, { propertyName: "virtualContainer", first: true, predicate: ["virtualContainer"], descendants: true }, { propertyName: "items", predicate: ListItemDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
408
443
|
<div *ngIf="dataService.grouped && showStickyHeader"
|
|
409
444
|
[class]="listGroupStickyHeaderClass"
|
|
410
445
|
[ngStyle]="{
|
|
@@ -534,7 +569,8 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
|
|
|
534
569
|
</div>
|
|
535
570
|
</div>
|
|
536
571
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: ListItemDirective, selector: "\"li[role=option], li[role=group]\"" }, { kind: "directive", type: SelectableDirective, selector: "[kendoDropDownsSelectable]", inputs: ["index", "checkboxes", "height", "isMultiselect", "multipleSelection"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
537
|
-
|
|
572
|
+
}
|
|
573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListComponent, decorators: [{
|
|
538
574
|
type: Component,
|
|
539
575
|
args: [{
|
|
540
576
|
selector: 'kendo-list',
|
|
@@ -12,6 +12,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
12
12
|
* ([see example]({% slug rtl_dropdowns %}#toc-messages)).
|
|
13
13
|
*/
|
|
14
14
|
export class CustomMessagesComponent extends Messages {
|
|
15
|
+
service;
|
|
15
16
|
constructor(service) {
|
|
16
17
|
super();
|
|
17
18
|
this.service = service;
|
|
@@ -19,15 +20,15 @@ export class CustomMessagesComponent extends Messages {
|
|
|
19
20
|
get override() {
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages", providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: Messages,
|
|
27
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
28
|
+
}
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
22
30
|
}
|
|
23
|
-
|
|
24
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages", providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: Messages,
|
|
27
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
28
|
-
}
|
|
29
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
31
32
|
type: Component,
|
|
32
33
|
args: [{
|
|
33
34
|
providers: [
|