@progress/kendo-angular-dropdowns 17.1.0 → 17.1.1-develop.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/comboboxes/combobox.module.d.ts +1 -1
- package/comboboxes/multicolumncombobox.component.d.ts +29 -0
- package/common/list.component.d.ts +2 -1
- package/directives.d.ts +4 -4
- package/dropdowns.module.d.ts +1 -1
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -2
- package/esm2022/comboboxes/combobox.component.mjs +3 -2
- package/esm2022/comboboxes/combobox.module.mjs +4 -4
- package/esm2022/comboboxes/multicolumncombobox.component.mjs +83 -9
- package/esm2022/common/list.component.mjs +12 -3
- package/esm2022/directives.mjs +5 -3
- package/esm2022/dropdownlist/dropdownlist.component.mjs +3 -2
- package/esm2022/dropdowns.module.mjs +4 -4
- package/esm2022/dropdowntrees/dropdowntree.component.mjs +2 -1
- package/esm2022/dropdowntrees/multiselecttree.component.mjs +2 -1
- package/esm2022/multiselect/multiselect.component.mjs +3 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +122 -32
- package/package.json +8 -8
- package/schematics/ngAdd/index.js +2 -2
|
@@ -38,6 +38,6 @@ import * as i14 from "./combobox-column/column-cell-template.directive";
|
|
|
38
38
|
*/
|
|
39
39
|
export declare class ComboBoxModule {
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboBoxModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComboBoxModule, never, [typeof i1.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.MultiColumnComboBoxComponent, typeof i12.ComboBoxColumnComponent, typeof i13.ColumnHeaderTemplateDirective, typeof i14.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent], [typeof i1.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.MultiColumnComboBoxComponent, typeof i12.ComboBoxColumnComponent, typeof i13.ColumnHeaderTemplateDirective, typeof i14.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent]>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComboBoxModule, never, [typeof i1.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i11.MultiColumnComboBoxComponent, typeof i12.ComboBoxColumnComponent, typeof i13.ColumnHeaderTemplateDirective, typeof i14.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective], [typeof i1.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i11.MultiColumnComboBoxComponent, typeof i12.ComboBoxColumnComponent, typeof i13.ColumnHeaderTemplateDirective, typeof i14.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective]>;
|
|
42
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComboBoxModule>;
|
|
43
43
|
}
|
|
@@ -38,11 +38,34 @@ export declare class MultiColumnComboBoxComponent extends ComboBoxComponent impl
|
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
set header(header: ElementRef<HTMLElement>);
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
set headerTable(headerTable: ElementRef<HTMLElement>);
|
|
45
|
+
get headerTable(): ElementRef<HTMLElement>;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
set headerColumns(columns: QueryList<ElementRef>);
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
rowWidth: number;
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
headerColumnWidths: number[];
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
totalColumnsWidth: number;
|
|
41
62
|
protected get popupWidth(): {
|
|
42
63
|
min: string;
|
|
43
64
|
max: string;
|
|
44
65
|
};
|
|
66
|
+
private _headerTable;
|
|
45
67
|
private removeWindowResizeListener;
|
|
68
|
+
private columnsChangeSubscription;
|
|
46
69
|
/**
|
|
47
70
|
* @hidden
|
|
48
71
|
*/
|
|
@@ -66,9 +89,15 @@ export declare class MultiColumnComboBoxComponent extends ComboBoxComponent impl
|
|
|
66
89
|
* When the container has a scrollbar, the padding style is added, and when there is none - it is removed.
|
|
67
90
|
*/
|
|
68
91
|
updateHeaderPadding(header: HTMLElement): void;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
getColumnWidth(index: any): number;
|
|
69
97
|
protected verifySettings(): void;
|
|
70
98
|
private addWindowResizeListener;
|
|
71
99
|
private updateColumnsMediaState;
|
|
100
|
+
private calculateRowWidth;
|
|
72
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiColumnComboBoxComponent, never>;
|
|
73
102
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiColumnComboBoxComponent, "kendo-multicolumncombobox", never, {}, {}, ["columns"], never, true, never>;
|
|
74
103
|
}
|
|
@@ -49,6 +49,7 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
|
|
|
49
49
|
isMultiselect: boolean;
|
|
50
50
|
isActionSheetExpanded: boolean;
|
|
51
51
|
showStickyHeader: boolean;
|
|
52
|
+
rowWidth: number;
|
|
52
53
|
set data(data: any[]);
|
|
53
54
|
get data(): any[];
|
|
54
55
|
set size(size: DropDownSize);
|
|
@@ -130,5 +131,5 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
|
|
|
130
131
|
private firstGroupHeaderInTargetedPage;
|
|
131
132
|
private setComponentClasses;
|
|
132
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "kendo-list", never, { "selected": { "alias": "selected"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "height": { "alias": "height"; "required": false; }; "template": { "alias": "template"; "required": false; }; "groupTemplate": { "alias": "groupTemplate"; "required": false; }; "fixedGroupTemplate": { "alias": "fixedGroupTemplate"; "required": false; }; "show": { "alias": "show"; "required": false; }; "id": { "alias": "id"; "required": false; }; "optionPrefix": { "alias": "optionPrefix"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "type": { "alias": "type"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; "ariaLive": { "alias": "ariaLive"; "required": false; }; "isMultiselect": { "alias": "isMultiselect"; "required": false; }; "isActionSheetExpanded": { "alias": "isActionSheetExpanded"; "required": false; }; "showStickyHeader": { "alias": "showStickyHeader"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "onClick": "onClick"; "pageChange": "pageChange"; "listResize": "listResize"; "popupListScroll": "popupListScroll"; }, never, never, true, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "kendo-list", never, { "selected": { "alias": "selected"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "height": { "alias": "height"; "required": false; }; "template": { "alias": "template"; "required": false; }; "groupTemplate": { "alias": "groupTemplate"; "required": false; }; "fixedGroupTemplate": { "alias": "fixedGroupTemplate"; "required": false; }; "show": { "alias": "show"; "required": false; }; "id": { "alias": "id"; "required": false; }; "optionPrefix": { "alias": "optionPrefix"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "type": { "alias": "type"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; "ariaLive": { "alias": "ariaLive"; "required": false; }; "isMultiselect": { "alias": "isMultiselect"; "required": false; }; "isActionSheetExpanded": { "alias": "isActionSheetExpanded"; "required": false; }; "showStickyHeader": { "alias": "showStickyHeader"; "required": false; }; "rowWidth": { "alias": "rowWidth"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "onClick": "onClick"; "pageChange": "pageChange"; "listResize": "listResize"; "popupListScroll": "popupListScroll"; }, never, never, true, never>;
|
|
134
135
|
}
|
package/directives.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent } from "@progress/kendo-angular-common";
|
|
5
|
+
import { PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent, ToggleButtonTabStopDirective } from "@progress/kendo-angular-common";
|
|
6
6
|
import { AutoCompleteComponent } from "./autocomplete/autocomplete.component";
|
|
7
7
|
import { FilterDirective } from "./common/filtering/filter.directive";
|
|
8
8
|
import { CustomMessagesComponent } from "./common/localization/custom-messages.component";
|
|
@@ -40,11 +40,11 @@ export declare const KENDO_AUTOCOMPLETE: readonly [typeof AutoCompleteComponent,
|
|
|
40
40
|
/**
|
|
41
41
|
* Utility array that contains all `ComboBox` related components and directives
|
|
42
42
|
*/
|
|
43
|
-
export declare const KENDO_COMBOBOX: readonly [typeof ComboBoxComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent];
|
|
43
|
+
export declare const KENDO_COMBOBOX: readonly [typeof ComboBoxComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ToggleButtonTabStopDirective];
|
|
44
44
|
/**
|
|
45
45
|
* Utility array that contains all `MultiColumnComboBox` related components and directives
|
|
46
46
|
*/
|
|
47
|
-
export declare const KENDO_MULTICOLUMNCOMBOBOX: readonly [typeof MultiColumnComboBoxComponent, typeof ComboBoxColumnComponent, typeof ColumnHeaderTemplateDirective, typeof ColumnCellTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent];
|
|
47
|
+
export declare const KENDO_MULTICOLUMNCOMBOBOX: readonly [typeof MultiColumnComboBoxComponent, typeof ComboBoxColumnComponent, typeof ColumnHeaderTemplateDirective, typeof ColumnCellTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ToggleButtonTabStopDirective];
|
|
48
48
|
/**
|
|
49
49
|
* Utility array that contains all `DropDownList` related components and directives
|
|
50
50
|
*/
|
|
@@ -64,4 +64,4 @@ export declare const KENDO_MULTISELECTTREE: readonly [typeof MultiSelectTreeComp
|
|
|
64
64
|
/**
|
|
65
65
|
* Utility array that contains all `@progress/kendo-angular-dropdowns` related components and directives
|
|
66
66
|
*/
|
|
67
|
-
export declare const KENDO_DROPDOWNS: readonly [typeof AutoCompleteComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ComboBoxComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof MultiColumnComboBoxComponent, typeof ComboBoxColumnComponent, typeof ColumnHeaderTemplateDirective, typeof ColumnCellTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof DropDownListComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof MultiSelectComponent, typeof SummaryTagDirective, typeof CustomItemTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof GroupTagTemplateDirective, typeof TagTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof DropDownTreeComponent, typeof DropDownTreeFlatBindingDirective, typeof DropDownTreeHierarchyBindingDirective, typeof DropDownTreesExpandDirective, typeof NodeTemplateDirective, typeof HeaderTemplateDirective, typeof FooterTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof CustomMessagesComponent, typeof MultiSelectTreeComponent, typeof MultiSelectTreeFlatBindingDirective, typeof MultiSelectTreeHierarchyBindingDirective, typeof DropDownTreesExpandDirective, typeof NodeTemplateDirective, typeof MultiSelectTreeSummaryTagDirective, typeof GroupTagTemplateDirective, typeof TagTemplateDirective, typeof HeaderTemplateDirective, typeof FooterTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof CustomMessagesComponent];
|
|
67
|
+
export declare const KENDO_DROPDOWNS: readonly [typeof AutoCompleteComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ComboBoxComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ToggleButtonTabStopDirective, typeof MultiColumnComboBoxComponent, typeof ComboBoxColumnComponent, typeof ColumnHeaderTemplateDirective, typeof ColumnCellTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof ToggleButtonTabStopDirective, typeof DropDownListComponent, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof MultiSelectComponent, typeof SummaryTagDirective, typeof CustomItemTemplateDirective, typeof FixedGroupTemplateDirective, typeof FooterTemplateDirective, typeof GroupTemplateDirective, typeof GroupTagTemplateDirective, typeof TagTemplateDirective, typeof HeaderTemplateDirective, typeof ItemTemplateDirective, typeof NoDataTemplateDirective, typeof FilterDirective, typeof CustomMessagesComponent, typeof SuffixTemplateDirective, typeof PrefixTemplateDirective, typeof SeparatorComponent, typeof DropDownTreeComponent, typeof DropDownTreeFlatBindingDirective, typeof DropDownTreeHierarchyBindingDirective, typeof DropDownTreesExpandDirective, typeof NodeTemplateDirective, typeof HeaderTemplateDirective, typeof FooterTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof CustomMessagesComponent, typeof MultiSelectTreeComponent, typeof MultiSelectTreeFlatBindingDirective, typeof MultiSelectTreeHierarchyBindingDirective, typeof DropDownTreesExpandDirective, typeof NodeTemplateDirective, typeof MultiSelectTreeSummaryTagDirective, typeof GroupTagTemplateDirective, typeof TagTemplateDirective, typeof HeaderTemplateDirective, typeof FooterTemplateDirective, typeof ValueTemplateDirective, typeof NoDataTemplateDirective, typeof CustomMessagesComponent];
|
package/dropdowns.module.d.ts
CHANGED
|
@@ -67,6 +67,6 @@ import * as i31 from "./dropdowntrees/summary-tag/summary-tag.directive";
|
|
|
67
67
|
*/
|
|
68
68
|
export declare class DropDownsModule {
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownsModule, never>;
|
|
70
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DropDownsModule, never, [typeof i1.AutoCompleteComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i12.MultiColumnComboBoxComponent, typeof i13.ComboBoxColumnComponent, typeof i14.ColumnHeaderTemplateDirective, typeof i15.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i16.DropDownListComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i18.MultiSelectComponent, typeof i19.SummaryTagDirective, typeof i20.CustomItemTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i23.DropDownTreeComponent, typeof i24.DropDownTreeFlatBindingDirective, typeof i25.DropDownTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i28.MultiSelectTreeComponent, typeof i29.MultiSelectTreeFlatBindingDirective, typeof i30.MultiSelectTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i31.MultiSelectTreeSummaryTagDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent], [typeof i1.AutoCompleteComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i12.MultiColumnComboBoxComponent, typeof i13.ComboBoxColumnComponent, typeof i14.ColumnHeaderTemplateDirective, typeof i15.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i16.DropDownListComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i18.MultiSelectComponent, typeof i19.SummaryTagDirective, typeof i20.CustomItemTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i23.DropDownTreeComponent, typeof i24.DropDownTreeFlatBindingDirective, typeof i25.DropDownTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i28.MultiSelectTreeComponent, typeof i29.MultiSelectTreeFlatBindingDirective, typeof i30.MultiSelectTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i31.MultiSelectTreeSummaryTagDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent]>;
|
|
70
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DropDownsModule, never, [typeof i1.AutoCompleteComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i12.MultiColumnComboBoxComponent, typeof i13.ComboBoxColumnComponent, typeof i14.ColumnHeaderTemplateDirective, typeof i15.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i16.DropDownListComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i18.MultiSelectComponent, typeof i19.SummaryTagDirective, typeof i20.CustomItemTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i23.DropDownTreeComponent, typeof i24.DropDownTreeFlatBindingDirective, typeof i25.DropDownTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i28.MultiSelectTreeComponent, typeof i29.MultiSelectTreeFlatBindingDirective, typeof i30.MultiSelectTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i31.MultiSelectTreeSummaryTagDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective], [typeof i1.AutoCompleteComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i11.ComboBoxComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i12.MultiColumnComboBoxComponent, typeof i13.ComboBoxColumnComponent, typeof i14.ColumnHeaderTemplateDirective, typeof i15.ColumnCellTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective, typeof i16.DropDownListComponent, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i18.MultiSelectComponent, typeof i19.SummaryTagDirective, typeof i20.CustomItemTemplateDirective, typeof i2.FixedGroupTemplateDirective, typeof i3.FooterTemplateDirective, typeof i4.GroupTemplateDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i6.ItemTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i8.FilterDirective, typeof i9.CustomMessagesComponent, typeof i10.SuffixTemplateDirective, typeof i10.PrefixTemplateDirective, typeof i10.SeparatorComponent, typeof i23.DropDownTreeComponent, typeof i24.DropDownTreeFlatBindingDirective, typeof i25.DropDownTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i28.MultiSelectTreeComponent, typeof i29.MultiSelectTreeFlatBindingDirective, typeof i30.MultiSelectTreeHierarchyBindingDirective, typeof i26.DropDownTreesExpandDirective, typeof i27.NodeTemplateDirective, typeof i31.MultiSelectTreeSummaryTagDirective, typeof i21.GroupTagTemplateDirective, typeof i22.TagTemplateDirective, typeof i5.HeaderTemplateDirective, typeof i3.FooterTemplateDirective, typeof i17.ValueTemplateDirective, typeof i7.NoDataTemplateDirective, typeof i9.CustomMessagesComponent, typeof i10.PrefixTemplateDirective, typeof i10.SuffixTemplateDirective, typeof i10.SeparatorComponent, typeof i10.ToggleButtonTabStopDirective]>;
|
|
71
71
|
static ɵinj: i0.ɵɵInjectorDeclaration<DropDownsModule>;
|
|
72
72
|
}
|
|
@@ -1066,13 +1066,14 @@ export class AutoCompleteComponent {
|
|
|
1066
1066
|
const horizontalAlign = this.direction === "rtl" ? "right" : "left";
|
|
1067
1067
|
const anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
|
|
1068
1068
|
const popupPosition = { horizontal: horizontalAlign, vertical: "top" };
|
|
1069
|
+
const appendToComponent = typeof this.popupSettings.appendTo === 'string' && this.popupSettings.appendTo === 'component';
|
|
1069
1070
|
this.popupRef = this.popupService.open({
|
|
1070
1071
|
anchor: this.wrapper,
|
|
1071
1072
|
animate: this.popupSettings.animate,
|
|
1072
1073
|
appendTo: this.appendTo,
|
|
1073
1074
|
content: this.popupTemplate,
|
|
1074
1075
|
popupClass: this.listContainerClasses,
|
|
1075
|
-
positionMode: 'absolute',
|
|
1076
|
+
positionMode: appendToComponent ? 'fixed' : 'absolute',
|
|
1076
1077
|
popupAlign: popupPosition,
|
|
1077
1078
|
anchorAlign: anchorPosition
|
|
1078
1079
|
});
|
|
@@ -1339,7 +1340,7 @@ export class AutoCompleteComponent {
|
|
|
1339
1340
|
}">
|
|
1340
1341
|
</ng-template>
|
|
1341
1342
|
</ng-template>
|
|
1342
|
-
`, 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: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { 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: "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"] }] });
|
|
1343
|
+
`, 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: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { 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: "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", "rowWidth", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
1343
1344
|
}
|
|
1344
1345
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AutoCompleteComponent, decorators: [{
|
|
1345
1346
|
type: Component,
|
|
@@ -1470,13 +1470,14 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1470
1470
|
const horizontalAlign = this.direction === "rtl" ? "right" : "left";
|
|
1471
1471
|
const anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
|
|
1472
1472
|
const popupPosition = { horizontal: horizontalAlign, vertical: "top" };
|
|
1473
|
+
const appendToComponent = typeof this.popupSettings.appendTo === 'string' && this.popupSettings.appendTo === 'component';
|
|
1473
1474
|
this.popupRef = this.popupService.open({
|
|
1474
1475
|
anchor: this.wrapper,
|
|
1475
1476
|
animate: this.popupSettings.animate,
|
|
1476
1477
|
appendTo: this.appendTo,
|
|
1477
1478
|
content: this.popupTemplate,
|
|
1478
1479
|
popupClass: this.listContainerClasses,
|
|
1479
|
-
positionMode: 'absolute',
|
|
1480
|
+
positionMode: appendToComponent ? 'fixed' : 'absolute',
|
|
1480
1481
|
anchorAlign: anchorPosition,
|
|
1481
1482
|
popupAlign: popupPosition
|
|
1482
1483
|
});
|
|
@@ -1777,7 +1778,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1777
1778
|
}">
|
|
1778
1779
|
</ng-template>
|
|
1779
1780
|
</ng-template>
|
|
1780
|
-
`, 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: "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"] }] });
|
|
1781
|
+
`, 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: "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", "rowWidth", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
1781
1782
|
}
|
|
1782
1783
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxComponent, decorators: [{
|
|
1783
1784
|
type: Component,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { KENDO_COMBOBOX, KENDO_MULTICOLUMNCOMBOBOX } from '../directives';
|
|
7
|
-
import { KENDO_ADORNMENTS, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
7
|
+
import { KENDO_ADORNMENTS, KENDO_TOGGLEBUTTONTABSTOP, 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";
|
|
@@ -44,7 +44,7 @@ import * as i14 from "./combobox-column/column-cell-template.directive";
|
|
|
44
44
|
*/
|
|
45
45
|
export class ComboBoxModule {
|
|
46
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] });
|
|
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, i10.ToggleButtonTabStopDirective, 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.ToggleButtonTabStopDirective, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent, i10.ToggleButtonTabStopDirective], 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, i10.ToggleButtonTabStopDirective, 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.ToggleButtonTabStopDirective, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent, i10.ToggleButtonTabStopDirective] });
|
|
48
48
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, providers: [
|
|
49
49
|
PopupService,
|
|
50
50
|
ResizeBatchService,
|
|
@@ -54,8 +54,8 @@ export class ComboBoxModule {
|
|
|
54
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, ...KENDO_ADORNMENTS],
|
|
58
|
-
exports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX, ...KENDO_ADORNMENTS],
|
|
57
|
+
imports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX, ...KENDO_ADORNMENTS, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
58
|
+
exports: [...KENDO_COMBOBOX, ...KENDO_MULTICOLUMNCOMBOBOX, ...KENDO_ADORNMENTS, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
59
59
|
providers: [
|
|
60
60
|
PopupService,
|
|
61
61
|
ResizeBatchService,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, Component, ContentChildren, ElementRef, forwardRef, HostBinding, Injector, isDevMode, NgZone, QueryList, Renderer2, ViewChild } from '@angular/core';
|
|
5
|
+
import { ChangeDetectorRef, Component, ContentChildren, ElementRef, forwardRef, HostBinding, Injector, isDevMode, NgZone, QueryList, Renderer2, ViewChild, ViewChildren } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { EventsOutsideAngularDirective, isDocumentAvailable, KendoInput, MultiTabStop, ResizeSensorComponent, SeparatorComponent, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
8
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
@@ -24,6 +24,7 @@ import { NgIf, NgTemplateOutlet, NgClass, NgFor, NgStyle } from '@angular/common
|
|
|
24
24
|
import { SharedDropDownEventsDirective } from '../common/shared-events.directive';
|
|
25
25
|
import { LocalizedMessagesDirective } from '../common/localization/localized-messages.directive';
|
|
26
26
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
27
|
+
import { Subscription } from 'rxjs';
|
|
27
28
|
import * as i0 from "@angular/core";
|
|
28
29
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
29
30
|
import * as i2 from "@progress/kendo-angular-popup";
|
|
@@ -61,6 +62,36 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
61
62
|
// updates the header padding on initial render as the resize senzor doesn't kick in as early
|
|
62
63
|
this.updateHeaderPadding(header && header.nativeElement);
|
|
63
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
set headerTable(headerTable) {
|
|
69
|
+
this._headerTable = headerTable;
|
|
70
|
+
if (this.headerTable) {
|
|
71
|
+
this.rowWidth = this.calculateRowWidth();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
get headerTable() {
|
|
75
|
+
return this._headerTable;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
set headerColumns(columns) {
|
|
81
|
+
this.headerColumnWidths = columns.map(column => column.nativeElement.offsetWidth);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
rowWidth;
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
headerColumnWidths = [];
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
totalColumnsWidth;
|
|
64
95
|
get popupWidth() {
|
|
65
96
|
const wrapperOffsetWidth = this.wrapper.nativeElement.offsetWidth;
|
|
66
97
|
const min = `${wrapperOffsetWidth}px`;
|
|
@@ -68,7 +99,9 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
68
99
|
const max = isNaN(width) ? width : `${width}px`;
|
|
69
100
|
return { min, max };
|
|
70
101
|
}
|
|
102
|
+
_headerTable;
|
|
71
103
|
removeWindowResizeListener = noop;
|
|
104
|
+
columnsChangeSubscription = new Subscription();
|
|
72
105
|
/**
|
|
73
106
|
* @hidden
|
|
74
107
|
*/
|
|
@@ -93,6 +126,12 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
93
126
|
this.updateColumnsMediaState();
|
|
94
127
|
this.addWindowResizeListener();
|
|
95
128
|
this.windowSize = windowSize();
|
|
129
|
+
this.rowWidth = this.calculateRowWidth();
|
|
130
|
+
this.totalColumnsWidth = this.columns.reduce((total, currentColumn) => total + currentColumn.width, 0);
|
|
131
|
+
this.columnsChangeSubscription = this.columns.changes.subscribe(() => {
|
|
132
|
+
this.rowWidth = this.calculateRowWidth();
|
|
133
|
+
this.totalColumnsWidth = this.columns.reduce((total, currentColumn) => total + currentColumn.width, 0);
|
|
134
|
+
});
|
|
96
135
|
this.cdr.detectChanges();
|
|
97
136
|
if (this.actionSheet && isDocumentAvailable()) {
|
|
98
137
|
// The following syntax is used as it does not violate CSP compliance
|
|
@@ -103,6 +142,9 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
103
142
|
ngOnDestroy() {
|
|
104
143
|
super.ngOnDestroy();
|
|
105
144
|
this.removeWindowResizeListener();
|
|
145
|
+
if (this.columnsChangeSubscription) {
|
|
146
|
+
this.columnsChangeSubscription.unsubscribe();
|
|
147
|
+
}
|
|
106
148
|
}
|
|
107
149
|
/**
|
|
108
150
|
* @hidden
|
|
@@ -130,6 +172,20 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
130
172
|
this.renderer.removeStyle(header, headerPaddingPosition);
|
|
131
173
|
}
|
|
132
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @hidden
|
|
178
|
+
*/
|
|
179
|
+
getColumnWidth(index) {
|
|
180
|
+
const popupWidthNumber = +(this.popupWidth.max.slice(0, -2));
|
|
181
|
+
if (this.totalColumnsWidth >= popupWidthNumber) {
|
|
182
|
+
return this.columns.get(index).width;
|
|
183
|
+
}
|
|
184
|
+
if (this.virtual && isPresent(this.headerColumnWidths[index])) {
|
|
185
|
+
return this.headerColumnWidths[index];
|
|
186
|
+
}
|
|
187
|
+
return this.columns.get(index).width;
|
|
188
|
+
}
|
|
133
189
|
verifySettings() {
|
|
134
190
|
if (!isDevMode()) {
|
|
135
191
|
return;
|
|
@@ -164,6 +220,12 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
164
220
|
}
|
|
165
221
|
});
|
|
166
222
|
}
|
|
223
|
+
calculateRowWidth() {
|
|
224
|
+
if (this.isActionSheetExpanded || !this.virtual) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
return this.headerTable?.nativeElement.offsetWidth;
|
|
228
|
+
}
|
|
167
229
|
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
230
|
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
231
|
SelectionService,
|
|
@@ -192,7 +254,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
192
254
|
provide: MultiTabStop,
|
|
193
255
|
useExisting: forwardRef(() => MultiColumnComboBoxComponent),
|
|
194
256
|
},
|
|
195
|
-
], queries: [{ propertyName: "columns", predicate: ComboBoxColumnComponent }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
257
|
+
], queries: [{ propertyName: "columns", predicate: ComboBoxColumnComponent }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "headerTable", first: true, predicate: ["headerTable"], descendants: true }, { propertyName: "headerColumns", predicate: ["columnHeader"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
196
258
|
<ng-container
|
|
197
259
|
kendoMultiColumnComboBoxLocalizedMessages
|
|
198
260
|
i18n-noDataText="
|
|
@@ -325,7 +387,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
325
387
|
<!--grid header-->
|
|
326
388
|
<div #header class="k-table-header">
|
|
327
389
|
<div #headerWrap class="k-table-header-wrap">
|
|
328
|
-
<table class="k-table" role="presentation">
|
|
390
|
+
<table #headerTable class="k-table" role="presentation">
|
|
329
391
|
<colgroup>
|
|
330
392
|
<ng-container *ngFor="let column of columns">
|
|
331
393
|
<col *ngIf="!column.hidden && column.matchesMedia" [style.width.px]="column.width" />
|
|
@@ -335,6 +397,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
335
397
|
<tr class="k-table-row">
|
|
336
398
|
<ng-container *ngFor="let column of columns">
|
|
337
399
|
<th
|
|
400
|
+
#columnHeader
|
|
338
401
|
*ngIf="!column.hidden && column.matchesMedia"
|
|
339
402
|
class="k-table-th"
|
|
340
403
|
[ngStyle]="column.headerStyle"
|
|
@@ -361,12 +424,13 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
361
424
|
</div>
|
|
362
425
|
<!-- item template -->
|
|
363
426
|
<ng-template #rowTemplate let-dataItem>
|
|
364
|
-
<ng-container *ngFor="let column of columns">
|
|
427
|
+
<ng-container *ngFor="let column of columns; let i = index">
|
|
365
428
|
<span
|
|
366
429
|
*ngIf="!column.hidden && column.matchesMedia"
|
|
367
430
|
class="k-table-td"
|
|
368
431
|
[ngClass]="column.class"
|
|
369
|
-
[style.width.px]="
|
|
432
|
+
[style.width.px]="getColumnWidth(i)"
|
|
433
|
+
[style.max-width.px]="getColumnWidth(i)"
|
|
370
434
|
[ngStyle]="column.style"
|
|
371
435
|
>
|
|
372
436
|
<ng-container *ngIf="!column.cellTemplate">
|
|
@@ -399,6 +463,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
399
463
|
[id]="listBoxId"
|
|
400
464
|
[virtual]="virtual"
|
|
401
465
|
[type]="'dropdowngrid'"
|
|
466
|
+
[rowWidth]="rowWidth"
|
|
402
467
|
[showStickyHeader]="showStickyHeader"
|
|
403
468
|
(pageChange)="pageChange($event)"
|
|
404
469
|
(listResize)="updateHeaderPadding(header)"
|
|
@@ -441,7 +506,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
441
506
|
</ng-container>
|
|
442
507
|
</div>
|
|
443
508
|
</ng-template>
|
|
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"] }] });
|
|
509
|
+
`, 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", "rowWidth", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
445
510
|
}
|
|
446
511
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, decorators: [{
|
|
447
512
|
type: Component,
|
|
@@ -608,7 +673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
608
673
|
<!--grid header-->
|
|
609
674
|
<div #header class="k-table-header">
|
|
610
675
|
<div #headerWrap class="k-table-header-wrap">
|
|
611
|
-
<table class="k-table" role="presentation">
|
|
676
|
+
<table #headerTable class="k-table" role="presentation">
|
|
612
677
|
<colgroup>
|
|
613
678
|
<ng-container *ngFor="let column of columns">
|
|
614
679
|
<col *ngIf="!column.hidden && column.matchesMedia" [style.width.px]="column.width" />
|
|
@@ -618,6 +683,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
618
683
|
<tr class="k-table-row">
|
|
619
684
|
<ng-container *ngFor="let column of columns">
|
|
620
685
|
<th
|
|
686
|
+
#columnHeader
|
|
621
687
|
*ngIf="!column.hidden && column.matchesMedia"
|
|
622
688
|
class="k-table-th"
|
|
623
689
|
[ngStyle]="column.headerStyle"
|
|
@@ -644,12 +710,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
644
710
|
</div>
|
|
645
711
|
<!-- item template -->
|
|
646
712
|
<ng-template #rowTemplate let-dataItem>
|
|
647
|
-
<ng-container *ngFor="let column of columns">
|
|
713
|
+
<ng-container *ngFor="let column of columns; let i = index">
|
|
648
714
|
<span
|
|
649
715
|
*ngIf="!column.hidden && column.matchesMedia"
|
|
650
716
|
class="k-table-td"
|
|
651
717
|
[ngClass]="column.class"
|
|
652
|
-
[style.width.px]="
|
|
718
|
+
[style.width.px]="getColumnWidth(i)"
|
|
719
|
+
[style.max-width.px]="getColumnWidth(i)"
|
|
653
720
|
[ngStyle]="column.style"
|
|
654
721
|
>
|
|
655
722
|
<ng-container *ngIf="!column.cellTemplate">
|
|
@@ -682,6 +749,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
682
749
|
[id]="listBoxId"
|
|
683
750
|
[virtual]="virtual"
|
|
684
751
|
[type]="'dropdowngrid'"
|
|
752
|
+
[rowWidth]="rowWidth"
|
|
685
753
|
[showStickyHeader]="showStickyHeader"
|
|
686
754
|
(pageChange)="pageChange($event)"
|
|
687
755
|
(listResize)="updateHeaderPadding(header)"
|
|
@@ -740,4 +808,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
740
808
|
}], header: [{
|
|
741
809
|
type: ViewChild,
|
|
742
810
|
args: ['header', { static: false }]
|
|
811
|
+
}], headerTable: [{
|
|
812
|
+
type: ViewChild,
|
|
813
|
+
args: ['headerTable', { static: false }]
|
|
814
|
+
}], headerColumns: [{
|
|
815
|
+
type: ViewChildren,
|
|
816
|
+
args: ['columnHeader']
|
|
743
817
|
}] } });
|
|
@@ -51,6 +51,7 @@ export class ListComponent {
|
|
|
51
51
|
isMultiselect;
|
|
52
52
|
isActionSheetExpanded;
|
|
53
53
|
showStickyHeader;
|
|
54
|
+
rowWidth;
|
|
54
55
|
set data(data) {
|
|
55
56
|
this._data = data[0] && data[0].header ? data.slice(0) : data;
|
|
56
57
|
}
|
|
@@ -439,7 +440,7 @@ export class ListComponent {
|
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
442
|
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: `
|
|
443
|
+
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", rowWidth: "rowWidth", 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: `
|
|
443
444
|
<div *ngIf="dataService.grouped && showStickyHeader"
|
|
444
445
|
[class]="listGroupStickyHeaderClass"
|
|
445
446
|
[ngStyle]="{
|
|
@@ -484,6 +485,7 @@ export class ListComponent {
|
|
|
484
485
|
'k-disabled': isDisabled(itemIndex),
|
|
485
486
|
'k-table-alt-row': isAltRow(itemIndex)
|
|
486
487
|
}"
|
|
488
|
+
[style.width.px]="rowWidth ?? null"
|
|
487
489
|
>
|
|
488
490
|
<input
|
|
489
491
|
*ngIf="checkboxes.enabled"
|
|
@@ -518,7 +520,8 @@ export class ListComponent {
|
|
|
518
520
|
'boxSizing' : virtual ? 'border-box' : 'inherit'}"
|
|
519
521
|
[attr.group-index]="dataItem.index"
|
|
520
522
|
[attr.id]="optionPrefix + '-' + itemIndex"
|
|
521
|
-
[attr.tabIndex]="-1"
|
|
523
|
+
[attr.tabIndex]="-1"
|
|
524
|
+
[style.width.px]="rowWidth ?? null">
|
|
522
525
|
<span [class]="listGroupItemTextClass">
|
|
523
526
|
<ng-template *ngIf="groupTemplate"
|
|
524
527
|
[templateContext]="{
|
|
@@ -546,6 +549,7 @@ export class ListComponent {
|
|
|
546
549
|
'k-disabled': isDisabled(dataItem.offsetIndex),
|
|
547
550
|
'k-table-alt-row': isAltRow(itemIndex - 1)
|
|
548
551
|
}"
|
|
552
|
+
[style.width.px]="rowWidth ?? null"
|
|
549
553
|
>
|
|
550
554
|
<ng-template *ngIf="template"
|
|
551
555
|
[templateContext]="{
|
|
@@ -619,6 +623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
619
623
|
'k-disabled': isDisabled(itemIndex),
|
|
620
624
|
'k-table-alt-row': isAltRow(itemIndex)
|
|
621
625
|
}"
|
|
626
|
+
[style.width.px]="rowWidth ?? null"
|
|
622
627
|
>
|
|
623
628
|
<input
|
|
624
629
|
*ngIf="checkboxes.enabled"
|
|
@@ -653,7 +658,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
653
658
|
'boxSizing' : virtual ? 'border-box' : 'inherit'}"
|
|
654
659
|
[attr.group-index]="dataItem.index"
|
|
655
660
|
[attr.id]="optionPrefix + '-' + itemIndex"
|
|
656
|
-
[attr.tabIndex]="-1"
|
|
661
|
+
[attr.tabIndex]="-1"
|
|
662
|
+
[style.width.px]="rowWidth ?? null">
|
|
657
663
|
<span [class]="listGroupItemTextClass">
|
|
658
664
|
<ng-template *ngIf="groupTemplate"
|
|
659
665
|
[templateContext]="{
|
|
@@ -681,6 +687,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
681
687
|
'k-disabled': isDisabled(dataItem.offsetIndex),
|
|
682
688
|
'k-table-alt-row': isAltRow(itemIndex - 1)
|
|
683
689
|
}"
|
|
690
|
+
[style.width.px]="rowWidth ?? null"
|
|
684
691
|
>
|
|
685
692
|
<ng-template *ngIf="template"
|
|
686
693
|
[templateContext]="{
|
|
@@ -745,6 +752,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
745
752
|
type: Input
|
|
746
753
|
}], showStickyHeader: [{
|
|
747
754
|
type: Input
|
|
755
|
+
}], rowWidth: [{
|
|
756
|
+
type: Input
|
|
748
757
|
}], data: [{
|
|
749
758
|
type: Input
|
|
750
759
|
}], size: [{
|