@progress/kendo-angular-treelist 13.0.0-develop.2 → 13.0.0-develop.21
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/binding-directives/base-binding.directive.d.ts +5 -1
- package/binding-directives/data-bound-tree-component.d.ts +9 -0
- package/binding-directives/flat-binding.directive.d.ts +14 -3
- package/binding-directives/hierarchy-binding.directive.d.ts +12 -3
- 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-settings.interface.d.ts +7 -10
- 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/column-resizing/column-resize.interface.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-base.d.ts +4 -0
- 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/rowreorder-column.component.d.ts +19 -0
- package/columns/span-column.component.d.ts +10 -81
- package/data/change-event-args.interface.d.ts +2 -2
- package/data/data.collection.d.ts +6 -0
- package/dragdrop/column-reorder-config.d.ts +1 -1
- 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-event-args.interface.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +11 -0
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/remove-event-args.interface.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/editing/save-event-args.interface.d.ts +1 -1
- package/esm2020/binding-directives/base-binding.directive.mjs +9 -3
- package/esm2020/binding-directives/flat-binding.directive.mjs +56 -6
- package/esm2020/binding-directives/hierarchy-binding.directive.mjs +46 -6
- 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 +9 -7
- 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 +2 -2
- package/esm2020/column-menu/column-menu.service.mjs +1 -1
- package/esm2020/columns/checkbox-column.component.mjs +1 -1
- package/esm2020/columns/column-base.mjs +4 -0
- 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/rowreorder-column.component.mjs +47 -0
- package/esm2020/columns/span-column.component.mjs +10 -81
- package/esm2020/data/data.collection.mjs +41 -28
- package/esm2020/editing/add-command.directive.mjs +2 -2
- package/esm2020/editing/base-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +2 -2
- package/esm2020/editing/edit-command.directive.mjs +2 -2
- package/esm2020/editing/edit-template.directive.mjs +11 -0
- package/esm2020/editing/remove-command.directive.mjs +2 -2
- package/esm2020/editing/save-command.directive.mjs +2 -2
- package/esm2020/excel/excel-command.directive.mjs +2 -2
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +12 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +29 -12
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +23 -12
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +36 -1
- package/esm2020/filtering/cell/filter-cell-wrapper.component.mjs +3 -1
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +25 -13
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +26 -14
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/filter-input.directive.mjs +29 -3
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +33 -19
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +19 -8
- 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/index.mjs +2 -0
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/localization/messages.mjs +13 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +17 -0
- package/esm2020/pager/pager-next-buttons.component.mjs +8 -11
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
- package/esm2020/pager/pager-prev-buttons.component.mjs +8 -11
- package/esm2020/pager/pager-template.directive.mjs +1 -1
- package/esm2020/pdf/pdf-command.directive.mjs +2 -2
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/rendering/cell-template.directive.mjs +1 -1
- package/esm2020/rendering/cell.component.mjs +73 -20
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/rendering/constants.mjs +4 -0
- package/esm2020/rendering/header/header.component.mjs +6 -1
- package/esm2020/rendering/list.component.mjs +20 -18
- package/esm2020/rendering/table-body.component.mjs +5 -3
- package/esm2020/row-reordering/flat-reorder.service.mjs +48 -0
- package/esm2020/row-reordering/hierarchical-reorder.service.mjs +55 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +220 -0
- package/esm2020/row-reordering/types.mjs +5 -0
- package/esm2020/row-reordering/utils.mjs +129 -0
- package/esm2020/shared.module.mjs +8 -3
- package/esm2020/treelist.component.mjs +229 -321
- package/esm2020/treelist.module.mjs +71 -66
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel-export-data.interface.d.ts +1 -1
- package/excel/excel.component.d.ts +9 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +1434 -832
- package/fesm2020/progress-kendo-angular-treelist.mjs +1426 -833
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +4 -0
- package/filtering/cell/boolean-filter-cell.component.d.ts +19 -11
- package/filtering/cell/date-filter-cell.component.d.ts +15 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +29 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +17 -12
- package/filtering/cell/string-filter-cell.component.d.ts +16 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/filter-input.directive.d.ts +7 -1
- package/filtering/menu/boolean-filter-menu.component.d.ts +19 -13
- 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-input.component.d.ts +4 -0
- 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/index.d.ts +2 -0
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +42 -2
- package/navigation/navigation-cell.interface.d.ts +1 -4
- package/navigation/navigation-row.interface.d.ts +1 -4
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +9 -0
- package/pager/pager-next-buttons.component.d.ts +0 -3
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-prev-buttons.component.d.ts +0 -3
- package/pager/pager-settings.d.ts +1 -15
- 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/cell.component.d.ts +10 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/rendering/constants.d.ts +4 -0
- package/rendering/header/header.component.d.ts +1 -0
- package/row-reordering/flat-reorder.service.d.ts +16 -0
- package/row-reordering/hierarchical-reorder.service.d.ts +16 -0
- package/row-reordering/row-reorder.service.d.ts +61 -0
- package/row-reordering/types.d.ts +39 -0
- package/row-reordering/utils.d.ts +85 -0
- package/schematics/ngAdd/index.js +3 -3
- package/scrolling/content-scroll-event.d.ts +1 -1
- package/scrolling/scroll-bottom-event.d.ts +1 -1
- package/scrolling/scroll-request.service.d.ts +6 -0
- package/selection/selectable-settings.d.ts +5 -15
- package/selection/selectable.directive.d.ts +1 -1
- package/selection/selection-change-event.d.ts +1 -1
- package/shared.module.d.ts +5 -4
- package/treelist.component.d.ts +66 -289
- package/treelist.module.d.ts +68 -66
|
@@ -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>
|
|
@@ -57,7 +57,7 @@ AddCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
57
57
|
</span>
|
|
58
58
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
59
59
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
60
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AddCommandDirective, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{
|
|
@@ -55,7 +55,7 @@ BaseCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
55
55
|
</span>
|
|
56
56
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
57
57
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
58
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
58
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
59
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseCommandDirective, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{
|
|
@@ -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>
|
|
@@ -57,7 +57,7 @@ CancelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
57
57
|
</span>
|
|
58
58
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
59
59
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
60
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CancelCommandDirective, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{
|
|
@@ -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>
|
|
@@ -57,7 +57,7 @@ EditCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
57
57
|
</span>
|
|
58
58
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
59
59
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
60
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EditCommandDirective, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{
|
|
@@ -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>
|
|
@@ -56,7 +56,7 @@ RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
56
56
|
</span>
|
|
57
57
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
58
58
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
59
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RemoveCommandDirective, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{
|
|
@@ -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>
|
|
@@ -56,7 +56,7 @@ SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
56
56
|
</span>
|
|
57
57
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
58
58
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
59
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SaveCommandDirective, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{
|
|
@@ -21,7 +21,7 @@ import * as i4 from "@angular/common";
|
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```html
|
|
24
|
-
* <kendo-treelist
|
|
24
|
+
* <kendo-treelist ...>
|
|
25
25
|
* <ng-template kendoTreeListToolbarTemplate>
|
|
26
26
|
* <button kendoTreeListExcelCommand>Export to PDF</button>
|
|
27
27
|
* </ng-template>
|
|
@@ -61,7 +61,7 @@ ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
61
61
|
</span>
|
|
62
62
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
63
63
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
64
|
-
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
64
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
65
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelCommandDirective, decorators: [{
|
|
66
66
|
type: Component,
|
|
67
67
|
args: [{
|
|
@@ -8,6 +8,7 @@ import { ColumnComponent } from '../../columns/column.component';
|
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
9
|
import { BaseFilterCellComponent, localizeOperators } from '../base-filter-cell.component';
|
|
10
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
|
+
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "../filter.service";
|
|
13
14
|
import * as i2 from "../../columns/column.component";
|
|
@@ -50,6 +51,14 @@ export class AutoCompleteFilterCellComponent extends BaseFilterCellComponent {
|
|
|
50
51
|
get currentOperator() {
|
|
51
52
|
return this.currentFilter ? this.currentFilter.operator : "contains";
|
|
52
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
get columnLabel() {
|
|
58
|
+
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
59
|
+
const columnName = this.column.title || this.column.field;
|
|
60
|
+
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
63
|
AutoCompleteFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AutoCompleteFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ColumnComponent }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
55
64
|
AutoCompleteFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AutoCompleteFilterCellComponent, selector: "kendo-treelist-autocomplete-filter-cell", inputs: { showOperators: "showOperators", column: "column", filter: "filter", data: "data", valueField: "valueField" }, usesInheritance: true, ngImport: i0, template: `
|
|
@@ -61,11 +70,12 @@ AutoCompleteFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
61
70
|
<kendo-autocomplete
|
|
62
71
|
kendoFilterInput
|
|
63
72
|
[data]="data"
|
|
73
|
+
[columnLabel]="columnLabel"
|
|
64
74
|
[valueField]="valueField"
|
|
65
75
|
[value]="currentFilter?.value">
|
|
66
76
|
</kendo-autocomplete>
|
|
67
77
|
</kendo-treelist-filter-wrapper-cell>
|
|
68
|
-
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.AutoCompleteComponent, selector: "kendo-autocomplete", inputs: ["highlightFirst", "focusableId", "data", "value", "valueField", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "clearButton", "suggest", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoAutoComplete"] }], directives: [{ type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "value"] }] });
|
|
78
|
+
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.AutoCompleteComponent, selector: "kendo-autocomplete", inputs: ["highlightFirst", "focusableId", "data", "value", "valueField", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "clearButton", "suggest", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoAutoComplete"] }], directives: [{ type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
69
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AutoCompleteFilterCellComponent, decorators: [{
|
|
70
80
|
type: Component,
|
|
71
81
|
args: [{
|
|
@@ -79,6 +89,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
79
89
|
<kendo-autocomplete
|
|
80
90
|
kendoFilterInput
|
|
81
91
|
[data]="data"
|
|
92
|
+
[columnLabel]="columnLabel"
|
|
82
93
|
[valueField]="valueField"
|
|
83
94
|
[value]="currentFilter?.value">
|
|
84
95
|
</kendo-autocomplete>
|
|
@@ -6,6 +6,7 @@ import { Component, ChangeDetectorRef } from '@angular/core';
|
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { BooleanFilterComponent } from '../boolean-filter.component';
|
|
9
|
+
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "../filter.service";
|
|
11
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -14,19 +15,19 @@ import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
|
14
15
|
import * as i5 from "../filter-input.directive";
|
|
15
16
|
/**
|
|
16
17
|
* Represents a Boolean filter-cell component.
|
|
18
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-default-filter-operator).
|
|
17
19
|
*
|
|
18
20
|
* @example
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* ```
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
23
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
24
|
+
* <kendo-treelist-boolean-filter-cell
|
|
25
|
+
* [column]="column"
|
|
26
|
+
* [filter]="filter">
|
|
27
|
+
* </kendo-treelist-boolean-filter-cell>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* ```
|
|
30
31
|
*/
|
|
31
32
|
export class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
32
33
|
constructor(filterService, localization, cd) {
|
|
@@ -37,6 +38,20 @@ export class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
|
37
38
|
super.localizationChange();
|
|
38
39
|
this.cd.markForCheck();
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
messageFor(token) {
|
|
45
|
+
return this.localization.get(token);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
get columnLabel() {
|
|
51
|
+
const localizationMsg = this.localization.get('booleanFilterCellLabel') || '';
|
|
52
|
+
const columnName = this.column.title || this.column.field;
|
|
53
|
+
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
54
|
+
}
|
|
40
55
|
}
|
|
41
56
|
BooleanFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
57
|
BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BooleanFilterCellComponent, selector: "kendo-treelist-boolean-filter-cell", usesInheritance: true, ngImport: i0, template: `
|
|
@@ -48,6 +63,7 @@ BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
48
63
|
<kendo-dropdownlist
|
|
49
64
|
kendoFilterInput
|
|
50
65
|
[defaultItem]="defaultItem"
|
|
66
|
+
[columnLabel]="columnLabel"
|
|
51
67
|
[data]="items"
|
|
52
68
|
textField="text"
|
|
53
69
|
valueField="value"
|
|
@@ -56,7 +72,7 @@ BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
56
72
|
[value]="currentFilter?.value">
|
|
57
73
|
</kendo-dropdownlist>
|
|
58
74
|
</kendo-treelist-filter-wrapper-cell>
|
|
59
|
-
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "value"] }] });
|
|
75
|
+
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
60
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterCellComponent, decorators: [{
|
|
61
77
|
type: Component,
|
|
62
78
|
args: [{
|
|
@@ -70,6 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
70
86
|
<kendo-dropdownlist
|
|
71
87
|
kendoFilterInput
|
|
72
88
|
[defaultItem]="defaultItem"
|
|
89
|
+
[columnLabel]="columnLabel"
|
|
73
90
|
[data]="items"
|
|
74
91
|
textField="text"
|
|
75
92
|
valueField="value"
|
|
@@ -6,6 +6,7 @@ import { Component, Input } from '@angular/core';
|
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { DateFilterComponent } from '../date-filter.component';
|
|
9
|
+
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "../filter.service";
|
|
11
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -17,17 +18,16 @@ import * as i5 from "../filter-input.directive";
|
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* ```
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-treelist-column field="OrderDate">
|
|
23
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
24
|
+
* <kendo-treelist-date-filter-cell
|
|
25
|
+
* [column]="column"
|
|
26
|
+
* [filter]="filter">
|
|
27
|
+
* </kendo-treelist-date-filter-cell>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* ```
|
|
31
31
|
*/
|
|
32
32
|
export class DateFilterCellComponent extends DateFilterComponent {
|
|
33
33
|
constructor(filterService, localization) {
|
|
@@ -36,9 +36,18 @@ export class DateFilterCellComponent extends DateFilterComponent {
|
|
|
36
36
|
/**
|
|
37
37
|
* Determines if the drop-down filter operators will be displayed. The default value is `true`.
|
|
38
38
|
* @type {boolean}
|
|
39
|
+
* @default true
|
|
39
40
|
*/
|
|
40
41
|
this.showOperators = true;
|
|
41
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
get columnLabel() {
|
|
47
|
+
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
48
|
+
const columnName = this.column.title || this.column.field;
|
|
49
|
+
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
50
|
+
}
|
|
42
51
|
}
|
|
43
52
|
DateFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
53
|
DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateFilterCellComponent, selector: "kendo-treelist-date-filter-cell", inputs: { showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
@@ -53,6 +62,7 @@ DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
53
62
|
kendoFilterInput
|
|
54
63
|
[value]="currentFilter?.value"
|
|
55
64
|
[format]="format"
|
|
65
|
+
[columnLabel]="columnLabel"
|
|
56
66
|
[formatPlaceholder]="formatPlaceholder"
|
|
57
67
|
[placeholder]="placeholder"
|
|
58
68
|
[activeView]="activeView"
|
|
@@ -64,7 +74,7 @@ DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
64
74
|
>
|
|
65
75
|
</kendo-datepicker>
|
|
66
76
|
</kendo-treelist-filter-wrapper-cell>
|
|
67
|
-
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "value"] }] });
|
|
77
|
+
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
68
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterCellComponent, decorators: [{
|
|
69
79
|
type: Component,
|
|
70
80
|
args: [{
|
|
@@ -81,6 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
81
91
|
kendoFilterInput
|
|
82
92
|
[value]="currentFilter?.value"
|
|
83
93
|
[format]="format"
|
|
94
|
+
[columnLabel]="columnLabel"
|
|
84
95
|
[formatPlaceholder]="formatPlaceholder"
|
|
85
96
|
[placeholder]="placeholder"
|
|
86
97
|
[activeView]="activeView"
|
|
@@ -7,6 +7,8 @@ import { Keys } from '@progress/kendo-angular-common';
|
|
|
7
7
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { filterClearIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
|
+
import { ColumnComponent } from '../../columns/column.component';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
14
|
import * as i2 from "@progress/kendo-angular-dropdowns";
|
|
@@ -15,6 +17,20 @@ import * as i4 from "@angular/common";
|
|
|
15
17
|
import * as i5 from "../../navigation/focusable.directive";
|
|
16
18
|
/**
|
|
17
19
|
* Represents a component which accommodates the filter operators.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-treelist ...>
|
|
24
|
+
* <kendo-treelist-column field="ProductName">
|
|
25
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
26
|
+
* <input />
|
|
27
|
+
* <kendo-treelist-filter-cell-operators
|
|
28
|
+
* [operators]="[{text: 'Equals', value: 'eq'}]">
|
|
29
|
+
* </kendo-treelist-filter-cell-operators>
|
|
30
|
+
* </ng-template>
|
|
31
|
+
* </kendo-treelist-column>
|
|
32
|
+
* </kendo-treelist>
|
|
33
|
+
* ```
|
|
18
34
|
*/
|
|
19
35
|
export class FilterCellOperatorsComponent {
|
|
20
36
|
constructor(localization) {
|
|
@@ -28,6 +44,7 @@ export class FilterCellOperatorsComponent {
|
|
|
28
44
|
/**
|
|
29
45
|
* Determines if the list of operators will be displayed.
|
|
30
46
|
* @type {boolean}
|
|
47
|
+
* @default true
|
|
31
48
|
*/
|
|
32
49
|
this.showOperators = true;
|
|
33
50
|
/**
|
|
@@ -88,9 +105,23 @@ export class FilterCellOperatorsComponent {
|
|
|
88
105
|
this.subscription.unsubscribe();
|
|
89
106
|
}
|
|
90
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
get columnLabel() {
|
|
112
|
+
const localizationMsg = this.localization.get('filterCellOperatorLabel') || '';
|
|
113
|
+
const columnName = this.column.title || this.column.field;
|
|
114
|
+
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*/
|
|
119
|
+
messageFor(token) {
|
|
120
|
+
return this.localization.get(token);
|
|
121
|
+
}
|
|
91
122
|
}
|
|
92
123
|
FilterCellOperatorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
93
|
-
FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterCellOperatorsComponent, selector: "kendo-treelist-filter-cell-operators", inputs: { operators: "operators", showButton: "showButton", showOperators: "showOperators", value: "value" }, outputs: { valueChange: "valueChange", clear: "clear" }, host: { properties: { "class.k-filtercell-operator": "this.hostClasses" } }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }], ngImport: i0, template: `
|
|
124
|
+
FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterCellOperatorsComponent, selector: "kendo-treelist-filter-cell-operators", inputs: { operators: "operators", showButton: "showButton", showOperators: "showOperators", value: "value", column: "column" }, outputs: { valueChange: "valueChange", clear: "clear" }, host: { properties: { "class.k-filtercell-operator": "this.hostClasses" } }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }], ngImport: i0, template: `
|
|
94
125
|
<kendo-dropdownlist
|
|
95
126
|
#dropdown
|
|
96
127
|
*ngIf="showOperators"
|
|
@@ -99,6 +130,7 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
99
130
|
class="k-dropdown-operator"
|
|
100
131
|
(valueChange)="onChange($event)"
|
|
101
132
|
[value]="value"
|
|
133
|
+
[attr.aria-label]="columnLabel"
|
|
102
134
|
iconClass="k-i-filter"
|
|
103
135
|
[valuePrimitive]="true"
|
|
104
136
|
textField="text"
|
|
@@ -130,6 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
130
162
|
class="k-dropdown-operator"
|
|
131
163
|
(valueChange)="onChange($event)"
|
|
132
164
|
[value]="value"
|
|
165
|
+
[attr.aria-label]="columnLabel"
|
|
133
166
|
iconClass="k-i-filter"
|
|
134
167
|
[valuePrimitive]="true"
|
|
135
168
|
textField="text"
|
|
@@ -163,6 +196,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
163
196
|
type: Input
|
|
164
197
|
}], value: [{
|
|
165
198
|
type: Input
|
|
199
|
+
}], column: [{
|
|
200
|
+
type: Input
|
|
166
201
|
}], valueChange: [{
|
|
167
202
|
type: Output
|
|
168
203
|
}], clear: [{
|
|
@@ -39,11 +39,12 @@ FilterCellWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
39
39
|
<kendo-treelist-filter-cell-operators
|
|
40
40
|
[showOperators]="showOperators"
|
|
41
41
|
[operators]="operators"
|
|
42
|
+
[column]="column"
|
|
42
43
|
(clear)="onClear()"
|
|
43
44
|
[showButton]="showButton"
|
|
44
45
|
[(value)]="currentOperator">
|
|
45
46
|
</kendo-treelist-filter-cell-operators>
|
|
46
|
-
`, isInline: true, components: [{ type: i2.FilterCellOperatorsComponent, selector: "kendo-treelist-filter-cell-operators", inputs: ["operators", "showButton", "showOperators", "value"], outputs: ["valueChange", "clear"] }] });
|
|
47
|
+
`, isInline: true, components: [{ type: i2.FilterCellOperatorsComponent, selector: "kendo-treelist-filter-cell-operators", inputs: ["operators", "showButton", "showOperators", "value", "column"], outputs: ["valueChange", "clear"] }] });
|
|
47
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterCellWrapperComponent, decorators: [{
|
|
48
49
|
type: Component,
|
|
49
50
|
args: [{
|
|
@@ -53,6 +54,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
53
54
|
<kendo-treelist-filter-cell-operators
|
|
54
55
|
[showOperators]="showOperators"
|
|
55
56
|
[operators]="operators"
|
|
57
|
+
[column]="column"
|
|
56
58
|
(clear)="onClear()"
|
|
57
59
|
[showButton]="showButton"
|
|
58
60
|
[(value)]="currentOperator">
|
|
@@ -6,6 +6,7 @@ import { Component, Input } from '@angular/core';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { FilterService } from '../filter.service';
|
|
8
8
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
9
|
+
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "../filter.service";
|
|
11
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -17,16 +18,16 @@ import * as i6 from "../filter-input.directive";
|
|
|
17
18
|
* Represents a numeric filter cell.
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
23
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
24
|
+
* <kendo-treelist-numeric-filter-cell
|
|
25
|
+
* [column]="column"
|
|
26
|
+
* [filter]="filter">
|
|
27
|
+
* </kendo-treelist-numeric-filter-cell>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* ```
|
|
30
31
|
*/
|
|
31
32
|
export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
32
33
|
constructor(filterService, localization) {
|
|
@@ -34,17 +35,26 @@ export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
34
35
|
this.localization = localization;
|
|
35
36
|
/**
|
|
36
37
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
37
|
-
* A value of `0` indicates no delay.
|
|
38
|
+
* A value of `0` indicates no delay.
|
|
38
39
|
* @type {boolean}
|
|
40
|
+
* @default 500
|
|
39
41
|
*/
|
|
40
42
|
this.filterDelay = 500;
|
|
41
43
|
/**
|
|
42
44
|
* Determines if the drop-down filter operators will be displayed.
|
|
43
|
-
* The default value is `true`.
|
|
44
45
|
* @type {boolean}
|
|
46
|
+
* @default true
|
|
45
47
|
*/
|
|
46
48
|
this.showOperators = true;
|
|
47
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
get columnLabel() {
|
|
54
|
+
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
55
|
+
const columnName = this.column.title || this.column.field;
|
|
56
|
+
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
57
|
+
}
|
|
48
58
|
}
|
|
49
59
|
NumericFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
60
|
NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NumericFilterCellComponent, selector: "kendo-treelist-numeric-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
@@ -57,6 +67,7 @@ NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
57
67
|
<kendo-numerictextbox
|
|
58
68
|
kendoTreeListFocusable
|
|
59
69
|
kendoFilterInput
|
|
70
|
+
[columnLabel]="columnLabel"
|
|
60
71
|
[filterDelay]="filterDelay"
|
|
61
72
|
[autoCorrect]="true"
|
|
62
73
|
[value]="currentFilter?.value"
|
|
@@ -68,7 +79,7 @@ NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
68
79
|
[step]="step">
|
|
69
80
|
</kendo-numerictextbox>
|
|
70
81
|
</kendo-treelist-filter-wrapper-cell>
|
|
71
|
-
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i5.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "value"] }] });
|
|
82
|
+
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i5.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
72
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterCellComponent, decorators: [{
|
|
73
84
|
type: Component,
|
|
74
85
|
args: [{
|
|
@@ -83,6 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
83
94
|
<kendo-numerictextbox
|
|
84
95
|
kendoTreeListFocusable
|
|
85
96
|
kendoFilterInput
|
|
97
|
+
[columnLabel]="columnLabel"
|
|
86
98
|
[filterDelay]="filterDelay"
|
|
87
99
|
[autoCorrect]="true"
|
|
88
100
|
[value]="currentFilter?.value"
|