@progress/kendo-angular-treelist 11.0.0-develop.99 → 11.0.1-develop.1
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/NOTICE.txt +17 -17
- package/column-menu/column-chooser.component.d.ts +4 -1
- package/column-menu/column-menu-chooser.component.d.ts +2 -0
- package/column-menu/column-menu-filter.component.d.ts +2 -0
- package/column-menu/column-menu-item.component.d.ts +7 -2
- package/column-menu/column-menu-lock.component.d.ts +4 -0
- package/column-menu/column-menu-sort.component.d.ts +3 -0
- package/column-menu/column-menu.component.d.ts +2 -0
- package/column-menu/column-menu.module.d.ts +2 -1
- package/esm2020/column-menu/column-chooser.component.mjs +17 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +17 -5
- package/esm2020/column-menu/column-menu-filter.component.mjs +17 -5
- package/esm2020/column-menu/column-menu-item.component.mjs +15 -13
- package/esm2020/column-menu/column-menu-lock.component.mjs +19 -3
- package/esm2020/column-menu/column-menu-sort.component.mjs +28 -9
- package/esm2020/column-menu/column-menu.component.mjs +15 -8
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/dragdrop/draggable-column.directive.mjs +2 -2
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +4 -0
- package/esm2020/filtering/menu/filter-menu.component.mjs +11 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-next-buttons.component.mjs +7 -0
- package/esm2020/pager/pager-prev-buttons.component.mjs +7 -0
- package/esm2020/rendering/cell.component.mjs +22 -14
- package/esm2020/rendering/constants.mjs +1 -1
- package/esm2020/rendering/header/header.component.mjs +27 -21
- package/esm2020/rendering/table-body.component.mjs +1 -1
- package/fesm2015/progress-kendo-angular-treelist.mjs +202 -107
- package/fesm2020/progress-kendo-angular-treelist.mjs +202 -107
- package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
- package/filtering/menu/filter-menu.component.d.ts +2 -0
- package/package.json +19 -19
- package/pager/pager-next-buttons.component.d.ts +3 -0
- package/pager/pager-prev-buttons.component.d.ts +3 -0
- package/rendering/cell.component.d.ts +3 -0
- package/rendering/constants.d.ts +1 -1
- package/rendering/header/header.component.d.ts +4 -2
- package/schematics/ngAdd/index.js +2 -2
|
@@ -6,6 +6,7 @@ import { Component, ChangeDetectorRef } from '@angular/core';
|
|
|
6
6
|
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
7
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
8
8
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
9
|
+
import { lockIcon, unlockIcon } from '@progress/kendo-svg-icons';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
12
|
import * as i2 from "../common/column-info.service";
|
|
@@ -31,6 +32,8 @@ export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
|
31
32
|
this.localization = localization;
|
|
32
33
|
this.columnInfoService = columnInfoService;
|
|
33
34
|
this.changeDetector = changeDetector;
|
|
35
|
+
this.unlockIcon = unlockIcon;
|
|
36
|
+
this.lockIcon = lockIcon;
|
|
34
37
|
}
|
|
35
38
|
get text() {
|
|
36
39
|
return this.localization.get(this.locked ? 'unlock' : 'lock');
|
|
@@ -38,6 +41,9 @@ export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
|
38
41
|
get icon() {
|
|
39
42
|
return this.locked ? 'unlock' : 'lock';
|
|
40
43
|
}
|
|
44
|
+
get svgIcon() {
|
|
45
|
+
return this.locked ? this.unlockIcon : this.lockIcon;
|
|
46
|
+
}
|
|
41
47
|
get disabled() {
|
|
42
48
|
return !this.locked && this.columnInfoService.unlockedRootCount < 2;
|
|
43
49
|
}
|
|
@@ -72,15 +78,25 @@ export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
|
72
78
|
}
|
|
73
79
|
ColumnMenuLockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuLockComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
80
|
ColumnMenuLockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuLockComponent, selector: "kendo-treelist-columnmenu-lock", usesInheritance: true, ngImport: i0, template: `
|
|
75
|
-
<kendo-treelist-columnmenu-item
|
|
81
|
+
<kendo-treelist-columnmenu-item
|
|
82
|
+
[text]="text"
|
|
83
|
+
[icon]="icon"
|
|
84
|
+
[svgIcon]="svgIcon"
|
|
85
|
+
(itemClick)="toggleColumn()"
|
|
86
|
+
[disabled]="disabled">
|
|
76
87
|
</kendo-treelist-columnmenu-item>
|
|
77
|
-
`, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
88
|
+
`, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
78
89
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuLockComponent, decorators: [{
|
|
79
90
|
type: Component,
|
|
80
91
|
args: [{
|
|
81
92
|
selector: 'kendo-treelist-columnmenu-lock',
|
|
82
93
|
template: `
|
|
83
|
-
<kendo-treelist-columnmenu-item
|
|
94
|
+
<kendo-treelist-columnmenu-item
|
|
95
|
+
[text]="text"
|
|
96
|
+
[icon]="icon"
|
|
97
|
+
[svgIcon]="svgIcon"
|
|
98
|
+
(itemClick)="toggleColumn()"
|
|
99
|
+
[disabled]="disabled">
|
|
84
100
|
</kendo-treelist-columnmenu-item>
|
|
85
101
|
`
|
|
86
102
|
}]
|
|
@@ -7,6 +7,7 @@ import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
|
7
7
|
import { SortService } from '../common/sort.service';
|
|
8
8
|
import { normalize } from '../columns/sort-settings';
|
|
9
9
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
10
|
+
import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
13
|
import * as i2 from "../common/sort.service";
|
|
@@ -31,6 +32,8 @@ export class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
|
31
32
|
super();
|
|
32
33
|
this.localization = localization;
|
|
33
34
|
this.sortService = sortService;
|
|
35
|
+
this.sortAscSmallIcon = sortAscSmallIcon;
|
|
36
|
+
this.sortDescSmallIcon = sortDescSmallIcon;
|
|
34
37
|
}
|
|
35
38
|
get sortedAsc() {
|
|
36
39
|
const descriptor = this.descriptor;
|
|
@@ -65,23 +68,39 @@ export class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
|
65
68
|
}
|
|
66
69
|
ColumnMenuSortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuSortComponent, deps: [{ token: i1.LocalizationService }, { token: i2.SortService }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
70
|
ColumnMenuSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort", usesInheritance: true, ngImport: i0, template: `
|
|
68
|
-
<kendo-treelist-columnmenu-item
|
|
69
|
-
|
|
71
|
+
<kendo-treelist-columnmenu-item
|
|
72
|
+
[text]="localization.get('sortAscending')"
|
|
73
|
+
icon="sort-asc-small"
|
|
74
|
+
[svgIcon]="sortAscSmallIcon"
|
|
75
|
+
(itemClick)="toggleSort('asc')"
|
|
76
|
+
[selected]="sortedAsc">
|
|
70
77
|
</kendo-treelist-columnmenu-item>
|
|
71
|
-
<kendo-treelist-columnmenu-item
|
|
72
|
-
|
|
78
|
+
<kendo-treelist-columnmenu-item
|
|
79
|
+
[text]="localization.get('sortDescending')"
|
|
80
|
+
icon="sort-desc-small"
|
|
81
|
+
[svgIcon]="sortDescSmallIcon"
|
|
82
|
+
(itemClick)="toggleSort('desc')"
|
|
83
|
+
[selected]="sortedDesc">
|
|
73
84
|
</kendo-treelist-columnmenu-item>
|
|
74
|
-
`, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
85
|
+
`, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
75
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuSortComponent, decorators: [{
|
|
76
87
|
type: Component,
|
|
77
88
|
args: [{
|
|
78
89
|
selector: 'kendo-treelist-columnmenu-sort',
|
|
79
90
|
template: `
|
|
80
|
-
<kendo-treelist-columnmenu-item
|
|
81
|
-
|
|
91
|
+
<kendo-treelist-columnmenu-item
|
|
92
|
+
[text]="localization.get('sortAscending')"
|
|
93
|
+
icon="sort-asc-small"
|
|
94
|
+
[svgIcon]="sortAscSmallIcon"
|
|
95
|
+
(itemClick)="toggleSort('asc')"
|
|
96
|
+
[selected]="sortedAsc">
|
|
82
97
|
</kendo-treelist-columnmenu-item>
|
|
83
|
-
<kendo-treelist-columnmenu-item
|
|
84
|
-
|
|
98
|
+
<kendo-treelist-columnmenu-item
|
|
99
|
+
[text]="localization.get('sortDescending')"
|
|
100
|
+
icon="sort-desc-small"
|
|
101
|
+
[svgIcon]="sortDescSmallIcon"
|
|
102
|
+
(itemClick)="toggleSort('desc')"
|
|
103
|
+
[selected]="sortedDesc">
|
|
85
104
|
</kendo-treelist-columnmenu-item>
|
|
86
105
|
`
|
|
87
106
|
}]
|
|
@@ -8,15 +8,17 @@ import { SinglePopupService } from '../common/single-popup.service';
|
|
|
8
8
|
import { ColumnMenuService } from './column-menu.service';
|
|
9
9
|
import { filtersByField } from '../filtering/base-filter-cell.component';
|
|
10
10
|
import { hasFilter, hasSort, hasLock, hasColumnChooser } from './utils';
|
|
11
|
+
import { moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "../common/single-popup.service";
|
|
13
14
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
14
15
|
import * as i3 from "./column-menu.service";
|
|
15
|
-
import * as i4 from "
|
|
16
|
-
import * as i5 from "./column-menu-
|
|
17
|
-
import * as i6 from "./column-menu-
|
|
18
|
-
import * as i7 from "./column-menu-
|
|
19
|
-
import * as i8 from "
|
|
16
|
+
import * as i4 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i5 from "./column-menu-sort.component";
|
|
18
|
+
import * as i6 from "./column-menu-lock.component";
|
|
19
|
+
import * as i7 from "./column-menu-chooser.component";
|
|
20
|
+
import * as i8 from "./column-menu-filter.component";
|
|
21
|
+
import * as i9 from "@angular/common";
|
|
20
22
|
const POPUP_CLASS = 'k-grid-columnmenu-popup';
|
|
21
23
|
/**
|
|
22
24
|
* Represents the [column menu]({% slug columnmenu_treelist %}) component.
|
|
@@ -46,6 +48,7 @@ export class ColumnMenuComponent {
|
|
|
46
48
|
* @hidden
|
|
47
49
|
*/
|
|
48
50
|
this.expandedColumns = false;
|
|
51
|
+
this.moreVerticalIcon = moreVerticalIcon;
|
|
49
52
|
this.closeSubscription = service.closeMenu.subscribe(this.close.bind(this));
|
|
50
53
|
}
|
|
51
54
|
/**
|
|
@@ -129,7 +132,9 @@ ColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
129
132
|
href="#"
|
|
130
133
|
tabindex="-1"
|
|
131
134
|
[attr.title]="localization.get('columnMenu')">
|
|
132
|
-
<
|
|
135
|
+
<kendo-icon-wrapper
|
|
136
|
+
name="more-vertical"
|
|
137
|
+
[svgIcon]="moreVerticalIcon"></kendo-icon-wrapper>
|
|
133
138
|
</a>
|
|
134
139
|
<ng-template #template>
|
|
135
140
|
<ng-container [ngTemplateOutlet]="column.columnMenuTemplateRef || columnMenuTemplate || defaultTemplate"
|
|
@@ -148,7 +153,7 @@ ColumnMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
148
153
|
[expanded]="expandedFilter" (expand)="onFilterExpand()">
|
|
149
154
|
</kendo-treelist-columnmenu-filter>
|
|
150
155
|
</ng-template>
|
|
151
|
-
`, isInline: true, components: [{ type: i4.ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort" }, { type:
|
|
156
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort" }, { type: i6.ColumnMenuLockComponent, selector: "kendo-treelist-columnmenu-lock" }, { type: i7.ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: ["expanded"], outputs: ["expand", "collapse"] }, { type: i8.ColumnMenuFilterComponent, selector: "kendo-treelist-columnmenu-filter", inputs: ["expanded"], outputs: ["expand", "collapse"] }], directives: [{ type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
152
157
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuComponent, decorators: [{
|
|
153
158
|
type: Component,
|
|
154
159
|
args: [{
|
|
@@ -162,7 +167,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
162
167
|
href="#"
|
|
163
168
|
tabindex="-1"
|
|
164
169
|
[attr.title]="localization.get('columnMenu')">
|
|
165
|
-
<
|
|
170
|
+
<kendo-icon-wrapper
|
|
171
|
+
name="more-vertical"
|
|
172
|
+
[svgIcon]="moreVerticalIcon"></kendo-icon-wrapper>
|
|
166
173
|
</a>
|
|
167
174
|
<ng-template #template>
|
|
168
175
|
<ng-container [ngTemplateOutlet]="column.columnMenuTemplateRef || columnMenuTemplate || defaultTemplate"
|
|
@@ -15,6 +15,7 @@ import { ColumnMenuComponent } from './column-menu.component';
|
|
|
15
15
|
import { ColumnMenuLockComponent } from './column-menu-lock.component';
|
|
16
16
|
import { FilterMenuModule } from '../filtering/menu/filter-menu.module';
|
|
17
17
|
import { ColumnMenuTemplateDirective } from './column-menu-template.directive';
|
|
18
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
const COMPONENTS = [
|
|
20
21
|
ColumnListComponent,
|
|
@@ -56,7 +57,7 @@ ColumnMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
56
57
|
ColumnMenuSortComponent,
|
|
57
58
|
ColumnMenuComponent,
|
|
58
59
|
ColumnMenuLockComponent,
|
|
59
|
-
ColumnMenuTemplateDirective], imports: [CommonModule, FilterMenuModule], exports: [ColumnListComponent,
|
|
60
|
+
ColumnMenuTemplateDirective], imports: [CommonModule, FilterMenuModule, ButtonModule], exports: [ColumnListComponent,
|
|
60
61
|
ColumnChooserComponent,
|
|
61
62
|
ColumnMenuChooserComponent,
|
|
62
63
|
ColumnMenuFilterComponent,
|
|
@@ -66,12 +67,12 @@ ColumnMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
66
67
|
ColumnMenuComponent,
|
|
67
68
|
ColumnMenuLockComponent,
|
|
68
69
|
ColumnMenuTemplateDirective] });
|
|
69
|
-
ColumnMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuModule, imports: [[CommonModule, FilterMenuModule]] });
|
|
70
|
+
ColumnMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuModule, imports: [[CommonModule, FilterMenuModule, ButtonModule]] });
|
|
70
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuModule, decorators: [{
|
|
71
72
|
type: NgModule,
|
|
72
73
|
args: [{
|
|
73
74
|
declarations: [COMPONENTS],
|
|
74
|
-
imports: [CommonModule, FilterMenuModule],
|
|
75
|
+
imports: [CommonModule, FilterMenuModule, ButtonModule],
|
|
75
76
|
exports: [COMPONENTS]
|
|
76
77
|
}]
|
|
77
78
|
}] });
|
|
@@ -23,8 +23,8 @@ import * as i5 from "../navigation/navigation.service";
|
|
|
23
23
|
*/
|
|
24
24
|
const preventOnDblClick = release => mouseDown => of(mouseDown).pipe(delay(150), takeUntil(release));
|
|
25
25
|
const hasClass = className => el => new RegExp(`(^| )${className}( |$)`).test(el.className);
|
|
26
|
-
const isDeleteButton = or(hasClass('k-i-x'), hasClass('k-icon-button'));
|
|
27
|
-
const isSortIcon = or(hasClass('k-i-sort-asc-small'), hasClass('k-i-sort-desc-small'));
|
|
26
|
+
const isDeleteButton = or(hasClass('k-i-x'), hasClass('k-svg-i-x'), hasClass('k-icon-button'));
|
|
27
|
+
const isSortIcon = or(hasClass('k-i-sort-asc-small'), hasClass('k-i-sort-desc-small'), hasClass('k-svg-i-sort-asc-small'), hasClass('k-svg-i-sort-desc-small'));
|
|
28
28
|
const skipButtons = and(not(isDeleteButton), not(isSortIcon), not(isFocusableWithTabKey), not(matchesNodeName('label')));
|
|
29
29
|
const elementUnderCursor = ({ clientX, clientY }) => document.elementFromPoint(clientX, clientY);
|
|
30
30
|
const hideThenShow = (element, cont) => {
|
|
@@ -6,6 +6,7 @@ import { Component, EventEmitter, HostBinding, Input, Output, ViewChild } from '
|
|
|
6
6
|
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
|
+
import { filterClearIcon } from '@progress/kendo-svg-icons';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
12
|
import * as i2 from "@progress/kendo-angular-dropdowns";
|
|
@@ -19,6 +20,7 @@ export class FilterCellOperatorsComponent {
|
|
|
19
20
|
constructor(localization) {
|
|
20
21
|
this.localization = localization;
|
|
21
22
|
this.clearText = 'Clear';
|
|
23
|
+
this.filterClearIcon = filterClearIcon;
|
|
22
24
|
/**
|
|
23
25
|
* The filter operators that will be displayed.
|
|
24
26
|
*/
|
|
@@ -109,6 +111,7 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
109
111
|
kendoTreeListFocusable
|
|
110
112
|
*ngIf="showButton"
|
|
111
113
|
icon="filter-clear"
|
|
114
|
+
[svgIcon]="filterClearIcon"
|
|
112
115
|
[title]="clearText"
|
|
113
116
|
(click)="clearClick()"
|
|
114
117
|
(keydown)="clearKeydown($event)">
|
|
@@ -139,6 +142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
139
142
|
kendoTreeListFocusable
|
|
140
143
|
*ngIf="showButton"
|
|
141
144
|
icon="filter-clear"
|
|
145
|
+
[svgIcon]="filterClearIcon"
|
|
142
146
|
[title]="clearText"
|
|
143
147
|
(click)="clearClick()"
|
|
144
148
|
(keydown)="clearKeydown($event)">
|
|
@@ -8,11 +8,13 @@ import { ColumnComponent } from '../../columns/column.component';
|
|
|
8
8
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
9
9
|
import { filtersByField } from '../base-filter-cell.component';
|
|
10
10
|
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
11
|
+
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "../filter.service";
|
|
13
14
|
import * as i2 from "../../common/single-popup.service";
|
|
14
15
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
15
|
-
import * as i4 from "
|
|
16
|
+
import * as i4 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i5 from "./filter-menu-container.component";
|
|
16
18
|
/**
|
|
17
19
|
* @hidden
|
|
18
20
|
*/
|
|
@@ -21,6 +23,7 @@ export class FilterMenuComponent {
|
|
|
21
23
|
this.filterService = filterService;
|
|
22
24
|
this.popupService = popupService;
|
|
23
25
|
this.localization = localization;
|
|
26
|
+
this.filterIcon = filterIcon;
|
|
24
27
|
/**
|
|
25
28
|
* @hidden
|
|
26
29
|
*/
|
|
@@ -45,7 +48,9 @@ FilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
45
48
|
(click)="toggle(anchor, template)"
|
|
46
49
|
href="#"
|
|
47
50
|
[attr.title]="filterLabel">
|
|
48
|
-
<
|
|
51
|
+
<kendo-icon-wrapper
|
|
52
|
+
name="filter"
|
|
53
|
+
[svgIcon]="filterIcon"></kendo-icon-wrapper>
|
|
49
54
|
</a>
|
|
50
55
|
<ng-template #template>
|
|
51
56
|
<kendo-treelist-filter-menu-container
|
|
@@ -55,7 +60,7 @@ FilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
55
60
|
>
|
|
56
61
|
</kendo-treelist-filter-menu-container>
|
|
57
62
|
</ng-template>
|
|
58
|
-
`, isInline: true, components: [{ type: i4.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }] });
|
|
63
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }] });
|
|
59
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterMenuComponent, decorators: [{
|
|
60
65
|
type: Component,
|
|
61
66
|
args: [{
|
|
@@ -67,7 +72,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
67
72
|
(click)="toggle(anchor, template)"
|
|
68
73
|
href="#"
|
|
69
74
|
[attr.title]="filterLabel">
|
|
70
|
-
<
|
|
75
|
+
<kendo-icon-wrapper
|
|
76
|
+
name="filter"
|
|
77
|
+
[svgIcon]="filterIcon"></kendo-icon-wrapper>
|
|
71
78
|
</a>
|
|
72
79
|
<ng-template #template>
|
|
73
80
|
<kendo-treelist-filter-menu-container
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treelist',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '',
|
|
12
|
+
publishDate: 1674059973,
|
|
13
|
+
version: '11.0.1-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -7,6 +7,7 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/
|
|
|
7
7
|
import { PagerContextService } from "./pager-context.service";
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
+
import { caretAltRightIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
13
|
import * as i2 from "./pager-context.service";
|
|
@@ -17,6 +18,8 @@ import * as i3 from "@progress/kendo-angular-buttons";
|
|
|
17
18
|
export class PagerNextButtonsComponent extends PagerElementComponent {
|
|
18
19
|
constructor(localization, pagerContext, cd) {
|
|
19
20
|
super(localization, pagerContext, cd);
|
|
21
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
22
|
+
this.caretAltToRightIcon = caretAltToRightIcon;
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* @hidden
|
|
@@ -41,6 +44,7 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
41
44
|
kendoButton
|
|
42
45
|
type="button"
|
|
43
46
|
icon="caret-alt-right"
|
|
47
|
+
[svgIcon]="caretAltRightIcon"
|
|
44
48
|
fillMode="flat"
|
|
45
49
|
rounded="none"
|
|
46
50
|
class="k-pager-nav"
|
|
@@ -55,6 +59,7 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
55
59
|
type="button"
|
|
56
60
|
[tabIndex]="-1"
|
|
57
61
|
icon="caret-alt-to-right"
|
|
62
|
+
[svgIcon]="caretAltToRightIcon"
|
|
58
63
|
fillMode="flat"
|
|
59
64
|
rounded="none"
|
|
60
65
|
class="k-pager-nav k-pager-last"
|
|
@@ -74,6 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
74
79
|
kendoButton
|
|
75
80
|
type="button"
|
|
76
81
|
icon="caret-alt-right"
|
|
82
|
+
[svgIcon]="caretAltRightIcon"
|
|
77
83
|
fillMode="flat"
|
|
78
84
|
rounded="none"
|
|
79
85
|
class="k-pager-nav"
|
|
@@ -88,6 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
88
94
|
type="button"
|
|
89
95
|
[tabIndex]="-1"
|
|
90
96
|
icon="caret-alt-to-right"
|
|
97
|
+
[svgIcon]="caretAltToRightIcon"
|
|
91
98
|
fillMode="flat"
|
|
92
99
|
rounded="none"
|
|
93
100
|
class="k-pager-nav k-pager-last"
|
|
@@ -7,6 +7,7 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/
|
|
|
7
7
|
import { PagerContextService } from "./pager-context.service";
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
+
import { caretAltLeftIcon, caretAltToLeftIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
13
|
import * as i2 from "./pager-context.service";
|
|
@@ -17,6 +18,8 @@ import * as i3 from "@progress/kendo-angular-buttons";
|
|
|
17
18
|
export class PagerPrevButtonsComponent extends PagerElementComponent {
|
|
18
19
|
constructor(localization, pagerContext, cd) {
|
|
19
20
|
super(localization, pagerContext, cd);
|
|
21
|
+
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
22
|
+
this.caretAltToLeftIcon = caretAltToLeftIcon;
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* @hidden
|
|
@@ -46,6 +49,7 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
46
49
|
(click)="currentPage !== 1 ? changePage(0) : false"
|
|
47
50
|
role="button"
|
|
48
51
|
icon="caret-alt-to-left"
|
|
52
|
+
[svgIcon]="caretAltToLeftIcon"
|
|
49
53
|
class="k-pager-nav k-pager-first"
|
|
50
54
|
[disabled]="disabled"
|
|
51
55
|
fillMode="flat"
|
|
@@ -58,6 +62,7 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
58
62
|
class="k-pager-nav"
|
|
59
63
|
[disabled]="disabled"
|
|
60
64
|
icon="caret-alt-left"
|
|
65
|
+
[svgIcon]="caretAltLeftIcon"
|
|
61
66
|
fillMode="flat"
|
|
62
67
|
rounded="none"
|
|
63
68
|
[title]="textFor('pagerPreviousPage')"
|
|
@@ -80,6 +85,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
80
85
|
(click)="currentPage !== 1 ? changePage(0) : false"
|
|
81
86
|
role="button"
|
|
82
87
|
icon="caret-alt-to-left"
|
|
88
|
+
[svgIcon]="caretAltToLeftIcon"
|
|
83
89
|
class="k-pager-nav k-pager-first"
|
|
84
90
|
[disabled]="disabled"
|
|
85
91
|
fillMode="flat"
|
|
@@ -92,6 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
92
98
|
class="k-pager-nav"
|
|
93
99
|
[disabled]="disabled"
|
|
94
100
|
icon="caret-alt-left"
|
|
101
|
+
[svgIcon]="caretAltLeftIcon"
|
|
95
102
|
fillMode="flat"
|
|
96
103
|
rounded="none"
|
|
97
104
|
[title]="textFor('pagerPreviousPage')"
|
|
@@ -9,16 +9,18 @@ import { isColumnComponent } from '../columns/column.component';
|
|
|
9
9
|
import { columnsToRender } from "../columns/column-common";
|
|
10
10
|
import { isNullOrEmptyString, extractFormat, isColumnEditable } from '../utils';
|
|
11
11
|
import { FocusGroup } from '../navigation/focus-group';
|
|
12
|
+
import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
import * as i1 from "../editing/edit.service";
|
|
14
15
|
import * as i2 from "../navigation/focus-group";
|
|
15
|
-
import * as i3 from "@progress/kendo-angular-
|
|
16
|
-
import * as i4 from "@progress/kendo-angular-
|
|
17
|
-
import * as i5 from "@angular
|
|
18
|
-
import * as i6 from "
|
|
19
|
-
import * as i7 from "
|
|
20
|
-
import * as i8 from "
|
|
21
|
-
import * as i9 from "./common/
|
|
16
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i4 from "@progress/kendo-angular-inputs";
|
|
18
|
+
import * as i5 from "@progress/kendo-angular-dateinputs";
|
|
19
|
+
import * as i6 from "@angular/common";
|
|
20
|
+
import * as i7 from "../navigation/focusable.directive";
|
|
21
|
+
import * as i8 from "@angular/forms";
|
|
22
|
+
import * as i9 from "./common/level-items.pipe";
|
|
23
|
+
import * as i10 from "./common/field-accessor.pipe";
|
|
22
24
|
/**
|
|
23
25
|
* @hidden
|
|
24
26
|
*/
|
|
@@ -28,6 +30,8 @@ export class CellComponent {
|
|
|
28
30
|
this.focusGroup = focusGroup;
|
|
29
31
|
this.isNew = false;
|
|
30
32
|
this.level = 0;
|
|
33
|
+
this.caretAltDownIcon = caretAltDownIcon;
|
|
34
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
31
35
|
this.cellContext = {};
|
|
32
36
|
this._templateContext = {};
|
|
33
37
|
this._editTemplateContext = {};
|
|
@@ -116,9 +120,11 @@ CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
116
120
|
<ng-container *ngSwitchCase="false">
|
|
117
121
|
<ng-container *ngIf="column.expandable">
|
|
118
122
|
<span class="k-icon k-i-none" *ngFor="let item of level | levelItems : hasChildren && expandIcons"></span>
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
<kendo-icon-wrapper
|
|
124
|
+
*ngIf="hasChildren && expandIcons && !loading"
|
|
125
|
+
[name]="isExpanded ? 'caret-alt-down' : 'caret-alt-right'"
|
|
126
|
+
[svgIcon]="isExpanded ? caretAltDownIcon : caretAltRightIcon"></kendo-icon-wrapper>
|
|
127
|
+
<span class="k-icon k-i-loading" *ngIf="hasChildren && expandIcons && loading"></span>
|
|
122
128
|
</ng-container>
|
|
123
129
|
<ng-container *ngIf="column.templateRef"
|
|
124
130
|
[ngTemplateOutlet]="column.templateRef"
|
|
@@ -177,7 +183,7 @@ CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
177
183
|
</ng-container>
|
|
178
184
|
</ng-container>
|
|
179
185
|
</ng-container>
|
|
180
|
-
`, isInline: true, components: [{ type: i3.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"] }, { type:
|
|
186
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { 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"] }, { type: i5.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", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i6.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i8.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }], pipes: { "levelItems": i9.LevelItemsPipe, "valueOf": i10.FieldAccessorPipe } });
|
|
181
187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CellComponent, decorators: [{
|
|
182
188
|
type: Component,
|
|
183
189
|
args: [{
|
|
@@ -187,9 +193,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
187
193
|
<ng-container *ngSwitchCase="false">
|
|
188
194
|
<ng-container *ngIf="column.expandable">
|
|
189
195
|
<span class="k-icon k-i-none" *ngFor="let item of level | levelItems : hasChildren && expandIcons"></span>
|
|
190
|
-
<
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
<kendo-icon-wrapper
|
|
197
|
+
*ngIf="hasChildren && expandIcons && !loading"
|
|
198
|
+
[name]="isExpanded ? 'caret-alt-down' : 'caret-alt-right'"
|
|
199
|
+
[svgIcon]="isExpanded ? caretAltDownIcon : caretAltRightIcon"></kendo-icon-wrapper>
|
|
200
|
+
<span class="k-icon k-i-loading" *ngIf="hasChildren && expandIcons && loading"></span>
|
|
193
201
|
</ng-container>
|
|
194
202
|
<ng-container *ngIf="column.templateRef"
|
|
195
203
|
[ngTemplateOutlet]="column.templateRef"
|