@progress/kendo-angular-dropdowns 21.4.1 → 22.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/common/localization/messages.d.ts +1 -1
- package/dropdowntrees/checked-state/base-check.directive.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +173 -173
- package/package.json +14 -22
- package/schematics/ngAdd/index.js +2 -2
- package/esm2022/autocomplete/autocomplete.component.mjs +0 -1687
- package/esm2022/autocomplete/autocomplete.module.mjs +0 -70
- package/esm2022/comboboxes/combobox-column/column-cell-template.directive.mjs +0 -42
- package/esm2022/comboboxes/combobox-column/column-header-template.directive.mjs +0 -40
- package/esm2022/comboboxes/combobox-column/combobox-column.component.mjs +0 -116
- package/esm2022/comboboxes/combobox-column/util.mjs +0 -60
- package/esm2022/comboboxes/combobox.component.mjs +0 -2149
- package/esm2022/comboboxes/combobox.module.mjs +0 -77
- package/esm2022/comboboxes/multicolumncombobox.component.mjs +0 -883
- package/esm2022/common/adaptive-renderer.component.mjs +0 -253
- package/esm2022/common/constants/error-messages.mjs +0 -61
- package/esm2022/common/data.service.mjs +0 -250
- package/esm2022/common/disabled-items/disabled-items.service.mjs +0 -47
- package/esm2022/common/disabled-items/item-disabled.mjs +0 -5
- package/esm2022/common/filter-input.directive.mjs +0 -39
- package/esm2022/common/filtering/filter-settings.mjs +0 -5
- package/esm2022/common/filtering/filter.directive.mjs +0 -136
- package/esm2022/common/filtering/filterable-component.mjs +0 -34
- package/esm2022/common/list-item.directive.mjs +0 -25
- package/esm2022/common/list.component.mjs +0 -968
- package/esm2022/common/localization/custom-messages.component.mjs +0 -96
- package/esm2022/common/localization/localized-messages.directive.mjs +0 -47
- package/esm2022/common/localization/messages.mjs +0 -77
- package/esm2022/common/models/checkboxes-settings.mjs +0 -15
- package/esm2022/common/models/direction.mjs +0 -5
- package/esm2022/common/models/fillmode.mjs +0 -5
- package/esm2022/common/models/list-type.mjs +0 -5
- package/esm2022/common/models/page-change-event.mjs +0 -5
- package/esm2022/common/models/popup-settings.mjs +0 -5
- package/esm2022/common/models/preventable-event.mjs +0 -25
- package/esm2022/common/models/remove-tag-event.mjs +0 -23
- package/esm2022/common/models/rounded.mjs +0 -5
- package/esm2022/common/models/size.mjs +0 -5
- package/esm2022/common/models/virtualization-settings.mjs +0 -24
- package/esm2022/common/navigation/navigation-action.mjs +0 -32
- package/esm2022/common/navigation/navigation.service.mjs +0 -188
- package/esm2022/common/searchbar.component.mjs +0 -386
- package/esm2022/common/selection/selectable.directive.mjs +0 -83
- package/esm2022/common/selection/selection.service.mjs +0 -166
- package/esm2022/common/shared-events.directive.mjs +0 -99
- package/esm2022/common/taglist.component.mjs +0 -295
- package/esm2022/common/templates/custom-item-template.directive.mjs +0 -48
- package/esm2022/common/templates/fixed-group-template.directive.mjs +0 -55
- package/esm2022/common/templates/footer-template.directive.mjs +0 -49
- package/esm2022/common/templates/group-tag-template.directive.mjs +0 -47
- package/esm2022/common/templates/group-template.directive.mjs +0 -55
- package/esm2022/common/templates/header-template.directive.mjs +0 -49
- package/esm2022/common/templates/item-template.directive.mjs +0 -48
- package/esm2022/common/templates/no-data-template.directive.mjs +0 -49
- package/esm2022/common/templates/tag-template.directive.mjs +0 -46
- package/esm2022/common/templates/value-template.directive.mjs +0 -50
- package/esm2022/common/util.mjs +0 -376
- package/esm2022/directives.mjs +0 -172
- package/esm2022/dropdownlist/dropdownlist.component.mjs +0 -1999
- package/esm2022/dropdownlist/dropdownlist.module.mjs +0 -79
- package/esm2022/dropdowns.module.mjs +0 -76
- package/esm2022/dropdowntrees/checked-state/base-check.directive.mjs +0 -76
- package/esm2022/dropdowntrees/checked-state/check-all.directive.mjs +0 -170
- package/esm2022/dropdowntrees/checked-state/check.directive.mjs +0 -168
- package/esm2022/dropdowntrees/checked-state/checkable-settings.mjs +0 -5
- package/esm2022/dropdowntrees/checked-state/checked-item.mjs +0 -5
- package/esm2022/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.mjs +0 -69
- package/esm2022/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.mjs +0 -62
- package/esm2022/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.mjs +0 -69
- package/esm2022/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.mjs +0 -62
- package/esm2022/dropdowntrees/dropdowntree.component.mjs +0 -1967
- package/esm2022/dropdowntrees/dropdowntrees.module.mjs +0 -79
- package/esm2022/dropdowntrees/expanded-state/expand.directive.mjs +0 -49
- package/esm2022/dropdowntrees/lookup/lookup.mjs +0 -5
- package/esm2022/dropdowntrees/lookup/lookup.service.mjs +0 -82
- package/esm2022/dropdowntrees/multiselecttree.component.mjs +0 -2359
- package/esm2022/dropdowntrees/summary-tag/summary-tag.directive.mjs +0 -70
- package/esm2022/dropdowntrees/templates/node-template.directive.mjs +0 -31
- package/esm2022/index.mjs +0 -55
- package/esm2022/multiselect/multiselect.component.mjs +0 -2380
- package/esm2022/multiselect/multiselect.module.mjs +0 -79
- package/esm2022/multiselect/summary-tag.directive.mjs +0 -68
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-dropdowns.mjs +0 -8
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_AUTOCOMPLETE } from '../directives';
|
|
7
|
-
import { KENDO_ADORNMENTS, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
9
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { AdaptiveService } from '@progress/kendo-angular-utils';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./autocomplete.component";
|
|
13
|
-
import * as i2 from "../common/templates/fixed-group-template.directive";
|
|
14
|
-
import * as i3 from "../common/templates/footer-template.directive";
|
|
15
|
-
import * as i4 from "../common/templates/group-template.directive";
|
|
16
|
-
import * as i5 from "../common/templates/header-template.directive";
|
|
17
|
-
import * as i6 from "../common/templates/item-template.directive";
|
|
18
|
-
import * as i7 from "../common/templates/no-data-template.directive";
|
|
19
|
-
import * as i8 from "../common/filtering/filter.directive";
|
|
20
|
-
import * as i9 from "../common/localization/custom-messages.component";
|
|
21
|
-
import * as i10 from "@progress/kendo-angular-common";
|
|
22
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
23
|
-
/**
|
|
24
|
-
* Required for adding all AutoComplete features in NgModule-based Angular applications.
|
|
25
|
-
*
|
|
26
|
-
* ```typescript
|
|
27
|
-
* import { AutoCompleteModule } from '@progress/kendo-angular-dropdowns';
|
|
28
|
-
* @NgModule({
|
|
29
|
-
* imports: [AutoCompleteModule],
|
|
30
|
-
* declarations: [AppComponent],
|
|
31
|
-
* bootstrap: [AppComponent]
|
|
32
|
-
* })
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* The package exports:
|
|
36
|
-
* - `AutoCompleteComponent`—The AutoComplete component class.
|
|
37
|
-
* - `ItemTemplateDirective`—The item template directive.
|
|
38
|
-
* - `HeaderTemplateDirective`—The header template directive.
|
|
39
|
-
* - `FooterTemplateDirective`—The footer template directive.
|
|
40
|
-
* - `NoDataTemplateDirective`—The no data template directive.
|
|
41
|
-
* - `FixedGroupTemplateDirective`—The fixed group template directive.
|
|
42
|
-
* - `GroupTemplateDirective`—The group template directive.
|
|
43
|
-
* - `FilterDirective`—The filter directive.
|
|
44
|
-
* - `CustomMessagesComponent`—The custom messages component.
|
|
45
|
-
* - `SuffixTemplateDirective`—The suffix template directive.
|
|
46
|
-
* - `PrefixTemplateDirective`—The prefix template directive.
|
|
47
|
-
*/
|
|
48
|
-
export class AutoCompleteModule {
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AutoCompleteModule, imports: [i1.AutoCompleteComponent, 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.AutoCompleteComponent, 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] });
|
|
51
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AutoCompleteModule, providers: [
|
|
52
|
-
PopupService,
|
|
53
|
-
ResizeBatchService,
|
|
54
|
-
IconsService,
|
|
55
|
-
AdaptiveService
|
|
56
|
-
], imports: [i1.AutoCompleteComponent, i10.SeparatorComponent, i10.SeparatorComponent] });
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AutoCompleteModule, decorators: [{
|
|
59
|
-
type: NgModule,
|
|
60
|
-
args: [{
|
|
61
|
-
imports: [...KENDO_AUTOCOMPLETE, ...KENDO_ADORNMENTS],
|
|
62
|
-
exports: [...KENDO_AUTOCOMPLETE, ...KENDO_ADORNMENTS],
|
|
63
|
-
providers: [
|
|
64
|
-
PopupService,
|
|
65
|
-
ResizeBatchService,
|
|
66
|
-
IconsService,
|
|
67
|
-
AdaptiveService
|
|
68
|
-
]
|
|
69
|
-
}]
|
|
70
|
-
}] });
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Renders the column cell content of the MultiColumnComboBox component.
|
|
9
|
-
*
|
|
10
|
-
* To define a column cell template, nest an `<ng-template>` tag with the `kendoMultiColumnComboBoxColumnCellTemplate` directive inside the [`<kendo-combobox-column>`]({% slug api_dropdowns_comboboxcolumncomponent %}) tag.
|
|
11
|
-
* [See example]({% slug templates_multicolumncombobox %}).
|
|
12
|
-
*
|
|
13
|
-
* The context variables are:
|
|
14
|
-
* - `let-dataItem="dataItem"` (`any`)—The current data item. Also available as the implicit context variable.
|
|
15
|
-
* - `let-column="column"` ([`ColumnComponent`]({% slug api_dropdowns_comboboxcolumncomponent %}))—The current column configuration object.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-multicolumncombobox ...>
|
|
20
|
-
* <kendo-combobox-column field="name" title="Name">
|
|
21
|
-
* <ng-template kendoMultiColumnComboBoxColumnCellTemplate let-dataItem="dataItem" let-column="column">
|
|
22
|
-
* {{ dataItem[column.field] }}
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-combobox-column>
|
|
25
|
-
* <kendo-multicolumncombobox>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export class ColumnCellTemplateDirective {
|
|
29
|
-
templateRef;
|
|
30
|
-
constructor(templateRef) {
|
|
31
|
-
this.templateRef = templateRef;
|
|
32
|
-
}
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnCellTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ColumnCellTemplateDirective, isStandalone: true, selector: "[kendoMultiColumnComboBoxColumnCellTemplate]", ngImport: i0 });
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnCellTemplateDirective, decorators: [{
|
|
37
|
-
type: Directive,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: '[kendoMultiColumnComboBoxColumnCellTemplate]',
|
|
40
|
-
standalone: true
|
|
41
|
-
}]
|
|
42
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Renders the column header content of the MultiColumnComboBox component.
|
|
9
|
-
*
|
|
10
|
-
* To define a column header template, nest an `<ng-template>` tag with the `kendoMultiColumnComboBoxColumnHeaderTemplate` directive inside the [`<kendo-combobox-column>`]({% slug api_dropdowns_comboboxcolumncomponent %}) tag.
|
|
11
|
-
* [See example]({% slug templates_multicolumncombobox %}).
|
|
12
|
-
*
|
|
13
|
-
* The current [`column`]({% slug api_dropdowns_comboboxcolumncomponent %}) is available as the implicit context variable.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-multicolumncombobox ...>
|
|
18
|
-
* <kendo-combobox-column field="name" title="Name">
|
|
19
|
-
* <ng-template kendoMultiColumnComboBoxColumnHeaderTemplate let-column="column">
|
|
20
|
-
* {{ column.title }}
|
|
21
|
-
* </ng-template>
|
|
22
|
-
* </kendo-combobox-column>
|
|
23
|
-
* <kendo-multicolumncombobox>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export class ColumnHeaderTemplateDirective {
|
|
27
|
-
templateRef;
|
|
28
|
-
constructor(templateRef) {
|
|
29
|
-
this.templateRef = templateRef;
|
|
30
|
-
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnHeaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ColumnHeaderTemplateDirective, isStandalone: true, selector: "[kendoMultiColumnComboBoxColumnHeaderTemplate]", ngImport: i0 });
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnHeaderTemplateDirective, decorators: [{
|
|
35
|
-
type: Directive,
|
|
36
|
-
args: [{
|
|
37
|
-
selector: '[kendoMultiColumnComboBoxColumnHeaderTemplate]',
|
|
38
|
-
standalone: true
|
|
39
|
-
}]
|
|
40
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ContentChild, Input } from '@angular/core';
|
|
6
|
-
import { ColumnCellTemplateDirective } from './column-cell-template.directive';
|
|
7
|
-
import { ColumnHeaderTemplateDirective } from './column-header-template.directive';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the column definition for the MultiColumnComboBox component.
|
|
11
|
-
*
|
|
12
|
-
* Use this component to define columns inside the MultiColumnComboBox.
|
|
13
|
-
* [See example]({% slug columns_multicolumncombobox %}).
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-multicolumncombobox ...>
|
|
18
|
-
* <kendo-combobox-column field="name" title="Name" width="200"></kendo-combobox-column>
|
|
19
|
-
* <kendo-multicolumncombobox ...>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export class ComboBoxColumnComponent {
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
cellTemplate;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
headerTemplate;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the field to which the column is bound.
|
|
33
|
-
*
|
|
34
|
-
* > The `field` property can be set to point to a nested property value - e.g. `category.name`.
|
|
35
|
-
*/
|
|
36
|
-
field;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the title of the column.
|
|
39
|
-
*/
|
|
40
|
-
title;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the width of the column (in pixels).
|
|
43
|
-
*/
|
|
44
|
-
width;
|
|
45
|
-
/**
|
|
46
|
-
* Controls the visibility of the column. When `true`, hides the column from view.
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
hidden = false;
|
|
50
|
-
/**
|
|
51
|
-
* Sets custom styles for the table cells of the column (except for the header cells).
|
|
52
|
-
*
|
|
53
|
-
* The `style` property uses the NgStyle directive to apply styles.
|
|
54
|
-
*/
|
|
55
|
-
style;
|
|
56
|
-
/**
|
|
57
|
-
* Sets custom styles for the header cell of the column.
|
|
58
|
-
*
|
|
59
|
-
* The `headerStyle` property uses the NgStyle directive to apply styles.
|
|
60
|
-
*/
|
|
61
|
-
headerStyle;
|
|
62
|
-
/**
|
|
63
|
-
* Sets custom CSS classes for the column cells.
|
|
64
|
-
*
|
|
65
|
-
* The `class` property uses the NgClass directive to apply classes.
|
|
66
|
-
*/
|
|
67
|
-
class;
|
|
68
|
-
/**
|
|
69
|
-
* Sets custom CSS classes for the column header cell.
|
|
70
|
-
*
|
|
71
|
-
* The `headerClass` property uses the NgClass directive to apply classes.
|
|
72
|
-
*/
|
|
73
|
-
headerClass;
|
|
74
|
-
/**
|
|
75
|
-
* Sets the condition that needs to be satisfied for a column to remain visible. If you set the [`hidden`]({% slug api_dropdowns_comboboxcolumncomponent %}#toc-hidden) property, the behavior of media is overridden.
|
|
76
|
-
*/
|
|
77
|
-
media;
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
matchesMedia = true;
|
|
82
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ComboBoxColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ComboBoxColumnComponent, isStandalone: true, selector: "kendo-combobox-column", inputs: { field: "field", title: "title", width: "width", hidden: "hidden", style: "style", headerStyle: "headerStyle", class: "class", headerClass: "headerClass", media: "media" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: ColumnCellTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ColumnHeaderTemplateDirective, descendants: true }], ngImport: i0, template: '', isInline: true });
|
|
84
|
-
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ComboBoxColumnComponent, decorators: [{
|
|
86
|
-
type: Component,
|
|
87
|
-
args: [{
|
|
88
|
-
selector: 'kendo-combobox-column',
|
|
89
|
-
template: '',
|
|
90
|
-
standalone: true
|
|
91
|
-
}]
|
|
92
|
-
}], propDecorators: { cellTemplate: [{
|
|
93
|
-
type: ContentChild,
|
|
94
|
-
args: [ColumnCellTemplateDirective, { static: false }]
|
|
95
|
-
}], headerTemplate: [{
|
|
96
|
-
type: ContentChild,
|
|
97
|
-
args: [ColumnHeaderTemplateDirective, { static: false }]
|
|
98
|
-
}], field: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], title: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], width: [{
|
|
103
|
-
type: Input
|
|
104
|
-
}], hidden: [{
|
|
105
|
-
type: Input
|
|
106
|
-
}], style: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}], headerStyle: [{
|
|
109
|
-
type: Input
|
|
110
|
-
}], class: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], headerClass: [{
|
|
113
|
-
type: Input
|
|
114
|
-
}], media: [{
|
|
115
|
-
type: Input
|
|
116
|
-
}] } });
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { isPresent } from '../../common/util';
|
|
6
|
-
/**
|
|
7
|
-
* Stores the initially resolved scrollbar width value.
|
|
8
|
-
*/
|
|
9
|
-
let SCROLLBAR_WIDTH;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*
|
|
13
|
-
* Gets the default scrollbar width for the current environment.
|
|
14
|
-
*
|
|
15
|
-
* Returns the scrollbar width in pixels.
|
|
16
|
-
*/
|
|
17
|
-
export const scrollbarWidth = () => {
|
|
18
|
-
// calculate scrollbar width only once, then return the memoized value
|
|
19
|
-
if (isNaN(SCROLLBAR_WIDTH)) {
|
|
20
|
-
const div = document.createElement('div');
|
|
21
|
-
div.style.cssText = 'overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;';
|
|
22
|
-
div.innerHTML = ' ';
|
|
23
|
-
document.body.appendChild(div);
|
|
24
|
-
SCROLLBAR_WIDTH = div.offsetWidth - div.scrollWidth;
|
|
25
|
-
document.body.removeChild(div);
|
|
26
|
-
}
|
|
27
|
-
return SCROLLBAR_WIDTH;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Checks if all columns have a valid user-defined width.
|
|
31
|
-
*
|
|
32
|
-
* Returns `true` if all columns have a valid width, otherwise returns `false`.
|
|
33
|
-
*/
|
|
34
|
-
const allColumnsWidthsSet = (columns) => {
|
|
35
|
-
if (!isPresent(columns) || columns.length === 0) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
return columns.toArray().every(column => !isNaN(column.width) && column.width > 0);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*
|
|
43
|
-
* Calculates the row width based on the columns' width configuration.
|
|
44
|
-
*
|
|
45
|
-
* Ignores hidden columns and columns that do not match the provided media query.
|
|
46
|
-
* Returns `null` if any column does not have a valid width.
|
|
47
|
-
*/
|
|
48
|
-
export const getRowWidthFromColumnsMeta = (columns) => {
|
|
49
|
-
if (!allColumnsWidthsSet(columns)) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
const bordersWidth = 2;
|
|
53
|
-
const initialRowWidht = scrollbarWidth() + bordersWidth;
|
|
54
|
-
return columns.reduce((totalWidth, column) => {
|
|
55
|
-
if (!column.hidden && column.matchesMedia) {
|
|
56
|
-
totalWidth += parseInt(column.width, 10);
|
|
57
|
-
}
|
|
58
|
-
return totalWidth;
|
|
59
|
-
}, initialRowWidht);
|
|
60
|
-
};
|