@progress/kendo-angular-treelist 11.0.0-develop.106 → 11.0.0-develop.108
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 +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 +1 -1
- 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 +201 -106
- package/fesm2020/progress-kendo-angular-treelist.mjs +201 -106
- package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
- package/filtering/menu/filter-menu.component.d.ts +2 -0
- package/package.json +15 -15
- 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
|
@@ -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:
|
|
12
|
+
publishDate: 1673546643,
|
|
13
13
|
version: '',
|
|
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"
|
|
@@ -22,6 +22,7 @@ import { SortService } from '../../common/sort.service';
|
|
|
22
22
|
import { hasItems } from '../../column-menu/utils';
|
|
23
23
|
import { closestInScope, isFocusable } from '../common/dom-queries';
|
|
24
24
|
import { SelectionService } from '../../selection/selection.service';
|
|
25
|
+
import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
import * as i1 from "../../common/single-popup.service";
|
|
27
28
|
import * as i2 from "../../dragdrop/drag-hint.service";
|
|
@@ -32,16 +33,17 @@ import * as i6 from "../../selection/selection.service";
|
|
|
32
33
|
import * as i7 from "@progress/kendo-angular-l10n";
|
|
33
34
|
import * as i8 from "../../filtering/menu/filter-menu.component";
|
|
34
35
|
import * as i9 from "../../column-menu/column-menu.component";
|
|
35
|
-
import * as i10 from "
|
|
36
|
-
import * as i11 from "
|
|
37
|
-
import * as i12 from "
|
|
38
|
-
import * as i13 from "../../navigation/logical-
|
|
39
|
-
import * as i14 from "../../
|
|
40
|
-
import * as i15 from "
|
|
41
|
-
import * as i16 from "
|
|
42
|
-
import * as i17 from "
|
|
43
|
-
import * as i18 from "
|
|
44
|
-
import * as i19 from "../../
|
|
36
|
+
import * as i10 from "@progress/kendo-angular-icons";
|
|
37
|
+
import * as i11 from "../../filtering/filter-row.component";
|
|
38
|
+
import * as i12 from "@angular/common";
|
|
39
|
+
import * as i13 from "../../navigation/logical-row.directive";
|
|
40
|
+
import * as i14 from "../../navigation/logical-cell.directive";
|
|
41
|
+
import * as i15 from "../../dragdrop/drop-target.directive";
|
|
42
|
+
import * as i16 from "@progress/kendo-angular-common";
|
|
43
|
+
import * as i17 from "../../dragdrop/draggable-column.directive";
|
|
44
|
+
import * as i18 from "../common/template-context.directive";
|
|
45
|
+
import * as i19 from "../../navigation/focusable.directive";
|
|
46
|
+
import * as i20 from "../../column-resizing/column-handle.directive";
|
|
45
47
|
const mergeObjects = (...args) => Object.assign.apply(null, [{}].concat(args));
|
|
46
48
|
const directions = initialDirection => initialDirection === "asc" ? ["asc", "desc"] : ["desc", "asc"];
|
|
47
49
|
/**
|
|
@@ -86,6 +88,8 @@ export class HeaderComponent {
|
|
|
86
88
|
this.sortedFields = {};
|
|
87
89
|
this.hostClass = true;
|
|
88
90
|
this.dropTargets = new QueryList();
|
|
91
|
+
this.sortAscSmallIcon = sortAscSmallIcon;
|
|
92
|
+
this.sortDescSmallIcon = sortDescSmallIcon;
|
|
89
93
|
this.subscription = new Subscription();
|
|
90
94
|
}
|
|
91
95
|
get headerClass() {
|
|
@@ -137,14 +141,6 @@ export class HeaderComponent {
|
|
|
137
141
|
.findIndex(x => x.field === field)
|
|
138
142
|
+ 1;
|
|
139
143
|
}
|
|
140
|
-
sortIcon(field) {
|
|
141
|
-
const state = this.sortDescriptor(field);
|
|
142
|
-
return {
|
|
143
|
-
'k-icon': isPresent(state.dir),
|
|
144
|
-
'k-i-sort-desc-small': state.dir === "desc",
|
|
145
|
-
'k-i-sort-asc-small': state.dir === "asc"
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
144
|
sortState(column) {
|
|
149
145
|
if (!this.isSortable(column)) {
|
|
150
146
|
return;
|
|
@@ -435,7 +431,12 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
435
431
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
436
432
|
</ng-container>
|
|
437
433
|
<span class="k-sort-icon">
|
|
438
|
-
|
|
434
|
+
<kendo-icon-wrapper
|
|
435
|
+
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
|
436
|
+
role="note" [attr.aria-label]="sortableLabel"
|
|
437
|
+
name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
|
|
438
|
+
[svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
|
|
439
|
+
></kendo-icon-wrapper>
|
|
439
440
|
</span>
|
|
440
441
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
441
442
|
</span>
|
|
@@ -535,7 +536,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
535
536
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
|
536
537
|
>
|
|
537
538
|
</tr>
|
|
538
|
-
`, isInline: true, components: [{ type: i8.FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { type: i9.ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { type: i10.FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type:
|
|
539
|
+
`, isInline: true, components: [{ type: i8.FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { type: i9.ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { type: i10.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i11.FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew"] }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable"] }, { type: i15.DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { type: i16.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i17.DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { type: i12.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i18.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i19.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i20.ColumnHandleDirective, selector: "[kendoTreeListColumnHandle]", inputs: ["columns", "column"] }] });
|
|
539
540
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
540
541
|
type: Component,
|
|
541
542
|
args: [{
|
|
@@ -616,7 +617,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
616
617
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
617
618
|
</ng-container>
|
|
618
619
|
<span class="k-sort-icon">
|
|
619
|
-
|
|
620
|
+
<kendo-icon-wrapper
|
|
621
|
+
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
|
622
|
+
role="note" [attr.aria-label]="sortableLabel"
|
|
623
|
+
name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
|
|
624
|
+
[svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
|
|
625
|
+
></kendo-icon-wrapper>
|
|
620
626
|
</span>
|
|
621
627
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
622
628
|
</span>
|
|
@@ -285,7 +285,7 @@ export class TableBodyComponent {
|
|
|
285
285
|
return {};
|
|
286
286
|
}
|
|
287
287
|
expandClick(eventArg, row) {
|
|
288
|
-
if (eventArg.type === 'click' &&
|
|
288
|
+
if (eventArg.type === 'click' && eventArg.target.closest('.k-icon-wrapper-host')) {
|
|
289
289
|
eventArg.preventDefault();
|
|
290
290
|
const viewItem = this.rowItem(row);
|
|
291
291
|
if (viewItem.type === 'data') {
|