@progress/kendo-angular-grid 12.2.0-develop.7 → 13.0.0-develop.10
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 -4
- package/column-menu/column-menu-autosize-all.component.d.ts +2 -4
- package/column-menu/column-menu-autosize.component.d.ts +1 -3
- package/column-menu/column-menu-chooser.component.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +3 -3
- package/column-menu/column-menu-lock.component.d.ts +3 -3
- package/column-menu/column-menu-position.component.d.ts +4 -4
- package/column-menu/column-menu-settings.interface.d.ts +5 -0
- package/column-menu/column-menu-sort.component.d.ts +6 -3
- package/column-menu/column-menu-stick.component.d.ts +3 -3
- package/column-menu/column-menu.component.d.ts +39 -5
- package/column-menu/column-menu.module.d.ts +2 -1
- package/column-resizing/column-handle.directive.d.ts +3 -3
- package/common/provider.service.d.ts +3 -1
- package/common/single-popup.service.d.ts +3 -3
- package/editing/add-command.directive.d.ts +2 -2
- package/editing/cancel-command.directive.d.ts +2 -2
- package/editing/edit-command.directive.d.ts +2 -2
- package/editing/remove-command.directive.d.ts +2 -2
- package/editing/save-command.directive.d.ts +2 -2
- package/esm2020/column-menu/column-chooser.component.mjs +17 -17
- package/esm2020/column-menu/column-list.component.mjs +3 -3
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +15 -18
- package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +13 -13
- package/esm2020/column-menu/column-menu-filter.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-item.component.mjs +1 -1
- package/esm2020/column-menu/column-menu-lock.component.mjs +7 -7
- package/esm2020/column-menu/column-menu-position.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-sort.component.mjs +13 -10
- package/esm2020/column-menu/column-menu-stick.component.mjs +7 -7
- package/esm2020/column-menu/column-menu.component.mjs +257 -17
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/column-resizing/column-handle.directive.mjs +7 -7
- package/esm2020/common/provider.service.mjs +6 -3
- package/esm2020/common/single-popup.service.mjs +8 -8
- package/esm2020/editing/add-command.directive.mjs +7 -7
- package/esm2020/editing/cancel-command.directive.mjs +7 -7
- package/esm2020/editing/edit-command.directive.mjs +7 -7
- package/esm2020/editing/remove-command.directive.mjs +7 -7
- package/esm2020/editing/save-command.directive.mjs +7 -7
- package/esm2020/excel/excel-command.directive.mjs +7 -7
- package/esm2020/excel/excel.component.mjs +7 -7
- package/esm2020/filtering/boolean-filter.component.mjs +13 -13
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +9 -9
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +7 -7
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +10 -10
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/date-filter.component.mjs +9 -9
- package/esm2020/filtering/filter-row.component.mjs +7 -7
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +10 -8
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-container.component.mjs +20 -20
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
- package/esm2020/filtering/menu/filter-menu.component.mjs +8 -8
- package/esm2020/filtering/menu/menu-tabbing.service.mjs +1 -0
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +7 -7
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/numeric-filter.component.mjs +9 -9
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/filter-operator.base.mjs +9 -9
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/string-filter.component.mjs +8 -8
- package/esm2020/grid.component.mjs +33 -15
- package/esm2020/grouping/group-header.component.mjs +32 -15
- package/esm2020/grouping/group-panel.component.mjs +10 -10
- package/esm2020/localization/messages.mjs +7 -1
- package/esm2020/navigation/navigation.service.mjs +8 -8
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +25 -8
- package/esm2020/pager/pager-info.component.mjs +6 -6
- package/esm2020/pager/pager-input.component.mjs +6 -6
- package/esm2020/pager/pager-next-buttons.component.mjs +14 -17
- package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-page-sizes.component.mjs +7 -7
- package/esm2020/pager/pager-prev-buttons.component.mjs +14 -17
- package/esm2020/pager/pager.component.mjs +7 -7
- package/esm2020/pdf/pdf-command.directive.mjs +7 -7
- package/esm2020/rendering/cell.component.mjs +9 -9
- package/esm2020/rendering/common/loading.component.mjs +7 -7
- package/esm2020/rendering/header/header.component.mjs +27 -30
- package/esm2020/rendering/list.component.mjs +7 -7
- package/esm2020/rendering/table-body.component.mjs +12 -12
- package/excel/excel-command.directive.d.ts +2 -2
- package/excel/excel.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-grid.mjs +858 -558
- package/fesm2020/progress-kendo-angular-grid.mjs +855 -558
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +2 -2
- package/filtering/cell/date-filter-cell.component.d.ts +3 -3
- package/filtering/cell/filter-cell-operators.component.d.ts +3 -3
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -4
- package/filtering/cell/string-filter-cell.component.d.ts +2 -2
- package/filtering/date-filter.component.d.ts +3 -3
- package/filtering/filter-row.component.d.ts +3 -3
- package/filtering/menu/boolean-filter-menu.component.d.ts +2 -2
- package/filtering/menu/date-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +2 -2
- package/filtering/menu/filter-menu-container.component.d.ts +3 -3
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +3 -3
- package/filtering/menu/filter-menu.component.d.ts +3 -3
- package/filtering/menu/menu-tabbing.service.d.ts +1 -0
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/numeric-filter-menu.component.d.ts +2 -2
- package/filtering/menu/string-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/string-filter-menu.component.d.ts +2 -2
- package/filtering/numeric-filter.component.d.ts +3 -3
- package/filtering/operators/after-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/after-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-filter-operator.component.d.ts +2 -2
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -2
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/filter-operator.base.d.ts +3 -3
- package/filtering/operators/gt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -2
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -2
- package/filtering/string-filter.component.d.ts +3 -3
- package/grouping/group-header.component.d.ts +8 -5
- package/grouping/group-panel.component.d.ts +3 -3
- package/localization/messages.d.ts +13 -1
- package/navigation/navigation.service.d.ts +3 -3
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +12 -3
- package/pager/pager-info.component.d.ts +2 -2
- package/pager/pager-input.component.d.ts +2 -2
- package/pager/pager-next-buttons.component.d.ts +2 -5
- package/pager/pager-numeric-buttons.component.d.ts +2 -2
- package/pager/pager-page-sizes.component.d.ts +2 -2
- package/pager/pager-prev-buttons.component.d.ts +2 -5
- package/pager/pager.component.d.ts +3 -3
- package/pdf/pdf-command.directive.d.ts +2 -2
- package/rendering/cell.component.d.ts +3 -3
- package/rendering/common/loading.component.d.ts +3 -3
- package/rendering/header/header.component.d.ts +1 -3
- package/rendering/list.component.d.ts +3 -3
- package/rendering/table-body.component.d.ts +3 -3
- package/schematics/ngAdd/index.js +5 -3
- package/scrolling/scroll-request.service.d.ts +6 -0
|
@@ -6,10 +6,9 @@ import { NavigationService } from './../navigation/navigation.service';
|
|
|
6
6
|
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
7
7
|
import { PagerContextService } from "./pager-context.service";
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
|
-
import {
|
|
10
|
-
import { caretAltRightIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
13
12
|
import * as i2 from "./pager-context.service";
|
|
14
13
|
import * as i3 from "./../navigation/navigation.service";
|
|
15
14
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
@@ -18,11 +17,9 @@ import * as i5 from "../navigation/focusable.directive";
|
|
|
18
17
|
* Displays buttons for navigating to the next and to the last page ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
19
18
|
*/
|
|
20
19
|
export class PagerNextButtonsComponent extends PagerElementComponent {
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
20
|
+
constructor(ctx, pagerContext, cd, navigationService) {
|
|
21
|
+
super(ctx, pagerContext, cd);
|
|
23
22
|
this.navigationService = navigationService;
|
|
24
|
-
this.caretAltRightIcon = caretAltRightIcon;
|
|
25
|
-
this.caretAltToRightIcon = caretAltToRightIcon;
|
|
26
23
|
}
|
|
27
24
|
/**
|
|
28
25
|
* @hidden
|
|
@@ -41,15 +38,15 @@ export class PagerNextButtonsComponent extends PagerElementComponent {
|
|
|
41
38
|
this.cd.markForCheck();
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
|
-
PagerNextButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerNextButtonsComponent, deps: [{ token: i1.
|
|
41
|
+
PagerNextButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerNextButtonsComponent, deps: [{ token: i1.ContextService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
45
42
|
PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerNextButtonsComponent, selector: "kendo-pager-next-buttons", usesInheritance: true, ngImport: i0, template: `
|
|
46
43
|
<button
|
|
47
44
|
kendoButton
|
|
48
45
|
[kendoGridFocusable]="!disabled"
|
|
49
46
|
type="button"
|
|
50
47
|
[size]="size"
|
|
51
|
-
icon="
|
|
52
|
-
[svgIcon]="
|
|
48
|
+
[icon]="nextArrowIcons[0]"
|
|
49
|
+
[svgIcon]="nextArrowSVGIcons[0]"
|
|
53
50
|
fillMode="flat"
|
|
54
51
|
rounded="none"
|
|
55
52
|
class="k-pager-nav"
|
|
@@ -63,8 +60,8 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
63
60
|
[kendoGridFocusable]="!disabled"
|
|
64
61
|
type="button"
|
|
65
62
|
[size]="size"
|
|
66
|
-
icon="
|
|
67
|
-
[svgIcon]="
|
|
63
|
+
[icon]="nextArrowIcons[1]"
|
|
64
|
+
[svgIcon]="nextArrowSVGIcons[1]"
|
|
68
65
|
fillMode="flat"
|
|
69
66
|
rounded="none"
|
|
70
67
|
class="k-pager-nav k-pager-last"
|
|
@@ -85,8 +82,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
85
82
|
[kendoGridFocusable]="!disabled"
|
|
86
83
|
type="button"
|
|
87
84
|
[size]="size"
|
|
88
|
-
icon="
|
|
89
|
-
[svgIcon]="
|
|
85
|
+
[icon]="nextArrowIcons[0]"
|
|
86
|
+
[svgIcon]="nextArrowSVGIcons[0]"
|
|
90
87
|
fillMode="flat"
|
|
91
88
|
rounded="none"
|
|
92
89
|
class="k-pager-nav"
|
|
@@ -100,8 +97,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
100
97
|
[kendoGridFocusable]="!disabled"
|
|
101
98
|
type="button"
|
|
102
99
|
[size]="size"
|
|
103
|
-
icon="
|
|
104
|
-
[svgIcon]="
|
|
100
|
+
[icon]="nextArrowIcons[1]"
|
|
101
|
+
[svgIcon]="nextArrowSVGIcons[1]"
|
|
105
102
|
fillMode="flat"
|
|
106
103
|
rounded="none"
|
|
107
104
|
class="k-pager-nav k-pager-last"
|
|
@@ -112,4 +109,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
112
109
|
</button>
|
|
113
110
|
`
|
|
114
111
|
}]
|
|
115
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
112
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.PagerContextService }, { type: i0.ChangeDetectorRef }, { type: i3.NavigationService }]; } });
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextService } from '../common/provider.service';
|
|
7
7
|
import { PagerContextService } from './pager-context.service';
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "
|
|
10
|
+
import * as i1 from "../common/provider.service";
|
|
11
11
|
import * as i2 from "./pager-context.service";
|
|
12
12
|
import * as i3 from "@progress/kendo-angular-buttons";
|
|
13
13
|
import * as i4 from "../navigation/focusable.directive";
|
|
@@ -16,8 +16,8 @@ import * as i5 from "@angular/common";
|
|
|
16
16
|
* Displays numeric buttons to enable navigation between the pages ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
17
17
|
*/
|
|
18
18
|
export class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
19
|
-
constructor(
|
|
20
|
-
super(
|
|
19
|
+
constructor(ctx, cd, pagerContext) {
|
|
20
|
+
super(ctx, pagerContext, cd);
|
|
21
21
|
this.pagerContext = pagerContext;
|
|
22
22
|
this.numbersWrapClass = true;
|
|
23
23
|
}
|
|
@@ -88,7 +88,7 @@ export class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
|
88
88
|
this.cd.markForCheck();
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
PagerNumericButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.
|
|
91
|
+
PagerNumericButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.ContextService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
92
92
|
PagerNumericButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerNumericButtonsComponent, selector: "kendo-pager-numeric-buttons", inputs: { buttonCount: "buttonCount" }, host: { properties: { "class.k-pager-numbers-wrap": "this.numbersWrapClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
93
93
|
<select
|
|
94
94
|
class="k-dropdown-list k-dropdown k-picker k-picker-solid k-rounded-md"
|
|
@@ -241,7 +241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
241
241
|
</div>
|
|
242
242
|
`
|
|
243
243
|
}]
|
|
244
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
244
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { numbersWrapClass: [{
|
|
245
245
|
type: HostBinding,
|
|
246
246
|
args: ['class.k-pager-numbers-wrap']
|
|
247
247
|
}], buttonCount: [{
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { NavigationService } from './../navigation/navigation.service';
|
|
6
6
|
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, HostBinding, Input } from '@angular/core';
|
|
7
7
|
import { PagerElementComponent } from './pager-element.component';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { PagerContextService } from './pager-context.service';
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
12
12
|
import * as i2 from "./pager-context.service";
|
|
13
13
|
import * as i3 from "./../navigation/navigation.service";
|
|
14
14
|
import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
@@ -19,8 +19,8 @@ import * as i7 from "../navigation/focusable.directive";
|
|
|
19
19
|
* Displays a drop-down list for the page size selection ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
20
20
|
*/
|
|
21
21
|
export class PagerPageSizesComponent extends PagerElementComponent {
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
22
|
+
constructor(ctx, cd, pagerContext, navigationService) {
|
|
23
|
+
super(ctx, pagerContext, cd);
|
|
24
24
|
this.pagerContext = pagerContext;
|
|
25
25
|
this.navigationService = navigationService;
|
|
26
26
|
this._pageSizes = [];
|
|
@@ -93,7 +93,7 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
93
93
|
this.cd.markForCheck();
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
PagerPageSizesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i1.
|
|
96
|
+
PagerPageSizesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i1.ContextService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
97
97
|
PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerPageSizesComponent, selector: "kendo-pager-page-sizes", inputs: { pageSizes: "pageSizes" }, host: { properties: { "class.k-pager-sizes": "this.classes", "class.k-label": "this.classes" } }, usesInheritance: true, ngImport: i0, template: `
|
|
98
98
|
<kendo-dropdownlist
|
|
99
99
|
class="k-dropdown"
|
|
@@ -109,7 +109,7 @@ PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
109
109
|
[value]="pageSize"
|
|
110
110
|
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
|
111
111
|
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
|
112
|
-
`, isInline: true, components: [{ 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"] }, { type: i5.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional"], exportAs: ["kendoLabel"] }], directives: [{ type: i6.PagerDropDownListDirective, selector: "[kendoGridPagerDropDown]" }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
112
|
+
`, isInline: true, components: [{ 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"] }, { type: i5.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }], directives: [{ type: i6.PagerDropDownListDirective, selector: "[kendoGridPagerDropDown]" }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
113
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
114
114
|
type: Component,
|
|
115
115
|
args: [{
|
|
@@ -132,7 +132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
132
132
|
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
|
133
133
|
`
|
|
134
134
|
}]
|
|
135
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
135
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }, { type: i3.NavigationService }]; }, propDecorators: { pageSizes: [{
|
|
136
136
|
type: Input
|
|
137
137
|
}], classes: [{
|
|
138
138
|
type: HostBinding,
|
|
@@ -6,10 +6,9 @@ import { NavigationService } from './../navigation/navigation.service';
|
|
|
6
6
|
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
7
7
|
import { PagerContextService } from "./pager-context.service";
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
|
-
import {
|
|
10
|
-
import { caretAltLeftIcon, caretAltToLeftIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
13
12
|
import * as i2 from "./pager-context.service";
|
|
14
13
|
import * as i3 from "./../navigation/navigation.service";
|
|
15
14
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
@@ -18,11 +17,9 @@ import * as i5 from "../navigation/focusable.directive";
|
|
|
18
17
|
* Displays buttons for navigating to the first and to the previous page ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
19
18
|
*/
|
|
20
19
|
export class PagerPrevButtonsComponent extends PagerElementComponent {
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
20
|
+
constructor(ctx, pagerContext, cd, navigationService) {
|
|
21
|
+
super(ctx, pagerContext, cd);
|
|
23
22
|
this.navigationService = navigationService;
|
|
24
|
-
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
25
|
-
this.caretAltToLeftIcon = caretAltToLeftIcon;
|
|
26
23
|
}
|
|
27
24
|
/**
|
|
28
25
|
* @hidden
|
|
@@ -41,7 +38,7 @@ export class PagerPrevButtonsComponent extends PagerElementComponent {
|
|
|
41
38
|
this.cd.markForCheck();
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
|
-
PagerPrevButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPrevButtonsComponent, deps: [{ token: i1.
|
|
41
|
+
PagerPrevButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPrevButtonsComponent, deps: [{ token: i1.ContextService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
45
42
|
PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerPrevButtonsComponent, selector: "kendo-pager-prev-buttons", usesInheritance: true, ngImport: i0, template: `
|
|
46
43
|
<button
|
|
47
44
|
[kendoGridFocusable]="!disabled"
|
|
@@ -51,8 +48,8 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
51
48
|
[attr.aria-label]="textFor('pagerFirstPage')"
|
|
52
49
|
(click)="currentPage !== 1 ? changePage(0) : false"
|
|
53
50
|
role="button"
|
|
54
|
-
icon="
|
|
55
|
-
[svgIcon]="
|
|
51
|
+
[icon]="prevArrowIcons[0]"
|
|
52
|
+
[svgIcon]="prevArrowSVGIcons[0]"
|
|
56
53
|
class="k-pager-nav k-pager-first"
|
|
57
54
|
[disabled]="disabled"
|
|
58
55
|
fillMode="flat"
|
|
@@ -65,8 +62,8 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
65
62
|
type="button"
|
|
66
63
|
class="k-pager-nav"
|
|
67
64
|
[disabled]="disabled"
|
|
68
|
-
icon="
|
|
69
|
-
[svgIcon]="
|
|
65
|
+
[icon]="prevArrowIcons[1]"
|
|
66
|
+
[svgIcon]="prevArrowSVGIcons[1]"
|
|
70
67
|
fillMode="flat"
|
|
71
68
|
rounded="none"
|
|
72
69
|
[size]="size"
|
|
@@ -89,8 +86,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
89
86
|
[attr.aria-label]="textFor('pagerFirstPage')"
|
|
90
87
|
(click)="currentPage !== 1 ? changePage(0) : false"
|
|
91
88
|
role="button"
|
|
92
|
-
icon="
|
|
93
|
-
[svgIcon]="
|
|
89
|
+
[icon]="prevArrowIcons[0]"
|
|
90
|
+
[svgIcon]="prevArrowSVGIcons[0]"
|
|
94
91
|
class="k-pager-nav k-pager-first"
|
|
95
92
|
[disabled]="disabled"
|
|
96
93
|
fillMode="flat"
|
|
@@ -103,8 +100,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
103
100
|
type="button"
|
|
104
101
|
class="k-pager-nav"
|
|
105
102
|
[disabled]="disabled"
|
|
106
|
-
icon="
|
|
107
|
-
[svgIcon]="
|
|
103
|
+
[icon]="prevArrowIcons[1]"
|
|
104
|
+
[svgIcon]="prevArrowSVGIcons[1]"
|
|
108
105
|
fillMode="flat"
|
|
109
106
|
rounded="none"
|
|
110
107
|
[size]="size"
|
|
@@ -114,4 +111,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
114
111
|
</button>
|
|
115
112
|
`
|
|
116
113
|
}]
|
|
117
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
114
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.PagerContextService }, { type: i0.ChangeDetectorRef }, { type: i3.NavigationService }]; } });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
5
|
import { Component, Input, EventEmitter, Output, HostBinding, ElementRef, Renderer2, HostListener, NgZone, Optional, Inject } from '@angular/core';
|
|
7
6
|
import { normalize } from './pager-settings';
|
|
8
7
|
import { PagerTemplateDirective } from './pager-template.directive';
|
|
@@ -16,10 +15,11 @@ import { CELL_CONTEXT } from '../rendering/common/cell-context';
|
|
|
16
15
|
import { FocusGroup } from '../navigation/focus-group';
|
|
17
16
|
import { FocusRoot, FOCUS_ROOT_ACTIVE } from '../navigation/focus-root';
|
|
18
17
|
import { findFocusableChild, findLastFocusableChild } from '../rendering/common/dom-queries';
|
|
18
|
+
import { ContextService } from '../common/provider.service';
|
|
19
19
|
import * as i0 from "@angular/core";
|
|
20
20
|
import * as i1 from "./pager-context.service";
|
|
21
21
|
import * as i2 from "../navigation/navigation.service";
|
|
22
|
-
import * as i3 from "
|
|
22
|
+
import * as i3 from "../common/provider.service";
|
|
23
23
|
import * as i4 from "../navigation/focus-root";
|
|
24
24
|
import * as i5 from "../navigation/focus-group";
|
|
25
25
|
import * as i6 from "./pager-prev-buttons.component";
|
|
@@ -34,13 +34,13 @@ import * as i13 from "@angular/common";
|
|
|
34
34
|
* @hidden
|
|
35
35
|
*/
|
|
36
36
|
export class PagerComponent {
|
|
37
|
-
constructor(pagerContext, navigationService, element, renderer, zone,
|
|
37
|
+
constructor(pagerContext, navigationService, element, renderer, zone, ctx, cellContext, focusRoot, focusGroup) {
|
|
38
38
|
this.pagerContext = pagerContext;
|
|
39
39
|
this.navigationService = navigationService;
|
|
40
40
|
this.element = element;
|
|
41
41
|
this.renderer = renderer;
|
|
42
42
|
this.zone = zone;
|
|
43
|
-
this.
|
|
43
|
+
this.ctx = ctx;
|
|
44
44
|
this.cellContext = cellContext;
|
|
45
45
|
this.focusRoot = focusRoot;
|
|
46
46
|
this.focusGroup = focusGroup;
|
|
@@ -99,7 +99,7 @@ export class PagerComponent {
|
|
|
99
99
|
return this.navigationService.pagerEnabled ? this.pagerLabel : undefined;
|
|
100
100
|
}
|
|
101
101
|
get pagerLabel() {
|
|
102
|
-
const localizationMsg = this.
|
|
102
|
+
const localizationMsg = this.ctx.localization.get('pagerLabel') || '';
|
|
103
103
|
return replaceMessagePlaceholder(replaceMessagePlaceholder(localizationMsg, 'currentPage', this.currentPage.toString()), 'totalPages', this.totalPages.toString());
|
|
104
104
|
}
|
|
105
105
|
get focusTrapTabIndex() {
|
|
@@ -248,7 +248,7 @@ export class PagerComponent {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerComponent, deps: [{ token: i1.PagerContextService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i3.
|
|
251
|
+
PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerComponent, deps: [{ token: i1.PagerContextService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i3.ContextService }, { token: CELL_CONTEXT, optional: true }, { token: i4.FocusRoot }, { token: i5.FocusGroup }], target: i0.ɵɵFactoryTarget.Component });
|
|
252
252
|
PagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerComponent, selector: "kendo-pager", inputs: { total: "total", skip: "skip", pageSize: "pageSize", options: "options", size: "size", template: "template" }, outputs: { pageChange: "pageChange" }, host: { listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut()", "keydown.escape": "onEscape()", "keydown.enter": "onEnter($event)", "keydown.arrowleft": "navigateToPreviousPage($event)", "keydown.pageup": "navigateToPreviousPage($event)", "keydown.arrowright": "navigateToNextPage($event)", "keydown.pagedown": "navigateToNextPage($event)", "keydown.home": "navigateToFirstPage($event)", "keydown.end": "navigateToLastPage($event)" }, properties: { "class.k-pager-wrap": "this.pagerWrapClass", "class.k-grid-pager": "this.gridPagerClass", "class.k-pager-sm": "this.sizeSmallClass", "class.k-pager-md": "this.sizeMediumClass", "class.k-focus": "this.isFocused", "attr.aria-label": "this.pagerAriaLabel" } }, providers: [{
|
|
253
253
|
provide: FOCUS_ROOT_ACTIVE,
|
|
254
254
|
useValue: true
|
|
@@ -355,7 +355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
355
355
|
<kendo-resize-sensor *ngIf="settings.responsive" (resize)="resizeHandler()"></kendo-resize-sensor>
|
|
356
356
|
`
|
|
357
357
|
}]
|
|
358
|
-
}], ctorParameters: function () { return [{ type: i1.PagerContextService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i3.
|
|
358
|
+
}], ctorParameters: function () { return [{ type: i1.PagerContextService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i3.ContextService }, { type: undefined, decorators: [{
|
|
359
359
|
type: Optional
|
|
360
360
|
}, {
|
|
361
361
|
type: Inject,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, HostListener, HostBinding, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
|
|
6
6
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import {
|
|
7
|
+
import { ContextService } from '../common/provider.service';
|
|
8
8
|
import { PDFService } from './pdf.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "./pdf.service";
|
|
11
|
-
import * as i2 from "
|
|
11
|
+
import * as i2 from "../common/provider.service";
|
|
12
12
|
import * as i3 from "@progress/kendo-angular-icons";
|
|
13
13
|
import * as i4 from "@angular/common";
|
|
14
14
|
/**
|
|
@@ -31,8 +31,8 @@ import * as i4 from "@angular/common";
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export class PDFCommandDirective extends Button {
|
|
34
|
-
constructor(pdfService, element, renderer,
|
|
35
|
-
super(element, renderer, null, localization, ngZone);
|
|
34
|
+
constructor(pdfService, element, renderer, ctx, ngZone) {
|
|
35
|
+
super(element, renderer, null, ctx.localization, ngZone);
|
|
36
36
|
this.pdfService = pdfService;
|
|
37
37
|
this.ngZone = ngZone;
|
|
38
38
|
}
|
|
@@ -50,7 +50,7 @@ export class PDFCommandDirective extends Button {
|
|
|
50
50
|
return true;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
PDFCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFCommandDirective, deps: [{ token: i1.PDFService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.
|
|
53
|
+
PDFCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFCommandDirective, deps: [{ token: i1.PDFService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
54
54
|
PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PDFCommandDirective, selector: "[kendoGridPDFCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-pdf": "this.pdfClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
55
55
|
<kendo-icon-wrapper
|
|
56
56
|
*ngIf="icon || svgIcon"
|
|
@@ -62,7 +62,7 @@ PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
62
62
|
</span>
|
|
63
63
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
64
64
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
65
|
-
`, 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"] }] });
|
|
65
|
+
`, 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"] }] });
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFCommandDirective, decorators: [{
|
|
67
67
|
type: Component,
|
|
68
68
|
args: [{
|
|
@@ -80,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
80
80
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
81
81
|
`
|
|
82
82
|
}]
|
|
83
|
-
}], ctorParameters: function () { return [{ type: i1.PDFService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i1.PDFService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { onClick: [{
|
|
84
84
|
type: HostListener,
|
|
85
85
|
args: ['click', ['$event']]
|
|
86
86
|
}], pdfClass: [{
|
|
@@ -11,12 +11,12 @@ import { columnsToRender } from "../columns/column-common";
|
|
|
11
11
|
import { isPresent, isNullOrEmptyString, extractFormat } from '../utils';
|
|
12
12
|
import { CELL_CONTEXT } from './common/cell-context';
|
|
13
13
|
import { IdService } from '../common/id.service';
|
|
14
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
15
14
|
import { reorderIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { ContextService } from '../common/provider.service';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../editing/edit.service";
|
|
18
18
|
import * as i2 from "../common/id.service";
|
|
19
|
-
import * as i3 from "
|
|
19
|
+
import * as i3 from "../common/provider.service";
|
|
20
20
|
import * as i4 from "@progress/kendo-angular-icons";
|
|
21
21
|
import * as i5 from "@progress/kendo-angular-inputs";
|
|
22
22
|
import * as i6 from "@progress/kendo-angular-dateinputs";
|
|
@@ -29,10 +29,10 @@ import * as i11 from "./common/field-accessor.pipe";
|
|
|
29
29
|
* @hidden
|
|
30
30
|
*/
|
|
31
31
|
export class CellComponent {
|
|
32
|
-
constructor(editService, idService,
|
|
32
|
+
constructor(editService, idService, ctx, cellContext) {
|
|
33
33
|
this.editService = editService;
|
|
34
34
|
this.idService = idService;
|
|
35
|
-
this.
|
|
35
|
+
this.ctx = ctx;
|
|
36
36
|
this.cellContext = cellContext;
|
|
37
37
|
this.isNew = false;
|
|
38
38
|
this.isLoading = false;
|
|
@@ -48,7 +48,7 @@ export class CellComponent {
|
|
|
48
48
|
return isRowReorderColumn(this.column);
|
|
49
49
|
}
|
|
50
50
|
get dragRowHandleLabel() {
|
|
51
|
-
return isRowReorderColumn(this.column) ? this.
|
|
51
|
+
return isRowReorderColumn(this.column) ? this.ctx.localization.get('dragRowHandleLabel') : undefined;
|
|
52
52
|
}
|
|
53
53
|
set rowIndex(index) {
|
|
54
54
|
this._rowIndex = index;
|
|
@@ -98,7 +98,7 @@ export class CellComponent {
|
|
|
98
98
|
return this.idService.selectionCheckboxId(this.rowIndex);
|
|
99
99
|
}
|
|
100
100
|
get selectionCheckboxLabel() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.ctx.localization.get('selectionCheckboxLabel');
|
|
102
102
|
}
|
|
103
103
|
get isSpanColumn() {
|
|
104
104
|
return isSpanColumn(this.column) && !this.column.templateRef;
|
|
@@ -154,7 +154,7 @@ export class CellComponent {
|
|
|
154
154
|
context.$implicit = this.dataItem;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.
|
|
157
|
+
CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.ContextService }, { token: CELL_CONTEXT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
158
158
|
CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: CellComponent, selector: "[kendoGridCell]", inputs: { column: "column", columnIndex: "columnIndex", isNew: "isNew", isLoading: "isLoading", isVirtual: "isVirtual", loadingTemplate: "loadingTemplate", rowIndex: "rowIndex", dataItem: "dataItem" }, host: { properties: { "class.k-command-cell": "this.commandCellClass", "class.k-drag-cell": "this.dragHandleCellClass", "class.k-touch-action-none": "this.dragHandleCellClass", "attr.aria-label": "this.dragRowHandleLabel" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
159
159
|
<ng-container [ngSwitch]="isEdited">
|
|
160
160
|
<ng-container *ngSwitchCase="false">
|
|
@@ -231,7 +231,7 @@ CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
231
231
|
</ng-container>
|
|
232
232
|
</ng-container>
|
|
233
233
|
</ng-container>
|
|
234
|
-
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.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: i6.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: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i9.SelectionCheckboxDirective, selector: "[kendoGridSelectionCheckbox]", inputs: ["kendoGridSelectionCheckbox"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i10.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i7.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i10.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: { "valueOf": i11.FieldAccessorPipe } });
|
|
234
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i5.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: i6.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: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i9.SelectionCheckboxDirective, selector: "[kendoGridSelectionCheckbox]", inputs: ["kendoGridSelectionCheckbox"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i10.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i7.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i10.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: { "valueOf": i11.FieldAccessorPipe } });
|
|
235
235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, decorators: [{
|
|
236
236
|
type: Component,
|
|
237
237
|
args: [{
|
|
@@ -314,7 +314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
314
314
|
</ng-container>
|
|
315
315
|
`
|
|
316
316
|
}]
|
|
317
|
-
}], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.
|
|
317
|
+
}], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.ContextService }, { type: undefined, decorators: [{
|
|
318
318
|
type: Optional
|
|
319
319
|
}, {
|
|
320
320
|
type: Inject,
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
7
7
|
import { LoadingTemplateDirective } from '../loading-template.directive';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
import * as i2 from "@angular/common";
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
export class LoadingComponent {
|
|
15
|
-
constructor(
|
|
16
|
-
this.
|
|
15
|
+
constructor(ctx) {
|
|
16
|
+
this.ctx = ctx;
|
|
17
17
|
this.hostClass = true;
|
|
18
18
|
}
|
|
19
19
|
get loadingText() {
|
|
20
|
-
return this.localization.get('loading');
|
|
20
|
+
return this.ctx.localization.get('loading');
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: i1.
|
|
23
|
+
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
24
|
LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: LoadingComponent, selector: "[kendoGridLoading]", inputs: { loadingTemplate: "loadingTemplate" }, host: { properties: { "class.k-loading-mask": "this.hostClass" } }, ngImport: i0, template: `
|
|
25
25
|
<ng-container *ngIf="!loadingTemplate">
|
|
26
26
|
<span class="k-loading-text">{{ loadingText }}</span>
|
|
@@ -44,7 +44,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
44
44
|
</ng-template>
|
|
45
45
|
`
|
|
46
46
|
}]
|
|
47
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClass: [{
|
|
48
48
|
type: HostBinding,
|
|
49
49
|
args: ['class.k-loading-mask']
|
|
50
50
|
}], loadingTemplate: [{
|