@progress/kendo-angular-treelist 13.0.0-develop.7 → 13.0.0-develop.9
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/column-menu/column-chooser.component.d.ts +10 -6
- package/column-menu/column-menu-chooser.component.d.ts +6 -10
- package/column-menu/column-menu-filter.component.d.ts +6 -10
- package/column-menu/column-menu-item-content-template.directive.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +8 -6
- package/column-menu/column-menu-lock.component.d.ts +5 -11
- package/column-menu/column-menu-sort.component.d.ts +5 -11
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-menu/column-menu.service.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-group.component.d.ts +9 -6
- package/columns/column.component.d.ts +16 -66
- package/columns/command-column.component.d.ts +13 -15
- package/columns/span-column.component.d.ts +10 -81
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +11 -0
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +10 -6
- package/esm2020/column-menu/column-menu-chooser.component.mjs +8 -12
- package/esm2020/column-menu/column-menu-filter.component.mjs +6 -10
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +1 -1
- package/esm2020/column-menu/column-menu-item.component.mjs +8 -6
- package/esm2020/column-menu/column-menu-lock.component.mjs +5 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +5 -11
- package/esm2020/column-menu/column-menu.component.mjs +1 -1
- package/esm2020/column-menu/column-menu.service.mjs +1 -1
- package/esm2020/columns/checkbox-column.component.mjs +1 -1
- package/esm2020/columns/column-group.component.mjs +9 -6
- package/esm2020/columns/column.component.mjs +16 -39
- package/esm2020/columns/command-column.component.mjs +13 -15
- package/esm2020/columns/span-column.component.mjs +10 -81
- package/esm2020/editing/add-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +1 -1
- package/esm2020/editing/edit-command.directive.mjs +1 -1
- package/esm2020/editing/edit-template.directive.mjs +11 -0
- package/esm2020/editing/remove-command.directive.mjs +1 -1
- package/esm2020/editing/save-command.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +1 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +13 -12
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -13
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +11 -12
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -0
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-template.directive.mjs +1 -1
- package/esm2020/pdf/pdf-command.directive.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/rendering/cell-template.directive.mjs +1 -1
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/treelist.component.mjs +24 -288
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel.component.d.ts +9 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +302 -667
- package/fesm2020/progress-kendo-angular-treelist.mjs +302 -667
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -11
- package/filtering/cell/date-filter-cell.component.d.ts +11 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +13 -12
- package/filtering/cell/string-filter-cell.component.d.ts +12 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/menu/boolean-filter-menu.component.d.ts +11 -12
- package/filtering/menu/date-filter-menu.component.d.ts +12 -12
- package/filtering/menu/numeric-filter-menu.component.d.ts +12 -12
- package/filtering/menu/string-filter-menu.component.d.ts +15 -0
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/ends-with-filter-operator.component.d.ts +1 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/gte-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +1 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +1 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +1 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +16 -16
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-template.directive.d.ts +1 -1
- package/pdf/pdf-command.directive.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/rendering/cell-template.directive.d.ts +1 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
- package/treelist.component.d.ts +24 -287
|
@@ -14,18 +14,13 @@ import * as i3 from "./column-menu-item.component";
|
|
|
14
14
|
import * as i4 from "./column-list.component";
|
|
15
15
|
import * as i5 from "./column-menu-item-content-template.directive";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the
|
|
18
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
17
|
+
* Represents the column-menu item for selecting columns in the TreeList. [See example](slug:columnmenu_treelist#toc-column-chooser-item).
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
20
|
+
*
|
|
21
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
22
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-chooser` component.
|
|
22
23
|
*
|
|
23
|
-
* {% meta height:500 %}
|
|
24
|
-
* {% embed_file column-menu/template-chooser/app.component.ts preview %}
|
|
25
|
-
* {% embed_file column-menu/template-chooser/app.module.ts %}
|
|
26
|
-
* {% embed_file shared/main.ts %}
|
|
27
|
-
* {% embed_file shared/employees.ts %}
|
|
28
|
-
* {% endmeta %}
|
|
29
24
|
*/
|
|
30
25
|
export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
31
26
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -43,6 +38,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
43
38
|
this.collapse = new EventEmitter();
|
|
44
39
|
/**
|
|
45
40
|
* Specifies if the content is expanded.
|
|
41
|
+
* @default false
|
|
46
42
|
*/
|
|
47
43
|
this.expanded = false;
|
|
48
44
|
/**
|
|
@@ -67,7 +63,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
67
63
|
}
|
|
68
64
|
ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
69
65
|
ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: { expanded: "expanded" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
|
|
70
|
-
<kendo-treelist-columnmenu-item
|
|
66
|
+
<kendo-treelist-columnmenu-item
|
|
71
67
|
[text]="localization.get('columns')"
|
|
72
68
|
icon="columns"
|
|
73
69
|
[svgIcon]="columnsIcon"
|
|
@@ -92,7 +88,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
92
88
|
args: [{
|
|
93
89
|
selector: 'kendo-treelist-columnmenu-chooser',
|
|
94
90
|
template: `
|
|
95
|
-
<kendo-treelist-columnmenu-item
|
|
91
|
+
<kendo-treelist-columnmenu-item
|
|
96
92
|
[text]="localization.get('columns')"
|
|
97
93
|
icon="columns"
|
|
98
94
|
[svgIcon]="columnsIcon"
|
|
@@ -12,18 +12,13 @@ import * as i2 from "./column-menu-item.component";
|
|
|
12
12
|
import * as i3 from "../filtering/menu/filter-menu-container.component";
|
|
13
13
|
import * as i4 from "./column-menu-item-content-template.directive";
|
|
14
14
|
/**
|
|
15
|
-
* Represents the
|
|
16
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
15
|
+
* Represents the column-menu item for editing column filters in the TreeList.
|
|
17
16
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
18
|
+
*
|
|
19
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
20
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-filter` component.
|
|
20
21
|
*
|
|
21
|
-
* {% meta height:500 %}
|
|
22
|
-
* {% embed_file column-menu/template-filter/app.component.ts preview %}
|
|
23
|
-
* {% embed_file column-menu/template-filter/app.module.ts %}
|
|
24
|
-
* {% embed_file shared/main.ts %}
|
|
25
|
-
* {% embed_file shared/employees.ts %}
|
|
26
|
-
* {% endmeta %}
|
|
27
22
|
*/
|
|
28
23
|
export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
29
24
|
constructor(localization) {
|
|
@@ -39,6 +34,7 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
39
34
|
this.collapse = new EventEmitter();
|
|
40
35
|
/**
|
|
41
36
|
* Specifies if the content is expanded.
|
|
37
|
+
* @default false
|
|
42
38
|
*/
|
|
43
39
|
this.expanded = false;
|
|
44
40
|
/**
|
|
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```html
|
|
16
|
-
* <kendo-treelist
|
|
16
|
+
* <kendo-treelist ...>
|
|
17
17
|
* <kendo-treelist-column field="ProductName">
|
|
18
18
|
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
19
19
|
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
@@ -12,12 +12,14 @@ import * as i2 from "@angular/common";
|
|
|
12
12
|
* Represents an item that can be placed inside a
|
|
13
13
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
15
|
+
* * @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-treelist ...>
|
|
18
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
|
|
19
|
+
* <kendo-treelist-columnmenu-item text="Fit column"></kendo-treelist-columnmenu-item>
|
|
20
|
+
* </ng-template>
|
|
21
|
+
* </kendo-treelist>
|
|
22
|
+
* ```
|
|
21
23
|
*/
|
|
22
24
|
export class ColumnMenuItemComponent {
|
|
23
25
|
constructor() {
|
|
@@ -12,19 +12,13 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
12
12
|
import * as i2 from "../common/column-info.service";
|
|
13
13
|
import * as i3 from "./column-menu-item.component";
|
|
14
14
|
/**
|
|
15
|
-
* Represents
|
|
16
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
17
|
-
* Allows the user to lock or unlock the columns.
|
|
15
|
+
* Represents the column-menu item that allows the user to lock or unlock columns.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
17
|
+
* The componnt can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
18
|
+
*
|
|
19
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
20
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-lock` component.
|
|
21
21
|
*
|
|
22
|
-
* {% meta height:500 %}
|
|
23
|
-
* {% embed_file column-menu/template-lock/app.component.ts preview %}
|
|
24
|
-
* {% embed_file column-menu/template-lock/app.module.ts %}
|
|
25
|
-
* {% embed_file shared/main.ts %}
|
|
26
|
-
* {% embed_file shared/employees.ts %}
|
|
27
|
-
* {% endmeta %}
|
|
28
22
|
*/
|
|
29
23
|
export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
30
24
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -13,19 +13,13 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
13
13
|
import * as i2 from "../common/sort.service";
|
|
14
14
|
import * as i3 from "./column-menu-item.component";
|
|
15
15
|
/**
|
|
16
|
-
* Represents
|
|
17
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
18
|
-
* Allows the user to sort the column.
|
|
16
|
+
* Represents the column-menu item for sorting TreeList columns.
|
|
19
17
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
19
|
+
*
|
|
20
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
21
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-sort` component.
|
|
22
22
|
*
|
|
23
|
-
* {% meta height:500 %}
|
|
24
|
-
* {% embed_file column-menu/template-sort/app.component.ts preview %}
|
|
25
|
-
* {% embed_file column-menu/template-sort/app.module.ts %}
|
|
26
|
-
* {% embed_file shared/main.ts %}
|
|
27
|
-
* {% embed_file shared/employees.ts %}
|
|
28
|
-
* {% endmeta %}
|
|
29
23
|
*/
|
|
30
24
|
export class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
31
25
|
constructor(localization, sortService) {
|
|
@@ -21,7 +21,7 @@ import * as i8 from "./column-menu-filter.component";
|
|
|
21
21
|
import * as i9 from "@angular/common";
|
|
22
22
|
const POPUP_CLASS = 'k-grid-columnmenu-popup';
|
|
23
23
|
/**
|
|
24
|
-
* Represents the [column menu]({% slug columnmenu_treelist %}) component.
|
|
24
|
+
* Represents the [column menu]({% slug columnmenu_treelist %}) component of the TreeList.
|
|
25
25
|
*/
|
|
26
26
|
export class ColumnMenuComponent {
|
|
27
27
|
constructor(popupService, localization, service) {
|
|
@@ -8,7 +8,7 @@ import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "./column-base";
|
|
10
10
|
/**
|
|
11
|
-
* Represents the checkbox for selecting rows in the TreeList.
|
|
11
|
+
* Represents the checkbox for selecting rows in the TreeList. [See example](slug:selection_treelist#toc-select-all-checkbox).
|
|
12
12
|
*/
|
|
13
13
|
export class CheckboxColumnComponent extends ColumnBase {
|
|
14
14
|
constructor(parent) {
|
|
@@ -19,12 +19,15 @@ export function isColumnGroupComponent(column) {
|
|
|
19
19
|
* Represents the column group header of the TreeList
|
|
20
20
|
* ([more information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-treelist ...>
|
|
25
|
+
* <kendo-treelist-column-group title="File Info">
|
|
26
|
+
* <kendo-treelist-column field="type" title="Type"> </kendo-treelist-column>
|
|
27
|
+
* <kendo-treelist-column field="size" title="Size"> </kendo-treelist-column>
|
|
28
|
+
* </kendo-treelist-column-group>
|
|
29
|
+
* </kendo-treelist>
|
|
30
|
+
* ```
|
|
28
31
|
*/
|
|
29
32
|
export class ColumnGroupComponent extends ColumnBase {
|
|
30
33
|
constructor(parent, optionChanges) {
|
|
@@ -20,14 +20,15 @@ export function isColumnComponent(column) {
|
|
|
20
20
|
return isPresent(column.field);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Represents the columns of the
|
|
23
|
+
* Represents the columns of the TreeList.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```html
|
|
27
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
|
28
|
+
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
|
29
|
+
* <kendo-treelist-column field="title"title="Title"></kendo-treelist-column>
|
|
30
|
+
* </kendo-treelist>
|
|
31
|
+
* ```
|
|
31
32
|
*/
|
|
32
33
|
export class ColumnComponent extends ColumnBase {
|
|
33
34
|
constructor(parent, optionChanges) {
|
|
@@ -39,51 +40,27 @@ export class ColumnComponent extends ColumnBase {
|
|
|
39
40
|
this.sortable = true;
|
|
40
41
|
/**
|
|
41
42
|
* Defines the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)).
|
|
42
|
-
* Used when the column enters the edit mode.
|
|
43
|
+
* Used when the column enters the edit mode. [See example](slug:editing_reactive_forms_treelist).
|
|
43
44
|
*
|
|
44
|
-
* @
|
|
45
|
-
* ```html-no-run
|
|
46
|
-
* <kendo-treelist>
|
|
47
|
-
* <kendo-treelist-column field="UnitPrice" editor="numeric">
|
|
48
|
-
* </kendo-treelist-column>
|
|
49
|
-
* </kendo-treelist>
|
|
50
|
-
* ```
|
|
45
|
+
* @default 'text'
|
|
51
46
|
*/
|
|
52
47
|
this.editor = 'text';
|
|
53
48
|
/**
|
|
54
|
-
* Defines the filter type that is displayed inside the filter row.
|
|
49
|
+
* Defines the filter type that is displayed inside the filter row.
|
|
55
50
|
*
|
|
56
|
-
* @
|
|
57
|
-
* ```html-no-run
|
|
58
|
-
* <kendo-treelist>
|
|
59
|
-
* <kendo-treelist-column field="UnitPrice" filter="numeric">
|
|
60
|
-
* </kendo-treelist-column>
|
|
61
|
-
* </kendo-treelist>
|
|
62
|
-
* ```
|
|
51
|
+
* @default 'text'
|
|
63
52
|
*/
|
|
64
53
|
this.filter = 'text';
|
|
65
54
|
/**
|
|
66
|
-
* Defines if a filter UI will be displayed for this column.
|
|
55
|
+
* Defines if a filter UI will be displayed for this column.
|
|
67
56
|
*
|
|
68
|
-
* @
|
|
69
|
-
* ```html-no-run
|
|
70
|
-
* <kendo-treelist>
|
|
71
|
-
* <kendo-treelist-column field="UnitPrice" [filterable]="false">
|
|
72
|
-
* </kendo-treelist-column>
|
|
73
|
-
* </kendo-treelist>
|
|
74
|
-
* ```
|
|
57
|
+
* @default true
|
|
75
58
|
*/
|
|
76
59
|
this.filterable = true;
|
|
77
60
|
/**
|
|
78
|
-
* Defines whether the column is editable.
|
|
61
|
+
* Defines whether the column is editable.
|
|
79
62
|
*
|
|
80
|
-
* @
|
|
81
|
-
* ```html-no-run
|
|
82
|
-
* <kendo-treelist>
|
|
83
|
-
* <kendo-treelist-column field="UnitPrice" [editable]="false">
|
|
84
|
-
* </kendo-treelist-column>
|
|
85
|
-
* </kendo-treelist>
|
|
86
|
-
* ```
|
|
63
|
+
* @default true
|
|
87
64
|
*/
|
|
88
65
|
this.editable = true;
|
|
89
66
|
}
|
|
@@ -11,30 +11,28 @@ import * as i1 from "./column-base";
|
|
|
11
11
|
import * as i2 from "../common/option-changes.service";
|
|
12
12
|
/**
|
|
13
13
|
* Represents the command columns of the TreeList. You have to define the content of the
|
|
14
|
-
* column inside an `<ng-template>` tag.
|
|
15
|
-
* data item. For more information and examples on using the passed fields
|
|
14
|
+
* column inside an `<ng-template>` tag. For more information and examples on using the passed fields
|
|
16
15
|
* and the command directives, refer to the article on
|
|
17
16
|
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
|
18
17
|
*
|
|
19
|
-
* The following additional fields are passed:
|
|
20
|
-
* - `columnIndex`—The current column index.
|
|
21
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex`is `-1`.
|
|
22
|
-
* - `dataItem`—The current data item.
|
|
23
|
-
* - `column`—The current column instance.
|
|
24
|
-
* - `isNew`—The state of the current item.
|
|
25
|
-
*
|
|
26
18
|
* Usually, the template contains CRUD command directives such as:
|
|
27
19
|
* - [`EditCommandDirective`]({% slug api_treelist_editcommanddirective %})
|
|
28
20
|
* - [`RemoveCommandDirective`]({% slug api_treelist_removecommanddirective %})
|
|
29
21
|
* - [`CancelCommandDirective`]({% slug api_treelist_cancelcommanddirective %})
|
|
30
22
|
* - [`SaveCommandDirective`]({% slug api_treelist_savecommanddirective %})
|
|
31
23
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <kendo-treelist ...>
|
|
27
|
+
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
|
28
|
+
* <kendo-treelist-command-column title="command" >
|
|
29
|
+
* <ng-template kendoTreeListCellTemplate>
|
|
30
|
+
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
|
31
|
+
* <button kendoTreeListRemoveCommand>Remove</button>
|
|
32
|
+
* </ng-template>
|
|
33
|
+
* </kendo-treelist-command-column>
|
|
34
|
+
* </kendo-treelist>
|
|
35
|
+
* ```
|
|
38
36
|
*/
|
|
39
37
|
export class CommandColumnComponent extends ColumnBase {
|
|
40
38
|
constructor(parent, optionChanges) {
|
|
@@ -25,25 +25,15 @@ export function isSpanColumnComponent(column) {
|
|
|
25
25
|
* [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}). Wrap the columns that will be
|
|
26
26
|
* merged inside the `<kendo-treelist-span-column>` tag.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
* {% embed_file configuration/span-column/app.component.ts preview %}
|
|
30
|
-
* {% embed_file configuration/span-column/app.module.ts %}
|
|
31
|
-
* {% embed_file shared/main.ts %}
|
|
32
|
-
* {% embed_file shared/employees.ts %}
|
|
33
|
-
* {% endmeta %}
|
|
34
|
-
*
|
|
35
|
-
* By default, the data cell displays the data for the specified fields. To further customize
|
|
36
|
-
* the span-column functionality, use a [cell template]({% slug api_treelist_celltemplatedirective %}).
|
|
37
|
-
*
|
|
38
|
-
* ```html-no-run
|
|
28
|
+
* ```html
|
|
39
29
|
* <kendo-treelist-span-column>
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
30
|
+
* <kendo-treelist-column field="field1" ></kendo-treelist-column>
|
|
31
|
+
* <kendo-treelist-column field="field2" ></kendo-treelist-column>
|
|
32
|
+
* <ng-template kendoTreeListCellTemplate let-dataItem>
|
|
33
|
+
* <h5>{{ dataItem.field1 }}</h5>
|
|
34
|
+
* <p>{{ dataItem.field2 }}</p>
|
|
35
|
+
* </ng-template>
|
|
36
|
+
* </kendo-treelist-span-column>
|
|
47
37
|
* ```
|
|
48
38
|
*/
|
|
49
39
|
export class SpanColumnComponent extends ColumnBase {
|
|
@@ -71,22 +61,8 @@ export class SpanColumnComponent extends ColumnBase {
|
|
|
71
61
|
/**
|
|
72
62
|
* Defines whether the edit template of the column will be rendered. The default value is `false`.
|
|
73
63
|
*
|
|
74
|
-
*
|
|
64
|
+
* To enable the editing functionality for a spanned column, set an edit template for it.
|
|
75
65
|
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```html-no-run
|
|
78
|
-
* <kendo-treelist>
|
|
79
|
-
* <kendo-treelist-span-column [editable]="false">
|
|
80
|
-
* <kendo-treelist-column field="UnitPrice">
|
|
81
|
-
* </kendo-treelist-column>
|
|
82
|
-
* <kendo-treelist-column field="ProductName">
|
|
83
|
-
* </kendo-treelist-column>
|
|
84
|
-
* <ng-template kendoTreeListEditTemplate>
|
|
85
|
-
* .....
|
|
86
|
-
* </ng-template>
|
|
87
|
-
* </kendo-treelist-span-column>
|
|
88
|
-
* </kendo-treelist>
|
|
89
|
-
* ```
|
|
90
66
|
*/
|
|
91
67
|
set editable(value) {
|
|
92
68
|
this._editable = value;
|
|
@@ -131,56 +107,9 @@ export class SpanColumnComponent extends ColumnBase {
|
|
|
131
107
|
}
|
|
132
108
|
/**
|
|
133
109
|
* Toggles the locked (frozen) state of the columns. Locked columns are visible
|
|
134
|
-
* at all times during the horizontal scrolling of the TreeList.
|
|
135
|
-
*
|
|
136
|
-
* For the option to work properly, make sure that:
|
|
137
|
-
* - Scrolling is enabled.
|
|
138
|
-
* - The `height` option of the TreeList is set.
|
|
139
|
-
* - The widths of all TreeList columns are explicitly set in pixels. In this way,
|
|
140
|
-
* the TreeList adjusts the layout of the locked and unlocked columns.
|
|
110
|
+
* at all times during the horizontal scrolling of the TreeList. [See example](slug:locked_columns_treelist).
|
|
141
111
|
*
|
|
142
112
|
* @default false
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* ```ts
|
|
146
|
-
* _@Component({
|
|
147
|
-
* selector: 'my-app',
|
|
148
|
-
* template: `
|
|
149
|
-
* <kendo-treelist [data]="treelistData" [scrollable]="scrollable" style="height: 200px">
|
|
150
|
-
* <kendo-treelist-span-column [locked]="true">
|
|
151
|
-
* <kendo-treelist-column field="ProductID" title="Product ID" [width]="120">
|
|
152
|
-
* </kendo-treelist-column>
|
|
153
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200">
|
|
154
|
-
* </kendo-treelist-column>
|
|
155
|
-
* </kendo-treelist-span-column>
|
|
156
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
157
|
-
* </kendo-treelist-column>
|
|
158
|
-
* </kendo-treelist>
|
|
159
|
-
* `
|
|
160
|
-
* })
|
|
161
|
-
*
|
|
162
|
-
* class AppComponent {
|
|
163
|
-
* public treelistData: any[];
|
|
164
|
-
*
|
|
165
|
-
* constructor() {
|
|
166
|
-
* this.treelistData = products;
|
|
167
|
-
* }
|
|
168
|
-
* }
|
|
169
|
-
*
|
|
170
|
-
* const products = [{
|
|
171
|
-
* "ProductID": 1,
|
|
172
|
-
* "ProductName": "Chai",
|
|
173
|
-
* "UnitPrice": 18.0000,
|
|
174
|
-
* "Discontinued": true
|
|
175
|
-
* }, {
|
|
176
|
-
* "ProductID": 2,
|
|
177
|
-
* "ProductName": "Chang",
|
|
178
|
-
* "UnitPrice": 19.0000,
|
|
179
|
-
* "Discontinued": false
|
|
180
|
-
* }
|
|
181
|
-
* ];
|
|
182
|
-
*
|
|
183
|
-
* ```
|
|
184
113
|
*/
|
|
185
114
|
set locked(value) {
|
|
186
115
|
this._locked = value;
|
|
@@ -26,7 +26,7 @@ import * as i4 from "@angular/common";
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```html
|
|
29
|
-
* <kendo-treelist
|
|
29
|
+
* <kendo-treelist ...>
|
|
30
30
|
* <kendo-treelist-command-column title="command">
|
|
31
31
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
32
32
|
* <button [kendoTreeListAddCommand]="cellContext" class="k-primary">Edit</button>
|
|
@@ -23,7 +23,7 @@ import * as i4 from "@angular/common";
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```html
|
|
26
|
-
* <kendo-treelist
|
|
26
|
+
* <kendo-treelist ...>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
29
29
|
* <button [kendoTreeListCancelCommand]="cellContext">Cancel changes</button>
|
|
@@ -23,7 +23,7 @@ import * as i4 from "@angular/common";
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```html
|
|
26
|
-
* <kendo-treelist
|
|
26
|
+
* <kendo-treelist ...>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
29
29
|
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
@@ -16,6 +16,17 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` will be `undefined`.
|
|
17
17
|
* - `isNew`—The state of the current item.
|
|
18
18
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
19
|
+
*
|
|
20
|
+
* * @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-treelist ...>
|
|
23
|
+
* <kendo-treelist-command-column title="command">
|
|
24
|
+
* <ng-template kendoTreeListEditTemplate let-rowIndex="rowIndex">
|
|
25
|
+
* {{rowIndex}}
|
|
26
|
+
* </ng-template>
|
|
27
|
+
* </kendo-treelist-command-column>
|
|
28
|
+
* </kendo-treelist>
|
|
29
|
+
* ```
|
|
19
30
|
*/
|
|
20
31
|
export class EditTemplateDirective {
|
|
21
32
|
constructor(templateRef) {
|
|
@@ -23,7 +23,7 @@ import * as i4 from "@angular/common";
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```html
|
|
26
|
-
* <kendo-treelist
|
|
26
|
+
* <kendo-treelist ...>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
29
29
|
* <button [kendoTreeListRemoveCommand]="cellContext">Remove row</button>
|
|
@@ -23,7 +23,7 @@ import * as i4 from "@angular/common";
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```html
|
|
26
|
-
* <kendo-treelist
|
|
26
|
+
* <kendo-treelist ...>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
29
29
|
* <button [kendoTreeListSaveCommand]="cellContext">Save changes</button>
|
|
@@ -14,19 +14,19 @@ import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
|
14
14
|
import * as i5 from "../filter-input.directive";
|
|
15
15
|
/**
|
|
16
16
|
* Represents a Boolean filter-cell component.
|
|
17
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-default-filter-operator).
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* ```
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
22
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
23
|
+
* <kendo-treelist-boolean-filter-cell
|
|
24
|
+
* [column]="column"
|
|
25
|
+
* [filter]="filter">
|
|
26
|
+
* </kendo-treelist-boolean-filter-cell>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-treelist-column>
|
|
29
|
+
* ```
|
|
30
30
|
*/
|
|
31
31
|
export class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
32
32
|
constructor(filterService, localization, cd) {
|
|
@@ -17,17 +17,16 @@ import * as i5 from "../filter-input.directive";
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* ```
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-treelist-column field="OrderDate">
|
|
22
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
23
|
+
* <kendo-treelist-date-filter-cell
|
|
24
|
+
* [column]="column"
|
|
25
|
+
* [filter]="filter">
|
|
26
|
+
* </kendo-treelist-date-filter-cell>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-treelist-column>
|
|
29
|
+
* ```
|
|
31
30
|
*/
|
|
32
31
|
export class DateFilterCellComponent extends DateFilterComponent {
|
|
33
32
|
constructor(filterService, localization) {
|
|
@@ -36,6 +35,7 @@ export class DateFilterCellComponent extends DateFilterComponent {
|
|
|
36
35
|
/**
|
|
37
36
|
* Determines if the drop-down filter operators will be displayed. The default value is `true`.
|
|
38
37
|
* @type {boolean}
|
|
38
|
+
* @default true
|
|
39
39
|
*/
|
|
40
40
|
this.showOperators = true;
|
|
41
41
|
}
|
|
@@ -15,6 +15,20 @@ import * as i4 from "@angular/common";
|
|
|
15
15
|
import * as i5 from "../../navigation/focusable.directive";
|
|
16
16
|
/**
|
|
17
17
|
* Represents a component which accommodates the filter operators.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-treelist ...>
|
|
22
|
+
* <kendo-treelist-column field="ProductName">
|
|
23
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
24
|
+
* <input />
|
|
25
|
+
* <kendo-treelist-filter-cell-operators
|
|
26
|
+
* [operators]="[{text: 'Equals', value: 'eq'}]">
|
|
27
|
+
* </kendo-treelist-filter-cell-operators>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* </kendo-treelist>
|
|
31
|
+
* ```
|
|
18
32
|
*/
|
|
19
33
|
export class FilterCellOperatorsComponent {
|
|
20
34
|
constructor(localization) {
|
|
@@ -28,6 +42,7 @@ export class FilterCellOperatorsComponent {
|
|
|
28
42
|
/**
|
|
29
43
|
* Determines if the list of operators will be displayed.
|
|
30
44
|
* @type {boolean}
|
|
45
|
+
* @default true
|
|
31
46
|
*/
|
|
32
47
|
this.showOperators = true;
|
|
33
48
|
/**
|